@smarterplan/ngx-smarterplan-core 0.3.11
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/README.md +24 -0
- package/esm2020/lib/components/csv-export/csv-export.component.mjs +59 -0
- package/esm2020/lib/components/loader/loader.component.mjs +14 -0
- package/esm2020/lib/components/menu-bar/avatar/avatar.component.mjs +75 -0
- package/esm2020/lib/components/menu-bar/menu-bar.component.mjs +115 -0
- package/esm2020/lib/components/menu-bar/navigation-bar/navigation-bar.component.mjs +254 -0
- package/esm2020/lib/components/menu-bar/range-date-picker/range-date-picker.component.mjs +81 -0
- package/esm2020/lib/components/modal-switch-visit/modal-switch-visit.component.mjs +39 -0
- package/esm2020/lib/components/search-bar/search-bar.component.mjs +63 -0
- package/esm2020/lib/components/support-modal/support-modal.component.mjs +59 -0
- package/esm2020/lib/config.mjs +4 -0
- package/esm2020/lib/helpers.service.mjs +468 -0
- package/esm2020/lib/mattertagData.mjs +177 -0
- package/esm2020/lib/ngx-smarterplan-core.module.mjs +117 -0
- package/esm2020/lib/ngx-smarterplan-core.service.mjs +14 -0
- package/esm2020/lib/pipes/duration-to-string.pipe.mjs +66 -0
- package/esm2020/lib/pipes/hashtag-from-id.pipe.mjs +26 -0
- package/esm2020/lib/pipes/safe-url.pipe.mjs +20 -0
- package/esm2020/lib/pipes/time-date-to-local-string.pipe.mjs +104 -0
- package/esm2020/lib/pipes/username-from-id.pipe.mjs +29 -0
- package/esm2020/lib/services/base-tab.service.mjs +24 -0
- package/esm2020/lib/services/baseVisibility.service.mjs +17 -0
- package/esm2020/lib/services/booking.service.mjs +161 -0
- package/esm2020/lib/services/content.service.mjs +135 -0
- package/esm2020/lib/services/filter.service.mjs +560 -0
- package/esm2020/lib/services/intervention.service.mjs +236 -0
- package/esm2020/lib/services/locale.service.mjs +45 -0
- package/esm2020/lib/services/matterport-import.service.mjs +339 -0
- package/esm2020/lib/services/matterport.service.mjs +876 -0
- package/esm2020/lib/services/models/affectation.service.mjs +60 -0
- package/esm2020/lib/services/models/base-object.service.mjs +70 -0
- package/esm2020/lib/services/models/capture.service.mjs +34 -0
- package/esm2020/lib/services/models/comment.service.mjs +98 -0
- package/esm2020/lib/services/models/domain.service.mjs +77 -0
- package/esm2020/lib/services/models/equipment.service.mjs +629 -0
- package/esm2020/lib/services/models/event.service.mjs +128 -0
- package/esm2020/lib/services/models/feature.service.mjs +339 -0
- package/esm2020/lib/services/models/hashtag.service.mjs +38 -0
- package/esm2020/lib/services/models/layer.service.mjs +33 -0
- package/esm2020/lib/services/models/measurement.service.mjs +158 -0
- package/esm2020/lib/services/models/mission.service.mjs +185 -0
- package/esm2020/lib/services/models/navigation.service.mjs +76 -0
- package/esm2020/lib/services/models/node.service.mjs +31 -0
- package/esm2020/lib/services/models/operation.service.mjs +59 -0
- package/esm2020/lib/services/models/organisation.service.mjs +73 -0
- package/esm2020/lib/services/models/plan.service.mjs +573 -0
- package/esm2020/lib/services/models/poi.service.mjs +48 -0
- package/esm2020/lib/services/models/profile.service.mjs +54 -0
- package/esm2020/lib/services/models/property.service.mjs +34 -0
- package/esm2020/lib/services/models/space.service.mjs +184 -0
- package/esm2020/lib/services/models/template.service.mjs +41 -0
- package/esm2020/lib/services/models/ticket.service.mjs +454 -0
- package/esm2020/lib/services/models/visit.service.mjs +130 -0
- package/esm2020/lib/services/models/zone.service.mjs +184 -0
- package/esm2020/lib/services/navigator.service.mjs +165 -0
- package/esm2020/lib/services/s3.service.mjs +124 -0
- package/esm2020/lib/services/search.service.mjs +124 -0
- package/esm2020/lib/services/support.service.mjs +42 -0
- package/esm2020/lib/services/tag.service.mjs +101 -0
- package/esm2020/lib/services/user.service.mjs +444 -0
- package/esm2020/lib/services/viewer.service.mjs +395 -0
- package/esm2020/lib/services/zone-drawer.service.mjs +76 -0
- package/esm2020/lib/types.service.mjs +266 -0
- package/esm2020/public-api.mjs +63 -0
- package/esm2020/smarterplan-ngx-smarterplan-core.mjs +5 -0
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +10057 -0
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -0
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +9371 -0
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -0
- package/lib/components/csv-export/csv-export.component.d.ts +18 -0
- package/lib/components/loader/loader.component.d.ts +8 -0
- package/lib/components/menu-bar/avatar/avatar.component.d.ts +18 -0
- package/lib/components/menu-bar/menu-bar.component.d.ts +35 -0
- package/lib/components/menu-bar/navigation-bar/navigation-bar.component.d.ts +66 -0
- package/lib/components/menu-bar/range-date-picker/range-date-picker.component.d.ts +24 -0
- package/lib/components/modal-switch-visit/modal-switch-visit.component.d.ts +22 -0
- package/lib/components/search-bar/search-bar.component.d.ts +16 -0
- package/lib/components/support-modal/support-modal.component.d.ts +24 -0
- package/lib/config.d.ts +17 -0
- package/lib/helpers.service.d.ts +79 -0
- package/lib/mattertagData.d.ts +65 -0
- package/lib/ngx-smarterplan-core.module.d.ts +28 -0
- package/lib/ngx-smarterplan-core.service.d.ts +6 -0
- package/lib/pipes/duration-to-string.pipe.d.ts +12 -0
- package/lib/pipes/hashtag-from-id.pipe.d.ts +10 -0
- package/lib/pipes/safe-url.pipe.d.ts +10 -0
- package/lib/pipes/time-date-to-local-string.pipe.d.ts +16 -0
- package/lib/pipes/username-from-id.pipe.d.ts +11 -0
- package/lib/services/base-tab.service.d.ts +10 -0
- package/lib/services/baseVisibility.service.d.ts +8 -0
- package/lib/services/booking.service.d.ts +21 -0
- package/lib/services/content.service.d.ts +28 -0
- package/lib/services/filter.service.d.ts +58 -0
- package/lib/services/intervention.service.d.ts +25 -0
- package/lib/services/locale.service.d.ts +23 -0
- package/lib/services/matterport-import.service.d.ts +46 -0
- package/lib/services/matterport.service.d.ts +141 -0
- package/lib/services/models/affectation.service.d.ts +14 -0
- package/lib/services/models/base-object.service.d.ts +20 -0
- package/lib/services/models/capture.service.d.ts +13 -0
- package/lib/services/models/comment.service.d.ts +26 -0
- package/lib/services/models/domain.service.d.ts +19 -0
- package/lib/services/models/equipment.service.d.ts +88 -0
- package/lib/services/models/event.service.d.ts +43 -0
- package/lib/services/models/feature.service.d.ts +71 -0
- package/lib/services/models/hashtag.service.d.ts +13 -0
- package/lib/services/models/layer.service.d.ts +11 -0
- package/lib/services/models/measurement.service.d.ts +43 -0
- package/lib/services/models/mission.service.d.ts +32 -0
- package/lib/services/models/navigation.service.d.ts +22 -0
- package/lib/services/models/node.service.d.ts +12 -0
- package/lib/services/models/operation.service.d.ts +15 -0
- package/lib/services/models/organisation.service.d.ts +19 -0
- package/lib/services/models/plan.service.d.ts +117 -0
- package/lib/services/models/poi.service.d.ts +15 -0
- package/lib/services/models/profile.service.d.ts +15 -0
- package/lib/services/models/property.service.d.ts +13 -0
- package/lib/services/models/space.service.d.ts +38 -0
- package/lib/services/models/template.service.d.ts +15 -0
- package/lib/services/models/ticket.service.d.ts +86 -0
- package/lib/services/models/visit.service.d.ts +24 -0
- package/lib/services/models/zone.service.d.ts +25 -0
- package/lib/services/navigator.service.d.ts +55 -0
- package/lib/services/s3.service.d.ts +13 -0
- package/lib/services/search.service.d.ts +20 -0
- package/lib/services/support.service.d.ts +17 -0
- package/lib/services/tag.service.d.ts +45 -0
- package/lib/services/user.service.d.ts +104 -0
- package/lib/services/viewer.service.d.ts +113 -0
- package/lib/services/zone-drawer.service.d.ts +7 -0
- package/lib/types.service.d.ts +723 -0
- package/package.json +41 -0
- package/public-api.d.ts +56 -0
- package/smarterplan-ngx-smarterplan-core.d.ts +5 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Navigation, Zone } from "../../types.service";
|
|
2
|
+
import { BaseUserService } from "../user.service";
|
|
3
|
+
import { ZoneService } from "./zone.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NavigationService {
|
|
6
|
+
private userService;
|
|
7
|
+
private zoneService;
|
|
8
|
+
API: any;
|
|
9
|
+
constructor(apiInjected: any, userService: BaseUserService, zoneService: ZoneService);
|
|
10
|
+
createNavigation(navInput: Navigation): Promise<Navigation>;
|
|
11
|
+
deleteNavigation(id: string): Promise<Navigation>;
|
|
12
|
+
getNavigationsForNode(nodeID: string): Promise<Navigation[]>;
|
|
13
|
+
getNavigation(id: string): Promise<Navigation>;
|
|
14
|
+
getSweepsIDsForSpace(spaceID: string): Promise<string[]>;
|
|
15
|
+
getAllowedSweepsIDsForUserInSpace(spaceID: string): Promise<string[]>;
|
|
16
|
+
getForbiddenNavigationIDsForUserInSpace(spaceID: string): Promise<string[]>;
|
|
17
|
+
getNavigationsForMatterportIDForSpace(matterportID: string, spaceID: string): Promise<Navigation[]>;
|
|
18
|
+
getNavigationsForZone(zone: Zone): Promise<Navigation[]>;
|
|
19
|
+
updateNavigation(navInput: any): Promise<Navigation>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NodeService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
updateNode(input: any): Promise<Node>;
|
|
7
|
+
deleteNode(id: string): Promise<Node>;
|
|
8
|
+
getNode(id: string): Promise<Node>;
|
|
9
|
+
createNode(input: Node): Promise<Node>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodeService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NodeService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Operation, Ticket } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OperationService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
getOperationsByTicketID(id: string): Promise<Operation[]>;
|
|
7
|
+
getOperationsByEquipmentID(id: string): Promise<Operation[]>;
|
|
8
|
+
getTicketsByEquipmentID(id: string): Promise<Ticket[]>;
|
|
9
|
+
deleteOperationsForEquipment(equipID: string): Promise<Operation[]>;
|
|
10
|
+
deleteOperationsForTicket(ticketID: string): Promise<void>;
|
|
11
|
+
deleteOperation(operationID: string): Promise<Operation>;
|
|
12
|
+
createOperation(operation: Operation): Promise<Operation>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OperationService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OperationService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Organisation, Property } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class OrganisationService {
|
|
4
|
+
smarterPlanID: string;
|
|
5
|
+
API: any;
|
|
6
|
+
constructor(apiInjected: any);
|
|
7
|
+
getPropertiesForOrganisation(orgID: string): Promise<Array<Property>>;
|
|
8
|
+
getOrganisationByToken(token: string): Promise<Organisation>;
|
|
9
|
+
tokenIsExpiredForOrg(org: Organisation): boolean;
|
|
10
|
+
softDeteleOrg(orgID: string): Promise<Organisation>;
|
|
11
|
+
updateOrganisation(input: any): Promise<Organisation>;
|
|
12
|
+
deleteOrganisation(orgID: string): Promise<Organisation>;
|
|
13
|
+
createOrganisation(input: Organisation): Promise<Organisation>;
|
|
14
|
+
getOrganisation(orgID: string): Promise<Organisation>;
|
|
15
|
+
listOrganisations(): Promise<Organisation[]>;
|
|
16
|
+
getOrganisationForSpace(spaceID: string): Promise<Organisation>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrganisationService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrganisationService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { Plan, PoiType, Zone } from "../../types.service";
|
|
4
|
+
import { BaseVisibilityService } from "../baseVisibility.service";
|
|
5
|
+
import { MatterportService } from "../matterport.service";
|
|
6
|
+
import { ViewerService } from "../viewer.service";
|
|
7
|
+
import { ZoneService } from "./zone.service";
|
|
8
|
+
import { NavigationService } from "./navigation.service";
|
|
9
|
+
import { BaseTagService } from "../tag.service";
|
|
10
|
+
import { Config } from "../../config";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class PlanService {
|
|
13
|
+
private zoneService;
|
|
14
|
+
private navigationService;
|
|
15
|
+
private viewerService;
|
|
16
|
+
private router;
|
|
17
|
+
private matterportService;
|
|
18
|
+
private visibilityService;
|
|
19
|
+
chosenPlan: Plan;
|
|
20
|
+
currentPlan: Plan;
|
|
21
|
+
currentSweep: string;
|
|
22
|
+
planFileCache: File;
|
|
23
|
+
planCanvas: any;
|
|
24
|
+
planDiv: HTMLElement | SVGElement;
|
|
25
|
+
panzoom: any;
|
|
26
|
+
isReady: boolean;
|
|
27
|
+
userPositionBtn: HTMLButtonElement;
|
|
28
|
+
coeffPlanX: number;
|
|
29
|
+
coeffPlanY: number;
|
|
30
|
+
calibrationPlan: any;
|
|
31
|
+
detailTagDiv: HTMLElement;
|
|
32
|
+
detailTagDivIsHover: boolean;
|
|
33
|
+
btnTagIsHover: boolean;
|
|
34
|
+
resizePlanSubscription: Subject<boolean>;
|
|
35
|
+
imgPlan: HTMLImageElement;
|
|
36
|
+
lastTouchTime: number;
|
|
37
|
+
delayDblTouch: number;
|
|
38
|
+
htmlContentToInject: {
|
|
39
|
+
title: string;
|
|
40
|
+
content: string;
|
|
41
|
+
elementID: string;
|
|
42
|
+
y: number;
|
|
43
|
+
x: number;
|
|
44
|
+
tagIcon: string;
|
|
45
|
+
url: string;
|
|
46
|
+
}[];
|
|
47
|
+
cache: {
|
|
48
|
+
equipIDs: string[];
|
|
49
|
+
ticketIDs: string[];
|
|
50
|
+
measurementsIDs: string[];
|
|
51
|
+
featureIDs: string[];
|
|
52
|
+
zoneID: string;
|
|
53
|
+
plan: Plan;
|
|
54
|
+
htmlContent: {
|
|
55
|
+
title: string;
|
|
56
|
+
content: string;
|
|
57
|
+
elementID: string;
|
|
58
|
+
y: number;
|
|
59
|
+
x: number;
|
|
60
|
+
tagIcon: string;
|
|
61
|
+
url: string;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
focusMouseTagDiv: boolean;
|
|
65
|
+
API: any;
|
|
66
|
+
constructor(apiInjected: any, zoneService: ZoneService, navigationService: NavigationService, viewerService: ViewerService, router: Router, matterportService: MatterportService, visibilityService: BaseVisibilityService);
|
|
67
|
+
createPlan(planInput: Plan): Promise<Plan>;
|
|
68
|
+
deletePlan(plan: Plan): Promise<Plan>;
|
|
69
|
+
getPlansForSpace(spaceID: string): Promise<Plan[]>;
|
|
70
|
+
getPlansForZone(zoneID: string): Promise<Plan[]>;
|
|
71
|
+
getSingedPlansForSpace(spaceID: string): Promise<Plan[]>;
|
|
72
|
+
getPlansWithZonesForSpace(spaceID: string): Promise<Plan[]>;
|
|
73
|
+
setChosenPlan(chosenPlan: Plan): void;
|
|
74
|
+
getChosenPlan(): Plan;
|
|
75
|
+
setPlanFileCache(planFileCache: File): Promise<void>;
|
|
76
|
+
getPlanFileCache(): File;
|
|
77
|
+
createPlanWithAnnexe(plan: Plan, file: File): Promise<Plan>;
|
|
78
|
+
updatePlan(plan: any): Promise<Plan>;
|
|
79
|
+
updatePlanFile(): Promise<string>;
|
|
80
|
+
setAllPlansForZoneNotCurrent(zoneID: string, currentPlanID: string): Promise<void>;
|
|
81
|
+
configurePlan(currentPlan: Plan, divId?: string): Promise<boolean>;
|
|
82
|
+
clearPlanImage(): void;
|
|
83
|
+
drawPdf(currentPlan: Plan): Promise<void>;
|
|
84
|
+
drawElement(element: any, tagType: PoiType, currentPlan: Plan, tagService: BaseTagService, config: Config): Promise<void>;
|
|
85
|
+
drawUserPosition(currentSweep?: string): Promise<void>;
|
|
86
|
+
removeCurrentPosition(): void;
|
|
87
|
+
styleButton(button: HTMLButtonElement, url: string): void;
|
|
88
|
+
addListenersToButton(button: HTMLButtonElement, url: string): void;
|
|
89
|
+
clearBtn(idList: any[]): void;
|
|
90
|
+
clearAllButtons(): void;
|
|
91
|
+
onPlanRemove(): void;
|
|
92
|
+
resizePlan(isRemoving: boolean): Promise<void>;
|
|
93
|
+
handleTouch(event: any): void;
|
|
94
|
+
onDblClickPlan(event: any): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Configures plan from cache (previous plan).
|
|
97
|
+
*/
|
|
98
|
+
uploadPlanFromCache(): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Puts buttons (tags) from cache according to passed element IDs (for filter if any)
|
|
101
|
+
* @param elementIDs elements (tickets, equipments, etc) to be shown on plan
|
|
102
|
+
*/
|
|
103
|
+
uploadTagsFromCache(): void;
|
|
104
|
+
getCalibratedPlanForZone(zone: Zone): Promise<Plan>;
|
|
105
|
+
transformPosition3DForNewCalibration(position: {
|
|
106
|
+
x: number;
|
|
107
|
+
y: number;
|
|
108
|
+
z: number;
|
|
109
|
+
}): {
|
|
110
|
+
x: number;
|
|
111
|
+
y: number;
|
|
112
|
+
coeffX: number;
|
|
113
|
+
coeffY: number;
|
|
114
|
+
};
|
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlanService, never>;
|
|
116
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlanService>;
|
|
117
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { POI, PoiType } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PoiService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
getPoiByElementId(elementId: string): Promise<POI | null>;
|
|
7
|
+
getPoisByType(type: PoiType): Promise<[POI] | any>;
|
|
8
|
+
createPOIForSpaceID(poi: POI): Promise<POI>;
|
|
9
|
+
poiIsVirtual(poi: POI): boolean;
|
|
10
|
+
updatePoi(poi: {}): Promise<POI>;
|
|
11
|
+
deletePoi(poiID: string): Promise<POI>;
|
|
12
|
+
getPoisByMatterportSweepByType(sweep: string, type: PoiType): Promise<POI[]>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoiService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoiService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Profile } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProfileService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
createProfile(profile: Profile): Promise<Profile>;
|
|
7
|
+
getProfile(id: string): Promise<Profile>;
|
|
8
|
+
updateProfile(profile: any): Promise<Profile>;
|
|
9
|
+
deleteProfile(id: string): Promise<Profile>;
|
|
10
|
+
getProfileFromAWSID(userID: string): Promise<Profile>;
|
|
11
|
+
getUsersForMail(mail: string): Promise<Profile[]>;
|
|
12
|
+
getProfilesForStatus(status: string): Promise<Profile[]>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Property } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PropertyService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
createProperty(property: Property): Promise<Property>;
|
|
7
|
+
deleteProperty(propertyID: string): Promise<Property>;
|
|
8
|
+
getPropertiesForOrganisation(orgID: string): Promise<Property[]>;
|
|
9
|
+
listProperties(): Promise<Property[]>;
|
|
10
|
+
listPropertiesForSpace(spaceID: string): Promise<Property[]>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { Space, Layer } from "../../types.service";
|
|
3
|
+
import { BaseUserService } from "../user.service";
|
|
4
|
+
import { CaptureService } from "./capture.service";
|
|
5
|
+
import { MissionService } from "./mission.service";
|
|
6
|
+
import { PropertyService } from "./property.service";
|
|
7
|
+
import { VisitService } from "./visit.service";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SpaceService {
|
|
10
|
+
private visitService;
|
|
11
|
+
private userService;
|
|
12
|
+
private propertyService;
|
|
13
|
+
private captureService;
|
|
14
|
+
private missionService;
|
|
15
|
+
locationsForUser: Space[];
|
|
16
|
+
locationUpdated: Subject<Space[]>;
|
|
17
|
+
API: any;
|
|
18
|
+
constructor(visitService: VisitService, userService: BaseUserService, propertyService: PropertyService, captureService: CaptureService, missionService: MissionService, apiInjected: any);
|
|
19
|
+
listSpaces(): Promise<Space[]>;
|
|
20
|
+
getLocationsForCurrentUser(): Promise<Space[]>;
|
|
21
|
+
signUrlForSpace(loc: Space): Promise<void>;
|
|
22
|
+
getAllowedSpacesForOrg(orgID: string, userOrgID: string): Promise<Space[]>;
|
|
23
|
+
getSpacesForOrg(orgID: string): Promise<Space[]>;
|
|
24
|
+
createSpace(values: Space, layer?: Layer): Promise<any>;
|
|
25
|
+
updateSpace(input: any): Promise<Space>;
|
|
26
|
+
getSpace(id: string): Promise<Space>;
|
|
27
|
+
getModel3DForSpace(spaceID: string): Promise<string>;
|
|
28
|
+
getAllowedModel3DForSpace(spaceID: string): Promise<string>;
|
|
29
|
+
softDeleteSpace(spaceID: string): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* If current user can archive a space (only if his organisation is owning the property (PropertyType.PROPERTY))
|
|
32
|
+
* @param spaceID
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
canArchiveSpace(spaceID: string): Promise<boolean>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpaceService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpaceService>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VisitTemplate } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
create(template: VisitTemplate): Promise<VisitTemplate>;
|
|
7
|
+
update(template: any): Promise<VisitTemplate>;
|
|
8
|
+
detele(templateID: string): Promise<VisitTemplate>;
|
|
9
|
+
softDelete(templateID: string): Promise<VisitTemplate>;
|
|
10
|
+
get(templateID: string): Promise<VisitTemplate>;
|
|
11
|
+
getTemplatesBySpace(spaceID: string): Promise<VisitTemplate[]>;
|
|
12
|
+
getTemplatesByZone(zoneID: string): Promise<VisitTemplate[]>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
2
|
+
import { Subject, Subscription } from "rxjs";
|
|
3
|
+
import { MattertagData } from "../../mattertagData";
|
|
4
|
+
import { Event, Ticket, TicketType, TicketStatus, Affectation, POI, IUpdate } from "../../types.service";
|
|
5
|
+
import { FilterService } from "../filter.service";
|
|
6
|
+
import { NavigatorService } from "../navigator.service";
|
|
7
|
+
import { BaseUserService } from "../user.service";
|
|
8
|
+
import { ViewerService } from "../viewer.service";
|
|
9
|
+
import { BaseObjectService } from "./base-object.service";
|
|
10
|
+
import { NavigationService } from "./navigation.service";
|
|
11
|
+
import { OperationService } from "./operation.service";
|
|
12
|
+
import { PoiService } from "./poi.service";
|
|
13
|
+
import { EventService } from "./event.service";
|
|
14
|
+
import { InterventionService } from "../intervention.service";
|
|
15
|
+
import { AffectationService } from "./affectation.service";
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class TicketsService extends BaseObjectService {
|
|
18
|
+
private operationService;
|
|
19
|
+
private eventService;
|
|
20
|
+
private affectationService;
|
|
21
|
+
private userService;
|
|
22
|
+
private navigatorService;
|
|
23
|
+
private filterService;
|
|
24
|
+
private interventionService;
|
|
25
|
+
private viewerService;
|
|
26
|
+
private modalService;
|
|
27
|
+
currentTickets: {
|
|
28
|
+
zone: Ticket[];
|
|
29
|
+
space: Ticket[];
|
|
30
|
+
};
|
|
31
|
+
ticketTags: Subject<Ticket[]>;
|
|
32
|
+
ticketsFiltered: Ticket[];
|
|
33
|
+
ticketsUpdated: Subject<{
|
|
34
|
+
zone: Ticket[];
|
|
35
|
+
space: Ticket[];
|
|
36
|
+
}>;
|
|
37
|
+
currentSpaceID: string;
|
|
38
|
+
zoneIDFilter: string;
|
|
39
|
+
dateFilter: Date[];
|
|
40
|
+
ticketTypeFilter: TicketType[];
|
|
41
|
+
reportingIcon: import("@iconify/types").IconifyIcon;
|
|
42
|
+
maintenanceIcon: import("@iconify/types").IconifyIcon;
|
|
43
|
+
workorderIcon: import("@iconify/types").IconifyIcon;
|
|
44
|
+
informationIcon: import("@iconify/types").IconifyIcon;
|
|
45
|
+
accidentIcon: import("@iconify/types").IconifyIcon;
|
|
46
|
+
updateDone: Subject<boolean>;
|
|
47
|
+
updating: Subject<boolean>;
|
|
48
|
+
API: any;
|
|
49
|
+
isMuseumUser: boolean;
|
|
50
|
+
navSubscription: Subscription;
|
|
51
|
+
filetrSubscription: Subscription;
|
|
52
|
+
constructor(apiInjected: any, operationService: OperationService, eventService: EventService, affectationService: AffectationService, poiService: PoiService, userService: BaseUserService, navigatorService: NavigatorService, filterService: FilterService, interventionService: InterventionService, navigationService: NavigationService, viewerService: ViewerService, modalService: NgbModal);
|
|
53
|
+
initTickets(): Promise<void>;
|
|
54
|
+
adaptTicket(ticket: Ticket): Promise<Ticket>;
|
|
55
|
+
getPriorityColor(ticket: Ticket): string;
|
|
56
|
+
getStatusColor(ticket: Ticket): string;
|
|
57
|
+
getTicketPriorityNumber(t: any): number;
|
|
58
|
+
getTicketIcon(type: TicketType): any;
|
|
59
|
+
addEventToTicket(ticket: Ticket, event: Event): Promise<Event>;
|
|
60
|
+
addTicket(ticket: Ticket): Promise<Ticket | void>;
|
|
61
|
+
updateTicketWithEvent(ticket: IUpdate & Partial<Ticket>, event?: Event): Promise<Ticket>;
|
|
62
|
+
removeAssigneeFromTicket(ticket: Ticket, assignee: Affectation): Promise<Ticket>;
|
|
63
|
+
updateTicketLocation(ticket: Ticket, tagData: MattertagData): Promise<POI>;
|
|
64
|
+
updateStatusOfTicket(ticket: Ticket, status: TicketStatus): Promise<any>;
|
|
65
|
+
updateTypeOfTicket(ticket: Ticket, type: TicketType): Promise<any>;
|
|
66
|
+
getTicketsForUserForSpace(spaceID: string): Promise<Ticket[]>;
|
|
67
|
+
/** Basic CRUD operations */
|
|
68
|
+
readTicket(id: string): Promise<any>;
|
|
69
|
+
createTicket(input: Ticket): Promise<Ticket>;
|
|
70
|
+
updateTicket(input: IUpdate & Partial<Ticket>): Promise<Ticket>;
|
|
71
|
+
deleteTicket(ticket: Ticket): Promise<Ticket>;
|
|
72
|
+
/** Custom requests */
|
|
73
|
+
getTicketsBySpace(spaceID: string): Promise<Ticket[]>;
|
|
74
|
+
updateIconForAllTicketsInSpace(tagIcon: string, spaceID: string): Promise<{
|
|
75
|
+
tickets: Ticket[];
|
|
76
|
+
pois: POI[];
|
|
77
|
+
}>;
|
|
78
|
+
/** Archive related */
|
|
79
|
+
/** Return true if the current user has archived this ticket */
|
|
80
|
+
isArchived(ticket: Ticket): boolean;
|
|
81
|
+
setArchived(ticket: Ticket, archived: boolean): Promise<Ticket>;
|
|
82
|
+
navigateToTicketIn3D(ticket: Ticket, forceSwitchVisit?: boolean): Promise<void>;
|
|
83
|
+
initSubscriptions(): void;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TicketsService, never>;
|
|
85
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TicketsService>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Plan, Space, Visit, Zone } from "../../types.service";
|
|
2
|
+
import { BaseUserService } from "../user.service";
|
|
3
|
+
import { CaptureService } from "./capture.service";
|
|
4
|
+
import { NavigationService } from "./navigation.service";
|
|
5
|
+
import { NodeService } from "./node.service";
|
|
6
|
+
import { PlanService } from "./plan.service";
|
|
7
|
+
import { ZoneService } from "./zone.service";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class VisitService {
|
|
10
|
+
private captureService;
|
|
11
|
+
private nodeService;
|
|
12
|
+
private navigationService;
|
|
13
|
+
private zoneService;
|
|
14
|
+
private planService;
|
|
15
|
+
private userService;
|
|
16
|
+
choosenPlan: Plan;
|
|
17
|
+
constructor(captureService: CaptureService, nodeService: NodeService, navigationService: NavigationService, zoneService: ZoneService, planService: PlanService, userService: BaseUserService);
|
|
18
|
+
getVisitsForSpaceForUser(spaceID: string): Promise<Visit[]>;
|
|
19
|
+
deleteVisit(visit: Visit, spaceID: string): Promise<any>;
|
|
20
|
+
loadImagesForSpace(space: Space): Promise<any>;
|
|
21
|
+
getDefaultZoneForVisit(visit: Visit): Promise<Zone>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VisitService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VisitService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DbObjectType, Zone } from "../../types.service";
|
|
2
|
+
import { BaseUserService } from "../user.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ZoneService {
|
|
5
|
+
private userService;
|
|
6
|
+
API: any;
|
|
7
|
+
constructor(apiInjected: any, userService: BaseUserService);
|
|
8
|
+
getZonesBySpace(spaceID: string): Promise<Array<Zone>>;
|
|
9
|
+
getZonesBySpaceForUser(spaceID: string): Promise<Zone[]>;
|
|
10
|
+
filterZonesIDsForUser(zones: Zone[]): Promise<Zone[]>;
|
|
11
|
+
deleteZone(zoneID: string): Promise<Zone>;
|
|
12
|
+
getZonesForSweepForSpace(sweepID: string, spaceID: string): Promise<Zone[]>;
|
|
13
|
+
sortZonesFromChildToParent(zonesToSort: Zone[]): Zone[];
|
|
14
|
+
getZonesForObject(object: DbObjectType): Promise<Zone[]>;
|
|
15
|
+
createVirtualZone(zoneInput: Zone): Promise<Zone>;
|
|
16
|
+
zoneIsVirtual(zone: Zone): boolean;
|
|
17
|
+
getModel3DForZone(zoneID: string): Promise<string>;
|
|
18
|
+
getZone(zoneID: string): Promise<Zone>;
|
|
19
|
+
getDefaultZoneForSpace(spaceID: string): Promise<Zone>;
|
|
20
|
+
create(input: Zone): Promise<Zone>;
|
|
21
|
+
updateZone(input: any): Promise<Zone>;
|
|
22
|
+
getZonesForNodeForSpace(nodeID: string, spaceID: string): Promise<Zone[]>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZoneService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ZoneService>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { Zone } from "../types.service";
|
|
3
|
+
import { MatterportService } from "./matterport.service";
|
|
4
|
+
import { ZoneService } from "./models/zone.service";
|
|
5
|
+
import { BaseUserService } from "./user.service";
|
|
6
|
+
import { ViewerService } from "./viewer.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class NavigatorService {
|
|
9
|
+
private matterportService;
|
|
10
|
+
private viewerService;
|
|
11
|
+
private zoneService;
|
|
12
|
+
private userService;
|
|
13
|
+
currentSweep: string | null;
|
|
14
|
+
targetSweep: string | null;
|
|
15
|
+
targetRotation: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
} | null;
|
|
19
|
+
currentModel3D: string | null;
|
|
20
|
+
currentSpaceID: string | null;
|
|
21
|
+
currentZone: Zone | null;
|
|
22
|
+
visitLastPosition: Map<string, {
|
|
23
|
+
sweep: string;
|
|
24
|
+
rotation: any;
|
|
25
|
+
}>;
|
|
26
|
+
floorToGo: Zone | null;
|
|
27
|
+
locationIDChange: Subject<string | null>;
|
|
28
|
+
zoneChange: Subject<Zone | null>;
|
|
29
|
+
navBarZoneIDChange: Subject<string | null>;
|
|
30
|
+
isVisibleChanged: Subject<boolean>;
|
|
31
|
+
currentNavBarLocationID: string;
|
|
32
|
+
currentNavBarZoneID: string;
|
|
33
|
+
zonesSortedForCurrentSweep: Zone[] | null;
|
|
34
|
+
zonesForUserChange: Subject<Zone[] | null>;
|
|
35
|
+
zonesForUserForSpace: Zone[] | null;
|
|
36
|
+
queueSweeps: string[];
|
|
37
|
+
constructor(matterportService: MatterportService, viewerService: ViewerService, zoneService: ZoneService, userService: BaseUserService);
|
|
38
|
+
getLastPositionForModel(model3D: string): {
|
|
39
|
+
sweep: string;
|
|
40
|
+
rotation: any;
|
|
41
|
+
};
|
|
42
|
+
goToSweepWithRotation(sweep: string, rotation?: {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
} | null): void;
|
|
46
|
+
goToFloor(floor: Zone): void;
|
|
47
|
+
onViewerLoaded(): Promise<void>;
|
|
48
|
+
checkRotationForSweep(sweep: string): {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
} | null;
|
|
52
|
+
setZonesForCurrentSweep(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigatorService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigatorService>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Equipment } from "../types.service";
|
|
2
|
+
export declare const deleteFromS3: (path: any) => Promise<void>;
|
|
3
|
+
export declare const uploadFileToS3: (path: string, file: File, objectId: string | null) => Promise<string>;
|
|
4
|
+
export declare const getSignedImageUrlForEquipment: (equip: Equipment) => Promise<string | null>;
|
|
5
|
+
export declare const getSignedImageUrlForProfile: (profile: any) => Promise<string | void>;
|
|
6
|
+
export declare const getSignedImageUrlForSpace: (space: any) => Promise<string | void>;
|
|
7
|
+
export declare const uploadBase64Image: (uri: string, objectId: string | null, path: string, friendlyFileName: string) => Promise<string>;
|
|
8
|
+
export declare const removeAllFilesFromFolderS3: (folderPath: string) => Promise<any>;
|
|
9
|
+
export declare const listFilesInFolder: (folderPath: string) => Promise<any>;
|
|
10
|
+
export declare const getSignedFile: (path: any) => Promise<string | null>;
|
|
11
|
+
export declare const downloadFileAsObject: (path: any) => Promise<Object | void>;
|
|
12
|
+
export declare const getBufferForFileFromS3: (path: any) => Promise<ArrayBuffer>;
|
|
13
|
+
export declare const uploadJsonToS3: (path: string, json: string, filename: string) => Promise<string>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FilterService } from "./filter.service";
|
|
2
|
+
import { EquipmentService } from "./models/equipment.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare enum SearchObjectType {
|
|
5
|
+
USER = "USER",
|
|
6
|
+
EQUIPMENT = "EQUIPMENT",
|
|
7
|
+
TICKET = "TICKET",
|
|
8
|
+
LOCATION = "LOCATION",
|
|
9
|
+
FEATURE = "FEATURE",
|
|
10
|
+
TEMPLATE = "TEMPLATE"
|
|
11
|
+
}
|
|
12
|
+
export declare class SearchService {
|
|
13
|
+
private filterService;
|
|
14
|
+
private equipmentService;
|
|
15
|
+
constructor(filterService: FilterService, equipmentService: EquipmentService);
|
|
16
|
+
searchForTermForTypeInMap(term: string, objectType: SearchObjectType, searchable: any): Promise<any>;
|
|
17
|
+
searchForTermForTypeInList(term: string, objectType: SearchObjectType, searchable: any[]): Promise<any[]>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SupportService {
|
|
4
|
+
modalService: NgbModal;
|
|
5
|
+
modalReference: any;
|
|
6
|
+
constructor(modalService: NgbModal);
|
|
7
|
+
/**
|
|
8
|
+
* Open the support form
|
|
9
|
+
*/
|
|
10
|
+
openSupportForm(formComponent: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* Send support request to jira
|
|
13
|
+
*/
|
|
14
|
+
sendSupport(data: any): Promise<string>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupportService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SupportService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Comment, DbObjectType, Equipment, Feature, POI, PoiType, Ticket } from "../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BaseTagService {
|
|
4
|
+
constructor();
|
|
5
|
+
getHtmlToInject(tagType: PoiType, object: DbObjectType, maxHeightDiv: number): Promise<{
|
|
6
|
+
html: string;
|
|
7
|
+
height: number;
|
|
8
|
+
}>;
|
|
9
|
+
getUrlForSeeDetails(object: DbObjectType, tagType: PoiType): string;
|
|
10
|
+
prepareEquipmentHtml(equip: Equipment): Promise<{
|
|
11
|
+
htmlObject: string;
|
|
12
|
+
height: number;
|
|
13
|
+
}>;
|
|
14
|
+
prepareTicketHtml(ticket: Ticket): Promise<{
|
|
15
|
+
htmlObject: string;
|
|
16
|
+
height: number;
|
|
17
|
+
}>;
|
|
18
|
+
prepareFeatureHtml(feature: Feature): Promise<{
|
|
19
|
+
htmlObject: string;
|
|
20
|
+
height: number;
|
|
21
|
+
}>;
|
|
22
|
+
prepareMeasurementHtml(measure: Comment): Promise<{
|
|
23
|
+
htmlObject: string;
|
|
24
|
+
height: number;
|
|
25
|
+
}>;
|
|
26
|
+
prepareDeskHtml(feature: Feature): Promise<{
|
|
27
|
+
htmlObject: string;
|
|
28
|
+
height: number;
|
|
29
|
+
}>;
|
|
30
|
+
prepareIndicatorHtml(feature: Feature): Promise<{
|
|
31
|
+
htmlObject: string;
|
|
32
|
+
height: number;
|
|
33
|
+
}>;
|
|
34
|
+
getSignedTagIconSource(tagIconSrc: string): Promise<string | null>;
|
|
35
|
+
getIconTagImageForFeature(feature: DbObjectType, poi: POI): string;
|
|
36
|
+
getScriptForTag(object: any, tagType: PoiType): string;
|
|
37
|
+
onActionDetailClick(url: string): void;
|
|
38
|
+
onActionAudioClick(audioCommentID: string): void;
|
|
39
|
+
onActionVideoClick(url: string): void;
|
|
40
|
+
onActionImageClick(imageCommentID: string): void;
|
|
41
|
+
onActionDocClick(url: string): void;
|
|
42
|
+
onActionYoutubeClick(url: string): void;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseTagService, never>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseTagService>;
|
|
45
|
+
}
|