ntk-cms-api 18.3.464 → 18.3.465
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/models/dto/core-main/authRefreshTokenModel.mjs +3 -0
- package/esm2020/lib/models/entity/core-token/_export.mjs +4 -1
- package/esm2020/lib/models/entity/core-token/tokenAccessModel.mjs +3 -0
- package/esm2020/lib/models/entity/core-token/tokenInfoModelV3.mjs +3 -0
- package/esm2020/lib/models/entity/core-token/tokenJWTModel.mjs +3 -0
- package/esm2020/lib/service/api-telegram/apiTelegramBotConfig.service.mjs +8 -22
- package/esm2020/lib/service/api-telegram/apiTelegramEnum.service.mjs +2 -4
- package/esm2020/lib/service/application/applicationApp.service.mjs +9 -25
- package/esm2020/lib/service/application/applicationEnum.service.mjs +2 -4
- package/esm2020/lib/service/application/applicationLayout.service.mjs +3 -7
- package/esm2020/lib/service/application/applicationLogNotification.service.mjs +2 -4
- package/esm2020/lib/service/application/applicationSource.service.mjs +2 -4
- package/esm2020/lib/service/application/applicationThemeConfig.service.mjs +2 -4
- package/esm2020/lib/service/article/articleCategory.service.mjs +2 -4
- package/esm2020/lib/service/article/articleComment.service.mjs +3 -7
- package/esm2020/lib/service/article/articleContent.service.mjs +11 -31
- package/esm2020/lib/service/article/articleContentOtherInfo.service.mjs +3 -7
- package/esm2020/lib/service/article/articleContentSimilar.service.mjs +3 -7
- package/esm2020/lib/service/article/articleContentTag.service.mjs +3 -7
- package/esm2020/lib/service/article/articleShareServerCategory.service.mjs +2 -4
- package/esm2020/lib/service/bank-payment/bankPaymentEnum.service.mjs +3 -7
- package/esm2020/lib/service/bank-payment/bankPaymentPrivateSiteConfig.service.mjs +6 -16
- package/esm2020/lib/service/bank-payment/bankPaymentPublicConfig.service.mjs +3 -7
- package/esm2020/lib/service/bank-payment/bankPaymentTransaction.service.mjs +2 -4
- package/esm2020/lib/service/base/apiCmsServerBase.service.mjs +35 -103
- package/esm2020/lib/service/base/apiServerBase.service.mjs +23 -18
- package/esm2020/lib/service/base/apiServerConfigSiteBase.service.mjs +15 -43
- package/esm2020/lib/service/biography/biographyCategory.service.mjs +2 -4
- package/esm2020/lib/service/biography/biographyComment.service.mjs +3 -7
- package/esm2020/lib/service/biography/biographyContent.service.mjs +17 -49
- package/esm2020/lib/service/biography/biographyContentOtherInfo.service.mjs +3 -7
- package/esm2020/lib/service/biography/biographyContentSimilar.service.mjs +3 -7
- package/esm2020/lib/service/biography/biographyContentTag.service.mjs +3 -7
- package/esm2020/lib/service/biography/biographyShareServerCategory.service.mjs +2 -4
- package/esm2020/lib/service/blog/blogCategory.service.mjs +2 -4
- package/esm2020/lib/service/blog/blogComment.service.mjs +3 -7
- package/esm2020/lib/service/blog/blogContent.service.mjs +11 -31
- package/esm2020/lib/service/blog/blogContentOtherInfo.service.mjs +3 -7
- package/esm2020/lib/service/blog/blogContentSimilar.service.mjs +3 -7
- package/esm2020/lib/service/blog/blogContentTag.service.mjs +3 -7
- package/esm2020/lib/service/blog/blogShareServerCategory.service.mjs +2 -4
- package/esm2020/lib/service/catalog/catalogCategory.service.mjs +2 -4
- package/esm2020/lib/service/catalog/catalogContent.service.mjs +7 -19
- package/esm2020/lib/service/chart/chartCategory.service.mjs +2 -4
- package/esm2020/lib/service/chart/chartComment.service.mjs +3 -7
- package/esm2020/lib/service/chart/chartContent.service.mjs +11 -31
- package/esm2020/lib/service/chart/chartContentOtherInfo.service.mjs +3 -7
- package/esm2020/lib/service/chart/chartContentSimilar.service.mjs +3 -7
- package/esm2020/lib/service/chart/chartContentTag.service.mjs +3 -7
- package/esm2020/lib/service/chart/chartShareServerCategory.service.mjs +2 -4
- package/esm2020/lib/service/contact/contactCategory.service.mjs +2 -4
- package/esm2020/lib/service/core-main/coreConfiguration.service.mjs +3 -7
- package/esm2020/lib/service/core-main/coreCpMainMenu.service.mjs +4 -10
- package/esm2020/lib/service/core-main/coreEnum.service.mjs +24 -70
- package/esm2020/lib/service/core-main/coreGuide.service.mjs +4 -10
- package/esm2020/lib/service/core-main/coreLocation.service.mjs +8 -22
- package/esm2020/lib/service/core-main/coreModule.service.mjs +8 -22
- package/esm2020/lib/service/core-main/coreModuleEntity.service.mjs +2 -4
- package/esm2020/lib/service/core-main/coreModuleProcess.service.mjs +4 -10
- package/esm2020/lib/service/core-main/coreModuleSaleHeader.service.mjs +5 -13
- package/esm2020/lib/service/core-main/coreModuleSaleSerial.service.mjs +3 -7
- package/esm2020/lib/service/core-main/coreModuleSite.service.mjs +4 -10
- package/esm2020/lib/service/core-main/coreSite.service.mjs +18 -52
- package/esm2020/lib/service/core-main/coreSiteUser.service.mjs +2 -4
- package/esm2020/lib/service/core-main/coreUser.service.mjs +4 -10
- package/esm2020/lib/service/core-main/coreUserClaimContent.service.mjs +3 -7
- package/esm2020/lib/service/core-module-data/coreModuleDataComment.service.mjs +2 -4
- package/esm2020/lib/service/core-module-data/coreModuleDataMemo.service.mjs +2 -4
- package/esm2020/lib/service/core-module-data/coreModuleDataPin.service.mjs +2 -4
- package/esm2020/lib/service/core-module-data/coreModuleDataTask.service.mjs +2 -4
- package/esm2020/lib/service/core-module-log/coreModuleLogFavorite.service.mjs +3 -7
- package/esm2020/lib/service/core-module-log/coreModuleLogReportAbuse.service.mjs +2 -4
- package/esm2020/lib/service/core-module-log/coreModuleLogShowKey.service.mjs +2 -4
- package/esm2020/lib/service/core-module-main/coreModuleSiteCredit.service.mjs +6 -16
- package/esm2020/lib/service/core-module-main/coreModuleSiteUserCredit.service.mjs +6 -16
- package/esm2020/lib/service/core-module-main/coreModuleTagCategory.service.mjs +2 -4
- package/esm2020/lib/service/core-token/_export.mjs +2 -1
- package/esm2020/lib/service/core-token/coreAuth.service.mjs +39 -75
- package/esm2020/lib/service/core-token/coreAuthV3.service.mjs +101 -0
- package/esm2020/lib/service/core-token/coreTokenConnection.service.mjs +3 -7
- package/esm2020/lib/service/data-provider/dataProviderEnum.service.mjs +2 -4
- package/esm2020/lib/service/data-provider/dataProviderTransaction.service.mjs +3 -7
- package/esm2020/lib/service/donate/donateEnum.service.mjs +2 -4
- package/esm2020/lib/service/donate/donateTransaction.service.mjs +3 -7
- package/esm2020/lib/service/estate/estateAccountAgencyAds.service.mjs +3 -7
- package/esm2020/lib/service/estate/estateAdsType.service.mjs +4 -10
- package/esm2020/lib/service/estate/estateCustomerOrder.service.mjs +9 -25
- package/esm2020/lib/service/estate/estateEnum.service.mjs +4 -10
- package/esm2020/lib/service/estate/estateProperty.service.mjs +17 -49
- package/esm2020/lib/service/estate/estatePropertyAds.service.mjs +3 -7
- package/esm2020/lib/service/estate/estatePropertyDetail.service.mjs +2 -4
- package/esm2020/lib/service/estate/estatePropertyDetailGroup.service.mjs +3 -7
- package/esm2020/lib/service/estate/estatePropertyExpertPrice.service.mjs +3 -7
- package/esm2020/lib/service/estate/estatePropertyHistory.service.mjs +2 -4
- package/esm2020/lib/service/estate/estatePropertyShareAgency.service.mjs +2 -4
- package/esm2020/lib/service/estate/estatePropertyShareAgent.service.mjs +2 -4
- package/esm2020/lib/service/estate/estatePropertyShareSite.service.mjs +3 -7
- package/esm2020/lib/service/file/fileCategory.service.mjs +3 -7
- package/esm2020/lib/service/file/fileContent.service.mjs +12 -34
- package/esm2020/lib/service/hyper-shop/hyperShopCategory.service.mjs +3 -7
- package/esm2020/lib/service/hyper-shop/hyperShopContent.service.mjs +6 -16
- package/esm2020/lib/service/hyper-shop/hyperShopOrder.service.mjs +4 -10
- package/esm2020/lib/service/link-management/linkManagementBillboard.service.mjs +2 -4
- package/esm2020/lib/service/link-management/linkManagementEnum.service.mjs +4 -10
- package/esm2020/lib/service/link-management/linkManagementTarget.service.mjs +4 -10
- package/esm2020/lib/service/link-management/linkManagementTargetBillboardLog.service.mjs +2 -4
- package/esm2020/lib/service/news/newsCategory.service.mjs +2 -4
- package/esm2020/lib/service/news/newsComment.service.mjs +3 -7
- package/esm2020/lib/service/news/newsContent.service.mjs +11 -31
- package/esm2020/lib/service/news/newsContentOtherInfo.service.mjs +3 -7
- package/esm2020/lib/service/news/newsContentSimilar.service.mjs +3 -7
- package/esm2020/lib/service/news/newsContentTag.service.mjs +3 -7
- package/esm2020/lib/service/news/newsShareServerCategory.service.mjs +2 -4
- package/esm2020/lib/service/polling/pollingCategory.service.mjs +2 -4
- package/esm2020/lib/service/polling/pollingVote.service.mjs +2 -4
- package/esm2020/lib/service/sms/smsEnum.service.mjs +10 -28
- package/esm2020/lib/service/sms/smsLogOutBoxQueue.service.mjs +3 -7
- package/esm2020/lib/service/sms/smsLogOutBoxTaskScheduler.service.mjs +3 -7
- package/esm2020/lib/service/sms/smsMainApiPath.service.mjs +7 -19
- package/esm2020/lib/service/sms/smsMainApiPathPublicConfig.service.mjs +3 -7
- package/esm2020/lib/service/sms/smsMainMessageCategory.service.mjs +2 -4
- package/esm2020/lib/service/ticketing/ticketingAnswer.service.mjs +2 -4
- package/esm2020/lib/service/ticketing/ticketingDepartemen.service.mjs +2 -4
- package/esm2020/lib/service/ticketing/ticketingDepartemenOperator.service.mjs +2 -4
- package/esm2020/lib/service/ticketing/ticketingEnum.service.mjs +4 -10
- package/esm2020/lib/service/ticketing/ticketingFaq.service.mjs +2 -4
- package/esm2020/lib/service/ticketing/ticketingTask.service.mjs +4 -10
- package/esm2020/lib/service/universal-menu/universalMenuEnum.service.mjs +3 -7
- package/esm2020/lib/service/universal-menu/universalMenuMenuItem.service.mjs +3 -7
- package/esm2020/lib/service/web-designer/webDesignerEnum.service.mjs +4 -10
- package/esm2020/lib/service/web-designer/webDesignerMainMenu.service.mjs +3 -7
- package/esm2020/lib/service/web-designer/webDesignerMainPage.service.mjs +7 -19
- package/esm2020/lib/service/web-designer/webDesignerMainPageDependency.service.mjs +3 -7
- package/fesm2015/ntk-cms-api.mjs +595 -1376
- package/fesm2015/ntk-cms-api.mjs.map +1 -1
- package/fesm2020/ntk-cms-api.mjs +594 -1376
- package/fesm2020/ntk-cms-api.mjs.map +1 -1
- package/lib/models/dto/core-main/authRefreshTokenModel.d.ts +8 -0
- package/lib/models/entity/core-token/_export.d.ts +3 -0
- package/lib/models/entity/core-token/tokenAccessModel.d.ts +14 -0
- package/lib/models/entity/core-token/tokenInfoModelV3.d.ts +9 -0
- package/lib/models/entity/core-token/tokenJWTModel.d.ts +5 -0
- package/lib/service/base/apiServerBase.service.d.ts +4 -2
- package/lib/service/core-token/_export.d.ts +1 -0
- package/lib/service/core-token/coreAuth.service.d.ts +0 -1
- package/lib/service/core-token/coreAuthV3.service.d.ts +27 -0
- package/package.json +3 -3
|
@@ -5,3 +5,6 @@ export * from './coreTokenMicroServiceModel';
|
|
|
5
5
|
export * from './coreTokenConnectionModel';
|
|
6
6
|
export * from './tokenInfoModel';
|
|
7
7
|
export * from './tokenDeviceModel';
|
|
8
|
+
export * from './tokenInfoModelV3';
|
|
9
|
+
export * from './tokenAccessModel';
|
|
10
|
+
export * from './tokenJWTModel';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LanguageEnum, ManageUserAccessAreaTypesEnum, ManageUserAccessUserTypesEnum } from "../../enums/base/_export";
|
|
2
|
+
export declare class TokenAccessModel {
|
|
3
|
+
siteId: number;
|
|
4
|
+
userId: number;
|
|
5
|
+
userAccessAdminAllowToAllData: boolean;
|
|
6
|
+
userAccessAdminAllowToProfessionalData: boolean;
|
|
7
|
+
userAccessUserType: ManageUserAccessUserTypesEnum;
|
|
8
|
+
userAccessAreaType: ManageUserAccessAreaTypesEnum;
|
|
9
|
+
userAccessUserTypeTitle: string;
|
|
10
|
+
userAccessAreaTypeTitle: string;
|
|
11
|
+
userLanguage: LanguageEnum;
|
|
12
|
+
language: string;
|
|
13
|
+
direction: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CoreSiteModel, CoreUserModel } from "../core-main/_export";
|
|
2
|
+
import { TokenAccessModel } from "./tokenAccessModel";
|
|
3
|
+
import { TokenDeviceModel } from "./tokenDeviceModel";
|
|
4
|
+
export declare class TokenInfoModelV3 {
|
|
5
|
+
access: TokenAccessModel;
|
|
6
|
+
device: TokenDeviceModel;
|
|
7
|
+
user: CoreUserModel;
|
|
8
|
+
site: CoreSiteModel;
|
|
9
|
+
}
|
|
@@ -4,6 +4,7 @@ import { ErrorExceptionResult } from '../../models/entity/base/errorExceptionRes
|
|
|
4
4
|
import { ErrorExceptionResultBase } from '../../models/entity/base/errorExceptionResultBase';
|
|
5
5
|
import { ErrorExceptionResultExportFile } from '../../models/entity/base/errorExceptionResultExportFile';
|
|
6
6
|
import { ManageUserAccessDataTypesEnum } from '../../models/enums/base/manageUserAccessDataTypesEnum';
|
|
7
|
+
import { TokenJWTModel } from '../../models/entity/core-token/_export';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ApiServerBase {
|
|
9
10
|
http: HttpClient;
|
|
@@ -12,7 +13,7 @@ export declare class ApiServerBase {
|
|
|
12
13
|
userToken: string;
|
|
13
14
|
deviceToken: string;
|
|
14
15
|
configApiRetry: number;
|
|
15
|
-
|
|
16
|
+
keyJwt: string;
|
|
16
17
|
keyDeviceToken: string;
|
|
17
18
|
keyBaseUrl: string;
|
|
18
19
|
private headers;
|
|
@@ -29,8 +30,9 @@ export declare class ApiServerBase {
|
|
|
29
30
|
setAccessDataType(status: ManageUserAccessDataTypesEnum): void;
|
|
30
31
|
getUserToken(): string | null;
|
|
31
32
|
getDeviceToken(): string | null;
|
|
32
|
-
setToken(userToken: string, deviceToken: string, refreshToken: string): void;
|
|
33
33
|
setDeviceToken(deviceToken: string): void;
|
|
34
|
+
setJWT(model: TokenJWTModel): void;
|
|
35
|
+
getJWT(): TokenJWTModel;
|
|
34
36
|
removeToken(): void;
|
|
35
37
|
getHeaders(): any;
|
|
36
38
|
errorExceptionResultCheck<TModel>(model: ErrorExceptionResult<TModel>): ErrorExceptionResult<TModel>;
|
|
@@ -24,7 +24,6 @@ export declare class CoreAuthService extends ApiServerBase {
|
|
|
24
24
|
tokenDeviceSubject: BehaviorSubject<TokenDeviceModel>;
|
|
25
25
|
getModuleControllerUrl(): string;
|
|
26
26
|
SetCurrentTokenInfo(model: TokenInfoModel | null): any;
|
|
27
|
-
SetCurrentDeviceTokenInfo(model: TokenDeviceModel | null): any;
|
|
28
27
|
CurrentTokenInfoRenew(): void;
|
|
29
28
|
ServiceCurrentToken(): Observable<ErrorExceptionResult<TokenInfoModel>>;
|
|
30
29
|
ServiceCurrentDeviceToken(): Observable<ErrorExceptionResult<TokenDeviceModel>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { AuthUserSignInModel } from '../../models/dto/core-main/authUserSignInModel';
|
|
3
|
+
import { TokenDeviceClientInfoDtoModel } from '../../models/dto/core-main/tokenDeviceClientInfoDtoModel';
|
|
4
|
+
import { TokenDeviceSetNotificationIdDtoModel } from '../../models/dto/core-main/tokenDeviceSetNotificationIdDtoModel';
|
|
5
|
+
import { ErrorExceptionResult } from '../../models/entity/base/errorExceptionResult';
|
|
6
|
+
import { ErrorExceptionResultBase } from '../../models/entity/base/errorExceptionResultBase';
|
|
7
|
+
import { TokenDeviceModel } from '../../models/entity/core-token/tokenDeviceModel';
|
|
8
|
+
import { TokenInfoModelV3 } from '../../models/entity/core-token/tokenInfoModelV3';
|
|
9
|
+
import { ApiServerBase } from '../base/apiServerBase.service';
|
|
10
|
+
import { AuthRefreshTokenModel } from '../../models/dto/core-main/authRefreshTokenModel';
|
|
11
|
+
import { TokenJWTModel } from '../../models/entity/core-token/tokenJWTModel';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class CoreAuthV3Service extends ApiServerBase {
|
|
14
|
+
tokenInfoSubject: BehaviorSubject<TokenInfoModelV3>;
|
|
15
|
+
tokenDeviceSubject: BehaviorSubject<TokenDeviceModel>;
|
|
16
|
+
getModuleControllerUrl(): string;
|
|
17
|
+
ServiceSigninUser(model: AuthUserSignInModel): Observable<TokenJWTModel>;
|
|
18
|
+
ServiceRefreshToken(model?: AuthRefreshTokenModel): Observable<ErrorExceptionResult<TokenInfoModelV3>>;
|
|
19
|
+
ServiceLogout(): Observable<ErrorExceptionResultBase>;
|
|
20
|
+
ServiceIsAuthenticated(): Observable<boolean>;
|
|
21
|
+
ServiceCurrentToken(): Observable<ErrorExceptionResult<TokenInfoModelV3>>;
|
|
22
|
+
ServiceGetTokenDevice(model: TokenDeviceClientInfoDtoModel): Observable<ErrorExceptionResult<TokenDeviceModel>>;
|
|
23
|
+
ServiceCurrentDeviceToken(): Observable<ErrorExceptionResult<TokenDeviceModel>>;
|
|
24
|
+
ServiceSetTokenDeviceNotificationId(model: TokenDeviceSetNotificationIdDtoModel): Observable<ErrorExceptionResultBase>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoreAuthV3Service, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CoreAuthV3Service>;
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ntk-cms-api",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.465",
|
|
4
4
|
"description": "Ntk Cms Api And Model For Typscript",
|
|
5
5
|
"author": "Alireza-Karavi",
|
|
6
6
|
"license": "ISC",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"api"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/common": "
|
|
16
|
-
"@angular/core": "
|
|
15
|
+
"@angular/common": ">=10.0.0",
|
|
16
|
+
"@angular/core": ">=10.0.0",
|
|
17
17
|
"rxjs": ">=6.6.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|