@selfcommunity/api-services 0.6.4-courses.242 → 0.6.4-courses.244
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.
|
@@ -11,7 +11,7 @@ export interface CourseApiClientInterface {
|
|
|
11
11
|
getCourseDashboardUsers(id: number | string, params?: CourseDashboardUsersParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
12
12
|
createCourse(data: CourseCreateParams | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
13
13
|
updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
14
|
-
patchCourse(id: number | string, data: Partial<SCCourseType
|
|
14
|
+
patchCourse(id: number | string, data: Partial<SCCourseType> | FormData, 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>;
|
|
17
17
|
getCourseComments(id: number | string, course_id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCourseCommentType>>;
|
|
@@ -115,7 +115,7 @@ export declare class CourseApiClient {
|
|
|
115
115
|
* @param data
|
|
116
116
|
* @param config
|
|
117
117
|
*/
|
|
118
|
-
static patchCourse(id: number | string, data: Partial<SCCourseType
|
|
118
|
+
static patchCourse(id: number | string, data: Partial<SCCourseType> | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
119
119
|
/**
|
|
120
120
|
* This endpoint deletes a course.
|
|
121
121
|
* @param id
|
|
@@ -408,7 +408,7 @@ export default class CourseService {
|
|
|
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
410
|
static updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
411
|
-
static patchCourse(id: number | string, data: Partial<SCCourseType
|
|
411
|
+
static patchCourse(id: number | string, data: Partial<SCCourseType> | FormData, 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>;
|
|
414
414
|
static getCourseComments(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCourseCommentType>>;
|
|
@@ -11,7 +11,7 @@ export interface CourseApiClientInterface {
|
|
|
11
11
|
getCourseDashboardUsers(id: number | string, params?: CourseDashboardUsersParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
|
|
12
12
|
createCourse(data: CourseCreateParams | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
13
13
|
updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
14
|
-
patchCourse(id: number | string, data: Partial<SCCourseType
|
|
14
|
+
patchCourse(id: number | string, data: Partial<SCCourseType> | FormData, 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>;
|
|
17
17
|
getCourseComments(id: number | string, course_id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCourseCommentType>>;
|
|
@@ -115,7 +115,7 @@ export declare class CourseApiClient {
|
|
|
115
115
|
* @param data
|
|
116
116
|
* @param config
|
|
117
117
|
*/
|
|
118
|
-
static patchCourse(id: number | string, data: Partial<SCCourseType
|
|
118
|
+
static patchCourse(id: number | string, data: Partial<SCCourseType> | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
119
119
|
/**
|
|
120
120
|
* This endpoint deletes a course.
|
|
121
121
|
* @param id
|
|
@@ -408,7 +408,7 @@ export default class CourseService {
|
|
|
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
410
|
static updateCourse(id: number | string, data: SCCourseType | FormData, config?: AxiosRequestConfig): Promise<SCCourseType>;
|
|
411
|
-
static patchCourse(id: number | string, data: Partial<SCCourseType
|
|
411
|
+
static patchCourse(id: number | string, data: Partial<SCCourseType> | FormData, 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>;
|
|
414
414
|
static getCourseComments(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<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.244+b18fd4329",
|
|
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.244+b18fd4329",
|
|
62
|
+
"@selfcommunity/utils": "0.2.61-courses.244+b18fd4329",
|
|
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": "b18fd4329f41cb6119087409158c5f3467bd11c0"
|
|
119
119
|
}
|