@selfcommunity/api-services 0.6.4-courses.219 → 0.6.4-courses.221
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.
|
@@ -10,7 +10,7 @@ export interface CourseApiClientInterface {
|
|
|
10
10
|
getSpecificCourseInfo(id: number | string, params?: CourseInfoParams, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
11
11
|
getCourseDashboardUsers(id: number | string, params?: CourseDashboardUsersParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
12
12
|
createCourse(data: CourseCreateParams | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
13
|
-
updateCourse(id: number | string, data: SCCourseType, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
13
|
+
updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
14
14
|
patchCourse(id: number | string, data: Partial<SCCourseType>, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
15
15
|
deleteCourse(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
16
16
|
getCourseLessonComment(id: number | string, section_id: number | string, lesson_id: number | string, comment_id: number | string, config?: AxiosRequestConfig): Promise<SCCourseCommentType>;
|
|
@@ -108,7 +108,7 @@ export declare class CourseApiClient {
|
|
|
108
108
|
* @param data
|
|
109
109
|
* @param config
|
|
110
110
|
*/
|
|
111
|
-
static updateCourse(id: number | string, data: SCCourseType, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
111
|
+
static updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
112
112
|
/**
|
|
113
113
|
* This endpoint patches a course.
|
|
114
114
|
* @param id
|
|
@@ -407,7 +407,7 @@ export default class CourseService {
|
|
|
407
407
|
static getSpecificCourseInfo(id: number | string, params?: CourseInfoParams, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
408
408
|
static getCourseDashboardUsers(id: number | string, params?: CourseDashboardUsersParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
409
409
|
static createCourse(data: CourseCreateParams | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
410
|
-
static updateCourse(id: number | string, data: SCCourseType, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
410
|
+
static updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
411
411
|
static patchCourse(id: number | string, data: Partial<SCCourseType>, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
412
412
|
static deleteCourse(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
413
413
|
static getCourseLessonComment(id: number | string, section_id: number | string, lesson_id: number | string, comment_id: number | string, config?: AxiosRequestConfig): Promise<SCCourseCommentType>;
|
|
@@ -10,7 +10,7 @@ export interface CourseApiClientInterface {
|
|
|
10
10
|
getSpecificCourseInfo(id: number | string, params?: CourseInfoParams, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
11
11
|
getCourseDashboardUsers(id: number | string, params?: CourseDashboardUsersParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
12
12
|
createCourse(data: CourseCreateParams | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
13
|
-
updateCourse(id: number | string, data: SCCourseType, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
13
|
+
updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
14
14
|
patchCourse(id: number | string, data: Partial<SCCourseType>, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
15
15
|
deleteCourse(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
16
16
|
getCourseLessonComment(id: number | string, section_id: number | string, lesson_id: number | string, comment_id: number | string, config?: AxiosRequestConfig): Promise<SCCourseCommentType>;
|
|
@@ -108,7 +108,7 @@ export declare class CourseApiClient {
|
|
|
108
108
|
* @param data
|
|
109
109
|
* @param config
|
|
110
110
|
*/
|
|
111
|
-
static updateCourse(id: number | string, data: SCCourseType, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
111
|
+
static updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
112
112
|
/**
|
|
113
113
|
* This endpoint patches a course.
|
|
114
114
|
* @param id
|
|
@@ -407,7 +407,7 @@ export default class CourseService {
|
|
|
407
407
|
static getSpecificCourseInfo(id: number | string, params?: CourseInfoParams, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
408
408
|
static getCourseDashboardUsers(id: number | string, params?: CourseDashboardUsersParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
409
409
|
static createCourse(data: CourseCreateParams | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
410
|
-
static updateCourse(id: number | string, data: SCCourseType, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
410
|
+
static updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
411
411
|
static patchCourse(id: number | string, data: Partial<SCCourseType>, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
412
412
|
static deleteCourse(id: number | string, config?: AxiosRequestConfig): Promise<any>;
|
|
413
413
|
static getCourseLessonComment(id: number | string, section_id: number | string, lesson_id: number | string, comment_id: number | string, config?: AxiosRequestConfig): Promise<SCCourseCommentType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/api-services",
|
|
3
|
-
"version": "0.6.4-courses.
|
|
3
|
+
"version": "0.6.4-courses.221+8f202f60b",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@selfcommunity/types": "0.7.4-courses.
|
|
62
|
-
"@selfcommunity/utils": "0.2.61-courses.
|
|
61
|
+
"@selfcommunity/types": "0.7.4-courses.221+8f202f60b",
|
|
62
|
+
"@selfcommunity/utils": "0.2.61-courses.221+8f202f60b",
|
|
63
63
|
"axios": "^1.4.0",
|
|
64
64
|
"jose": "^4.14.4"
|
|
65
65
|
},
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"bugs": {
|
|
116
116
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "8f202f60bac137b46c04d1e2c48b84150d51ee8b"
|
|
119
119
|
}
|