@burdenoff/cli-sdk 2026.627.4 → 2026.627.5
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/modules/mybodyshield/index.cjs +281 -0
- package/dist/modules/mybodyshield/index.d.cts +7 -0
- package/dist/modules/mybodyshield/index.d.ts +7 -0
- package/dist/modules/mybodyshield/index.js +281 -0
- package/dist/modules/semanticfed/index.cjs +287 -0
- package/dist/modules/semanticfed/index.d.cts +7 -0
- package/dist/modules/semanticfed/index.d.ts +7 -0
- package/dist/modules/semanticfed/index.js +287 -0
- package/dist/modules/technospam/index.cjs +325 -0
- package/dist/modules/technospam/index.d.cts +7 -0
- package/dist/modules/technospam/index.d.ts +7 -0
- package/dist/modules/technospam/index.js +325 -0
- package/dist/modules/theculturepost/index.cjs +228 -0
- package/dist/modules/theculturepost/index.d.cts +7 -0
- package/dist/modules/theculturepost/index.d.ts +7 -0
- package/dist/modules/theculturepost/index.js +228 -0
- package/dist/modules/theglobalfuel/index.cjs +251 -0
- package/dist/modules/theglobalfuel/index.d.cts +7 -0
- package/dist/modules/theglobalfuel/index.d.ts +7 -0
- package/dist/modules/theglobalfuel/index.js +251 -0
- package/package.json +1 -1
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import {a as a$1,b as b$1,h,p as p$1,g,i,o as o$1,d}from'../../chunk-WXDQ3S5J.js';import {o}from'../../chunk-TCBALVP4.js';var A=`
|
|
2
|
+
query TheGetAsset($id: ID!) {
|
|
3
|
+
theAsset(id: $id) {
|
|
4
|
+
id name code kind commodity status location latitude longitude
|
|
5
|
+
capacityPerDay capacityUnit workingInterestPct operatorLeadId tags
|
|
6
|
+
commissionedAt decommissionedAt createdAt updatedAt workspaceId
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`,S=`
|
|
10
|
+
query TheListAssets(
|
|
11
|
+
$commodity: TheCommodityType
|
|
12
|
+
$kind: TheAssetKind
|
|
13
|
+
$status: TheAssetStatus
|
|
14
|
+
$pagination: PaginationInput
|
|
15
|
+
) {
|
|
16
|
+
theListAssets(
|
|
17
|
+
commodity: $commodity
|
|
18
|
+
kind: $kind
|
|
19
|
+
status: $status
|
|
20
|
+
pagination: $pagination
|
|
21
|
+
) {
|
|
22
|
+
items {
|
|
23
|
+
id name code kind commodity status location capacityPerDay
|
|
24
|
+
capacityUnit workingInterestPct createdAt
|
|
25
|
+
}
|
|
26
|
+
pageInfo { cursor hasMore }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`,R=`
|
|
30
|
+
mutation TheCreateAsset($input: TheCreateAssetInput!) {
|
|
31
|
+
theCreateAsset(input: $input) {
|
|
32
|
+
id name code kind commodity status location latitude longitude
|
|
33
|
+
capacityPerDay capacityUnit workingInterestPct operatorLeadId tags
|
|
34
|
+
commissionedAt createdAt workspaceId
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`,O=`
|
|
38
|
+
mutation TheUpdateAsset($id: ID!, $input: TheUpdateAssetInput!) {
|
|
39
|
+
theUpdateAsset(id: $id, input: $input) {
|
|
40
|
+
id name code kind commodity status location latitude longitude
|
|
41
|
+
capacityPerDay capacityUnit workingInterestPct operatorLeadId tags
|
|
42
|
+
commissionedAt decommissionedAt updatedAt
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`,L=`
|
|
46
|
+
mutation TheTransitionAsset($id: ID!, $status: TheAssetStatus!) {
|
|
47
|
+
theTransitionAsset(id: $id, status: $status) {
|
|
48
|
+
id name status updatedAt
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`,D=`
|
|
52
|
+
mutation TheRetireAsset($id: ID!) {
|
|
53
|
+
theRetireAsset(id: $id)
|
|
54
|
+
}
|
|
55
|
+
`,v=`
|
|
56
|
+
query TheGetContract($id: ID!) {
|
|
57
|
+
theContract(id: $id) {
|
|
58
|
+
id reference counterparty commodity side status pricingBasis
|
|
59
|
+
pricePerUnit priceIndex currency unit contractedVolume deliveredVolume
|
|
60
|
+
deliveryLocation startDate endDate signedAt notes tags
|
|
61
|
+
createdAt updatedAt workspaceId
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`,P=`
|
|
65
|
+
query TheListContracts(
|
|
66
|
+
$commodity: TheCommodityType
|
|
67
|
+
$side: TheContractSide
|
|
68
|
+
$status: TheContractStatus
|
|
69
|
+
$pagination: PaginationInput
|
|
70
|
+
) {
|
|
71
|
+
theListContracts(
|
|
72
|
+
commodity: $commodity
|
|
73
|
+
side: $side
|
|
74
|
+
status: $status
|
|
75
|
+
pagination: $pagination
|
|
76
|
+
) {
|
|
77
|
+
items {
|
|
78
|
+
id reference counterparty commodity side status pricingBasis
|
|
79
|
+
pricePerUnit currency unit contractedVolume deliveredVolume createdAt
|
|
80
|
+
}
|
|
81
|
+
pageInfo { cursor hasMore }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`,w=`
|
|
85
|
+
mutation TheCreateContract($input: TheCreateOfftakeContractInput!) {
|
|
86
|
+
theCreateContract(input: $input) {
|
|
87
|
+
id reference counterparty commodity side status pricingBasis
|
|
88
|
+
pricePerUnit priceIndex currency unit contractedVolume deliveredVolume
|
|
89
|
+
deliveryLocation startDate endDate notes tags createdAt
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`,N=`
|
|
93
|
+
mutation TheUpdateContract($id: ID!, $input: TheUpdateOfftakeContractInput!) {
|
|
94
|
+
theUpdateContract(id: $id, input: $input) {
|
|
95
|
+
id reference counterparty commodity side status pricingBasis
|
|
96
|
+
pricePerUnit priceIndex currency unit contractedVolume deliveredVolume
|
|
97
|
+
deliveryLocation startDate endDate notes tags updatedAt
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`,$=`
|
|
101
|
+
mutation TheTransitionContract($id: ID!, $status: TheContractStatus!) {
|
|
102
|
+
theTransitionContract(id: $id, status: $status) {
|
|
103
|
+
id reference status signedAt updatedAt
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
`,b=`
|
|
107
|
+
query TheListShipments($contractId: ID, $status: TheShipmentStatus) {
|
|
108
|
+
theListShipments(contractId: $contractId, status: $status) {
|
|
109
|
+
id reference contractId status mode carrier origin destination
|
|
110
|
+
volume unit scheduledAt departedAt deliveredAt notes
|
|
111
|
+
createdAt updatedAt workspaceId
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`,U=`
|
|
115
|
+
mutation TheScheduleShipment($input: TheCreateShipmentInput!) {
|
|
116
|
+
theScheduleShipment(input: $input) {
|
|
117
|
+
id reference contractId status mode carrier origin destination
|
|
118
|
+
volume unit scheduledAt notes createdAt workspaceId
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`,_=`
|
|
122
|
+
mutation TheDeliverShipment($id: ID!) {
|
|
123
|
+
theDeliverShipment(id: $id) {
|
|
124
|
+
id reference contractId status mode volume unit deliveredAt updatedAt
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
`,k=`
|
|
128
|
+
query TheListInventoryLots(
|
|
129
|
+
$commodity: TheCommodityType
|
|
130
|
+
$status: TheInventoryStatus
|
|
131
|
+
$pagination: PaginationInput
|
|
132
|
+
) {
|
|
133
|
+
theListInventoryLots(
|
|
134
|
+
commodity: $commodity
|
|
135
|
+
status: $status
|
|
136
|
+
pagination: $pagination
|
|
137
|
+
) {
|
|
138
|
+
items {
|
|
139
|
+
id lotCode commodity status quantity unit unitValue currency
|
|
140
|
+
grade location assetId producedAt createdAt
|
|
141
|
+
}
|
|
142
|
+
pageInfo { cursor hasMore }
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`,x=`
|
|
146
|
+
mutation TheCreateInventoryLot($input: TheCreateInventoryLotInput!) {
|
|
147
|
+
theCreateInventoryLot(input: $input) {
|
|
148
|
+
id lotCode commodity status quantity unit unitValue currency
|
|
149
|
+
grade location assetId producedAt notes createdAt workspaceId
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`,V=`
|
|
153
|
+
mutation TheSetInventoryLotStatus($id: ID!, $status: TheInventoryStatus!) {
|
|
154
|
+
theSetInventoryLotStatus(id: $id, status: $status) {
|
|
155
|
+
id lotCode commodity status quantity unit updatedAt
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
`,M=`
|
|
159
|
+
query TheListProductionRecords($assetId: ID, $pagination: PaginationInput) {
|
|
160
|
+
theListProductionRecords(assetId: $assetId, pagination: $pagination) {
|
|
161
|
+
items {
|
|
162
|
+
id assetId volume unit grade downtimeHours periodStart periodEnd
|
|
163
|
+
notes createdAt
|
|
164
|
+
}
|
|
165
|
+
pageInfo { cursor hasMore }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
`,F=`
|
|
169
|
+
mutation TheRecordProduction($input: TheRecordProductionInput!) {
|
|
170
|
+
theRecordProduction(input: $input) {
|
|
171
|
+
id assetId volume unit grade downtimeHours periodStart periodEnd
|
|
172
|
+
notes createdAt workspaceId
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`,q=`
|
|
176
|
+
query TheListEmissionRecords(
|
|
177
|
+
$assetId: ID
|
|
178
|
+
$scope: TheEmissionScope
|
|
179
|
+
$pagination: PaginationInput
|
|
180
|
+
) {
|
|
181
|
+
theListEmissionRecords(assetId: $assetId, scope: $scope, pagination: $pagination) {
|
|
182
|
+
items {
|
|
183
|
+
id assetId scope co2eTonnes source methodology periodStart periodEnd
|
|
184
|
+
verified verifiedAt createdAt
|
|
185
|
+
}
|
|
186
|
+
pageInfo { cursor hasMore }
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`,B=`
|
|
190
|
+
mutation TheRecordEmission($input: TheRecordEmissionInput!) {
|
|
191
|
+
theRecordEmission(input: $input) {
|
|
192
|
+
id assetId scope co2eTonnes source methodology periodStart periodEnd
|
|
193
|
+
verified notes createdAt workspaceId
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
`,H=`
|
|
197
|
+
mutation TheVerifyEmission($id: ID!) {
|
|
198
|
+
theVerifyEmission(id: $id) {
|
|
199
|
+
id assetId scope co2eTonnes verified verifiedAt updatedAt
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
`,G=`
|
|
203
|
+
query TheListReserveEstimates($assetId: ID, $category: TheReserveCategory) {
|
|
204
|
+
theListReserveEstimates(assetId: $assetId, category: $category) {
|
|
205
|
+
id assetId category recoverable recoveryFactor unit asOfDate
|
|
206
|
+
methodology notes createdAt updatedAt workspaceId
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
`,W=`
|
|
210
|
+
mutation TheCreateReserveEstimate($input: TheCreateReserveEstimateInput!) {
|
|
211
|
+
theCreateReserveEstimate(input: $input) {
|
|
212
|
+
id assetId category recoverable recoveryFactor unit asOfDate
|
|
213
|
+
methodology notes createdAt workspaceId
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
`,Y=`
|
|
217
|
+
query TheGetComplianceCert($id: ID!) {
|
|
218
|
+
theComplianceCert(id: $id) {
|
|
219
|
+
id title category status authority certNumber assetId ownerId
|
|
220
|
+
issuedAt expiresAt notes tags createdAt updatedAt workspaceId
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`,X=`
|
|
224
|
+
query TheListComplianceCerts(
|
|
225
|
+
$assetId: ID
|
|
226
|
+
$category: TheComplianceCategory
|
|
227
|
+
$status: TheComplianceStatus
|
|
228
|
+
) {
|
|
229
|
+
theListComplianceCerts(assetId: $assetId, category: $category, status: $status) {
|
|
230
|
+
id title category status authority certNumber assetId ownerId
|
|
231
|
+
issuedAt expiresAt createdAt
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
`,K=`
|
|
235
|
+
mutation TheCreateComplianceCert($input: TheCreateComplianceCertInput!) {
|
|
236
|
+
theCreateComplianceCert(input: $input) {
|
|
237
|
+
id title category status authority certNumber assetId ownerId
|
|
238
|
+
issuedAt expiresAt notes tags createdAt workspaceId
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
`,z=`
|
|
242
|
+
mutation TheTransitionComplianceCert($id: ID!, $status: TheComplianceStatus!) {
|
|
243
|
+
theTransitionComplianceCert(id: $id, status: $status) {
|
|
244
|
+
id title status updatedAt
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
`,J=`
|
|
248
|
+
query TheHealth {
|
|
249
|
+
theHealth
|
|
250
|
+
}
|
|
251
|
+
`;function p(c){let o$1=Number.parseInt(c,10);if(Number.isNaN(o$1))throw new o(`Expected an integer but got "${c}"`);return o$1}function a(c){let o$1=Number.parseFloat(c);if(Number.isNaN(o$1))throw new o(`Expected a number but got "${c}"`);return o$1}function l(c,o){let t={};return c!==void 0&&(t.limit=c),o!==void 0&&(t.offset=o),t}function j(c){let o$1=c.command("assets").description("Theglobalfuel upstream assets");o$1.command("list").description("List assets").option("--commodity <c>","Filter by commodity type").option("--kind <k>","Filter by asset kind").option("--status <s>","Filter by asset status").option("--limit <n>","Page size",p,50).option("--offset <n>","Offset",p,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(S,{commodity:t.commodity?t.commodity.toUpperCase():void 0,kind:t.kind?t.kind.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,pagination:l(t.limit,t.offset)});h(t,e.theListAssets.items,{headers:["ID","Name","Kind","Commodity","Status","Capacity/Day"],rows:e.theListAssets.items.map(i=>[p$1(i.id,12),i.name,i.kind,i.commodity,i.status,`${i.capacityPerDay??0} ${i.capacityUnit??""}`.trim()])});}catch(e){g(e);}}),o$1.command("get").description("Get an asset by id").argument("<id>","Asset ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i=await b$1(A,{id:t});if(!i.theAsset)throw new o(`Asset ${t} not found`);h(e,i.theAsset);}catch(i){g(i);}}),o$1.command("create").description("Create an asset").requiredOption("--name <name>","Asset name").requiredOption("--commodity <c>","Commodity type (e.g. CRUDE_OIL, NATURAL_GAS, LITHIUM)").option("--kind <k>","Asset kind (default WELL)").option("--code <code>","Asset code").option("--status <s>","Asset status (default EXPLORATION)").option("--location <s>","Location description").option("--latitude <n>","Latitude",a).option("--longitude <n>","Longitude",a).option("--capacity-per-day <n>","Capacity per day",a).option("--capacity-unit <u>","Capacity unit (default BARRELS)").option("--working-interest-pct <n>","Working interest %",a).option("--operator-lead <id>","Operator lead user ID").option("--commissioned-at <iso>","Commissioned date (ISO)").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={name:t.name,commodity:t.commodity.toUpperCase()};t.kind&&(e.kind=t.kind.toUpperCase()),t.code&&(e.code=t.code),t.status&&(e.status=t.status.toUpperCase()),t.location&&(e.location=t.location),t.latitude!==void 0&&(e.latitude=t.latitude),t.longitude!==void 0&&(e.longitude=t.longitude),t.capacityPerDay!==void 0&&(e.capacityPerDay=t.capacityPerDay),t.capacityUnit&&(e.capacityUnit=t.capacityUnit.toUpperCase()),t.workingInterestPct!==void 0&&(e.workingInterestPct=t.workingInterestPct),t.operatorLead&&(e.operatorLeadId=t.operatorLead),t.commissionedAt&&(e.commissionedAt=t.commissionedAt),t.tags&&(e.tags=t.tags.split(",").map(y=>y.trim()));let i$1=await b$1(R,{input:e});i(`Asset created: ${i$1.theCreateAsset.name}`),h(t,i$1.theCreateAsset);}catch(e){g(e);}}),o$1.command("update").description("Update an asset").argument("<id>","Asset ID").option("--name <name>","Asset name").option("--commodity <c>","Commodity type").option("--kind <k>","Asset kind").option("--code <code>","Asset code").option("--location <s>","Location description").option("--latitude <n>","Latitude",a).option("--longitude <n>","Longitude",a).option("--capacity-per-day <n>","Capacity per day",a).option("--capacity-unit <u>","Capacity unit").option("--working-interest-pct <n>","Working interest %",a).option("--operator-lead <id>","Operator lead user ID").option("--commissioned-at <iso>","Commissioned date (ISO)").option("--decommissioned-at <iso>","Decommissioned date (ISO)").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1={};if(e.name&&(i$1.name=e.name),e.commodity&&(i$1.commodity=e.commodity.toUpperCase()),e.kind&&(i$1.kind=e.kind.toUpperCase()),e.code&&(i$1.code=e.code),e.location!==void 0&&(i$1.location=e.location),e.latitude!==void 0&&(i$1.latitude=e.latitude),e.longitude!==void 0&&(i$1.longitude=e.longitude),e.capacityPerDay!==void 0&&(i$1.capacityPerDay=e.capacityPerDay),e.capacityUnit&&(i$1.capacityUnit=e.capacityUnit.toUpperCase()),e.workingInterestPct!==void 0&&(i$1.workingInterestPct=e.workingInterestPct),e.operatorLead&&(i$1.operatorLeadId=e.operatorLead),e.commissionedAt&&(i$1.commissionedAt=e.commissionedAt),e.decommissionedAt&&(i$1.decommissionedAt=e.decommissionedAt),e.tags&&(i$1.tags=e.tags.split(",").map(h=>h.trim())),!Object.keys(i$1).length)throw new o("No updates specified");let y=await b$1(O,{id:t,input:i$1});i("Asset updated"),h(e,y.theUpdateAsset);}catch(i){g(i);}}),o$1.command("transition").description("Advance an asset through its lifecycle").argument("<id>","Asset ID").requiredOption("--status <s>","EXPLORATION|APPRAISAL|DEVELOPMENT|PRODUCING|SUSPENDED|DECOMMISSIONING|RETIRED").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1(L,{id:t,status:e.status.toUpperCase()});i(`Asset transitioned to ${i$1.theTransitionAsset.status}`),h(e,i$1.theTransitionAsset);}catch(i){g(i);}}),o$1.command("retire").description("Retire (delete) an asset").argument("<id>","Asset ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1(D,{id:t});i(i$1.theRetireAsset?`Asset ${t} retired`:`Asset ${t} not retired`),h(e,{retired:i$1.theRetireAsset});}catch(i){g(i);}});}function Q(c){let o$1=c.command("contracts").description("Theglobalfuel offtake contracts");o$1.command("list").description("List offtake contracts").option("--commodity <c>","Filter by commodity type").option("--side <s>","BUY|SELL").option("--status <s>","Filter by contract status").option("--limit <n>","Page size",p,50).option("--offset <n>","Offset",p,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(P,{commodity:t.commodity?t.commodity.toUpperCase():void 0,side:t.side?t.side.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,pagination:l(t.limit,t.offset)});h(t,e.theListContracts.items,{headers:["ID","Reference","Counterparty","Commodity","Side","Status","Volume"],rows:e.theListContracts.items.map(i=>[p$1(i.id,12),i.reference,i.counterparty,i.commodity,i.side,i.status,`${i.deliveredVolume??0}/${i.contractedVolume??0}`])});}catch(e){g(e);}}),o$1.command("get").description("Get an offtake contract by id").argument("<id>","Contract ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i=await b$1(v,{id:t});if(!i.theContract)throw new o(`Contract ${t} not found`);h(e,i.theContract);}catch(i){g(i);}}),o$1.command("create").description("Create an offtake contract").requiredOption("--reference <r>","Contract reference").requiredOption("--counterparty <c>","Counterparty name").requiredOption("--commodity <c>","Commodity type").option("--side <s>","BUY|SELL (default SELL)").option("--pricing-basis <p>","FIXED|FORMULA|INDEX_LINKED|SPOT (default FIXED)").option("--price-per-unit <n>","Price per unit",a).option("--price-index <s>","Price index reference").option("--currency <s>","Currency code").option("--unit <u>","Unit (default BARRELS)").option("--contracted-volume <n>","Contracted volume",a).option("--delivery-location <s>","Delivery location").option("--start-date <iso>","Start date (ISO)").option("--end-date <iso>","End date (ISO)").option("--notes <s>","Notes").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={reference:t.reference,counterparty:t.counterparty,commodity:t.commodity.toUpperCase()};t.side&&(e.side=t.side.toUpperCase()),t.pricingBasis&&(e.pricingBasis=t.pricingBasis.toUpperCase()),t.pricePerUnit!==void 0&&(e.pricePerUnit=t.pricePerUnit),t.priceIndex&&(e.priceIndex=t.priceIndex),t.currency&&(e.currency=t.currency),t.unit&&(e.unit=t.unit.toUpperCase()),t.contractedVolume!==void 0&&(e.contractedVolume=t.contractedVolume),t.deliveryLocation&&(e.deliveryLocation=t.deliveryLocation),t.startDate&&(e.startDate=t.startDate),t.endDate&&(e.endDate=t.endDate),t.notes&&(e.notes=t.notes),t.tags&&(e.tags=t.tags.split(",").map(y=>y.trim()));let i$1=await b$1(w,{input:e});i(`Contract created: ${i$1.theCreateContract.reference}`),h(t,i$1.theCreateContract);}catch(e){g(e);}}),o$1.command("update").description("Update an offtake contract").argument("<id>","Contract ID").option("--counterparty <c>","Counterparty name").option("--pricing-basis <p>","FIXED|FORMULA|INDEX_LINKED|SPOT").option("--price-per-unit <n>","Price per unit",a).option("--price-index <s>","Price index reference").option("--currency <s>","Currency code").option("--unit <u>","Unit").option("--contracted-volume <n>","Contracted volume",a).option("--delivery-location <s>","Delivery location").option("--start-date <iso>","Start date (ISO)").option("--end-date <iso>","End date (ISO)").option("--notes <s>","Notes").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1={};if(e.counterparty&&(i$1.counterparty=e.counterparty),e.pricingBasis&&(i$1.pricingBasis=e.pricingBasis.toUpperCase()),e.pricePerUnit!==void 0&&(i$1.pricePerUnit=e.pricePerUnit),e.priceIndex&&(i$1.priceIndex=e.priceIndex),e.currency&&(i$1.currency=e.currency),e.unit&&(i$1.unit=e.unit.toUpperCase()),e.contractedVolume!==void 0&&(i$1.contractedVolume=e.contractedVolume),e.deliveryLocation!==void 0&&(i$1.deliveryLocation=e.deliveryLocation),e.startDate&&(i$1.startDate=e.startDate),e.endDate&&(i$1.endDate=e.endDate),e.notes!==void 0&&(i$1.notes=e.notes),e.tags&&(i$1.tags=e.tags.split(",").map(h=>h.trim())),!Object.keys(i$1).length)throw new o("No updates specified");let y=await b$1(N,{id:t,input:i$1});i("Contract updated"),h(e,y.theUpdateContract);}catch(i){g(i);}}),o$1.command("transition").description("Advance an offtake contract through its lifecycle").argument("<id>","Contract ID").requiredOption("--status <s>","DRAFT|NEGOTIATION|SIGNED|ACTIVE|SUSPENDED|COMPLETED|TERMINATED").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1($,{id:t,status:e.status.toUpperCase()});i(`Contract transitioned to ${i$1.theTransitionContract.status}`),h(e,i$1.theTransitionContract);}catch(i){g(i);}});}function Z(c){let o=c.command("shipments").description("Theglobalfuel shipments");o.command("list").description("List shipments").option("--contract <id>","Filter by contract ID").option("--status <s>","SCHEDULED|LOADING|IN_TRANSIT|DELIVERED|CANCELLED").option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(b,{contractId:t.contract,status:t.status?t.status.toUpperCase():void 0});h(t,e.theListShipments,{headers:["ID","Reference","Contract","Status","Mode","Volume"],rows:e.theListShipments.map(i=>[p$1(i.id,12),i.reference,p$1(i.contractId,12),i.status,i.mode,`${i.volume} ${i.unit}`])});}catch(e){g(e);}}),o.command("schedule").description("Schedule a shipment against a contract").requiredOption("--contract <id>","Contract ID").requiredOption("--reference <r>","Shipment reference").requiredOption("--volume <n>","Volume",a).option("--mode <m>","PIPELINE|TANKER|RAIL|TRUCK|VESSEL_BULK|GRID (default PIPELINE)").option("--unit <u>","Unit (default BARRELS)").option("--carrier <s>","Carrier").option("--origin <s>","Origin").option("--destination <s>","Destination").option("--scheduled-at <iso>","Scheduled date (ISO)").option("--document-file <id>","Document file ID (bill of lading / certificate)").option("--notes <s>","Notes").option("-f, --format <format>","Output format").action(async t=>{try{let e={contractId:t.contract,reference:t.reference,volume:t.volume};t.mode&&(e.mode=t.mode.toUpperCase()),t.unit&&(e.unit=t.unit.toUpperCase()),t.carrier&&(e.carrier=t.carrier),t.origin&&(e.origin=t.origin),t.destination&&(e.destination=t.destination),t.scheduledAt&&(e.scheduledAt=t.scheduledAt),t.documentFile&&(e.documentFileId=t.documentFile),t.notes&&(e.notes=t.notes);let i$1=await b$1(U,{input:e});i(`Shipment scheduled: ${i$1.theScheduleShipment.reference}`),h(t,i$1.theScheduleShipment);}catch(e){g(e);}}),o.command("deliver").description("Mark a shipment delivered (rolls volume into the contract's delivered total)").argument("<id>","Shipment ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1(_,{id:t});i(`Shipment delivered: ${i$1.theDeliverShipment.reference}`),h(e,i$1.theDeliverShipment);}catch(i){g(i);}});}function tt(c){let o=c.command("inventory").description("Theglobalfuel inventory lots");o.command("list").description("List inventory lots").option("--commodity <c>","Filter by commodity type").option("--status <s>","AVAILABLE|RESERVED|IN_TRANSIT|CONSUMED|WRITTEN_OFF").option("--limit <n>","Page size",p,50).option("--offset <n>","Offset",p,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(k,{commodity:t.commodity?t.commodity.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0,pagination:l(t.limit,t.offset)});h(t,e.theListInventoryLots.items,{headers:["ID","Lot Code","Commodity","Status","Quantity","Unit Value"],rows:e.theListInventoryLots.items.map(i=>[p$1(i.id,12),i.lotCode,i.commodity,i.status,`${i.quantity} ${i.unit}`,String(i.unitValue??0)])});}catch(e){g(e);}}),o.command("create").description("Create an inventory lot").requiredOption("--lot-code <c>","Lot code").requiredOption("--commodity <c>","Commodity type").requiredOption("--quantity <n>","Quantity",a).option("--unit <u>","Unit (default BARRELS)").option("--unit-value <n>","Unit value",a).option("--currency <s>","Currency code").option("--grade <n>","Grade",a).option("--location <s>","Storage location").option("--asset <id>","Source asset ID").option("--produced-at <iso>","Produced date (ISO)").option("--notes <s>","Notes").option("-f, --format <format>","Output format").action(async t=>{try{let e={lotCode:t.lotCode,commodity:t.commodity.toUpperCase(),quantity:t.quantity};t.unit&&(e.unit=t.unit.toUpperCase()),t.unitValue!==void 0&&(e.unitValue=t.unitValue),t.currency&&(e.currency=t.currency),t.grade!==void 0&&(e.grade=t.grade),t.location&&(e.location=t.location),t.asset&&(e.assetId=t.asset),t.producedAt&&(e.producedAt=t.producedAt),t.notes&&(e.notes=t.notes);let i$1=await b$1(x,{input:e});i(`Inventory lot created: ${i$1.theCreateInventoryLot.lotCode}`),h(t,i$1.theCreateInventoryLot);}catch(e){g(e);}}),o.command("set-status").description("Set an inventory lot status").argument("<id>","Inventory lot ID").requiredOption("--status <s>","AVAILABLE|RESERVED|IN_TRANSIT|CONSUMED|WRITTEN_OFF").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1(V,{id:t,status:e.status.toUpperCase()});i(`Inventory lot status set to ${i$1.theSetInventoryLotStatus.status}`),h(e,i$1.theSetInventoryLotStatus);}catch(i){g(i);}});}function et(c){let o=c.command("production").description("Theglobalfuel production records");o.command("list").description("List production records").option("--asset <id>","Filter by asset ID").option("--limit <n>","Page size",p,50).option("--offset <n>","Offset",p,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(M,{assetId:t.asset,pagination:l(t.limit,t.offset)});h(t,e.theListProductionRecords.items,{headers:["ID","Asset","Volume","Downtime (h)","Period Start","Period End"],rows:e.theListProductionRecords.items.map(i=>[p$1(i.id,12),p$1(i.assetId,12),`${i.volume} ${i.unit}`,String(i.downtimeHours??0),o$1(i.periodStart),o$1(i.periodEnd)])});}catch(e){g(e);}}),o.command("record").description("Record a production figure for an asset").requiredOption("--asset <id>","Asset ID").requiredOption("--volume <n>","Produced volume",a).requiredOption("--period-start <iso>","Period start (ISO)").requiredOption("--period-end <iso>","Period end (ISO)").option("--unit <u>","Unit (default BARRELS)").option("--grade <n>","Grade",a).option("--downtime-hours <n>","Downtime hours",a).option("--notes <s>","Notes").option("-f, --format <format>","Output format").action(async t=>{try{let e={assetId:t.asset,volume:t.volume,periodStart:t.periodStart,periodEnd:t.periodEnd};t.unit&&(e.unit=t.unit.toUpperCase()),t.grade!==void 0&&(e.grade=t.grade),t.downtimeHours!==void 0&&(e.downtimeHours=t.downtimeHours),t.notes&&(e.notes=t.notes);let i$1=await b$1(F,{input:e});i(`Production recorded: ${i$1.theRecordProduction.volume} ${t.unit??""}`.trim()),h(t,i$1.theRecordProduction);}catch(e){g(e);}});}function it(c){let o=c.command("emissions").description("Theglobalfuel emission records");o.command("list").description("List emission records").option("--asset <id>","Filter by asset ID").option("--scope <s>","SCOPE_1|SCOPE_2|SCOPE_3").option("--limit <n>","Page size",p,50).option("--offset <n>","Offset",p,0).option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(q,{assetId:t.asset,scope:t.scope?t.scope.toUpperCase():void 0,pagination:l(t.limit,t.offset)});h(t,e.theListEmissionRecords.items,{headers:["ID","Asset","Scope","CO2e (t)","Source","Verified"],rows:e.theListEmissionRecords.items.map(i=>[p$1(i.id,12),p$1(i.assetId??"-",12),i.scope,String(i.co2eTonnes),i.source??"-",i.verified?"yes":"no"])});}catch(e){g(e);}}),o.command("record").description("Record an emission figure").requiredOption("--co2e-tonnes <n>","CO2e tonnes",a).requiredOption("--period-start <iso>","Period start (ISO)").requiredOption("--period-end <iso>","Period end (ISO)").option("--asset <id>","Asset ID").option("--scope <s>","SCOPE_1|SCOPE_2|SCOPE_3 (default SCOPE_1)").option("--source <s>","Emission source").option("--methodology <s>","Methodology").option("--notes <s>","Notes").option("-f, --format <format>","Output format").action(async t=>{try{let e={co2eTonnes:t.co2eTonnes,periodStart:t.periodStart,periodEnd:t.periodEnd};t.asset&&(e.assetId=t.asset),t.scope&&(e.scope=t.scope.toUpperCase()),t.source&&(e.source=t.source),t.methodology&&(e.methodology=t.methodology),t.notes&&(e.notes=t.notes);let i$1=await b$1(B,{input:e});i(`Emission recorded: ${i$1.theRecordEmission.co2eTonnes} tCO2e`),h(t,i$1.theRecordEmission);}catch(e){g(e);}}),o.command("verify").description("Mark an emission figure third-party verified").argument("<id>","Emission record ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1(H,{id:t});i("Emission verified"),h(e,i$1.theVerifyEmission);}catch(i){g(i);}});}function ot(c){let o=c.command("reserves").description("Theglobalfuel reserve estimates");o.command("list").description("List reserve estimates").option("--asset <id>","Filter by asset ID").option("--category <c>","PROVED|PROBABLE|POSSIBLE|CONTINGENT|PROSPECTIVE").option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(G,{assetId:t.asset,category:t.category?t.category.toUpperCase():void 0});h(t,e.theListReserveEstimates,{headers:["ID","Asset","Category","Recoverable","Factor","As Of"],rows:e.theListReserveEstimates.map(i=>[p$1(i.id,12),p$1(i.assetId,12),i.category,`${i.recoverable} ${i.unit}`,i.recoveryFactor!=null?String(i.recoveryFactor):"-",o$1(i.asOfDate)])});}catch(e){g(e);}}),o.command("create").description("Create a reserve estimate for an asset").requiredOption("--asset <id>","Asset ID").requiredOption("--recoverable <n>","Recoverable quantity",a).requiredOption("--as-of-date <iso>","As-of date (ISO)").option("--category <c>","PROVED|PROBABLE|POSSIBLE|CONTINGENT|PROSPECTIVE (default PROVED)").option("--recovery-factor <n>","Recovery factor",a).option("--unit <u>","Unit (default BARRELS)").option("--methodology <s>","Methodology").option("--notes <s>","Notes").option("-f, --format <format>","Output format").action(async t=>{try{let e={assetId:t.asset,recoverable:t.recoverable,asOfDate:t.asOfDate};t.category&&(e.category=t.category.toUpperCase()),t.recoveryFactor!==void 0&&(e.recoveryFactor=t.recoveryFactor),t.unit&&(e.unit=t.unit.toUpperCase()),t.methodology&&(e.methodology=t.methodology),t.notes&&(e.notes=t.notes);let i$1=await b$1(W,{input:e});i(`Reserve estimate created (${i$1.theCreateReserveEstimate.category})`),h(t,i$1.theCreateReserveEstimate);}catch(e){g(e);}});}function nt(c){let o$2=c.command("compliance").description("Theglobalfuel compliance certifications");o$2.command("list").description("List compliance certifications").option("--asset <id>","Filter by asset ID").option("--category <c>","EXTRACTION_LICENSE|ENVIRONMENTAL_PERMIT|EXPORT_LICENSE|SAFETY_AUDIT|EMISSIONS_REPORT|CARBON_CREDIT|CHAIN_OF_CUSTODY").option("--status <s>","PENDING|SUBMITTED|APPROVED|REJECTED|EXPIRED|REVOKED").option("-f, --format <format>","Output format").action(async t=>{try{let e=await b$1(X,{assetId:t.asset,category:t.category?t.category.toUpperCase():void 0,status:t.status?t.status.toUpperCase():void 0});h(t,e.theListComplianceCerts,{headers:["ID","Title","Category","Status","Authority","Expires"],rows:e.theListComplianceCerts.map(i=>[p$1(i.id,12),i.title,i.category,i.status,i.authority??"-",o$1(i.expiresAt)])});}catch(e){g(e);}}),o$2.command("get").description("Get a compliance certification by id").argument("<id>","Compliance cert ID").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i=await b$1(Y,{id:t});if(!i.theComplianceCert)throw new o(`Compliance cert ${t} not found`);h(e,i.theComplianceCert);}catch(i){g(i);}}),o$2.command("create").description("Create a compliance certification").requiredOption("--title <t>","Title").option("--category <c>","EXTRACTION_LICENSE|ENVIRONMENTAL_PERMIT|EXPORT_LICENSE|SAFETY_AUDIT|EMISSIONS_REPORT|CARBON_CREDIT|CHAIN_OF_CUSTODY (default ENVIRONMENTAL_PERMIT)").option("--asset <id>","Related asset ID").option("--authority <s>","Issuing authority").option("--cert-number <s>","Certificate number").option("--owner <id>","Owner user ID").option("--evidence-file <id>","Evidence file ID (certificate document)").option("--issued-at <iso>","Issued date (ISO)").option("--expires-at <iso>","Expiry date (ISO)").option("--notes <s>","Notes").option("--tags <csv>","Comma-separated tags").option("-f, --format <format>","Output format").action(async t=>{try{let e={title:t.title};t.category&&(e.category=t.category.toUpperCase()),t.asset&&(e.assetId=t.asset),t.authority&&(e.authority=t.authority),t.certNumber&&(e.certNumber=t.certNumber),t.owner&&(e.ownerId=t.owner),t.evidenceFile&&(e.evidenceFileId=t.evidenceFile),t.issuedAt&&(e.issuedAt=t.issuedAt),t.expiresAt&&(e.expiresAt=t.expiresAt),t.notes&&(e.notes=t.notes),t.tags&&(e.tags=t.tags.split(",").map(y=>y.trim()));let i$1=await b$1(K,{input:e});i(`Compliance cert created: ${i$1.theCreateComplianceCert.title}`),h(t,i$1.theCreateComplianceCert);}catch(e){g(e);}}),o$2.command("transition").description("Advance a compliance certification through its lifecycle").argument("<id>","Compliance cert ID").requiredOption("--status <s>","PENDING|SUBMITTED|APPROVED|REJECTED|EXPIRED|REVOKED").option("-f, --format <format>","Output format").action(async(t,e)=>{try{let i$1=await b$1(z,{id:t,status:e.status.toUpperCase()});i(`Compliance cert transitioned to ${i$1.theTransitionComplianceCert.status}`),h(e,i$1.theTransitionComplianceCert);}catch(i){g(i);}});}function rt(c){c.command("health").description("Theglobalfuel service health check (public)").option("-f, --format <format>","Output format").action(async o=>{try{let t=await d(J);i(t.theHealth),h(o,{health:t.theHealth});}catch(t){g(t);}});}var st={id:"theglobalfuel",version:"1.0.0",displayName:"Theglobalfuel",dependsOn:["auth","workspaces"],register(c,o){a$1(o);let t=c.command("theglobalfuel").description("Theglobalfuel energy & commodities operations ledger");j(t),Q(t),Z(t),tt(t),et(t),it(t),ot(t),nt(t),rt(t);}},zt=st;export{zt as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/cli-sdk",
|
|
3
|
-
"version": "2026.627.
|
|
3
|
+
"version": "2026.627.5",
|
|
4
4
|
"description": "Modular CLI SDK shared across all Burdenoff product CLIs (vibecontrols, botlit, fluidgrids, bigconsole, healthybowl, devportal, workspaces). Each module exports CliModule contract; product CLIs become thin shells that pick which modules to mount.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|