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.
Files changed (255) hide show
  1. package/README.md +1 -1
  2. package/dist/connection-manager.d.ts +48 -0
  3. package/dist/connection-manager.d.ts.map +1 -0
  4. package/dist/connection-manager.js +156 -0
  5. package/dist/index.js +20 -2
  6. package/dist/locales/locale-server.d.ts +10 -0
  7. package/dist/locales/locale-server.d.ts.map +1 -0
  8. package/dist/locales/locale-server.js +49 -0
  9. package/dist/locales/locale.d.ts +23 -0
  10. package/dist/locales/locale.d.ts.map +1 -0
  11. package/dist/locales/locale.js +145 -0
  12. package/dist/locales/locale_en.d.ts.map +1 -1
  13. package/dist/locales/locale_en.js +93 -9
  14. package/dist/locales/locale_ja.d.ts.map +1 -1
  15. package/dist/locales/locale_ja.js +93 -9
  16. package/dist/locales/locale_ms.d.ts.map +1 -1
  17. package/dist/locales/locale_ms.js +84 -9
  18. package/dist/locales/useLocalization.d.ts +11 -0
  19. package/dist/locales/useLocalization.d.ts.map +1 -0
  20. package/dist/locales/useLocalization.js +64 -0
  21. package/dist/locales.d.ts +228 -0
  22. package/dist/locales.d.ts.map +1 -0
  23. package/dist/locales.js +229 -0
  24. package/dist/sgerp/api/client.d.ts +45 -0
  25. package/dist/sgerp/api/client.d.ts.map +1 -0
  26. package/dist/sgerp/api/client.js +141 -0
  27. package/dist/sgerp/client.js +341 -0
  28. package/dist/sgerp/collection.d.ts +391 -0
  29. package/dist/sgerp/collection.d.ts.map +1 -0
  30. package/dist/sgerp/collection.js +756 -0
  31. package/dist/sgerp/collections/account/user.d.ts +8 -0
  32. package/dist/sgerp/collections/account/user.d.ts.map +1 -0
  33. package/dist/sgerp/collections/account/user.js +10 -0
  34. package/dist/sgerp/collections/masstransit/building.d.ts +26 -0
  35. package/dist/sgerp/collections/masstransit/building.d.ts.map +1 -0
  36. package/dist/sgerp/collections/masstransit/building.js +53 -0
  37. package/dist/sgerp/collections/masstransit/transitstop.d.ts +15 -0
  38. package/dist/sgerp/collections/masstransit/transitstop.d.ts.map +1 -0
  39. package/dist/sgerp/collections/masstransit/transitstop.js +54 -0
  40. package/dist/sgerp/collections/masstransit/transitstopset.d.ts +10 -0
  41. package/dist/sgerp/collections/masstransit/transitstopset.d.ts.map +1 -0
  42. package/dist/sgerp/collections/masstransit/transitstopset.js +10 -0
  43. package/dist/sgerp/collections/sharing/organization-project.d.ts +11 -0
  44. package/dist/sgerp/collections/sharing/organization-project.d.ts.map +1 -0
  45. package/dist/sgerp/collections/sharing/organization-project.js +13 -0
  46. package/dist/sgerp/collections/sharing/organization.d.ts +11 -0
  47. package/dist/sgerp/collections/sharing/organization.d.ts.map +1 -0
  48. package/dist/sgerp/collections/sharing/organization.js +13 -0
  49. package/dist/sgerp/collections/sharing/pricing.d.ts +18 -0
  50. package/dist/sgerp/collections/sharing/pricing.d.ts.map +1 -0
  51. package/dist/sgerp/collections/sharing/pricing.js +23 -0
  52. package/dist/sgerp/collections/sharing/project-member.d.ts +8 -0
  53. package/dist/sgerp/collections/sharing/project-member.d.ts.map +1 -0
  54. package/dist/sgerp/collections/sharing/project-member.js +10 -0
  55. package/dist/sgerp/collections/sharing/project.d.ts +8 -0
  56. package/dist/sgerp/collections/sharing/project.d.ts.map +1 -0
  57. package/dist/sgerp/collections/sharing/project.js +10 -0
  58. package/dist/sgerp/collections/simulation/booking.d.ts +11 -0
  59. package/dist/sgerp/collections/simulation/booking.d.ts.map +1 -0
  60. package/dist/sgerp/collections/simulation/booking.js +13 -0
  61. package/dist/sgerp/collections/simulation/dataset.d.ts +14 -0
  62. package/dist/sgerp/collections/simulation/dataset.d.ts.map +1 -0
  63. package/dist/sgerp/collections/simulation/dataset.js +17 -0
  64. package/dist/sgerp/collections/simulation/driver.d.ts +12 -0
  65. package/dist/sgerp/collections/simulation/driver.d.ts.map +1 -0
  66. package/dist/sgerp/collections/simulation/driver.js +40 -0
  67. package/dist/sgerp/collections/simulation/geofence.d.ts +24 -0
  68. package/dist/sgerp/collections/simulation/geofence.d.ts.map +1 -0
  69. package/dist/sgerp/collections/simulation/geofence.js +66 -0
  70. package/dist/sgerp/collections/simulation/mapboxtoken.d.ts +18 -0
  71. package/dist/sgerp/collections/simulation/mapboxtoken.d.ts.map +1 -0
  72. package/dist/sgerp/collections/simulation/mapboxtoken.js +24 -0
  73. package/dist/sgerp/collections/simulation/node.js +13 -0
  74. package/dist/sgerp/collections/simulation/operationslocation.d.ts +28 -0
  75. package/dist/sgerp/collections/simulation/operationslocation.d.ts.map +1 -0
  76. package/dist/sgerp/collections/simulation/operationslocation.js +64 -0
  77. package/dist/sgerp/collections/simulation/operationslocationgroup.d.ts +12 -0
  78. package/dist/sgerp/collections/simulation/operationslocationgroup.d.ts.map +1 -0
  79. package/dist/sgerp/collections/simulation/operationslocationgroup.js +24 -0
  80. package/dist/sgerp/collections/simulation/routingprofile.d.ts +10 -0
  81. package/dist/sgerp/collections/simulation/routingprofile.d.ts.map +1 -0
  82. package/dist/sgerp/collections/simulation/routingprofile.js +10 -0
  83. package/dist/sgerp/collections/simulation/simulation.d.ts +12 -0
  84. package/dist/sgerp/collections/simulation/simulation.d.ts.map +1 -0
  85. package/dist/sgerp/collections/simulation/simulation.js +35 -0
  86. package/dist/sgerp/collections/simulation/simulationprocessor.d.ts +19 -0
  87. package/dist/sgerp/collections/simulation/simulationprocessor.d.ts.map +1 -0
  88. package/dist/sgerp/collections/simulation/simulationprocessor.js +27 -0
  89. package/dist/sgerp/collections/simulation/vehicle.js +13 -0
  90. package/dist/sgerp/collections/simulation/vehicletype.d.ts +11 -0
  91. package/dist/sgerp/collections/simulation/vehicletype.d.ts.map +1 -0
  92. package/dist/sgerp/collections/simulation/vehicletype.js +13 -0
  93. package/dist/sgerp/collections/sms_notify/smsscheduled.d.ts +11 -0
  94. package/dist/sgerp/collections/sms_notify/smsscheduled.d.ts.map +1 -0
  95. package/dist/sgerp/collections/sms_notify/smsscheduled.js +13 -0
  96. package/dist/sgerp/collections/transportation/passenger.d.ts +8 -0
  97. package/dist/sgerp/collections/transportation/passenger.d.ts.map +1 -0
  98. package/dist/sgerp/collections/transportation/passenger.js +10 -0
  99. package/dist/sgerp/collections/transportation/ticket.d.ts +11 -0
  100. package/dist/sgerp/collections/transportation/ticket.d.ts.map +1 -0
  101. package/dist/sgerp/collections/transportation/ticket.js +13 -0
  102. package/dist/sgerp/collections/transportation/transaction.d.ts +11 -0
  103. package/dist/sgerp/collections/transportation/transaction.d.ts.map +1 -0
  104. package/dist/sgerp/collections/transportation/transaction.js +13 -0
  105. package/dist/sgerp/constants/bulkoperations-enums.d.ts +71 -0
  106. package/dist/sgerp/constants/bulkoperations-enums.d.ts.map +1 -0
  107. package/dist/sgerp/constants/bulkoperations-enums.js +99 -0
  108. package/dist/sgerp/constants/messages-enums.d.ts +47 -0
  109. package/dist/sgerp/constants/messages-enums.d.ts.map +1 -0
  110. package/dist/sgerp/constants/messages-enums.js +67 -0
  111. package/dist/sgerp/constants/scheduling-enums.d.ts +42 -0
  112. package/dist/sgerp/constants/scheduling-enums.d.ts.map +1 -0
  113. package/dist/sgerp/constants/scheduling-enums.js +61 -0
  114. package/dist/sgerp/constants/simulation-enums.d.ts +93 -0
  115. package/dist/sgerp/constants/simulation-enums.d.ts.map +1 -0
  116. package/dist/sgerp/constants/simulation-enums.js +147 -0
  117. package/dist/sgerp/constants/solver-strategies.d.ts +75 -0
  118. package/dist/sgerp/constants/solver-strategies.d.ts.map +1 -0
  119. package/dist/sgerp/constants/solver-strategies.js +26 -0
  120. package/dist/sgerp/context/sgerp-context.js +134 -0
  121. package/dist/sgerp/domains.d.ts +47 -0
  122. package/dist/sgerp/domains.d.ts.map +1 -0
  123. package/dist/sgerp/domains.js +45 -0
  124. package/dist/sgerp/hooks/use-collection.js +122 -0
  125. package/dist/sgerp/hooks/use-live-updates.js +16 -13
  126. package/dist/sgerp/index.js +153 -0
  127. package/dist/sgerp/map-states/operations-location-state.d.ts +12 -0
  128. package/dist/sgerp/map-states/operations-location-state.d.ts.map +1 -0
  129. package/dist/sgerp/map-states/operations-location-state.js +86 -0
  130. package/dist/sgerp/routing/index.d.ts +51 -0
  131. package/dist/sgerp/routing/index.d.ts.map +1 -0
  132. package/dist/sgerp/routing/index.js +373 -0
  133. package/dist/sgerp/simulation-logic/fetchUtils.js +226 -0
  134. package/dist/sgerp/simulation-logic/index.js +27 -7
  135. package/dist/sgerp/simulation-logic/manualEditUtils.js +69 -0
  136. package/dist/sgerp/simulation-logic/mapUtils.js +58 -0
  137. package/dist/sgerp/simulation-logic/optimisticUpdateUtils.js +8 -5
  138. package/dist/sgerp/simulation-logic/referenceUtils.js +110 -0
  139. package/dist/sgerp/simulation-logic/routeCalculationUtils.js +43 -0
  140. package/dist/sgerp/simulation-logic/timeShiftUtils.js +63 -0
  141. package/dist/sgerp/types/account/user.d.ts +38 -0
  142. package/dist/sgerp/types/account/user.d.ts.map +1 -0
  143. package/dist/sgerp/types/account/user.js +2 -0
  144. package/dist/sgerp/types/bulkoperations/index.d.ts +37 -0
  145. package/dist/sgerp/types/bulkoperations/index.d.ts.map +1 -0
  146. package/dist/sgerp/types/bulkoperations/index.js +35 -0
  147. package/dist/sgerp/types/bulkoperations/vehicle-upload.d.ts +335 -0
  148. package/dist/sgerp/types/bulkoperations/vehicle-upload.d.ts.map +1 -0
  149. package/dist/sgerp/types/bulkoperations/vehicle-upload.js +49 -0
  150. package/dist/sgerp/types/config.d.ts +25 -0
  151. package/dist/sgerp/types/config.d.ts.map +1 -0
  152. package/dist/sgerp/types/config.js +2 -0
  153. package/dist/sgerp/types/geojson.d.ts +45 -0
  154. package/dist/sgerp/types/geojson.d.ts.map +1 -0
  155. package/dist/sgerp/types/geojson.js +6 -0
  156. package/dist/sgerp/types/map.d.ts +24 -0
  157. package/dist/sgerp/types/map.d.ts.map +1 -0
  158. package/dist/sgerp/types/map.js +2 -0
  159. package/dist/sgerp/types/masstransit/building.d.ts +24 -0
  160. package/dist/sgerp/types/masstransit/building.d.ts.map +1 -0
  161. package/dist/sgerp/types/masstransit/building.js +2 -0
  162. package/dist/sgerp/types/masstransit/transitstop.d.ts +35 -0
  163. package/dist/sgerp/types/masstransit/transitstop.d.ts.map +1 -0
  164. package/dist/sgerp/types/masstransit/transitstop.js +2 -0
  165. package/dist/sgerp/types/masstransit/transitstopset.d.ts +14 -0
  166. package/dist/sgerp/types/masstransit/transitstopset.d.ts.map +1 -0
  167. package/dist/sgerp/types/masstransit/transitstopset.js +2 -0
  168. package/dist/sgerp/types/sharing/organization-project.d.ts +14 -0
  169. package/dist/sgerp/types/sharing/organization-project.d.ts.map +1 -0
  170. package/dist/sgerp/types/sharing/organization-project.js +2 -0
  171. package/dist/sgerp/types/sharing/organization.d.ts +14 -0
  172. package/dist/sgerp/types/sharing/organization.d.ts.map +1 -0
  173. package/dist/sgerp/types/sharing/organization.js +2 -0
  174. package/dist/sgerp/types/sharing/pricing.d.ts +98 -0
  175. package/dist/sgerp/types/sharing/pricing.d.ts.map +1 -0
  176. package/dist/sgerp/types/sharing/pricing.js +2 -0
  177. package/dist/sgerp/types/sharing/project-member.d.ts +15 -0
  178. package/dist/sgerp/types/sharing/project-member.d.ts.map +1 -0
  179. package/dist/sgerp/types/sharing/project-member.js +2 -0
  180. package/dist/sgerp/types/sharing/project.d.ts +16 -0
  181. package/dist/sgerp/types/sharing/project.d.ts.map +1 -0
  182. package/dist/sgerp/types/sharing/project.js +2 -0
  183. package/dist/sgerp/types/simulation/booking.d.ts +128 -0
  184. package/dist/sgerp/types/simulation/booking.d.ts.map +1 -0
  185. package/dist/sgerp/types/simulation/booking.js +24 -0
  186. package/dist/sgerp/types/simulation/calculation-params.d.ts +20 -0
  187. package/dist/sgerp/types/simulation/calculation-params.d.ts.map +1 -0
  188. package/dist/sgerp/types/simulation/calculation-params.js +2 -0
  189. package/dist/sgerp/types/simulation/dataset.d.ts +16 -0
  190. package/dist/sgerp/types/simulation/dataset.d.ts.map +1 -0
  191. package/dist/sgerp/types/simulation/dataset.js +2 -0
  192. package/dist/sgerp/types/simulation/driver.d.ts +19 -0
  193. package/dist/sgerp/types/simulation/driver.d.ts.map +1 -0
  194. package/dist/sgerp/types/simulation/driver.js +2 -0
  195. package/dist/sgerp/types/simulation/geofence.d.ts +19 -0
  196. package/dist/sgerp/types/simulation/geofence.d.ts.map +1 -0
  197. package/dist/sgerp/types/simulation/geofence.js +2 -0
  198. package/dist/sgerp/types/simulation/logistics-api-settings.d.ts +98 -0
  199. package/dist/sgerp/types/simulation/logistics-api-settings.d.ts.map +1 -0
  200. package/dist/sgerp/types/simulation/logistics-api-settings.js +104 -0
  201. package/dist/sgerp/types/simulation/mapboxtoken.d.ts +13 -0
  202. package/dist/sgerp/types/simulation/mapboxtoken.d.ts.map +1 -0
  203. package/dist/sgerp/types/simulation/mapboxtoken.js +2 -0
  204. package/dist/sgerp/types/simulation/node.js +5 -2
  205. package/dist/sgerp/types/simulation/operationslocation.d.ts +40 -0
  206. package/dist/sgerp/types/simulation/operationslocation.d.ts.map +1 -0
  207. package/dist/sgerp/types/simulation/operationslocation.js +2 -0
  208. package/dist/sgerp/types/simulation/operationslocationgroup.d.ts +11 -0
  209. package/dist/sgerp/types/simulation/operationslocationgroup.d.ts.map +1 -0
  210. package/dist/sgerp/types/simulation/operationslocationgroup.js +2 -0
  211. package/dist/sgerp/types/simulation/pricing.d.ts +171 -0
  212. package/dist/sgerp/types/simulation/pricing.d.ts.map +1 -0
  213. package/dist/sgerp/types/simulation/pricing.js +2 -0
  214. package/dist/sgerp/types/simulation/route-cost-modification.d.ts +35 -0
  215. package/dist/sgerp/types/simulation/route-cost-modification.d.ts.map +1 -0
  216. package/dist/sgerp/types/simulation/route-cost-modification.js +5 -0
  217. package/dist/sgerp/types/simulation/routing-engine-settings.d.ts +42 -0
  218. package/dist/sgerp/types/simulation/routing-engine-settings.d.ts.map +1 -0
  219. package/dist/sgerp/types/simulation/routing-engine-settings.js +35 -0
  220. package/dist/sgerp/types/simulation/routingprofile.d.ts +32 -0
  221. package/dist/sgerp/types/simulation/routingprofile.d.ts.map +1 -0
  222. package/dist/sgerp/types/simulation/routingprofile.js +37 -0
  223. package/dist/sgerp/types/simulation/simulation.d.ts +120 -0
  224. package/dist/sgerp/types/simulation/simulation.d.ts.map +1 -0
  225. package/dist/sgerp/types/simulation/simulation.js +2 -0
  226. package/dist/sgerp/types/simulation/simulationprocessor.d.ts +31 -0
  227. package/dist/sgerp/types/simulation/simulationprocessor.d.ts.map +1 -0
  228. package/dist/sgerp/types/simulation/simulationprocessor.js +2 -0
  229. package/dist/sgerp/types/simulation/vehicle.js +2 -1
  230. package/dist/sgerp/types/simulation/vehicletype.d.ts +33 -0
  231. package/dist/sgerp/types/simulation/vehicletype.d.ts.map +1 -0
  232. package/dist/sgerp/types/simulation/vehicletype.js +2 -0
  233. package/dist/sgerp/types/sms_notify/smsscheduled.d.ts +36 -0
  234. package/dist/sgerp/types/sms_notify/smsscheduled.d.ts.map +1 -0
  235. package/dist/sgerp/types/sms_notify/smsscheduled.js +6 -0
  236. package/dist/sgerp/types/transportation/passenger.d.ts +49 -0
  237. package/dist/sgerp/types/transportation/passenger.d.ts.map +1 -0
  238. package/dist/sgerp/types/transportation/passenger.js +13 -0
  239. package/dist/sgerp/types/transportation/ticket.d.ts +31 -0
  240. package/dist/sgerp/types/transportation/ticket.d.ts.map +1 -0
  241. package/dist/sgerp/types/transportation/ticket.js +2 -0
  242. package/dist/sgerp/types/transportation/transaction.d.ts +71 -0
  243. package/dist/sgerp/types/transportation/transaction.d.ts.map +1 -0
  244. package/dist/sgerp/types/transportation/transaction.js +54 -0
  245. package/dist/sgerp/utils/bookingPayload.d.ts +80 -0
  246. package/dist/sgerp/utils/bookingPayload.d.ts.map +1 -0
  247. package/dist/sgerp/utils/bookingPayload.js +44 -0
  248. package/dist/sgerp/utils/color.d.ts +30 -0
  249. package/dist/sgerp/utils/color.d.ts.map +1 -0
  250. package/dist/sgerp/utils/color.js +117 -0
  251. package/dist/sgerp/utils/enum-helpers.d.ts +41 -0
  252. package/dist/sgerp/utils/enum-helpers.d.ts.map +1 -0
  253. package/dist/sgerp/utils/enum-helpers.js +54 -0
  254. package/dist/sgerp/utils/routeUtils.js +171 -0
  255. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ export declare enum RoutingEngineName {
2
+ Asteria = "asteria",
3
+ OSRM = "osrm",
4
+ OSRME = "osrme",
5
+ Here = "here",
6
+ Google = "google",
7
+ Mapbox = "mapbox",
8
+ TomTom = "tomtom",
9
+ Spheroid = "spheroid",
10
+ Euclidean = "euclidean",
11
+ Valhalla = "valhalla",
12
+ GraphHopper = "graphhopper"
13
+ }
14
+ /**
15
+ * Get display label for routing engine
16
+ */
17
+ export declare function getRoutingEngineLabel(engine: string): string;
18
+ export interface RoutingProfile {
19
+ id: number;
20
+ created_at: string;
21
+ modified_at: string;
22
+ routing_engine_name: RoutingEngineName;
23
+ road_network: string;
24
+ settings: {
25
+ city?: string;
26
+ asteria_map?: string;
27
+ speed_factor?: number;
28
+ speed_profile?: string;
29
+ [key: string]: unknown;
30
+ };
31
+ }
32
+ //# sourceMappingURL=routingprofile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routingprofile.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/routingprofile.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAe5D;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,iBAAiB,CAAC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoutingEngineName = void 0;
4
+ exports.getRoutingEngineLabel = getRoutingEngineLabel;
5
+ var RoutingEngineName;
6
+ (function (RoutingEngineName) {
7
+ RoutingEngineName["Asteria"] = "asteria";
8
+ RoutingEngineName["OSRM"] = "osrm";
9
+ RoutingEngineName["OSRME"] = "osrme";
10
+ RoutingEngineName["Here"] = "here";
11
+ RoutingEngineName["Google"] = "google";
12
+ RoutingEngineName["Mapbox"] = "mapbox";
13
+ RoutingEngineName["TomTom"] = "tomtom";
14
+ RoutingEngineName["Spheroid"] = "spheroid";
15
+ RoutingEngineName["Euclidean"] = "euclidean";
16
+ RoutingEngineName["Valhalla"] = "valhalla";
17
+ RoutingEngineName["GraphHopper"] = "graphhopper";
18
+ })(RoutingEngineName || (exports.RoutingEngineName = RoutingEngineName = {}));
19
+ /**
20
+ * Get display label for routing engine
21
+ */
22
+ function getRoutingEngineLabel(engine) {
23
+ const labels = {
24
+ 'spheroid': 'Spheroid',
25
+ 'osrme': 'OSRM-E (osrm extended)',
26
+ 'osrm': 'OSRM',
27
+ 'asteria': 'Asteria',
28
+ 'here': 'HERE',
29
+ 'google': 'Google',
30
+ 'mapbox': 'Mapbox',
31
+ 'tomtom': 'TomTom',
32
+ 'euclidean': 'Euclidean',
33
+ 'valhalla': 'Valhalla',
34
+ 'graphhopper': 'GraphHopper',
35
+ };
36
+ return labels[engine.toLowerCase()] || engine;
37
+ }
@@ -0,0 +1,120 @@
1
+ import type { LogisticsApiSettings } from './logistics-api-settings';
2
+ export interface Simulation {
3
+ id: number;
4
+ created_at: string;
5
+ modified_at: string;
6
+ completed_at: string | null;
7
+ name: string;
8
+ description: string;
9
+ project_id: number;
10
+ state: string;
11
+ mixed_fleet: boolean;
12
+ geofence_id: string;
13
+ bacchus_id: string;
14
+ start_time: string;
15
+ end_time: string;
16
+ booking_start_time: string | null;
17
+ booking_end_time: string | null;
18
+ dataset_id: number;
19
+ conversion_rate: number;
20
+ fixed_route_schedule_id: number | null;
21
+ journey_duration_source: string;
22
+ number_of_vehicles: number;
23
+ road_network: string;
24
+ vehicle_capacity: number;
25
+ min_advance_booking_window: number;
26
+ max_advance_booking_window: number;
27
+ acceptable_waiting_time: number;
28
+ max_additional_journey_time: number;
29
+ max_additional_journey_time_percent: number;
30
+ odbs_trip_duration: number;
31
+ driver_prep_time: number;
32
+ min_driver_rest_time: number;
33
+ percentage_driver_rest_time: number;
34
+ adjust_driver_breaks_enabled: boolean;
35
+ used_vehicles_count: number | null;
36
+ in_service_mileage: number | null;
37
+ dead_mileage: number | null;
38
+ transfer_rate: number | null;
39
+ bookings_count: number;
40
+ max_walking_distance: number;
41
+ completed_odbs_trips_count: number | null;
42
+ completed_fixed_route_trips_count: number | null;
43
+ no_offer_count: number | null;
44
+ odbs_trips_per_vehicle_per_hour: number | null;
45
+ avg_waiting_time: number | null;
46
+ min_waiting_time: number | null;
47
+ max_waiting_time: number | null;
48
+ avg_planned_actual_journey_time_difference: number | null;
49
+ min_planned_actual_journey_time_difference: number | null;
50
+ max_planned_actual_journey_time_difference: number | null;
51
+ avg_waiting_time_difference: number | null;
52
+ min_waiting_time_difference: number | null;
53
+ max_waiting_time_difference: number | null;
54
+ avg_journey_time_difference: number | null;
55
+ min_journey_time_difference: number | null;
56
+ max_journey_time_difference: number | null;
57
+ absolute_max_trip_duration: number | null;
58
+ total_cost: number | null;
59
+ revenue: number | null;
60
+ utilization_rate: number | null;
61
+ scenario_id: number | null;
62
+ data: {
63
+ vehicle_driving_side?: string;
64
+ messaging_webhook_url?: string;
65
+ vehicle_shift_distance?: number;
66
+ max_number_of_neighbor_stops?: number;
67
+ messaging_webhook_message_types?: string[];
68
+ offer_auto_cancellation_timeout?: number;
69
+ send_vehicle_assignment_only_on_offer_acceptance?: boolean;
70
+ logistics_api_settings?: LogisticsApiSettings;
71
+ [key: string]: unknown;
72
+ };
73
+ result: {
74
+ empty: boolean;
75
+ [key: string]: unknown;
76
+ };
77
+ completed_bookings_count: number;
78
+ deleted: boolean;
79
+ fixed_route_filter_model_id: number | null;
80
+ routing_profile_id: number;
81
+ routing_settings: Record<string, unknown>;
82
+ walking_profile_id: number;
83
+ walking_settings: Record<string, unknown>;
84
+ pickup_transit_stops_id: number | null;
85
+ dropoff_transit_stops_id: number | null;
86
+ allow_jump: boolean;
87
+ simulation_mode: string;
88
+ recurrence: string | null;
89
+ recurrence_priority: number;
90
+ vehicle_ordering_in_one_by_one_stage: string;
91
+ offer_generation_enabled: boolean;
92
+ write_events_log: boolean;
93
+ algo_type: string;
94
+ algo_optimize_quantity: string;
95
+ explicit_stops_id: number | null;
96
+ deployment_label: string | null;
97
+ high_priority_stops_id: number | null;
98
+ analytics_export_completed: boolean;
99
+ is_processor_based: boolean;
100
+ performance_tracker_enabled: boolean;
101
+ enable_offer_messages_generation: boolean;
102
+ enable_waypoints_cache: boolean;
103
+ order_tracking_enabled: boolean;
104
+ pricing_id: number | null;
105
+ template_id: number | null;
106
+ dataset_name: string | null;
107
+ dataset_csv_filename: string | null;
108
+ project_name: string | null;
109
+ geofence_name: string | null;
110
+ template?: {
111
+ id: number;
112
+ name: string;
113
+ };
114
+ project?: {
115
+ id: number;
116
+ name: string;
117
+ timezone?: string;
118
+ };
119
+ }
120
+ //# sourceMappingURL=simulation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp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AAE,OAAO,CAAC;IACpC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,2BAA2B,EAAE,OAAO,CAAC;IACrC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,sBAAsB,EAAE,OAAO,CAAC;IAChC,sBAAsB,EAAE,OAAO,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * SimulationProcessor model for tracking calculation/processing jobs
3
+ */
4
+ export interface SimulationProcessor {
5
+ id: number;
6
+ created_at: string;
7
+ modified_at: string;
8
+ project_id: number | null;
9
+ simulation_id: number;
10
+ processor_type: string;
11
+ processor_lifecycle_type: string;
12
+ user_id: number | null;
13
+ username: string | null;
14
+ fault_tolerant: boolean;
15
+ schedule_after: string | null;
16
+ external_id: string | null;
17
+ vehicle_selection_in_use: boolean;
18
+ vehicle_selection_in_service: boolean;
19
+ vehicle_selection_by_emptiness: boolean;
20
+ gps_timeout: number | null;
21
+ start_time: string | null;
22
+ end_time: string | null;
23
+ state: string;
24
+ calculation_parameters_mtm_jit_id: number | null;
25
+ calculation_parameters_logistics_id: number | null;
26
+ calculation_parameters_regenerator: Record<string, unknown>;
27
+ calculation_parameters_ondemand: Record<string, unknown>;
28
+ bookings_filter_expression: Record<string, unknown>;
29
+ vehicles_filter_expression: Record<string, unknown>;
30
+ }
31
+ //# sourceMappingURL=simulationprocessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulationprocessor.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/simulationprocessor.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,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,EAAE,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,wBAAwB,EAAE,OAAO,CAAC;IAClC,4BAA4B,EAAE,OAAO,CAAC;IACtC,8BAA8B,EAAE,OAAO,CAAC;IACxC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,mCAAmC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnD,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5D,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpD,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ export interface VehicleType {
2
+ id: number;
3
+ created_at: string;
4
+ modified_at: string;
5
+ capacity: Record<string, number>;
6
+ routing_engine_settings: {
7
+ key: string;
8
+ url: string;
9
+ road_network: string;
10
+ };
11
+ characteristics: Record<string, unknown>;
12
+ efficiency: unknown;
13
+ geofence_ids: number[];
14
+ labels: string[];
15
+ vehicle_cost: number;
16
+ lifo_order_check: boolean;
17
+ max_physical_stops: number | null;
18
+ dynamic_break_duration: number | null;
19
+ dynamic_break_min_path_duration: number | null;
20
+ dynamic_break_avg_time_between_breaks: number | null;
21
+ dynamic_break_max_latency: number | null;
22
+ number_of_trips: number | null;
23
+ max_trip_length: number | null;
24
+ max_trip_duration: number | null;
25
+ max_pickup_locations: number | null;
26
+ max_dropoff_locations: number | null;
27
+ zero_cost_if_only_partial_routes: unknown;
28
+ assigned_nodes_protection_interval: number | null;
29
+ assigned_nodes_protection_max_locations: number | null;
30
+ project_id: number;
31
+ name: string;
32
+ }
33
+ //# sourceMappingURL=vehicletype.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicletype.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/simulation/vehicletype.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,uBAAuB,EAAE;QACvB,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrD,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,kCAAkC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD,uCAAuC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * SMSScheduled model from sms_notify app
3
+ * Note: Despite the name, this model supports both SMS and push notifications
4
+ */
5
+ export type MessageDeliveryType = 'push' | 'sms';
6
+ export type RecipientType = 'delivery_client' | 'delivery_group' | 'organization' | 'passenger' | 'passenger_group';
7
+ export type NotificationStatus = 'cancelled' | 'scheduled' | 'sending' | 'sent';
8
+ export type TemplateType = 'delivery_on_the_way' | 'failed_to_board' | 'found_a_ride' | 'offer_acceptance' | 'vehicle_arrival' | 'vehicle_eta_dropoff_1' | 'vehicle_eta_dropoff_2' | 'vehicle_eta_dropoff_3' | 'vehicle_eta_dropoff_4' | 'vehicle_eta_dropoff_5' | 'vehicle_eta_dropoff_6' | 'vehicle_eta_dropoff_7' | 'vehicle_eta_dropoff_8' | 'vehicle_eta_dropoff_9' | 'vehicle_eta_dropoff_10' | 'vehicle_eta_pickup_1' | 'vehicle_eta_pickup_2' | 'vehicle_eta_pickup_3' | 'vehicle_eta_pickup_4' | 'vehicle_eta_pickup_5' | 'vehicle_eta_pickup_6' | 'vehicle_eta_pickup_7' | 'vehicle_eta_pickup_8' | 'vehicle_eta_pickup_9' | 'vehicle_eta_pickup_10';
9
+ export interface SMSScheduled {
10
+ id: number;
11
+ created_at: string;
12
+ modified_at: string;
13
+ project_id: number;
14
+ template_type: TemplateType;
15
+ message_delivery_type: MessageDeliveryType;
16
+ recipient_type: RecipientType;
17
+ recipient: string;
18
+ schedule_id: string;
19
+ scheduled_at: string;
20
+ title: string | null;
21
+ url: string | null;
22
+ content: string;
23
+ status: NotificationStatus;
24
+ sending_error: string | null;
25
+ sending_error_count: number;
26
+ search_index: string;
27
+ created_by_id: number;
28
+ parent_id: number | null;
29
+ creator_email: string;
30
+ creator_username: string;
31
+ organization_code: string;
32
+ organization_name: string;
33
+ organization_id: number;
34
+ timezone: string;
35
+ }
36
+ //# sourceMappingURL=smsscheduled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smsscheduled.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/sms_notify/smsscheduled.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,KAAK,CAAC;AAEjD,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,WAAW,GACX,iBA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C;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * SMSScheduled model from sms_notify app
4
+ * Note: Despite the name, this model supports both SMS and push notifications
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Gender enum for passengers
3
+ */
4
+ export declare enum PassengerGender {
5
+ FEMALE = "female",
6
+ MALE = "male",
7
+ OTHERS = "others",
8
+ PREFER_NOT_TO_SAY = "prefer_not_to_say"
9
+ }
10
+ /**
11
+ * Passenger model
12
+ */
13
+ export interface Passenger {
14
+ id: string;
15
+ project_id: number;
16
+ organization_id: number;
17
+ user_id: number;
18
+ name: string;
19
+ username: string;
20
+ email: string;
21
+ phone: string;
22
+ employee_id: string | null;
23
+ is_active: boolean;
24
+ passenger_type_id: number;
25
+ cost_centre_id: number | null;
26
+ department_id: number | null;
27
+ stripe_customer_id: string | null;
28
+ gender: string | null;
29
+ birth_date: string | null;
30
+ last_login: string | null;
31
+ failed_login_attempts: number;
32
+ blocked_until: string | null;
33
+ options: Record<string, unknown>;
34
+ organization_code: string;
35
+ organization_name: string;
36
+ passenger_type_code: string;
37
+ passenger_type_name: string;
38
+ cost_centre_code: string | null;
39
+ cost_centre_name: string | null;
40
+ department_code: string | null;
41
+ department_name: string | null;
42
+ user_is_active: boolean;
43
+ search_index: string;
44
+ created_by_id: number | null;
45
+ created_by_email: string | null;
46
+ created_at: string;
47
+ modified_at: string;
48
+ }
49
+ //# sourceMappingURL=passenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passenger.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/transportation/passenger.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;I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,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PassengerGender = void 0;
4
+ /**
5
+ * Gender enum for passengers
6
+ */
7
+ var PassengerGender;
8
+ (function (PassengerGender) {
9
+ PassengerGender["FEMALE"] = "female";
10
+ PassengerGender["MALE"] = "male";
11
+ PassengerGender["OTHERS"] = "others";
12
+ PassengerGender["PREFER_NOT_TO_SAY"] = "prefer_not_to_say";
13
+ })(PassengerGender || (exports.PassengerGender = PassengerGender = {}));
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Ticket model from transportation app
3
+ */
4
+ export interface Ticket {
5
+ created_at: string;
6
+ modified_at: string;
7
+ id: string;
8
+ offer_id: number;
9
+ payment_intent_id: string | null;
10
+ booking_id: number;
11
+ vehicle_id: number;
12
+ simulation_id: number;
13
+ pickup_node_id: number;
14
+ dropoff_node_id: number;
15
+ passenger_id: string;
16
+ organization_id: number;
17
+ passenger_project_id: number;
18
+ project_id: number;
19
+ price_details: Record<string, unknown>;
20
+ price_breakdown: Record<string, unknown>;
21
+ total_payable: number;
22
+ total_payable_formatted: string;
23
+ total_payable_formatted_localized: Record<string, string>;
24
+ currency: string;
25
+ payment_method_type: string;
26
+ payment_provider: string | null;
27
+ payment_status: string;
28
+ payment_denial_reason: string | null;
29
+ paid_at: string | null;
30
+ }
31
+ //# sourceMappingURL=ticket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/transportation/ticket.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,uBAAuB,EAAE,MAAM,CAAC;IAChC,iCAAiC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Transaction status enum
3
+ */
4
+ export declare enum TransactionStatus {
5
+ FAILURE = "failure",
6
+ FAILURE_SHOULD_RETRY = "failure_should_retry",
7
+ SUCCESS = "success"
8
+ }
9
+ /**
10
+ * Transaction type enum
11
+ */
12
+ export declare enum TransactionType {
13
+ CANCEL = "cancel",
14
+ CANCELLATION_PENALTY = "cancellation_penalty",
15
+ CHANGE_DEMAND = "change_demand",
16
+ COUPON = "coupon",
17
+ CREDIT_PURCHASE = "credit_purchase",
18
+ MANUAL_CREDIT = "manual_credit",
19
+ PASSENGER_SCHEDULE = "passenger_schedule",
20
+ PAY_OUTSTANDING = "pay_outstanding",
21
+ PAYMENT = "payment",
22
+ PENALTY_PAYMENT = "penalty_payment",
23
+ PICKUP = "pickup",
24
+ REFEREE = "referee",
25
+ REFERRER = "referrer",
26
+ REFUND = "refund",
27
+ SUBSCRIPTION_PASS = "subscription_pass",
28
+ TEST = "test"
29
+ }
30
+ /**
31
+ * Payment provider enum
32
+ */
33
+ export declare enum TransactionProvider {
34
+ INTERNAL = "internal",
35
+ OPAL = "opal",
36
+ STRIPE = "stripe"
37
+ }
38
+ /**
39
+ * Currency enum
40
+ */
41
+ export declare enum TransactionCurrency {
42
+ IDR = "idr",
43
+ JPY = "jpy",
44
+ PHP = "php",
45
+ SGD = "sgd",
46
+ THB = "thb"
47
+ }
48
+ /**
49
+ * Transaction model from transportation app
50
+ */
51
+ export interface Transaction {
52
+ created_at: string;
53
+ modified_at: string;
54
+ id: string;
55
+ transaction_type: string;
56
+ passenger_id: string;
57
+ ticket_id: string;
58
+ booking_id: number;
59
+ amount: number;
60
+ currency: string;
61
+ description: string;
62
+ metadata: Record<string, unknown>;
63
+ refunded: boolean;
64
+ status: string;
65
+ failure_reason: string | null;
66
+ provider: string | null;
67
+ simulation_id: number;
68
+ passenger_project_id: number;
69
+ project_id: number;
70
+ }
71
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../sgerplib/sgerp/types/transportation/transaction.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,oBAAoB,yBAAyB;IAC7C,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,iBAAiB,sBAAsB;IACvC,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionCurrency = exports.TransactionProvider = exports.TransactionType = exports.TransactionStatus = void 0;
4
+ /**
5
+ * Transaction status enum
6
+ */
7
+ var TransactionStatus;
8
+ (function (TransactionStatus) {
9
+ TransactionStatus["FAILURE"] = "failure";
10
+ TransactionStatus["FAILURE_SHOULD_RETRY"] = "failure_should_retry";
11
+ TransactionStatus["SUCCESS"] = "success";
12
+ })(TransactionStatus || (exports.TransactionStatus = TransactionStatus = {}));
13
+ /**
14
+ * Transaction type enum
15
+ */
16
+ var TransactionType;
17
+ (function (TransactionType) {
18
+ TransactionType["CANCEL"] = "cancel";
19
+ TransactionType["CANCELLATION_PENALTY"] = "cancellation_penalty";
20
+ TransactionType["CHANGE_DEMAND"] = "change_demand";
21
+ TransactionType["COUPON"] = "coupon";
22
+ TransactionType["CREDIT_PURCHASE"] = "credit_purchase";
23
+ TransactionType["MANUAL_CREDIT"] = "manual_credit";
24
+ TransactionType["PASSENGER_SCHEDULE"] = "passenger_schedule";
25
+ TransactionType["PAY_OUTSTANDING"] = "pay_outstanding";
26
+ TransactionType["PAYMENT"] = "payment";
27
+ TransactionType["PENALTY_PAYMENT"] = "penalty_payment";
28
+ TransactionType["PICKUP"] = "pickup";
29
+ TransactionType["REFEREE"] = "referee";
30
+ TransactionType["REFERRER"] = "referrer";
31
+ TransactionType["REFUND"] = "refund";
32
+ TransactionType["SUBSCRIPTION_PASS"] = "subscription_pass";
33
+ TransactionType["TEST"] = "test";
34
+ })(TransactionType || (exports.TransactionType = TransactionType = {}));
35
+ /**
36
+ * Payment provider enum
37
+ */
38
+ var TransactionProvider;
39
+ (function (TransactionProvider) {
40
+ TransactionProvider["INTERNAL"] = "internal";
41
+ TransactionProvider["OPAL"] = "opal";
42
+ TransactionProvider["STRIPE"] = "stripe";
43
+ })(TransactionProvider || (exports.TransactionProvider = TransactionProvider = {}));
44
+ /**
45
+ * Currency enum
46
+ */
47
+ var TransactionCurrency;
48
+ (function (TransactionCurrency) {
49
+ TransactionCurrency["IDR"] = "idr";
50
+ TransactionCurrency["JPY"] = "jpy";
51
+ TransactionCurrency["PHP"] = "php";
52
+ TransactionCurrency["SGD"] = "sgd";
53
+ TransactionCurrency["THB"] = "thb";
54
+ })(TransactionCurrency || (exports.TransactionCurrency = TransactionCurrency = {}));