@burdenoff/microfe-theglobalfuel 2026.704.1 → 2026.705.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/dist/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/theglobalfuel/components/DataTable.js +37 -27
- package/dist/theglobalfuel/components/DataTable.js.map +1 -1
- package/dist/theglobalfuel/hooks/index.js +1 -0
- package/dist/theglobalfuel/hooks/useNotify.js +19 -0
- package/dist/theglobalfuel/hooks/useNotify.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheFiles.js +4 -1
- package/dist/theglobalfuel/hooks/useTheFiles.js.map +1 -1
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +59 -31
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +367 -321
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/assets/AssetsPage.js +66 -54
- package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js +346 -182
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +418 -390
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js +238 -230
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +5 -3
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +201 -177
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js +271 -238
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
- package/dist/theglobalfuel/pages/production/ProductionPage.js +185 -177
- package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js +160 -138
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +250 -198
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
- package/dist/theglobalfuel/utils/cn.js +2 -2
- package/dist/theglobalfuel/utils/formatters.js +6 -1
- package/dist/theglobalfuel/utils/formatters.js.map +1 -1
- package/dist/theglobalfuel/utils/transitions.js +70 -0
- package/dist/theglobalfuel/utils/transitions.js.map +1 -0
- package/package.json +1 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +0 -5
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +0 -1
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +0 -4
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +0 -1
- package/dist/theglobalfuel/components/DataTable.d.ts +0 -28
- package/dist/theglobalfuel/components/DataTable.d.ts.map +0 -1
- package/dist/theglobalfuel/components/EmptyState.d.ts +0 -18
- package/dist/theglobalfuel/components/EmptyState.d.ts.map +0 -1
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts +0 -14
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +0 -1
- package/dist/theglobalfuel/components/FileLink.d.ts +0 -15
- package/dist/theglobalfuel/components/FileLink.d.ts.map +0 -1
- package/dist/theglobalfuel/components/FilterTabs.d.ts +0 -18
- package/dist/theglobalfuel/components/FilterTabs.d.ts.map +0 -1
- package/dist/theglobalfuel/components/MetricsCard.d.ts +0 -23
- package/dist/theglobalfuel/components/MetricsCard.d.ts.map +0 -1
- package/dist/theglobalfuel/components/MiniBar.d.ts +0 -16
- package/dist/theglobalfuel/components/MiniBar.d.ts.map +0 -1
- package/dist/theglobalfuel/components/PageLayout.d.ts +0 -16
- package/dist/theglobalfuel/components/PageLayout.d.ts.map +0 -1
- package/dist/theglobalfuel/components/Pagination.d.ts +0 -22
- package/dist/theglobalfuel/components/Pagination.d.ts.map +0 -1
- package/dist/theglobalfuel/components/StateViews.d.ts +0 -24
- package/dist/theglobalfuel/components/StateViews.d.ts.map +0 -1
- package/dist/theglobalfuel/components/StatusBadge.d.ts +0 -9
- package/dist/theglobalfuel/components/StatusBadge.d.ts.map +0 -1
- package/dist/theglobalfuel/components/Tabs.d.ts +0 -17
- package/dist/theglobalfuel/components/Tabs.d.ts.map +0 -1
- package/dist/theglobalfuel/components/TheDiscussion.d.ts +0 -18
- package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +0 -1
- package/dist/theglobalfuel/components/TheTags.d.ts +0 -17
- package/dist/theglobalfuel/components/TheTags.d.ts.map +0 -1
- package/dist/theglobalfuel/components/index.d.ts +0 -19
- package/dist/theglobalfuel/components/index.d.ts.map +0 -1
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +0 -16
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +0 -1
- package/dist/theglobalfuel/context/index.d.ts +0 -6
- package/dist/theglobalfuel/context/index.d.ts.map +0 -1
- package/dist/theglobalfuel/hooks/index.d.ts +0 -10
- package/dist/theglobalfuel/hooks/index.d.ts.map +0 -1
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts +0 -33
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +0 -1
- package/dist/theglobalfuel/hooks/useTheComments.d.ts +0 -36
- package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +0 -1
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts +0 -47
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +0 -1
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +0 -75
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +0 -1
- package/dist/theglobalfuel/hooks/useTheTags.d.ts +0 -44
- package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +0 -1
- package/dist/theglobalfuel/index.d.ts +0 -9
- package/dist/theglobalfuel/index.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +0 -13
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +0 -10
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +0 -11
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +0 -9
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +0 -8
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +0 -13
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +0 -12
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +0 -11
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +0 -11
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +0 -10
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +0 -1
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +0 -10
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +0 -1
- package/dist/theglobalfuel/types/index.d.ts +0 -376
- package/dist/theglobalfuel/types/index.d.ts.map +0 -1
- package/dist/theglobalfuel/utils/cn.d.ts +0 -4
- package/dist/theglobalfuel/utils/cn.d.ts.map +0 -1
- package/dist/theglobalfuel/utils/formatters.d.ts +0 -36
- package/dist/theglobalfuel/utils/formatters.d.ts.map +0 -1
- package/dist/theglobalfuel/utils/i18n.d.ts +0 -6
- package/dist/theglobalfuel/utils/i18n.d.ts.map +0 -1
- package/dist/theglobalfuel/utils/index.d.ts +0 -9
- package/dist/theglobalfuel/utils/index.d.ts.map +0 -1
- package/dist/theglobalfuel/utils/navigation.d.ts +0 -14
- package/dist/theglobalfuel/utils/navigation.d.ts.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Commodity inventory — list, filter, create lots & drive lot status.
|
|
3
|
-
* @module theglobalfuel/pages/inventory
|
|
4
|
-
*
|
|
5
|
-
* Reads `theListInventoryLots`; writes `theCreateInventoryLot` and
|
|
6
|
-
* `theSetInventoryLotStatus`. A KPI strip (lots on hand, available quantity &
|
|
7
|
-
* inventory value) is aggregated client-side from a broad lot query. No mock
|
|
8
|
-
* data — every number is derived from live `the*` responses.
|
|
9
|
-
*/
|
|
10
|
-
export declare function InventoryPage(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=InventoryPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InventoryPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/inventory/InventoryPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkHH,wBAAgB,aAAa,4CAif5B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Production — every production record across all assets.
|
|
3
|
-
* @module theglobalfuel/pages/production
|
|
4
|
-
*
|
|
5
|
-
* Reads `theListProductionRecords` (optionally filtered by asset); writes
|
|
6
|
-
* `theRecordProduction`. Asset names are resolved from `theListAssets`. The KPI
|
|
7
|
-
* strip summarises the volume + downtime captured on the current page. No mock
|
|
8
|
-
* data — every number comes from the real `wspace-theglobalfuel-svc` contract.
|
|
9
|
-
*/
|
|
10
|
-
export declare function ProductionPage(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=ProductionPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductionPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/production/ProductionPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+EH,wBAAgB,cAAc,4CA+Y7B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reserve Estimates — booked recoverable volumes per asset, by category.
|
|
3
|
-
* @module theglobalfuel/pages/reserves
|
|
4
|
-
*
|
|
5
|
-
* Reads `theListReserveEstimates` (a plain array — no pagination); writes
|
|
6
|
-
* `theCreateReserveEstimate`. Asset names are resolved from `theListAssets`
|
|
7
|
-
* since the reserve payload carries only `assetId`. No mock data.
|
|
8
|
-
*/
|
|
9
|
-
export declare function ReservesPage(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=ReservesPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReservesPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/reserves/ReservesPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiFH,wBAAgB,YAAY,4CAiY3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shipments — schedule and track cargo movements against offtake contracts.
|
|
3
|
-
* @module theglobalfuel/pages/shipments
|
|
4
|
-
*
|
|
5
|
-
* Reads `theListShipments` (plain array, filtered by contract + status) and
|
|
6
|
-
* `theListContracts` (to resolve contract references + populate the picker);
|
|
7
|
-
* writes `theScheduleShipment` and `theDeliverShipment`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function ShipmentsPage(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=ShipmentsPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShipmentsPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/shipments/ShipmentsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA4FH,wBAAgB,aAAa,4CAyd5B"}
|
|
@@ -1,376 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE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,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
/** Whether a date is in the past (used for permit/cert expiry flags). */
|
|
35
|
-
export declare function isExpired(date: string | Date | null | undefined): boolean;
|
|
36
|
-
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/formatters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAE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GAAG,MAAM,CAMxE;AAaD,gFAAgF;AAChF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAGlE;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAK3F;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,QAAQ,GAAE,MAAM,GAAG,IAAI,GAAG,SAAiB,GAC1C,MAAM,CAWR;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAG1E;AAED,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAKzE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { I18nContextValue } from '../../../../../fe-libs/src/shared/providers/shell/I18nProvider';
|
|
2
|
-
|
|
3
|
-
type TranslationParams = Record<string, string | number>;
|
|
4
|
-
export declare function tWithFallback(t: I18nContextValue['t'], key: string, fallback: string, params?: TranslationParams): string;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAazD,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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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, isExpired, } from './formatters';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,SAAS,GACV,MAAM,cAAc,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|