@easyedu/js-lsm-api 1.131.0 → 1.133.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 +28 -0
  2. package/README.md +18 -2
  3. package/dist/apis/PortalApi.d.ts +9 -0
  4. package/dist/apis/PortalApi.js +11 -1
  5. package/dist/apis/QuestionApi.d.ts +19 -0
  6. package/dist/apis/QuestionApi.js +44 -0
  7. package/dist/apis/SystemApi.d.ts +16 -0
  8. package/dist/apis/SystemApi.js +40 -0
  9. package/dist/esm/apis/PortalApi.d.ts +9 -0
  10. package/dist/esm/apis/PortalApi.js +10 -0
  11. package/dist/esm/apis/QuestionApi.d.ts +19 -0
  12. package/dist/esm/apis/QuestionApi.js +44 -0
  13. package/dist/esm/apis/SystemApi.d.ts +16 -0
  14. package/dist/esm/apis/SystemApi.js +40 -0
  15. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +6 -0
  16. package/dist/esm/models/GetCourseEnrollmentListItem.js +2 -0
  17. package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +6 -0
  18. package/dist/esm/models/GetResourceUsageCoursesInner.js +4 -0
  19. package/dist/esm/models/GetSystemPortalOverview.d.ts +121 -0
  20. package/dist/esm/models/GetSystemPortalOverview.js +106 -0
  21. package/dist/esm/models/PostQuestionTags.d.ts +38 -0
  22. package/dist/esm/models/PostQuestionTags.js +47 -0
  23. package/dist/esm/models/PostQuestionTagsResponse.d.ts +32 -0
  24. package/dist/esm/models/PostQuestionTagsResponse.js +43 -0
  25. package/dist/esm/models/SystemPortalActivityStats.d.ts +56 -0
  26. package/dist/esm/models/SystemPortalActivityStats.js +57 -0
  27. package/dist/esm/models/SystemPortalCertificateStats.d.ts +50 -0
  28. package/dist/esm/models/SystemPortalCertificateStats.js +55 -0
  29. package/dist/esm/models/SystemPortalContentStats.d.ts +56 -0
  30. package/dist/esm/models/SystemPortalContentStats.js +59 -0
  31. package/dist/esm/models/SystemPortalCourseStats.d.ts +62 -0
  32. package/dist/esm/models/SystemPortalCourseStats.js +63 -0
  33. package/dist/esm/models/SystemPortalEnrollmentStats.d.ts +56 -0
  34. package/dist/esm/models/SystemPortalEnrollmentStats.js +59 -0
  35. package/dist/esm/models/SystemPortalHierarchy.d.ts +44 -0
  36. package/dist/esm/models/SystemPortalHierarchy.js +47 -0
  37. package/dist/esm/models/SystemPortalLicense.d.ts +65 -0
  38. package/dist/esm/models/SystemPortalLicense.js +61 -0
  39. package/dist/esm/models/SystemPortalRoleCount.d.ts +51 -0
  40. package/dist/esm/models/SystemPortalRoleCount.js +59 -0
  41. package/dist/esm/models/SystemPortalStorageUsage.d.ts +74 -0
  42. package/dist/esm/models/SystemPortalStorageUsage.js +71 -0
  43. package/dist/esm/models/SystemPortalSupportStats.d.ts +50 -0
  44. package/dist/esm/models/SystemPortalSupportStats.js +55 -0
  45. package/dist/esm/models/SystemPortalUserStats.d.ts +81 -0
  46. package/dist/esm/models/SystemPortalUserStats.js +74 -0
  47. package/dist/esm/models/index.d.ts +14 -0
  48. package/dist/esm/models/index.js +14 -0
  49. package/dist/models/GetCourseEnrollmentListItem.d.ts +6 -0
  50. package/dist/models/GetCourseEnrollmentListItem.js +2 -0
  51. package/dist/models/GetResourceUsageCoursesInner.d.ts +6 -0
  52. package/dist/models/GetResourceUsageCoursesInner.js +4 -0
  53. package/dist/models/GetSystemPortalOverview.d.ts +121 -0
  54. package/dist/models/GetSystemPortalOverview.js +113 -0
  55. package/dist/models/PostQuestionTags.d.ts +38 -0
  56. package/dist/models/PostQuestionTags.js +54 -0
  57. package/dist/models/PostQuestionTagsResponse.d.ts +32 -0
  58. package/dist/models/PostQuestionTagsResponse.js +50 -0
  59. package/dist/models/SystemPortalActivityStats.d.ts +56 -0
  60. package/dist/models/SystemPortalActivityStats.js +64 -0
  61. package/dist/models/SystemPortalCertificateStats.d.ts +50 -0
  62. package/dist/models/SystemPortalCertificateStats.js +62 -0
  63. package/dist/models/SystemPortalContentStats.d.ts +56 -0
  64. package/dist/models/SystemPortalContentStats.js +66 -0
  65. package/dist/models/SystemPortalCourseStats.d.ts +62 -0
  66. package/dist/models/SystemPortalCourseStats.js +70 -0
  67. package/dist/models/SystemPortalEnrollmentStats.d.ts +56 -0
  68. package/dist/models/SystemPortalEnrollmentStats.js +66 -0
  69. package/dist/models/SystemPortalHierarchy.d.ts +44 -0
  70. package/dist/models/SystemPortalHierarchy.js +54 -0
  71. package/dist/models/SystemPortalLicense.d.ts +65 -0
  72. package/dist/models/SystemPortalLicense.js +69 -0
  73. package/dist/models/SystemPortalRoleCount.d.ts +51 -0
  74. package/dist/models/SystemPortalRoleCount.js +67 -0
  75. package/dist/models/SystemPortalStorageUsage.d.ts +74 -0
  76. package/dist/models/SystemPortalStorageUsage.js +78 -0
  77. package/dist/models/SystemPortalSupportStats.d.ts +50 -0
  78. package/dist/models/SystemPortalSupportStats.js +62 -0
  79. package/dist/models/SystemPortalUserStats.d.ts +81 -0
  80. package/dist/models/SystemPortalUserStats.js +81 -0
  81. package/dist/models/index.d.ts +14 -0
  82. package/dist/models/index.js +14 -0
  83. package/docs/GetCourseEnrollmentListItem.md +2 -0
  84. package/docs/GetResourceUsageCoursesInner.md +2 -0
  85. package/docs/GetSystemPortalOverview.md +61 -0
  86. package/docs/PortalApi.md +4 -1
  87. package/docs/PostQuestionTags.md +37 -0
  88. package/docs/PostQuestionTagsResponse.md +34 -0
  89. package/docs/QuestionApi.md +71 -0
  90. package/docs/SystemApi.md +68 -0
  91. package/docs/SystemPortalActivityStats.md +42 -0
  92. package/docs/SystemPortalCertificateStats.md +40 -0
  93. package/docs/SystemPortalContentStats.md +43 -0
  94. package/docs/SystemPortalCourseStats.md +44 -0
  95. package/docs/SystemPortalEnrollmentStats.md +43 -0
  96. package/docs/SystemPortalHierarchy.md +38 -0
  97. package/docs/SystemPortalLicense.md +42 -0
  98. package/docs/SystemPortalRoleCount.md +36 -0
  99. package/docs/SystemPortalStorageUsage.md +49 -0
  100. package/docs/SystemPortalSupportStats.md +40 -0
  101. package/docs/SystemPortalUserStats.md +50 -0
  102. package/package.json +1 -1
  103. package/src/apis/PortalApi.ts +13 -0
  104. package/src/apis/QuestionApi.ts +63 -0
  105. package/src/apis/SystemApi.ts +54 -0
  106. package/src/models/GetCourseEnrollmentListItem.ts +8 -0
  107. package/src/models/GetResourceUsageCoursesInner.ts +9 -0
  108. package/src/models/GetSystemPortalOverview.ts +261 -0
  109. package/src/models/PostQuestionTags.ts +75 -0
  110. package/src/models/PostQuestionTagsResponse.ts +66 -0
  111. package/src/models/SystemPortalActivityStats.ts +101 -0
  112. package/src/models/SystemPortalCertificateStats.ts +93 -0
  113. package/src/models/SystemPortalContentStats.ts +102 -0
  114. package/src/models/SystemPortalCourseStats.ts +111 -0
  115. package/src/models/SystemPortalEnrollmentStats.ts +102 -0
  116. package/src/models/SystemPortalHierarchy.ts +82 -0
  117. package/src/models/SystemPortalLicense.ts +111 -0
  118. package/src/models/SystemPortalRoleCount.ts +91 -0
  119. package/src/models/SystemPortalStorageUsage.ts +129 -0
  120. package/src/models/SystemPortalSupportStats.ts +93 -0
  121. package/src/models/SystemPortalUserStats.ts +145 -0
  122. package/src/models/index.ts +14 -0
@@ -180,6 +180,7 @@ docs/GetSupportTicketList.md
180
180
  docs/GetSystemBillingItem.md
181
181
  docs/GetSystemBillingList.md
182
182
  docs/GetSystemMetrics.md
183
+ docs/GetSystemPortalOverview.md
183
184
  docs/GetUser.md
184
185
  docs/GetUserAvatarUpload.md
185
186
  docs/GetUserCourseList.md
@@ -298,6 +299,8 @@ docs/PostQuestionImportCommit.md
298
299
  docs/PostQuestionImportCommitItem.md
299
300
  docs/PostQuestionImportCommitResponse.md
300
301
  docs/PostQuestionImportParseResponse.md
302
+ docs/PostQuestionTags.md
303
+ docs/PostQuestionTagsResponse.md
301
304
  docs/PostReportExport.md
302
305
  docs/PostReportQuery.md
303
306
  docs/PostResetPassword.md
@@ -406,6 +409,17 @@ docs/ScormToolsApi.md
406
409
  docs/SupportTicketApi.md
407
410
  docs/SupportTicketUser.md
408
411
  docs/SystemApi.md
412
+ docs/SystemPortalActivityStats.md
413
+ docs/SystemPortalCertificateStats.md
414
+ docs/SystemPortalContentStats.md
415
+ docs/SystemPortalCourseStats.md
416
+ docs/SystemPortalEnrollmentStats.md
417
+ docs/SystemPortalHierarchy.md
418
+ docs/SystemPortalLicense.md
419
+ docs/SystemPortalRoleCount.md
420
+ docs/SystemPortalStorageUsage.md
421
+ docs/SystemPortalSupportStats.md
422
+ docs/SystemPortalUserStats.md
409
423
  docs/UpdateSelectedPortalResponse.md
410
424
  docs/UpdateSelectedPortalResponseHostPortal.md
411
425
  docs/UpdateSelectedPortalResponseSelectedPortal.md
@@ -613,6 +627,7 @@ src/models/GetSupportTicketList.ts
613
627
  src/models/GetSystemBillingItem.ts
614
628
  src/models/GetSystemBillingList.ts
615
629
  src/models/GetSystemMetrics.ts
630
+ src/models/GetSystemPortalOverview.ts
616
631
  src/models/GetUser.ts
617
632
  src/models/GetUserAvatarUpload.ts
618
633
  src/models/GetUserCourseList.ts
@@ -724,6 +739,8 @@ src/models/PostQuestionImportCommit.ts
724
739
  src/models/PostQuestionImportCommitItem.ts
725
740
  src/models/PostQuestionImportCommitResponse.ts
726
741
  src/models/PostQuestionImportParseResponse.ts
742
+ src/models/PostQuestionTags.ts
743
+ src/models/PostQuestionTagsResponse.ts
727
744
  src/models/PostReportExport.ts
728
745
  src/models/PostReportQuery.ts
729
746
  src/models/PostResetPassword.ts
@@ -824,6 +841,17 @@ src/models/ScormSetValueRequest.ts
824
841
  src/models/ScormSetValueResponse.ts
825
842
  src/models/ScormTerminateResponse.ts
826
843
  src/models/SupportTicketUser.ts
844
+ src/models/SystemPortalActivityStats.ts
845
+ src/models/SystemPortalCertificateStats.ts
846
+ src/models/SystemPortalContentStats.ts
847
+ src/models/SystemPortalCourseStats.ts
848
+ src/models/SystemPortalEnrollmentStats.ts
849
+ src/models/SystemPortalHierarchy.ts
850
+ src/models/SystemPortalLicense.ts
851
+ src/models/SystemPortalRoleCount.ts
852
+ src/models/SystemPortalStorageUsage.ts
853
+ src/models/SystemPortalSupportStats.ts
854
+ src/models/SystemPortalUserStats.ts
827
855
  src/models/UpdateSelectedPortalResponse.ts
828
856
  src/models/UpdateSelectedPortalResponseHostPortal.ts
829
857
  src/models/UpdateSelectedPortalResponseSelectedPortal.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.131.0
1
+ # @easyedu/js-lsm-api@1.133.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -361,6 +361,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
361
361
  *QuestionApi* | [**getQuestionList**](docs/QuestionApi.md#getquestionlist) | **GET** /questions | Get list of questions with filtering and pagination
362
362
  *QuestionApi* | [**getQuestionVersions**](docs/QuestionApi.md#getquestionversions) | **GET** /questions/{questionId}/versions | Get all versions of a question
363
363
  *QuestionApi* | [**postQuestion**](docs/QuestionApi.md#postquestion) | **POST** /questions | Create a new question
364
+ *QuestionApi* | [**postQuestionTags**](docs/QuestionApi.md#postquestiontags) | **POST** /questions/tags | Add tags to several questions
364
365
  *QuestionApi* | [**putQuestion**](docs/QuestionApi.md#putquestion) | **PUT** /questions/{questionId} | Create the next version of a question
365
366
  *QuestionImportApi* | [**postQuestionImportCommit**](docs/QuestionImportApi.md#postquestionimportcommit) | **POST** /question-imports/commit | Validate and atomically create, version, or skip approved question drafts
366
367
  *QuestionImportApi* | [**postQuestionImportParse**](docs/QuestionImportApi.md#postquestionimportparse) | **POST** /question-imports/parse | Parse a question document into stateless review drafts
@@ -397,6 +398,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
397
398
  *SystemApi* | [**getSystemBilling**](docs/SystemApi.md#getsystembilling) | **GET** /system/billing | List mock platform billing information
398
399
  *SystemApi* | [**getSystemMetrics**](docs/SystemApi.md#getsystemmetrics) | **GET** /system/metrics | Get platform-wide metrics
399
400
  *SystemApi* | [**getSystemPortal**](docs/SystemApi.md#getsystemportal) | **GET** /system/portals/{portalId} | Get platform portal detail
401
+ *SystemApi* | [**getSystemPortalOverview**](docs/SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics
400
402
  *SystemApi* | [**getSystemPortals**](docs/SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals
401
403
  *SystemApi* | [**getSystemSupportTickets**](docs/SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform
402
404
  *UserApi* | [**deleteUserAvatar**](docs/UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo
@@ -585,6 +587,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
585
587
  - [GetSystemBillingItem](docs/GetSystemBillingItem.md)
586
588
  - [GetSystemBillingList](docs/GetSystemBillingList.md)
587
589
  - [GetSystemMetrics](docs/GetSystemMetrics.md)
590
+ - [GetSystemPortalOverview](docs/GetSystemPortalOverview.md)
588
591
  - [GetUser](docs/GetUser.md)
589
592
  - [GetUserAvatarUpload](docs/GetUserAvatarUpload.md)
590
593
  - [GetUserCourseList](docs/GetUserCourseList.md)
@@ -696,6 +699,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
696
699
  - [PostQuestionImportCommitItem](docs/PostQuestionImportCommitItem.md)
697
700
  - [PostQuestionImportCommitResponse](docs/PostQuestionImportCommitResponse.md)
698
701
  - [PostQuestionImportParseResponse](docs/PostQuestionImportParseResponse.md)
702
+ - [PostQuestionTags](docs/PostQuestionTags.md)
703
+ - [PostQuestionTagsResponse](docs/PostQuestionTagsResponse.md)
699
704
  - [PostReportExport](docs/PostReportExport.md)
700
705
  - [PostReportQuery](docs/PostReportQuery.md)
701
706
  - [PostResetPassword](docs/PostResetPassword.md)
@@ -796,6 +801,17 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
796
801
  - [ScormSetValueResponse](docs/ScormSetValueResponse.md)
797
802
  - [ScormTerminateResponse](docs/ScormTerminateResponse.md)
798
803
  - [SupportTicketUser](docs/SupportTicketUser.md)
804
+ - [SystemPortalActivityStats](docs/SystemPortalActivityStats.md)
805
+ - [SystemPortalCertificateStats](docs/SystemPortalCertificateStats.md)
806
+ - [SystemPortalContentStats](docs/SystemPortalContentStats.md)
807
+ - [SystemPortalCourseStats](docs/SystemPortalCourseStats.md)
808
+ - [SystemPortalEnrollmentStats](docs/SystemPortalEnrollmentStats.md)
809
+ - [SystemPortalHierarchy](docs/SystemPortalHierarchy.md)
810
+ - [SystemPortalLicense](docs/SystemPortalLicense.md)
811
+ - [SystemPortalRoleCount](docs/SystemPortalRoleCount.md)
812
+ - [SystemPortalStorageUsage](docs/SystemPortalStorageUsage.md)
813
+ - [SystemPortalSupportStats](docs/SystemPortalSupportStats.md)
814
+ - [SystemPortalUserStats](docs/SystemPortalUserStats.md)
799
815
  - [UpdateSelectedPortalResponse](docs/UpdateSelectedPortalResponse.md)
800
816
  - [UpdateSelectedPortalResponseHostPortal](docs/UpdateSelectedPortalResponseHostPortal.md)
801
817
  - [UpdateSelectedPortalResponseSelectedPortal](docs/UpdateSelectedPortalResponseSelectedPortal.md)
@@ -818,7 +834,7 @@ and is automatically generated by the
818
834
  [OpenAPI Generator](https://openapi-generator.tech) project:
819
835
 
820
836
  - API version: `1.0.0`
821
- - Package version: `1.131.0`
837
+ - Package version: `1.133.0`
822
838
  - Generator version: `7.22.0`
823
839
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
824
840
 
@@ -50,6 +50,7 @@ export interface GetPortalUsersRequest {
50
50
  type?: GetPortalUsersTypeEnum;
51
51
  roles?: Array<GetPortalUsersRolesEnum>;
52
52
  search?: string;
53
+ status?: GetPortalUsersStatusEnum;
53
54
  page?: number;
54
55
  pageSize?: number;
55
56
  }
@@ -368,3 +369,11 @@ export declare const GetPortalUsersRolesEnum: {
368
369
  readonly Learner: "Learner";
369
370
  };
370
371
  export type GetPortalUsersRolesEnum = typeof GetPortalUsersRolesEnum[keyof typeof GetPortalUsersRolesEnum];
372
+ /**
373
+ * @export
374
+ */
375
+ export declare const GetPortalUsersStatusEnum: {
376
+ readonly Active: "active";
377
+ readonly Removed: "removed";
378
+ };
379
+ export type GetPortalUsersStatusEnum = typeof GetPortalUsersStatusEnum[keyof typeof GetPortalUsersStatusEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.GetPortalUsersRolesEnum = exports.GetPortalUsersTypeEnum = exports.PortalApi = void 0;
25
+ exports.GetPortalUsersStatusEnum = exports.GetPortalUsersRolesEnum = exports.GetPortalUsersTypeEnum = exports.PortalApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const GetPortal_1 = require("../models/GetPortal");
28
28
  const GetPortalFaviconUpload_1 = require("../models/GetPortalFaviconUpload");
@@ -369,6 +369,9 @@ class PortalApi extends runtime.BaseAPI {
369
369
  if (requestParameters['search'] != null) {
370
370
  queryParameters['search'] = requestParameters['search'];
371
371
  }
372
+ if (requestParameters['status'] != null) {
373
+ queryParameters['status'] = requestParameters['status'];
374
+ }
372
375
  if (requestParameters['page'] != null) {
373
376
  queryParameters['page'] = requestParameters['page'];
374
377
  }
@@ -955,3 +958,10 @@ exports.GetPortalUsersRolesEnum = {
955
958
  Instructor: 'Instructor',
956
959
  Learner: 'Learner'
957
960
  };
961
+ /**
962
+ * @export
963
+ */
964
+ exports.GetPortalUsersStatusEnum = {
965
+ Active: 'active',
966
+ Removed: 'removed'
967
+ };
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
13
13
  import { type GetQuestion } from '../models/GetQuestion';
14
14
  import { type GetQuestionList } from '../models/GetQuestionList';
15
15
  import { type PostQuestion } from '../models/PostQuestion';
16
+ import { type PostQuestionTags } from '../models/PostQuestionTags';
17
+ import { type PostQuestionTagsResponse } from '../models/PostQuestionTagsResponse';
16
18
  import { type PutQuestion } from '../models/PutQuestion';
17
19
  export interface DeleteQuestionRequest {
18
20
  questionId: string;
@@ -33,6 +35,9 @@ export interface GetQuestionVersionsRequest {
33
35
  export interface PostQuestionRequest {
34
36
  postQuestion: PostQuestion;
35
37
  }
38
+ export interface PostQuestionTagsRequest {
39
+ postQuestionTags: PostQuestionTags;
40
+ }
36
41
  export interface PutQuestionRequest {
37
42
  questionId: string;
38
43
  putQuestion: PutQuestion;
@@ -101,6 +106,20 @@ export declare class QuestionApi extends runtime.BaseAPI {
101
106
  * Create a new question
102
107
  */
103
108
  postQuestion(requestParameters: PostQuestionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuestion>;
109
+ /**
110
+ * Creates request options for postQuestionTags without sending the request
111
+ */
112
+ postQuestionTagsRequestOpts(requestParameters: PostQuestionTagsRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
115
+ * Add tags to several questions
116
+ */
117
+ postQuestionTagsRaw(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostQuestionTagsResponse>>;
118
+ /**
119
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
120
+ * Add tags to several questions
121
+ */
122
+ postQuestionTags(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostQuestionTagsResponse>;
104
123
  /**
105
124
  * Creates request options for putQuestion without sending the request
106
125
  */
@@ -27,6 +27,8 @@ const runtime = require("../runtime");
27
27
  const GetQuestion_1 = require("../models/GetQuestion");
28
28
  const GetQuestionList_1 = require("../models/GetQuestionList");
29
29
  const PostQuestion_1 = require("../models/PostQuestion");
30
+ const PostQuestionTags_1 = require("../models/PostQuestionTags");
31
+ const PostQuestionTagsResponse_1 = require("../models/PostQuestionTagsResponse");
30
32
  const PutQuestion_1 = require("../models/PutQuestion");
31
33
  /**
32
34
  *
@@ -238,6 +240,48 @@ class QuestionApi extends runtime.BaseAPI {
238
240
  return yield response.value();
239
241
  });
240
242
  }
243
+ /**
244
+ * Creates request options for postQuestionTags without sending the request
245
+ */
246
+ postQuestionTagsRequestOpts(requestParameters) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ if (requestParameters['postQuestionTags'] == null) {
249
+ throw new runtime.RequiredError('postQuestionTags', 'Required parameter "postQuestionTags" was null or undefined when calling postQuestionTags().');
250
+ }
251
+ const queryParameters = {};
252
+ const headerParameters = {};
253
+ headerParameters['Content-Type'] = 'application/json';
254
+ let urlPath = `/questions/tags`;
255
+ return {
256
+ path: urlPath,
257
+ method: 'POST',
258
+ headers: headerParameters,
259
+ query: queryParameters,
260
+ body: (0, PostQuestionTags_1.PostQuestionTagsToJSON)(requestParameters['postQuestionTags']),
261
+ };
262
+ });
263
+ }
264
+ /**
265
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
266
+ * Add tags to several questions
267
+ */
268
+ postQuestionTagsRaw(requestParameters, initOverrides) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ const requestOptions = yield this.postQuestionTagsRequestOpts(requestParameters);
271
+ const response = yield this.request(requestOptions, initOverrides);
272
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostQuestionTagsResponse_1.PostQuestionTagsResponseFromJSON)(jsonValue));
273
+ });
274
+ }
275
+ /**
276
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
277
+ * Add tags to several questions
278
+ */
279
+ postQuestionTags(requestParameters, initOverrides) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ const response = yield this.postQuestionTagsRaw(requestParameters, initOverrides);
282
+ return yield response.value();
283
+ });
284
+ }
241
285
  /**
242
286
  * Creates request options for putQuestion without sending the request
243
287
  */
@@ -15,6 +15,7 @@ import { type GetPortalList } from '../models/GetPortalList';
15
15
  import { type GetSupportTicketList } from '../models/GetSupportTicketList';
16
16
  import { type GetSystemBillingList } from '../models/GetSystemBillingList';
17
17
  import { type GetSystemMetrics } from '../models/GetSystemMetrics';
18
+ import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
18
19
  export interface GetSystemBillingRequest {
19
20
  page?: number;
20
21
  pageSize?: number;
@@ -22,6 +23,9 @@ export interface GetSystemBillingRequest {
22
23
  export interface GetSystemPortalRequest {
23
24
  portalId: string;
24
25
  }
26
+ export interface GetSystemPortalOverviewRequest {
27
+ portalId: string;
28
+ }
25
29
  export interface GetSystemPortalsRequest {
26
30
  page?: number;
27
31
  pageSize?: number;
@@ -70,6 +74,18 @@ export declare class SystemApi extends runtime.BaseAPI {
70
74
  * Get platform portal detail
71
75
  */
72
76
  getSystemPortal(requestParameters: GetSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
77
+ /**
78
+ * Creates request options for getSystemPortalOverview without sending the request
79
+ */
80
+ getSystemPortalOverviewRequestOpts(requestParameters: GetSystemPortalOverviewRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ * Get detailed platform portal overview and usage statistics
83
+ */
84
+ getSystemPortalOverviewRaw(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSystemPortalOverview>>;
85
+ /**
86
+ * Get detailed platform portal overview and usage statistics
87
+ */
88
+ getSystemPortalOverview(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSystemPortalOverview>;
73
89
  /**
74
90
  * Creates request options for getSystemPortals without sending the request
75
91
  */
@@ -29,6 +29,7 @@ const GetPortalList_1 = require("../models/GetPortalList");
29
29
  const GetSupportTicketList_1 = require("../models/GetSupportTicketList");
30
30
  const GetSystemBillingList_1 = require("../models/GetSystemBillingList");
31
31
  const GetSystemMetrics_1 = require("../models/GetSystemMetrics");
32
+ const GetSystemPortalOverview_1 = require("../models/GetSystemPortalOverview");
32
33
  /**
33
34
  *
34
35
  */
@@ -148,6 +149,45 @@ class SystemApi extends runtime.BaseAPI {
148
149
  return yield response.value();
149
150
  });
150
151
  }
152
+ /**
153
+ * Creates request options for getSystemPortalOverview without sending the request
154
+ */
155
+ getSystemPortalOverviewRequestOpts(requestParameters) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ if (requestParameters['portalId'] == null) {
158
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getSystemPortalOverview().');
159
+ }
160
+ const queryParameters = {};
161
+ const headerParameters = {};
162
+ let urlPath = `/system/portals/{portalId}/overview`;
163
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
164
+ return {
165
+ path: urlPath,
166
+ method: 'GET',
167
+ headers: headerParameters,
168
+ query: queryParameters,
169
+ };
170
+ });
171
+ }
172
+ /**
173
+ * Get detailed platform portal overview and usage statistics
174
+ */
175
+ getSystemPortalOverviewRaw(requestParameters, initOverrides) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ const requestOptions = yield this.getSystemPortalOverviewRequestOpts(requestParameters);
178
+ const response = yield this.request(requestOptions, initOverrides);
179
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSystemPortalOverview_1.GetSystemPortalOverviewFromJSON)(jsonValue));
180
+ });
181
+ }
182
+ /**
183
+ * Get detailed platform portal overview and usage statistics
184
+ */
185
+ getSystemPortalOverview(requestParameters, initOverrides) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const response = yield this.getSystemPortalOverviewRaw(requestParameters, initOverrides);
188
+ return yield response.value();
189
+ });
190
+ }
151
191
  /**
152
192
  * Creates request options for getSystemPortals without sending the request
153
193
  */
@@ -50,6 +50,7 @@ export interface GetPortalUsersRequest {
50
50
  type?: GetPortalUsersTypeEnum;
51
51
  roles?: Array<GetPortalUsersRolesEnum>;
52
52
  search?: string;
53
+ status?: GetPortalUsersStatusEnum;
53
54
  page?: number;
54
55
  pageSize?: number;
55
56
  }
@@ -368,3 +369,11 @@ export declare const GetPortalUsersRolesEnum: {
368
369
  readonly Learner: "Learner";
369
370
  };
370
371
  export type GetPortalUsersRolesEnum = typeof GetPortalUsersRolesEnum[keyof typeof GetPortalUsersRolesEnum];
372
+ /**
373
+ * @export
374
+ */
375
+ export declare const GetPortalUsersStatusEnum: {
376
+ readonly Active: "active";
377
+ readonly Removed: "removed";
378
+ };
379
+ export type GetPortalUsersStatusEnum = typeof GetPortalUsersStatusEnum[keyof typeof GetPortalUsersStatusEnum];
@@ -366,6 +366,9 @@ export class PortalApi extends runtime.BaseAPI {
366
366
  if (requestParameters['search'] != null) {
367
367
  queryParameters['search'] = requestParameters['search'];
368
368
  }
369
+ if (requestParameters['status'] != null) {
370
+ queryParameters['status'] = requestParameters['status'];
371
+ }
369
372
  if (requestParameters['page'] != null) {
370
373
  queryParameters['page'] = requestParameters['page'];
371
374
  }
@@ -951,3 +954,10 @@ export const GetPortalUsersRolesEnum = {
951
954
  Instructor: 'Instructor',
952
955
  Learner: 'Learner'
953
956
  };
957
+ /**
958
+ * @export
959
+ */
960
+ export const GetPortalUsersStatusEnum = {
961
+ Active: 'active',
962
+ Removed: 'removed'
963
+ };
@@ -13,6 +13,8 @@ import * as runtime from '../runtime';
13
13
  import { type GetQuestion } from '../models/GetQuestion';
14
14
  import { type GetQuestionList } from '../models/GetQuestionList';
15
15
  import { type PostQuestion } from '../models/PostQuestion';
16
+ import { type PostQuestionTags } from '../models/PostQuestionTags';
17
+ import { type PostQuestionTagsResponse } from '../models/PostQuestionTagsResponse';
16
18
  import { type PutQuestion } from '../models/PutQuestion';
17
19
  export interface DeleteQuestionRequest {
18
20
  questionId: string;
@@ -33,6 +35,9 @@ export interface GetQuestionVersionsRequest {
33
35
  export interface PostQuestionRequest {
34
36
  postQuestion: PostQuestion;
35
37
  }
38
+ export interface PostQuestionTagsRequest {
39
+ postQuestionTags: PostQuestionTags;
40
+ }
36
41
  export interface PutQuestionRequest {
37
42
  questionId: string;
38
43
  putQuestion: PutQuestion;
@@ -101,6 +106,20 @@ export declare class QuestionApi extends runtime.BaseAPI {
101
106
  * Create a new question
102
107
  */
103
108
  postQuestion(requestParameters: PostQuestionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetQuestion>;
109
+ /**
110
+ * Creates request options for postQuestionTags without sending the request
111
+ */
112
+ postQuestionTagsRequestOpts(requestParameters: PostQuestionTagsRequest): Promise<runtime.RequestOpts>;
113
+ /**
114
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
115
+ * Add tags to several questions
116
+ */
117
+ postQuestionTagsRaw(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostQuestionTagsResponse>>;
118
+ /**
119
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
120
+ * Add tags to several questions
121
+ */
122
+ postQuestionTags(requestParameters: PostQuestionTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostQuestionTagsResponse>;
104
123
  /**
105
124
  * Creates request options for putQuestion without sending the request
106
125
  */
@@ -24,6 +24,8 @@ import * as runtime from '../runtime';
24
24
  import { GetQuestionFromJSON, } from '../models/GetQuestion';
25
25
  import { GetQuestionListFromJSON, } from '../models/GetQuestionList';
26
26
  import { PostQuestionToJSON, } from '../models/PostQuestion';
27
+ import { PostQuestionTagsToJSON, } from '../models/PostQuestionTags';
28
+ import { PostQuestionTagsResponseFromJSON, } from '../models/PostQuestionTagsResponse';
27
29
  import { PutQuestionToJSON, } from '../models/PutQuestion';
28
30
  /**
29
31
  *
@@ -235,6 +237,48 @@ export class QuestionApi extends runtime.BaseAPI {
235
237
  return yield response.value();
236
238
  });
237
239
  }
240
+ /**
241
+ * Creates request options for postQuestionTags without sending the request
242
+ */
243
+ postQuestionTagsRequestOpts(requestParameters) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ if (requestParameters['postQuestionTags'] == null) {
246
+ throw new runtime.RequiredError('postQuestionTags', 'Required parameter "postQuestionTags" was null or undefined when calling postQuestionTags().');
247
+ }
248
+ const queryParameters = {};
249
+ const headerParameters = {};
250
+ headerParameters['Content-Type'] = 'application/json';
251
+ let urlPath = `/questions/tags`;
252
+ return {
253
+ path: urlPath,
254
+ method: 'POST',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ body: PostQuestionTagsToJSON(requestParameters['postQuestionTags']),
258
+ };
259
+ });
260
+ }
261
+ /**
262
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
263
+ * Add tags to several questions
264
+ */
265
+ postQuestionTagsRaw(requestParameters, initOverrides) {
266
+ return __awaiter(this, void 0, void 0, function* () {
267
+ const requestOptions = yield this.postQuestionTagsRequestOpts(requestParameters);
268
+ const response = yield this.request(requestOptions, initOverrides);
269
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostQuestionTagsResponseFromJSON(jsonValue));
270
+ });
271
+ }
272
+ /**
273
+ * Adds the given tags to every listed question, keeping existing tags. Tags are metadata, so no new question versions are created.
274
+ * Add tags to several questions
275
+ */
276
+ postQuestionTags(requestParameters, initOverrides) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ const response = yield this.postQuestionTagsRaw(requestParameters, initOverrides);
279
+ return yield response.value();
280
+ });
281
+ }
238
282
  /**
239
283
  * Creates request options for putQuestion without sending the request
240
284
  */
@@ -15,6 +15,7 @@ import { type GetPortalList } from '../models/GetPortalList';
15
15
  import { type GetSupportTicketList } from '../models/GetSupportTicketList';
16
16
  import { type GetSystemBillingList } from '../models/GetSystemBillingList';
17
17
  import { type GetSystemMetrics } from '../models/GetSystemMetrics';
18
+ import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
18
19
  export interface GetSystemBillingRequest {
19
20
  page?: number;
20
21
  pageSize?: number;
@@ -22,6 +23,9 @@ export interface GetSystemBillingRequest {
22
23
  export interface GetSystemPortalRequest {
23
24
  portalId: string;
24
25
  }
26
+ export interface GetSystemPortalOverviewRequest {
27
+ portalId: string;
28
+ }
25
29
  export interface GetSystemPortalsRequest {
26
30
  page?: number;
27
31
  pageSize?: number;
@@ -70,6 +74,18 @@ export declare class SystemApi extends runtime.BaseAPI {
70
74
  * Get platform portal detail
71
75
  */
72
76
  getSystemPortal(requestParameters: GetSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
77
+ /**
78
+ * Creates request options for getSystemPortalOverview without sending the request
79
+ */
80
+ getSystemPortalOverviewRequestOpts(requestParameters: GetSystemPortalOverviewRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ * Get detailed platform portal overview and usage statistics
83
+ */
84
+ getSystemPortalOverviewRaw(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSystemPortalOverview>>;
85
+ /**
86
+ * Get detailed platform portal overview and usage statistics
87
+ */
88
+ getSystemPortalOverview(requestParameters: GetSystemPortalOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSystemPortalOverview>;
73
89
  /**
74
90
  * Creates request options for getSystemPortals without sending the request
75
91
  */
@@ -26,6 +26,7 @@ import { GetPortalListFromJSON, } from '../models/GetPortalList';
26
26
  import { GetSupportTicketListFromJSON, } from '../models/GetSupportTicketList';
27
27
  import { GetSystemBillingListFromJSON, } from '../models/GetSystemBillingList';
28
28
  import { GetSystemMetricsFromJSON, } from '../models/GetSystemMetrics';
29
+ import { GetSystemPortalOverviewFromJSON, } from '../models/GetSystemPortalOverview';
29
30
  /**
30
31
  *
31
32
  */
@@ -145,6 +146,45 @@ export class SystemApi extends runtime.BaseAPI {
145
146
  return yield response.value();
146
147
  });
147
148
  }
149
+ /**
150
+ * Creates request options for getSystemPortalOverview without sending the request
151
+ */
152
+ getSystemPortalOverviewRequestOpts(requestParameters) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ if (requestParameters['portalId'] == null) {
155
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getSystemPortalOverview().');
156
+ }
157
+ const queryParameters = {};
158
+ const headerParameters = {};
159
+ let urlPath = `/system/portals/{portalId}/overview`;
160
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
161
+ return {
162
+ path: urlPath,
163
+ method: 'GET',
164
+ headers: headerParameters,
165
+ query: queryParameters,
166
+ };
167
+ });
168
+ }
169
+ /**
170
+ * Get detailed platform portal overview and usage statistics
171
+ */
172
+ getSystemPortalOverviewRaw(requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const requestOptions = yield this.getSystemPortalOverviewRequestOpts(requestParameters);
175
+ const response = yield this.request(requestOptions, initOverrides);
176
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSystemPortalOverviewFromJSON(jsonValue));
177
+ });
178
+ }
179
+ /**
180
+ * Get detailed platform portal overview and usage statistics
181
+ */
182
+ getSystemPortalOverview(requestParameters, initOverrides) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const response = yield this.getSystemPortalOverviewRaw(requestParameters, initOverrides);
185
+ return yield response.value();
186
+ });
187
+ }
148
188
  /**
149
189
  * Creates request options for getSystemPortals without sending the request
150
190
  */
@@ -57,6 +57,12 @@ export interface GetCourseEnrollmentListItem {
57
57
  * @memberof GetCourseEnrollmentListItem
58
58
  */
59
59
  lastName: string;
60
+ /**
61
+ * Contact email of the enrolled user. Only populated for Instructor enrollments so learners can contact course instructors; null for Student enrollments.
62
+ * @type {string}
63
+ * @memberof GetCourseEnrollmentListItem
64
+ */
65
+ email?: string | null;
60
66
  /**
61
67
  * Start date of the enrollment (Unix timestamp)
62
68
  * @type {number}
@@ -94,6 +94,7 @@ export function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminat
94
94
  'courseVersionNumber': json['course_version_number'],
95
95
  'firstName': json['first_name'],
96
96
  'lastName': json['last_name'],
97
+ 'email': json['email'] == null ? undefined : json['email'],
97
98
  'enrollmentDateStart': json['enrollment_date_start'],
98
99
  'enrollmentDateEnd': json['enrollment_date_end'],
99
100
  'status': json['status'],
@@ -118,6 +119,7 @@ export function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminato
118
119
  'course_version_number': value['courseVersionNumber'],
119
120
  'first_name': value['firstName'],
120
121
  'last_name': value['lastName'],
122
+ 'email': value['email'],
121
123
  'enrollment_date_start': value['enrollmentDateStart'],
122
124
  'enrollment_date_end': value['enrollmentDateEnd'],
123
125
  'status': value['status'],
@@ -22,6 +22,12 @@ export interface GetResourceUsageCoursesInner {
22
22
  * @memberof GetResourceUsageCoursesInner
23
23
  */
24
24
  courseId: string;
25
+ /**
26
+ * Display name of the course
27
+ * @type {string}
28
+ * @memberof GetResourceUsageCoursesInner
29
+ */
30
+ courseName: string;
25
31
  /**
26
32
  *
27
33
  * @type {string}