iptdevs-design-system 3.2.57 → 3.2.59

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.
@@ -4212,8 +4212,8 @@ class CommercialService extends IPTGeneralService {
4212
4212
  this.generateRequestParams(params);
4213
4213
  return this.http.post(serviceUrl, this.httpOptions);
4214
4214
  }
4215
- getCodStudentDetailsByAdviser(request) {
4216
- const serviceUrl = this.SERVICE_URL + 'get/cod/student/details/by/adviser';
4215
+ getCodStudentDetailsByAdviser(request, adviserCode) {
4216
+ const serviceUrl = this.SERVICE_URL + `get/cod/student/details/by/adviser/${adviserCode}`;
4217
4217
  const options = { ...this.httpOptions, params: request };
4218
4218
  return this.http.get(serviceUrl, options);
4219
4219
  }
@@ -4262,13 +4262,13 @@ class CommercialService extends IPTGeneralService {
4262
4262
  this.generateRequestParams(request);
4263
4263
  return this.http.get(serviceUrl, this.httpOptions);
4264
4264
  }
4265
- assignCommissionGoalToUser(params) {
4266
- const serviceUrl = this.SERVICE_URL + 'post/assign/goal/to/user';
4265
+ assignCommissionModelToUser(params) {
4266
+ const serviceUrl = this.SERVICE_URL + 'post/assign/model/to/user';
4267
4267
  this.generateRequestParams(params);
4268
4268
  return this.http.post(serviceUrl, this.httpOptions);
4269
4269
  }
4270
- getActiveCommissionGoalForUser(request) {
4271
- const serviceUrl = this.SERVICE_URL + 'get/active/goal/for/user';
4270
+ getActiveCommissionModelForUser(request, userCode) {
4271
+ const serviceUrl = this.SERVICE_URL + `get/active/model/for/user/${userCode}`;
4272
4272
  this.generateRequestParams(request);
4273
4273
  return this.http.get(serviceUrl, this.httpOptions);
4274
4274
  }
@@ -4360,6 +4360,34 @@ class CommercialService extends IPTGeneralService {
4360
4360
  this.generateRequestParams(idcard_student);
4361
4361
  return this.http.get(serviceUrl);
4362
4362
  }
4363
+ exportPosibleStudentAllFourModelsByDate(params) {
4364
+ let serviceUrl = this.SERVICE_URL + 'get/posible/students/all/four/models/by/date/for/export';
4365
+ this.generateRequestParams(params);
4366
+ return this.http.post(serviceUrl, this.httpOptions);
4367
+ }
4368
+ getAllGoalsForCommissionModels(request) {
4369
+ const serviceUrl = this.SERVICE_URL + 'get/helpers/goals';
4370
+ this.generateRequestParams(request);
4371
+ return this.http.get(serviceUrl, this.httpOptions);
4372
+ }
4373
+ getTeamByManager(request, managerCode) {
4374
+ const serviceUrl = this.SERVICE_URL + `get/team/by/manager/${managerCode}`;
4375
+ this.generateRequestParams(request);
4376
+ return this.http.get(serviceUrl, this.httpOptions);
4377
+ }
4378
+ assignSubordinateToManager(params) {
4379
+ const serviceUrl = this.SERVICE_URL + 'post/team/member';
4380
+ this.generateRequestParams(params);
4381
+ return this.http.post(serviceUrl, this.httpOptions);
4382
+ }
4383
+ removeSubordinateFromManager(params) {
4384
+ const serviceUrl = this.SERVICE_URL + 'delete/team/member';
4385
+ const options = {
4386
+ ...this.httpOptions,
4387
+ body: { params }
4388
+ };
4389
+ return this.http.delete(serviceUrl, options);
4390
+ }
4363
4391
  }
4364
4392
  CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
4365
4393
  CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });