@iblai/iblai-api 3.48.3-core → 3.48.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 +3038 -2750
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3038 -2750
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3038 -2750
- package/dist/index.umd.js.map +1 -1
- package/dist/types/services/AnalyticsService.d.ts +42 -13
- package/dist/types/services/AudienceService.d.ts +345 -149
- package/dist/types/services/CareerService.d.ts +117 -90
- package/dist/types/services/CatalogService.d.ts +3735 -1072
- package/dist/types/services/CoreService.d.ts +421 -210
- package/dist/types/services/CredentialsService.d.ts +173 -138
- package/dist/types/services/DepartmentsService.d.ts +53 -16
- package/dist/types/services/EngagementService.d.ts +459 -179
- package/dist/types/services/FeaturesService.d.ts +16 -7
- package/dist/types/services/FinanceService.d.ts +49 -20
- package/dist/types/services/MediaResourcesService.d.ts +243 -67
- package/dist/types/services/NotificationBuilderService.d.ts +31 -17
- package/dist/types/services/NotificationService.d.ts +56 -49
- package/dist/types/services/OrgsService.d.ts +106 -77
- package/dist/types/services/OverviewService.d.ts +154 -55
- package/dist/types/services/PerformanceService.d.ts +132 -56
- package/dist/types/services/PerlearnerService.d.ts +431 -217
- package/dist/types/services/PlatformService.d.ts +221 -116
- package/dist/types/services/ProviderAssociationService.d.ts +3 -2
- package/dist/types/services/ProvidersService.d.ts +27 -18
- package/dist/types/services/ProvisionService.d.ts +3 -2
- package/dist/types/services/RecommendationsService.d.ts +3 -3
- package/dist/types/services/ReportsService.d.ts +22 -16
- package/dist/types/services/RolesService.d.ts +8 -6
- package/dist/types/services/SearchService.d.ts +305 -80
- package/dist/types/services/ServiceService.d.ts +33 -29
- package/dist/types/services/SkillsService.d.ts +40 -32
- package/dist/types/services/UserGroupsService.d.ts +53 -16
- package/package.json +1 -1
- package/src/services/AnalyticsService.ts +45 -16
- package/src/services/AudienceService.ts +380 -184
- package/src/services/CareerService.ts +144 -117
- package/src/services/CatalogService.ts +3995 -1332
- package/src/services/CoreService.ts +503 -286
- package/src/services/CredentialsService.ts +253 -173
- package/src/services/DepartmentsService.ts +56 -19
- package/src/services/EngagementService.ts +528 -236
- package/src/services/FeaturesService.ts +19 -10
- package/src/services/FinanceService.ts +54 -25
- package/src/services/MediaResourcesService.ts +251 -75
- package/src/services/NotificationBuilderService.ts +36 -22
- package/src/services/NotificationService.ts +73 -61
- package/src/services/OrgsService.ts +135 -106
- package/src/services/OverviewService.ts +172 -73
- package/src/services/PerformanceService.ts +153 -77
- package/src/services/PerlearnerService.ts +591 -279
- package/src/services/PlatformService.ts +278 -157
- package/src/services/ProviderAssociationService.ts +4 -3
- package/src/services/ProvidersService.ts +36 -27
- package/src/services/ProvisionService.ts +4 -3
- package/src/services/RecommendationsService.ts +5 -4
- package/src/services/ReportsService.ts +28 -22
- package/src/services/RolesService.ts +10 -8
- package/src/services/SearchService.ts +323 -98
- package/src/services/ServiceService.ts +49 -39
- package/src/services/SkillsService.ts +56 -44
- package/src/services/UserGroupsService.ts +56 -19
|
@@ -5,30 +5,39 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
5
5
|
export declare class FeaturesService {
|
|
6
6
|
/**
|
|
7
7
|
* Returns a list of the apps that the user has access to.
|
|
8
|
-
* @param page A page number within the paginated result set.
|
|
9
|
-
* @param pageSize Number of results to return per page.
|
|
10
8
|
* @returns PaginatedUserAppList
|
|
11
9
|
* @throws ApiError
|
|
12
10
|
*/
|
|
13
|
-
static featuresAppsList(page
|
|
11
|
+
static featuresAppsList({ page, pageSize, }: {
|
|
12
|
+
/**
|
|
13
|
+
* A page number within the paginated result set.
|
|
14
|
+
*/
|
|
15
|
+
page?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Number of results to return per page.
|
|
18
|
+
*/
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
}): CancelablePromise<PaginatedUserAppList>;
|
|
14
21
|
/**
|
|
15
22
|
* Updates the user onboarding completed status
|
|
16
|
-
* @param requestBody
|
|
17
23
|
* @returns OnboardingStatusUpdate
|
|
18
24
|
* @throws ApiError
|
|
19
25
|
*/
|
|
20
|
-
static featuresAppsUpdateCreate(requestBody
|
|
26
|
+
static featuresAppsUpdateCreate({ requestBody, }: {
|
|
27
|
+
requestBody: OnboardingStatusUpdate;
|
|
28
|
+
}): CancelablePromise<OnboardingStatusUpdate>;
|
|
21
29
|
/**
|
|
22
30
|
* Activates free trial for the user
|
|
23
31
|
*
|
|
24
32
|
* Set free_trial_started to True| false for the user app
|
|
25
33
|
*
|
|
26
34
|
* App URL or ID is required as well as the platform key
|
|
27
|
-
* @param requestBody
|
|
28
35
|
* @returns ActivateUserFreeTrial
|
|
29
36
|
* @throws ApiError
|
|
30
37
|
*/
|
|
31
|
-
static featuresAppsUpdateTrialStatusCreate(requestBody
|
|
38
|
+
static featuresAppsUpdateTrialStatusCreate({ requestBody, }: {
|
|
39
|
+
requestBody: ActivateUserFreeTrial;
|
|
40
|
+
}): CancelablePromise<ActivateUserFreeTrial>;
|
|
32
41
|
/**
|
|
33
42
|
* POST
|
|
34
43
|
* Bulk update user feature config
|
|
@@ -6,47 +6,76 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
6
6
|
export declare class FinanceService {
|
|
7
7
|
/**
|
|
8
8
|
* Returns table listing products and product info for all or specific org
|
|
9
|
-
* @param org
|
|
10
9
|
* @returns Product
|
|
11
10
|
* @throws ApiError
|
|
12
11
|
*/
|
|
13
|
-
static financeOrgsProductsRetrieve(org
|
|
12
|
+
static financeOrgsProductsRetrieve({ org, }: {
|
|
13
|
+
org: string;
|
|
14
|
+
}): CancelablePromise<Product>;
|
|
14
15
|
/**
|
|
15
16
|
* Return list of WooCommerce orders for product item_id over optional date range
|
|
16
|
-
* @param itemId
|
|
17
|
-
* @param org
|
|
18
|
-
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
19
|
-
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
20
17
|
* @returns Order
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
|
-
static financeOrgsProductsOrdersRetrieve(itemId
|
|
20
|
+
static financeOrgsProductsOrdersRetrieve({ itemId, org, endDate, startDate, }: {
|
|
21
|
+
itemId: string;
|
|
22
|
+
org: string;
|
|
23
|
+
/**
|
|
24
|
+
* End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
25
|
+
*/
|
|
26
|
+
endDate?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
29
|
+
*/
|
|
30
|
+
startDate?: string;
|
|
31
|
+
}): CancelablePromise<Order>;
|
|
24
32
|
/**
|
|
25
33
|
* Returns Net Revenue over time for org and slug
|
|
26
|
-
* @param itemId
|
|
27
|
-
* @param org
|
|
28
|
-
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
29
|
-
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
30
34
|
* @returns NetRevenueOverTime
|
|
31
35
|
* @throws ApiError
|
|
32
36
|
*/
|
|
33
|
-
static financeOrgsProductsSalesOverTimeRetrieve(itemId
|
|
37
|
+
static financeOrgsProductsSalesOverTimeRetrieve({ itemId, org, endDate, startDate, }: {
|
|
38
|
+
itemId: string;
|
|
39
|
+
org: string;
|
|
40
|
+
/**
|
|
41
|
+
* End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
42
|
+
*/
|
|
43
|
+
endDate?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
46
|
+
*/
|
|
47
|
+
startDate?: string;
|
|
48
|
+
}): CancelablePromise<NetRevenueOverTime>;
|
|
34
49
|
/**
|
|
35
50
|
* Returns Net Revenue over time for org and slug
|
|
36
|
-
* @param org
|
|
37
|
-
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
38
|
-
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
39
51
|
* @returns NetRevenueOverTime
|
|
40
52
|
* @throws ApiError
|
|
41
53
|
*/
|
|
42
|
-
static financeOrgsRevenueNetOverTimeRetrieve(org
|
|
54
|
+
static financeOrgsRevenueNetOverTimeRetrieve({ org, endDate, startDate, }: {
|
|
55
|
+
org: string;
|
|
56
|
+
/**
|
|
57
|
+
* End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
58
|
+
*/
|
|
59
|
+
endDate?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
62
|
+
*/
|
|
63
|
+
startDate?: string;
|
|
64
|
+
}): CancelablePromise<NetRevenueOverTime>;
|
|
43
65
|
/**
|
|
44
66
|
* Returns Revenue by Product + summary for specific org
|
|
45
|
-
* @param org
|
|
46
|
-
* @param endDate End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
47
|
-
* @param startDate Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
48
67
|
* @returns RevenueByProduct
|
|
49
68
|
* @throws ApiError
|
|
50
69
|
*/
|
|
51
|
-
static financeOrgsRevenueProductsRetrieve(org
|
|
70
|
+
static financeOrgsRevenueProductsRetrieve({ org, endDate, startDate, }: {
|
|
71
|
+
org: string;
|
|
72
|
+
/**
|
|
73
|
+
* End of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
74
|
+
*/
|
|
75
|
+
endDate?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Start of date range, not-inclusive. ISO8601 Date or DateTime. Dates will have 00:00:00 set as the time.
|
|
78
|
+
*/
|
|
79
|
+
startDate?: string;
|
|
80
|
+
}): CancelablePromise<RevenueByProduct>;
|
|
52
81
|
}
|
|
@@ -4,109 +4,285 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
4
4
|
export declare class MediaResourcesService {
|
|
5
5
|
/**
|
|
6
6
|
* List and filter media resources. Supports filtering by course_id, unit_id, item_id and searching across multiple fields.
|
|
7
|
-
* @param org Organization identifier
|
|
8
|
-
* @param userId User identifier
|
|
9
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
10
|
-
* @param itemId Filter by item ID
|
|
11
|
-
* @param page A page number within the paginated result set.
|
|
12
|
-
* @param pageSize Number of results to return per page.
|
|
13
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
14
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
15
7
|
* @returns any Successfully retrieved media resources
|
|
16
8
|
* @throws ApiError
|
|
17
9
|
*/
|
|
18
|
-
static mediaOrgsUsersMediaMediaResourcesList(org
|
|
10
|
+
static mediaOrgsUsersMediaMediaResourcesList({ org, userId, courseId, itemId, page, pageSize, search, unitId, }: {
|
|
11
|
+
/**
|
|
12
|
+
* Organization identifier
|
|
13
|
+
*/
|
|
14
|
+
org: string;
|
|
15
|
+
/**
|
|
16
|
+
* User identifier
|
|
17
|
+
*/
|
|
18
|
+
userId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
21
|
+
*/
|
|
22
|
+
courseId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Filter by item ID
|
|
25
|
+
*/
|
|
26
|
+
itemId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* A page number within the paginated result set.
|
|
29
|
+
*/
|
|
30
|
+
page?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of results to return per page.
|
|
33
|
+
*/
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
37
|
+
*/
|
|
38
|
+
search?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
41
|
+
*/
|
|
42
|
+
unitId?: string;
|
|
43
|
+
}): CancelablePromise<any>;
|
|
19
44
|
/**
|
|
20
45
|
* List and filter media resources. Supports filtering by course_id, unit_id, item_id and searching across multiple fields.
|
|
21
|
-
* @param org Organization identifier
|
|
22
|
-
* @param userId User identifier
|
|
23
|
-
* @param requestBody
|
|
24
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
25
|
-
* @param itemId Filter by item ID
|
|
26
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
27
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
28
46
|
* @returns any Successfully retrieved media resources
|
|
29
47
|
* @throws ApiError
|
|
30
48
|
*/
|
|
31
|
-
static mediaOrgsUsersMediaMediaResourcesCreate(org
|
|
49
|
+
static mediaOrgsUsersMediaMediaResourcesCreate({ org, userId, requestBody, courseId, itemId, search, unitId, }: {
|
|
50
|
+
/**
|
|
51
|
+
* Organization identifier
|
|
52
|
+
*/
|
|
53
|
+
org: string;
|
|
54
|
+
/**
|
|
55
|
+
* User identifier
|
|
56
|
+
*/
|
|
57
|
+
userId: string;
|
|
58
|
+
requestBody: MediaResource;
|
|
59
|
+
/**
|
|
60
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
61
|
+
*/
|
|
62
|
+
courseId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Filter by item ID
|
|
65
|
+
*/
|
|
66
|
+
itemId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
69
|
+
*/
|
|
70
|
+
search?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
73
|
+
*/
|
|
74
|
+
unitId?: string;
|
|
75
|
+
}): CancelablePromise<any>;
|
|
32
76
|
/**
|
|
33
77
|
* List and filter media resources. Supports filtering by course_id, unit_id, item_id and searching across multiple fields.
|
|
34
|
-
* @param id A unique integer value identifying this Media Resource.
|
|
35
|
-
* @param org Organization identifier
|
|
36
|
-
* @param userId User identifier
|
|
37
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
38
|
-
* @param itemId Filter by item ID
|
|
39
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
40
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
41
78
|
* @returns any Successfully retrieved media resources
|
|
42
79
|
* @throws ApiError
|
|
43
80
|
*/
|
|
44
|
-
static mediaOrgsUsersMediaMediaResourcesRetrieve(id
|
|
81
|
+
static mediaOrgsUsersMediaMediaResourcesRetrieve({ id, org, userId, courseId, itemId, search, unitId, }: {
|
|
82
|
+
/**
|
|
83
|
+
* A unique integer value identifying this Media Resource.
|
|
84
|
+
*/
|
|
85
|
+
id: number;
|
|
86
|
+
/**
|
|
87
|
+
* Organization identifier
|
|
88
|
+
*/
|
|
89
|
+
org: string;
|
|
90
|
+
/**
|
|
91
|
+
* User identifier
|
|
92
|
+
*/
|
|
93
|
+
userId: string;
|
|
94
|
+
/**
|
|
95
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
96
|
+
*/
|
|
97
|
+
courseId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Filter by item ID
|
|
100
|
+
*/
|
|
101
|
+
itemId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
104
|
+
*/
|
|
105
|
+
search?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
108
|
+
*/
|
|
109
|
+
unitId?: string;
|
|
110
|
+
}): CancelablePromise<any>;
|
|
45
111
|
/**
|
|
46
112
|
* List and filter media resources. Supports filtering by course_id, unit_id, item_id and searching across multiple fields.
|
|
47
|
-
* @param id A unique integer value identifying this Media Resource.
|
|
48
|
-
* @param org Organization identifier
|
|
49
|
-
* @param userId User identifier
|
|
50
|
-
* @param requestBody
|
|
51
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
52
|
-
* @param itemId Filter by item ID
|
|
53
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
54
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
55
113
|
* @returns any Successfully retrieved media resources
|
|
56
114
|
* @throws ApiError
|
|
57
115
|
*/
|
|
58
|
-
static mediaOrgsUsersMediaMediaResourcesUpdate(id
|
|
116
|
+
static mediaOrgsUsersMediaMediaResourcesUpdate({ id, org, userId, requestBody, courseId, itemId, search, unitId, }: {
|
|
117
|
+
/**
|
|
118
|
+
* A unique integer value identifying this Media Resource.
|
|
119
|
+
*/
|
|
120
|
+
id: number;
|
|
121
|
+
/**
|
|
122
|
+
* Organization identifier
|
|
123
|
+
*/
|
|
124
|
+
org: string;
|
|
125
|
+
/**
|
|
126
|
+
* User identifier
|
|
127
|
+
*/
|
|
128
|
+
userId: string;
|
|
129
|
+
requestBody: MediaResource;
|
|
130
|
+
/**
|
|
131
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
132
|
+
*/
|
|
133
|
+
courseId?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Filter by item ID
|
|
136
|
+
*/
|
|
137
|
+
itemId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
140
|
+
*/
|
|
141
|
+
search?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
144
|
+
*/
|
|
145
|
+
unitId?: string;
|
|
146
|
+
}): CancelablePromise<any>;
|
|
59
147
|
/**
|
|
60
148
|
* List and filter media resources. Supports filtering by course_id, unit_id, item_id and searching across multiple fields.
|
|
61
|
-
* @param id A unique integer value identifying this Media Resource.
|
|
62
|
-
* @param org Organization identifier
|
|
63
|
-
* @param userId User identifier
|
|
64
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
65
|
-
* @param itemId Filter by item ID
|
|
66
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
67
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
68
|
-
* @param requestBody
|
|
69
149
|
* @returns any Successfully retrieved media resources
|
|
70
150
|
* @throws ApiError
|
|
71
151
|
*/
|
|
72
|
-
static mediaOrgsUsersMediaMediaResourcesPartialUpdate(id
|
|
152
|
+
static mediaOrgsUsersMediaMediaResourcesPartialUpdate({ id, org, userId, courseId, itemId, search, unitId, requestBody, }: {
|
|
153
|
+
/**
|
|
154
|
+
* A unique integer value identifying this Media Resource.
|
|
155
|
+
*/
|
|
156
|
+
id: number;
|
|
157
|
+
/**
|
|
158
|
+
* Organization identifier
|
|
159
|
+
*/
|
|
160
|
+
org: string;
|
|
161
|
+
/**
|
|
162
|
+
* User identifier
|
|
163
|
+
*/
|
|
164
|
+
userId: string;
|
|
165
|
+
/**
|
|
166
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
167
|
+
*/
|
|
168
|
+
courseId?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Filter by item ID
|
|
171
|
+
*/
|
|
172
|
+
itemId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
175
|
+
*/
|
|
176
|
+
search?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
179
|
+
*/
|
|
180
|
+
unitId?: string;
|
|
181
|
+
requestBody?: PatchedMediaResource;
|
|
182
|
+
}): CancelablePromise<any>;
|
|
73
183
|
/**
|
|
74
184
|
* List and filter media resources. Supports filtering by course_id, unit_id, item_id and searching across multiple fields.
|
|
75
|
-
* @param id A unique integer value identifying this Media Resource.
|
|
76
|
-
* @param org Organization identifier
|
|
77
|
-
* @param userId User identifier
|
|
78
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
79
|
-
* @param itemId Filter by item ID
|
|
80
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
81
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
82
185
|
* @returns any Successfully retrieved media resources
|
|
83
186
|
* @throws ApiError
|
|
84
187
|
*/
|
|
85
|
-
static mediaOrgsUsersMediaMediaResourcesDestroy(id
|
|
188
|
+
static mediaOrgsUsersMediaMediaResourcesDestroy({ id, org, userId, courseId, itemId, search, unitId, }: {
|
|
189
|
+
/**
|
|
190
|
+
* A unique integer value identifying this Media Resource.
|
|
191
|
+
*/
|
|
192
|
+
id: number;
|
|
193
|
+
/**
|
|
194
|
+
* Organization identifier
|
|
195
|
+
*/
|
|
196
|
+
org: string;
|
|
197
|
+
/**
|
|
198
|
+
* User identifier
|
|
199
|
+
*/
|
|
200
|
+
userId: string;
|
|
201
|
+
/**
|
|
202
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
203
|
+
*/
|
|
204
|
+
courseId?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Filter by item ID
|
|
207
|
+
*/
|
|
208
|
+
itemId?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
211
|
+
*/
|
|
212
|
+
search?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
215
|
+
*/
|
|
216
|
+
unitId?: string;
|
|
217
|
+
}): CancelablePromise<any>;
|
|
86
218
|
/**
|
|
87
219
|
* Get media resources for a specific item. The item_type determines which resources are returned based on the provided item_id.
|
|
88
|
-
* @param itemId ID of the item
|
|
89
|
-
* @param itemType Type of item. Valid values: course, unit, resource, course_unit, course_resource, unit_resource, all
|
|
90
|
-
* @param org Organization identifier
|
|
91
|
-
* @param userId User identifier
|
|
92
|
-
* @param courseId Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
93
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
94
|
-
* @param unitId Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
95
220
|
* @returns any Successfully retrieved media resources for item
|
|
96
221
|
* @throws ApiError
|
|
97
222
|
*/
|
|
98
|
-
static mediaOrgsUsersMediaMediaResourcesByItemRetrieve(itemId
|
|
223
|
+
static mediaOrgsUsersMediaMediaResourcesByItemRetrieve({ itemId, itemType, org, userId, courseId, search, unitId, }: {
|
|
224
|
+
/**
|
|
225
|
+
* ID of the item
|
|
226
|
+
*/
|
|
227
|
+
itemId: string;
|
|
228
|
+
/**
|
|
229
|
+
* Type of item. Valid values: course, unit, resource, course_unit, course_resource, unit_resource, all
|
|
230
|
+
*/
|
|
231
|
+
itemType: 'all' | 'course' | 'course_resource' | 'course_unit' | 'resource' | 'unit' | 'unit_resource';
|
|
232
|
+
/**
|
|
233
|
+
* Organization identifier
|
|
234
|
+
*/
|
|
235
|
+
org: string;
|
|
236
|
+
/**
|
|
237
|
+
* User identifier
|
|
238
|
+
*/
|
|
239
|
+
userId: string;
|
|
240
|
+
/**
|
|
241
|
+
* Filter by course ID (e.g., course-v1:main+NB101+2025-T1)
|
|
242
|
+
*/
|
|
243
|
+
courseId?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
246
|
+
*/
|
|
247
|
+
search?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Filter by unit ID (e.g., block-v1:main+NB101+2025-T1+type@vertical+block@12345)
|
|
250
|
+
*/
|
|
251
|
+
unitId?: string;
|
|
252
|
+
}): CancelablePromise<any>;
|
|
99
253
|
/**
|
|
100
254
|
* Search media resources by title, description, or IDs. Supports filtering results by course_id, unit_id, and item_id.
|
|
101
|
-
* @param org Organization identifier
|
|
102
|
-
* @param q Search query string
|
|
103
|
-
* @param userId User identifier
|
|
104
|
-
* @param courseId Filter results by course ID
|
|
105
|
-
* @param itemId Filter results by item ID
|
|
106
|
-
* @param search Search across title, description, course_id, unit_id, item_id, and file_url
|
|
107
|
-
* @param unitId Filter results by unit ID
|
|
108
255
|
* @returns any Successfully searched media resources
|
|
109
256
|
* @throws ApiError
|
|
110
257
|
*/
|
|
111
|
-
static mediaOrgsUsersMediaMediaResourcesSearchRetrieve(org
|
|
258
|
+
static mediaOrgsUsersMediaMediaResourcesSearchRetrieve({ org, q, userId, courseId, itemId, search, unitId, }: {
|
|
259
|
+
/**
|
|
260
|
+
* Organization identifier
|
|
261
|
+
*/
|
|
262
|
+
org: string;
|
|
263
|
+
/**
|
|
264
|
+
* Search query string
|
|
265
|
+
*/
|
|
266
|
+
q: string;
|
|
267
|
+
/**
|
|
268
|
+
* User identifier
|
|
269
|
+
*/
|
|
270
|
+
userId: string;
|
|
271
|
+
/**
|
|
272
|
+
* Filter results by course ID
|
|
273
|
+
*/
|
|
274
|
+
courseId?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Filter results by item ID
|
|
277
|
+
*/
|
|
278
|
+
itemId?: string;
|
|
279
|
+
/**
|
|
280
|
+
* Search across title, description, course_id, unit_id, item_id, and file_url
|
|
281
|
+
*/
|
|
282
|
+
search?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Filter results by unit ID
|
|
285
|
+
*/
|
|
286
|
+
unitId?: string;
|
|
287
|
+
}): CancelablePromise<any>;
|
|
112
288
|
}
|
|
@@ -11,48 +11,62 @@ export declare class NotificationBuilderService {
|
|
|
11
11
|
/**
|
|
12
12
|
* Get build recipients
|
|
13
13
|
* Get paginated list of recipients for a notification build
|
|
14
|
-
* @param id
|
|
15
|
-
* @param platformKey
|
|
16
|
-
* @param page Page number
|
|
17
|
-
* @param pageSize Number of items per page
|
|
18
|
-
* @param search Search recipients by username or email
|
|
19
14
|
* @returns Recipient
|
|
20
15
|
* @throws ApiError
|
|
21
16
|
*/
|
|
22
|
-
static notificationV1OrgsNotificationBuilderRecipientsList(id
|
|
17
|
+
static notificationV1OrgsNotificationBuilderRecipientsList({ id, platformKey, page, pageSize, search, }: {
|
|
18
|
+
id: string;
|
|
19
|
+
platformKey: string;
|
|
20
|
+
/**
|
|
21
|
+
* Page number
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of items per page
|
|
26
|
+
*/
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Search recipients by username or email
|
|
30
|
+
*/
|
|
31
|
+
search?: string;
|
|
32
|
+
}): CancelablePromise<Array<Recipient>>;
|
|
23
33
|
/**
|
|
24
34
|
* Get notification context data
|
|
25
35
|
* Get all context data needed for notification building including templates, channels, and platforms
|
|
26
|
-
* @param platformKey
|
|
27
36
|
* @returns ContextResponse
|
|
28
37
|
* @throws ApiError
|
|
29
38
|
*/
|
|
30
|
-
static notificationV1OrgsNotificationBuilderContextRetrieve(platformKey
|
|
39
|
+
static notificationV1OrgsNotificationBuilderContextRetrieve({ platformKey, }: {
|
|
40
|
+
platformKey: string;
|
|
41
|
+
}): CancelablePromise<ContextResponse>;
|
|
31
42
|
/**
|
|
32
43
|
* Preview notification
|
|
33
44
|
* Preview notification recipients and get build ID for sending
|
|
34
|
-
* @param platformKey
|
|
35
|
-
* @param requestBody
|
|
36
45
|
* @returns PreviewResponse
|
|
37
46
|
* @throws ApiError
|
|
38
47
|
*/
|
|
39
|
-
static notificationV1OrgsNotificationBuilderPreviewCreate(platformKey
|
|
48
|
+
static notificationV1OrgsNotificationBuilderPreviewCreate({ platformKey, requestBody, }: {
|
|
49
|
+
platformKey: string;
|
|
50
|
+
requestBody: NotificationPreview;
|
|
51
|
+
}): CancelablePromise<PreviewResponse>;
|
|
40
52
|
/**
|
|
41
53
|
* Send notification
|
|
42
54
|
* Send notifications to all recipients in a build
|
|
43
|
-
* @param platformKey
|
|
44
|
-
* @param requestBody
|
|
45
55
|
* @returns SendResponse
|
|
46
56
|
* @throws ApiError
|
|
47
57
|
*/
|
|
48
|
-
static notificationV1OrgsNotificationBuilderSendCreate(platformKey
|
|
58
|
+
static notificationV1OrgsNotificationBuilderSendCreate({ platformKey, requestBody, }: {
|
|
59
|
+
platformKey: string;
|
|
60
|
+
requestBody: SendNotification;
|
|
61
|
+
}): CancelablePromise<SendResponse>;
|
|
49
62
|
/**
|
|
50
63
|
* Validate notification source
|
|
51
64
|
* Validate a single notification source (email, username, platform, csv)
|
|
52
|
-
* @param platformKey
|
|
53
|
-
* @param requestBody
|
|
54
65
|
* @returns ValidateSourceResponse
|
|
55
66
|
* @throws ApiError
|
|
56
67
|
*/
|
|
57
|
-
static notificationV1OrgsNotificationBuilderValidateSourceCreate(platformKey
|
|
68
|
+
static notificationV1OrgsNotificationBuilderValidateSourceCreate({ platformKey, requestBody, }: {
|
|
69
|
+
platformKey: string;
|
|
70
|
+
requestBody: NotificationSource;
|
|
71
|
+
}): CancelablePromise<ValidateSourceResponse>;
|
|
58
72
|
}
|