@smarterplan/ngx-smarterplan-core 1.4.25 → 1.4.26

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.
@@ -2,10 +2,17 @@ import { Operation, Ticket } from "../../types.service";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class OperationService {
4
4
  API: any;
5
+ /** Equipments linked to a ticket in this session: their loaded `operations` may be outdated. */
6
+ private linkedEquipmentIDs;
5
7
  constructor(apiInjected: any);
6
8
  getOperationsByTicketID(id: string): Promise<Operation[]>;
7
9
  getOperationsByEquipmentID(id: string): Promise<Operation[]>;
8
10
  getTicketsByEquipmentID(id: string): Promise<Ticket[]>;
11
+ /** Tickets of a loaded equipment, without a request when its list query shows it has no operation. */
12
+ getTicketsForEquipment(equip: {
13
+ id?: string;
14
+ operations?: any;
15
+ }): Promise<Ticket[]>;
9
16
  deleteOperationsForEquipment(equipID: string): Promise<Operation[]>;
10
17
  deleteOperationsForTicket(ticketID: string): Promise<void>;
11
18
  deleteOperation(operationID: string): Promise<Operation>;
@@ -11,8 +11,19 @@ export declare class PoiService {
11
11
  currentSpaceID: string;
12
12
  zoneIDFilter: string;
13
13
  private destroy$;
14
+ /** Elements whose POI was written in this session: a copy loaded earlier with the element is outdated. */
15
+ private changedElementIDs;
14
16
  constructor(apiInjected: any, awsKinesisAnalyticsInjected: any, userService: BaseUserService, zoneChangeService: ZoneChangeService);
15
17
  getPoiByElementId(elementId: string): Promise<POI | null>;
18
+ /**
19
+ * POI of an object already loaded. Reuses the copy embedded by its list query when it is complete
20
+ * and up to date, so that placing hundreds of tags does not send one request per tag.
21
+ */
22
+ getPoiForObject(object: {
23
+ id?: string;
24
+ pois?: any;
25
+ }): Promise<POI | null>;
26
+ private markChanged;
16
27
  getPoisByType(type: PoiType): Promise<[POI] | any>;
17
28
  createPOIForSpaceID(poi: POI): Promise<POI>;
18
29
  poiIsVirtual(poi: POI): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterplan/ngx-smarterplan-core",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },