iptdevs-design-system 2.6.35 → 2.6.36
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/esm2020/lib/core/core.module.mjs +6 -3
- package/esm2020/lib/core/services/activity-service/activity.service.mjs +92 -0
- package/fesm2015/iptdevs-design-system.mjs +92 -2
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +92 -2
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/services/activity-service/activity.service.d.ts +26 -0
- package/package.json +1 -1
|
@@ -2040,6 +2040,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2040
2040
|
}]
|
|
2041
2041
|
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
2042
2042
|
|
|
2043
|
+
class ActivityService {
|
|
2044
|
+
constructor(http) {
|
|
2045
|
+
this.http = http;
|
|
2046
|
+
this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
|
|
2047
|
+
}
|
|
2048
|
+
getActivityByCourse(params) {
|
|
2049
|
+
let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
|
|
2050
|
+
this.generateRequestParams(params);
|
|
2051
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2052
|
+
}
|
|
2053
|
+
getNoticesByCourse(codeCourse) {
|
|
2054
|
+
let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
|
|
2055
|
+
return this.http.get(serviceUrl);
|
|
2056
|
+
}
|
|
2057
|
+
getUnitsByActivity(params) {
|
|
2058
|
+
let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
|
|
2059
|
+
this.generateRequestParams(params);
|
|
2060
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2061
|
+
}
|
|
2062
|
+
getElementsByUnit(params) {
|
|
2063
|
+
let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
|
|
2064
|
+
this.generateRequestParams(params);
|
|
2065
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2066
|
+
}
|
|
2067
|
+
getCourseTeacherByToken(params) {
|
|
2068
|
+
let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
|
|
2069
|
+
this.generateRequestParams(params);
|
|
2070
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2071
|
+
}
|
|
2072
|
+
getAllTypeResource() {
|
|
2073
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
|
|
2074
|
+
return this.http.get(serviceUrl);
|
|
2075
|
+
}
|
|
2076
|
+
getAllTypeElement() {
|
|
2077
|
+
let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
|
|
2078
|
+
return this.http.get(serviceUrl);
|
|
2079
|
+
}
|
|
2080
|
+
getElementsByUnitNew(params) {
|
|
2081
|
+
let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
|
|
2082
|
+
this.generateRequestParams(params);
|
|
2083
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2084
|
+
}
|
|
2085
|
+
updateCourseByCronogram(params) {
|
|
2086
|
+
let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
|
|
2087
|
+
this.generateRequestParams(params);
|
|
2088
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2089
|
+
}
|
|
2090
|
+
getTemplateCourseByCourse(codeCourse) {
|
|
2091
|
+
let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
|
|
2092
|
+
return this.http.get(serviceUrl);
|
|
2093
|
+
}
|
|
2094
|
+
saveMagnageActivity(params) {
|
|
2095
|
+
let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
|
|
2096
|
+
this.generateRequestParams(params);
|
|
2097
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2098
|
+
}
|
|
2099
|
+
postNotesActivityH5P(params) {
|
|
2100
|
+
let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
|
|
2101
|
+
this.generateRequestParams(params);
|
|
2102
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2103
|
+
}
|
|
2104
|
+
getMagnageActivity(params) {
|
|
2105
|
+
let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
|
|
2106
|
+
this.generateRequestParams(params);
|
|
2107
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2108
|
+
}
|
|
2109
|
+
getNoteActivityH5P(params) {
|
|
2110
|
+
let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
|
|
2111
|
+
this.generateRequestParams(params);
|
|
2112
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2113
|
+
}
|
|
2114
|
+
// construye los headers y params
|
|
2115
|
+
generateRequestParams(param) {
|
|
2116
|
+
this.httpOptions = {
|
|
2117
|
+
header: new HttpHeaders(),
|
|
2118
|
+
params: param,
|
|
2119
|
+
};
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
ActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2123
|
+
ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
|
|
2124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
|
|
2125
|
+
type: Injectable,
|
|
2126
|
+
args: [{
|
|
2127
|
+
providedIn: 'root',
|
|
2128
|
+
}]
|
|
2129
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
|
|
2130
|
+
|
|
2043
2131
|
class CoreModule {
|
|
2044
2132
|
}
|
|
2045
2133
|
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2055,7 +2143,8 @@ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
|
|
|
2055
2143
|
TestService,
|
|
2056
2144
|
MarketingService,
|
|
2057
2145
|
ClassroomService,
|
|
2058
|
-
BudgetService
|
|
2146
|
+
BudgetService,
|
|
2147
|
+
ActivityService
|
|
2059
2148
|
] });
|
|
2060
2149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
|
|
2061
2150
|
type: NgModule,
|
|
@@ -2071,7 +2160,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2071
2160
|
TestService,
|
|
2072
2161
|
MarketingService,
|
|
2073
2162
|
ClassroomService,
|
|
2074
|
-
BudgetService
|
|
2163
|
+
BudgetService,
|
|
2164
|
+
ActivityService
|
|
2075
2165
|
]
|
|
2076
2166
|
}]
|
|
2077
2167
|
}] });
|