@iblai/iblai-api 0.0.2-core → 0.0.12-scan-core

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 (200) hide show
  1. package/dist/index.cjs.js +3800 -3143
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +3800 -3143
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +3800 -3143
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +27 -5
  8. package/dist/types/models/CatalogAutoIncrementResponse.d.ts +11 -11
  9. package/dist/types/models/CourseGroupSuggestionDetail.d.ts +2 -2
  10. package/dist/types/models/CourseInvitationDetail.d.ts +2 -2
  11. package/dist/types/models/CourseLicenseAssignmentDetail.d.ts +2 -2
  12. package/dist/types/models/CourseLicenseDetail.d.ts +4 -0
  13. package/dist/types/models/CourseLicenseGroupAssignmentDetail.d.ts +2 -2
  14. package/dist/types/models/CourseReviewPaginatedResponse.d.ts +18 -0
  15. package/dist/types/models/CourseReviewRequest.d.ts +37 -0
  16. package/dist/types/models/CourseReviewResponse.d.ts +40 -0
  17. package/dist/types/models/PaginatedAssertionsResponse.d.ts +21 -0
  18. package/dist/types/models/PaginatedCourseAccessRequest.d.ts +2 -2
  19. package/dist/types/models/PaginatedCourseGroupSuggestion.d.ts +2 -2
  20. package/dist/types/models/PaginatedCourseInvitation.d.ts +2 -2
  21. package/dist/types/models/PaginatedCourseLicense.d.ts +2 -2
  22. package/dist/types/models/PaginatedCourseLicenseAssignment.d.ts +2 -2
  23. package/dist/types/models/PaginatedCourseLicenseGroupAssignment.d.ts +2 -2
  24. package/dist/types/models/PaginatedCourseSuggestion.d.ts +2 -2
  25. package/dist/types/models/PaginatedPathwayGroupSuggestion.d.ts +2 -2
  26. package/dist/types/models/PaginatedPathwaySuggestion.d.ts +2 -2
  27. package/dist/types/models/PaginatedPlatformInvitation.d.ts +2 -2
  28. package/dist/types/models/PaginatedPlatformLicense.d.ts +2 -2
  29. package/dist/types/models/PaginatedProgramGroupSuggestion.d.ts +2 -2
  30. package/dist/types/models/PaginatedProgramInvitation.d.ts +2 -2
  31. package/dist/types/models/PaginatedProgramLicense.d.ts +2 -2
  32. package/dist/types/models/PaginatedProgramLicenseAssignment.d.ts +2 -2
  33. package/dist/types/models/PaginatedProgramLicenseGroupAssignment.d.ts +2 -2
  34. package/dist/types/models/PaginatedProgramSuggestion.d.ts +2 -2
  35. package/dist/types/models/PaginatedRbacGroupList.d.ts +7 -0
  36. package/dist/types/models/PaginatedRbacPolicyList.d.ts +7 -0
  37. package/dist/types/models/PaginatedRbacRoleList.d.ts +7 -0
  38. package/dist/types/models/PaginatedSkill.d.ts +7 -0
  39. package/dist/types/models/PaginatedUserLicense.d.ts +2 -2
  40. package/dist/types/models/PaginatedUserLicenseAssignment.d.ts +2 -2
  41. package/dist/types/models/PaginatedUserLicenseGroupAssignment.d.ts +2 -2
  42. package/dist/types/models/PatchedRbacGroup.d.ts +34 -0
  43. package/dist/types/models/PatchedRbacPolicy.d.ts +48 -0
  44. package/dist/types/models/PatchedRbacRole.d.ts +20 -0
  45. package/dist/types/models/PathwayGroupSuggestionDetail.d.ts +2 -2
  46. package/dist/types/models/PlatformInvitationDetail.d.ts +2 -2
  47. package/dist/types/models/PlatformSkillPointResponse.d.ts +2 -2
  48. package/dist/types/models/ProgramEnrollmentSearchResponse.d.ts +22 -0
  49. package/dist/types/models/ProgramLicenseAssignmentDetail.d.ts +4 -9
  50. package/dist/types/models/ProgramLicenseDetail.d.ts +6 -2
  51. package/dist/types/models/ProgramMetadataRequest.d.ts +29 -0
  52. package/dist/types/models/ProgramMetadataResponse.d.ts +29 -0
  53. package/dist/types/models/ProgramReview.d.ts +41 -0
  54. package/dist/types/models/ProgramReviewPaginatedResponse.d.ts +22 -0
  55. package/dist/types/models/ProgramReviewRequest.d.ts +37 -0
  56. package/dist/types/models/RbacBaseRole.d.ts +15 -0
  57. package/dist/types/models/RbacGroup.d.ts +34 -0
  58. package/dist/types/models/RbacPlatform.d.ts +14 -0
  59. package/dist/types/models/RbacPolicy.d.ts +48 -0
  60. package/dist/types/models/RbacPolicyGroup.d.ts +20 -0
  61. package/dist/types/models/RbacRole.d.ts +20 -0
  62. package/dist/types/models/RbacUser.d.ts +13 -0
  63. package/dist/types/models/StripeBillingPageIdentifierResponse.d.ts +9 -0
  64. package/dist/types/models/StripeContext.d.ts +7 -0
  65. package/dist/types/models/StripeNewUserTenantLaunchRequest.d.ts +20 -0
  66. package/dist/types/models/UserApp.d.ts +0 -2
  67. package/dist/types/models/UserLicenseAssignmentDetail.d.ts +1 -1
  68. package/dist/types/models/UserLicenseDetail.d.ts +5 -1
  69. package/dist/types/models/UserLicenseGroupAssignmentDetail.d.ts +2 -2
  70. package/dist/types/services/AnalyticsService.d.ts +42 -13
  71. package/dist/types/services/AudienceService.d.ts +345 -149
  72. package/dist/types/services/CareerService.d.ts +117 -90
  73. package/dist/types/services/CatalogService.d.ts +3799 -1430
  74. package/dist/types/services/CoreService.d.ts +452 -126
  75. package/dist/types/services/CredentialsService.d.ts +177 -141
  76. package/dist/types/services/DepartmentsService.d.ts +53 -16
  77. package/dist/types/services/EngagementService.d.ts +459 -179
  78. package/dist/types/services/FeaturesService.d.ts +16 -7
  79. package/dist/types/services/FinanceService.d.ts +49 -20
  80. package/dist/types/services/MediaResourcesService.d.ts +243 -67
  81. package/dist/types/services/NotificationBuilderService.d.ts +31 -17
  82. package/dist/types/services/NotificationService.d.ts +56 -49
  83. package/dist/types/services/OrgsService.d.ts +106 -77
  84. package/dist/types/services/OverviewService.d.ts +154 -55
  85. package/dist/types/services/PerformanceService.d.ts +132 -56
  86. package/dist/types/services/PerlearnerService.d.ts +431 -217
  87. package/dist/types/services/PlatformService.d.ts +221 -116
  88. package/dist/types/services/ProviderAssociationService.d.ts +3 -2
  89. package/dist/types/services/ProvidersService.d.ts +40 -18
  90. package/dist/types/services/ProvisionService.d.ts +3 -2
  91. package/dist/types/services/RecommendationsService.d.ts +3 -3
  92. package/dist/types/services/ReportsService.d.ts +22 -16
  93. package/dist/types/services/RolesService.d.ts +8 -6
  94. package/dist/types/services/SearchService.d.ts +305 -80
  95. package/dist/types/services/ServiceService.d.ts +89 -29
  96. package/dist/types/services/SkillsService.d.ts +40 -32
  97. package/dist/types/services/UserGroupsService.d.ts +53 -16
  98. package/package.json +3 -2
  99. package/src/core/OpenAPI.ts +1 -1
  100. package/src/index.ts +27 -5
  101. package/src/models/CatalogAutoIncrementResponse.ts +11 -11
  102. package/src/models/CourseGroupSuggestionDetail.ts +2 -2
  103. package/src/models/CourseInvitationDetail.ts +2 -2
  104. package/src/models/CourseLicenseAssignmentDetail.ts +2 -2
  105. package/src/models/CourseLicenseDetail.ts +4 -0
  106. package/src/models/CourseLicenseGroupAssignmentDetail.ts +2 -2
  107. package/src/models/CourseReviewPaginatedResponse.ts +23 -0
  108. package/src/models/CourseReviewRequest.ts +42 -0
  109. package/src/models/CourseReviewResponse.ts +45 -0
  110. package/src/models/PaginatedAssertionsResponse.ts +26 -0
  111. package/src/models/PaginatedCourseAccessRequest.ts +2 -2
  112. package/src/models/PaginatedCourseGroupSuggestion.ts +2 -2
  113. package/src/models/PaginatedCourseInvitation.ts +2 -2
  114. package/src/models/PaginatedCourseLicense.ts +2 -2
  115. package/src/models/PaginatedCourseLicenseAssignment.ts +2 -2
  116. package/src/models/PaginatedCourseLicenseGroupAssignment.ts +2 -2
  117. package/src/models/PaginatedCourseSuggestion.ts +2 -2
  118. package/src/models/PaginatedPathwayGroupSuggestion.ts +2 -2
  119. package/src/models/PaginatedPathwaySuggestion.ts +2 -2
  120. package/src/models/PaginatedPlatformInvitation.ts +2 -2
  121. package/src/models/PaginatedPlatformLicense.ts +2 -2
  122. package/src/models/PaginatedProgramGroupSuggestion.ts +2 -2
  123. package/src/models/PaginatedProgramInvitation.ts +2 -2
  124. package/src/models/PaginatedProgramLicense.ts +2 -2
  125. package/src/models/PaginatedProgramLicenseAssignment.ts +2 -2
  126. package/src/models/PaginatedProgramLicenseGroupAssignment.ts +2 -2
  127. package/src/models/PaginatedProgramSuggestion.ts +2 -2
  128. package/src/models/PaginatedRbacGroupList.ts +12 -0
  129. package/src/models/PaginatedRbacPolicyList.ts +12 -0
  130. package/src/models/PaginatedRbacRoleList.ts +12 -0
  131. package/src/models/PaginatedSkill.ts +12 -0
  132. package/src/models/PaginatedUserLicense.ts +2 -2
  133. package/src/models/PaginatedUserLicenseAssignment.ts +2 -2
  134. package/src/models/PaginatedUserLicenseGroupAssignment.ts +2 -2
  135. package/src/models/PatchedRbacGroup.ts +39 -0
  136. package/src/models/PatchedRbacPolicy.ts +53 -0
  137. package/src/models/PatchedRbacRole.ts +25 -0
  138. package/src/models/PathwayGroupSuggestionDetail.ts +2 -2
  139. package/src/models/PlatformInvitationDetail.ts +2 -2
  140. package/src/models/PlatformSkillPointResponse.ts +2 -2
  141. package/src/models/ProgramEnrollmentSearchResponse.ts +27 -0
  142. package/src/models/ProgramLicenseAssignmentDetail.ts +4 -9
  143. package/src/models/ProgramLicenseDetail.ts +6 -2
  144. package/src/models/ProgramMetadataRequest.ts +34 -0
  145. package/src/models/ProgramMetadataResponse.ts +34 -0
  146. package/src/models/ProgramReview.ts +46 -0
  147. package/src/models/ProgramReviewPaginatedResponse.ts +27 -0
  148. package/src/models/ProgramReviewRequest.ts +42 -0
  149. package/src/models/RbacBaseRole.ts +20 -0
  150. package/src/models/RbacGroup.ts +39 -0
  151. package/src/models/RbacPlatform.ts +19 -0
  152. package/src/models/RbacPolicy.ts +53 -0
  153. package/src/models/RbacPolicyGroup.ts +25 -0
  154. package/src/models/RbacRole.ts +25 -0
  155. package/src/models/RbacUser.ts +18 -0
  156. package/src/models/StripeBillingPageIdentifierResponse.ts +14 -0
  157. package/src/models/StripeContext.ts +12 -0
  158. package/src/models/StripeNewUserTenantLaunchRequest.ts +25 -0
  159. package/src/models/UserApp.ts +0 -2
  160. package/src/models/UserLicenseAssignmentDetail.ts +1 -1
  161. package/src/models/UserLicenseDetail.ts +5 -1
  162. package/src/models/UserLicenseGroupAssignmentDetail.ts +2 -2
  163. package/src/services/AnalyticsService.ts +45 -16
  164. package/src/services/AudienceService.ts +380 -184
  165. package/src/services/CareerService.ts +144 -117
  166. package/src/services/CatalogService.ts +6902 -4245
  167. package/src/services/CoreService.ts +782 -172
  168. package/src/services/CredentialsService.ts +257 -176
  169. package/src/services/DepartmentsService.ts +56 -19
  170. package/src/services/EngagementService.ts +528 -236
  171. package/src/services/FeaturesService.ts +19 -10
  172. package/src/services/FinanceService.ts +54 -25
  173. package/src/services/MediaResourcesService.ts +251 -75
  174. package/src/services/NotificationBuilderService.ts +36 -22
  175. package/src/services/NotificationService.ts +73 -61
  176. package/src/services/OrgsService.ts +135 -106
  177. package/src/services/OverviewService.ts +172 -73
  178. package/src/services/PerformanceService.ts +153 -77
  179. package/src/services/PerlearnerService.ts +591 -279
  180. package/src/services/PlatformService.ts +278 -157
  181. package/src/services/ProviderAssociationService.ts +4 -3
  182. package/src/services/ProvidersService.ts +58 -27
  183. package/src/services/ProvisionService.ts +4 -3
  184. package/src/services/RecommendationsService.ts +5 -4
  185. package/src/services/ReportsService.ts +28 -22
  186. package/src/services/RolesService.ts +10 -8
  187. package/src/services/SearchService.ts +323 -98
  188. package/src/services/ServiceService.ts +149 -39
  189. package/src/services/SkillsService.ts +56 -44
  190. package/src/services/UserGroupsService.ts +56 -19
  191. package/dist/types/models/BlockSkillPointInfoResponse.d.ts +0 -10
  192. package/dist/types/models/CourseCompletionCatalogResponse.d.ts +0 -11
  193. package/dist/types/models/CourseEligibilityCheckResponse.d.ts +0 -25
  194. package/dist/types/models/CourseSkillPointInfoResponse.d.ts +0 -10
  195. package/dist/types/models/UserSkillPointInfoResponse.d.ts +0 -10
  196. package/src/models/BlockSkillPointInfoResponse.ts +0 -15
  197. package/src/models/CourseCompletionCatalogResponse.ts +0 -16
  198. package/src/models/CourseEligibilityCheckResponse.ts +0 -30
  199. package/src/models/CourseSkillPointInfoResponse.ts +0 -15
  200. package/src/models/UserSkillPointInfoResponse.ts +0 -15
@@ -2,8 +2,10 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { StripeBillingPageIdentifierResponse } from '../models/StripeBillingPageIdentifierResponse';
5
6
  import type { StripeCheckoutSessionRequest } from '../models/StripeCheckoutSessionRequest';
6
7
  import type { StripeCheckoutSessionResponse } from '../models/StripeCheckoutSessionResponse';
8
+ import type { StripeContext } from '../models/StripeContext';
7
9
  import type { StripeCustomerPortalRequest } from '../models/StripeCustomerPortalRequest';
8
10
  import type { StripeCustomerPortalResponse } from '../models/StripeCustomerPortalResponse';
9
11
  import type { StripeLocalProduct } from '../models/StripeLocalProduct';
@@ -30,13 +32,14 @@ export class ServiceService {
30
32
  * ```
31
33
  *
32
34
  * To create a tenant without a payment provider, call the API without ny of the above provider keys in the request body
33
- * @param requestBody
34
35
  * @returns TenantLaunchResponse
35
36
  * @throws ApiError
36
37
  */
37
- public static serviceLaunchTenantCreate(
38
+ public static serviceLaunchTenantCreate({
39
+ requestBody,
40
+ }: {
38
41
  requestBody: TenantLaunchRequest,
39
- ): CancelablePromise<TenantLaunchResponse> {
42
+ }): CancelablePromise<TenantLaunchResponse> {
40
43
  return __request(OpenAPI, {
41
44
  method: 'POST',
42
45
  url: '/api/service/launch/tenant/',
@@ -81,17 +84,18 @@ export class ServiceService {
81
84
  * {
82
85
  * "redirect_to": "https://checkout.stripe.com/xxx/xxxx/xxxx",
83
86
  * }
84
- * @param org
85
- * @param userId
86
- * @param requestBody
87
87
  * @returns StripeCheckoutSessionResponse
88
88
  * @throws ApiError
89
89
  */
90
- public static serviceOrgsUsersStripeCheckoutSessionCreate(
90
+ public static serviceOrgsUsersStripeCheckoutSessionCreate({
91
+ org,
92
+ userId,
93
+ requestBody,
94
+ }: {
91
95
  org: string,
92
96
  userId: string,
93
97
  requestBody: StripeCheckoutSessionRequest,
94
- ): CancelablePromise<StripeCheckoutSessionResponse> {
98
+ }): CancelablePromise<StripeCheckoutSessionResponse> {
95
99
  return __request(OpenAPI, {
96
100
  method: 'POST',
97
101
  url: '/api/service/orgs/{org}/users/{user_id}/stripe/checkout-session/',
@@ -105,17 +109,18 @@ export class ServiceService {
105
109
  }
106
110
  /**
107
111
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
108
- * @param org
109
- * @param userId
110
- * @param requestBody
111
112
  * @returns StripeCustomerPortalResponse
112
113
  * @throws ApiError
113
114
  */
114
- public static serviceOrgsUsersStripeCustomerPortalCreate(
115
+ public static serviceOrgsUsersStripeCustomerPortalCreate({
116
+ org,
117
+ userId,
118
+ requestBody,
119
+ }: {
115
120
  org: string,
116
121
  userId: string,
117
122
  requestBody: StripeCustomerPortalRequest,
118
- ): CancelablePromise<StripeCustomerPortalResponse> {
123
+ }): CancelablePromise<StripeCustomerPortalResponse> {
119
124
  return __request(OpenAPI, {
120
125
  method: 'POST',
121
126
  url: '/api/service/orgs/{org}/users/{user_id}/stripe/customer-portal/',
@@ -129,15 +134,16 @@ export class ServiceService {
129
134
  }
130
135
  /**
131
136
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
132
- * @param org
133
- * @param userId
134
137
  * @returns StripeLocalProduct
135
138
  * @throws ApiError
136
139
  */
137
- public static serviceOrgsUsersStripeProductsRetrieve(
140
+ public static serviceOrgsUsersStripeProductsRetrieve({
141
+ org,
142
+ userId,
143
+ }: {
138
144
  org: string,
139
145
  userId: string,
140
- ): CancelablePromise<StripeLocalProduct> {
146
+ }): CancelablePromise<StripeLocalProduct> {
141
147
  return __request(OpenAPI, {
142
148
  method: 'GET',
143
149
  url: '/api/service/orgs/{org}/users/{user_id}/stripe/products/',
@@ -149,15 +155,16 @@ export class ServiceService {
149
155
  }
150
156
  /**
151
157
  * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
152
- * @param org
153
- * @param userId
154
158
  * @returns any No response body
155
159
  * @throws ApiError
156
160
  */
157
- public static serviceOrgsUsersStripeProductsManageCreate(
161
+ public static serviceOrgsUsersStripeProductsManageCreate({
162
+ org,
163
+ userId,
164
+ }: {
158
165
  org: string,
159
166
  userId: string,
160
- ): CancelablePromise<any> {
167
+ }): CancelablePromise<any> {
161
168
  return __request(OpenAPI, {
162
169
  method: 'POST',
163
170
  url: '/api/service/orgs/{org}/users/{user_id}/stripe/products/manage/',
@@ -169,17 +176,18 @@ export class ServiceService {
169
176
  }
170
177
  /**
171
178
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
172
- * @param org
173
- * @param userId
174
- * @param requestBody
175
179
  * @returns StripeSubscriptionRenewalResponse
176
180
  * @throws ApiError
177
181
  */
178
- public static serviceOrgsUsersStripeSubscriptionRenewalCreate(
182
+ public static serviceOrgsUsersStripeSubscriptionRenewalCreate({
183
+ org,
184
+ userId,
185
+ requestBody,
186
+ }: {
179
187
  org: string,
180
188
  userId: string,
181
189
  requestBody: StripeSubscriptionRenewalRequest,
182
- ): CancelablePromise<StripeSubscriptionRenewalResponse> {
190
+ }): CancelablePromise<StripeSubscriptionRenewalResponse> {
183
191
  return __request(OpenAPI, {
184
192
  method: 'POST',
185
193
  url: '/api/service/orgs/{org}/users/{user_id}/stripe/subscription-renewal/',
@@ -193,15 +201,16 @@ export class ServiceService {
193
201
  }
194
202
  /**
195
203
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
196
- * @param org
197
- * @param userId
198
204
  * @returns any No response body
199
205
  * @throws ApiError
200
206
  */
201
- public static serviceOrgsUsersStripeSubscriptionsRetrieve(
207
+ public static serviceOrgsUsersStripeSubscriptionsRetrieve({
208
+ org,
209
+ userId,
210
+ }: {
202
211
  org: string,
203
212
  userId: string,
204
- ): CancelablePromise<any> {
213
+ }): CancelablePromise<any> {
205
214
  return __request(OpenAPI, {
206
215
  method: 'GET',
207
216
  url: '/api/service/orgs/{org}/users/{user_id}/stripe/subscriptions/',
@@ -223,13 +232,14 @@ export class ServiceService {
223
232
  * - 404: Checkout session not found
224
233
  * - 400: Invalid checkout session or product
225
234
  * - 500: Server error during processing
226
- * @param platformKey
227
235
  * @returns any No response body
228
236
  * @throws ApiError
229
237
  */
230
- public static serviceOrgsStripeCoursePaymentCallbackRetrieve(
238
+ public static serviceOrgsStripeCoursePaymentCallbackRetrieve({
239
+ platformKey,
240
+ }: {
231
241
  platformKey: string,
232
- ): CancelablePromise<any> {
242
+ }): CancelablePromise<any> {
233
243
  return __request(OpenAPI, {
234
244
  method: 'GET',
235
245
  url: '/api/service/orgs/{platform_key}/stripe/course-payment-callback/',
@@ -239,13 +249,112 @@ export class ServiceService {
239
249
  });
240
250
  }
241
251
  /**
242
- * @param checkoutUuid
252
+ * Create a uuid to help us track internally user initiated checkout
253
+ * @returns StripeContext
254
+ * @throws ApiError
255
+ */
256
+ public static servicePlatformsStripeContextRetrieve({
257
+ platformKey,
258
+ }: {
259
+ platformKey: string,
260
+ }): CancelablePromise<StripeContext> {
261
+ return __request(OpenAPI, {
262
+ method: 'GET',
263
+ url: '/api/service/platforms/{platform_key}/stripe/context/',
264
+ path: {
265
+ 'platform_key': platformKey,
266
+ },
267
+ });
268
+ }
269
+ /**
270
+ * Handle callback after successful Stripe checkout for credit top up.
271
+ * Redirects user to another page, ensures user credit is updated accordingly.
272
+ *
273
+ * URL Parameters:
274
+ * - stripe_checkout_id: The Checkout Session UUID
275
+ *
276
+ * Response:
277
+ * - Redirect: Successfully validated and sending to next page
278
+ * - 404: Checkout session not found
279
+ * - 400: Invalid checkout session or product
280
+ * - 500: Server error during processing
281
+ * @returns any No response body
282
+ * @throws ApiError
283
+ */
284
+ public static servicePlatformsStripeCreditTopupCallbackRetrieve({
285
+ checkoutSessionId,
286
+ platformKey,
287
+ }: {
288
+ checkoutSessionId: string,
289
+ platformKey: string,
290
+ }): CancelablePromise<any> {
291
+ return __request(OpenAPI, {
292
+ method: 'GET',
293
+ url: '/api/service/platforms/{platform_key}/stripe/credit-topup-callback/{checkout_session_id}/',
294
+ path: {
295
+ 'checkout_session_id': checkoutSessionId,
296
+ 'platform_key': platformKey,
297
+ },
298
+ });
299
+ }
300
+ /**
301
+ * Handle callback after successful Stripe checkout.
302
+ * Redirects user to another page, ensures user subscription is updated accordingly.
303
+ *
304
+ * URL Parameters:
305
+ * - stripe_checkout_id: The local Checkout Session UUID
306
+ *
307
+ * Response:
308
+ * - Redirect: Successfully validated and sending to next page
309
+ * - 404: Checkout session not found
310
+ * - 400: Invalid checkout session or product
311
+ * - 500: Server error during processing
312
+ * @returns any No response body
313
+ * @throws ApiError
314
+ */
315
+ public static servicePlatformsStripePricingPageCallbackRetrieve({
316
+ checkoutSessionId,
317
+ platformKey,
318
+ }: {
319
+ checkoutSessionId: string,
320
+ platformKey: string,
321
+ }): CancelablePromise<any> {
322
+ return __request(OpenAPI, {
323
+ method: 'GET',
324
+ url: '/api/service/platforms/{platform_key}/stripe/pricing-page-callback/{checkout_session_id}/',
325
+ path: {
326
+ 'checkout_session_id': checkoutSessionId,
327
+ 'platform_key': platformKey,
328
+ },
329
+ });
330
+ }
331
+ /**
332
+ * Create a uuid to help us track internally user initiated checkout
333
+ * @returns StripeBillingPageIdentifierResponse
334
+ * @throws ApiError
335
+ */
336
+ public static servicePlatformsStripePricingPageSessionRetrieve({
337
+ platformKey,
338
+ }: {
339
+ platformKey: string,
340
+ }): CancelablePromise<StripeBillingPageIdentifierResponse> {
341
+ return __request(OpenAPI, {
342
+ method: 'GET',
343
+ url: '/api/service/platforms/{platform_key}/stripe/pricing-page-session/',
344
+ path: {
345
+ 'platform_key': platformKey,
346
+ },
347
+ });
348
+ }
349
+ /**
243
350
  * @returns any No response body
244
351
  * @throws ApiError
245
352
  */
246
- public static serviceStripeCheckoutRetrieve(
353
+ public static serviceStripeCheckoutRetrieve({
354
+ checkoutUuid,
355
+ }: {
247
356
  checkoutUuid: string,
248
- ): CancelablePromise<any> {
357
+ }): CancelablePromise<any> {
249
358
  return __request(OpenAPI, {
250
359
  method: 'GET',
251
360
  url: '/api/service/stripe/checkout/{checkout_uuid}/',
@@ -267,13 +376,14 @@ export class ServiceService {
267
376
  * {
268
377
  * "redirect_to": "https://checkout.stripe.com/xxx/xxxx/xxxx",
269
378
  * }
270
- * @param requestBody
271
379
  * @returns StripeCheckoutSessionResponse
272
380
  * @throws ApiError
273
381
  */
274
- public static serviceStripeCheckoutFreeTrialCreate(
382
+ public static serviceStripeCheckoutFreeTrialCreate({
383
+ requestBody,
384
+ }: {
275
385
  requestBody: StripeCheckoutSessionResponse,
276
- ): CancelablePromise<StripeCheckoutSessionResponse> {
386
+ }): CancelablePromise<StripeCheckoutSessionResponse> {
277
387
  return __request(OpenAPI, {
278
388
  method: 'POST',
279
389
  url: '/api/service/stripe/checkout/free-trial/',
@@ -30,13 +30,14 @@ export class SkillsService {
30
30
  * Access Control:
31
31
  * - Platform admins can access this information
32
32
  * - All authenticated users can access this information
33
- * @param org
34
33
  * @returns SkillInfo
35
34
  * @throws ApiError
36
35
  */
37
- public static skillsOrgsSkillsList(
36
+ public static skillsOrgsSkillsList({
37
+ org,
38
+ }: {
38
39
  org: string,
39
- ): CancelablePromise<Array<SkillInfo>> {
40
+ }): CancelablePromise<Array<SkillInfo>> {
40
41
  return __request(OpenAPI, {
41
42
  method: 'GET',
42
43
  url: '/api/skills/orgs/{org}/skills',
@@ -64,15 +65,16 @@ export class SkillsService {
64
65
  * Access Control:
65
66
  * - Platform admins can access this information
66
67
  * - All authenticated users can access this information
67
- * @param org
68
- * @param skillId
69
68
  * @returns PointsPercentile
70
69
  * @throws ApiError
71
70
  */
72
- public static skillsOrgsSkillsPercentileRetrieve(
71
+ public static skillsOrgsSkillsPercentileRetrieve({
72
+ org,
73
+ skillId,
74
+ }: {
73
75
  org: string,
74
76
  skillId: number,
75
- ): CancelablePromise<PointsPercentile> {
77
+ }): CancelablePromise<PointsPercentile> {
76
78
  return __request(OpenAPI, {
77
79
  method: 'GET',
78
80
  url: '/api/skills/orgs/{org}/skills/{skill_id}/percentile/',
@@ -101,15 +103,16 @@ export class SkillsService {
101
103
  * Access Control:
102
104
  * - Platform admins can access this information
103
105
  * - All authenticated users can access this information
104
- * @param org
105
- * @param skillName
106
106
  * @returns SkillDetail
107
107
  * @throws ApiError
108
108
  */
109
- public static skillsOrgsSkillsRetrieve(
109
+ public static skillsOrgsSkillsRetrieve({
110
+ org,
111
+ skillName,
112
+ }: {
110
113
  org: string,
111
114
  skillName: string,
112
- ): CancelablePromise<SkillDetail> {
115
+ }): CancelablePromise<SkillDetail> {
113
116
  return __request(OpenAPI, {
114
117
  method: 'GET',
115
118
  url: '/api/skills/orgs/{org}/skills/{skill_name}/',
@@ -121,13 +124,14 @@ export class SkillsService {
121
124
  }
122
125
  /**
123
126
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
124
- * @param org
125
127
  * @returns PointsPercentile
126
128
  * @throws ApiError
127
129
  */
128
- public static skillsOrgsSkillsPercentileList(
130
+ public static skillsOrgsSkillsPercentileList({
131
+ org,
132
+ }: {
129
133
  org: string,
130
- ): CancelablePromise<Array<PointsPercentile>> {
134
+ }): CancelablePromise<Array<PointsPercentile>> {
131
135
  return __request(OpenAPI, {
132
136
  method: 'GET',
133
137
  url: '/api/skills/orgs/{org}/skills/percentile/',
@@ -176,13 +180,14 @@ export class SkillsService {
176
180
  *
177
181
  * Access Control:
178
182
  * - Only platform administrators can access this endpoint
179
- * @param org
180
183
  * @returns SkillThreshold
181
184
  * @throws ApiError
182
185
  */
183
- public static skillsOrgsSkillsThresholdsRetrieve(
186
+ public static skillsOrgsSkillsThresholdsRetrieve({
187
+ org,
188
+ }: {
184
189
  org: string,
185
- ): CancelablePromise<SkillThreshold> {
190
+ }): CancelablePromise<SkillThreshold> {
186
191
  return __request(OpenAPI, {
187
192
  method: 'GET',
188
193
  url: '/api/skills/orgs/{org}/skills/thresholds/',
@@ -231,15 +236,16 @@ export class SkillsService {
231
236
  *
232
237
  * Access Control:
233
238
  * - Only platform administrators can access this endpoint
234
- * @param org
235
- * @param requestBody
236
239
  * @returns SkillThreshold
237
240
  * @throws ApiError
238
241
  */
239
- public static skillsOrgsSkillsThresholdsCreate(
242
+ public static skillsOrgsSkillsThresholdsCreate({
243
+ org,
244
+ requestBody,
245
+ }: {
240
246
  org: string,
241
247
  requestBody: SkillThreshold,
242
- ): CancelablePromise<SkillThreshold> {
248
+ }): CancelablePromise<SkillThreshold> {
243
249
  return __request(OpenAPI, {
244
250
  method: 'POST',
245
251
  url: '/api/skills/orgs/{org}/skills/thresholds/',
@@ -290,15 +296,16 @@ export class SkillsService {
290
296
  *
291
297
  * Access Control:
292
298
  * - Only platform administrators can access this endpoint
293
- * @param org
294
- * @param requestBody
295
299
  * @returns SkillThreshold
296
300
  * @throws ApiError
297
301
  */
298
- public static skillsOrgsSkillsThresholdsPartialUpdate(
302
+ public static skillsOrgsSkillsThresholdsPartialUpdate({
303
+ org,
304
+ requestBody,
305
+ }: {
299
306
  org: string,
300
307
  requestBody?: PatchedSkillThreshold,
301
- ): CancelablePromise<SkillThreshold> {
308
+ }): CancelablePromise<SkillThreshold> {
302
309
  return __request(OpenAPI, {
303
310
  method: 'PATCH',
304
311
  url: '/api/skills/orgs/{org}/skills/thresholds/',
@@ -349,13 +356,14 @@ export class SkillsService {
349
356
  *
350
357
  * Access Control:
351
358
  * - Only platform administrators can access this endpoint
352
- * @param org
353
359
  * @returns void
354
360
  * @throws ApiError
355
361
  */
356
- public static skillsOrgsSkillsThresholdsDestroy(
362
+ public static skillsOrgsSkillsThresholdsDestroy({
363
+ org,
364
+ }: {
357
365
  org: string,
358
- ): CancelablePromise<void> {
366
+ }): CancelablePromise<void> {
359
367
  return __request(OpenAPI, {
360
368
  method: 'DELETE',
361
369
  url: '/api/skills/orgs/{org}/skills/thresholds/',
@@ -387,15 +395,16 @@ export class SkillsService {
387
395
  * Access Control:
388
396
  * - Platform admins can access any user's skill information
389
397
  * - Users can access their own skill information
390
- * @param org
391
- * @param userId
392
398
  * @returns UserSkill
393
399
  * @throws ApiError
394
400
  */
395
- public static skillsOrgsSkillsUsersRetrieve(
401
+ public static skillsOrgsSkillsUsersRetrieve({
402
+ org,
403
+ userId,
404
+ }: {
396
405
  org: string,
397
406
  userId: string,
398
- ): CancelablePromise<UserSkill> {
407
+ }): CancelablePromise<UserSkill> {
399
408
  return __request(OpenAPI, {
400
409
  method: 'GET',
401
410
  url: '/api/skills/orgs/{org}/skills/users/{user_id}/',
@@ -425,15 +434,16 @@ export class SkillsService {
425
434
  * Access Control:
426
435
  * - Platform admins can access any user's information
427
436
  * - Users can access their own information
428
- * @param org
429
- * @param userId
430
437
  * @returns DesiredSkill
431
438
  * @throws ApiError
432
439
  */
433
- public static skillsOrgsSkillsUsersDesiredSkillsRetrieve(
440
+ public static skillsOrgsSkillsUsersDesiredSkillsRetrieve({
441
+ org,
442
+ userId,
443
+ }: {
434
444
  org: string,
435
445
  userId: string,
436
- ): CancelablePromise<DesiredSkill> {
446
+ }): CancelablePromise<DesiredSkill> {
437
447
  return __request(OpenAPI, {
438
448
  method: 'GET',
439
449
  url: '/api/skills/orgs/{org}/skills/users/{user_id}/desired-skills/',
@@ -462,15 +472,16 @@ export class SkillsService {
462
472
  * Access Control:
463
473
  * - Platform admins can access any user's information
464
474
  * - Users can access their own information
465
- * @param org
466
- * @param userId
467
475
  * @returns UserSkillPointsPercentile
468
476
  * @throws ApiError
469
477
  */
470
- public static skillsOrgsSkillsUsersPointPercentileRetrieve(
478
+ public static skillsOrgsSkillsUsersPointPercentileRetrieve({
479
+ org,
480
+ userId,
481
+ }: {
471
482
  org: string,
472
483
  userId: string,
473
- ): CancelablePromise<UserSkillPointsPercentile> {
484
+ }): CancelablePromise<UserSkillPointsPercentile> {
474
485
  return __request(OpenAPI, {
475
486
  method: 'GET',
476
487
  url: '/api/skills/orgs/{org}/skills/users/{user_id}/point-percentile/',
@@ -500,15 +511,16 @@ export class SkillsService {
500
511
  * Access Control:
501
512
  * - Platform admins can access any user's information
502
513
  * - Users can access their own information
503
- * @param org
504
- * @param userId
505
514
  * @returns ReportedSkill
506
515
  * @throws ApiError
507
516
  */
508
- public static skillsOrgsSkillsUsersReportedSkillsRetrieve(
517
+ public static skillsOrgsSkillsUsersReportedSkillsRetrieve({
518
+ org,
519
+ userId,
520
+ }: {
509
521
  org: string,
510
522
  userId: string,
511
- ): CancelablePromise<ReportedSkill> {
523
+ }): CancelablePromise<ReportedSkill> {
512
524
  return __request(OpenAPI, {
513
525
  method: 'GET',
514
526
  url: '/api/skills/orgs/{org}/skills/users/{user_id}/reported-skills/',
@@ -33,39 +33,76 @@ export class UserGroupsService {
33
33
  * Access Control:
34
34
  * - Platform admins can see all groups
35
35
  * - Department admins can only see groups in their departments
36
- * @param key
37
- * @param departmentId When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
38
- * @param endDate Filter by learners date_joined. Start date. ISO 8601
39
- * @param format Format
40
- *
41
- * * `json` - json
42
- * @param groups Groups search string. Single string or list of strings. e.g 'sample_group' or `['group', 'another group']`
43
- * @param includeMainPlatform Include main platform data
44
- * @param isEnrolled Filter for users who have at least an enrollment
45
- * @param length Size of data to return
46
- * @param location Location search string
47
- * @param page Page offset
48
- * @param pathway Pathway string
49
- * @param program Program search string
50
- * @param startDate Filter by learners date_joined. Start date. ISO 8601
51
36
  * @returns GroupList
52
37
  * @throws ApiError
53
38
  */
54
- public static userGroupsOrgsRetrieve(
39
+ public static userGroupsOrgsRetrieve({
40
+ key,
41
+ departmentId,
42
+ endDate,
43
+ format = 'json',
44
+ groups,
45
+ includeMainPlatform = true,
46
+ isEnrolled,
47
+ length,
48
+ location,
49
+ page,
50
+ pathway,
51
+ program,
52
+ startDate,
53
+ }: {
55
54
  key: string,
55
+ /**
56
+ * When `department_mode=1` is passed, it allows to filter data for only user content groups for the specified department
57
+ */
56
58
  departmentId?: number,
59
+ /**
60
+ * Filter by learners date_joined. Start date. ISO 8601
61
+ */
57
62
  endDate?: string,
58
- format: 'json' = 'json',
63
+ /**
64
+ * Format
65
+ *
66
+ * * `json` - json
67
+ */
68
+ format?: 'json',
69
+ /**
70
+ * Groups search string. Single string or list of strings. e.g 'sample_group' or `['group', 'another group']`
71
+ */
59
72
  groups?: Array<string>,
60
- includeMainPlatform: boolean = true,
73
+ /**
74
+ * Include main platform data
75
+ */
76
+ includeMainPlatform?: boolean,
77
+ /**
78
+ * Filter for users who have at least an enrollment
79
+ */
61
80
  isEnrolled?: boolean | null,
81
+ /**
82
+ * Size of data to return
83
+ */
62
84
  length?: number,
85
+ /**
86
+ * Location search string
87
+ */
63
88
  location?: string,
89
+ /**
90
+ * Page offset
91
+ */
64
92
  page?: number,
93
+ /**
94
+ * Pathway string
95
+ */
65
96
  pathway?: string,
97
+ /**
98
+ * Program search string
99
+ */
66
100
  program?: string,
101
+ /**
102
+ * Filter by learners date_joined. Start date. ISO 8601
103
+ */
67
104
  startDate?: string,
68
- ): CancelablePromise<GroupList> {
105
+ }): CancelablePromise<GroupList> {
69
106
  return __request(OpenAPI, {
70
107
  method: 'GET',
71
108
  url: '/api/user-groups/orgs/{key}/',
@@ -1,10 +0,0 @@
1
- /**
2
- * Response serializer for BlockSkillPointInfoView GET endpoint.
3
- * Returns a mapping of skill names/objects to their point values.
4
- */
5
- export type BlockSkillPointInfoResponse = {
6
- /**
7
- * Dictionary mapping skill names/objects to point values. Keys are skill names (or skill objects if get_obj=True)
8
- */
9
- skill_points: Record<string, number>;
10
- };
@@ -1,11 +0,0 @@
1
- import type { CourseCompletion } from './CourseCompletion';
2
- /**
3
- * Response serializer for CourseCompletionCatalogView GET endpoint.
4
- * Maps course IDs to their completion information.
5
- */
6
- export type CourseCompletionCatalogResponse = {
7
- /**
8
- * Completion information for each course. Keys are course IDs.
9
- */
10
- '{course_id}'?: CourseCompletion;
11
- };