@empressaio/atom-contract 1.7.0
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/CHANGELOG.md +360 -0
- package/README.md +379 -0
- package/dist/composition.d.ts +112 -0
- package/dist/composition.d.ts.map +1 -0
- package/dist/composition.js +80 -0
- package/dist/composition.js.map +1 -0
- package/dist/conformance/common.d.ts +21 -0
- package/dist/conformance/common.d.ts.map +1 -0
- package/dist/conformance/common.js +29 -0
- package/dist/conformance/common.js.map +1 -0
- package/dist/conformance/fixtures.d.ts +13 -0
- package/dist/conformance/fixtures.d.ts.map +1 -0
- package/dist/conformance/fixtures.js +63 -0
- package/dist/conformance/fixtures.js.map +1 -0
- package/dist/conformance/index.d.ts +11 -0
- package/dist/conformance/index.d.ts.map +1 -0
- package/dist/conformance/index.js +11 -0
- package/dist/conformance/index.js.map +1 -0
- package/dist/conformance/validate.d.ts +49 -0
- package/dist/conformance/validate.d.ts.map +1 -0
- package/dist/conformance/validate.js +138 -0
- package/dist/conformance/validate.js.map +1 -0
- package/dist/conformance/verify-chain.d.ts +25 -0
- package/dist/conformance/verify-chain.d.ts.map +1 -0
- package/dist/conformance/verify-chain.js +76 -0
- package/dist/conformance/verify-chain.js.map +1 -0
- package/dist/context.d.ts +134 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +110 -0
- package/dist/context.js.map +1 -0
- package/dist/encumbrances/administrative-rule.d.ts +128 -0
- package/dist/encumbrances/administrative-rule.d.ts.map +1 -0
- package/dist/encumbrances/administrative-rule.js +18 -0
- package/dist/encumbrances/administrative-rule.js.map +1 -0
- package/dist/encumbrances/common.d.ts +153 -0
- package/dist/encumbrances/common.d.ts.map +1 -0
- package/dist/encumbrances/common.js +124 -0
- package/dist/encumbrances/common.js.map +1 -0
- package/dist/encumbrances/constraint-resolution.d.ts +169 -0
- package/dist/encumbrances/constraint-resolution.d.ts.map +1 -0
- package/dist/encumbrances/constraint-resolution.js +41 -0
- package/dist/encumbrances/constraint-resolution.js.map +1 -0
- package/dist/encumbrances/fixtures.d.ts +16 -0
- package/dist/encumbrances/fixtures.d.ts.map +1 -0
- package/dist/encumbrances/fixtures.js +107 -0
- package/dist/encumbrances/fixtures.js.map +1 -0
- package/dist/encumbrances/index.d.ts +15 -0
- package/dist/encumbrances/index.d.ts.map +1 -0
- package/dist/encumbrances/index.js +15 -0
- package/dist/encumbrances/index.js.map +1 -0
- package/dist/encumbrances/recorded-instrument.d.ts +131 -0
- package/dist/encumbrances/recorded-instrument.d.ts.map +1 -0
- package/dist/encumbrances/recorded-instrument.js +19 -0
- package/dist/encumbrances/recorded-instrument.js.map +1 -0
- package/dist/encumbrances/restriction-clause.d.ts +120 -0
- package/dist/encumbrances/restriction-clause.d.ts.map +1 -0
- package/dist/encumbrances/restriction-clause.js +17 -0
- package/dist/encumbrances/restriction-clause.js.map +1 -0
- package/dist/encumbrances/restriction-corpus.d.ts +44 -0
- package/dist/encumbrances/restriction-corpus.d.ts.map +1 -0
- package/dist/encumbrances/restriction-corpus.js +14 -0
- package/dist/encumbrances/restriction-corpus.js.map +1 -0
- package/dist/export/downloadable-atom.d.ts +133 -0
- package/dist/export/downloadable-atom.d.ts.map +1 -0
- package/dist/export/downloadable-atom.js +115 -0
- package/dist/export/downloadable-atom.js.map +1 -0
- package/dist/export/index.d.ts +6 -0
- package/dist/export/index.d.ts.map +1 -0
- package/dist/export/index.js +6 -0
- package/dist/export/index.js.map +1 -0
- package/dist/history.d.ts +124 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +170 -0
- package/dist/history.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/inline-reference.d.ts +60 -0
- package/dist/inline-reference.d.ts.map +1 -0
- package/dist/inline-reference.js +73 -0
- package/dist/inline-reference.js.map +1 -0
- package/dist/obligation.d.ts +131 -0
- package/dist/obligation.d.ts.map +1 -0
- package/dist/obligation.js +55 -0
- package/dist/obligation.js.map +1 -0
- package/dist/og/common.d.ts +253 -0
- package/dist/og/common.d.ts.map +1 -0
- package/dist/og/common.js +195 -0
- package/dist/og/common.js.map +1 -0
- package/dist/og/completion.d.ts +70 -0
- package/dist/og/completion.d.ts.map +1 -0
- package/dist/og/completion.js +22 -0
- package/dist/og/completion.js.map +1 -0
- package/dist/og/equipment-state.d.ts +55 -0
- package/dist/og/equipment-state.d.ts.map +1 -0
- package/dist/og/equipment-state.js +25 -0
- package/dist/og/equipment-state.js.map +1 -0
- package/dist/og/fixtures.d.ts +40 -0
- package/dist/og/fixtures.d.ts.map +1 -0
- package/dist/og/fixtures.js +255 -0
- package/dist/og/fixtures.js.map +1 -0
- package/dist/og/index.d.ts +23 -0
- package/dist/og/index.d.ts.map +1 -0
- package/dist/og/index.js +23 -0
- package/dist/og/index.js.map +1 -0
- package/dist/og/mineral-lease.d.ts +150 -0
- package/dist/og/mineral-lease.d.ts.map +1 -0
- package/dist/og/mineral-lease.js +24 -0
- package/dist/og/mineral-lease.js.map +1 -0
- package/dist/og/ownership-interest.d.ts +163 -0
- package/dist/og/ownership-interest.d.ts.map +1 -0
- package/dist/og/ownership-interest.js +36 -0
- package/dist/og/ownership-interest.js.map +1 -0
- package/dist/og/pad.d.ts +101 -0
- package/dist/og/pad.d.ts.map +1 -0
- package/dist/og/pad.js +19 -0
- package/dist/og/pad.js.map +1 -0
- package/dist/og/production-timeseries.d.ts +154 -0
- package/dist/og/production-timeseries.d.ts.map +1 -0
- package/dist/og/production-timeseries.js +37 -0
- package/dist/og/production-timeseries.js.map +1 -0
- package/dist/og/revenue-allocation-unit.d.ts +762 -0
- package/dist/og/revenue-allocation-unit.d.ts.map +1 -0
- package/dist/og/revenue-allocation-unit.js +105 -0
- package/dist/og/revenue-allocation-unit.js.map +1 -0
- package/dist/og/rrc-lease.d.ts +124 -0
- package/dist/og/rrc-lease.d.ts.map +1 -0
- package/dist/og/rrc-lease.js +29 -0
- package/dist/og/rrc-lease.js.map +1 -0
- package/dist/og/tract.d.ts +88 -0
- package/dist/og/tract.d.ts.map +1 -0
- package/dist/og/tract.js +30 -0
- package/dist/og/tract.js.map +1 -0
- package/dist/og/well.d.ts +201 -0
- package/dist/og/well.d.ts.map +1 -0
- package/dist/og/well.js +40 -0
- package/dist/og/well.js.map +1 -0
- package/dist/og/wellbore.d.ts +61 -0
- package/dist/og/wellbore.d.ts.map +1 -0
- package/dist/og/wellbore.js +25 -0
- package/dist/og/wellbore.js.map +1 -0
- package/dist/og/zone.d.ts +45 -0
- package/dist/og/zone.d.ts.map +1 -0
- package/dist/og/zone.js +16 -0
- package/dist/og/zone.js.map +1 -0
- package/dist/read-contract/common.d.ts +74 -0
- package/dist/read-contract/common.d.ts.map +1 -0
- package/dist/read-contract/common.js +54 -0
- package/dist/read-contract/common.js.map +1 -0
- package/dist/read-contract/consequence.d.ts +99 -0
- package/dist/read-contract/consequence.d.ts.map +1 -0
- package/dist/read-contract/consequence.js +46 -0
- package/dist/read-contract/consequence.js.map +1 -0
- package/dist/read-contract/fixtures.d.ts +8 -0
- package/dist/read-contract/fixtures.d.ts.map +1 -0
- package/dist/read-contract/fixtures.js +44 -0
- package/dist/read-contract/fixtures.js.map +1 -0
- package/dist/read-contract/index.d.ts +14 -0
- package/dist/read-contract/index.d.ts.map +1 -0
- package/dist/read-contract/index.js +14 -0
- package/dist/read-contract/index.js.map +1 -0
- package/dist/read-contract/model-attribution.d.ts +85 -0
- package/dist/read-contract/model-attribution.d.ts.map +1 -0
- package/dist/read-contract/model-attribution.js +30 -0
- package/dist/read-contract/model-attribution.js.map +1 -0
- package/dist/read-contract/read-contract.d.ts +455 -0
- package/dist/read-contract/read-contract.d.ts.map +1 -0
- package/dist/read-contract/read-contract.js +46 -0
- package/dist/read-contract/read-contract.js.map +1 -0
- package/dist/registration.d.ts +192 -0
- package/dist/registration.d.ts.map +1 -0
- package/dist/registration.js +15 -0
- package/dist/registration.js.map +1 -0
- package/dist/registry.d.ts +128 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +122 -0
- package/dist/registry.js.map +1 -0
- package/dist/render.d.ts +30 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +44 -0
- package/dist/render.js.map +1 -0
- package/dist/scope.d.ts +46 -0
- package/dist/scope.d.ts.map +1 -0
- package/dist/scope.js +17 -0
- package/dist/scope.js.map +1 -0
- package/dist/temporal/anticipatory-atom.d.ts +123 -0
- package/dist/temporal/anticipatory-atom.d.ts.map +1 -0
- package/dist/temporal/anticipatory-atom.js +124 -0
- package/dist/temporal/anticipatory-atom.js.map +1 -0
- package/dist/temporal/common.d.ts +47 -0
- package/dist/temporal/common.d.ts.map +1 -0
- package/dist/temporal/common.js +100 -0
- package/dist/temporal/common.js.map +1 -0
- package/dist/temporal/fixtures.d.ts +7 -0
- package/dist/temporal/fixtures.d.ts.map +1 -0
- package/dist/temporal/fixtures.js +21 -0
- package/dist/temporal/fixtures.js.map +1 -0
- package/dist/temporal/index.d.ts +13 -0
- package/dist/temporal/index.d.ts.map +1 -0
- package/dist/temporal/index.js +13 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/temporal/interval-query.d.ts +42 -0
- package/dist/temporal/interval-query.d.ts.map +1 -0
- package/dist/temporal/interval-query.js +49 -0
- package/dist/temporal/interval-query.js.map +1 -0
- package/dist/temporal/node-id.d.ts +112 -0
- package/dist/temporal/node-id.d.ts.map +1 -0
- package/dist/temporal/node-id.js +208 -0
- package/dist/temporal/node-id.js.map +1 -0
- package/dist/temporal/would-affect-edge.d.ts +66 -0
- package/dist/temporal/would-affect-edge.d.ts.map +1 -0
- package/dist/temporal/would-affect-edge.js +113 -0
- package/dist/temporal/would-affect-edge.js.map +1 -0
- package/dist/testing/index.d.ts +98 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +225 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/vda.d.ts +46 -0
- package/dist/vda.d.ts.map +1 -0
- package/dist/vda.js +42 -0
- package/dist/vda.js.map +1 -0
- package/dist/workspace/brief-run.d.ts +104 -0
- package/dist/workspace/brief-run.d.ts.map +1 -0
- package/dist/workspace/brief-run.js +32 -0
- package/dist/workspace/brief-run.js.map +1 -0
- package/dist/workspace/common.d.ts +42 -0
- package/dist/workspace/common.d.ts.map +1 -0
- package/dist/workspace/common.js +26 -0
- package/dist/workspace/common.js.map +1 -0
- package/dist/workspace/fixtures.d.ts +10 -0
- package/dist/workspace/fixtures.d.ts.map +1 -0
- package/dist/workspace/fixtures.js +93 -0
- package/dist/workspace/fixtures.js.map +1 -0
- package/dist/workspace/index.d.ts +13 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +13 -0
- package/dist/workspace/index.js.map +1 -0
- package/dist/workspace/property-workspace.d.ts +148 -0
- package/dist/workspace/property-workspace.d.ts.map +1 -0
- package/dist/workspace/property-workspace.js +21 -0
- package/dist/workspace/property-workspace.js.map +1 -0
- package/dist/workspace/workspace-attachment.d.ts +99 -0
- package/dist/workspace/workspace-attachment.d.ts.map +1 -0
- package/dist/workspace/workspace-attachment.js +35 -0
- package/dist/workspace/workspace-attachment.js.map +1 -0
- package/dist/workspace/workspace-share-edge.d.ts +115 -0
- package/dist/workspace/workspace-share-edge.d.ts.map +1 -0
- package/dist/workspace/workspace-share-edge.js +22 -0
- package/dist/workspace/workspace-share-edge.js.map +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revenue-allocation-unit.d.ts","sourceRoot":"","sources":["../../src/og/revenue-allocation-unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAA6B,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/F;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GACxB,iBAAiB,GACjB,SAA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"../read-contract/common.js";
|
|
3
|
+
import { OG_ACCESS_POLICY_SCHEMA, OG_QUALITY_GATE_FIELDS } from "./common.js";
|
|
4
|
+
export const ALLOCATION_METHODS = [
|
|
5
|
+
"stated-fraction",
|
|
6
|
+
"acreage",
|
|
7
|
+
"lateral-length",
|
|
8
|
+
"take-points",
|
|
9
|
+
"acre-feet",
|
|
10
|
+
"oil-in-place",
|
|
11
|
+
"other",
|
|
12
|
+
];
|
|
13
|
+
export const UNIT_BASES = [
|
|
14
|
+
"pooled-unit",
|
|
15
|
+
"allocation-well",
|
|
16
|
+
"psa",
|
|
17
|
+
];
|
|
18
|
+
export const TRACT_PARTICIPATION_SCHEMA = z.object({
|
|
19
|
+
tractDid: z.string().min(1),
|
|
20
|
+
factor: z.number(),
|
|
21
|
+
allocationMethod: z.enum(ALLOCATION_METHODS),
|
|
22
|
+
source: z.string().min(1),
|
|
23
|
+
confidence: WIDTHED_CONFIDENCE_SCHEMA,
|
|
24
|
+
takePoints: z.number().optional(),
|
|
25
|
+
productiveLateralFootage: z.number().optional(),
|
|
26
|
+
});
|
|
27
|
+
export const RATIFICATION_GAP_SCHEMA = z.object({
|
|
28
|
+
tractDid: z.string().min(1),
|
|
29
|
+
gapDescription: z.string().min(1),
|
|
30
|
+
});
|
|
31
|
+
const BASE_SCHEMA = z.object({
|
|
32
|
+
entityType: z.literal("revenue-allocation-unit"),
|
|
33
|
+
unitDid: z
|
|
34
|
+
.string()
|
|
35
|
+
.min(1)
|
|
36
|
+
.refine((val) => /^unit_[0-9a-f]{16}$/.test(val), {
|
|
37
|
+
message: "unitDid must be in format unit_<16-hex-chars>",
|
|
38
|
+
}),
|
|
39
|
+
basis: z.enum(UNIT_BASES),
|
|
40
|
+
wellDids: z.array(z.string().min(1)),
|
|
41
|
+
operatorActorDid: z.string().min(1),
|
|
42
|
+
effectiveFrom: z.string().min(1),
|
|
43
|
+
effectiveTo: z.string().min(1).optional(),
|
|
44
|
+
tractParticipations: z.array(TRACT_PARTICIPATION_SCHEMA).min(1),
|
|
45
|
+
...OG_QUALITY_GATE_FIELDS,
|
|
46
|
+
accessPolicy: OG_ACCESS_POLICY_SCHEMA,
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* Schema for pooled-unit basis: requires sourceInstrumentDids, allows
|
|
50
|
+
* ratificationInstrumentDids and ratificationGaps.
|
|
51
|
+
*/
|
|
52
|
+
const POOLED_UNIT_SCHEMA = BASE_SCHEMA.extend({
|
|
53
|
+
basis: z.literal("pooled-unit"),
|
|
54
|
+
sourceInstrumentDids: z.array(z.string().min(1)).min(1),
|
|
55
|
+
ratificationInstrumentDids: z.array(z.string().min(1)).optional(),
|
|
56
|
+
ratificationGaps: z.array(RATIFICATION_GAP_SCHEMA).optional(),
|
|
57
|
+
sourcePlatCid: z.undefined(),
|
|
58
|
+
sourceNote: z.undefined(),
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* Schema for allocation-well basis: requires sourcePlatCid. Per-tract take
|
|
62
|
+
* points and productive-lateral footage carried on tractParticipations entries.
|
|
63
|
+
*/
|
|
64
|
+
const ALLOCATION_WELL_SCHEMA = BASE_SCHEMA.extend({
|
|
65
|
+
basis: z.literal("allocation-well"),
|
|
66
|
+
sourcePlatCid: z.string().min(1),
|
|
67
|
+
sourceInstrumentDids: z.undefined(),
|
|
68
|
+
ratificationInstrumentDids: z.undefined(),
|
|
69
|
+
ratificationGaps: z.undefined(),
|
|
70
|
+
sourceNote: z.undefined(),
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Schema for psa basis: PSAs are frequently unrecorded private agreements.
|
|
74
|
+
* sourceInstrumentDids is OPTIONAL (populated when a memorandum or the PSA
|
|
75
|
+
* itself is of record); when absent, requires an operator-asserted sourceNote.
|
|
76
|
+
* Per ADR-025 C1c finding #10.
|
|
77
|
+
*/
|
|
78
|
+
const PSA_SCHEMA = BASE_SCHEMA.extend({
|
|
79
|
+
basis: z.literal("psa"),
|
|
80
|
+
sourceInstrumentDids: z.array(z.string().min(1)).optional(),
|
|
81
|
+
sourceNote: z.string().min(1).optional(),
|
|
82
|
+
ratificationInstrumentDids: z.array(z.string().min(1)).optional(),
|
|
83
|
+
ratificationGaps: z.array(RATIFICATION_GAP_SCHEMA).optional(),
|
|
84
|
+
sourcePlatCid: z.undefined(),
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* Revenue-allocation-unit schema with discriminated union on basis. Each basis
|
|
88
|
+
* variant enforces its required fields; for example, pooled-unit requires
|
|
89
|
+
* sourceInstrumentDids, allocation-well requires sourcePlatCid.
|
|
90
|
+
* PSA basis requires either sourceInstrumentDids or sourceNote (validated post-parse).
|
|
91
|
+
*/
|
|
92
|
+
export const REVENUE_ALLOCATION_UNIT_SCHEMA = z
|
|
93
|
+
.discriminatedUnion("basis", [POOLED_UNIT_SCHEMA, ALLOCATION_WELL_SCHEMA, PSA_SCHEMA])
|
|
94
|
+
.refine((data) => {
|
|
95
|
+
if (data.basis === "psa") {
|
|
96
|
+
const hasInstruments = data.sourceInstrumentDids !== undefined && data.sourceInstrumentDids.length > 0;
|
|
97
|
+
const hasSourceNote = data.sourceNote !== undefined;
|
|
98
|
+
return hasInstruments || hasSourceNote;
|
|
99
|
+
}
|
|
100
|
+
return true;
|
|
101
|
+
}, {
|
|
102
|
+
message: "PSA basis requires either sourceInstrumentDids or sourceNote",
|
|
103
|
+
path: ["basis"],
|
|
104
|
+
});
|
|
105
|
+
//# sourceMappingURL=revenue-allocation-unit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revenue-allocation-unit.js","sourceRoot":"","sources":["../../src/og/revenue-allocation-unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,yBAAyB,EAA0B,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAgB9E,MAAM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Aa,GAAG,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC;QACpD,OAAO,cAAc,IAAI,aAAa,CAAC;IACzC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,EACD;IACE,OAAO,EAAE,8DAA8D;IACvE,IAAI,EAAE,CAAC,OAAO,CAAC;CAChB,CACF,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AccessPolicy } from "../registration.js";
|
|
3
|
+
import { type FieldRef } from "./common.js";
|
|
4
|
+
/**
|
|
5
|
+
* RRC-lease atom instance per ADR-025 — the regulatory production unit.
|
|
6
|
+
* A different thing with the same name as mineral-lease, kept as a separate
|
|
7
|
+
* type on purpose. Many-to-many mapping to mineral-lease is inference, not
|
|
8
|
+
* record.
|
|
9
|
+
* DID format: rrclease_<district>-<leaseNo> (legible-DID exception).
|
|
10
|
+
*/
|
|
11
|
+
export interface RrcLeaseAtomInstance {
|
|
12
|
+
entityType: "rrc-lease";
|
|
13
|
+
rrcLeaseDid: string;
|
|
14
|
+
leaseNumber: string;
|
|
15
|
+
leaseName: string;
|
|
16
|
+
district: string;
|
|
17
|
+
fieldRef?: FieldRef;
|
|
18
|
+
operatorActorDid: string;
|
|
19
|
+
wellCount?: number;
|
|
20
|
+
status: string;
|
|
21
|
+
acreage?: number;
|
|
22
|
+
sourceCitation: string;
|
|
23
|
+
extractedAt: string;
|
|
24
|
+
asOf?: string;
|
|
25
|
+
accessPolicy: AccessPolicy;
|
|
26
|
+
}
|
|
27
|
+
export declare const RRC_LEASE_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
28
|
+
accessPolicy: z.ZodEnum<["public-free", "public-paid", "platform-internal", "tenant-private", "tenant-shared"]>;
|
|
29
|
+
sourceCitation: z.ZodString;
|
|
30
|
+
extractedAt: z.ZodString;
|
|
31
|
+
asOf: z.ZodOptional<z.ZodString>;
|
|
32
|
+
entityType: z.ZodLiteral<"rrc-lease">;
|
|
33
|
+
rrcLeaseDid: z.ZodEffects<z.ZodString, string, string>;
|
|
34
|
+
leaseNumber: z.ZodString;
|
|
35
|
+
leaseName: z.ZodString;
|
|
36
|
+
district: z.ZodString;
|
|
37
|
+
fieldRef: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
fieldName: z.ZodString;
|
|
39
|
+
fieldNumber: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
fieldName: string;
|
|
42
|
+
fieldNumber: string;
|
|
43
|
+
}, {
|
|
44
|
+
fieldName: string;
|
|
45
|
+
fieldNumber: string;
|
|
46
|
+
}>>;
|
|
47
|
+
operatorActorDid: z.ZodString;
|
|
48
|
+
wellCount: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
status: z.ZodString;
|
|
50
|
+
acreage: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
53
|
+
entityType: "rrc-lease";
|
|
54
|
+
status: string;
|
|
55
|
+
sourceCitation: string;
|
|
56
|
+
extractedAt: string;
|
|
57
|
+
district: string;
|
|
58
|
+
rrcLeaseDid: string;
|
|
59
|
+
leaseNumber: string;
|
|
60
|
+
leaseName: string;
|
|
61
|
+
operatorActorDid: string;
|
|
62
|
+
asOf?: string | undefined;
|
|
63
|
+
fieldRef?: {
|
|
64
|
+
fieldName: string;
|
|
65
|
+
fieldNumber: string;
|
|
66
|
+
} | undefined;
|
|
67
|
+
wellCount?: number | undefined;
|
|
68
|
+
acreage?: number | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
71
|
+
entityType: "rrc-lease";
|
|
72
|
+
status: string;
|
|
73
|
+
sourceCitation: string;
|
|
74
|
+
extractedAt: string;
|
|
75
|
+
district: string;
|
|
76
|
+
rrcLeaseDid: string;
|
|
77
|
+
leaseNumber: string;
|
|
78
|
+
leaseName: string;
|
|
79
|
+
operatorActorDid: string;
|
|
80
|
+
asOf?: string | undefined;
|
|
81
|
+
fieldRef?: {
|
|
82
|
+
fieldName: string;
|
|
83
|
+
fieldNumber: string;
|
|
84
|
+
} | undefined;
|
|
85
|
+
wellCount?: number | undefined;
|
|
86
|
+
acreage?: number | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
89
|
+
entityType: "rrc-lease";
|
|
90
|
+
status: string;
|
|
91
|
+
sourceCitation: string;
|
|
92
|
+
extractedAt: string;
|
|
93
|
+
district: string;
|
|
94
|
+
rrcLeaseDid: string;
|
|
95
|
+
leaseNumber: string;
|
|
96
|
+
leaseName: string;
|
|
97
|
+
operatorActorDid: string;
|
|
98
|
+
asOf?: string | undefined;
|
|
99
|
+
fieldRef?: {
|
|
100
|
+
fieldName: string;
|
|
101
|
+
fieldNumber: string;
|
|
102
|
+
} | undefined;
|
|
103
|
+
wellCount?: number | undefined;
|
|
104
|
+
acreage?: number | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
107
|
+
entityType: "rrc-lease";
|
|
108
|
+
status: string;
|
|
109
|
+
sourceCitation: string;
|
|
110
|
+
extractedAt: string;
|
|
111
|
+
district: string;
|
|
112
|
+
rrcLeaseDid: string;
|
|
113
|
+
leaseNumber: string;
|
|
114
|
+
leaseName: string;
|
|
115
|
+
operatorActorDid: string;
|
|
116
|
+
asOf?: string | undefined;
|
|
117
|
+
fieldRef?: {
|
|
118
|
+
fieldName: string;
|
|
119
|
+
fieldNumber: string;
|
|
120
|
+
} | undefined;
|
|
121
|
+
wellCount?: number | undefined;
|
|
122
|
+
acreage?: number | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
//# sourceMappingURL=rrc-lease.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rrc-lease.d.ts","sourceRoot":"","sources":["../../src/og/rrc-lease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAqE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE/G;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B1B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { FIELD_REF_SCHEMA, OG_ACCESS_POLICY_SCHEMA, OG_QUALITY_GATE_FIELDS } from "./common.js";
|
|
3
|
+
export const RRC_LEASE_SCHEMA = z
|
|
4
|
+
.object({
|
|
5
|
+
entityType: z.literal("rrc-lease"),
|
|
6
|
+
rrcLeaseDid: z
|
|
7
|
+
.string()
|
|
8
|
+
.min(1)
|
|
9
|
+
.refine((val) => val.startsWith("rrclease_"), {
|
|
10
|
+
message: "rrcLeaseDid must start with rrclease_ prefix",
|
|
11
|
+
}),
|
|
12
|
+
leaseNumber: z.string().min(1),
|
|
13
|
+
leaseName: z.string().min(1),
|
|
14
|
+
district: z.string().min(1),
|
|
15
|
+
fieldRef: FIELD_REF_SCHEMA.optional(),
|
|
16
|
+
operatorActorDid: z.string().min(1),
|
|
17
|
+
wellCount: z.number().optional(),
|
|
18
|
+
status: z.string().min(1),
|
|
19
|
+
acreage: z.number().optional(),
|
|
20
|
+
...OG_QUALITY_GATE_FIELDS,
|
|
21
|
+
accessPolicy: OG_ACCESS_POLICY_SCHEMA,
|
|
22
|
+
})
|
|
23
|
+
.refine((data) => {
|
|
24
|
+
return data.rrcLeaseDid === `rrclease_${data.district}-${data.leaseNumber}`;
|
|
25
|
+
}, {
|
|
26
|
+
message: "rrcLeaseDid must match the derived ID from district and leaseNumber",
|
|
27
|
+
path: ["rrcLeaseDid"],
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=rrc-lease.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rrc-lease.js","sourceRoot":"","sources":["../../src/og/rrc-lease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,sBAAsB,EAAiB,MAAM,aAAa,CAAC;AA0B/G,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAClC,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;QAC5C,OAAO,EAAE,8CAA8C;KACxD,CAAC;IACJ,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACrC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,GAAG,sBAAsB;IACzB,YAAY,EAAE,uBAAuB;CACtC,CAAC;KACD,MAAM,CACL,CAAC,IAAI,EAAE,EAAE;IACP,OAAO,IAAI,CAAC,WAAW,KAAK,YAAY,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;AAC9E,CAAC,EACD;IACE,OAAO,EAAE,qEAAqE;IAC9E,IAAI,EAAE,CAAC,aAAa,CAAC;CACtB,CACF,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AccessPolicy } from "../registration.js";
|
|
3
|
+
/**
|
|
4
|
+
* Tract atom instance per ADR-025 — the land the interests attach to.
|
|
5
|
+
* DID format: tract_<county>-<abstract> where abstract-keyed; hashed
|
|
6
|
+
* derivation otherwise.
|
|
7
|
+
*/
|
|
8
|
+
export interface TractAtomInstance {
|
|
9
|
+
entityType: "tract";
|
|
10
|
+
tractDid: string;
|
|
11
|
+
legalDescription: string;
|
|
12
|
+
plssOrSurveyRef: string;
|
|
13
|
+
abstractNumber?: string;
|
|
14
|
+
county: string;
|
|
15
|
+
state: string;
|
|
16
|
+
acreage?: number;
|
|
17
|
+
sourceCitation: string;
|
|
18
|
+
extractedAt: string;
|
|
19
|
+
asOf?: string;
|
|
20
|
+
accessPolicy: AccessPolicy;
|
|
21
|
+
}
|
|
22
|
+
export declare const TRACT_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
23
|
+
accessPolicy: z.ZodEnum<["public-free", "public-paid", "platform-internal", "tenant-private", "tenant-shared"]>;
|
|
24
|
+
sourceCitation: z.ZodString;
|
|
25
|
+
extractedAt: z.ZodString;
|
|
26
|
+
asOf: z.ZodOptional<z.ZodString>;
|
|
27
|
+
entityType: z.ZodLiteral<"tract">;
|
|
28
|
+
tractDid: z.ZodEffects<z.ZodString, string, string>;
|
|
29
|
+
legalDescription: z.ZodString;
|
|
30
|
+
plssOrSurveyRef: z.ZodString;
|
|
31
|
+
abstractNumber: z.ZodOptional<z.ZodString>;
|
|
32
|
+
county: z.ZodString;
|
|
33
|
+
state: z.ZodString;
|
|
34
|
+
acreage: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
37
|
+
entityType: "tract";
|
|
38
|
+
sourceCitation: string;
|
|
39
|
+
extractedAt: string;
|
|
40
|
+
county: string;
|
|
41
|
+
state: string;
|
|
42
|
+
legalDescription: string;
|
|
43
|
+
tractDid: string;
|
|
44
|
+
plssOrSurveyRef: string;
|
|
45
|
+
asOf?: string | undefined;
|
|
46
|
+
acreage?: number | undefined;
|
|
47
|
+
abstractNumber?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
50
|
+
entityType: "tract";
|
|
51
|
+
sourceCitation: string;
|
|
52
|
+
extractedAt: string;
|
|
53
|
+
county: string;
|
|
54
|
+
state: string;
|
|
55
|
+
legalDescription: string;
|
|
56
|
+
tractDid: string;
|
|
57
|
+
plssOrSurveyRef: string;
|
|
58
|
+
asOf?: string | undefined;
|
|
59
|
+
acreage?: number | undefined;
|
|
60
|
+
abstractNumber?: string | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
63
|
+
entityType: "tract";
|
|
64
|
+
sourceCitation: string;
|
|
65
|
+
extractedAt: string;
|
|
66
|
+
county: string;
|
|
67
|
+
state: string;
|
|
68
|
+
legalDescription: string;
|
|
69
|
+
tractDid: string;
|
|
70
|
+
plssOrSurveyRef: string;
|
|
71
|
+
asOf?: string | undefined;
|
|
72
|
+
acreage?: number | undefined;
|
|
73
|
+
abstractNumber?: string | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
76
|
+
entityType: "tract";
|
|
77
|
+
sourceCitation: string;
|
|
78
|
+
extractedAt: string;
|
|
79
|
+
county: string;
|
|
80
|
+
state: string;
|
|
81
|
+
legalDescription: string;
|
|
82
|
+
tractDid: string;
|
|
83
|
+
plssOrSurveyRef: string;
|
|
84
|
+
asOf?: string | undefined;
|
|
85
|
+
acreage?: number | undefined;
|
|
86
|
+
abstractNumber?: string | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
//# sourceMappingURL=tract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tract.d.ts","sourceRoot":"","sources":["../../src/og/tract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BtB,CAAC"}
|
package/dist/og/tract.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { OG_ACCESS_POLICY_SCHEMA, OG_QUALITY_GATE_FIELDS } from "./common.js";
|
|
3
|
+
export const TRACT_SCHEMA = z
|
|
4
|
+
.object({
|
|
5
|
+
entityType: z.literal("tract"),
|
|
6
|
+
tractDid: z
|
|
7
|
+
.string()
|
|
8
|
+
.min(1)
|
|
9
|
+
.refine((val) => val.startsWith("tract_"), {
|
|
10
|
+
message: "tractDid must start with tract_ prefix",
|
|
11
|
+
}),
|
|
12
|
+
legalDescription: z.string().min(1),
|
|
13
|
+
plssOrSurveyRef: z.string().min(1),
|
|
14
|
+
abstractNumber: z.string().min(1).optional(),
|
|
15
|
+
county: z.string().min(1),
|
|
16
|
+
state: z.string().min(1),
|
|
17
|
+
acreage: z.number().optional(),
|
|
18
|
+
...OG_QUALITY_GATE_FIELDS,
|
|
19
|
+
accessPolicy: OG_ACCESS_POLICY_SCHEMA,
|
|
20
|
+
})
|
|
21
|
+
.refine((data) => {
|
|
22
|
+
if (data.abstractNumber) {
|
|
23
|
+
return data.tractDid === `tract_${data.county}-${data.abstractNumber}`;
|
|
24
|
+
}
|
|
25
|
+
return /^tract_[0-9a-f]{16}$/.test(data.tractDid);
|
|
26
|
+
}, {
|
|
27
|
+
message: "tractDid must match the derived ID from county and abstractNumber, or be a valid hashed format (tract_<16-hex-chars>)",
|
|
28
|
+
path: ["tractDid"],
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=tract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tract.js","sourceRoot":"","sources":["../../src/og/tract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAsB9E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC9B,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QACzC,OAAO,EAAE,wCAAwC;KAClD,CAAC;IACJ,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,GAAG,sBAAsB;IACzB,YAAY,EAAE,uBAAuB;CACtC,CAAC;KACD,MAAM,CACL,CAAC,IAAI,EAAE,EAAE;IACP,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;IACzE,CAAC;IACD,OAAO,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACpD,CAAC,EACD;IACE,OAAO,EACL,uHAAuH;IACzH,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CACF,CAAC"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AccessPolicy } from "../registration.js";
|
|
3
|
+
import { type FieldRef, type GeoLocation, type WellType } from "./common.js";
|
|
4
|
+
/**
|
|
5
|
+
* Well atom instance per ADR-025 — the asset anchor.
|
|
6
|
+
* DID format: well_<api14> (legible-DID exception; API-14 identity).
|
|
7
|
+
*/
|
|
8
|
+
export interface WellAtomInstance {
|
|
9
|
+
entityType: "well";
|
|
10
|
+
wellDid: string;
|
|
11
|
+
apiNumber14: string;
|
|
12
|
+
wellName: string;
|
|
13
|
+
wellNumber: string;
|
|
14
|
+
wellType: WellType;
|
|
15
|
+
status: string;
|
|
16
|
+
spudDate?: string;
|
|
17
|
+
completionDate?: string;
|
|
18
|
+
totalDepth?: number;
|
|
19
|
+
surfaceLocation: GeoLocation;
|
|
20
|
+
bottomholeLocation?: GeoLocation;
|
|
21
|
+
fieldRef?: FieldRef;
|
|
22
|
+
district: string;
|
|
23
|
+
sourceCitation: string;
|
|
24
|
+
extractedAt: string;
|
|
25
|
+
asOf?: string;
|
|
26
|
+
accessPolicy: AccessPolicy;
|
|
27
|
+
}
|
|
28
|
+
export declare const WELL_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
29
|
+
accessPolicy: z.ZodEnum<["public-free", "public-paid", "platform-internal", "tenant-private", "tenant-shared"]>;
|
|
30
|
+
sourceCitation: z.ZodString;
|
|
31
|
+
extractedAt: z.ZodString;
|
|
32
|
+
asOf: z.ZodOptional<z.ZodString>;
|
|
33
|
+
entityType: z.ZodLiteral<"well">;
|
|
34
|
+
wellDid: z.ZodEffects<z.ZodString, string, string>;
|
|
35
|
+
apiNumber14: z.ZodEffects<z.ZodString, string, string>;
|
|
36
|
+
wellName: z.ZodString;
|
|
37
|
+
wellNumber: z.ZodString;
|
|
38
|
+
wellType: z.ZodEnum<[WellType, ...WellType[]]>;
|
|
39
|
+
status: z.ZodString;
|
|
40
|
+
spudDate: z.ZodOptional<z.ZodString>;
|
|
41
|
+
completionDate: z.ZodOptional<z.ZodString>;
|
|
42
|
+
totalDepth: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
surfaceLocation: z.ZodObject<{
|
|
44
|
+
latitude: z.ZodNumber;
|
|
45
|
+
longitude: z.ZodNumber;
|
|
46
|
+
datum: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
latitude: number;
|
|
49
|
+
longitude: number;
|
|
50
|
+
datum: string;
|
|
51
|
+
}, {
|
|
52
|
+
latitude: number;
|
|
53
|
+
longitude: number;
|
|
54
|
+
datum: string;
|
|
55
|
+
}>;
|
|
56
|
+
bottomholeLocation: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
latitude: z.ZodNumber;
|
|
58
|
+
longitude: z.ZodNumber;
|
|
59
|
+
datum: z.ZodString;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
latitude: number;
|
|
62
|
+
longitude: number;
|
|
63
|
+
datum: string;
|
|
64
|
+
}, {
|
|
65
|
+
latitude: number;
|
|
66
|
+
longitude: number;
|
|
67
|
+
datum: string;
|
|
68
|
+
}>>;
|
|
69
|
+
fieldRef: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
fieldName: z.ZodString;
|
|
71
|
+
fieldNumber: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
fieldName: string;
|
|
74
|
+
fieldNumber: string;
|
|
75
|
+
}, {
|
|
76
|
+
fieldName: string;
|
|
77
|
+
fieldNumber: string;
|
|
78
|
+
}>>;
|
|
79
|
+
district: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
82
|
+
entityType: "well";
|
|
83
|
+
status: string;
|
|
84
|
+
sourceCitation: string;
|
|
85
|
+
extractedAt: string;
|
|
86
|
+
wellDid: string;
|
|
87
|
+
apiNumber14: string;
|
|
88
|
+
wellName: string;
|
|
89
|
+
wellNumber: string;
|
|
90
|
+
wellType: WellType;
|
|
91
|
+
surfaceLocation: {
|
|
92
|
+
latitude: number;
|
|
93
|
+
longitude: number;
|
|
94
|
+
datum: string;
|
|
95
|
+
};
|
|
96
|
+
district: string;
|
|
97
|
+
asOf?: string | undefined;
|
|
98
|
+
completionDate?: string | undefined;
|
|
99
|
+
spudDate?: string | undefined;
|
|
100
|
+
totalDepth?: number | undefined;
|
|
101
|
+
bottomholeLocation?: {
|
|
102
|
+
latitude: number;
|
|
103
|
+
longitude: number;
|
|
104
|
+
datum: string;
|
|
105
|
+
} | undefined;
|
|
106
|
+
fieldRef?: {
|
|
107
|
+
fieldName: string;
|
|
108
|
+
fieldNumber: string;
|
|
109
|
+
} | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
112
|
+
entityType: "well";
|
|
113
|
+
status: string;
|
|
114
|
+
sourceCitation: string;
|
|
115
|
+
extractedAt: string;
|
|
116
|
+
wellDid: string;
|
|
117
|
+
apiNumber14: string;
|
|
118
|
+
wellName: string;
|
|
119
|
+
wellNumber: string;
|
|
120
|
+
wellType: WellType;
|
|
121
|
+
surfaceLocation: {
|
|
122
|
+
latitude: number;
|
|
123
|
+
longitude: number;
|
|
124
|
+
datum: string;
|
|
125
|
+
};
|
|
126
|
+
district: string;
|
|
127
|
+
asOf?: string | undefined;
|
|
128
|
+
completionDate?: string | undefined;
|
|
129
|
+
spudDate?: string | undefined;
|
|
130
|
+
totalDepth?: number | undefined;
|
|
131
|
+
bottomholeLocation?: {
|
|
132
|
+
latitude: number;
|
|
133
|
+
longitude: number;
|
|
134
|
+
datum: string;
|
|
135
|
+
} | undefined;
|
|
136
|
+
fieldRef?: {
|
|
137
|
+
fieldName: string;
|
|
138
|
+
fieldNumber: string;
|
|
139
|
+
} | undefined;
|
|
140
|
+
}>, {
|
|
141
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
142
|
+
entityType: "well";
|
|
143
|
+
status: string;
|
|
144
|
+
sourceCitation: string;
|
|
145
|
+
extractedAt: string;
|
|
146
|
+
wellDid: string;
|
|
147
|
+
apiNumber14: string;
|
|
148
|
+
wellName: string;
|
|
149
|
+
wellNumber: string;
|
|
150
|
+
wellType: WellType;
|
|
151
|
+
surfaceLocation: {
|
|
152
|
+
latitude: number;
|
|
153
|
+
longitude: number;
|
|
154
|
+
datum: string;
|
|
155
|
+
};
|
|
156
|
+
district: string;
|
|
157
|
+
asOf?: string | undefined;
|
|
158
|
+
completionDate?: string | undefined;
|
|
159
|
+
spudDate?: string | undefined;
|
|
160
|
+
totalDepth?: number | undefined;
|
|
161
|
+
bottomholeLocation?: {
|
|
162
|
+
latitude: number;
|
|
163
|
+
longitude: number;
|
|
164
|
+
datum: string;
|
|
165
|
+
} | undefined;
|
|
166
|
+
fieldRef?: {
|
|
167
|
+
fieldName: string;
|
|
168
|
+
fieldNumber: string;
|
|
169
|
+
} | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
|
|
172
|
+
entityType: "well";
|
|
173
|
+
status: string;
|
|
174
|
+
sourceCitation: string;
|
|
175
|
+
extractedAt: string;
|
|
176
|
+
wellDid: string;
|
|
177
|
+
apiNumber14: string;
|
|
178
|
+
wellName: string;
|
|
179
|
+
wellNumber: string;
|
|
180
|
+
wellType: WellType;
|
|
181
|
+
surfaceLocation: {
|
|
182
|
+
latitude: number;
|
|
183
|
+
longitude: number;
|
|
184
|
+
datum: string;
|
|
185
|
+
};
|
|
186
|
+
district: string;
|
|
187
|
+
asOf?: string | undefined;
|
|
188
|
+
completionDate?: string | undefined;
|
|
189
|
+
spudDate?: string | undefined;
|
|
190
|
+
totalDepth?: number | undefined;
|
|
191
|
+
bottomholeLocation?: {
|
|
192
|
+
latitude: number;
|
|
193
|
+
longitude: number;
|
|
194
|
+
datum: string;
|
|
195
|
+
} | undefined;
|
|
196
|
+
fieldRef?: {
|
|
197
|
+
fieldName: string;
|
|
198
|
+
fieldNumber: string;
|
|
199
|
+
} | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
//# sourceMappingURL=well.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"well.d.ts","sourceRoot":"","sources":["../../src/og/well.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAML,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCrB,CAAC"}
|
package/dist/og/well.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { API_14_PATTERN, normalizeApi14 } from "../temporal/node-id.js";
|
|
3
|
+
import { FIELD_REF_SCHEMA, GEO_LOCATION_SCHEMA, OG_ACCESS_POLICY_SCHEMA, OG_QUALITY_GATE_FIELDS, WELL_TYPES, } from "./common.js";
|
|
4
|
+
export const WELL_SCHEMA = z
|
|
5
|
+
.object({
|
|
6
|
+
entityType: z.literal("well"),
|
|
7
|
+
wellDid: z
|
|
8
|
+
.string()
|
|
9
|
+
.min(1)
|
|
10
|
+
.refine((val) => val.startsWith("well_"), {
|
|
11
|
+
message: "wellDid must start with well_ prefix",
|
|
12
|
+
}),
|
|
13
|
+
apiNumber14: z
|
|
14
|
+
.string()
|
|
15
|
+
.min(1)
|
|
16
|
+
.refine((val) => API_14_PATTERN.test(val), {
|
|
17
|
+
message: "apiNumber14 must be valid API-14 format",
|
|
18
|
+
}),
|
|
19
|
+
wellName: z.string().min(1),
|
|
20
|
+
wellNumber: z.string().min(1),
|
|
21
|
+
wellType: z.enum(WELL_TYPES),
|
|
22
|
+
status: z.string().min(1),
|
|
23
|
+
spudDate: z.string().min(1).optional(),
|
|
24
|
+
completionDate: z.string().min(1).optional(),
|
|
25
|
+
totalDepth: z.number().optional(),
|
|
26
|
+
surfaceLocation: GEO_LOCATION_SCHEMA,
|
|
27
|
+
bottomholeLocation: GEO_LOCATION_SCHEMA.optional(),
|
|
28
|
+
fieldRef: FIELD_REF_SCHEMA.optional(),
|
|
29
|
+
district: z.string().min(1),
|
|
30
|
+
...OG_QUALITY_GATE_FIELDS,
|
|
31
|
+
accessPolicy: OG_ACCESS_POLICY_SCHEMA,
|
|
32
|
+
})
|
|
33
|
+
.refine((data) => {
|
|
34
|
+
const normalized = normalizeApi14(data.apiNumber14);
|
|
35
|
+
return data.wellDid === `well_${normalized}`;
|
|
36
|
+
}, {
|
|
37
|
+
message: "wellDid must match the derived ID from apiNumber14",
|
|
38
|
+
path: ["wellDid"],
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=well.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"well.js","sourceRoot":"","sources":["../../src/og/well.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,UAAU,GAIX,MAAM,aAAa,CAAC;AA2BrB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7B,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QACxC,OAAO,EAAE,sCAAsC;KAChD,CAAC;IACJ,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAA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