Skip to content

Commit

Permalink
Update UI types
Browse files Browse the repository at this point in the history
  • Loading branch information
ikulikov committed Dec 4, 2024
1 parent 9887386 commit b1ec937
Show file tree
Hide file tree
Showing 212 changed files with 3,110 additions and 1,032 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@
},
"scripts": {},
"dependencies": {
"@angular/animations": "18.2.6",
"@angular/cdk": "18.2.6",
"@angular/common": "18.2.6",
"@angular/core": "18.2.6",
"@angular/forms": "18.2.6",
"@angular/material": "18.2.6",
"@angular/platform-browser": "18.2.6",
"@angular/router": "18.2.6",
"@angular/animations": "18.2.13",
"@angular/cdk": "18.2.14",
"@angular/common": "18.2.13",
"@angular/core": "18.2.13",
"@angular/forms": "18.2.13",
"@angular/material": "18.2.14",
"@angular/platform-browser": "18.2.13",
"@angular/router": "18.2.13",
"@flowjs/flow.js": "^2.14.1",
"@flowjs/ngx-flow": "~0.8.1",
"@flowjs/ngx-flow": "18.0.1",
"@fullcalendar/angular": "^6.1.15",
"@iplab/ngx-color-picker": "^18.0.1",
"@mat-datetimepicker/core": "~14.0.0",
"@ngrx/store": "^18.0.2",
"@ngrx/store": "^18.1.1",
"@ngx-translate/core": "^15.0.0",
"@tinymce/tinymce-angular": "^8.0.1",
"dayjs": "1.11.13",
"@types/canvas-gauges": "^2.1.8",
"@types/flot": "^0.0.36",
"@types/jquery": "^3.5.31",
"@types/jquery": "^3.5.32",
"@types/js-beautify": "^1.14.3",
"@types/node": "~18.15.11",
"@types/node": "~20.17.8",
"@types/tinycolor2": "^1.4.6",
"@types/tooltipster": "^0.0.35",
"angular-gridster2": "~18.0.1",
Expand All @@ -49,7 +49,7 @@
"ngx-flowchart": "https://github.com/thingsboard/ngx-flowchart.git#release/3.0.0",
"ngx-hm-carousel": "^18.0.0",
"ngx-markdown": "^18.1.0",
"ngx-sharebuttons": "^15.0.3",
"ngx-sharebuttons": "^15.0.6",
"rxjs": "~7.8.1",
"ts-node": "^10.9.2",
"zone.js": "~0.14.10"
Expand Down
6 changes: 6 additions & 0 deletions src/app/core/api/alias-controller.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export declare class AliasController implements IAliasController {
resolvedAliasesObservable: {
[aliasId: string]: Observable<AliasInfo>;
};
resolvedDevices: {
[deviceId: string]: EntityInfo;
};
resolvedDevicesObservable: {
[deviceId: string]: Observable<EntityInfo>;
};
resolvedAliasesToStateEntities: {
[aliasId: string]: StateEntityInfo;
};
Expand Down
13 changes: 8 additions & 5 deletions src/app/core/api/entity-data-subscription.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { UtilsService } from '@core/services/utils.service';
import { EntityDataListener, EntityDataLoadResult } from '@core/api/entity-data.service';
import { Observable } from 'rxjs';
import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service';
import { CompiledTbFunction, TbFunction } from '@shared/models/js-function.models';
import { HttpClient } from '@angular/common/http';
declare type DataKeyFunction = (time: number, prevValue: any) => any;
declare type DataKeyPostFunction = (time: number, value: any, prevValue: any, timePrev: number, prevOrigValue: any) => any;
export interface SubscriptionDataKey {
Expand All @@ -16,10 +18,10 @@ export interface SubscriptionDataKey {
timeForComparison?: ComparisonDuration;
comparisonCustomIntervalValue?: number;
comparisonResultType?: ComparisonResultType;
funcBody: string;
func?: DataKeyFunction;
postFuncBody: string;
postFunc?: DataKeyPostFunction;
funcBody: TbFunction;
func?: CompiledTbFunction<DataKeyFunction>;
postFuncBody: TbFunction;
postFunc?: CompiledTbFunction<DataKeyPostFunction>;
index?: number;
listIndex?: number;
key?: string;
Expand All @@ -44,7 +46,8 @@ export declare class EntityDataSubscription {
private listener;
private telemetryService;
private utils;
constructor(listener: EntityDataListener, telemetryService: TelemetryWebsocketService, utils: UtilsService);
private http;
constructor(listener: EntityDataListener, telemetryService: TelemetryWebsocketService, utils: UtilsService, http: HttpClient);
private entityDataSubscriptionOptions;
private datasourceType;
private history;
Expand Down
4 changes: 3 additions & 1 deletion src/app/core/api/entity-data.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service'
import { UtilsService } from '@core/services/utils.service';
import { EntityDataSubscription, EntityDataSubscriptionOptions } from '@core/api/entity-data-subscription';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import * as i0 from "@angular/core";
export interface EntityDataListener {
subscriptionType: widgetType;
Expand All @@ -32,7 +33,8 @@ export interface EntityDataLoadResult {
export declare class EntityDataService {
private telemetryService;
private utils;
constructor(telemetryService: TelemetryWebsocketService, utils: UtilsService);
private http;
constructor(telemetryService: TelemetryWebsocketService, utils: UtilsService, http: HttpClient);
private static isUnresolvedDatasource;
private static toSubscriptionDataKey;
prepareSubscription(listener: EntityDataListener, ignoreDataUpdateOnIntervalTick?: boolean): Observable<EntityDataLoadResult>;
Expand Down
4 changes: 4 additions & 0 deletions src/app/core/auth/auth.models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export interface SysParamsState {
mobileQrEnabled: boolean;
userSettings: UserSettings;
maxResourceSize: number;
maxDebugModeDurationMinutes: number;
ruleChainDebugPerTenantLimitsConfiguration?: string;
integrationDebugPerTenantLimitsConfiguration?: string;
converterDebugPerTenantLimitsConfiguration?: string;
availableLocales: string[];
}
export interface SysParams extends SysParamsState {
Expand Down
3 changes: 2 additions & 1 deletion src/app/core/auth/auth.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export declare class AuthService {
private utils;
private translate;
private dialog;
constructor(store: Store<AppState>, http: HttpClient, userService: UserService, whiteLabelingService: WhiteLabelingService, customMenuService: CustomMenuService, userPermissionsService: UserPermissionsService, timeService: TimeService, router: Router, zone: NgZone, utils: UtilsService, translate: TranslateService, dialog: MatDialog);
private document;
constructor(store: Store<AppState>, http: HttpClient, userService: UserService, whiteLabelingService: WhiteLabelingService, customMenuService: CustomMenuService, userPermissionsService: UserPermissionsService, timeService: TimeService, router: Router, zone: NgZone, utils: UtilsService, translate: TranslateService, dialog: MatDialog, document: Document);
redirectUrl: string;
oauth2Clients: Array<OAuth2ClientLoginInfo>;
twoFactorAuthProviders: Array<TwoFaProviderInfo>;
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/http/dashboard.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export declare class DashboardService {
getCustomerDashboards(includeCustomers: boolean, customerId: string, pageLink: PageLink, config?: RequestConfig): Observable<PageData<DashboardInfo>>;
getGroupDashboards(groupId: string, pageLink: PageLink, config?: RequestConfig): Observable<PageData<DashboardInfo>>;
getDashboard(dashboardId: string, config?: RequestConfig): Observable<Dashboard>;
exportDashboard(dashboardId: string, config?: RequestConfig): Observable<Dashboard>;
exportDashboard(dashboardId: string, includeResources?: boolean, config?: RequestConfig): Observable<Dashboard>;
getDashboardInfo(dashboardId: string, config?: RequestConfig): Observable<DashboardInfo>;
saveDashboard(dashboard: Dashboard, entityGroupIds?: string | string[], config?: RequestConfig): Observable<Dashboard>;
deleteDashboard(dashboardId: string, config?: RequestConfig): Observable<Object>;
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/http/domain.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare class DomainService {
constructor(http: HttpClient);
saveDomain(domain: Domain, oauth2ClientIds: Array<string>, config?: RequestConfig): Observable<Domain>;
updateOauth2Clients(id: string, oauth2ClientIds: Array<string>, config?: RequestConfig): Observable<void>;
getTenantDomainInfos(pageLink: PageLink, config?: RequestConfig): Observable<PageData<DomainInfo>>;
getDomainInfos(pageLink: PageLink, config?: RequestConfig): Observable<PageData<DomainInfo>>;
getDomainInfoById(id: string, config?: RequestConfig): Observable<DomainInfo>;
deleteDomain(id: string, config?: RequestConfig): Observable<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<DomainService, never>;
Expand Down
6 changes: 5 additions & 1 deletion src/app/core/http/entity.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ import { TenantProfileService } from '@core/http/tenant-profile.service';
import { AlarmService } from '@core/http/alarm.service';
import { ResourceService } from '@core/http/resource.service';
import { OAuth2Service } from '@core/http/oauth2.service';
import { MobileAppService } from '@core/http/mobile-app.service';
import { DomainService } from '@core/http/domain.service';
import * as i0 from "@angular/core";
export declare class EntityService {
private http;
Expand Down Expand Up @@ -80,7 +82,9 @@ export declare class EntityService {
private alarmService;
private resourceService;
private oauth2Service;
constructor(http: HttpClient, store: Store<AppState>, deviceService: DeviceService, assetService: AssetService, entityViewService: EntityViewService, edgeService: EdgeService, tenantService: TenantService, customerService: CustomerService, userService: UserService, ruleChainService: RuleChainService, dashboardService: DashboardService, entityRelationService: EntityRelationService, attributeService: AttributeService, otaPackageService: OtaPackageService, widgetService: WidgetService, deviceProfileService: DeviceProfileService, tenantProfileService: TenantProfileService, assetProfileService: AssetProfileService, converterService: ConverterService, integrationService: IntegrationService, schedulerEventService: SchedulerEventService, blobEntityService: BlobEntityService, roleService: RoleService, entityGroupService: EntityGroupService, userPermissionsService: UserPermissionsService, utils: UtilsService, queueService: QueueService, notificationService: NotificationService, alarmService: AlarmService, resourceService: ResourceService, oauth2Service: OAuth2Service);
private mobileAppService;
private domainService;
constructor(http: HttpClient, store: Store<AppState>, deviceService: DeviceService, assetService: AssetService, entityViewService: EntityViewService, edgeService: EdgeService, tenantService: TenantService, customerService: CustomerService, userService: UserService, ruleChainService: RuleChainService, dashboardService: DashboardService, entityRelationService: EntityRelationService, attributeService: AttributeService, otaPackageService: OtaPackageService, widgetService: WidgetService, deviceProfileService: DeviceProfileService, tenantProfileService: TenantProfileService, assetProfileService: AssetProfileService, converterService: ConverterService, integrationService: IntegrationService, schedulerEventService: SchedulerEventService, blobEntityService: BlobEntityService, roleService: RoleService, entityGroupService: EntityGroupService, userPermissionsService: UserPermissionsService, utils: UtilsService, queueService: QueueService, notificationService: NotificationService, alarmService: AlarmService, resourceService: ResourceService, oauth2Service: OAuth2Service, mobileAppService: MobileAppService, domainService: DomainService);
private getEntityObservable;
private saveEntityObservable;
getEntity(entityType: EntityType, entityId: string, config?: RequestConfig): Observable<BaseData<EntityId>>;
Expand Down
15 changes: 10 additions & 5 deletions src/app/core/http/mobile-app.service.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
import { HttpClient } from '@angular/common/http';
import { RequestConfig } from '@core/http/http-utils';
import { Observable } from 'rxjs';
import { MobileApp, MobileAppInfo } from '@shared/models/oauth2.models';
import { PageLink } from '@shared/models/page/page-link';
import { PageData } from '@shared/models/page/page-data';
import { MobileApp, MobileAppBundle, MobileAppBundleInfo } from '@shared/models/mobile-app.models';
import { PlatformType } from '@shared/models/oauth2.models';
import * as i0 from "@angular/core";
export declare class MobileAppService {
private http;
constructor(http: HttpClient);
saveMobileApp(mobileApp: MobileApp, oauth2ClientIds: Array<string>, config?: RequestConfig): Observable<MobileApp>;
updateOauth2Clients(id: string, oauth2ClientRegistrationIds: Array<string>, config?: RequestConfig): Observable<void>;
getTenantMobileAppInfos(pageLink: PageLink, config?: RequestConfig): Observable<PageData<MobileAppInfo>>;
getMobileAppInfoById(id: string, config?: RequestConfig): Observable<MobileAppInfo>;
saveMobileApp(mobileApp: MobileApp, config?: RequestConfig): Observable<MobileApp>;
getTenantMobileAppInfos(pageLink: PageLink, platformType?: PlatformType, config?: RequestConfig): Observable<PageData<MobileApp>>;
getMobileAppInfoById(id: string, config?: RequestConfig): Observable<MobileApp>;
deleteMobileApp(id: string, config?: RequestConfig): Observable<void>;
saveMobileAppBundle(mobileAppBundle: MobileAppBundle, oauth2ClientIds?: Array<string>, config?: RequestConfig): Observable<MobileAppBundle>;
updateOauth2Clients(id: string, oauth2ClientIds: Array<string>, config?: RequestConfig): Observable<Object>;
getTenantMobileAppBundleInfos(pageLink: PageLink, config?: RequestConfig): Observable<PageData<MobileAppBundleInfo>>;
getMobileAppBundleInfoById(id: string, config?: RequestConfig): Observable<MobileAppBundleInfo>;
deleteMobileAppBundle(id: string, config?: RequestConfig): Observable<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<MobileAppService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MobileAppService>;
}
8 changes: 4 additions & 4 deletions src/app/core/http/mobile-application.service.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { HttpClient } from '@angular/common/http';
import { RequestConfig } from '@core/http/http-utils';
import { Observable } from 'rxjs';
import { MobileAppSettings } from '@shared/models/mobile-app.models';
import { QrCodeSettings } from '@shared/models/mobile-app.models';
import * as i0 from "@angular/core";
export declare class MobileApplicationService {
private http;
constructor(http: HttpClient);
getMobileAppSettings(config?: RequestConfig): Observable<MobileAppSettings>;
getMergedMobileAppSettings(config?: RequestConfig): Observable<MobileAppSettings>;
saveMobileAppSettings(mobileAppSettings: MobileAppSettings, config?: RequestConfig): Observable<MobileAppSettings>;
getMobileAppSettings(config?: RequestConfig): Observable<QrCodeSettings>;
getMergedMobileAppSettings(config?: RequestConfig): Observable<QrCodeSettings>;
saveMobileAppSettings(mobileAppSettings: QrCodeSettings, config?: RequestConfig): Observable<QrCodeSettings>;
getMobileAppDeepLink(config?: RequestConfig): Observable<string>;
static ɵfac: i0.ɵɵFactoryDeclaration<MobileApplicationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MobileApplicationService>;
Expand Down
7 changes: 4 additions & 3 deletions src/app/core/http/resource.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ import { PageLink } from '@shared/models/page/page-link';
import { RequestConfig } from '@core/http/http-utils';
import { Observable } from 'rxjs';
import { PageData } from '@shared/models/page/page-data';
import { Resource, ResourceInfo, ResourceType } from '@shared/models/resource.models';
import { Resource, ResourceInfo, ResourceSubType, ResourceType, TBResourceScope } from '@shared/models/resource.models';
import { ResourcesService } from '@core/services/resources.service';
import * as i0 from "@angular/core";
export declare class ResourceService {
private http;
private resourcesService;
constructor(http: HttpClient, resourcesService: ResourcesService);
getResources(pageLink: PageLink, resourceType?: ResourceType, config?: RequestConfig): Observable<PageData<ResourceInfo>>;
getResources(pageLink: PageLink, resourceType?: ResourceType, resourceSubType?: ResourceSubType, config?: RequestConfig): Observable<PageData<ResourceInfo>>;
getTenantResources(pageLink: PageLink, config?: RequestConfig): Observable<PageData<ResourceInfo>>;
getResource(resourceId: string, config?: RequestConfig): Observable<Resource>;
getResourceInfo(resourceId: string, config?: RequestConfig): Observable<ResourceInfo>;
getResourceInfoById(resourceId: string, config?: RequestConfig): Observable<ResourceInfo>;
getResourceInfo(type: ResourceType, scope: TBResourceScope, key: string, config?: RequestConfig): Observable<ResourceInfo>;
downloadResource(resourceId: string): Observable<any>;
saveResources(resources: Resource[], config?: RequestConfig): Observable<Resource[]>;
saveResource(resource: Resource, config?: RequestConfig): Observable<Resource>;
Expand Down
8 changes: 4 additions & 4 deletions src/app/core/http/self-register.service.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpClient } from '@angular/common/http';
import { SelfRegistrationParams, SignUpSelfRegistrationParams } from '@shared/models/self-register.models';
import { SignUpSelfRegistrationParams, WebSelfRegistrationParams } from '@shared/models/self-register.models';
import { Observable } from 'rxjs';
import { Router } from '@angular/router';
import { RequestConfig } from '@core/http/http-utils';
Expand All @@ -14,9 +14,9 @@ export declare class SelfRegistrationService {
loadPrivacyPolicy(): Observable<string>;
loadTermsOfUse(): Observable<string>;
isAvailablePage(): Observable<any>;
saveSelfRegistrationParams(selfRegistrationParams: SelfRegistrationParams, config?: RequestConfig): Observable<SelfRegistrationParams>;
getSelfRegistrationParams(config?: RequestConfig): Observable<SelfRegistrationParams>;
deleteSelfRegistrationParams(domainName: string, config?: RequestConfig): Observable<Object>;
saveSelfRegistrationParams(selfRegistrationParams: WebSelfRegistrationParams, config?: RequestConfig): Observable<WebSelfRegistrationParams>;
getSelfRegistrationParams(config?: RequestConfig): Observable<WebSelfRegistrationParams>;
deleteSelfRegistrationParams(config?: RequestConfig): Observable<Object>;
static ɵfac: i0.ɵɵFactoryDeclaration<SelfRegistrationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SelfRegistrationService>;
}
2 changes: 2 additions & 0 deletions src/app/core/http/white-labeling.service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export declare class WhiteLabelingService {
getCurrentLoginWhiteLabelParams(): Observable<LoginWhiteLabelingParams>;
saveWhiteLabelParams(wlParams: WhiteLabelingParams): Observable<WhiteLabelingParams>;
saveLoginWhiteLabelParams(wlParams: LoginWhiteLabelingParams): Observable<LoginWhiteLabelingParams>;
deleteCurrentLoginWhiteLabelParams(config?: RequestConfig): Observable<void>;
deleteCurrentWhiteLabelParams(config?: RequestConfig): Observable<WhiteLabelingParams>;
isWhiteLabelingAllowed(): Observable<boolean>;
isCustomerWhiteLabelingAllowed(): Observable<boolean>;
saveMailTemplates(mailTemplates: MailTemplatesSettings, config?: RequestConfig): Observable<MailTemplatesSettings>;
Expand Down
Loading

0 comments on commit b1ec937

Please sign in to comment.