@iblai/iblai-api 3.35.3-core → 3.35.4-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 (178) hide show
  1. package/dist/index.cjs.js +13134 -3071
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +13128 -3072
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +13134 -3071
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +80 -1
  8. package/dist/types/models/AWSTenantLaunchRequest.d.ts +20 -0
  9. package/dist/types/models/ActivateUserFreeTrial.d.ts +11 -0
  10. package/dist/types/models/App.d.ts +10 -0
  11. package/dist/types/models/AppleSubscriptionStatusRequest.d.ts +3 -0
  12. package/dist/types/models/AppleSubscriptionStatusView.d.ts +3 -0
  13. package/dist/types/models/AppleVerifyTransactionId.d.ts +3 -0
  14. package/dist/types/models/AssociateAccountResponse.d.ts +5 -0
  15. package/dist/types/models/AssociateAppleAccount.d.ts +3 -0
  16. package/dist/types/models/AuthToken.d.ts +10 -0
  17. package/dist/types/models/BaseErrorResponse.d.ts +5 -0
  18. package/dist/types/models/BaseResponse.d.ts +5 -0
  19. package/dist/types/models/CeleryHeartbeat.d.ts +5 -0
  20. package/dist/types/models/CeleryHeartbeatFail.d.ts +5 -0
  21. package/dist/types/models/CeleryHeartbeatFailStatusEnum.d.ts +8 -0
  22. package/dist/types/models/CeleryHeartbeatStatusEnum.d.ts +8 -0
  23. package/dist/types/models/DesiredRole.d.ts +4 -0
  24. package/dist/types/models/EdxSignalReceiverRequest.d.ts +4 -0
  25. package/dist/types/models/GCPTenantLaunchRequest.d.ts +24 -0
  26. package/dist/types/models/GooglePayAccountResponse.d.ts +15 -0
  27. package/dist/types/models/GooglePayAccountResponseStatusEnum.d.ts +8 -0
  28. package/dist/types/models/GooglePayVerifyToken.d.ts +6 -0
  29. package/dist/types/models/ItemTypeEnum.d.ts +18 -0
  30. package/dist/types/models/LauncherViewPostRequest.d.ts +9 -0
  31. package/dist/types/models/ManagerAuthToken.d.ts +13 -0
  32. package/dist/types/models/MediaResource.d.ts +71 -0
  33. package/dist/types/models/MediaTypeEnum.d.ts +14 -0
  34. package/dist/types/models/ModeEnum.d.ts +10 -0
  35. package/dist/types/models/Notification.d.ts +2 -2
  36. package/dist/types/models/{StatusEnum.d.ts → NotificationStatusEnum.d.ts} +1 -1
  37. package/dist/types/models/OnboardingStatusUpdate.d.ts +7 -0
  38. package/dist/types/models/PaginatedUserAppList.d.ts +7 -0
  39. package/dist/types/models/PatchedMediaResource.d.ts +71 -0
  40. package/dist/types/models/PatchedNotification.d.ts +2 -2
  41. package/dist/types/models/Platform.d.ts +29 -0
  42. package/dist/types/models/PlatformApiKey.d.ts +30 -0
  43. package/dist/types/models/PlatformList.d.ts +29 -0
  44. package/dist/types/models/PlatformListStatusEnum.d.ts +22 -0
  45. package/dist/types/models/PlatformUpdatePostRequest.d.ts +9 -0
  46. package/dist/types/models/ReportedRole.d.ts +4 -0
  47. package/dist/types/models/Resource.d.ts +22 -0
  48. package/dist/types/models/ResourceCreateUpdate.d.ts +42 -0
  49. package/dist/types/models/Role.d.ts +7 -0
  50. package/dist/types/models/StripeCheckoutSessionRequest.d.ts +54 -0
  51. package/dist/types/models/StripeCheckoutSessionResponse.d.ts +6 -0
  52. package/dist/types/models/StripeCustomerPortalRequest.d.ts +3 -0
  53. package/dist/types/models/StripeCustomerPortalResponse.d.ts +3 -0
  54. package/dist/types/models/StripeLocalProduct.d.ts +8 -0
  55. package/dist/types/models/StripeSubscriptionRenewalRequest.d.ts +4 -0
  56. package/dist/types/models/StripeSubscriptionRenewalResponse.d.ts +3 -0
  57. package/dist/types/models/TenantLaunchError.d.ts +10 -0
  58. package/dist/types/models/TenantLaunchFailed.d.ts +15 -0
  59. package/dist/types/models/TenantLaunchRequest.d.ts +16 -0
  60. package/dist/types/models/TenantLaunchResponse.d.ts +15 -0
  61. package/dist/types/models/TokenProxyInput.d.ts +21 -0
  62. package/dist/types/models/TokenProxyOutput.d.ts +7 -0
  63. package/dist/types/models/TokenProxyOutputSerializerData.d.ts +20 -0
  64. package/dist/types/models/TokenProxyUser.d.ts +25 -0
  65. package/dist/types/models/UserApp.d.ts +27 -0
  66. package/dist/types/models/UserDeleteAPIError.d.ts +3 -0
  67. package/dist/types/models/UserDeleteAPIRequest.d.ts +3 -0
  68. package/dist/types/models/UserDeleteAPIResponse.d.ts +3 -0
  69. package/dist/types/models/UserPlatformLink.d.ts +17 -0
  70. package/dist/types/models/UserPlatformManagementListViewGetResponse.d.ts +6 -0
  71. package/dist/types/models/UserPlatformViewPostRequest.d.ts +8 -0
  72. package/dist/types/models/UserProxyBulkRequest.d.ts +3 -0
  73. package/dist/types/models/UserProxyGetResponse.d.ts +8 -0
  74. package/dist/types/models/UserProxyPostRequest.d.ts +7 -0
  75. package/dist/types/models/UserProxyPostResponse.d.ts +8 -0
  76. package/dist/types/models/UserSearchViewGetResponse.d.ts +6 -0
  77. package/dist/types/models/VerifyGCPMarketPlaceFailedResponse.d.ts +11 -0
  78. package/dist/types/models/VerifyGCPMarketPlaceRequest.d.ts +3 -0
  79. package/dist/types/models/VerifyGCPMarketPlaceResponse.d.ts +11 -0
  80. package/dist/types/models/WatchedVideosPerCourse.d.ts +8 -0
  81. package/dist/types/models/WatchedVideosPerCourseData.d.ts +18 -0
  82. package/dist/types/models/WhitelistedDomain.d.ts +4 -0
  83. package/dist/types/services/CatalogService.d.ts +6904 -0
  84. package/dist/types/services/CoreService.d.ts +442 -0
  85. package/dist/types/services/FeaturesService.d.ts +75 -0
  86. package/dist/types/services/MediaResourcesService.d.ts +112 -0
  87. package/dist/types/services/PlatformService.d.ts +314 -0
  88. package/dist/types/services/ProvidersService.d.ts +142 -0
  89. package/dist/types/services/ProvisionService.d.ts +14 -0
  90. package/dist/types/services/RolesService.d.ts +57 -0
  91. package/dist/types/services/ServiceService.d.ts +170 -0
  92. package/package.json +1 -1
  93. package/src/core/OpenAPI.ts +1 -1
  94. package/src/index.ts +80 -1
  95. package/src/models/AWSTenantLaunchRequest.ts +25 -0
  96. package/src/models/ActivateUserFreeTrial.ts +16 -0
  97. package/src/models/App.ts +15 -0
  98. package/src/models/AppleSubscriptionStatusRequest.ts +8 -0
  99. package/src/models/AppleSubscriptionStatusView.ts +8 -0
  100. package/src/models/AppleVerifyTransactionId.ts +8 -0
  101. package/src/models/AssociateAccountResponse.ts +10 -0
  102. package/src/models/AssociateAppleAccount.ts +8 -0
  103. package/src/models/AuthToken.ts +15 -0
  104. package/src/models/BaseErrorResponse.ts +10 -0
  105. package/src/models/BaseResponse.ts +10 -0
  106. package/src/models/CeleryHeartbeat.ts +10 -0
  107. package/src/models/CeleryHeartbeatFail.ts +10 -0
  108. package/src/models/CeleryHeartbeatFailStatusEnum.ts +12 -0
  109. package/src/models/CeleryHeartbeatStatusEnum.ts +12 -0
  110. package/src/models/DesiredRole.ts +9 -0
  111. package/src/models/EdxSignalReceiverRequest.ts +9 -0
  112. package/src/models/GCPTenantLaunchRequest.ts +29 -0
  113. package/src/models/GooglePayAccountResponse.ts +20 -0
  114. package/src/models/GooglePayAccountResponseStatusEnum.ts +12 -0
  115. package/src/models/GooglePayVerifyToken.ts +11 -0
  116. package/src/models/ItemTypeEnum.ts +22 -0
  117. package/src/models/LauncherViewPostRequest.ts +14 -0
  118. package/src/models/ManagerAuthToken.ts +18 -0
  119. package/src/models/MediaResource.ts +76 -0
  120. package/src/models/MediaTypeEnum.ts +18 -0
  121. package/src/models/ModeEnum.ts +14 -0
  122. package/src/models/Notification.ts +2 -2
  123. package/src/models/{StatusEnum.ts → NotificationStatusEnum.ts} +1 -1
  124. package/src/models/OnboardingStatusUpdate.ts +12 -0
  125. package/src/models/PaginatedUserAppList.ts +12 -0
  126. package/src/models/PatchedMediaResource.ts +76 -0
  127. package/src/models/PatchedNotification.ts +2 -2
  128. package/src/models/Platform.ts +34 -0
  129. package/src/models/PlatformApiKey.ts +35 -0
  130. package/src/models/PlatformList.ts +34 -0
  131. package/src/models/PlatformListStatusEnum.ts +26 -0
  132. package/src/models/PlatformUpdatePostRequest.ts +14 -0
  133. package/src/models/ReportedRole.ts +9 -0
  134. package/src/models/Resource.ts +27 -0
  135. package/src/models/ResourceCreateUpdate.ts +47 -0
  136. package/src/models/Role.ts +12 -0
  137. package/src/models/StripeCheckoutSessionRequest.ts +59 -0
  138. package/src/models/StripeCheckoutSessionResponse.ts +11 -0
  139. package/src/models/StripeCustomerPortalRequest.ts +8 -0
  140. package/src/models/StripeCustomerPortalResponse.ts +8 -0
  141. package/src/models/StripeLocalProduct.ts +13 -0
  142. package/src/models/StripeSubscriptionRenewalRequest.ts +9 -0
  143. package/src/models/StripeSubscriptionRenewalResponse.ts +8 -0
  144. package/src/models/TenantLaunchError.ts +15 -0
  145. package/src/models/TenantLaunchFailed.ts +20 -0
  146. package/src/models/TenantLaunchRequest.ts +21 -0
  147. package/src/models/TenantLaunchResponse.ts +20 -0
  148. package/src/models/TokenProxyInput.ts +26 -0
  149. package/src/models/TokenProxyOutput.ts +12 -0
  150. package/src/models/TokenProxyOutputSerializerData.ts +25 -0
  151. package/src/models/TokenProxyUser.ts +30 -0
  152. package/src/models/UserApp.ts +32 -0
  153. package/src/models/UserDeleteAPIError.ts +8 -0
  154. package/src/models/UserDeleteAPIRequest.ts +8 -0
  155. package/src/models/UserDeleteAPIResponse.ts +8 -0
  156. package/src/models/UserPlatformLink.ts +22 -0
  157. package/src/models/UserPlatformManagementListViewGetResponse.ts +11 -0
  158. package/src/models/UserPlatformViewPostRequest.ts +13 -0
  159. package/src/models/UserProxyBulkRequest.ts +8 -0
  160. package/src/models/UserProxyGetResponse.ts +13 -0
  161. package/src/models/UserProxyPostRequest.ts +12 -0
  162. package/src/models/UserProxyPostResponse.ts +13 -0
  163. package/src/models/UserSearchViewGetResponse.ts +11 -0
  164. package/src/models/VerifyGCPMarketPlaceFailedResponse.ts +16 -0
  165. package/src/models/VerifyGCPMarketPlaceRequest.ts +8 -0
  166. package/src/models/VerifyGCPMarketPlaceResponse.ts +16 -0
  167. package/src/models/WatchedVideosPerCourse.ts +13 -0
  168. package/src/models/WatchedVideosPerCourseData.ts +23 -0
  169. package/src/models/WhitelistedDomain.ts +9 -0
  170. package/src/services/CatalogService.ts +7769 -0
  171. package/src/services/CoreService.ts +792 -1
  172. package/src/services/FeaturesService.ts +126 -0
  173. package/src/services/MediaResourcesService.ts +319 -0
  174. package/src/services/PlatformService.ts +582 -0
  175. package/src/services/ProvidersService.ts +271 -0
  176. package/src/services/ProvisionService.ts +30 -0
  177. package/src/services/RolesService.ts +87 -0
  178. package/src/services/ServiceService.ts +320 -0
@@ -3,7 +3,7 @@
3
3
  * * `UNREAD` - Unread
4
4
  * * `CANCELLED` - Cancelled
5
5
  */
6
- export declare enum StatusEnum {
6
+ export declare enum NotificationStatusEnum {
7
7
  READ = "READ",
8
8
  UNREAD = "UNREAD",
9
9
  CANCELLED = "CANCELLED"
@@ -0,0 +1,7 @@
1
+ export type OnboardingStatusUpdate = {
2
+ onboarding_completed: boolean;
3
+ /**
4
+ * The app url or name or id
5
+ */
6
+ app: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { UserApp } from './UserApp';
2
+ export type PaginatedUserAppList = {
3
+ count: number;
4
+ next?: string | null;
5
+ previous?: string | null;
6
+ results: Array<UserApp>;
7
+ };
@@ -0,0 +1,71 @@
1
+ import type { ItemTypeEnum } from './ItemTypeEnum';
2
+ import type { MediaTypeEnum } from './MediaTypeEnum';
3
+ export type PatchedMediaResource = {
4
+ readonly id?: number;
5
+ /**
6
+ * Title of the media resource
7
+ */
8
+ title?: string;
9
+ /**
10
+ * Description of the media resource
11
+ */
12
+ description?: string | null;
13
+ /**
14
+ * Type of media
15
+ *
16
+ * * `video` - Video
17
+ * * `image` - Image
18
+ * * `document` - Document
19
+ * * `audio` - Audio
20
+ * * `other` - Other
21
+ */
22
+ media_type?: MediaTypeEnum;
23
+ /**
24
+ * Type of item this media is associated with
25
+ *
26
+ * * `course` - Course
27
+ * * `unit` - Unit
28
+ * * `resource` - Resource
29
+ * * `course_unit` - Course and Unit
30
+ * * `course_resource` - Course and Resource
31
+ * * `unit_resource` - Unit and Resource
32
+ * * `all` - Course, Unit, and Resource
33
+ */
34
+ readonly item_type?: ItemTypeEnum;
35
+ /**
36
+ * ID of the associated course
37
+ */
38
+ course_id?: string | null;
39
+ /**
40
+ * ID of the associated unit
41
+ */
42
+ unit_id?: string | null;
43
+ /**
44
+ * ID of the associated item (resource)
45
+ */
46
+ item_id?: string | null;
47
+ /**
48
+ * The platform this media resource belongs to
49
+ */
50
+ readonly platform?: number;
51
+ /**
52
+ * External URL for the media resource
53
+ */
54
+ file_url?: string | null;
55
+ /**
56
+ * Uploaded media file
57
+ */
58
+ file?: string | null;
59
+ /**
60
+ * User who created this media resource
61
+ */
62
+ readonly created_by?: number | null;
63
+ /**
64
+ * When this record was created
65
+ */
66
+ readonly created_at?: string;
67
+ /**
68
+ * When this record was last updated
69
+ */
70
+ readonly updated_at?: string;
71
+ };
@@ -1,11 +1,11 @@
1
1
  import type { BlankEnum } from './BlankEnum';
2
- import type { StatusEnum } from './StatusEnum';
2
+ import type { NotificationStatusEnum } from './NotificationStatusEnum';
3
3
  export type PatchedNotification = {
4
4
  readonly id?: string;
5
5
  username?: string;
6
6
  readonly title?: string;
7
7
  readonly body?: string;
8
- status?: (StatusEnum | BlankEnum);
8
+ status?: (NotificationStatusEnum | BlankEnum);
9
9
  readonly channel?: string | null;
10
10
  context?: any;
11
11
  readonly short_message?: string;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Note: Create and update operations deprecated.
3
+ */
4
+ export type Platform = {
5
+ /**
6
+ * The platform key
7
+ */
8
+ key: string;
9
+ /**
10
+ * The name of the platform
11
+ */
12
+ name?: string | null;
13
+ /**
14
+ * The associated edX org code
15
+ */
16
+ org?: string | null;
17
+ /**
18
+ * The LMS URL for the platform
19
+ */
20
+ lms_url?: string | null;
21
+ /**
22
+ * The CMS URL for the platform
23
+ */
24
+ cms_url?: string | null;
25
+ /**
26
+ * The portal URL for the platform
27
+ */
28
+ portal_url?: string | null;
29
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Serializer for PlatformApiKey's
3
+ */
4
+ export type PlatformApiKey = {
5
+ /**
6
+ * Username that created token
7
+ */
8
+ readonly username: string;
9
+ /**
10
+ * Name of the token. Used by the user to identify the token.
11
+ */
12
+ name: string;
13
+ readonly key: string;
14
+ /**
15
+ * The platform key
16
+ */
17
+ platform_key: string;
18
+ /**
19
+ * When token expires
20
+ */
21
+ readonly expires: string;
22
+ /**
23
+ * Optional duration until key expires. Format: [DD] [HH:[MM:]]ss[.uuuuuu]
24
+ */
25
+ expires_in?: string | null;
26
+ /**
27
+ * When token was created
28
+ */
29
+ readonly created: string;
30
+ };
@@ -0,0 +1,29 @@
1
+ import type { PlatformListStatusEnum } from './PlatformListStatusEnum';
2
+ export type PlatformList = {
3
+ /**
4
+ * The platform key
5
+ */
6
+ key: string;
7
+ /**
8
+ * The name of the platform
9
+ */
10
+ name?: string | null;
11
+ /**
12
+ * The associated edX org code
13
+ */
14
+ org?: string | null;
15
+ /**
16
+ * The LMS URL for the platform
17
+ */
18
+ lms_url?: string | null;
19
+ /**
20
+ * The CMS URL for the platform
21
+ */
22
+ cms_url?: string | null;
23
+ /**
24
+ * The portal URL for the platform
25
+ */
26
+ portal_url?: string | null;
27
+ status?: PlatformListStatusEnum;
28
+ active?: boolean;
29
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * * `-2` - FAILED
3
+ * * `-1` - TERMINATED
4
+ * * `0` - PENDING
5
+ * * `1` - BUILDING
6
+ * * `2` - RUNNING
7
+ * * `3` - PAUSED
8
+ * * `4` - STOPPING
9
+ * * `5` - STOPPED
10
+ * * `6` - REPAIR
11
+ */
12
+ export declare enum PlatformListStatusEnum {
13
+ '_-2' = -2,
14
+ '_-1' = -1,
15
+ '_0' = 0,
16
+ '_1' = 1,
17
+ '_2' = 2,
18
+ '_3' = 3,
19
+ '_4' = 4,
20
+ '_5' = 5,
21
+ '_6' = 6
22
+ }
@@ -0,0 +1,9 @@
1
+ export type PlatformUpdatePostRequest = {
2
+ user_id: number;
3
+ key: string;
4
+ new_key?: string;
5
+ name?: string;
6
+ lms_url?: string;
7
+ cms_url?: string;
8
+ portal_url?: string;
9
+ };
@@ -0,0 +1,4 @@
1
+ import type { Role } from './Role';
2
+ export type ReportedRole = {
3
+ roles: Array<Role>;
4
+ };
@@ -0,0 +1,22 @@
1
+ export type Resource = {
2
+ item_id?: string;
3
+ readonly id: number;
4
+ /**
5
+ * The display name of the resource.
6
+ */
7
+ readonly name: string | null;
8
+ /**
9
+ * Resource URL.
10
+ */
11
+ readonly url: string | null;
12
+ /**
13
+ * Resource type.
14
+ */
15
+ readonly resource_type: string | null;
16
+ /**
17
+ * Metadata
18
+ */
19
+ readonly data: any;
20
+ image?: string | null;
21
+ description?: string | null;
22
+ };
@@ -0,0 +1,42 @@
1
+ export type ResourceCreateUpdate = {
2
+ /**
3
+ * Resource ID for updates
4
+ */
5
+ id?: number;
6
+ /**
7
+ * User ID of the resource owner
8
+ */
9
+ user_id?: number;
10
+ /**
11
+ * Username of the resource owner
12
+ */
13
+ username?: string;
14
+ /**
15
+ * Type of resource (e.g., video, document)
16
+ */
17
+ resource_type: string;
18
+ /**
19
+ * URL of the resource
20
+ */
21
+ url: string;
22
+ /**
23
+ * Name of the resource
24
+ */
25
+ name: string;
26
+ /**
27
+ * Description of the resource
28
+ */
29
+ description?: string;
30
+ /**
31
+ * List of skill names associated with the resource
32
+ */
33
+ skills?: Array<string>;
34
+ /**
35
+ * Image file
36
+ */
37
+ image?: string;
38
+ /**
39
+ * Additional metadata for the resource
40
+ */
41
+ data?: any;
42
+ };
@@ -0,0 +1,7 @@
1
+ export type Role = {
2
+ readonly id: number;
3
+ /**
4
+ * The display name of the role.
5
+ */
6
+ name?: string | null;
7
+ };
@@ -0,0 +1,54 @@
1
+ import type { ModeEnum } from './ModeEnum';
2
+ /**
3
+ * Serializer for Stripe checkout session creation requests.
4
+ */
5
+ export type StripeCheckoutSessionRequest = {
6
+ /**
7
+ * Product SKU
8
+ */
9
+ sku?: string;
10
+ /**
11
+ * Alternative to SKU
12
+ */
13
+ product?: string;
14
+ /**
15
+ * URL to redirect after successful payment
16
+ */
17
+ success_url: string;
18
+ /**
19
+ * URL to redirect if checkout cancelled
20
+ */
21
+ cancel_url: string;
22
+ /**
23
+ * Checkout mode
24
+ *
25
+ * * `subscription` - subscription
26
+ * * `payment` - payment
27
+ * * `setup` - setup
28
+ */
29
+ mode?: ModeEnum;
30
+ /**
31
+ * Whether to use metered billing
32
+ */
33
+ metered?: boolean;
34
+ /**
35
+ * Subscription quantity
36
+ */
37
+ quantity?: number;
38
+ /**
39
+ * Coupon code to apply
40
+ */
41
+ coupon?: string;
42
+ /**
43
+ * Enable free trial
44
+ */
45
+ is_free_trial?: boolean;
46
+ /**
47
+ * Trial period in days
48
+ */
49
+ trial_days?: number;
50
+ /**
51
+ * Skip card collection for trial
52
+ */
53
+ skip_card?: boolean;
54
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Stripe checkout session serialized response
3
+ */
4
+ export type StripeCheckoutSessionResponse = {
5
+ redirect_to: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ export type StripeCustomerPortalRequest = {
2
+ return_url: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type StripeCustomerPortalResponse = {
2
+ url: string;
3
+ };
@@ -0,0 +1,8 @@
1
+ export type StripeLocalProduct = {
2
+ name: string;
3
+ description?: string | null;
4
+ readonly price: string;
5
+ stripe_product_id?: string | null;
6
+ sku: string;
7
+ readonly platform: string;
8
+ };
@@ -0,0 +1,4 @@
1
+ export type StripeSubscriptionRenewalRequest = {
2
+ checkout_session_uuid: string;
3
+ return_url: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ export type StripeSubscriptionRenewalResponse = {
2
+ subscription_id: string;
3
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * An unexpected error occurred during launch process
3
+ */
4
+ export type TenantLaunchError = {
5
+ success?: boolean;
6
+ message: any;
7
+ data?: any;
8
+ id?: string;
9
+ timestamp?: string;
10
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Launch process started but could not complete
3
+ */
4
+ export type TenantLaunchFailed = {
5
+ success?: boolean;
6
+ message: any;
7
+ data?: any;
8
+ id?: string;
9
+ timestamp?: string;
10
+ org: string;
11
+ lms_url: string;
12
+ cms_url: string;
13
+ portal_url: string;
14
+ edx_role: string;
15
+ };
@@ -0,0 +1,16 @@
1
+ export type TenantLaunchRequest = {
2
+ username: string;
3
+ email: string;
4
+ firstname?: string;
5
+ lastname?: string;
6
+ password?: string;
7
+ /**
8
+ * Organization name
9
+ */
10
+ name: string;
11
+ /**
12
+ * Unique key for the organization
13
+ */
14
+ key: string;
15
+ ignore_user_exists?: boolean;
16
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Launch process completed successfully
3
+ */
4
+ export type TenantLaunchResponse = {
5
+ success?: boolean;
6
+ message: any;
7
+ data?: any;
8
+ id?: string;
9
+ timestamp?: string;
10
+ org: string;
11
+ lms_url: string;
12
+ cms_url: string;
13
+ portal_url: string;
14
+ edx_role: string;
15
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Serializer for TokenProxyView POST request input data
3
+ */
4
+ export type TokenProxyInput = {
5
+ /**
6
+ * Edx User ID
7
+ */
8
+ user_id?: number;
9
+ /**
10
+ * Edx Username
11
+ */
12
+ username?: string;
13
+ /**
14
+ * Edx Email
15
+ */
16
+ email?: string;
17
+ /**
18
+ * Platform key axd token should belong to
19
+ */
20
+ platform_key: string;
21
+ };
@@ -0,0 +1,7 @@
1
+ import type { TokenProxyOutputSerializerData } from './TokenProxyOutputSerializerData';
2
+ /**
3
+ * The SPA expects this outer data key so we need to create an extra layer
4
+ */
5
+ export type TokenProxyOutput = {
6
+ data: TokenProxyOutputSerializerData;
7
+ };
@@ -0,0 +1,20 @@
1
+ import type { AuthToken } from './AuthToken';
2
+ import type { ManagerAuthToken } from './ManagerAuthToken';
3
+ import type { TokenProxyUser } from './TokenProxyUser';
4
+ /**
5
+ * Core data for Response
6
+ */
7
+ export type TokenProxyOutputSerializerData = {
8
+ /**
9
+ * User details
10
+ */
11
+ user: TokenProxyUser;
12
+ /**
13
+ * Axd Token details
14
+ */
15
+ axd_token: AuthToken;
16
+ /**
17
+ * DM Token details
18
+ */
19
+ dm_token: ManagerAuthToken;
20
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Serializer for User model for TokenProxyOutputSerializerData
3
+ */
4
+ export type TokenProxyUser = {
5
+ /**
6
+ * Edx User ID
7
+ */
8
+ user_id: number;
9
+ /**
10
+ * User's Edx Email
11
+ */
12
+ user_email: string;
13
+ /**
14
+ * Username
15
+ */
16
+ user_nicename: string;
17
+ /**
18
+ * User's display name
19
+ */
20
+ user_display_name: string;
21
+ /**
22
+ * Edx Full Name
23
+ */
24
+ readonly user_fullname: string;
25
+ };
@@ -0,0 +1,27 @@
1
+ import type { App } from './App';
2
+ import type { Platform } from './Platform';
3
+ export type UserApp = {
4
+ readonly id: number;
5
+ /**
6
+ * The app details
7
+ */
8
+ app: App;
9
+ /**
10
+ * The platform details
11
+ */
12
+ readonly platform: Platform;
13
+ /**
14
+ * The subscription details, would contain identifier, active, created_on, last_updated
15
+ */
16
+ readonly subscription: Record<string, any> | null;
17
+ provider: string;
18
+ readonly is_admin: boolean;
19
+ readonly is_active: boolean;
20
+ metadata?: any;
21
+ onboarding_completed?: boolean;
22
+ free_trial_started?: boolean;
23
+ free_trial_expired?: boolean;
24
+ has_active_subscription?: boolean;
25
+ readonly created_at: string;
26
+ readonly updated_at: string;
27
+ };
@@ -0,0 +1,3 @@
1
+ export type UserDeleteAPIError = {
2
+ error: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type UserDeleteAPIRequest = {
2
+ username?: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ export type UserDeleteAPIResponse = {
2
+ message: string;
3
+ };
@@ -0,0 +1,17 @@
1
+ export type UserPlatformLink = {
2
+ user_id: number;
3
+ username: string;
4
+ email: string;
5
+ user_active: boolean;
6
+ key: string;
7
+ org: string;
8
+ lms_url: string;
9
+ cms_url: string;
10
+ portal_url: string;
11
+ is_admin?: boolean;
12
+ is_staff?: boolean;
13
+ added_on?: string | null;
14
+ expired_on?: string | null;
15
+ readonly public: string;
16
+ active?: boolean;
17
+ };
@@ -0,0 +1,6 @@
1
+ export type UserPlatformManagementListViewGetResponse = {
2
+ count: number;
3
+ next_page: number;
4
+ previous_page: number;
5
+ results: Array<Record<string, any>>;
6
+ };
@@ -0,0 +1,8 @@
1
+ export type UserPlatformViewPostRequest = {
2
+ user_id: number;
3
+ platform_key: string;
4
+ added_on?: string;
5
+ expired_on?: string;
6
+ is_admin?: boolean;
7
+ active?: boolean;
8
+ };
@@ -0,0 +1,3 @@
1
+ export type UserProxyBulkRequest = {
2
+ users: Array<Record<string, string>>;
3
+ };
@@ -0,0 +1,8 @@
1
+ export type UserProxyGetResponse = {
2
+ user_id: number;
3
+ username: string;
4
+ email: string;
5
+ active: boolean;
6
+ edx_data: any;
7
+ data: any;
8
+ };
@@ -0,0 +1,7 @@
1
+ export type UserProxyPostRequest = {
2
+ user_id: number;
3
+ username: string;
4
+ email: string;
5
+ edx_data: any;
6
+ data: any;
7
+ };
@@ -0,0 +1,8 @@
1
+ export type UserProxyPostResponse = {
2
+ user_id: number;
3
+ username: string;
4
+ email: string;
5
+ active: boolean;
6
+ edx_data: any;
7
+ data: any;
8
+ };
@@ -0,0 +1,6 @@
1
+ export type UserSearchViewGetResponse = {
2
+ count: number;
3
+ next_page: number;
4
+ previous_page: number;
5
+ results: Array<Record<string, any>>;
6
+ };