ntk-cms-api 20.25.5 → 20.25.7
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/fesm2022/ntk-cms-api.mjs +70 -27
- package/fesm2022/ntk-cms-api.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
package/fesm2022/ntk-cms-api.mjs
CHANGED
|
@@ -3344,13 +3344,17 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3344
3344
|
return 'auth';
|
|
3345
3345
|
}
|
|
3346
3346
|
ServiceSigninUser(model) {
|
|
3347
|
-
return this.http
|
|
3347
|
+
return this.http
|
|
3348
|
+
.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/signin', model, { headers: this.getHeaders() })
|
|
3349
|
+
.pipe(map((ret) => {
|
|
3348
3350
|
this.setJWT(ret.item);
|
|
3349
3351
|
return ret;
|
|
3350
3352
|
}));
|
|
3351
3353
|
}
|
|
3352
3354
|
ServiceSigninUserBySMS(model) {
|
|
3353
|
-
return this.http
|
|
3355
|
+
return this.http
|
|
3356
|
+
.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/signInBySms', model, { headers: this.getHeaders() })
|
|
3357
|
+
.pipe(map((ret) => {
|
|
3354
3358
|
if (ret.isSuccess) {
|
|
3355
3359
|
this.setJWT(ret.item);
|
|
3356
3360
|
}
|
|
@@ -3367,7 +3371,8 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3367
3371
|
model.refreshToken = jwt.refreshToken;
|
|
3368
3372
|
}
|
|
3369
3373
|
}
|
|
3370
|
-
return this.http
|
|
3374
|
+
return this.http
|
|
3375
|
+
.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/RefreshToken', model, {
|
|
3371
3376
|
headers: this.getHeaders(),
|
|
3372
3377
|
})
|
|
3373
3378
|
.pipe(map((ret) => {
|
|
@@ -3379,7 +3384,9 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3379
3384
|
var model = this.getJWT();
|
|
3380
3385
|
if (!model || !model.refreshToken || model.refreshToken.length == 0)
|
|
3381
3386
|
return null;
|
|
3382
|
-
|
|
3387
|
+
this.setHeaders('refreshToken', model.refreshToken);
|
|
3388
|
+
return this.http
|
|
3389
|
+
.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/signOut/', {
|
|
3383
3390
|
headers: this.getHeaders(),
|
|
3384
3391
|
})
|
|
3385
3392
|
.pipe(map((ret) => {
|
|
@@ -3389,18 +3396,24 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3389
3396
|
}));
|
|
3390
3397
|
}
|
|
3391
3398
|
ServiceIsAuthenticated() {
|
|
3392
|
-
return this.http
|
|
3399
|
+
return this.http
|
|
3400
|
+
.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/IsAuthenticated', { headers: this.getHeaders() })
|
|
3401
|
+
.pipe(map((ret) => {
|
|
3393
3402
|
return ret;
|
|
3394
3403
|
}));
|
|
3395
3404
|
}
|
|
3396
3405
|
ServiceCurrentToken() {
|
|
3397
|
-
return this.http
|
|
3406
|
+
return this.http
|
|
3407
|
+
.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/CurrentToken', { headers: this.getHeaders() })
|
|
3408
|
+
.pipe(map((ret) => {
|
|
3398
3409
|
//this.tokenInfoSubject.next(ret.item);
|
|
3399
3410
|
return ret;
|
|
3400
3411
|
}));
|
|
3401
3412
|
}
|
|
3402
3413
|
ServiceGetTokenDevice(model) {
|
|
3403
|
-
return this.http
|
|
3414
|
+
return this.http
|
|
3415
|
+
.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/GetTokenDevice/', model, { headers: this.getHeaders() })
|
|
3416
|
+
.pipe(map((ret) => {
|
|
3404
3417
|
this.setDeviceToken(ret.item.deviceToken);
|
|
3405
3418
|
// if (!ret.item) {
|
|
3406
3419
|
// this.tokenDeviceSubject.next(new TokenDeviceModel());
|
|
@@ -3412,7 +3425,11 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3412
3425
|
}));
|
|
3413
3426
|
}
|
|
3414
3427
|
ServiceCurrentDeviceToken() {
|
|
3415
|
-
return this.http
|
|
3428
|
+
return this.http
|
|
3429
|
+
.get(this.getBaseUrl() +
|
|
3430
|
+
this.getModuleControllerUrl() +
|
|
3431
|
+
'/CurrentDeviceToken', { headers: this.getHeaders() })
|
|
3432
|
+
.pipe(map((ret) => {
|
|
3416
3433
|
this.setDeviceToken(ret.item.deviceToken);
|
|
3417
3434
|
// if (!ret.item) {
|
|
3418
3435
|
// this.tokenDeviceSubject.next(new TokenDeviceModel());
|
|
@@ -3424,17 +3441,27 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3424
3441
|
}));
|
|
3425
3442
|
}
|
|
3426
3443
|
ServiceSetTokenDeviceNotificationId(model) {
|
|
3427
|
-
return this.http
|
|
3444
|
+
return this.http
|
|
3445
|
+
.post(this.getBaseUrl() +
|
|
3446
|
+
this.getModuleControllerUrl() +
|
|
3447
|
+
'/SetTokenDeviceNotificationId/', model, { headers: this.getHeaders() })
|
|
3448
|
+
.pipe(map((ret) => {
|
|
3428
3449
|
return ret;
|
|
3429
3450
|
}));
|
|
3430
3451
|
}
|
|
3431
3452
|
ServiceSignupUser(model) {
|
|
3432
|
-
return this.http
|
|
3453
|
+
return this.http
|
|
3454
|
+
.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/signup', model, { headers: this.getHeaders() })
|
|
3455
|
+
.pipe(map((ret) => {
|
|
3433
3456
|
return ret;
|
|
3434
3457
|
}));
|
|
3435
3458
|
}
|
|
3436
3459
|
ServiceCaptcha() {
|
|
3437
|
-
return this.http
|
|
3460
|
+
return this.http
|
|
3461
|
+
.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/captcha', {
|
|
3462
|
+
headers: this.getHeaders(),
|
|
3463
|
+
})
|
|
3464
|
+
.pipe(map((ret) => {
|
|
3438
3465
|
return ret;
|
|
3439
3466
|
}));
|
|
3440
3467
|
}
|
|
@@ -3472,12 +3499,18 @@ class CoreAuthV3Service extends ApiServerBase {
|
|
|
3472
3499
|
}));
|
|
3473
3500
|
}
|
|
3474
3501
|
ServiceForgetPassword(model) {
|
|
3475
|
-
return this.http
|
|
3502
|
+
return this.http
|
|
3503
|
+
.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/forgetPassword', model, { headers: this.getHeaders() })
|
|
3504
|
+
.pipe(map((ret) => {
|
|
3476
3505
|
return ret;
|
|
3477
3506
|
}));
|
|
3478
3507
|
}
|
|
3479
3508
|
ServiceForgetPasswordEntryPinCode(model) {
|
|
3480
|
-
return this.http
|
|
3509
|
+
return this.http
|
|
3510
|
+
.post(this.getBaseUrl() +
|
|
3511
|
+
this.getModuleControllerUrl() +
|
|
3512
|
+
'/ForgetPasswordEntryPinCode', model, { headers: this.getHeaders() })
|
|
3513
|
+
.pipe(map((ret) => {
|
|
3481
3514
|
return ret;
|
|
3482
3515
|
}));
|
|
3483
3516
|
}
|
|
@@ -4052,7 +4085,10 @@ class CoreModuleSiteCreditService extends ApiCmsServerBase {
|
|
|
4052
4085
|
}
|
|
4053
4086
|
ServiceGetCredit(LinkModuleId) {
|
|
4054
4087
|
return this.http
|
|
4055
|
-
.get(this.getBaseUrl() +
|
|
4088
|
+
.get(this.getBaseUrl() +
|
|
4089
|
+
this.getModuleControllerUrl() +
|
|
4090
|
+
'/GetCredit/' +
|
|
4091
|
+
LinkModuleId, {
|
|
4056
4092
|
headers: this.getHeaders(),
|
|
4057
4093
|
})
|
|
4058
4094
|
.pipe(retry(this.configApiRetry), map((ret) => {
|
|
@@ -4126,7 +4162,10 @@ class CoreModuleSiteUserCreditService extends ApiCmsServerBase {
|
|
|
4126
4162
|
}
|
|
4127
4163
|
ServiceGetCredit(LinkModuleId) {
|
|
4128
4164
|
return this.http
|
|
4129
|
-
.get(this.getBaseUrl() +
|
|
4165
|
+
.get(this.getBaseUrl() +
|
|
4166
|
+
this.getModuleControllerUrl() +
|
|
4167
|
+
'/GetCredit/' +
|
|
4168
|
+
LinkModuleId, {
|
|
4130
4169
|
headers: this.getHeaders(),
|
|
4131
4170
|
})
|
|
4132
4171
|
.pipe(retry(this.configApiRetry), map((ret) => {
|
|
@@ -7186,18 +7225,22 @@ class BankPaymentPrivateSiteConfigService extends ApiCmsServerBase {
|
|
|
7186
7225
|
return this.errorExceptionResultCheck(ret);
|
|
7187
7226
|
}));
|
|
7188
7227
|
}
|
|
7189
|
-
ServiceGoToBankPaymentWebSite(model)
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7228
|
+
// ServiceGoToBankPaymentWebSite(model: BankPaymentInjectOnlineTransactionDtoModel):
|
|
7229
|
+
// Observable<ErrorExceptionResult<BankPaymentInjectPaymentGotoBankStep2LandingSitePageModel>> {
|
|
7230
|
+
// if (model == null) {
|
|
7231
|
+
// model = new BankPaymentInjectOnlineTransactionDtoModel();
|
|
7232
|
+
// }
|
|
7233
|
+
// return this.http
|
|
7234
|
+
// .post(this.getBaseUrl() + this.getModuleControllerUrl() + '/GoToBankPaymentWebSite', model, {
|
|
7235
|
+
// headers: this.getHeaders(),
|
|
7236
|
+
// })
|
|
7237
|
+
// .pipe(
|
|
7238
|
+
// retry(this.configApiRetry),
|
|
7239
|
+
// map((ret: any) => {
|
|
7240
|
+
// return this.errorExceptionResultCheck(ret);
|
|
7241
|
+
// }),
|
|
7242
|
+
// );
|
|
7243
|
+
// }
|
|
7201
7244
|
ServicePaymentGatewayList() {
|
|
7202
7245
|
return this.http
|
|
7203
7246
|
.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/PaymentGatewayList', {
|