@corva/ui 3.53.0-6 → 3.53.0-7
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/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
- package/componentsV2/Autocomplete/Autocomplete.js +1 -1
- package/componentsV2/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/mcp-server/server.mjs +247 -65
- package/mcp-server/server.mjs.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/toConsumableArray"),o=require("@babel/runtime/helpers/typeof"),s=require("react/jsx-runtime"),t=require("@material-ui/lab"),i=require("react"),r=require("classnames"),c=require("../Popper/Popper.js"),u=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js"),require("../../icons/customIcons/icons/Global.js"),require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js");var l=require("./AutocompleteInput/AutocompleteInput.js"),a=require("./AutocompletePaper.js"),p=require("./utils.js"),d=require("./AutocompleteMenuItem.js"),m=require("./AutocompleteListBox.js"),f=require("./Autocomplete.scss.js");function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var I=j(e),O=j(n),q=j(o),b=j(r);function h(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,s)}return o}function C(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?h(Object(o),!0).forEach((function(n){I.default(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var g=function(e){var n=e.label,o=e.options,r=void 0===o?[]:o,j=e.value,h=e.onChange,g=e.multiple,v=e.renderOption,A=void 0===v?p.renderOptionDefault:v,x=e.optionSize,y=void 0===x?"medium":x,P=e.showPopupIcon,k=void 0===P||P,M=e.clearable,F=void 0===M||M,R=e.loading,w=e.noOptionsMessage,D=e.filterOptions,S=e.prefix,N=e.disabled,V=e.getOptionDisabled,z=e.renderSelected,L=void 0===z?p.renderSelectedValue:z,B=e.onInputChange,E=e.className,G=e.testId,T=e.status,U=e.message,W=e.useAllOption,_=void 0!==W&&W,Z=e.groupBy,H=e.renderGroup,J=e.disableFiltering,K=e.onCreate,Q=e.dropdownClassName,X=e.placeholder,Y=e.focusOnClear,$=void 0===Y||Y,ee=e.listboxComponent,ne=e.size,oe=void 0===ne?"small":ne,se=e.labelPlacement,te=void 0===se?"top":se,ie=e.elementsClassNames,re=e.type,ce=e.spacing,ue=e.isNext,le=i.useMemo((function(){if(!j||j instanceof Array&&0===j.length)return g?[]:null;var e=j instanceof Array?j:[j];if(g){var n=e.filter((function(e){return"object"!==q.default(e)})),o=e.filter((function(e){return"object"===q.default(e)})).map((function(e){return{id:e.id,title:e.title}})),s=r.filter((function(e){return n.includes(e.id)}));return[].concat(O.default(s),O.default(o))}return"object"===q.default(e[0])?e[0]:r.find((function(n){return e[0]===n.id}))||null}),[g,j,r]),ae=le instanceof Array&&le.length>0,pe=le instanceof Array&&le.length===r.length,de=R?"Loading ...":"No options",me=!F||!le||le instanceof Array&&!(null!=le&&le.length),fe=i.useCallback((function(e){return s.jsx(l.AutocompleteInput,C(C({},e),{},{label:n,loading:R,prefix:S,status:T,message:U,readOnly:J,placeholder:X,size:oe,labelPlacement:te,elementsClassNames:ie,type:re,spacing:ce,isNext:ue}))}),[n,R,S,T,U,J,X,oe,te,ie,re,ce,ue]),je=i.useCallback((function(e,n,o){if("clear"!==o||$||(e.stopPropagation(),e.preventDefault()),K&&n){var s=(n instanceof Array?n:[n]).find((function(e){return!p.isRealOption(e)&&!!e[p.CreateOptionMark]}));if(s)return void K(s.newOptionTitle||"")}if(g&&n instanceof Array&&n.some((function(e){return!p.isRealOption(e)&&!!e[p.AllOptionMark]})))return void(le instanceof Array&&le.length<r.length?null==h||h(r.filter(p.isRealOption),o,e):null==h||h([],o,e));null==h||h(n||void 0,o,e)}),[$,K,g,h,le,r]),Ie=i.useCallback((function(e,n){var o=n.selected;return p.isRealOption(e)?s.jsx(d.AutocompleteMenuItem,{size:y,selected:o,prefix:e.prefix,multiple:g,children:A(e)}):s.jsx(d.AutocompleteMenuItem,{size:y,selected:ae,indeterminate:ae&&!pe,multiple:g&&e[p.AllOptionMark],className:e[p.AllOptionMark]?f.sticky:void 0,children:e.title})}),[A,y,g,ae,pe]),Oe=i.useCallback((function(e,n){var o,s=D?D(e,n.inputValue):t.createFilterOptions()(e,n),i=_&&g&&s.length?[I.default({title:"All"},p.AllOptionMark,!0)].concat(O.default(s)):s;return K&&""!==n.inputValue.trim()?[].concat(O.default(i),[(o={title:'Add "'.concat(n.inputValue,'"')},I.default(o,p.CreateOptionMark,!0),I.default(o,"newOptionTitle",n.inputValue),o)]):i}),[D,K,_,g]),qe=i.useCallback((function(e){return p.isRealOption(e)&&!(null==V||!V(e))}),[V]),be=i.useCallback((function(e){return e.title}),[]),he=i.useCallback((function(e,n){var o=e.filter(p.isRealOption).map((function(e,o){return{option:e,onDelete:n({index:o}).onDelete}}));return L(o,{useAllOption:_,allOptions:r})}),[L,_,r]),Ce=i.useCallback((function(e,n,o){"reset"!==o&&(null==B||B(n,e))}),[B]),ge=i.useMemo((function(){if(Z)return function(e){return p.isRealOption(e)?Z(e):""}}),[Z]),ve=i.useMemo((function(){return{paper:Q}}),[Q]),Ae=i.useCallback((function(e,n){return!(!p.isRealOption(e)||!p.isRealOption(n))&&e.id===n.id}),[]),xe=t.Autocomplete;return s.jsx("div",{className:b.default(f.root,k&&f.withArrow,!me&&f.withClear,E),"data-testid":G,children:s.jsx(xe,{value:le,options:r,getOptionLabel:be,renderInput:fe,PopperComponent:c.Popper,PaperComponent:a.AutocompletePaper,multiple:g,disableCloseOnSelect:g,blurOnSelect:!g,onChange:je,renderOption:Ie,popupIcon:s.jsx(u.DownIcon,{size:16}),forcePopupIcon:!!k,closeIcon:s.jsx(u.CloseSmallIcon,{size:16}),disableClearable:me,clearText:"",noOptionsText:w||de,filterOptions:Oe,disabled:N,getOptionDisabled:qe,renderTags:he,onInputChange:Ce,groupBy:ge,renderGroup:H,clearOnBlur:!0,selectOnFocus:!J,classes:ve,getOptionSelected:Ae,ListboxComponent:null!=ee?ee:m.AutocompleteListBox})})},v=function(e){return g(C(C({},e),{},{isNext:!0}))};v.selectedValueRenderers={default:p.renderSelectedValue,chipsMultiline:p.renderSelectedValueChips},exports.Autocomplete=function(e){return g(C(C({},e),{},{isNext:!1}))},exports.AutocompleteNext=v;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/toConsumableArray"),o=require("@babel/runtime/helpers/typeof"),s=require("react/jsx-runtime"),t=require("@material-ui/lab"),i=require("react"),r=require("classnames"),c=require("../Popper/Popper.js"),u=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js"),require("../../icons/customIcons/icons/Global.js"),require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js");var l=require("./AutocompleteInput/AutocompleteInput.js"),a=require("./AutocompletePaper.js"),p=require("./utils.js"),d=require("./AutocompleteMenuItem.js"),m=require("./AutocompleteListBox.js"),f=require("./Autocomplete.scss.js");function j(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var I=j(e),O=j(n),q=j(o),b=j(r);function h(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,s)}return o}function C(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?h(Object(o),!0).forEach((function(n){I.default(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var g=function(e){var n=e.label,o=e.options,r=void 0===o?[]:o,j=e.value,h=e.onChange,g=e.multiple,v=e.renderOption,A=void 0===v?p.renderOptionDefault:v,x=e.optionSize,y=void 0===x?"medium":x,P=e.showPopupIcon,k=void 0===P||P,M=e.clearable,F=void 0===M||M,R=e.loading,w=e.noOptionsMessage,D=e.filterOptions,S=e.prefix,N=e.disabled,V=e.getOptionDisabled,z=e.renderSelected,L=void 0===z?p.renderSelectedValue:z,B=e.onInputChange,E=e.className,G=e.testId,T=e.status,U=e.message,W=e.useAllOption,_=void 0!==W&&W,Z=e.groupBy,H=e.renderGroup,J=e.disableFiltering,K=e.onCreate,Q=e.dropdownClassName,X=e.placeholder,Y=e.focusOnClear,$=void 0===Y||Y,ee=e.listboxComponent,ne=e.size,oe=void 0===ne?"small":ne,se=e.labelPlacement,te=void 0===se?"top":se,ie=e.elementsClassNames,re=e.type,ce=e.spacing,ue=e.isNext,le=i.useMemo((function(){if(!j||j instanceof Array&&0===j.length)return g?[]:null;var e=j instanceof Array?j:[j];if(g){var n=e.filter((function(e){return"object"!==q.default(e)})),o=e.filter((function(e){return"object"===q.default(e)})).map((function(e){return{id:e.id,title:e.title}})),s=r.filter((function(e){return n.includes(e.id)}));return[].concat(O.default(s),O.default(o))}return"object"===q.default(e[0])?e[0]:r.find((function(n){return e[0]===n.id}))||null}),[g,j,r]),ae=le instanceof Array&&le.length>0,pe=le instanceof Array&&le.length===r.length,de=R?"Loading ...":"No options",me=!F||!le||le instanceof Array&&!(null!=le&&le.length),fe=i.useCallback((function(e){return s.jsx(l.AutocompleteInput,C(C({},e),{},{label:n,loading:R,prefix:S,status:T,message:U,readOnly:J,placeholder:X,size:oe,labelPlacement:te,elementsClassNames:ie,type:re,spacing:ce,isNext:ue}))}),[n,R,S,T,U,J,X,oe,te,ie,re,ce,ue]),je=i.useCallback((function(e,n,o){if("clear"!==o||$||(e.stopPropagation(),e.preventDefault()),K&&n){var s=(n instanceof Array?n:[n]).find((function(e){return!p.isRealOption(e)&&!!e[p.CreateOptionMark]}));if(s)return void K(s.newOptionTitle||"")}if(g&&n instanceof Array&&n.some((function(e){return!p.isRealOption(e)&&!!e[p.AllOptionMark]})))return void(le instanceof Array&&le.length<r.length?null==h||h(r.filter(p.isRealOption),o,e):null==h||h([],o,e));null==h||h(n||void 0,o,e)}),[$,K,g,h,le,r]),Ie=i.useCallback((function(e,n){var o=n.selected;return p.isRealOption(e)?s.jsx(d.AutocompleteMenuItem,{size:y,selected:o,prefix:e.prefix,multiple:g,children:A(e)}):s.jsx(d.AutocompleteMenuItem,{size:y,selected:ae,indeterminate:ae&&!pe,multiple:g&&e[p.AllOptionMark],className:e[p.AllOptionMark]?f.sticky:void 0,children:e.title})}),[A,y,g,ae,pe]),Oe=i.useCallback((function(e,n){var o,s=D?D(e,n.inputValue):t.createFilterOptions()(e,n),i=_&&g&&s.length&&e.length>1?[I.default({title:"All"},p.AllOptionMark,!0)].concat(O.default(s)):s;return K&&""!==n.inputValue.trim()?[].concat(O.default(i),[(o={title:'Add "'.concat(n.inputValue,'"')},I.default(o,p.CreateOptionMark,!0),I.default(o,"newOptionTitle",n.inputValue),o)]):i}),[D,K,_,g]),qe=i.useCallback((function(e){return p.isRealOption(e)&&!(null==V||!V(e))}),[V]),be=i.useCallback((function(e){return e.title}),[]),he=i.useCallback((function(e,n){var o=e.filter(p.isRealOption).map((function(e,o){return{option:e,onDelete:n({index:o}).onDelete}}));return L(o,{useAllOption:_,allOptions:r})}),[L,_,r]),Ce=i.useCallback((function(e,n,o){"reset"!==o&&(null==B||B(n,e))}),[B]),ge=i.useMemo((function(){if(Z)return function(e){return p.isRealOption(e)?Z(e):""}}),[Z]),ve=i.useMemo((function(){return{paper:Q}}),[Q]),Ae=i.useCallback((function(e,n){return!(!p.isRealOption(e)||!p.isRealOption(n))&&e.id===n.id}),[]),xe=t.Autocomplete;return s.jsx("div",{className:b.default(f.root,k&&f.withArrow,!me&&f.withClear,E),"data-testid":G,children:s.jsx(xe,{value:le,options:r,getOptionLabel:be,renderInput:fe,PopperComponent:c.Popper,PaperComponent:a.AutocompletePaper,multiple:g,disableCloseOnSelect:g,blurOnSelect:!g,onChange:je,renderOption:Ie,popupIcon:s.jsx(u.DownIcon,{size:16}),forcePopupIcon:!!k,closeIcon:s.jsx(u.CloseSmallIcon,{size:16}),disableClearable:me,clearText:"",noOptionsText:w||de,filterOptions:Oe,disabled:N,getOptionDisabled:qe,renderTags:he,onInputChange:Ce,groupBy:ge,renderGroup:H,clearOnBlur:!0,selectOnFocus:!J,classes:ve,getOptionSelected:Ae,ListboxComponent:null!=ee?ee:m.AutocompleteListBox})})},v=function(e){return g(C(C({},e),{},{isNext:!0}))};v.selectedValueRenderers={default:p.renderSelectedValue,chipsMultiline:p.renderSelectedValueChips},exports.Autocomplete=function(e){return g(C(C({},e),{},{isNext:!1}))},exports.AutocompleteNext=v;
|
|
2
2
|
//# sourceMappingURL=Autocomplete.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/typeof";import{jsx as e}from"react/jsx-runtime";import{createFilterOptions as s,Autocomplete as i}from"@material-ui/lab";import{useMemo as c,useCallback as r}from"react";import l from"classnames";import{Popper as u}from"../Popper/Popper.js";import{DownIcon as p,CloseSmallIcon as m}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{AutocompleteInput as a}from"./AutocompleteInput/AutocompleteInput.js";import{AutocompletePaper as d}from"./AutocompletePaper.js";import{renderSelectedValue as f,renderSelectedValueChips as j,isRealOption as I,CreateOptionMark as b,AllOptionMark as O,renderOptionDefault as h}from"./utils.js";import{AutocompleteMenuItem as g}from"./AutocompleteMenuItem.js";import{AutocompleteListBox as v}from"./AutocompleteListBox.js";import C from"./Autocomplete.scss.js";function y(o,n){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable}))),t.push.apply(t,e)}return t}function A(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?y(Object(e),!0).forEach((function(t){o(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var P=function(j){var y=j.label,P=j.options,x=void 0===P?[]:P,F=j.value,w=j.onChange,D=j.multiple,N=j.renderOption,S=void 0===N?h:N,k=j.optionSize,z=void 0===k?"medium":k,L=j.showPopupIcon,M=void 0===L||L,R=j.clearable,E=void 0===R||R,G=j.loading,T=j.noOptionsMessage,V=j.filterOptions,B=j.prefix,U=j.disabled,q=j.getOptionDisabled,W=j.renderSelected,Z=void 0===W?f:W,H=j.onInputChange,J=j.className,K=j.testId,Q=j.status,X=j.message,Y=j.useAllOption,$=void 0!==Y&&Y,_=j.groupBy,oo=j.renderGroup,no=j.disableFiltering,to=j.onCreate,eo=j.dropdownClassName,so=j.placeholder,io=j.focusOnClear,co=void 0===io||io,ro=j.listboxComponent,lo=j.size,uo=void 0===lo?"small":lo,po=j.labelPlacement,mo=void 0===po?"top":po,ao=j.elementsClassNames,fo=j.type,jo=j.spacing,Io=j.isNext,bo=c((function(){if(!F||F instanceof Array&&0===F.length)return D?[]:null;var o=F instanceof Array?F:[F];if(D){var e=o.filter((function(o){return"object"!==t(o)})),s=o.filter((function(o){return"object"===t(o)})).map((function(o){return{id:o.id,title:o.title}})),i=x.filter((function(o){return e.includes(o.id)}));return[].concat(n(i),n(s))}return"object"===t(o[0])?o[0]:x.find((function(n){return o[0]===n.id}))||null}),[D,F,x]),Oo=bo instanceof Array&&bo.length>0,ho=bo instanceof Array&&bo.length===x.length,go=G?"Loading ...":"No options",vo=!E||!bo||bo instanceof Array&&!(null!=bo&&bo.length),Co=r((function(o){return e(a,A(A({},o),{},{label:y,loading:G,prefix:B,status:Q,message:X,readOnly:no,placeholder:so,size:uo,labelPlacement:mo,elementsClassNames:ao,type:fo,spacing:jo,isNext:Io}))}),[y,G,B,Q,X,no,so,uo,mo,ao,fo,jo,Io]),yo=r((function(o,n,t){if("clear"!==t||co||(o.stopPropagation(),o.preventDefault()),to&&n){var e=(n instanceof Array?n:[n]).find((function(o){return!I(o)&&!!o[b]}));if(e)return void to(e.newOptionTitle||"")}if(D&&n instanceof Array&&n.some((function(o){return!I(o)&&!!o[O]})))return void(bo instanceof Array&&bo.length<x.length?null==w||w(x.filter(I),t,o):null==w||w([],t,o));null==w||w(n||void 0,t,o)}),[co,to,D,w,bo,x]),Ao=r((function(o,n){var t=n.selected;return I(o)?e(g,{size:z,selected:t,prefix:o.prefix,multiple:D,children:S(o)}):e(g,{size:z,selected:Oo,indeterminate:Oo&&!ho,multiple:D&&o[O],className:o[O]?C.sticky:void 0,children:o.title})}),[S,z,D,Oo,ho]),Po=r((function(t,e){var i,c=V?V(t,e.inputValue):s()(t,e),r=$&&D&&c.length?[o({title:"All"},O,!0)].concat(n(c)):c;return to&&""!==e.inputValue.trim()?[].concat(n(r),[(i={title:'Add "'.concat(e.inputValue,'"')},o(i,b,!0),o(i,"newOptionTitle",e.inputValue),i)]):r}),[V,to,$,D]),xo=r((function(o){return I(o)&&!(null==q||!q(o))}),[q]),Fo=r((function(o){return o.title}),[]),wo=r((function(o,n){var t=o.filter(I).map((function(o,t){return{option:o,onDelete:n({index:t}).onDelete}}));return Z(t,{useAllOption:$,allOptions:x})}),[Z,$,x]),Do=r((function(o,n,t){"reset"!==t&&(null==H||H(n,o))}),[H]),No=c((function(){if(_)return function(o){return I(o)?_(o):""}}),[_]),So=c((function(){return{paper:eo}}),[eo]),ko=r((function(o,n){return!(!I(o)||!I(n))&&o.id===n.id}),[]),zo=i;return e("div",{className:l(C.root,M&&C.withArrow,!vo&&C.withClear,J),"data-testid":K,children:e(zo,{value:bo,options:x,getOptionLabel:Fo,renderInput:Co,PopperComponent:u,PaperComponent:d,multiple:D,disableCloseOnSelect:D,blurOnSelect:!D,onChange:yo,renderOption:Ao,popupIcon:e(p,{size:16}),forcePopupIcon:!!M,closeIcon:e(m,{size:16}),disableClearable:vo,clearText:"",noOptionsText:T||go,filterOptions:Po,disabled:U,getOptionDisabled:xo,renderTags:wo,onInputChange:Do,groupBy:No,renderGroup:oo,clearOnBlur:!0,selectOnFocus:!no,classes:So,getOptionSelected:ko,ListboxComponent:null!=ro?ro:v})})},x=function(o){return P(A(A({},o),{},{isNext:!1}))},F=function(o){return P(A(A({},o),{},{isNext:!0}))};F.selectedValueRenderers={default:f,chipsMultiline:j};export{x as Autocomplete,F as AutocompleteNext};
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/typeof";import{jsx as e}from"react/jsx-runtime";import{createFilterOptions as s,Autocomplete as i}from"@material-ui/lab";import{useMemo as c,useCallback as r}from"react";import l from"classnames";import{Popper as u}from"../Popper/Popper.js";import{DownIcon as p,CloseSmallIcon as m}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import{AutocompleteInput as a}from"./AutocompleteInput/AutocompleteInput.js";import{AutocompletePaper as d}from"./AutocompletePaper.js";import{renderSelectedValue as f,renderSelectedValueChips as j,isRealOption as I,CreateOptionMark as b,AllOptionMark as O,renderOptionDefault as h}from"./utils.js";import{AutocompleteMenuItem as g}from"./AutocompleteMenuItem.js";import{AutocompleteListBox as v}from"./AutocompleteListBox.js";import C from"./Autocomplete.scss.js";function y(o,n){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable}))),t.push.apply(t,e)}return t}function A(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?y(Object(e),!0).forEach((function(t){o(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var P=function(j){var y=j.label,P=j.options,x=void 0===P?[]:P,F=j.value,w=j.onChange,D=j.multiple,N=j.renderOption,S=void 0===N?h:N,k=j.optionSize,z=void 0===k?"medium":k,L=j.showPopupIcon,M=void 0===L||L,R=j.clearable,E=void 0===R||R,G=j.loading,T=j.noOptionsMessage,V=j.filterOptions,B=j.prefix,U=j.disabled,q=j.getOptionDisabled,W=j.renderSelected,Z=void 0===W?f:W,H=j.onInputChange,J=j.className,K=j.testId,Q=j.status,X=j.message,Y=j.useAllOption,$=void 0!==Y&&Y,_=j.groupBy,oo=j.renderGroup,no=j.disableFiltering,to=j.onCreate,eo=j.dropdownClassName,so=j.placeholder,io=j.focusOnClear,co=void 0===io||io,ro=j.listboxComponent,lo=j.size,uo=void 0===lo?"small":lo,po=j.labelPlacement,mo=void 0===po?"top":po,ao=j.elementsClassNames,fo=j.type,jo=j.spacing,Io=j.isNext,bo=c((function(){if(!F||F instanceof Array&&0===F.length)return D?[]:null;var o=F instanceof Array?F:[F];if(D){var e=o.filter((function(o){return"object"!==t(o)})),s=o.filter((function(o){return"object"===t(o)})).map((function(o){return{id:o.id,title:o.title}})),i=x.filter((function(o){return e.includes(o.id)}));return[].concat(n(i),n(s))}return"object"===t(o[0])?o[0]:x.find((function(n){return o[0]===n.id}))||null}),[D,F,x]),Oo=bo instanceof Array&&bo.length>0,ho=bo instanceof Array&&bo.length===x.length,go=G?"Loading ...":"No options",vo=!E||!bo||bo instanceof Array&&!(null!=bo&&bo.length),Co=r((function(o){return e(a,A(A({},o),{},{label:y,loading:G,prefix:B,status:Q,message:X,readOnly:no,placeholder:so,size:uo,labelPlacement:mo,elementsClassNames:ao,type:fo,spacing:jo,isNext:Io}))}),[y,G,B,Q,X,no,so,uo,mo,ao,fo,jo,Io]),yo=r((function(o,n,t){if("clear"!==t||co||(o.stopPropagation(),o.preventDefault()),to&&n){var e=(n instanceof Array?n:[n]).find((function(o){return!I(o)&&!!o[b]}));if(e)return void to(e.newOptionTitle||"")}if(D&&n instanceof Array&&n.some((function(o){return!I(o)&&!!o[O]})))return void(bo instanceof Array&&bo.length<x.length?null==w||w(x.filter(I),t,o):null==w||w([],t,o));null==w||w(n||void 0,t,o)}),[co,to,D,w,bo,x]),Ao=r((function(o,n){var t=n.selected;return I(o)?e(g,{size:z,selected:t,prefix:o.prefix,multiple:D,children:S(o)}):e(g,{size:z,selected:Oo,indeterminate:Oo&&!ho,multiple:D&&o[O],className:o[O]?C.sticky:void 0,children:o.title})}),[S,z,D,Oo,ho]),Po=r((function(t,e){var i,c=V?V(t,e.inputValue):s()(t,e),r=$&&D&&c.length&&t.length>1?[o({title:"All"},O,!0)].concat(n(c)):c;return to&&""!==e.inputValue.trim()?[].concat(n(r),[(i={title:'Add "'.concat(e.inputValue,'"')},o(i,b,!0),o(i,"newOptionTitle",e.inputValue),i)]):r}),[V,to,$,D]),xo=r((function(o){return I(o)&&!(null==q||!q(o))}),[q]),Fo=r((function(o){return o.title}),[]),wo=r((function(o,n){var t=o.filter(I).map((function(o,t){return{option:o,onDelete:n({index:t}).onDelete}}));return Z(t,{useAllOption:$,allOptions:x})}),[Z,$,x]),Do=r((function(o,n,t){"reset"!==t&&(null==H||H(n,o))}),[H]),No=c((function(){if(_)return function(o){return I(o)?_(o):""}}),[_]),So=c((function(){return{paper:eo}}),[eo]),ko=r((function(o,n){return!(!I(o)||!I(n))&&o.id===n.id}),[]),zo=i;return e("div",{className:l(C.root,M&&C.withArrow,!vo&&C.withClear,J),"data-testid":K,children:e(zo,{value:bo,options:x,getOptionLabel:Fo,renderInput:Co,PopperComponent:u,PaperComponent:d,multiple:D,disableCloseOnSelect:D,blurOnSelect:!D,onChange:yo,renderOption:Ao,popupIcon:e(p,{size:16}),forcePopupIcon:!!M,closeIcon:e(m,{size:16}),disableClearable:vo,clearText:"",noOptionsText:T||go,filterOptions:Po,disabled:U,getOptionDisabled:xo,renderTags:wo,onInputChange:Do,groupBy:No,renderGroup:oo,clearOnBlur:!0,selectOnFocus:!no,classes:So,getOptionSelected:ko,ListboxComponent:null!=ro?ro:v})})},x=function(o){return P(A(A({},o),{},{isNext:!1}))},F=function(o){return P(A(A({},o),{},{isNext:!0}))};F.selectedValueRenderers={default:f,chipsMultiline:j};export{x as Autocomplete,F as AutocompleteNext};
|
|
2
2
|
//# sourceMappingURL=Autocomplete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAiC,MAAM,OAAO,CAAC;AAQtE,OAAO,EAAE,YAAY,EAA6B,MAAM,gBAAgB,CAAC;AAYzE,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAsCF,eAAe,IAAI,CAAC;AAiBpB,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,gBAqBnC,CAAC;AAGF,eAAO,MAAM,KAAK,mBA4BjB,CAAC;AAOF,eAAO,MAAM,WAAW,mBAyBvB,CAAC;AAQF,eAAO,MAAM,MAAM,mBAQlB,CAAC;AAKF,eAAO,MAAM,kBAAkB,mBA0C9B,CAAC;AAOF,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAiC,MAAM,OAAO,CAAC;AAQtE,OAAO,EAAE,YAAY,EAA6B,MAAM,gBAAgB,CAAC;AAYzE,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAsCF,eAAe,IAAI,CAAC;AAiBpB,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,gBAqBnC,CAAC;AAGF,eAAO,MAAM,KAAK,mBA4BjB,CAAC;AAOF,eAAO,MAAM,WAAW,mBAyBvB,CAAC;AAQF,eAAO,MAAM,MAAM,mBAQlB,CAAC;AAKF,eAAO,MAAM,kBAAkB,mBA0C9B,CAAC;AAOF,eAAO,MAAM,QAAQ,mBA4BpB,CAAC;AAQF,eAAO,MAAM,gCAAgC,mBA6C5C,CAAC;AAOF,eAAO,MAAM,KAAK,mBAWjB,CAAC;AAMF,eAAO,MAAM,OAAO,mBAsBnB,CAAC;AAOF,eAAO,MAAM,OAAO,mBAmDnB,CAAC;AAQF,eAAO,MAAM,YAAY,mBAgBxB,CAAC;AAMF,eAAO,MAAM,kBAAkB,mBAgB9B,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBAuB9B,CAAC;AAQF,eAAO,MAAM,QAAQ,mBAYpB,CAAC;AAMF,eAAO,MAAM,MAAM,mBAUlB,CAAC;AAKF,eAAO,MAAM,uBAAuB,mBAyBnC,CAAC;AAMF,eAAO,MAAM,KAAK,mBAWjB,CAAC;AAMF,eAAO,MAAM,aAAa,mBAmCzB,CAAC;AAOF,eAAO,MAAM,UAAU,mBAsCtB,CAAC;AAOF,eAAO,MAAM,gBAAgB,mBAU5B,CAAC;AAOF,eAAO,MAAM,UAAU,mBAmCtB,CAAC;AAMF,eAAO,MAAM,iBAAiB,mBAO7B,CAAC"}
|
package/mcp-server/server.mjs
CHANGED
|
@@ -227,7 +227,7 @@ const validateDsn = (dsn) => {
|
|
|
227
227
|
|
|
228
228
|
const MCP_SERVER_VERSION = '1.0.0';
|
|
229
229
|
|
|
230
|
-
var version = "3.53.0-
|
|
230
|
+
var version = "3.53.0-7";
|
|
231
231
|
|
|
232
232
|
const CORVA_UI_VERSION = version;
|
|
233
233
|
|
|
@@ -1443,8 +1443,8 @@ var componentsV2Data = [
|
|
|
1443
1443
|
},
|
|
1444
1444
|
{
|
|
1445
1445
|
name: "Multiple",
|
|
1446
|
-
description: "Pass `multiple` prop to make component be able to select multiple values.\n\nUse `useAllOption` prop to add a special \"All\" option that allows user to quickly select all options.",
|
|
1447
|
-
code: "{\n const [value, setValue] = useState<number[]>([1]);\n\n const onChange = useCallback<AutocompleteChangeHandler<Option, true>>(value => {\n setValue(value.map(({ id }) => id));\n }, []);\n\n return (\n <SbColumn alignItems=\"stretch\">\n <Autocomplete multiple options={options} value={value} onChange={onChange} label=\"Multiple\" />\n <Autocomplete\n multiple\n options={options}\n value={value}\n onChange={onChange}\n label={'Multiple with \"All\" option'}\n useAllOption\n />\n </SbColumn>\n );\n}"
|
|
1446
|
+
description: "Pass `multiple` prop to make component be able to select multiple values.\n\nUse `useAllOption` prop to add a special \"All\" option that allows user to quickly select all options. This option will be visible only if there are several options to choose from",
|
|
1447
|
+
code: "{\n const [value, setValue] = useState<number[]>([1]);\n\n const onChange = useCallback<AutocompleteChangeHandler<Option, true>>(value => {\n setValue(value.map(({ id }) => id));\n }, []);\n\n return (\n <SbColumn alignItems=\"stretch\">\n <Autocomplete multiple options={options} value={value} onChange={onChange} label=\"Multiple\" />\n <Autocomplete\n multiple\n options={options}\n value={value}\n onChange={onChange}\n label={'Multiple with \"All\" option'}\n useAllOption\n />\n <Autocomplete\n multiple\n options={options.slice(0, 1)}\n value={value}\n onChange={onChange}\n label={'Multiple with \"All\" and only 1 option'}\n useAllOption\n />\n </SbColumn>\n );\n}"
|
|
1448
1448
|
},
|
|
1449
1449
|
{
|
|
1450
1450
|
name: "MultipleWithCustomSelectedRender",
|
|
@@ -73754,17 +73754,19 @@ var clientsData = [
|
|
|
73754
73754
|
"put",
|
|
73755
73755
|
"delete",
|
|
73756
73756
|
"many",
|
|
73757
|
+
"count",
|
|
73758
|
+
"list",
|
|
73757
73759
|
"aggregate",
|
|
73758
73760
|
"pipeline",
|
|
73759
|
-
"retrieve",
|
|
73760
|
-
"id",
|
|
73761
|
-
"update",
|
|
73762
|
-
"patch",
|
|
73763
73761
|
"batch_update",
|
|
73764
73762
|
"batch",
|
|
73763
|
+
"update",
|
|
73764
|
+
"patch",
|
|
73765
73765
|
"batch_update_with_object",
|
|
73766
73766
|
"with",
|
|
73767
73767
|
"object",
|
|
73768
|
+
"retrieve",
|
|
73769
|
+
"id",
|
|
73768
73770
|
"datasets",
|
|
73769
73771
|
"index",
|
|
73770
73772
|
"company",
|
|
@@ -73844,6 +73846,13 @@ var clientsData = [
|
|
|
73844
73846
|
required: false,
|
|
73845
73847
|
description: "Comma separated list of fields to return"
|
|
73846
73848
|
},
|
|
73849
|
+
{
|
|
73850
|
+
name: "include_count",
|
|
73851
|
+
"in": "query",
|
|
73852
|
+
type: "boolean",
|
|
73853
|
+
required: false,
|
|
73854
|
+
description: "Include total count of matching documents in Total header"
|
|
73855
|
+
},
|
|
73847
73856
|
{
|
|
73848
73857
|
name: "sort",
|
|
73849
73858
|
"in": "query",
|
|
@@ -73999,6 +74008,88 @@ var clientsData = [
|
|
|
73999
74008
|
}
|
|
74000
74009
|
}
|
|
74001
74010
|
},
|
|
74011
|
+
{
|
|
74012
|
+
path: "/api/v1/data/{provider}/{dataset}/count/",
|
|
74013
|
+
method: "GET",
|
|
74014
|
+
operationId: "count_api_v1_data__provider___dataset__count__get",
|
|
74015
|
+
summary: "Count Data",
|
|
74016
|
+
tags: [
|
|
74017
|
+
"data"
|
|
74018
|
+
],
|
|
74019
|
+
parameters: [
|
|
74020
|
+
{
|
|
74021
|
+
name: "provider",
|
|
74022
|
+
"in": "path",
|
|
74023
|
+
type: "string",
|
|
74024
|
+
required: true,
|
|
74025
|
+
description: ""
|
|
74026
|
+
},
|
|
74027
|
+
{
|
|
74028
|
+
name: "dataset",
|
|
74029
|
+
"in": "path",
|
|
74030
|
+
type: "string",
|
|
74031
|
+
required: true,
|
|
74032
|
+
description: ""
|
|
74033
|
+
},
|
|
74034
|
+
{
|
|
74035
|
+
name: "query",
|
|
74036
|
+
"in": "query",
|
|
74037
|
+
type: "string",
|
|
74038
|
+
required: true,
|
|
74039
|
+
description: "Search conditions"
|
|
74040
|
+
}
|
|
74041
|
+
],
|
|
74042
|
+
responses: {
|
|
74043
|
+
"200": {
|
|
74044
|
+
description: "Successful Response",
|
|
74045
|
+
schema: "{ count: number }"
|
|
74046
|
+
},
|
|
74047
|
+
"422": {
|
|
74048
|
+
description: "Validation Error",
|
|
74049
|
+
schema: "{ code: number, message: string }"
|
|
74050
|
+
}
|
|
74051
|
+
}
|
|
74052
|
+
},
|
|
74053
|
+
{
|
|
74054
|
+
path: "/api/v1/data/{provider}/{dataset}/list/",
|
|
74055
|
+
method: "POST",
|
|
74056
|
+
operationId: "listDataByProviderAndDataset",
|
|
74057
|
+
summary: "Find Data",
|
|
74058
|
+
tags: [
|
|
74059
|
+
"data"
|
|
74060
|
+
],
|
|
74061
|
+
parameters: [
|
|
74062
|
+
{
|
|
74063
|
+
name: "provider",
|
|
74064
|
+
"in": "path",
|
|
74065
|
+
type: "string",
|
|
74066
|
+
required: true,
|
|
74067
|
+
description: ""
|
|
74068
|
+
},
|
|
74069
|
+
{
|
|
74070
|
+
name: "dataset",
|
|
74071
|
+
"in": "path",
|
|
74072
|
+
type: "string",
|
|
74073
|
+
required: true,
|
|
74074
|
+
description: ""
|
|
74075
|
+
}
|
|
74076
|
+
],
|
|
74077
|
+
requestBody: {
|
|
74078
|
+
contentType: "application/json",
|
|
74079
|
+
schema: "{ query: object, sort: { sort: object }, skip: number, limit: number, fields: string, ... }",
|
|
74080
|
+
required: true
|
|
74081
|
+
},
|
|
74082
|
+
responses: {
|
|
74083
|
+
"200": {
|
|
74084
|
+
description: "Successful Response",
|
|
74085
|
+
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }[]"
|
|
74086
|
+
},
|
|
74087
|
+
"422": {
|
|
74088
|
+
description: "Validation Error",
|
|
74089
|
+
schema: "{ code: number, message: string }"
|
|
74090
|
+
}
|
|
74091
|
+
}
|
|
74092
|
+
},
|
|
74002
74093
|
{
|
|
74003
74094
|
path: "/api/v1/data/{provider}/{dataset}/aggregate/",
|
|
74004
74095
|
method: "GET",
|
|
@@ -74159,10 +74250,10 @@ var clientsData = [
|
|
|
74159
74250
|
}
|
|
74160
74251
|
},
|
|
74161
74252
|
{
|
|
74162
|
-
path: "/api/v1/data/{provider}/{dataset}/
|
|
74163
|
-
method: "
|
|
74164
|
-
operationId: "
|
|
74165
|
-
summary: "
|
|
74253
|
+
path: "/api/v1/data/{provider}/{dataset}/batch_update/",
|
|
74254
|
+
method: "PATCH",
|
|
74255
|
+
operationId: "batch_update_api_v1_data__provider___dataset__batch_update__patch",
|
|
74256
|
+
summary: "Batch Document Update",
|
|
74166
74257
|
tags: [
|
|
74167
74258
|
"data"
|
|
74168
74259
|
],
|
|
@@ -74180,19 +74271,17 @@ var clientsData = [
|
|
|
74180
74271
|
type: "string",
|
|
74181
74272
|
required: true,
|
|
74182
74273
|
description: ""
|
|
74183
|
-
},
|
|
74184
|
-
{
|
|
74185
|
-
name: "id",
|
|
74186
|
-
"in": "path",
|
|
74187
|
-
type: "string",
|
|
74188
|
-
required: true,
|
|
74189
|
-
description: ""
|
|
74190
74274
|
}
|
|
74191
74275
|
],
|
|
74276
|
+
requestBody: {
|
|
74277
|
+
contentType: "application/json",
|
|
74278
|
+
schema: "{ company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number | null, ... }[]",
|
|
74279
|
+
required: false
|
|
74280
|
+
},
|
|
74192
74281
|
responses: {
|
|
74193
74282
|
"200": {
|
|
74194
74283
|
description: "Successful Response",
|
|
74195
|
-
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }"
|
|
74284
|
+
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }[]"
|
|
74196
74285
|
},
|
|
74197
74286
|
"422": {
|
|
74198
74287
|
description: "Validation Error",
|
|
@@ -74201,10 +74290,10 @@ var clientsData = [
|
|
|
74201
74290
|
}
|
|
74202
74291
|
},
|
|
74203
74292
|
{
|
|
74204
|
-
path: "/api/v1/data/{provider}/{dataset}/
|
|
74205
|
-
method: "
|
|
74206
|
-
operationId: "
|
|
74207
|
-
summary: "
|
|
74293
|
+
path: "/api/v1/data/{provider}/{dataset}/batch_update_with_object/",
|
|
74294
|
+
method: "PATCH",
|
|
74295
|
+
operationId: "batch_update_with_object_api_v1_data__provider___dataset__batch_update_with_object__patch",
|
|
74296
|
+
summary: "Batch Document Update with single object value",
|
|
74208
74297
|
tags: [
|
|
74209
74298
|
"data"
|
|
74210
74299
|
],
|
|
@@ -74222,24 +74311,17 @@ var clientsData = [
|
|
|
74222
74311
|
type: "string",
|
|
74223
74312
|
required: true,
|
|
74224
74313
|
description: ""
|
|
74225
|
-
},
|
|
74226
|
-
{
|
|
74227
|
-
name: "id",
|
|
74228
|
-
"in": "path",
|
|
74229
|
-
type: "string",
|
|
74230
|
-
required: true,
|
|
74231
|
-
description: ""
|
|
74232
74314
|
}
|
|
74233
74315
|
],
|
|
74234
74316
|
requestBody: {
|
|
74235
74317
|
contentType: "application/json",
|
|
74236
|
-
schema: "{ company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number, ... }",
|
|
74318
|
+
schema: "{ data: { company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number, ... }, query: string, limit: number, batch: number, sort: { sort: object } }",
|
|
74237
74319
|
required: true
|
|
74238
74320
|
},
|
|
74239
74321
|
responses: {
|
|
74240
74322
|
"200": {
|
|
74241
74323
|
description: "Successful Response",
|
|
74242
|
-
schema: "{
|
|
74324
|
+
schema: "{ updated_count: number }"
|
|
74243
74325
|
},
|
|
74244
74326
|
"422": {
|
|
74245
74327
|
description: "Validation Error",
|
|
@@ -74249,9 +74331,9 @@ var clientsData = [
|
|
|
74249
74331
|
},
|
|
74250
74332
|
{
|
|
74251
74333
|
path: "/api/v1/data/{provider}/{dataset}/{id}/",
|
|
74252
|
-
method: "
|
|
74253
|
-
operationId: "
|
|
74254
|
-
summary: "
|
|
74334
|
+
method: "GET",
|
|
74335
|
+
operationId: "retrieve_api_v1_data__provider___dataset___id___get",
|
|
74336
|
+
summary: "Load Record",
|
|
74255
74337
|
tags: [
|
|
74256
74338
|
"data"
|
|
74257
74339
|
],
|
|
@@ -74278,11 +74360,6 @@ var clientsData = [
|
|
|
74278
74360
|
description: ""
|
|
74279
74361
|
}
|
|
74280
74362
|
],
|
|
74281
|
-
requestBody: {
|
|
74282
|
-
contentType: "application/json",
|
|
74283
|
-
schema: "{ company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number, ... }",
|
|
74284
|
-
required: true
|
|
74285
|
-
},
|
|
74286
74363
|
responses: {
|
|
74287
74364
|
"200": {
|
|
74288
74365
|
description: "Successful Response",
|
|
@@ -74296,9 +74373,9 @@ var clientsData = [
|
|
|
74296
74373
|
},
|
|
74297
74374
|
{
|
|
74298
74375
|
path: "/api/v1/data/{provider}/{dataset}/{id}/",
|
|
74299
|
-
method: "
|
|
74300
|
-
operationId: "
|
|
74301
|
-
summary: "
|
|
74376
|
+
method: "PUT",
|
|
74377
|
+
operationId: "replace_api_v1_data__provider___dataset___id___put",
|
|
74378
|
+
summary: "Replace Document",
|
|
74302
74379
|
tags: [
|
|
74303
74380
|
"data"
|
|
74304
74381
|
],
|
|
@@ -74325,10 +74402,15 @@ var clientsData = [
|
|
|
74325
74402
|
description: ""
|
|
74326
74403
|
}
|
|
74327
74404
|
],
|
|
74405
|
+
requestBody: {
|
|
74406
|
+
contentType: "application/json",
|
|
74407
|
+
schema: "{ company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number, ... }",
|
|
74408
|
+
required: true
|
|
74409
|
+
},
|
|
74328
74410
|
responses: {
|
|
74329
74411
|
"200": {
|
|
74330
74412
|
description: "Successful Response",
|
|
74331
|
-
schema: "{
|
|
74413
|
+
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }"
|
|
74332
74414
|
},
|
|
74333
74415
|
"422": {
|
|
74334
74416
|
description: "Validation Error",
|
|
@@ -74337,10 +74419,10 @@ var clientsData = [
|
|
|
74337
74419
|
}
|
|
74338
74420
|
},
|
|
74339
74421
|
{
|
|
74340
|
-
path: "/api/v1/data/{provider}/{dataset}/
|
|
74422
|
+
path: "/api/v1/data/{provider}/{dataset}/{id}/",
|
|
74341
74423
|
method: "PATCH",
|
|
74342
|
-
operationId: "
|
|
74343
|
-
summary: "
|
|
74424
|
+
operationId: "update_api_v1_data__provider___dataset___id___patch",
|
|
74425
|
+
summary: "Update Document",
|
|
74344
74426
|
tags: [
|
|
74345
74427
|
"data"
|
|
74346
74428
|
],
|
|
@@ -74358,17 +74440,24 @@ var clientsData = [
|
|
|
74358
74440
|
type: "string",
|
|
74359
74441
|
required: true,
|
|
74360
74442
|
description: ""
|
|
74443
|
+
},
|
|
74444
|
+
{
|
|
74445
|
+
name: "id",
|
|
74446
|
+
"in": "path",
|
|
74447
|
+
type: "string",
|
|
74448
|
+
required: true,
|
|
74449
|
+
description: ""
|
|
74361
74450
|
}
|
|
74362
74451
|
],
|
|
74363
74452
|
requestBody: {
|
|
74364
74453
|
contentType: "application/json",
|
|
74365
|
-
schema: "{ company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number
|
|
74366
|
-
required:
|
|
74454
|
+
schema: "{ company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number, ... }",
|
|
74455
|
+
required: true
|
|
74367
74456
|
},
|
|
74368
74457
|
responses: {
|
|
74369
74458
|
"200": {
|
|
74370
74459
|
description: "Successful Response",
|
|
74371
|
-
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }
|
|
74460
|
+
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }"
|
|
74372
74461
|
},
|
|
74373
74462
|
"422": {
|
|
74374
74463
|
description: "Validation Error",
|
|
@@ -74377,10 +74466,10 @@ var clientsData = [
|
|
|
74377
74466
|
}
|
|
74378
74467
|
},
|
|
74379
74468
|
{
|
|
74380
|
-
path: "/api/v1/data/{provider}/{dataset}/
|
|
74381
|
-
method: "
|
|
74382
|
-
operationId: "
|
|
74383
|
-
summary: "
|
|
74469
|
+
path: "/api/v1/data/{provider}/{dataset}/{id}/",
|
|
74470
|
+
method: "DELETE",
|
|
74471
|
+
operationId: "delete_api_v1_data__provider___dataset___id___delete",
|
|
74472
|
+
summary: "Delete Document",
|
|
74384
74473
|
tags: [
|
|
74385
74474
|
"data"
|
|
74386
74475
|
],
|
|
@@ -74398,17 +74487,19 @@ var clientsData = [
|
|
|
74398
74487
|
type: "string",
|
|
74399
74488
|
required: true,
|
|
74400
74489
|
description: ""
|
|
74490
|
+
},
|
|
74491
|
+
{
|
|
74492
|
+
name: "id",
|
|
74493
|
+
"in": "path",
|
|
74494
|
+
type: "string",
|
|
74495
|
+
required: true,
|
|
74496
|
+
description: ""
|
|
74401
74497
|
}
|
|
74402
74498
|
],
|
|
74403
|
-
requestBody: {
|
|
74404
|
-
contentType: "application/json",
|
|
74405
|
-
schema: "{ data: { company_id: number | null, provider: string | null, collection: string | null, asset_id: number | null, version: number, ... }, query: string, limit: number, batch: number, sort: { sort: object } }",
|
|
74406
|
-
required: true
|
|
74407
|
-
},
|
|
74408
74499
|
responses: {
|
|
74409
74500
|
"200": {
|
|
74410
74501
|
description: "Successful Response",
|
|
74411
|
-
schema: "{
|
|
74502
|
+
schema: "{ deleted_docs: object[], failed_count: number }"
|
|
74412
74503
|
},
|
|
74413
74504
|
"422": {
|
|
74414
74505
|
description: "Validation Error",
|
|
@@ -75103,6 +75194,13 @@ var clientsData = [
|
|
|
75103
75194
|
required: false,
|
|
75104
75195
|
description: "Comma separated list of fields to return"
|
|
75105
75196
|
},
|
|
75197
|
+
{
|
|
75198
|
+
name: "include_count",
|
|
75199
|
+
"in": "query",
|
|
75200
|
+
type: "boolean",
|
|
75201
|
+
required: false,
|
|
75202
|
+
description: "Include total count of matching documents in Total header"
|
|
75203
|
+
},
|
|
75106
75204
|
{
|
|
75107
75205
|
name: "sort",
|
|
75108
75206
|
"in": "query",
|
|
@@ -75675,6 +75773,88 @@ var clientsData = [
|
|
|
75675
75773
|
}
|
|
75676
75774
|
}
|
|
75677
75775
|
},
|
|
75776
|
+
{
|
|
75777
|
+
path: "/api/v1/data/{provider}/{dataset}/count/",
|
|
75778
|
+
method: "GET",
|
|
75779
|
+
operationId: "count_api_v1_data__provider___dataset__count__get",
|
|
75780
|
+
summary: "Count Data",
|
|
75781
|
+
tags: [
|
|
75782
|
+
"data"
|
|
75783
|
+
],
|
|
75784
|
+
parameters: [
|
|
75785
|
+
{
|
|
75786
|
+
name: "provider",
|
|
75787
|
+
"in": "path",
|
|
75788
|
+
type: "string",
|
|
75789
|
+
required: true,
|
|
75790
|
+
description: ""
|
|
75791
|
+
},
|
|
75792
|
+
{
|
|
75793
|
+
name: "dataset",
|
|
75794
|
+
"in": "path",
|
|
75795
|
+
type: "string",
|
|
75796
|
+
required: true,
|
|
75797
|
+
description: ""
|
|
75798
|
+
},
|
|
75799
|
+
{
|
|
75800
|
+
name: "query",
|
|
75801
|
+
"in": "query",
|
|
75802
|
+
type: "string",
|
|
75803
|
+
required: true,
|
|
75804
|
+
description: "Search conditions"
|
|
75805
|
+
}
|
|
75806
|
+
],
|
|
75807
|
+
responses: {
|
|
75808
|
+
"200": {
|
|
75809
|
+
description: "Successful Response",
|
|
75810
|
+
schema: "{ count: number }"
|
|
75811
|
+
},
|
|
75812
|
+
"422": {
|
|
75813
|
+
description: "Validation Error",
|
|
75814
|
+
schema: "{ code: number, message: string }"
|
|
75815
|
+
}
|
|
75816
|
+
}
|
|
75817
|
+
},
|
|
75818
|
+
{
|
|
75819
|
+
path: "/api/v1/data/{provider}/{dataset}/list/",
|
|
75820
|
+
method: "POST",
|
|
75821
|
+
operationId: "listDataByProviderAndDataset",
|
|
75822
|
+
summary: "Find Data",
|
|
75823
|
+
tags: [
|
|
75824
|
+
"data"
|
|
75825
|
+
],
|
|
75826
|
+
parameters: [
|
|
75827
|
+
{
|
|
75828
|
+
name: "provider",
|
|
75829
|
+
"in": "path",
|
|
75830
|
+
type: "string",
|
|
75831
|
+
required: true,
|
|
75832
|
+
description: ""
|
|
75833
|
+
},
|
|
75834
|
+
{
|
|
75835
|
+
name: "dataset",
|
|
75836
|
+
"in": "path",
|
|
75837
|
+
type: "string",
|
|
75838
|
+
required: true,
|
|
75839
|
+
description: ""
|
|
75840
|
+
}
|
|
75841
|
+
],
|
|
75842
|
+
requestBody: {
|
|
75843
|
+
contentType: "application/json",
|
|
75844
|
+
schema: "{ query: object, sort: { sort: object }, skip: number, limit: number, fields: string, ... }",
|
|
75845
|
+
required: true
|
|
75846
|
+
},
|
|
75847
|
+
responses: {
|
|
75848
|
+
"200": {
|
|
75849
|
+
description: "Successful Response",
|
|
75850
|
+
schema: "{ _id: string | null, company_id: number | null, asset_id: number | null, version: number, provider: string, ... }[]"
|
|
75851
|
+
},
|
|
75852
|
+
"422": {
|
|
75853
|
+
description: "Validation Error",
|
|
75854
|
+
schema: "{ code: number, message: string }"
|
|
75855
|
+
}
|
|
75856
|
+
}
|
|
75857
|
+
},
|
|
75678
75858
|
{
|
|
75679
75859
|
path: "/api/v1/message_producer/",
|
|
75680
75860
|
method: "POST",
|
|
@@ -84473,17 +84653,19 @@ var entries = [
|
|
|
84473
84653
|
"put",
|
|
84474
84654
|
"delete",
|
|
84475
84655
|
"many",
|
|
84656
|
+
"count",
|
|
84657
|
+
"list",
|
|
84476
84658
|
"aggregate",
|
|
84477
84659
|
"pipeline",
|
|
84478
|
-
"retrieve",
|
|
84479
|
-
"id",
|
|
84480
|
-
"update",
|
|
84481
|
-
"patch",
|
|
84482
84660
|
"batch_update",
|
|
84483
84661
|
"batch",
|
|
84662
|
+
"update",
|
|
84663
|
+
"patch",
|
|
84484
84664
|
"batch_update_with_object",
|
|
84485
84665
|
"with",
|
|
84486
84666
|
"object",
|
|
84667
|
+
"retrieve",
|
|
84668
|
+
"id",
|
|
84487
84669
|
"datasets",
|
|
84488
84670
|
"index",
|
|
84489
84671
|
"company",
|
|
@@ -84505,7 +84687,7 @@ var entries = [
|
|
|
84505
84687
|
],
|
|
84506
84688
|
category: "clients",
|
|
84507
84689
|
importPath: "@corva/ui/clients",
|
|
84508
|
-
searchText: "corvadataapi data api client for corva platform. used for data-specific endpoints with automatic url configuration. api data http request fetch rest metrics get v1 by provider and dataset create post replace put delete many aggregate pipeline
|
|
84690
|
+
searchText: "corvadataapi data api client for corva platform. used for data-specific endpoints with automatic url configuration. api data http request fetch rest metrics get v1 by provider and dataset create post replace put delete many count list aggregate pipeline batch_update batch update patch batch_update_with_object with object retrieve id datasets index company name check perform action message_producer produce message producer app key subscriptions publish asset"
|
|
84509
84691
|
},
|
|
84510
84692
|
{
|
|
84511
84693
|
id: "client-socketClient",
|