@corva/ui 3.55.0-6 → 3.55.0-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.js +1 -1
  2. package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +1 -1
  3. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  4. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.js +1 -1
  5. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.js +1 -1
  6. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js +2 -0
  7. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js.map +1 -0
  8. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
  9. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.js +1 -1
  10. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.js +1 -1
  11. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js +2 -0
  12. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map +1 -0
  13. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.js +1 -1
  14. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.js +1 -1
  15. package/cjs-bundle/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +1 -1
  16. package/cjs-bundle/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js +2 -0
  17. package/cjs-bundle/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js.map +1 -0
  18. package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.d.ts +1 -0
  19. package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.d.ts.map +1 -1
  20. package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.js +1 -1
  21. package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts +5 -1
  22. package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts.map +1 -1
  23. package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +1 -1
  24. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.d.ts.map +1 -1
  25. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  26. package/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.d.ts.map +1 -1
  27. package/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.js +1 -1
  28. package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.d.ts +1 -1
  29. package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.d.ts.map +1 -1
  30. package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.js +1 -1
  31. package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.d.ts +8 -0
  32. package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.d.ts.map +1 -0
  33. package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js +2 -0
  34. package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js.map +1 -0
  35. package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.d.ts.map +1 -1
  36. package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
  37. package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.d.ts +1 -1
  38. package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.d.ts.map +1 -1
  39. package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.js +1 -1
  40. package/components/OffsetWellPickerV5/hooks/useViewportWells/types.d.ts +1 -0
  41. package/components/OffsetWellPickerV5/hooks/useViewportWells/types.d.ts.map +1 -1
  42. package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts +1 -1
  43. package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts.map +1 -1
  44. package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.js +1 -1
  45. package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts +14 -0
  46. package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts.map +1 -0
  47. package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js +2 -0
  48. package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map +1 -0
  49. package/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.d.ts.map +1 -1
  50. package/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.js +1 -1
  51. package/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.d.ts.map +1 -1
  52. package/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.js +1 -1
  53. package/components/OffsetWellPickerV5/utils/doesWellPassFilters.d.ts.map +1 -1
  54. package/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +1 -1
  55. package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.d.ts +3 -0
  56. package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.d.ts.map +1 -0
  57. package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js +2 -0
  58. package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js.map +1 -0
  59. package/mcp-server/server.mjs +57 -1
  60. package/package.json +1 -1
  61. package/tsconfig.tsbuildinfo +1 -1
@@ -1,2 +1,2 @@
1
- import{useRef as e,useEffect as r}from"react";import t from"lodash/debounce";import{useStore as n}from"zustand";import{ViewportStoreContext as o}from"../../stores/viewport-store/ViewportStoreContext.js";import{useContextOrThrow as i}from"../../stores/utils/useContextOrThrow.js";import{useTileCache as s}from"../useTileCache/useTileCache.js";import{DEBOUNCE_DELAY as c}from"./constants.js";import{useHandleBoundsChange as u}from"./useHandleBoundsChange.js";import{useCompanyIdResetEffect as a}from"./useCompanyIdResetEffect.js";var f=function(){var f=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],l=i(o),d=n(l,(function(e){return e.bounds})),m=n(l,(function(e){return e.clearTiles})),p=s(),h=p.getCachedTile,C=p.setCachedTile,T=p.clearCache,g=e({pending:[],inProgress:new Set}),v=e((function(){})),j=e(void 0),b=u({enabled:f,store:l,queueRef:g,getCachedTile:h,setCachedTile:C});v.current=b;var w=e(t((function(e){v.current(e)}),c));r((function(){w.current(d)}),[d]),a(j,{enabled:f,store:l,queueRef:g,clearCache:T,clearTiles:m,handleBoundsChangeRef:v}),r((function(){var e=w.current,r=g.current;return function(){e.cancel(),r.pending=[]}}),[])};export{f as useViewportWells};
1
+ import{useRef as e,useEffect as r}from"react";import t from"lodash/debounce";import{useStore as n}from"zustand";import{ViewportStoreContext as o}from"../../stores/viewport-store/ViewportStoreContext.js";import{useContextOrThrow as s}from"../../stores/utils/useContextOrThrow.js";import{useTileCache as i}from"../useTileCache/useTileCache.js";import{DEBOUNCE_DELAY as c}from"./constants.js";import{useHandleBoundsChange as u}from"./useHandleBoundsChange.js";import{useCompanyIdResetEffect as a}from"./useCompanyIdResetEffect.js";import{useDrillingFilterResetEffect as l}from"./useDrillingFilterResetEffect.js";var f=function(){var f=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],d=s(o),m=n(d,(function(e){return e.bounds})),h=n(d,(function(e){return e.clearTiles})),p=i(),C=p.getCachedTile,g=p.setCachedTile,T=p.clearCache,j=e({pending:[],inProgress:new Set}),R=e((function(){})),v=u({enabled:f,store:d,queueRef:j,getCachedTile:C,setCachedTile:g});R.current=v;var b=e(t((function(e){R.current(e)}),c));r((function(){b.current(m)}),[m]),a({enabled:f,store:d,queueRef:j,clearCache:T,clearTiles:h,handleBoundsChangeRef:R}),l({enabled:f,store:d,queueRef:j,clearCache:T,clearTiles:h,handleBoundsChangeRef:R}),r((function(){var e=b.current,r=j.current;return function(){e.cancel(),r.pending=[]}}),[])};export{f as useViewportWells};
2
2
  //# sourceMappingURL=useViewportWells.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"doesWellPassFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/doesWellPassFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAOhE,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,WAAW,CAAC,EAU1D,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,0BAErC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,cAAc,EACpB,SAAS,WAAW,GAAG,IAAI,EAC3B,UAAU,0BAA0B,KACnC,OAiDF,CAAC"}
1
+ {"version":3,"file":"doesWellPassFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/doesWellPassFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAMhE,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,WAAW,CAAC,EAU1D,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,0BAErC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,cAAc,EACpB,SAAS,WAAW,GAAG,IAAI,EAC3B,UAAU,0BAA0B,KACnC,OA0CF,CAAC"}
@@ -1,2 +1,2 @@
1
- import r from"@babel/runtime/helpers/slicedToArray";import{getTimestampByPeriod as e}from"./getTimestampByPeriod.js";var i=/\sST0/,n=/workover/i,t=["status","companyId","rigName","programName","basin","county","area","formation","stringDesign"],a={excludeKeys:["rigName"]},l=function(a,l,u){var o;if(!l)return!0;var s,m=null==u?void 0:u.excludeKeys;if(!t.every((function(r){if(null!=m&&m.includes(r))return!0;var e=l[r];return!(Array.isArray(e)&&e.length>0)||e.includes(a[r])})))return!1;if(l.sideTracks&&i.test(null!==(o=a.name)&&void 0!==o?o:""))return!1;if(l.drillingWells&&(void 0===a.lastDrillingAt||n.test(null!==(s=a.name)&&void 0!==s?s:"")))return!1;var d=l.period,v=l.timeRangeFrom,f=l.timeRangeTo,c=e(d,v,f),g=r(c,2),y=g[0],p=g[1];if(null!==y&&null!==p&&Number.isFinite(y)&&Number.isFinite(p)){var b=a.lastActive;if(void 0===b||!(b>=y&&b<=p))return!1}return!0};export{a as EXCLUDE_RIG_NAME_FILTER,t as WELL_PROPERTY_FILTER_KEYS,l as doesWellPassFilters};
1
+ import r from"@babel/runtime/helpers/slicedToArray";import{getTimestampByPeriod as e}from"./getTimestampByPeriod.js";var i=/\sST0/,n=["status","companyId","rigName","programName","basin","county","area","formation","stringDesign"],t={excludeKeys:["rigName"]},a=function(t,a,u){var s;if(!a)return!0;var o=null==u?void 0:u.excludeKeys;if(!n.every((function(r){if(null!=o&&o.includes(r))return!0;var e=a[r];return!(Array.isArray(e)&&e.length>0)||e.includes(t[r])})))return!1;if(a.sideTracks&&i.test(null!==(s=t.name)&&void 0!==s?s:""))return!1;var l=a.period,m=a.timeRangeFrom,d=a.timeRangeTo,c=e(l,m,d),f=r(c,2),v=f[0],g=f[1];if(null!==v&&null!==g&&Number.isFinite(v)&&Number.isFinite(g)){var y=t.lastActive;if(void 0===y||!(y>=v&&y<=g))return!1}return!0};export{t as EXCLUDE_RIG_NAME_FILTER,n as WELL_PROPERTY_FILTER_KEYS,a as doesWellPassFilters};
2
2
  //# sourceMappingURL=doesWellPassFilters.js.map
@@ -0,0 +1,3 @@
1
+ import type { FilterableWell } from './doesWellPassFilters';
2
+ export declare const isDrillingOnlyWell: (well: FilterableWell) => boolean;
3
+ //# sourceMappingURL=isDrillingOnlyWell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDrillingOnlyWell.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,eAAO,MAAM,kBAAkB,GAAI,MAAM,cAAc,KAAG,OACkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ var r=/workover/i,t=function(t){var i;return void 0!==t.lastDrillingAt&&!r.test(null!==(i=t.name)&&void 0!==i?i:"")};export{t as isDrillingOnlyWell};
2
+ //# sourceMappingURL=isDrillingOnlyWell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDrillingOnlyWell.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -228,7 +228,7 @@ const validateDsn = (dsn) => {
228
228
 
229
229
  const MCP_SERVER_VERSION = '1.1.0';
230
230
 
231
- var version = "3.55.0-6";
231
+ var version = "3.55.0-8";
232
232
 
233
233
  const CORVA_UI_VERSION = version;
234
234
 
@@ -19963,6 +19963,34 @@ var clientsData = [
19963
19963
  required: false,
19964
19964
  description: "Filtering datetime with start/end"
19965
19965
  },
19966
+ {
19967
+ name: "active_before",
19968
+ "in": "query",
19969
+ type: "datetime",
19970
+ required: false,
19971
+ description: "Return records where last_active_at is smaller than the given timestamp"
19972
+ },
19973
+ {
19974
+ name: "active_after",
19975
+ "in": "query",
19976
+ type: "datetime",
19977
+ required: false,
19978
+ description: "Return records where last_active_at is greater than or equal to the given timestamp"
19979
+ },
19980
+ {
19981
+ name: "last_active_drilling_before",
19982
+ "in": "query",
19983
+ type: "datetime",
19984
+ required: false,
19985
+ description: "Return records where last_drilling_at is smaller than the given timestamp"
19986
+ },
19987
+ {
19988
+ name: "last_active_drilling_after",
19989
+ "in": "query",
19990
+ type: "datetime",
19991
+ required: false,
19992
+ description: "Return records where last_drilling_at is greater than or equal to the given timestamp"
19993
+ },
19966
19994
  {
19967
19995
  name: "include_rig_id",
19968
19996
  "in": "query",
@@ -54611,6 +54639,34 @@ var clientsData = [
54611
54639
  required: false,
54612
54640
  description: "Filtering datetime with start/end"
54613
54641
  },
54642
+ {
54643
+ name: "active_before",
54644
+ "in": "query",
54645
+ type: "datetime",
54646
+ required: false,
54647
+ description: "Return records where last_active_at is smaller than the given timestamp"
54648
+ },
54649
+ {
54650
+ name: "active_after",
54651
+ "in": "query",
54652
+ type: "datetime",
54653
+ required: false,
54654
+ description: "Return records where last_active_at is greater than or equal to the given timestamp"
54655
+ },
54656
+ {
54657
+ name: "last_active_drilling_before",
54658
+ "in": "query",
54659
+ type: "datetime",
54660
+ required: false,
54661
+ description: "Return records where last_drilling_at is smaller than the given timestamp"
54662
+ },
54663
+ {
54664
+ name: "last_active_drilling_after",
54665
+ "in": "query",
54666
+ type: "datetime",
54667
+ required: false,
54668
+ description: "Return records where last_drilling_at is greater than or equal to the given timestamp"
54669
+ },
54614
54670
  {
54615
54671
  name: "include_rig_id",
54616
54672
  "in": "query",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.55.0-6",
3
+ "version": "3.55.0-8",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "keywords": [