@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.
- package/dist/index.cjs.js +13134 -3071
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13128 -3072
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +13134 -3071
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +80 -1
- package/dist/types/models/AWSTenantLaunchRequest.d.ts +20 -0
- package/dist/types/models/ActivateUserFreeTrial.d.ts +11 -0
- package/dist/types/models/App.d.ts +10 -0
- package/dist/types/models/AppleSubscriptionStatusRequest.d.ts +3 -0
- package/dist/types/models/AppleSubscriptionStatusView.d.ts +3 -0
- package/dist/types/models/AppleVerifyTransactionId.d.ts +3 -0
- package/dist/types/models/AssociateAccountResponse.d.ts +5 -0
- package/dist/types/models/AssociateAppleAccount.d.ts +3 -0
- package/dist/types/models/AuthToken.d.ts +10 -0
- package/dist/types/models/BaseErrorResponse.d.ts +5 -0
- package/dist/types/models/BaseResponse.d.ts +5 -0
- package/dist/types/models/CeleryHeartbeat.d.ts +5 -0
- package/dist/types/models/CeleryHeartbeatFail.d.ts +5 -0
- package/dist/types/models/CeleryHeartbeatFailStatusEnum.d.ts +8 -0
- package/dist/types/models/CeleryHeartbeatStatusEnum.d.ts +8 -0
- package/dist/types/models/DesiredRole.d.ts +4 -0
- package/dist/types/models/EdxSignalReceiverRequest.d.ts +4 -0
- package/dist/types/models/GCPTenantLaunchRequest.d.ts +24 -0
- package/dist/types/models/GooglePayAccountResponse.d.ts +15 -0
- package/dist/types/models/GooglePayAccountResponseStatusEnum.d.ts +8 -0
- package/dist/types/models/GooglePayVerifyToken.d.ts +6 -0
- package/dist/types/models/ItemTypeEnum.d.ts +18 -0
- package/dist/types/models/LauncherViewPostRequest.d.ts +9 -0
- package/dist/types/models/ManagerAuthToken.d.ts +13 -0
- package/dist/types/models/MediaResource.d.ts +71 -0
- package/dist/types/models/MediaTypeEnum.d.ts +14 -0
- package/dist/types/models/ModeEnum.d.ts +10 -0
- package/dist/types/models/Notification.d.ts +2 -2
- package/dist/types/models/{StatusEnum.d.ts → NotificationStatusEnum.d.ts} +1 -1
- package/dist/types/models/OnboardingStatusUpdate.d.ts +7 -0
- package/dist/types/models/PaginatedUserAppList.d.ts +7 -0
- package/dist/types/models/PatchedMediaResource.d.ts +71 -0
- package/dist/types/models/PatchedNotification.d.ts +2 -2
- package/dist/types/models/Platform.d.ts +29 -0
- package/dist/types/models/PlatformApiKey.d.ts +30 -0
- package/dist/types/models/PlatformList.d.ts +29 -0
- package/dist/types/models/PlatformListStatusEnum.d.ts +22 -0
- package/dist/types/models/PlatformUpdatePostRequest.d.ts +9 -0
- package/dist/types/models/ReportedRole.d.ts +4 -0
- package/dist/types/models/Resource.d.ts +22 -0
- package/dist/types/models/ResourceCreateUpdate.d.ts +42 -0
- package/dist/types/models/Role.d.ts +7 -0
- package/dist/types/models/StripeCheckoutSessionRequest.d.ts +54 -0
- package/dist/types/models/StripeCheckoutSessionResponse.d.ts +6 -0
- package/dist/types/models/StripeCustomerPortalRequest.d.ts +3 -0
- package/dist/types/models/StripeCustomerPortalResponse.d.ts +3 -0
- package/dist/types/models/StripeLocalProduct.d.ts +8 -0
- package/dist/types/models/StripeSubscriptionRenewalRequest.d.ts +4 -0
- package/dist/types/models/StripeSubscriptionRenewalResponse.d.ts +3 -0
- package/dist/types/models/TenantLaunchError.d.ts +10 -0
- package/dist/types/models/TenantLaunchFailed.d.ts +15 -0
- package/dist/types/models/TenantLaunchRequest.d.ts +16 -0
- package/dist/types/models/TenantLaunchResponse.d.ts +15 -0
- package/dist/types/models/TokenProxyInput.d.ts +21 -0
- package/dist/types/models/TokenProxyOutput.d.ts +7 -0
- package/dist/types/models/TokenProxyOutputSerializerData.d.ts +20 -0
- package/dist/types/models/TokenProxyUser.d.ts +25 -0
- package/dist/types/models/UserApp.d.ts +27 -0
- package/dist/types/models/UserDeleteAPIError.d.ts +3 -0
- package/dist/types/models/UserDeleteAPIRequest.d.ts +3 -0
- package/dist/types/models/UserDeleteAPIResponse.d.ts +3 -0
- package/dist/types/models/UserPlatformLink.d.ts +17 -0
- package/dist/types/models/UserPlatformManagementListViewGetResponse.d.ts +6 -0
- package/dist/types/models/UserPlatformViewPostRequest.d.ts +8 -0
- package/dist/types/models/UserProxyBulkRequest.d.ts +3 -0
- package/dist/types/models/UserProxyGetResponse.d.ts +8 -0
- package/dist/types/models/UserProxyPostRequest.d.ts +7 -0
- package/dist/types/models/UserProxyPostResponse.d.ts +8 -0
- package/dist/types/models/UserSearchViewGetResponse.d.ts +6 -0
- package/dist/types/models/VerifyGCPMarketPlaceFailedResponse.d.ts +11 -0
- package/dist/types/models/VerifyGCPMarketPlaceRequest.d.ts +3 -0
- package/dist/types/models/VerifyGCPMarketPlaceResponse.d.ts +11 -0
- package/dist/types/models/WatchedVideosPerCourse.d.ts +8 -0
- package/dist/types/models/WatchedVideosPerCourseData.d.ts +18 -0
- package/dist/types/models/WhitelistedDomain.d.ts +4 -0
- package/dist/types/services/CatalogService.d.ts +6904 -0
- package/dist/types/services/CoreService.d.ts +442 -0
- package/dist/types/services/FeaturesService.d.ts +75 -0
- package/dist/types/services/MediaResourcesService.d.ts +112 -0
- package/dist/types/services/PlatformService.d.ts +314 -0
- package/dist/types/services/ProvidersService.d.ts +142 -0
- package/dist/types/services/ProvisionService.d.ts +14 -0
- package/dist/types/services/RolesService.d.ts +57 -0
- package/dist/types/services/ServiceService.d.ts +170 -0
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +80 -1
- package/src/models/AWSTenantLaunchRequest.ts +25 -0
- package/src/models/ActivateUserFreeTrial.ts +16 -0
- package/src/models/App.ts +15 -0
- package/src/models/AppleSubscriptionStatusRequest.ts +8 -0
- package/src/models/AppleSubscriptionStatusView.ts +8 -0
- package/src/models/AppleVerifyTransactionId.ts +8 -0
- package/src/models/AssociateAccountResponse.ts +10 -0
- package/src/models/AssociateAppleAccount.ts +8 -0
- package/src/models/AuthToken.ts +15 -0
- package/src/models/BaseErrorResponse.ts +10 -0
- package/src/models/BaseResponse.ts +10 -0
- package/src/models/CeleryHeartbeat.ts +10 -0
- package/src/models/CeleryHeartbeatFail.ts +10 -0
- package/src/models/CeleryHeartbeatFailStatusEnum.ts +12 -0
- package/src/models/CeleryHeartbeatStatusEnum.ts +12 -0
- package/src/models/DesiredRole.ts +9 -0
- package/src/models/EdxSignalReceiverRequest.ts +9 -0
- package/src/models/GCPTenantLaunchRequest.ts +29 -0
- package/src/models/GooglePayAccountResponse.ts +20 -0
- package/src/models/GooglePayAccountResponseStatusEnum.ts +12 -0
- package/src/models/GooglePayVerifyToken.ts +11 -0
- package/src/models/ItemTypeEnum.ts +22 -0
- package/src/models/LauncherViewPostRequest.ts +14 -0
- package/src/models/ManagerAuthToken.ts +18 -0
- package/src/models/MediaResource.ts +76 -0
- package/src/models/MediaTypeEnum.ts +18 -0
- package/src/models/ModeEnum.ts +14 -0
- package/src/models/Notification.ts +2 -2
- package/src/models/{StatusEnum.ts → NotificationStatusEnum.ts} +1 -1
- package/src/models/OnboardingStatusUpdate.ts +12 -0
- package/src/models/PaginatedUserAppList.ts +12 -0
- package/src/models/PatchedMediaResource.ts +76 -0
- package/src/models/PatchedNotification.ts +2 -2
- package/src/models/Platform.ts +34 -0
- package/src/models/PlatformApiKey.ts +35 -0
- package/src/models/PlatformList.ts +34 -0
- package/src/models/PlatformListStatusEnum.ts +26 -0
- package/src/models/PlatformUpdatePostRequest.ts +14 -0
- package/src/models/ReportedRole.ts +9 -0
- package/src/models/Resource.ts +27 -0
- package/src/models/ResourceCreateUpdate.ts +47 -0
- package/src/models/Role.ts +12 -0
- package/src/models/StripeCheckoutSessionRequest.ts +59 -0
- package/src/models/StripeCheckoutSessionResponse.ts +11 -0
- package/src/models/StripeCustomerPortalRequest.ts +8 -0
- package/src/models/StripeCustomerPortalResponse.ts +8 -0
- package/src/models/StripeLocalProduct.ts +13 -0
- package/src/models/StripeSubscriptionRenewalRequest.ts +9 -0
- package/src/models/StripeSubscriptionRenewalResponse.ts +8 -0
- package/src/models/TenantLaunchError.ts +15 -0
- package/src/models/TenantLaunchFailed.ts +20 -0
- package/src/models/TenantLaunchRequest.ts +21 -0
- package/src/models/TenantLaunchResponse.ts +20 -0
- package/src/models/TokenProxyInput.ts +26 -0
- package/src/models/TokenProxyOutput.ts +12 -0
- package/src/models/TokenProxyOutputSerializerData.ts +25 -0
- package/src/models/TokenProxyUser.ts +30 -0
- package/src/models/UserApp.ts +32 -0
- package/src/models/UserDeleteAPIError.ts +8 -0
- package/src/models/UserDeleteAPIRequest.ts +8 -0
- package/src/models/UserDeleteAPIResponse.ts +8 -0
- package/src/models/UserPlatformLink.ts +22 -0
- package/src/models/UserPlatformManagementListViewGetResponse.ts +11 -0
- package/src/models/UserPlatformViewPostRequest.ts +13 -0
- package/src/models/UserProxyBulkRequest.ts +8 -0
- package/src/models/UserProxyGetResponse.ts +13 -0
- package/src/models/UserProxyPostRequest.ts +12 -0
- package/src/models/UserProxyPostResponse.ts +13 -0
- package/src/models/UserSearchViewGetResponse.ts +11 -0
- package/src/models/VerifyGCPMarketPlaceFailedResponse.ts +16 -0
- package/src/models/VerifyGCPMarketPlaceRequest.ts +8 -0
- package/src/models/VerifyGCPMarketPlaceResponse.ts +16 -0
- package/src/models/WatchedVideosPerCourse.ts +13 -0
- package/src/models/WatchedVideosPerCourseData.ts +23 -0
- package/src/models/WhitelistedDomain.ts +9 -0
- package/src/services/CatalogService.ts +7769 -0
- package/src/services/CoreService.ts +792 -1
- package/src/services/FeaturesService.ts +126 -0
- package/src/services/MediaResourcesService.ts +319 -0
- package/src/services/PlatformService.ts +582 -0
- package/src/services/ProvidersService.ts +271 -0
- package/src/services/ProvisionService.ts +30 -0
- package/src/services/RolesService.ts +87 -0
- package/src/services/ServiceService.ts +320 -0
|
@@ -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 {
|
|
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?: (
|
|
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,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,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,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,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,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
|
+
};
|