ntk-cms-api 1.2.216 → 1.2.218

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.
@@ -3335,7 +3335,7 @@ class CoreAuthService extends ApiServerBase {
3335
3335
  return this.http.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/CurrentToken', { headers: this.getHeaders() }).pipe(
3336
3336
  // catchError(this.handleError)
3337
3337
  map((ret) => {
3338
- this.setToken(ret.token, ret.deviceToken, '');
3338
+ this.setToken(ret.item.token, ret.item.deviceToken, '');
3339
3339
  return ret;
3340
3340
  }));
3341
3341
  }
@@ -3343,7 +3343,7 @@ class CoreAuthService extends ApiServerBase {
3343
3343
  return this.http.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/CurrentDeviceToken', { headers: this.getHeaders() }).pipe(
3344
3344
  // catchError(this.handleError)
3345
3345
  map((ret) => {
3346
- this.setDeviceToken(ret.deviceToken);
3346
+ this.setDeviceToken(ret.item.deviceToken);
3347
3347
  return ret;
3348
3348
  }));
3349
3349
  }
@@ -3358,7 +3358,7 @@ class CoreAuthService extends ApiServerBase {
3358
3358
  return this.http.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/GetTokenDevice/', model).pipe(
3359
3359
  // catchError(this.handleError)
3360
3360
  map((ret) => {
3361
- this.setDeviceToken(ret.deviceToken);
3361
+ this.setDeviceToken(ret.item.deviceToken);
3362
3362
  return ret;
3363
3363
  }));
3364
3364
  }
@@ -5248,17 +5248,6 @@ class ApiTelegramEnumService extends ApiServerBase {
5248
5248
  return this.errorExceptionResultCheck(ret);
5249
5249
  }));
5250
5250
  }
5251
- ServiceOSTypeEnum() {
5252
- return this.http
5253
- .get(this.getBaseUrl() + this.getModuleControllerUrl() + '/OSTypeEnum', {
5254
- headers: this.getHeaders(),
5255
- })
5256
- .pipe(
5257
- // catchError(this.handleError)
5258
- map((ret) => {
5259
- return this.errorExceptionResultCheck(ret);
5260
- }));
5261
- }
5262
5251
  }
5263
5252
  ApiTelegramEnumService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiTelegramEnumService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
5264
5253
  ApiTelegramEnumService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiTelegramEnumService });
@@ -8260,17 +8249,6 @@ class ApplicationEnumService extends ApiServerBase {
8260
8249
  return this.errorExceptionResultCheck(ret);
8261
8250
  }));
8262
8251
  }
8263
- ServiceOSTypeEnum() {
8264
- return this.http
8265
- .get(this.getBaseUrl() + this.getModuleControllerUrl() + '/OSTypeEnum', {
8266
- headers: this.getHeaders(),
8267
- })
8268
- .pipe(
8269
- // catchError(this.handleError)
8270
- map((ret) => {
8271
- return this.errorExceptionResultCheck(ret);
8272
- }));
8273
- }
8274
8252
  }
8275
8253
  ApplicationEnumService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApplicationEnumService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
8276
8254
  ApplicationEnumService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApplicationEnumService });