@smarterplan/ngx-smarterplan-core 1.2.13 → 1.2.15
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/components/menu-bar/navigation-bar/navigation-bar.component.mjs +20 -18
- package/esm2020/lib/services/matterport-import.service.mjs +2 -3
- package/esm2020/lib/services/models/equipment.service.mjs +19 -17
- package/esm2020/lib/services/models/measurement.service.mjs +20 -18
- package/esm2020/lib/services/models/poi.service.mjs +19 -17
- package/esm2020/lib/services/models/ticket.service.mjs +40 -36
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +114 -103
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +114 -103
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/lib/components/menu-bar/navigation-bar/navigation-bar.component.d.ts.map +1 -1
- package/lib/services/matterport-import.service.d.ts.map +1 -1
- package/lib/services/models/equipment.service.d.ts.map +1 -1
- package/lib/services/models/measurement.service.d.ts.map +1 -1
- package/lib/services/models/poi.service.d.ts.map +1 -1
- package/lib/services/models/ticket.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1854,22 +1854,24 @@ class PoiService {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
async createPOIForSpaceID(poi) {
|
|
1856
1856
|
removeNullKeysFromObject(poi);
|
|
1857
|
-
this.awsKinesisAnalytics
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1857
|
+
if (!!this.awsKinesisAnalytics) {
|
|
1858
|
+
this.awsKinesisAnalytics.getInstance().record(
|
|
1859
|
+
// @ts-ignore
|
|
1860
|
+
{
|
|
1861
|
+
data: {
|
|
1862
|
+
eventType: 'Object Creation',
|
|
1863
|
+
objectType: 'poi',
|
|
1864
|
+
poi: poi,
|
|
1865
|
+
user: this.userService.cu,
|
|
1866
|
+
timestamp: new Date(),
|
|
1867
|
+
floorId: this.selectedFloor?.id,
|
|
1868
|
+
locationId: this.currentSpaceID,
|
|
1869
|
+
zoneId: this.zoneIDFilter,
|
|
1870
|
+
},
|
|
1871
|
+
streamName: 'smarterplanKinesis-analytics',
|
|
1872
|
+
// partitionKey: "",
|
|
1873
|
+
}, 'AWSKinesis');
|
|
1874
|
+
}
|
|
1873
1875
|
return this.API.__proto__.CreatePOI(poi);
|
|
1874
1876
|
}
|
|
1875
1877
|
poiIsVirtual(poi) {
|
|
@@ -6745,24 +6747,26 @@ class TicketsService extends BaseObjectService {
|
|
|
6745
6747
|
event.ownerID = event.ownerID ? event.ownerID : currentMission.id;
|
|
6746
6748
|
try {
|
|
6747
6749
|
const receivedEvent = await this.eventService.createEvent(event);
|
|
6748
|
-
this.awsKinesisAnalytics
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6750
|
+
if (!!this.awsKinesisAnalytics) {
|
|
6751
|
+
this.awsKinesisAnalytics.getInstance().record(
|
|
6752
|
+
// @ts-ignore
|
|
6753
|
+
{
|
|
6754
|
+
data: {
|
|
6755
|
+
eventType: 'Ticket Change',
|
|
6756
|
+
ticketId: event.ticketID,
|
|
6757
|
+
ticket: ticket,
|
|
6758
|
+
status: event.status,
|
|
6759
|
+
event: event,
|
|
6760
|
+
user: this.userService.cu,
|
|
6761
|
+
locationId: this.currentSpaceID,
|
|
6762
|
+
timestamp: new Date(),
|
|
6763
|
+
zoneId: this.zoneIDFilter,
|
|
6764
|
+
floorId: this.selectedFloor?.id,
|
|
6765
|
+
},
|
|
6766
|
+
streamName: 'smarterplanKinesis-analytics',
|
|
6767
|
+
// partitionKey: "",
|
|
6768
|
+
}, 'AWSKinesis');
|
|
6769
|
+
}
|
|
6766
6770
|
// console.log('Event successfully created !');
|
|
6767
6771
|
return receivedEvent;
|
|
6768
6772
|
}
|
|
@@ -6867,23 +6871,25 @@ class TicketsService extends BaseObjectService {
|
|
|
6867
6871
|
return this.API.__proto__.GetTicket(id);
|
|
6868
6872
|
}
|
|
6869
6873
|
async createTicket(input) {
|
|
6870
|
-
this.awsKinesisAnalytics
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6874
|
+
if (!!this.awsKinesisAnalytics) {
|
|
6875
|
+
this.awsKinesisAnalytics.getInstance().record(
|
|
6876
|
+
// @ts-ignore
|
|
6877
|
+
{
|
|
6878
|
+
data: {
|
|
6879
|
+
eventType: 'Object Creation',
|
|
6880
|
+
objectType: 'ticket',
|
|
6881
|
+
//zoneId: input.spaceID, // TODO: check if spaceId == zoneId
|
|
6882
|
+
domain: input.domain,
|
|
6883
|
+
user: this.userService.cu,
|
|
6884
|
+
locationId: this.currentSpaceID,
|
|
6885
|
+
timestamp: new Date(),
|
|
6886
|
+
zoneId: this.zoneIDFilter,
|
|
6887
|
+
floorId: this.selectedFloor?.id,
|
|
6888
|
+
},
|
|
6889
|
+
streamName: 'smarterplanKinesis-analytics',
|
|
6890
|
+
// partitionKey: "",
|
|
6891
|
+
}, 'AWSKinesis');
|
|
6892
|
+
}
|
|
6887
6893
|
return this.API.__proto__.CreateTicket(input);
|
|
6888
6894
|
}
|
|
6889
6895
|
async updateTicket(input) {
|
|
@@ -7119,22 +7125,24 @@ class EquipmentService extends BaseObjectService {
|
|
|
7119
7125
|
}
|
|
7120
7126
|
async createEquipment(equip, imageFile, documentFile) {
|
|
7121
7127
|
removeNullKeysFromObject(equip);
|
|
7122
|
-
this.awsKinesisAnalytics
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7128
|
+
if (!!this.awsKinesisAnalytics) {
|
|
7129
|
+
this.awsKinesisAnalytics.getInstance().record(
|
|
7130
|
+
// @ts-ignore
|
|
7131
|
+
{
|
|
7132
|
+
data: {
|
|
7133
|
+
eventType: 'Object Creation',
|
|
7134
|
+
objectType: 'equipment',
|
|
7135
|
+
poi: equip,
|
|
7136
|
+
user: this.userService.cu,
|
|
7137
|
+
locationId: this.currentSpaceID,
|
|
7138
|
+
timestamp: new Date(),
|
|
7139
|
+
zoneId: this.currentZone.id,
|
|
7140
|
+
floorId: this.selectedFloor?.id,
|
|
7141
|
+
},
|
|
7142
|
+
streamName: 'smarterplanKinesis-analytics',
|
|
7143
|
+
// partitionKey: "",
|
|
7144
|
+
}, 'AWSKinesis');
|
|
7145
|
+
}
|
|
7138
7146
|
return this.API.CreateEquipment(equip).then(async (receivedEquipment) => {
|
|
7139
7147
|
let equipment = receivedEquipment;
|
|
7140
7148
|
if (equipment) {
|
|
@@ -10412,23 +10420,25 @@ class MeasurementService {
|
|
|
10412
10420
|
comment,
|
|
10413
10421
|
poi,
|
|
10414
10422
|
};
|
|
10415
|
-
this.awsKinesisAnalytics
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10423
|
+
if (!!this.awsKinesisAnalytics) {
|
|
10424
|
+
this.awsKinesisAnalytics.getInstance().record(
|
|
10425
|
+
// @ts-ignore
|
|
10426
|
+
{
|
|
10427
|
+
data: {
|
|
10428
|
+
eventType: 'Object Creation',
|
|
10429
|
+
objectType: 'measurement',
|
|
10430
|
+
measurement: measurement,
|
|
10431
|
+
//zoneId: spaceID,
|
|
10432
|
+
user: this.userService.cu,
|
|
10433
|
+
locationId: this.currentSpaceID,
|
|
10434
|
+
timestamp: new Date(),
|
|
10435
|
+
zoneId: this.zoneIDFilter,
|
|
10436
|
+
floorId: this.selectedFloor?.id,
|
|
10437
|
+
},
|
|
10438
|
+
streamName: 'smarterplanKinesis-analytics',
|
|
10439
|
+
// partitionKey: "",
|
|
10440
|
+
}, 'AWSKinesis');
|
|
10441
|
+
}
|
|
10432
10442
|
return measurement;
|
|
10433
10443
|
}
|
|
10434
10444
|
async getModel3DForMeasurement(measurement) {
|
|
@@ -10927,23 +10937,25 @@ class NavigationBarComponent {
|
|
|
10927
10937
|
}
|
|
10928
10938
|
}
|
|
10929
10939
|
async sendKinesisAnalyticsEventForZone(zoneId, zoneName) {
|
|
10930
|
-
this.awsKinesisAnalytics
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10940
|
+
if (!!this.awsKinesisAnalytics) {
|
|
10941
|
+
this.awsKinesisAnalytics.getInstance().record(
|
|
10942
|
+
// @ts-ignore
|
|
10943
|
+
{
|
|
10944
|
+
data: {
|
|
10945
|
+
eventType: 'Zone Change',
|
|
10946
|
+
zoneId: zoneId,
|
|
10947
|
+
zoneName: zoneName,
|
|
10948
|
+
locationId: this.selectedLocation?.id,
|
|
10949
|
+
locationName: this.selectedLocation?.name,
|
|
10950
|
+
user: this.userService?.cu,
|
|
10951
|
+
timestamp: new Date(),
|
|
10952
|
+
floorId: this.selectedFloor?.id,
|
|
10953
|
+
childZoneId: this.selectedChildZone?.id,
|
|
10954
|
+
},
|
|
10955
|
+
streamName: 'smarterplanKinesis-analytics',
|
|
10956
|
+
// partitionKey: "",
|
|
10957
|
+
}, 'AWSKinesis');
|
|
10958
|
+
}
|
|
10947
10959
|
}
|
|
10948
10960
|
async onVisitClick(event) {
|
|
10949
10961
|
this.clearData(false);
|
|
@@ -11378,7 +11390,7 @@ class MatterportImportService {
|
|
|
11378
11390
|
this.importingImages = new Subject();
|
|
11379
11391
|
this.sweepProcessedCount = new Subject();
|
|
11380
11392
|
this.totalSweepsCount = new Subject();
|
|
11381
|
-
this.MAX_SCANS_RELOAD =
|
|
11393
|
+
this.MAX_SCANS_RELOAD = 10;
|
|
11382
11394
|
}
|
|
11383
11395
|
get spaceID() {
|
|
11384
11396
|
return this._spaceID;
|
|
@@ -11559,7 +11571,6 @@ class MatterportImportService {
|
|
|
11559
11571
|
nmbScans < this.MAX_SCANS_RELOAD
|
|
11560
11572
|
? (maxScan = nmbScans)
|
|
11561
11573
|
: (maxScan = this.MAX_SCANS_RELOAD);
|
|
11562
|
-
maxScan;
|
|
11563
11574
|
}
|
|
11564
11575
|
for (let index = indexScan; index < maxScan; index += 1) {
|
|
11565
11576
|
if (!this.stop) {
|