@burdenoff/microfe-theglobalfuel 2026.709.1 → 2026.709.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 (231) hide show
  1. package/README.md +3 -0
  2. package/dist/dev/main.d.ts +2 -0
  3. package/dist/dev/main.d.ts.map +1 -0
  4. package/dist/generated/global-operations.d.ts +2 -0
  5. package/dist/generated/global-operations.d.ts.map +1 -0
  6. package/dist/generated/global-types.d.ts +18199 -0
  7. package/dist/generated/global-types.d.ts.map +1 -0
  8. package/dist/generated/wspace-operations.d.ts +2 -0
  9. package/dist/generated/wspace-operations.d.ts.map +1 -0
  10. package/dist/generated/wspace-types.d.ts +43046 -0
  11. package/dist/generated/wspace-types.d.ts.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
  15. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
  16. package/dist/theglobalfuel/TheGlobalFuelRoot.js +106 -104
  17. package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
  18. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
  19. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
  20. package/dist/theglobalfuel/TheGlobalFuelRoutes.js +60 -38
  21. package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
  22. package/dist/theglobalfuel/components/DataTable.d.ts +30 -0
  23. package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
  24. package/dist/theglobalfuel/components/DataTable.js.map +1 -1
  25. package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
  26. package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
  27. package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
  28. package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
  29. package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
  30. package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
  31. package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
  32. package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
  33. package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
  34. package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
  35. package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
  36. package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
  37. package/dist/theglobalfuel/components/PageLayout.d.ts +18 -0
  38. package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
  39. package/dist/theglobalfuel/components/PageLayout.js +2 -1
  40. package/dist/theglobalfuel/components/PageLayout.js.map +1 -1
  41. package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
  42. package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
  43. package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
  44. package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
  45. package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
  46. package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
  47. package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
  48. package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
  49. package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
  50. package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
  51. package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
  52. package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
  53. package/dist/theglobalfuel/components/WorldMap.d.ts +18 -0
  54. package/dist/theglobalfuel/components/WorldMap.d.ts.map +1 -0
  55. package/dist/theglobalfuel/components/WorldMap.js.map +1 -1
  56. package/dist/theglobalfuel/components/index.d.ts +21 -0
  57. package/dist/theglobalfuel/components/index.d.ts.map +1 -0
  58. package/dist/theglobalfuel/components/viz/AllocationBar.d.ts +21 -0
  59. package/dist/theglobalfuel/components/viz/AllocationBar.d.ts.map +1 -0
  60. package/dist/theglobalfuel/components/viz/AreaChart.d.ts +18 -0
  61. package/dist/theglobalfuel/components/viz/AreaChart.d.ts.map +1 -0
  62. package/dist/theglobalfuel/components/viz/AvatarStack.d.ts +13 -0
  63. package/dist/theglobalfuel/components/viz/AvatarStack.d.ts.map +1 -0
  64. package/dist/theglobalfuel/components/viz/BarChart.d.ts +17 -0
  65. package/dist/theglobalfuel/components/viz/BarChart.d.ts.map +1 -0
  66. package/dist/theglobalfuel/components/viz/CertificateCard.d.ts +14 -0
  67. package/dist/theglobalfuel/components/viz/CertificateCard.d.ts.map +1 -0
  68. package/dist/theglobalfuel/components/viz/DonutChart.d.ts +20 -0
  69. package/dist/theglobalfuel/components/viz/DonutChart.d.ts.map +1 -0
  70. package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts +17 -0
  71. package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts.map +1 -0
  72. package/dist/theglobalfuel/components/viz/Heatmap.d.ts +26 -0
  73. package/dist/theglobalfuel/components/viz/Heatmap.d.ts.map +1 -0
  74. package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts +17 -0
  75. package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts.map +1 -0
  76. package/dist/theglobalfuel/components/viz/LineChart.d.ts +20 -0
  77. package/dist/theglobalfuel/components/viz/LineChart.d.ts.map +1 -0
  78. package/dist/theglobalfuel/components/viz/OrgTree.d.ts +14 -0
  79. package/dist/theglobalfuel/components/viz/OrgTree.d.ts.map +1 -0
  80. package/dist/theglobalfuel/components/viz/PathSteps.d.ts +17 -0
  81. package/dist/theglobalfuel/components/viz/PathSteps.d.ts.map +1 -0
  82. package/dist/theglobalfuel/components/viz/ProgressRing.d.ts +20 -0
  83. package/dist/theglobalfuel/components/viz/ProgressRing.d.ts.map +1 -0
  84. package/dist/theglobalfuel/components/viz/RatingStars.d.ts +14 -0
  85. package/dist/theglobalfuel/components/viz/RatingStars.d.ts.map +1 -0
  86. package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts +26 -0
  87. package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts.map +1 -0
  88. package/dist/theglobalfuel/components/viz/SkillBar.d.ts +17 -0
  89. package/dist/theglobalfuel/components/viz/SkillBar.d.ts.map +1 -0
  90. package/dist/theglobalfuel/components/viz/Sparkline.d.ts +16 -0
  91. package/dist/theglobalfuel/components/viz/Sparkline.d.ts.map +1 -0
  92. package/dist/theglobalfuel/components/viz/StatCard.d.ts +22 -0
  93. package/dist/theglobalfuel/components/viz/StatCard.d.ts.map +1 -0
  94. package/dist/theglobalfuel/components/viz/StepProgress.d.ts +17 -0
  95. package/dist/theglobalfuel/components/viz/StepProgress.d.ts.map +1 -0
  96. package/dist/theglobalfuel/components/viz/Timeline.d.ts +21 -0
  97. package/dist/theglobalfuel/components/viz/Timeline.d.ts.map +1 -0
  98. package/dist/theglobalfuel/components/viz/index.d.ts +35 -0
  99. package/dist/theglobalfuel/components/viz/index.d.ts.map +1 -0
  100. package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts +15 -0
  101. package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts.map +1 -0
  102. package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts +44 -0
  103. package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts.map +1 -0
  104. package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts +27 -0
  105. package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
  106. package/dist/theglobalfuel/components/viz/lib/format.d.ts +10 -0
  107. package/dist/theglobalfuel/components/viz/lib/format.d.ts.map +1 -0
  108. package/dist/theglobalfuel/components/viz/lib/geometry.d.ts +41 -0
  109. package/dist/theglobalfuel/components/viz/lib/geometry.d.ts.map +1 -0
  110. package/dist/theglobalfuel/components/viz/lib/hooks.d.ts +18 -0
  111. package/dist/theglobalfuel/components/viz/lib/hooks.d.ts.map +1 -0
  112. package/dist/theglobalfuel/components/viz/lib/palette.d.ts +31 -0
  113. package/dist/theglobalfuel/components/viz/lib/palette.d.ts.map +1 -0
  114. package/dist/theglobalfuel/components/viz/lib/types.d.ts +27 -0
  115. package/dist/theglobalfuel/components/viz/lib/types.d.ts.map +1 -0
  116. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
  117. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
  118. package/dist/theglobalfuel/context/index.d.ts +6 -0
  119. package/dist/theglobalfuel/context/index.d.ts.map +1 -0
  120. package/dist/theglobalfuel/hooks/index.d.ts +15 -0
  121. package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
  122. package/dist/theglobalfuel/hooks/index.js +3 -0
  123. package/dist/theglobalfuel/hooks/useCursorPager.d.ts +26 -0
  124. package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
  125. package/dist/theglobalfuel/hooks/useNotify.d.ts +23 -0
  126. package/dist/theglobalfuel/hooks/useNotify.d.ts.map +1 -0
  127. package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts +38 -0
  128. package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts.map +1 -0
  129. package/dist/theglobalfuel/hooks/useTheAnalytics.js +1 -0
  130. package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -1
  131. package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
  132. package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
  133. package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
  134. package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
  135. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +79 -0
  136. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
  137. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +2 -9
  138. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
  139. package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts +20 -0
  140. package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts.map +1 -0
  141. package/dist/theglobalfuel/hooks/useTheNativeControls.js +22 -0
  142. package/dist/theglobalfuel/hooks/useTheNativeControls.js.map +1 -0
  143. package/dist/theglobalfuel/hooks/useThePageView.d.ts +10 -0
  144. package/dist/theglobalfuel/hooks/useThePageView.d.ts.map +1 -0
  145. package/dist/theglobalfuel/hooks/useThePageView.js +13 -0
  146. package/dist/theglobalfuel/hooks/useThePageView.js.map +1 -0
  147. package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
  148. package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
  149. package/dist/theglobalfuel/hooks/useTheTranslation.d.ts +4 -0
  150. package/dist/theglobalfuel/hooks/useTheTranslation.d.ts.map +1 -0
  151. package/dist/theglobalfuel/hooks/useTheTranslation.js +12 -0
  152. package/dist/theglobalfuel/hooks/useTheTranslation.js.map +1 -0
  153. package/dist/theglobalfuel/index.d.ts +11 -0
  154. package/dist/theglobalfuel/index.d.ts.map +1 -0
  155. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
  156. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
  157. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +452 -415
  158. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
  159. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
  160. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
  161. package/dist/theglobalfuel/pages/assets/AssetsPage.js +138 -135
  162. package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
  163. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
  164. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
  165. package/dist/theglobalfuel/pages/compliance/CompliancePage.js +233 -229
  166. package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
  167. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
  168. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
  169. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +410 -389
  170. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
  171. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
  172. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
  173. package/dist/theglobalfuel/pages/contracts/ContractsPage.js +140 -137
  174. package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
  175. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +17 -0
  176. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
  177. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +83 -83
  178. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
  179. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +13 -0
  180. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
  181. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +154 -150
  182. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
  183. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
  184. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
  185. package/dist/theglobalfuel/pages/inventory/InventoryPage.js +151 -147
  186. package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
  187. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
  188. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
  189. package/dist/theglobalfuel/pages/production/ProductionPage.js +175 -171
  190. package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
  191. package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts +23 -0
  192. package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts.map +1 -0
  193. package/dist/theglobalfuel/pages/provenance/ProvenancePage.js +153 -146
  194. package/dist/theglobalfuel/pages/provenance/ProvenancePage.js.map +1 -1
  195. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
  196. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
  197. package/dist/theglobalfuel/pages/reserves/ReservesPage.js +168 -164
  198. package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
  199. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +11 -0
  200. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
  201. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +179 -175
  202. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
  203. package/dist/theglobalfuel/services/assistantApi.d.ts +25 -0
  204. package/dist/theglobalfuel/services/assistantApi.d.ts.map +1 -0
  205. package/dist/theglobalfuel/services/assistantApi.js.map +1 -1
  206. package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts +38 -0
  207. package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts.map +1 -0
  208. package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -1
  209. package/dist/theglobalfuel/services/index.d.ts +7 -0
  210. package/dist/theglobalfuel/services/index.d.ts.map +1 -0
  211. package/dist/theglobalfuel/types/assistant.d.ts +65 -0
  212. package/dist/theglobalfuel/types/assistant.d.ts.map +1 -0
  213. package/dist/theglobalfuel/types/index.d.ts +376 -0
  214. package/dist/theglobalfuel/types/index.d.ts.map +1 -0
  215. package/dist/theglobalfuel/utils/cn.d.ts +4 -0
  216. package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
  217. package/dist/theglobalfuel/utils/formatters.d.ts +44 -0
  218. package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
  219. package/dist/theglobalfuel/utils/i18n.d.ts +5 -0
  220. package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
  221. package/dist/theglobalfuel/utils/i18n.js +15 -0
  222. package/dist/theglobalfuel/utils/i18n.js.map +1 -0
  223. package/dist/theglobalfuel/utils/index.d.ts +10 -0
  224. package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
  225. package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
  226. package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
  227. package/dist/theglobalfuel/utils/pageContext.d.ts +26 -0
  228. package/dist/theglobalfuel/utils/pageContext.d.ts.map +1 -0
  229. package/dist/theglobalfuel/utils/transitions.d.ts +17 -0
  230. package/dist/theglobalfuel/utils/transitions.d.ts.map +1 -0
  231. package/package.json +1 -1
@@ -0,0 +1,376 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface NavItem {
4
+ id: string;
5
+ label: string;
6
+ path: string;
7
+ icon?: ReactNode;
8
+ badge?: number;
9
+ order?: number;
10
+ group?: string;
11
+ visible?: boolean;
12
+ external?: boolean;
13
+ children?: NavItem[];
14
+ }
15
+ export interface FooterItem {
16
+ id: string;
17
+ label: string;
18
+ icon?: string;
19
+ onClick?: () => void;
20
+ type?: 'status' | 'action' | 'info';
21
+ order?: number;
22
+ badge?: string;
23
+ section?: 'left' | 'center' | 'right';
24
+ visible?: boolean;
25
+ }
26
+ /**
27
+ * Props for the TheGlobalFuelRoot component. Host-contract preserving: the app
28
+ * shell spreads `workspaceBaseProps` (basePath, currentUser, workspaceId,
29
+ * tenantId, apiGatewayUrl, authToken, navigate, registerNavItems,
30
+ * registerFooterItems) onto this component.
31
+ */
32
+ export interface TheGlobalFuelRootProps {
33
+ basePath?: string;
34
+ workspaceId?: string;
35
+ tenantId?: string;
36
+ apiGatewayUrl?: string;
37
+ authToken?: string;
38
+ navigate?: (path: string) => void;
39
+ currentUser?: {
40
+ id: string;
41
+ email: string;
42
+ firstName?: string;
43
+ lastName?: string;
44
+ avatar?: string;
45
+ username?: string;
46
+ name?: string;
47
+ role?: string;
48
+ } | null;
49
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
50
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
51
+ }
52
+ export type TrendDirection = 'up' | 'down' | 'neutral';
53
+ /**
54
+ * The svc `PaginationInput` accepts { limit, offset, cursor }; the connection
55
+ * resolvers page by cursor+limit. We drive pages by cursor: pass
56
+ * `pagination.cursor = previous pageInfo.cursor` for the next page, and OMIT
57
+ * cursor entirely for page 1 (an explicit `cursor: null` can 500 greenfield
58
+ * resolvers).
59
+ */
60
+ export interface PaginationInput {
61
+ limit?: number;
62
+ offset?: number;
63
+ cursor?: string | null;
64
+ }
65
+ /** `ThePageInfo` — the svc cursor page-info shape. */
66
+ export interface ThePageInfo {
67
+ cursor: string | null;
68
+ hasMore: boolean;
69
+ }
70
+ /** A cursor-paginated connection (`The*Connection`). */
71
+ export interface TheConnection<T> {
72
+ items: T[];
73
+ pageInfo: ThePageInfo;
74
+ }
75
+ export type TheCommodityType = 'CRUDE_OIL' | 'NATURAL_GAS' | 'LNG' | 'COAL' | 'ELECTRICITY' | 'HYDROGEN' | 'BIOFUEL' | 'IRON_ORE' | 'COPPER' | 'BAUXITE' | 'GOLD' | 'LITHIUM' | 'RARE_EARTH';
76
+ export type TheUnit = 'BARRELS' | 'CUBIC_METERS' | 'TONNES' | 'KILOGRAMS' | 'MWH' | 'GJ' | 'MCF';
77
+ export type TheAssetKind = 'OIL_FIELD' | 'GAS_FIELD' | 'WELL' | 'MINE' | 'QUARRY' | 'REFINERY' | 'PROCESSING_PLANT' | 'POWER_PLANT' | 'SOLAR_FARM' | 'WIND_FARM' | 'STORAGE_TERMINAL' | 'PIPELINE';
78
+ export type TheAssetStatus = 'EXPLORATION' | 'APPRAISAL' | 'DEVELOPMENT' | 'PRODUCING' | 'SUSPENDED' | 'DECOMMISSIONING' | 'RETIRED';
79
+ export interface TheAsset {
80
+ id: string;
81
+ workspaceId: string;
82
+ name: string;
83
+ code?: string | null;
84
+ kind: TheAssetKind;
85
+ commodity: TheCommodityType;
86
+ status: TheAssetStatus;
87
+ location?: string | null;
88
+ latitude?: number | null;
89
+ longitude?: number | null;
90
+ capacityPerDay: number;
91
+ capacityUnit: TheUnit;
92
+ workingInterestPct: number;
93
+ operatorLeadId?: string | null;
94
+ commissionedAt?: string | null;
95
+ decommissionedAt?: string | null;
96
+ tags: string[];
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ productionRecords?: TheProductionRecord[];
100
+ reserveEstimates?: TheReserveEstimate[];
101
+ }
102
+ export interface TheCreateAssetInput {
103
+ name: string;
104
+ code?: string | null;
105
+ kind?: TheAssetKind;
106
+ commodity: TheCommodityType;
107
+ status?: TheAssetStatus;
108
+ location?: string | null;
109
+ latitude?: number | null;
110
+ longitude?: number | null;
111
+ capacityPerDay?: number | null;
112
+ capacityUnit?: TheUnit;
113
+ workingInterestPct?: number | null;
114
+ operatorLeadId?: string | null;
115
+ commissionedAt?: string | null;
116
+ tags?: string[];
117
+ }
118
+ export interface TheUpdateAssetInput {
119
+ name?: string;
120
+ code?: string | null;
121
+ kind?: TheAssetKind;
122
+ commodity?: TheCommodityType;
123
+ location?: string | null;
124
+ latitude?: number | null;
125
+ longitude?: number | null;
126
+ capacityPerDay?: number | null;
127
+ capacityUnit?: TheUnit;
128
+ workingInterestPct?: number | null;
129
+ operatorLeadId?: string | null;
130
+ commissionedAt?: string | null;
131
+ decommissionedAt?: string | null;
132
+ tags?: string[];
133
+ }
134
+ export interface TheProductionRecord {
135
+ id: string;
136
+ workspaceId: string;
137
+ assetId: string;
138
+ asset?: TheAsset | null;
139
+ periodStart: string;
140
+ periodEnd: string;
141
+ volume: number;
142
+ unit: TheUnit;
143
+ grade?: number | null;
144
+ downtimeHours: number;
145
+ notes?: string | null;
146
+ createdAt: string;
147
+ updatedAt: string;
148
+ }
149
+ export interface TheRecordProductionInput {
150
+ assetId: string;
151
+ periodStart: string;
152
+ periodEnd: string;
153
+ volume: number;
154
+ unit?: TheUnit;
155
+ grade?: number | null;
156
+ downtimeHours?: number | null;
157
+ notes?: string | null;
158
+ }
159
+ export type TheReserveCategory = 'PROVED' | 'PROBABLE' | 'POSSIBLE' | 'CONTINGENT' | 'PROSPECTIVE';
160
+ export interface TheReserveEstimate {
161
+ id: string;
162
+ workspaceId: string;
163
+ assetId: string;
164
+ asset?: TheAsset | null;
165
+ category: TheReserveCategory;
166
+ asOfDate: string;
167
+ recoverable: number;
168
+ recoveryFactor?: number | null;
169
+ unit: TheUnit;
170
+ methodology?: string | null;
171
+ notes?: string | null;
172
+ createdAt: string;
173
+ updatedAt: string;
174
+ }
175
+ export interface TheCreateReserveEstimateInput {
176
+ assetId: string;
177
+ category?: TheReserveCategory;
178
+ asOfDate: string;
179
+ recoverable: number;
180
+ recoveryFactor?: number | null;
181
+ unit?: TheUnit;
182
+ methodology?: string | null;
183
+ notes?: string | null;
184
+ }
185
+ export type TheContractSide = 'BUY' | 'SELL';
186
+ export type TheContractStatus = 'DRAFT' | 'NEGOTIATION' | 'SIGNED' | 'ACTIVE' | 'COMPLETED' | 'SUSPENDED' | 'TERMINATED';
187
+ export type ThePricingBasis = 'FIXED' | 'INDEX_LINKED' | 'FORMULA' | 'SPOT';
188
+ export interface TheOfftakeContract {
189
+ id: string;
190
+ workspaceId: string;
191
+ reference: string;
192
+ counterparty: string;
193
+ commodity: TheCommodityType;
194
+ side: TheContractSide;
195
+ status: TheContractStatus;
196
+ pricingBasis: ThePricingBasis;
197
+ pricePerUnit: number;
198
+ priceIndex?: string | null;
199
+ currency: string;
200
+ contractedVolume: number;
201
+ deliveredVolume: number;
202
+ unit: TheUnit;
203
+ deliveryLocation?: string | null;
204
+ startDate?: string | null;
205
+ endDate?: string | null;
206
+ signedAt?: string | null;
207
+ notes?: string | null;
208
+ tags: string[];
209
+ createdAt: string;
210
+ updatedAt: string;
211
+ shipments?: TheShipment[];
212
+ }
213
+ export interface TheCreateOfftakeContractInput {
214
+ reference: string;
215
+ counterparty: string;
216
+ commodity: TheCommodityType;
217
+ side?: TheContractSide;
218
+ pricingBasis?: ThePricingBasis;
219
+ pricePerUnit?: number | null;
220
+ priceIndex?: string | null;
221
+ currency?: string;
222
+ contractedVolume?: number | null;
223
+ unit?: TheUnit;
224
+ deliveryLocation?: string | null;
225
+ startDate?: string | null;
226
+ endDate?: string | null;
227
+ notes?: string | null;
228
+ tags?: string[];
229
+ }
230
+ export interface TheUpdateOfftakeContractInput {
231
+ counterparty?: string;
232
+ pricePerUnit?: number | null;
233
+ priceIndex?: string | null;
234
+ pricingBasis?: ThePricingBasis;
235
+ currency?: string;
236
+ contractedVolume?: number | null;
237
+ unit?: TheUnit;
238
+ deliveryLocation?: string | null;
239
+ startDate?: string | null;
240
+ endDate?: string | null;
241
+ notes?: string | null;
242
+ tags?: string[];
243
+ }
244
+ export type TheShipmentStatus = 'SCHEDULED' | 'LOADING' | 'IN_TRANSIT' | 'DELIVERED' | 'CANCELLED';
245
+ export type TheTransportMode = 'PIPELINE' | 'TANKER' | 'VESSEL_BULK' | 'RAIL' | 'TRUCK' | 'GRID';
246
+ export interface TheShipment {
247
+ id: string;
248
+ workspaceId: string;
249
+ contractId: string;
250
+ contract?: TheOfftakeContract | null;
251
+ reference: string;
252
+ mode: TheTransportMode;
253
+ status: TheShipmentStatus;
254
+ carrier?: string | null;
255
+ origin?: string | null;
256
+ destination?: string | null;
257
+ volume: number;
258
+ unit: TheUnit;
259
+ scheduledAt?: string | null;
260
+ departedAt?: string | null;
261
+ deliveredAt?: string | null;
262
+ document?: {
263
+ id: string;
264
+ } | null;
265
+ notes?: string | null;
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ }
269
+ export interface TheCreateShipmentInput {
270
+ contractId: string;
271
+ reference: string;
272
+ mode?: TheTransportMode;
273
+ carrier?: string | null;
274
+ origin?: string | null;
275
+ destination?: string | null;
276
+ volume: number;
277
+ unit?: TheUnit;
278
+ scheduledAt?: string | null;
279
+ documentFileId?: string | null;
280
+ notes?: string | null;
281
+ }
282
+ export type TheInventoryStatus = 'AVAILABLE' | 'RESERVED' | 'IN_TRANSIT' | 'CONSUMED' | 'WRITTEN_OFF';
283
+ export interface TheInventoryLot {
284
+ id: string;
285
+ workspaceId: string;
286
+ lotCode: string;
287
+ commodity: TheCommodityType;
288
+ assetId?: string | null;
289
+ quantity: number;
290
+ unit: TheUnit;
291
+ grade?: number | null;
292
+ status: TheInventoryStatus;
293
+ location?: string | null;
294
+ unitValue: number;
295
+ currency: string;
296
+ producedAt?: string | null;
297
+ notes?: string | null;
298
+ createdAt: string;
299
+ updatedAt: string;
300
+ }
301
+ export interface TheCreateInventoryLotInput {
302
+ lotCode: string;
303
+ commodity: TheCommodityType;
304
+ assetId?: string | null;
305
+ quantity: number;
306
+ unit?: TheUnit;
307
+ grade?: number | null;
308
+ location?: string | null;
309
+ unitValue?: number | null;
310
+ currency?: string;
311
+ producedAt?: string | null;
312
+ notes?: string | null;
313
+ }
314
+ export type TheEmissionScope = 'SCOPE_1' | 'SCOPE_2' | 'SCOPE_3';
315
+ export interface TheEmissionRecord {
316
+ id: string;
317
+ workspaceId: string;
318
+ assetId?: string | null;
319
+ scope: TheEmissionScope;
320
+ co2eTonnes: number;
321
+ periodStart: string;
322
+ periodEnd: string;
323
+ source?: string | null;
324
+ methodology?: string | null;
325
+ verified: boolean;
326
+ verifiedAt?: string | null;
327
+ notes?: string | null;
328
+ createdAt: string;
329
+ updatedAt: string;
330
+ }
331
+ export interface TheRecordEmissionInput {
332
+ assetId?: string | null;
333
+ scope?: TheEmissionScope;
334
+ co2eTonnes: number;
335
+ periodStart: string;
336
+ periodEnd: string;
337
+ source?: string | null;
338
+ methodology?: string | null;
339
+ notes?: string | null;
340
+ }
341
+ export type TheComplianceCategory = 'EXTRACTION_LICENSE' | 'ENVIRONMENTAL_PERMIT' | 'EXPORT_LICENSE' | 'SAFETY_AUDIT' | 'EMISSIONS_REPORT' | 'CARBON_CREDIT' | 'CHAIN_OF_CUSTODY';
342
+ export type TheComplianceStatus = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED' | 'EXPIRED' | 'REVOKED';
343
+ export interface TheComplianceCert {
344
+ id: string;
345
+ workspaceId: string;
346
+ title: string;
347
+ category: TheComplianceCategory;
348
+ status: TheComplianceStatus;
349
+ assetId?: string | null;
350
+ authority?: string | null;
351
+ certNumber?: string | null;
352
+ ownerId?: string | null;
353
+ issuedAt?: string | null;
354
+ expiresAt?: string | null;
355
+ evidence?: {
356
+ id: string;
357
+ } | null;
358
+ notes?: string | null;
359
+ tags: string[];
360
+ createdAt: string;
361
+ updatedAt: string;
362
+ }
363
+ export interface TheCreateComplianceCertInput {
364
+ title: string;
365
+ category?: TheComplianceCategory;
366
+ assetId?: string | null;
367
+ authority?: string | null;
368
+ certNumber?: string | null;
369
+ ownerId?: string | null;
370
+ issuedAt?: string | null;
371
+ expiresAt?: string | null;
372
+ evidenceFileId?: string | null;
373
+ notes?: string | null;
374
+ tags?: string[];
375
+ }
376
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MA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4 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ export declare function cn(...inputs: ClassValue[]): string;
4
+ //# sourceMappingURL=cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Formatting utilities for the TheGlobalFuel microfrontend
3
+ * @module theglobalfuel/utils/formatters
4
+ */
5
+ /** Format a date string or Date into a human-readable date. */
6
+ export declare function formatDate(date: string | Date | null | undefined, options?: Partial<Intl.DateTimeFormatOptions>): string;
7
+ /** Format a date-time into a date + time string. */
8
+ export declare function formatDateTime(date: string | Date | null | undefined, options?: Partial<Intl.DateTimeFormatOptions>): string;
9
+ /** Format a date into a relative time string (e.g. "2 hours ago", "in 3 days"). */
10
+ export declare function formatRelativeTime(date: string | Date | null | undefined): string;
11
+ /** Format a number with locale grouping. */
12
+ export declare function formatNumber(value: number | null | undefined, options?: Partial<Intl.NumberFormatOptions>): string;
13
+ /** Format a quantity with an optional unit suffix (e.g. "1,200 kg"). */
14
+ export declare function formatQuantity(value: number | null | undefined, unit?: string | null): string;
15
+ /** Format a percentage (0–100) into a rounded "%" string. */
16
+ export declare function formatPercent(value: number | null | undefined, fractionDigits?: number): string;
17
+ /**
18
+ * Format a mass of CO2e (kg) into a compact, human-scaled string:
19
+ * < 1,000 kg → "kg CO₂e"; ≥ 1,000 kg → "t CO₂e" (tonnes).
20
+ */
21
+ export declare function formatCo2e(kg: number | null | undefined): string;
22
+ /** Format coordinates into a compact "lat, lng" string. */
23
+ export declare function formatCoords(lat: number | null | undefined, lng: number | null | undefined): string;
24
+ /** Turn an ENUM_LIKE_TOKEN into a human "Enum Like Token" label. */
25
+ export declare function formatEnumLabel(value: string | null | undefined): string;
26
+ /** Short unit symbol for a `TheUnit` token; falls back to a humanized label. */
27
+ export declare function formatUnit(unit: string | null | undefined): string;
28
+ /** Format a volume/quantity with its unit symbol (e.g. "1,200 bbl"). */
29
+ export declare function formatVolume(value: number | null | undefined, unit?: string | null): string;
30
+ /** Format a monetary amount with an ISO currency code (e.g. "$1,250.00"). */
31
+ export declare function formatMoney(value: number | null | undefined, currency?: string | null | undefined): string;
32
+ /** Format a mass already expressed in tonnes CO₂e (e.g. "1,250 t CO₂e"). */
33
+ export declare function formatTonnesCo2e(tonnes: number | null | undefined): string;
34
+ /**
35
+ * Serialize a date-only `<input type="date">` value (YYYY-MM-DD) to an ISO
36
+ * timestamp anchored at NOON UTC. Anchoring at noon (not midnight) means the
37
+ * calendar day is preserved in every timezone — `new Date('2026-06-30')` is UTC
38
+ * midnight and renders as June 29 in any negative-offset zone. Returns undefined
39
+ * for empty/invalid input so the field is omitted from the mutation.
40
+ */
41
+ export declare function toBackendDate(value: string | null | undefined): string | undefined;
42
+ /** Whether a date is in the past (used for permit/cert expiry flags). */
43
+ export declare function isExpired(date: string | Date | null | undefined): boolean;
44
+ //# sourceMappingURL=formatters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/formatters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,+DAA+D;AAC/D,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC5C,MAAM,CAUR;AAED,oDAAoD;AACpD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAC5C,MAAM,CAYR;AAED,mFAAmF;AACn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AAM,GAAG,IAAI,GAAG,SAAiB,GAC1C,MAAM,CAWR;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAG1E;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAKlF;AAED,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAKzE"}
@@ -0,0 +1,5 @@
1
+ import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
2
+
3
+ export type TranslationParams = Record<string, string | number>;
4
+ export declare function tWithFallback(t: I18nContextValue['t'], key: string, fallback: string, params?: TranslationParams): string;
5
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAahE,wBAAgB,aAAa,CAC3B,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAOR"}
@@ -0,0 +1,15 @@
1
+ //#region src/theglobalfuel/utils/i18n.ts
2
+ function e(e, t) {
3
+ return t ? e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
4
+ let r = t[n];
5
+ return r === void 0 ? `{{${n}}}` : String(r);
6
+ }) : e;
7
+ }
8
+ function t(t, n, r, i) {
9
+ let a = t(n, i);
10
+ return a === n ? e(r, i) : a;
11
+ }
12
+ //#endregion
13
+ export { t as tWithFallback };
14
+
15
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","names":[],"sources":["../../../src/theglobalfuel/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nexport type TranslationParams = Record<string, string | number>;\n\nfunction interpolateFallback(fallback: string, params?: TranslationParams): string {\n if (!params) {\n return fallback;\n }\n\n return fallback.replace(/\\{\\{\\s*(\\w+)\\s*\\}\\}/g, (_, key: string) => {\n const value = params[key];\n return value === undefined ? `{{${key}}}` : String(value);\n });\n}\n\nexport function tWithFallback(\n t: I18nContextValue['t'],\n key: string,\n fallback: string,\n params?: TranslationParams\n): string {\n const translated = t(key, params);\n if (translated === key) {\n return interpolateFallback(fallback, params);\n }\n\n return translated;\n}\n"],"mappings":";AAIA,SAAS,EAAoB,GAAkB,GAAoC;AAKjF,QAJK,IAIE,EAAS,QAAQ,yBAAyB,GAAG,MAAgB;EAClE,IAAM,IAAQ,EAAO;AACrB,SAAO,MAAU,KAAA,IAAY,KAAK,EAAI,MAAM,OAAO,EAAM;GACzD,GANO;;AASX,SAAgB,EACd,GACA,GACA,GACA,GACQ;CACR,IAAM,IAAa,EAAE,GAAK,EAAO;AAKjC,QAJI,MAAe,IACV,EAAoB,GAAU,EAAO,GAGvC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Utils index
3
+ * @module theglobalfuel/utils
4
+ */
5
+ export { cn } from './cn';
6
+ export { joinPath } from './navigation';
7
+ export { tWithFallback } from './i18n';
8
+ export { formatDate, formatDateTime, formatRelativeTime, formatNumber, formatQuantity, formatPercent, formatCo2e, formatCoords, formatEnumLabel, formatUnit, formatVolume, formatMoney, formatTonnesCo2e, toBackendDate, isExpired, } from './formatters';
9
+ export { ASSET_TRANSITIONS, CONTRACT_TRANSITIONS, COMPLIANCE_TRANSITIONS, INVENTORY_TRANSITIONS, SHIPMENT_TRANSITIONS, SHIPMENT_DELIVERABLE_FROM, nextStatuses, } from './transitions';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EACL,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,eAAe,EACf,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,SAAS,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,GACb,MAAM,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Navigation utilities for the TheGlobalFuel microfrontend
3
+ * @module theglobalfuel/utils
4
+ */
5
+ /**
6
+ * Join basePath with a relative path, correctly handling slashes.
7
+ *
8
+ * @example
9
+ * joinPath('/theglobalfuel', 'sites') // => '/theglobalfuel/sites'
10
+ * joinPath('/theglobalfuel/', 'sites') // => '/theglobalfuel/sites'
11
+ * joinPath('/theglobalfuel', '') // => '/theglobalfuel'
12
+ */
13
+ export declare function joinPath(basePath: string, relativePath: string): string;
14
+ //# sourceMappingURL=navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAOvE"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Page context gathering — captures the user's current browser context
3
+ * to be sent alongside every assistant prompt for better AI awareness.
4
+ * @module theglobalfuel/utils
5
+ */
6
+ interface ConversationContextShape {
7
+ entityType?: string;
8
+ entityId?: string;
9
+ activeTab?: string;
10
+ metadata?: Record<string, unknown>;
11
+ }
12
+ export interface PageContext {
13
+ currentUrl: string;
14
+ currentPage: string;
15
+ entityType?: string;
16
+ entityId?: string;
17
+ platform: string;
18
+ version: string;
19
+ viewportSize: string;
20
+ userAgent: string;
21
+ timestamp: string;
22
+ }
23
+ export declare function gatherPageContext(): PageContext;
24
+ export declare function resolveTheGlobalFuelConversationContext(pathname: string, search: string): ConversationContextShape;
25
+ export {};
26
+ //# sourceMappingURL=pageContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/pageContext.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,UAAU,wBAAwB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAG1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAoB/C;AAMD,wBAAgB,uCAAuC,CACrD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,wBAAwB,CAiE1B"}
@@ -0,0 +1,17 @@
1
+ import { TheAssetStatus, TheContractStatus, TheComplianceStatus, TheInventoryStatus, TheShipmentStatus } from '../types';
2
+
3
+ export declare const ASSET_TRANSITIONS: Record<TheAssetStatus, readonly TheAssetStatus[]>;
4
+ export declare const CONTRACT_TRANSITIONS: Record<TheContractStatus, readonly TheContractStatus[]>;
5
+ export declare const COMPLIANCE_TRANSITIONS: Record<TheComplianceStatus, readonly TheComplianceStatus[]>;
6
+ export declare const INVENTORY_TRANSITIONS: Record<TheInventoryStatus, readonly TheInventoryStatus[]>;
7
+ /**
8
+ * Shipment transitions reachable via `theTransitionShipment`. Note DELIVERED is
9
+ * NOT offered here — it is reached through the "Mark delivered" action
10
+ * (`theDeliverShipment`), which additionally rolls volume into the contract.
11
+ */
12
+ export declare const SHIPMENT_TRANSITIONS: Record<TheShipmentStatus, readonly TheShipmentStatus[]>;
13
+ /** Statuses a shipment can be marked DELIVERED from (via theDeliverShipment). */
14
+ export declare const SHIPMENT_DELIVERABLE_FROM: readonly TheShipmentStatus[];
15
+ /** Legal next states for `current`, or [] if terminal/unknown. */
16
+ export declare function nextStatuses<T extends string>(map: Record<string, readonly T[]>, current: string): readonly T[];
17
+ //# sourceMappingURL=transitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/transitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,cAAc,EAAE,SAAS,cAAc,EAAE,CAQ/E,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,SAAS,iBAAiB,EAAE,CAQxF,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,mBAAmB,EAAE,SAAS,mBAAmB,EAAE,CAO9F,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,kBAAkB,EAAE,SAAS,kBAAkB,EAAE,CAM3F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,SAAS,iBAAiB,EAAE,CAMxF,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,yBAAyB,EAAE,SAAS,iBAAiB,EAIjE,CAAC;AAEF,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAC3C,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,EACjC,OAAO,EAAE,MAAM,GACd,SAAS,CAAC,EAAE,CAEd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-theglobalfuel",
3
- "version": "2026.709.1",
3
+ "version": "2026.709.2",
4
4
  "description": "Burdenoff TheGlobalFuel Microfrontend — Energy, Mineral & Commodity Resource operating system",
5
5
  "type": "module",
6
6
  "files": [