sgerp-frontend-lib 0.1.2 → 0.1.3

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.
@@ -38,7 +38,7 @@ exports.SGERPProvider = SGERPProvider;
38
38
  exports.useSGERPContext = useSGERPContext;
39
39
  const react_1 = __importStar(require("react"));
40
40
  const client_1 = require("../client");
41
- const connection_manager_1 = require("@/sgerplib/connection-manager");
41
+ const connection_manager_1 = require("../../connection-manager");
42
42
  /**
43
43
  * Context to share SGERP API client across all pages and components
44
44
  * This prevents collections from being refetched when navigating between pages
@@ -5,7 +5,7 @@ exports.useCollection = useCollection;
5
5
  exports.useSGERP = useSGERP;
6
6
  const react_1 = require("react");
7
7
  const client_1 = require("../client");
8
- const connection_manager_1 = require("@/sgerplib/connection-manager");
8
+ const connection_manager_1 = require("../../connection-manager");
9
9
  const sgerp_context_1 = require("../context/sgerp-context");
10
10
  // Cached empty array to avoid creating new instances
11
11
  const EMPTY_ARRAY = [];
@@ -1,11 +1,11 @@
1
- import type { SGERPClient } from '@/sgerplib/sgerp/client';
2
- import type { Simulation } from '@/sgerplib/sgerp/types/simulation/simulation';
3
- import type { Booking } from '@/sgerplib/sgerp/types/simulation/booking';
4
- import type { Vehicle } from '@/sgerplib/sgerp/types/simulation/vehicle';
5
- import type { Driver } from '@/sgerplib/sgerp/types/simulation/driver';
6
- import type { Node } from '@/sgerplib/sgerp/types/simulation/node';
7
- import type { Geofence } from '@/sgerplib/sgerp/types/simulation/geofence';
8
- import type { OperationsLocation } from '@/sgerplib/sgerp/types/simulation/operationslocation';
1
+ import type { SGERPClient } from '../client';
2
+ import type { Simulation } from '../types/simulation/simulation';
3
+ import type { Booking } from '../types/simulation/booking';
4
+ import type { Vehicle } from '../types/simulation/vehicle';
5
+ import type { Driver } from '../types/simulation/driver';
6
+ import type { Node } from '../types/simulation/node';
7
+ import type { Geofence } from '../types/simulation/geofence';
8
+ import type { OperationsLocation } from '../types/simulation/operationslocation';
9
9
  /**
10
10
  * Fetch vehicles for a simulation
11
11
  * Uses fetchAll() to get all vehicles regardless of count
@@ -1 +1 @@
1
- {"version":3,"file":"fetchUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/fetchUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAI/F;;;GAGG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,WAAW,EAChB,YAAY,EAAE,MAAM,GAAG,MAAM,GAC5B,OAAO,CAAC,OAAO,EAAE,CAAC,CASpB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,WAAW,EAChB,YAAY,EAAE,MAAM,GAAG,MAAM,GAC5B,OAAO,CAAC,OAAO,EAAE,CAAC,CAUpB;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,WAAW,EAChB,YAAY,EAAE,MAAM,GAAG,MAAM,GAC5B,OAAO,CAAC,IAAI,EAAE,CAAC,CAQjB;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,OAAO,EAAE,GAClB,OAAO,CAAC,MAAM,EAAE,CAAC,CAsBnB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,G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B,mBAAmB,CACvC,GAAG,EAAE,WAAW,EAChB,YAAY,EAAE,MAAM,GAAG,MAAM,EAC7B,UAAU,GAAE,UAAU,GAAG,IAAW;;;;;;;GAwBrC"}
@@ -9,7 +9,7 @@ exports.fetchOperationsLocationsByProject = fetchOperationsLocationsByProject;
9
9
  exports.fetchGeofences = fetchGeofences;
10
10
  exports.fetchSimulationGeofence = fetchSimulationGeofence;
11
11
  exports.fetchSimulationData = fetchSimulationData;
12
- const client_1 = require("@/sgerplib/sgerp/api/client");
12
+ const client_1 = require("../api/client");
13
13
  /**
14
14
  * Fetch vehicles for a simulation
15
15
  * Uses fetchAll() to get all vehicles regardless of count
@@ -1,4 +1,4 @@
1
- import type { Node } from '@/sgerplib/sgerp/types/simulation/node';
1
+ import type { Node } from '../types/simulation/node';
2
2
  /**
3
3
  * Manual Edit API request for vehicle_complex_rearrange action
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"manualEditUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/manualEditUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,EAAE;QACN,WAAW,EAAE,2BAA2B,CAAC;QACzC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC,CAAC;QACvD,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,cAAc,EAAE,MAAM,GAAG;QACxB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;CACH;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,MAAM,GAAG,MAAM,EAC7B,eAAe,EAAE,eAAe,EAChC,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,OAAO,CAAC,kBAAkB,CAAC,CAiD7B;AAGD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,GAClC,eAAe,CAajB"}
1
+ {"version":3,"file":"manualEditUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/manualEditUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAErD;;GAEG;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OAAO,GAAE;IACP,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,OAAO,CAAC,kBAAkB,CAAC,CAiD7B;AAGD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,GAClC,eAAe,CAajB"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.vehicleComplexRearrange = vehicleComplexRearrange;
4
4
  exports.buildVehicleRouteMap = buildVehicleRouteMap;
5
- const client_1 = require("@/sgerplib/sgerp/api/client");
5
+ const client_1 = require("../api/client");
6
6
  /**
7
7
  * Call the Manual Edit API to rearrange vehicle routes
8
8
  *
@@ -1,6 +1,6 @@
1
- import type { Booking } from '@/sgerplib/sgerp/types/simulation/booking';
2
- import type { Vehicle } from '@/sgerplib/sgerp/types/simulation/vehicle';
3
- import type { RouteNode } from '@/sgerplib/sgerp/utils/routeUtils';
1
+ import type { Booking } from '../types/simulation/booking';
2
+ import type { Vehicle } from '../types/simulation/vehicle';
3
+ import type { RouteNode } from '../utils/routeUtils';
4
4
  /**
5
5
  * Create index maps for fast lookups
6
6
  * Similar to dashviewer's stateIndex
@@ -1 +1 @@
1
- {"version":3,"file":"referenceUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/referenceUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEnE;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,EAAE,SAAS,EAAE;;;;EAuBnB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,EAAE,SAAS,EAAE;;;;;wBAYA,SAAS,EAAE;yBACV,SAAS,EAAE;+BACL,GAAG,CAAC,MAAM,CAAC;gCACV,GAAG,CAAC,MAAM,CAAC;;EA0EtC"}
1
+ {"version":3,"file":"referenceUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/referenceUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,EAAE,SAAS,EAAE;;;;EAuBnB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,EAAE,SAAS,EAAE;;;;;wBAYA,SAAS,EAAE;yBACV,SAAS,EAAE;+BACL,GAAG,CAAC,MAAM,CAAC;gCACV,GAAG,CAAC,MAAM,CAAC;;EA0EtC"}
@@ -1,6 +1,6 @@
1
- import type { Vehicle } from '@/sgerplib/sgerp/types/simulation/vehicle';
2
- import type { RouteNode } from '@/sgerplib/sgerp/utils/routeUtils';
3
- import { Route } from '@/sgerplib/sgerp/routing';
1
+ import type { Vehicle } from '../types/simulation/vehicle';
2
+ import type { RouteNode } from '../utils/routeUtils';
3
+ import { Route } from '../routing';
4
4
  /**
5
5
  * Calculate OSRM route for a vehicle based on its assigned nodes
6
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"routeCalculationUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/routeCalculationUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAiB,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,SAAS,EAAE,EACxB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAuCvB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,aAAa,EAAE,SAAS,EAAE,GAAG,SAAS,EACtC,QAAQ,EAAE,SAAS,EAAE,GACpB,OAAO,CAIT"}
1
+ {"version":3,"file":"routeCalculationUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/routeCalculationUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAiB,KAAK,EAAE,MAAM,YAAY,CAAC;AAElD;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,SAAS,EAAE,EACxB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAuCvB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,aAAa,EAAE,SAAS,EAAE,GAAG,SAAS,EACtC,QAAQ,EAAE,SAAS,EAAE,GACpB,OAAO,CAIT"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.calculateVehicleRoute = calculateVehicleRoute;
4
4
  exports.hasRouteChanged = hasRouteChanged;
5
- const routing_1 = require("@/sgerplib/sgerp/routing");
5
+ const routing_1 = require("../routing");
6
6
  /**
7
7
  * Calculate OSRM route for a vehicle based on its assigned nodes
8
8
  */
@@ -1,4 +1,4 @@
1
- import type { Node } from '@/sgerplib/sgerp/types/simulation/node';
1
+ import type { Node } from '../types/simulation/node';
2
2
  /**
3
3
  * Shift all node scheduled timestamps by a time difference
4
4
  * Note: open_time_ts and close_time_ts are NOT shifted as they represent
@@ -1 +1 @@
1
- {"version":3,"file":"timeShiftUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/timeShiftUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AAmBnE;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,EAAE,EACb,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,IAAI,EAAE,CAaR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS;IAAE,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,EACjE,SAAS,EAAE,CAAC,EAAE,EACd,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,CAAC,EAAE,CAgBL"}
1
+ {"version":3,"file":"timeShiftUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/simulation-logic/timeShiftUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAmBrD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,EAAE,EACb,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,IAAI,EAAE,CAaR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS;IAAE,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,EACjE,SAAS,EAAE,CAAC,EAAE,EACd,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,CAAC,EAAE,CAgBL"}
@@ -2,7 +2,7 @@
2
2
  * Route utility functions adapted from dashviewer
3
3
  * Generates waypoint routes from nodes without web workers
4
4
  */
5
- import type { Node } from '@/sgerplib/sgerp/types/simulation/node';
5
+ import type { Node } from '../types/simulation/node';
6
6
  export type RouteNode = Node;
7
7
  export interface Waypoint {
8
8
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"routeUtils.d.ts","sourceRoot":"","sources":["../../../sgerplib/sgerp/utils/routeUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAA;AAElE,MAAM,MAAM,SAAS,GAAG,IAAI,CAAA;AAE5B,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,YAAY,EAAE,SAAS,EAAE,CAAC;IAC1B,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,WAAW,EAAE,SAAS,EAAE,CAAC;IACzB,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG;IAClE,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,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MG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CA4B/E;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,SAAS,EAAE,EAClB,UAAU,EAAE,MAAM,EAAE,GACnB,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAwC/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sgerp-frontend-lib",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript/React library for interacting with the SGERP API, providing client SDK, Backbone.js-style Collections, and pre-built React components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",