sgerp-frontend-lib 0.1.0 → 0.1.2
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 +1 -1
- package/dist/connection-manager.d.ts +48 -0
- package/dist/connection-manager.d.ts.map +1 -0
- package/dist/connection-manager.js +156 -0
- package/dist/index.js +20 -2
- package/dist/locales/locale-server.d.ts +10 -0
- package/dist/locales/locale-server.d.ts.map +1 -0
- package/dist/locales/locale-server.js +49 -0
- package/dist/locales/locale.d.ts +23 -0
- package/dist/locales/locale.d.ts.map +1 -0
- package/dist/locales/locale.js +145 -0
- package/dist/locales/locale_en.d.ts.map +1 -1
- package/dist/locales/locale_en.js +93 -9
- package/dist/locales/locale_ja.d.ts.map +1 -1
- package/dist/locales/locale_ja.js +93 -9
- package/dist/locales/locale_ms.d.ts.map +1 -1
- package/dist/locales/locale_ms.js +84 -9
- package/dist/locales/useLocalization.d.ts +11 -0
- package/dist/locales/useLocalization.d.ts.map +1 -0
- package/dist/locales/useLocalization.js +64 -0
- package/dist/locales.d.ts +228 -0
- package/dist/locales.d.ts.map +1 -0
- package/dist/locales.js +229 -0
- package/dist/sgerp/api/client.d.ts +45 -0
- package/dist/sgerp/api/client.d.ts.map +1 -0
- package/dist/sgerp/api/client.js +141 -0
- package/dist/sgerp/client.js +341 -0
- package/dist/sgerp/collection.d.ts +391 -0
- package/dist/sgerp/collection.d.ts.map +1 -0
- package/dist/sgerp/collection.js +756 -0
- package/dist/sgerp/collections/account/user.d.ts +8 -0
- package/dist/sgerp/collections/account/user.d.ts.map +1 -0
- package/dist/sgerp/collections/account/user.js +10 -0
- package/dist/sgerp/collections/masstransit/building.d.ts +26 -0
- package/dist/sgerp/collections/masstransit/building.d.ts.map +1 -0
- package/dist/sgerp/collections/masstransit/building.js +53 -0
- package/dist/sgerp/collections/masstransit/transitstop.d.ts +15 -0
- package/dist/sgerp/collections/masstransit/transitstop.d.ts.map +1 -0
- package/dist/sgerp/collections/masstransit/transitstop.js +54 -0
- package/dist/sgerp/collections/masstransit/transitstopset.d.ts +10 -0
- package/dist/sgerp/collections/masstransit/transitstopset.d.ts.map +1 -0
- package/dist/sgerp/collections/masstransit/transitstopset.js +10 -0
- package/dist/sgerp/collections/sharing/organization-project.d.ts +11 -0
- package/dist/sgerp/collections/sharing/organization-project.d.ts.map +1 -0
- package/dist/sgerp/collections/sharing/organization-project.js +13 -0
- package/dist/sgerp/collections/sharing/organization.d.ts +11 -0
- package/dist/sgerp/collections/sharing/organization.d.ts.map +1 -0
- package/dist/sgerp/collections/sharing/organization.js +13 -0
- package/dist/sgerp/collections/sharing/pricing.d.ts +18 -0
- package/dist/sgerp/collections/sharing/pricing.d.ts.map +1 -0
- package/dist/sgerp/collections/sharing/pricing.js +23 -0
- package/dist/sgerp/collections/sharing/project-member.d.ts +8 -0
- package/dist/sgerp/collections/sharing/project-member.d.ts.map +1 -0
- package/dist/sgerp/collections/sharing/project-member.js +10 -0
- package/dist/sgerp/collections/sharing/project.d.ts +8 -0
- package/dist/sgerp/collections/sharing/project.d.ts.map +1 -0
- package/dist/sgerp/collections/sharing/project.js +10 -0
- package/dist/sgerp/collections/simulation/booking.d.ts +11 -0
- package/dist/sgerp/collections/simulation/booking.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/booking.js +13 -0
- package/dist/sgerp/collections/simulation/dataset.d.ts +14 -0
- package/dist/sgerp/collections/simulation/dataset.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/dataset.js +17 -0
- package/dist/sgerp/collections/simulation/driver.d.ts +12 -0
- package/dist/sgerp/collections/simulation/driver.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/driver.js +40 -0
- package/dist/sgerp/collections/simulation/geofence.d.ts +24 -0
- package/dist/sgerp/collections/simulation/geofence.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/geofence.js +66 -0
- package/dist/sgerp/collections/simulation/mapboxtoken.d.ts +18 -0
- package/dist/sgerp/collections/simulation/mapboxtoken.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/mapboxtoken.js +24 -0
- package/dist/sgerp/collections/simulation/node.js +13 -0
- package/dist/sgerp/collections/simulation/operationslocation.d.ts +28 -0
- package/dist/sgerp/collections/simulation/operationslocation.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/operationslocation.js +64 -0
- package/dist/sgerp/collections/simulation/operationslocationgroup.d.ts +12 -0
- package/dist/sgerp/collections/simulation/operationslocationgroup.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/operationslocationgroup.js +24 -0
- package/dist/sgerp/collections/simulation/routingprofile.d.ts +10 -0
- package/dist/sgerp/collections/simulation/routingprofile.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/routingprofile.js +10 -0
- package/dist/sgerp/collections/simulation/simulation.d.ts +12 -0
- package/dist/sgerp/collections/simulation/simulation.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/simulation.js +35 -0
- package/dist/sgerp/collections/simulation/simulationprocessor.d.ts +19 -0
- package/dist/sgerp/collections/simulation/simulationprocessor.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/simulationprocessor.js +27 -0
- package/dist/sgerp/collections/simulation/vehicle.js +13 -0
- package/dist/sgerp/collections/simulation/vehicletype.d.ts +11 -0
- package/dist/sgerp/collections/simulation/vehicletype.d.ts.map +1 -0
- package/dist/sgerp/collections/simulation/vehicletype.js +13 -0
- package/dist/sgerp/collections/sms_notify/smsscheduled.d.ts +11 -0
- package/dist/sgerp/collections/sms_notify/smsscheduled.d.ts.map +1 -0
- package/dist/sgerp/collections/sms_notify/smsscheduled.js +13 -0
- package/dist/sgerp/collections/transportation/passenger.d.ts +8 -0
- package/dist/sgerp/collections/transportation/passenger.d.ts.map +1 -0
- package/dist/sgerp/collections/transportation/passenger.js +10 -0
- package/dist/sgerp/collections/transportation/ticket.d.ts +11 -0
- package/dist/sgerp/collections/transportation/ticket.d.ts.map +1 -0
- package/dist/sgerp/collections/transportation/ticket.js +13 -0
- package/dist/sgerp/collections/transportation/transaction.d.ts +11 -0
- package/dist/sgerp/collections/transportation/transaction.d.ts.map +1 -0
- package/dist/sgerp/collections/transportation/transaction.js +13 -0
- package/dist/sgerp/constants/bulkoperations-enums.d.ts +71 -0
- package/dist/sgerp/constants/bulkoperations-enums.d.ts.map +1 -0
- package/dist/sgerp/constants/bulkoperations-enums.js +99 -0
- package/dist/sgerp/constants/messages-enums.d.ts +47 -0
- package/dist/sgerp/constants/messages-enums.d.ts.map +1 -0
- package/dist/sgerp/constants/messages-enums.js +67 -0
- package/dist/sgerp/constants/scheduling-enums.d.ts +42 -0
- package/dist/sgerp/constants/scheduling-enums.d.ts.map +1 -0
- package/dist/sgerp/constants/scheduling-enums.js +61 -0
- package/dist/sgerp/constants/simulation-enums.d.ts +93 -0
- package/dist/sgerp/constants/simulation-enums.d.ts.map +1 -0
- package/dist/sgerp/constants/simulation-enums.js +147 -0
- package/dist/sgerp/constants/solver-strategies.d.ts +75 -0
- package/dist/sgerp/constants/solver-strategies.d.ts.map +1 -0
- package/dist/sgerp/constants/solver-strategies.js +26 -0
- package/dist/sgerp/context/sgerp-context.js +134 -0
- package/dist/sgerp/domains.d.ts +47 -0
- package/dist/sgerp/domains.d.ts.map +1 -0
- package/dist/sgerp/domains.js +45 -0
- package/dist/sgerp/hooks/use-collection.js +122 -0
- package/dist/sgerp/hooks/use-live-updates.js +16 -13
- package/dist/sgerp/index.js +153 -0
- package/dist/sgerp/map-states/operations-location-state.d.ts +12 -0
- package/dist/sgerp/map-states/operations-location-state.d.ts.map +1 -0
- package/dist/sgerp/map-states/operations-location-state.js +86 -0
- package/dist/sgerp/routing/index.d.ts +51 -0
- package/dist/sgerp/routing/index.d.ts.map +1 -0
- package/dist/sgerp/routing/index.js +373 -0
- package/dist/sgerp/simulation-logic/fetchUtils.js +226 -0
- package/dist/sgerp/simulation-logic/index.js +27 -7
- package/dist/sgerp/simulation-logic/manualEditUtils.js +69 -0
- package/dist/sgerp/simulation-logic/mapUtils.js +58 -0
- package/dist/sgerp/simulation-logic/optimisticUpdateUtils.js +8 -5
- package/dist/sgerp/simulation-logic/referenceUtils.js +110 -0
- package/dist/sgerp/simulation-logic/routeCalculationUtils.js +43 -0
- package/dist/sgerp/simulation-logic/timeShiftUtils.js +63 -0
- package/dist/sgerp/types/account/user.d.ts +38 -0
- package/dist/sgerp/types/account/user.d.ts.map +1 -0
- package/dist/sgerp/types/account/user.js +2 -0
- package/dist/sgerp/types/bulkoperations/index.d.ts +37 -0
- package/dist/sgerp/types/bulkoperations/index.d.ts.map +1 -0
- package/dist/sgerp/types/bulkoperations/index.js +35 -0
- package/dist/sgerp/types/bulkoperations/vehicle-upload.d.ts +335 -0
- package/dist/sgerp/types/bulkoperations/vehicle-upload.d.ts.map +1 -0
- package/dist/sgerp/types/bulkoperations/vehicle-upload.js +49 -0
- package/dist/sgerp/types/config.d.ts +25 -0
- package/dist/sgerp/types/config.d.ts.map +1 -0
- package/dist/sgerp/types/config.js +2 -0
- package/dist/sgerp/types/geojson.d.ts +45 -0
- package/dist/sgerp/types/geojson.d.ts.map +1 -0
- package/dist/sgerp/types/geojson.js +6 -0
- package/dist/sgerp/types/map.d.ts +24 -0
- package/dist/sgerp/types/map.d.ts.map +1 -0
- package/dist/sgerp/types/map.js +2 -0
- package/dist/sgerp/types/masstransit/building.d.ts +24 -0
- package/dist/sgerp/types/masstransit/building.d.ts.map +1 -0
- package/dist/sgerp/types/masstransit/building.js +2 -0
- package/dist/sgerp/types/masstransit/transitstop.d.ts +35 -0
- package/dist/sgerp/types/masstransit/transitstop.d.ts.map +1 -0
- package/dist/sgerp/types/masstransit/transitstop.js +2 -0
- package/dist/sgerp/types/masstransit/transitstopset.d.ts +14 -0
- package/dist/sgerp/types/masstransit/transitstopset.d.ts.map +1 -0
- package/dist/sgerp/types/masstransit/transitstopset.js +2 -0
- package/dist/sgerp/types/sharing/organization-project.d.ts +14 -0
- package/dist/sgerp/types/sharing/organization-project.d.ts.map +1 -0
- package/dist/sgerp/types/sharing/organization-project.js +2 -0
- package/dist/sgerp/types/sharing/organization.d.ts +14 -0
- package/dist/sgerp/types/sharing/organization.d.ts.map +1 -0
- package/dist/sgerp/types/sharing/organization.js +2 -0
- package/dist/sgerp/types/sharing/pricing.d.ts +98 -0
- package/dist/sgerp/types/sharing/pricing.d.ts.map +1 -0
- package/dist/sgerp/types/sharing/pricing.js +2 -0
- package/dist/sgerp/types/sharing/project-member.d.ts +15 -0
- package/dist/sgerp/types/sharing/project-member.d.ts.map +1 -0
- package/dist/sgerp/types/sharing/project-member.js +2 -0
- package/dist/sgerp/types/sharing/project.d.ts +16 -0
- package/dist/sgerp/types/sharing/project.d.ts.map +1 -0
- package/dist/sgerp/types/sharing/project.js +2 -0
- package/dist/sgerp/types/simulation/booking.d.ts +128 -0
- package/dist/sgerp/types/simulation/booking.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/booking.js +24 -0
- package/dist/sgerp/types/simulation/calculation-params.d.ts +20 -0
- package/dist/sgerp/types/simulation/calculation-params.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/calculation-params.js +2 -0
- package/dist/sgerp/types/simulation/dataset.d.ts +16 -0
- package/dist/sgerp/types/simulation/dataset.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/dataset.js +2 -0
- package/dist/sgerp/types/simulation/driver.d.ts +19 -0
- package/dist/sgerp/types/simulation/driver.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/driver.js +2 -0
- package/dist/sgerp/types/simulation/geofence.d.ts +19 -0
- package/dist/sgerp/types/simulation/geofence.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/geofence.js +2 -0
- package/dist/sgerp/types/simulation/logistics-api-settings.d.ts +98 -0
- package/dist/sgerp/types/simulation/logistics-api-settings.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/logistics-api-settings.js +104 -0
- package/dist/sgerp/types/simulation/mapboxtoken.d.ts +13 -0
- package/dist/sgerp/types/simulation/mapboxtoken.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/mapboxtoken.js +2 -0
- package/dist/sgerp/types/simulation/node.js +5 -2
- package/dist/sgerp/types/simulation/operationslocation.d.ts +40 -0
- package/dist/sgerp/types/simulation/operationslocation.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/operationslocation.js +2 -0
- package/dist/sgerp/types/simulation/operationslocationgroup.d.ts +11 -0
- package/dist/sgerp/types/simulation/operationslocationgroup.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/operationslocationgroup.js +2 -0
- package/dist/sgerp/types/simulation/pricing.d.ts +171 -0
- package/dist/sgerp/types/simulation/pricing.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/pricing.js +2 -0
- package/dist/sgerp/types/simulation/route-cost-modification.d.ts +35 -0
- package/dist/sgerp/types/simulation/route-cost-modification.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/route-cost-modification.js +5 -0
- package/dist/sgerp/types/simulation/routing-engine-settings.d.ts +42 -0
- package/dist/sgerp/types/simulation/routing-engine-settings.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/routing-engine-settings.js +35 -0
- package/dist/sgerp/types/simulation/routingprofile.d.ts +32 -0
- package/dist/sgerp/types/simulation/routingprofile.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/routingprofile.js +37 -0
- package/dist/sgerp/types/simulation/simulation.d.ts +120 -0
- package/dist/sgerp/types/simulation/simulation.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/simulation.js +2 -0
- package/dist/sgerp/types/simulation/simulationprocessor.d.ts +31 -0
- package/dist/sgerp/types/simulation/simulationprocessor.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/simulationprocessor.js +2 -0
- package/dist/sgerp/types/simulation/vehicle.js +2 -1
- package/dist/sgerp/types/simulation/vehicletype.d.ts +33 -0
- package/dist/sgerp/types/simulation/vehicletype.d.ts.map +1 -0
- package/dist/sgerp/types/simulation/vehicletype.js +2 -0
- package/dist/sgerp/types/sms_notify/smsscheduled.d.ts +36 -0
- package/dist/sgerp/types/sms_notify/smsscheduled.d.ts.map +1 -0
- package/dist/sgerp/types/sms_notify/smsscheduled.js +6 -0
- package/dist/sgerp/types/transportation/passenger.d.ts +49 -0
- package/dist/sgerp/types/transportation/passenger.d.ts.map +1 -0
- package/dist/sgerp/types/transportation/passenger.js +13 -0
- package/dist/sgerp/types/transportation/ticket.d.ts +31 -0
- package/dist/sgerp/types/transportation/ticket.d.ts.map +1 -0
- package/dist/sgerp/types/transportation/ticket.js +2 -0
- package/dist/sgerp/types/transportation/transaction.d.ts +71 -0
- package/dist/sgerp/types/transportation/transaction.d.ts.map +1 -0
- package/dist/sgerp/types/transportation/transaction.js +54 -0
- package/dist/sgerp/utils/bookingPayload.d.ts +80 -0
- package/dist/sgerp/utils/bookingPayload.d.ts.map +1 -0
- package/dist/sgerp/utils/bookingPayload.js +44 -0
- package/dist/sgerp/utils/color.d.ts +30 -0
- package/dist/sgerp/utils/color.d.ts.map +1 -0
- package/dist/sgerp/utils/color.js +117 -0
- package/dist/sgerp/utils/enum-helpers.d.ts +41 -0
- package/dist/sgerp/utils/enum-helpers.d.ts.map +1 -0
- package/dist/sgerp/utils/enum-helpers.js +54 -0
- package/dist/sgerp/utils/routeUtils.js +171 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface Point {
|
|
2
|
+
type: "Point";
|
|
3
|
+
coordinates: [number, number];
|
|
4
|
+
}
|
|
5
|
+
export interface Polygon {
|
|
6
|
+
type: "Polygon";
|
|
7
|
+
coordinates: number[][][];
|
|
8
|
+
}
|
|
9
|
+
export interface Building {
|
|
10
|
+
id: number;
|
|
11
|
+
h3: string;
|
|
12
|
+
created_at: string;
|
|
13
|
+
modified_at: string;
|
|
14
|
+
point: Point;
|
|
15
|
+
city_id: number;
|
|
16
|
+
address: string;
|
|
17
|
+
blk_no: string;
|
|
18
|
+
name: string;
|
|
19
|
+
code: string | null;
|
|
20
|
+
postal_code: string;
|
|
21
|
+
polygon: Polygon | null;
|
|
22
|
+
extended_name: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=building.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"building.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/masstransit/building.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface TransitStop {
|
|
2
|
+
id: number;
|
|
3
|
+
h3: string;
|
|
4
|
+
created_at: string;
|
|
5
|
+
modified_at: string;
|
|
6
|
+
point: {
|
|
7
|
+
type: 'Point';
|
|
8
|
+
coordinates: [number, number];
|
|
9
|
+
};
|
|
10
|
+
code: string;
|
|
11
|
+
external_id: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
name_translations: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
lat: number;
|
|
17
|
+
lon: number;
|
|
18
|
+
stop_type: string;
|
|
19
|
+
camera_heading: number | null;
|
|
20
|
+
camera_pitch: number | null;
|
|
21
|
+
camera_lat: number | null;
|
|
22
|
+
camera_lon: number | null;
|
|
23
|
+
verified: boolean;
|
|
24
|
+
street: string;
|
|
25
|
+
street_translations: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
city_id?: number;
|
|
29
|
+
extended_name: string;
|
|
30
|
+
extended_street: string;
|
|
31
|
+
display_name?: string;
|
|
32
|
+
resource_uri?: string;
|
|
33
|
+
tags?: string[];
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=transitstop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitstop.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/masstransit/transitstop.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QACL,IAAI,EAAE,OAAO,CAAC;QACd,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transit Stop Set Type
|
|
3
|
+
* Represents a filtered set of transit stops based on filter and exclude expressions
|
|
4
|
+
*/
|
|
5
|
+
export interface TransitStopSet {
|
|
6
|
+
id: number;
|
|
7
|
+
created_at: string;
|
|
8
|
+
modified_at: string;
|
|
9
|
+
project_id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
filter_expression: Record<string, unknown>;
|
|
12
|
+
exclude_expression: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=transitstopset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitstopset.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/masstransit/transitstopset.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrganizationProject model from sharing app
|
|
3
|
+
*/
|
|
4
|
+
export interface OrganizationProject {
|
|
5
|
+
id: number;
|
|
6
|
+
created_at: string;
|
|
7
|
+
modified_at: string;
|
|
8
|
+
organization_id: number;
|
|
9
|
+
project_id: number;
|
|
10
|
+
external_id: string;
|
|
11
|
+
data: Record<string, unknown>;
|
|
12
|
+
type: 'main' | 'participation';
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=organization-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-project.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/sharing/organization-project.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC;CAChC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organization model from sharing app
|
|
3
|
+
*/
|
|
4
|
+
export interface Organization {
|
|
5
|
+
id: number;
|
|
6
|
+
created_at: string;
|
|
7
|
+
modified_at: string;
|
|
8
|
+
code: string;
|
|
9
|
+
name: string;
|
|
10
|
+
external_id: string | null;
|
|
11
|
+
data: Record<string, unknown>;
|
|
12
|
+
is_invalidated: boolean;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/sharing/organization.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export interface PricingExtension {
|
|
2
|
+
type: string;
|
|
3
|
+
surcharge: number;
|
|
4
|
+
exact_price: number;
|
|
5
|
+
pickup_stop_ids: number[];
|
|
6
|
+
discount_percent?: number;
|
|
7
|
+
dropoff_stop_ids: number[];
|
|
8
|
+
}
|
|
9
|
+
export interface PricingDemandAdditionalPrice {
|
|
10
|
+
coefficient: number;
|
|
11
|
+
fixed_amount: number;
|
|
12
|
+
}
|
|
13
|
+
export interface PricingRule {
|
|
14
|
+
extensions: PricingExtension[];
|
|
15
|
+
demand_limit: number;
|
|
16
|
+
initial_price: number;
|
|
17
|
+
demand_limit_help: string;
|
|
18
|
+
initial_price_help: string;
|
|
19
|
+
distance_coefficient: number;
|
|
20
|
+
demand_additional_price: PricingDemandAdditionalPrice;
|
|
21
|
+
distance_coefficient_help: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PricingRules {
|
|
24
|
+
luggage?: PricingRule;
|
|
25
|
+
stroller?: PricingRule;
|
|
26
|
+
passenger?: PricingRule;
|
|
27
|
+
wheelchair?: PricingRule;
|
|
28
|
+
passenger_baby?: PricingRule;
|
|
29
|
+
passenger_child?: PricingRule;
|
|
30
|
+
wheelchair_baby?: PricingRule;
|
|
31
|
+
wheelchair_child?: PricingRule;
|
|
32
|
+
[key: string]: PricingRule | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface PricingRoundingStrategy {
|
|
35
|
+
round_to: string;
|
|
36
|
+
minimal_unit: string;
|
|
37
|
+
round_function: string;
|
|
38
|
+
}
|
|
39
|
+
export interface PricingTerms {
|
|
40
|
+
penalty: number;
|
|
41
|
+
grace_period: number;
|
|
42
|
+
}
|
|
43
|
+
export interface PricingTicketItem {
|
|
44
|
+
max: number;
|
|
45
|
+
title: Record<string, string>;
|
|
46
|
+
subtitle: Record<string, string>;
|
|
47
|
+
description: Record<string, string>;
|
|
48
|
+
ticket_type: string;
|
|
49
|
+
require_driver_verification: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface PricingTicketSection {
|
|
52
|
+
items: PricingTicketItem[];
|
|
53
|
+
title: Record<string, string>;
|
|
54
|
+
section_constraints: {
|
|
55
|
+
total_minimum_demand: number;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export interface PricingDiscount {
|
|
59
|
+
kind: string;
|
|
60
|
+
constant: number;
|
|
61
|
+
percentage: number;
|
|
62
|
+
description: Record<string, string>;
|
|
63
|
+
}
|
|
64
|
+
export interface PricingPaymentMethod {
|
|
65
|
+
payment_provider: string;
|
|
66
|
+
payment_method_type: string;
|
|
67
|
+
}
|
|
68
|
+
export interface PricingOptions {
|
|
69
|
+
rules: PricingRules;
|
|
70
|
+
format: string;
|
|
71
|
+
currency: string;
|
|
72
|
+
format_help: string;
|
|
73
|
+
variability: string;
|
|
74
|
+
format_localized: Record<string, string>;
|
|
75
|
+
rounding_strategy: PricingRoundingStrategy;
|
|
76
|
+
cancellation_terms: PricingTerms;
|
|
77
|
+
fail_to_board_terms: PricingTerms;
|
|
78
|
+
tickets_configuration: PricingTicketSection[];
|
|
79
|
+
organization_discounts: Record<string, PricingDiscount>;
|
|
80
|
+
rounding_strategy_help: {
|
|
81
|
+
round_to: string[];
|
|
82
|
+
minimal_unit: string[];
|
|
83
|
+
round_function: string[];
|
|
84
|
+
};
|
|
85
|
+
payment_method_discounts: Record<string, PricingDiscount>;
|
|
86
|
+
payment_method_configuration: PricingPaymentMethod[];
|
|
87
|
+
payment_method_configuration_operator: PricingPaymentMethod[];
|
|
88
|
+
}
|
|
89
|
+
export interface Pricing {
|
|
90
|
+
id: number;
|
|
91
|
+
name: string;
|
|
92
|
+
project_id: number;
|
|
93
|
+
strategy: string;
|
|
94
|
+
options: PricingOptions;
|
|
95
|
+
created_at: string;
|
|
96
|
+
modified_at: string;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=pricing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/sharing/pricing.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,4BAA4B,CAAC;IACtD,yBAAyB,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,eAAe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AM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,kBAAkB,EAAE,YAAY,CAAC;IACjC,mBAAmB,EAAE,YAAY,CAAC;IAClC,qBAAqB,EAAE,oBAAoB,EAAE,CAAC;IAC9C,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACxD,sBAAsB,EAAE;QACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,CAAC;IACF,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC1D,4BAA4B,EAAE,oBAAoB,EAAE,CAAC;IACrD,qCAAqC,EAAE,oBAAoB,EAAE,CAAC;CAC/D;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProjectMember model from SGERP API (sharing app)
|
|
3
|
+
* Represents a user's membership and permissions in a project
|
|
4
|
+
*/
|
|
5
|
+
export interface ProjectMember {
|
|
6
|
+
id: number;
|
|
7
|
+
created_at: string;
|
|
8
|
+
modified_at: string;
|
|
9
|
+
user_id: number;
|
|
10
|
+
project_id: number;
|
|
11
|
+
allow_change: boolean;
|
|
12
|
+
allow_manage: boolean;
|
|
13
|
+
data: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=project-member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-member.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/sharing/project-member.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project model from SGERP API
|
|
3
|
+
*/
|
|
4
|
+
export interface Project {
|
|
5
|
+
id: number;
|
|
6
|
+
created_at: string;
|
|
7
|
+
modified_at: string;
|
|
8
|
+
name: string;
|
|
9
|
+
external_id: string | null;
|
|
10
|
+
lat: number | null;
|
|
11
|
+
lon: number | null;
|
|
12
|
+
timezone: string;
|
|
13
|
+
data: Record<string, unknown>;
|
|
14
|
+
is_invalidated: boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/sharing/project.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Booking state enum
|
|
3
|
+
*/
|
|
4
|
+
export declare enum BookingState {
|
|
5
|
+
ASSIGNED = "assigned",
|
|
6
|
+
CALCULATION = "calculation",
|
|
7
|
+
CANCELLED_BY_USER = "cancelled_by_user",
|
|
8
|
+
CANCELLED_IN_CALC = "cancelled_in_calc",
|
|
9
|
+
COMPLETED = "completed",
|
|
10
|
+
ENROUTE = "enroute",
|
|
11
|
+
FAIL_TO_BOARD = "fail_to_board",
|
|
12
|
+
FAIL_TO_DELIVER = "fail_to_deliver",
|
|
13
|
+
LINKED = "linked",
|
|
14
|
+
NEW = "new",
|
|
15
|
+
POOLING = "pooling",
|
|
16
|
+
PREPARED = "prepared",
|
|
17
|
+
QUEUED = "queued",
|
|
18
|
+
REJECTED_BY_SYSTEM = "rejected_by_system",
|
|
19
|
+
SENT_OFFER = "sent_offer"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Booking model from simulation app
|
|
23
|
+
*/
|
|
24
|
+
export interface Booking {
|
|
25
|
+
id: number;
|
|
26
|
+
created_at: string;
|
|
27
|
+
modified_at: string;
|
|
28
|
+
uid: string;
|
|
29
|
+
group_uid: string;
|
|
30
|
+
has_linked_bookings: boolean;
|
|
31
|
+
customer_id: string;
|
|
32
|
+
data: Record<string, unknown>;
|
|
33
|
+
requested_at: string;
|
|
34
|
+
min_pickup_time: string;
|
|
35
|
+
max_pickup_time: string;
|
|
36
|
+
min_dropoff_time: string;
|
|
37
|
+
max_dropoff_time: string;
|
|
38
|
+
min_trip_duration: number | null;
|
|
39
|
+
max_trip_duration: number;
|
|
40
|
+
pickup_location_lat: number;
|
|
41
|
+
pickup_location_lon: number;
|
|
42
|
+
pickup_location_name: string;
|
|
43
|
+
pickup_operations_location_id: number | null;
|
|
44
|
+
dropoff_operations_location_id: number | null;
|
|
45
|
+
dropoff_location_lat: number;
|
|
46
|
+
dropoff_location_lon: number;
|
|
47
|
+
dropoff_location_name: string;
|
|
48
|
+
state: string;
|
|
49
|
+
booking_type: string;
|
|
50
|
+
completed_by: unknown;
|
|
51
|
+
planned_pickup_time: string | null;
|
|
52
|
+
planned_dropoff_time: string | null;
|
|
53
|
+
actual_pickup_time: string | null;
|
|
54
|
+
actual_dropoff_time: string | null;
|
|
55
|
+
planned_journey_duration: number | null;
|
|
56
|
+
actual_journey_duration: number | null;
|
|
57
|
+
fixed_journey_duration: number | null;
|
|
58
|
+
journey_duration_difference: number | null;
|
|
59
|
+
odbs_waiting_time: number | null;
|
|
60
|
+
fixed_waiting_time: number | null;
|
|
61
|
+
waiting_time_difference: number | null;
|
|
62
|
+
group_booking_id: number | null;
|
|
63
|
+
simulation_id: number;
|
|
64
|
+
service_time: number;
|
|
65
|
+
demand: Record<string, number>;
|
|
66
|
+
requested_tickets: unknown;
|
|
67
|
+
pickup_stops: {
|
|
68
|
+
points: unknown[];
|
|
69
|
+
};
|
|
70
|
+
dropoff_stops: {
|
|
71
|
+
points: unknown[];
|
|
72
|
+
};
|
|
73
|
+
otp_trip_plan: {
|
|
74
|
+
itineraries: unknown[];
|
|
75
|
+
};
|
|
76
|
+
public_transit_transport: unknown;
|
|
77
|
+
fixed_route_type: unknown;
|
|
78
|
+
cancellation_time: string | null;
|
|
79
|
+
fail_to_board_time: string | null;
|
|
80
|
+
penalty: number;
|
|
81
|
+
lifo_order_check: boolean;
|
|
82
|
+
lifo_order_penalty: number | null;
|
|
83
|
+
groups: unknown[];
|
|
84
|
+
sim_tier: unknown;
|
|
85
|
+
preferred_pickup_stop_id: number | null;
|
|
86
|
+
preferred_dropoff_stop_id: number | null;
|
|
87
|
+
pooling_booking_id: number | null;
|
|
88
|
+
trip_cost: number;
|
|
89
|
+
transfer_type: string;
|
|
90
|
+
is_invalidated: boolean;
|
|
91
|
+
pickup_service_time: number;
|
|
92
|
+
dropoff_service_time: number;
|
|
93
|
+
vehicle_characteristics: Record<string, unknown>;
|
|
94
|
+
vehicle_labels: Record<string, unknown>;
|
|
95
|
+
pickup_time_windows: unknown;
|
|
96
|
+
dropoff_time_windows: unknown;
|
|
97
|
+
failed_to_deliver_at_ts: string | null;
|
|
98
|
+
ready_to_board_at: string | null;
|
|
99
|
+
failed_to_pay_at: string | null;
|
|
100
|
+
geofence_definition_strategy: unknown;
|
|
101
|
+
air_distance: number;
|
|
102
|
+
offer_should_be_auto_accepted: unknown;
|
|
103
|
+
project_id: number;
|
|
104
|
+
payment_method_type: unknown;
|
|
105
|
+
passenger_payment_method_id: number | null;
|
|
106
|
+
user_accepted_offer_at: string | null;
|
|
107
|
+
created_by: unknown;
|
|
108
|
+
order_position: number | null;
|
|
109
|
+
product_kind: unknown;
|
|
110
|
+
shipment_id: number | null;
|
|
111
|
+
shipment_external_id: string | null;
|
|
112
|
+
driver_id?: number | null;
|
|
113
|
+
driver_first_name?: string | null;
|
|
114
|
+
driver_last_name?: string | null;
|
|
115
|
+
vehicle_id?: number | null;
|
|
116
|
+
service_number?: string | null;
|
|
117
|
+
pickup_scheduled_ts?: string | null;
|
|
118
|
+
dropoff_scheduled_ts?: string | null;
|
|
119
|
+
pickup_node?: {
|
|
120
|
+
scheduled_ts?: string | null;
|
|
121
|
+
[key: string]: unknown;
|
|
122
|
+
} | null;
|
|
123
|
+
dropoff_node?: {
|
|
124
|
+
scheduled_ts?: string | null;
|
|
125
|
+
[key: string]: unknown;
|
|
126
|
+
} | null;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=booking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/booking.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACtB,QAAQ,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c,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,WAAW,CAAC,EAAE;QACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GAAG,IAAI,CAAC;IACT,YAAY,CAAC,EAAE;QACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GAAG,IAAI,CAAC;CAEV"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingState = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Booking state enum
|
|
6
|
+
*/
|
|
7
|
+
var BookingState;
|
|
8
|
+
(function (BookingState) {
|
|
9
|
+
BookingState["ASSIGNED"] = "assigned";
|
|
10
|
+
BookingState["CALCULATION"] = "calculation";
|
|
11
|
+
BookingState["CANCELLED_BY_USER"] = "cancelled_by_user";
|
|
12
|
+
BookingState["CANCELLED_IN_CALC"] = "cancelled_in_calc";
|
|
13
|
+
BookingState["COMPLETED"] = "completed";
|
|
14
|
+
BookingState["ENROUTE"] = "enroute";
|
|
15
|
+
BookingState["FAIL_TO_BOARD"] = "fail_to_board";
|
|
16
|
+
BookingState["FAIL_TO_DELIVER"] = "fail_to_deliver";
|
|
17
|
+
BookingState["LINKED"] = "linked";
|
|
18
|
+
BookingState["NEW"] = "new";
|
|
19
|
+
BookingState["POOLING"] = "pooling";
|
|
20
|
+
BookingState["PREPARED"] = "prepared";
|
|
21
|
+
BookingState["QUEUED"] = "queued";
|
|
22
|
+
BookingState["REJECTED_BY_SYSTEM"] = "rejected_by_system";
|
|
23
|
+
BookingState["SENT_OFFER"] = "sent_offer";
|
|
24
|
+
})(BookingState || (exports.BookingState = BookingState = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common calculation parameters used in operations location models
|
|
3
|
+
*/
|
|
4
|
+
export interface CalculationParams {
|
|
5
|
+
exit_time: {
|
|
6
|
+
fixed: number | null;
|
|
7
|
+
};
|
|
8
|
+
enter_time: {
|
|
9
|
+
fixed: number | null;
|
|
10
|
+
};
|
|
11
|
+
service_time?: {
|
|
12
|
+
fixed: number | null;
|
|
13
|
+
};
|
|
14
|
+
coefficients?: Record<string, Record<string, number>>;
|
|
15
|
+
cumulative_limitation?: {
|
|
16
|
+
depot_service_time: number;
|
|
17
|
+
max_cumulative_vehicles: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=calculation-params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculation-params.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/calculation-params.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,qBAAqB,CAAC,EAAE;QACtB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,uBAAuB,EAAE,MAAM,CAAC;KACjC,CAAC;CACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Dataset {
|
|
2
|
+
id: number;
|
|
3
|
+
created_at: string;
|
|
4
|
+
modified_at: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
dataset_profile: string;
|
|
8
|
+
booking_data_format: string;
|
|
9
|
+
csv_filename_old: string | null;
|
|
10
|
+
csv_filename: string;
|
|
11
|
+
cancellation_events: Record<string, unknown>;
|
|
12
|
+
trips: number;
|
|
13
|
+
display_options: Record<string, unknown>;
|
|
14
|
+
project_id: number;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=dataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/dataset.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { User } from '../account/user';
|
|
2
|
+
import type { ProjectMember } from '../sharing/project-member';
|
|
3
|
+
/**
|
|
4
|
+
* Driver model from simulation app
|
|
5
|
+
*/
|
|
6
|
+
export interface Driver {
|
|
7
|
+
id: number;
|
|
8
|
+
created_at: string;
|
|
9
|
+
modified_at: string;
|
|
10
|
+
first_name: string;
|
|
11
|
+
last_name: string | null;
|
|
12
|
+
external_id: string | null;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
project_id: number;
|
|
15
|
+
username?: string;
|
|
16
|
+
user?: User;
|
|
17
|
+
projectMembers?: ProjectMember[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GeoJSONPolygon, GeoJSONFeatureCollection } from '../geojson';
|
|
2
|
+
export interface Geofence {
|
|
3
|
+
id: string;
|
|
4
|
+
key: number;
|
|
5
|
+
project_id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
status: string;
|
|
9
|
+
geometry: GeoJSONPolygon | GeoJSONFeatureCollection;
|
|
10
|
+
creation_type: string;
|
|
11
|
+
display_options: {
|
|
12
|
+
color?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
dataset_id: number | null;
|
|
16
|
+
created_at: string;
|
|
17
|
+
modified_at: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=geofence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geofence.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/geofence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3E,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,cAAc,GAAG,wBAAwB,CAAC;IACpD,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|