shared-ritm 1.2.91 → 1.2.92

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.
@@ -16462,10 +16462,9 @@ class U3 extends Zn {
16462
16462
  status: "issued",
16463
16463
  page: t,
16464
16464
  desc: "desc",
16465
- column: "updated_at",
16466
- "users[0]": n
16465
+ column: "issued_in"
16467
16466
  };
16468
- return await this.get("search/warehouses", { params: r });
16467
+ return await this.get(`users/${n}/instruments`, { params: r });
16469
16468
  }
16470
16469
  }
16471
16470
  let dl;
@@ -4,7 +4,7 @@
4
4
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(g){return g instanceof this?g:new this(g)}static concat(g,...B){const Q=new this(g);return B.forEach(w=>Q.set(w)),Q}static accessor(g){const Q=(this[rY]=this[rY]={accessors:{}}).accessors,w=this.prototype;function C(E){const e=JC(E);Q[e]||(Ed(w,E),Q[e]=!0)}return _.isArray(g)?g.forEach(C):C(g),this}};rg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(rg.prototype,({value:A},g)=>{let B=g[0].toUpperCase()+g.slice(1);return{get:()=>A,set(Q){this[B]=Q}}}),_.freezeMethods(rg);function ro(A,g){const B=this||fC,Q=g||B,w=rg.from(Q.headers);let C=Q.data;return _.forEach(A,function(e){C=e.call(B,C,w.normalize(),g?g.status:void 0)}),w.normalize(),C}function DY(A){return!!(A&&A.__CANCEL__)}function pw(A,g,B){ZA.call(this,A??"canceled",ZA.ERR_CANCELED,g,B),this.name="CanceledError"}_.inherits(pw,ZA,{__CANCEL__:!0});function FY(A,g,B){const Q=B.config.validateStatus;!B.status||!Q||Q(B.status)?A(B):g(new ZA("Request failed with status code "+B.status,[ZA.ERR_BAD_REQUEST,ZA.ERR_BAD_RESPONSE][Math.floor(B.status/100)-4],B.config,B.request,B))}function ed(A){const g=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return g&&g[1]||""}function Id(A,g){A=A||10;const B=new Array(A),Q=new Array(A);let w=0,C=0,E;return g=g!==void 0?g:1e3,function(I){const o=Date.now(),n=Q[C];E||(E=o),B[w]=I,Q[w]=o;let i=C,c=0;for(;i!==w;)c+=B[i++],i=i%A;if(w=(w+1)%A,w===C&&(C=(C+1)%A),o-E<g)return;const Y=n&&o-n;return Y?Math.round(c*1e3/Y):void 0}}function od(A,g){let B=0,Q=1e3/g,w,C;const E=(o,n=Date.now())=>{B=n,w=null,C&&(clearTimeout(C),C=null),A.apply(null,o)};return[(...o)=>{const n=Date.now(),i=n-B;i>=Q?E(o,n):(w=o,C||(C=setTimeout(()=>{C=null,E(w)},Q-i)))},()=>w&&E(w)]}const KE=(A,g,B=3)=>{let Q=0;const w=Id(50,250);return od(C=>{const E=C.loaded,e=C.lengthComputable?C.total:void 0,I=E-Q,o=w(I),n=E<=e;Q=E;const i={loaded:E,total:e,progress:e?E/e:void 0,bytes:I,rate:o||void 0,estimated:o&&e&&n?(e-E)/o:void 0,event:C,lengthComputable:e!=null,[g?"download":"upload"]:!0};A(i)},B)},aY=(A,g)=>{const B=A!=null;return[Q=>g[0]({lengthComputable:B,total:A,loaded:Q}),g[1]]},sY=A=>(...g)=>_.asap(()=>A(...g)),td=wg.hasStandardBrowserEnv?((A,g)=>B=>(B=new URL(B,wg.origin),A.protocol===B.protocol&&A.host===B.host&&(g||A.port===B.port)))(new URL(wg.origin),wg.navigator&&/(msie|trident)/i.test(wg.navigator.userAgent)):()=>!0,nd=wg.hasStandardBrowserEnv?{write(A,g,B,Q,w,C){const E=[A+"="+encodeURIComponent(g)];_.isNumber(B)&&E.push("expires="+new Date(B).toGMTString()),_.isString(Q)&&E.push("path="+Q),_.isString(w)&&E.push("domain="+w),C===!0&&E.push("secure"),document.cookie=E.join("; ")},read(A){const g=document.cookie.match(new RegExp("(^|;\\s*)("+A+")=([^;]*)"));return g?decodeURIComponent(g[3]):null},remove(A){this.write(A,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function id(A){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(A)}function cd(A,g){return g?A.replace(/\/?\/$/,"")+"/"+g.replace(/^\/+/,""):A}function uY(A,g,B){let Q=!id(g);return A&&(Q||B==!1)?cd(A,g):g}const UY=A=>A instanceof rg?{...A}:A;function _Q(A,g){g=g||{};const B={};function Q(o,n,i,c){return _.isPlainObject(o)&&_.isPlainObject(n)?_.merge.call({caseless:c},o,n):_.isPlainObject(n)?_.merge({},n):_.isArray(n)?n.slice():n}function w(o,n,i,c){if(_.isUndefined(n)){if(!_.isUndefined(o))return Q(void 0,o,i,c)}else return Q(o,n,i,c)}function C(o,n){if(!_.isUndefined(n))return Q(void 0,n)}function E(o,n){if(_.isUndefined(n)){if(!_.isUndefined(o))return Q(void 0,o)}else return Q(void 0,n)}function e(o,n,i){if(i in g)return Q(o,n);if(i in A)return Q(void 0,o)}const I={url:C,method:C,data:C,baseURL:E,transformRequest:E,transformResponse:E,paramsSerializer:E,timeout:E,timeoutMessage:E,withCredentials:E,withXSRFToken:E,adapter:E,responseType:E,xsrfCookieName:E,xsrfHeaderName:E,onUploadProgress:E,onDownloadProgress:E,decompress:E,maxContentLength:E,maxBodyLength:E,beforeRedirect:E,transport:E,httpAgent:E,httpsAgent:E,cancelToken:E,socketPath:E,responseEncoding:E,validateStatus:e,headers:(o,n,i)=>w(UY(o),UY(n),i,!0)};return _.forEach(Object.keys(Object.assign({},A,g)),function(n){const i=I[n]||w,c=i(A[n],g[n],n);_.isUndefined(c)&&i!==e||(B[n]=c)}),B}const lY=A=>{const g=_Q({},A);let{data:B,withXSRFToken:Q,xsrfHeaderName:w,xsrfCookieName:C,headers:E,auth:e}=g;g.headers=E=rg.from(E),g.url=iY(uY(g.baseURL,g.url,g.allowAbsoluteUrls),A.params,A.paramsSerializer),e&&E.set("Authorization","Basic "+btoa((e.username||"")+":"+(e.password?unescape(encodeURIComponent(e.password)):"")));let I;if(_.isFormData(B)){if(wg.hasStandardBrowserEnv||wg.hasStandardBrowserWebWorkerEnv)E.setContentType(void 0);else if((I=E.getContentType())!==!1){const[o,...n]=I?I.split(";").map(i=>i.trim()).filter(Boolean):[];E.setContentType([o||"multipart/form-data",...n].join("; "))}}if(wg.hasStandardBrowserEnv&&(Q&&_.isFunction(Q)&&(Q=Q(g)),Q||Q!==!1&&td(g.url))){const o=w&&C&&nd.read(C);o&&E.set(w,o)}return g},Yd=typeof XMLHttpRequest<"u"&&function(A){return new Promise(function(B,Q){const w=lY(A);let C=w.data;const E=rg.from(w.headers).normalize();let{responseType:e,onUploadProgress:I,onDownloadProgress:o}=w,n,i,c,Y,M;function r(){Y&&Y(),M&&M(),w.cancelToken&&w.cancelToken.unsubscribe(n),w.signal&&w.signal.removeEventListener("abort",n)}let D=new XMLHttpRequest;D.open(w.method.toUpperCase(),w.url,!0),D.timeout=w.timeout;function F(){if(!D)return;const s=rg.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders()),U={data:!e||e==="text"||e==="json"?D.responseText:D.response,status:D.status,statusText:D.statusText,headers:s,config:A,request:D};FY(function(d){B(d),r()},function(d){Q(d),r()},U),D=null}"onloadend"in D?D.onloadend=F:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.indexOf("file:")===0)||setTimeout(F)},D.onabort=function(){D&&(Q(new ZA("Request aborted",ZA.ECONNABORTED,A,D)),D=null)},D.onerror=function(){Q(new ZA("Network Error",ZA.ERR_NETWORK,A,D)),D=null},D.ontimeout=function(){let a=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded";const U=w.transitional||YY;w.timeoutErrorMessage&&(a=w.timeoutErrorMessage),Q(new ZA(a,U.clarifyTimeoutError?ZA.ETIMEDOUT:ZA.ECONNABORTED,A,D)),D=null},C===void 0&&E.setContentType(null),"setRequestHeader"in D&&_.forEach(E.toJSON(),function(a,U){D.setRequestHeader(U,a)}),_.isUndefined(w.withCredentials)||(D.withCredentials=!!w.withCredentials),e&&e!=="json"&&(D.responseType=w.responseType),o&&([c,M]=KE(o,!0),D.addEventListener("progress",c)),I&&D.upload&&([i,Y]=KE(I),D.upload.addEventListener("progress",i),D.upload.addEventListener("loadend",Y)),(w.cancelToken||w.signal)&&(n=s=>{D&&(Q(!s||s.type?new pw(null,A,D):s),D.abort(),D=null)},w.cancelToken&&w.cancelToken.subscribe(n),w.signal&&(w.signal.aborted?n():w.signal.addEventListener("abort",n)));const u=ed(w.url);if(u&&wg.protocols.indexOf(u)===-1){Q(new ZA("Unsupported protocol "+u+":",ZA.ERR_BAD_REQUEST,A));return}D.send(C||null)})},Md=(A,g)=>{const{length:B}=A=A?A.filter(Boolean):[];if(g||B){let Q=new AbortController,w;const C=function(o){if(!w){w=!0,e();const n=o instanceof Error?o:this.reason;Q.abort(n instanceof ZA?n:new pw(n instanceof Error?n.message:n))}};let E=g&&setTimeout(()=>{E=null,C(new ZA(`timeout ${g} of ms exceeded`,ZA.ETIMEDOUT))},g);const e=()=>{A&&(E&&clearTimeout(E),E=null,A.forEach(o=>{o.unsubscribe?o.unsubscribe(C):o.removeEventListener("abort",C)}),A=null)};A.forEach(o=>o.addEventListener("abort",C));const{signal:I}=Q;return I.unsubscribe=()=>_.asap(e),I}},rd=function*(A,g){let B=A.byteLength;if(B<g){yield A;return}let Q=0,w;for(;Q<B;)w=Q+g,yield A.slice(Q,w),Q=w},Dd=async function*(A,g){for await(const B of Fd(A))yield*rd(B,g)},Fd=async function*(A){if(A[Symbol.asyncIterator]){yield*A;return}const g=A.getReader();try{for(;;){const{done:B,value:Q}=await g.read();if(B)break;yield Q}}finally{await g.cancel()}},GY=(A,g,B,Q)=>{const w=Dd(A,g);let C=0,E,e=I=>{E||(E=!0,Q&&Q(I))};return new ReadableStream({async pull(I){try{const{done:o,value:n}=await w.next();if(o){e(),I.close();return}let i=n.byteLength;if(B){let c=C+=i;B(c)}I.enqueue(new Uint8Array(n))}catch(o){throw e(o),o}},cancel(I){return e(I),w.return()}},{highWaterMark:2})},VE=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hY=VE&&typeof ReadableStream=="function",ad=VE&&(typeof TextEncoder=="function"?(A=>g=>A.encode(g))(new TextEncoder):async A=>new Uint8Array(await new Response(A).arrayBuffer())),dY=(A,...g)=>{try{return!!A(...g)}catch{return!1}},sd=hY&&dY(()=>{let A=!1;const g=new Request(wg.origin,{body:new ReadableStream,method:"POST",get duplex(){return A=!0,"half"}}).headers.has("Content-Type");return A&&!g}),HY=64*1024,Do=hY&&dY(()=>_.isReadableStream(new Response("").body)),xE={stream:Do&&(A=>A.body)};VE&&(A=>{["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!xE[g]&&(xE[g]=_.isFunction(A[g])?B=>B[g]():(B,Q)=>{throw new ZA(`Response type '${g}' is not supported`,ZA.ERR_NOT_SUPPORT,Q)})})})(new Response);const ud=async A=>{if(A==null)return 0;if(_.isBlob(A))return A.size;if(_.isSpecCompliantForm(A))return(await new Request(wg.origin,{method:"POST",body:A}).arrayBuffer()).byteLength;if(_.isArrayBufferView(A)||_.isArrayBuffer(A))return A.byteLength;if(_.isURLSearchParams(A)&&(A=A+""),_.isString(A))return(await ad(A)).byteLength},Ud=async(A,g)=>{const B=_.toFiniteNumber(A.getContentLength());return B??ud(g)},Fo={http:Sh,xhr:Yd,fetch:VE&&(async A=>{let{url:g,method:B,data:Q,signal:w,cancelToken:C,timeout:E,onDownloadProgress:e,onUploadProgress:I,responseType:o,headers:n,withCredentials:i="same-origin",fetchOptions:c}=lY(A);o=o?(o+"").toLowerCase():"text";let Y=Md([w,C&&C.toAbortSignal()],E),M;const r=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let D;try{if(I&&sd&&B!=="get"&&B!=="head"&&(D=await Ud(n,Q))!==0){let U=new Request(g,{method:"POST",body:Q,duplex:"half"}),l;if(_.isFormData(Q)&&(l=U.headers.get("content-type"))&&n.setContentType(l),U.body){const[d,H]=aY(D,KE(sY(I)));Q=GY(U.body,HY,d,H)}}_.isString(i)||(i=i?"include":"omit");const F="credentials"in Request.prototype;M=new Request(g,{...c,signal:Y,method:B.toUpperCase(),headers:n.normalize().toJSON(),body:Q,duplex:"half",credentials:F?i:void 0});let u=await fetch(M);const s=Do&&(o==="stream"||o==="response");if(Do&&(e||s&&r)){const U={};["status","statusText","headers"].forEach(G=>{U[G]=u[G]});const l=_.toFiniteNumber(u.headers.get("content-length")),[d,H]=e&&aY(l,KE(sY(e),!0))||[];u=new Response(GY(u.body,HY,d,()=>{H&&H(),r&&r()}),U)}o=o||"text";let a=await xE[_.findKey(xE,o)||"text"](u,A);return!s&&r&&r(),await new Promise((U,l)=>{FY(U,l,{data:a,headers:rg.from(u.headers),status:u.status,statusText:u.statusText,config:A,request:M})})}catch(F){throw r&&r(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new ZA("Network Error",ZA.ERR_NETWORK,A,M),{cause:F.cause||F}):ZA.from(F,F&&F.code,A,M)}})};_.forEach(Fo,(A,g)=>{if(A){try{Object.defineProperty(A,"name",{value:g})}catch{}Object.defineProperty(A,"adapterName",{value:g})}});const fY=A=>`- ${A}`,ld=A=>_.isFunction(A)||A===null||A===!1,JY={getAdapter:A=>{A=_.isArray(A)?A:[A];const{length:g}=A;let B,Q;const w={};for(let C=0;C<g;C++){B=A[C];let E;if(Q=B,!ld(B)&&(Q=Fo[(E=String(B)).toLowerCase()],Q===void 0))throw new ZA(`Unknown adapter '${E}'`);if(Q)break;w[E||"#"+C]=Q}if(!Q){const C=Object.entries(w).map(([e,I])=>`adapter ${e} `+(I===!1?"is not supported by the environment":"is not available in the build"));let E=g?C.length>1?`since :
5
5
  `+C.map(fY).join(`
6
6
  `):" "+fY(C[0]):"as no adapter specified";throw new ZA("There is no suitable adapter to dispatch the request "+E,"ERR_NOT_SUPPORT")}return Q},adapters:Fo};function ao(A){if(A.cancelToken&&A.cancelToken.throwIfRequested(),A.signal&&A.signal.aborted)throw new pw(null,A)}function mY(A){return ao(A),A.headers=rg.from(A.headers),A.data=ro.call(A,A.transformRequest),["post","put","patch"].indexOf(A.method)!==-1&&A.headers.setContentType("application/x-www-form-urlencoded",!1),JY.getAdapter(A.adapter||fC.adapter)(A).then(function(Q){return ao(A),Q.data=ro.call(A,A.transformResponse,Q),Q.headers=rg.from(Q.headers),Q},function(Q){return DY(Q)||(ao(A),Q&&Q.response&&(Q.response.data=ro.call(A,A.transformResponse,Q.response),Q.response.headers=rg.from(Q.response.headers))),Promise.reject(Q)})}const NY="1.9.0",XE={};["object","boolean","number","function","string","symbol"].forEach((A,g)=>{XE[A]=function(Q){return typeof Q===A||"a"+(g<1?"n ":" ")+A}});const RY={};XE.transitional=function(g,B,Q){function w(C,E){return"[Axios v"+NY+"] Transitional option '"+C+"'"+E+(Q?". "+Q:"")}return(C,E,e)=>{if(g===!1)throw new ZA(w(E," has been removed"+(B?" in "+B:"")),ZA.ERR_DEPRECATED);return B&&!RY[E]&&(RY[E]=!0,console.warn(w(E," has been deprecated since v"+B+" and will be removed in the near future"))),g?g(C,E,e):!0}},XE.spelling=function(g){return(B,Q)=>(console.warn(`${Q} is likely a misspelling of ${g}`),!0)};function Gd(A,g,B){if(typeof A!="object")throw new ZA("options must be an object",ZA.ERR_BAD_OPTION_VALUE);const Q=Object.keys(A);let w=Q.length;for(;w-- >0;){const C=Q[w],E=g[C];if(E){const e=A[C],I=e===void 0||E(e,C,A);if(I!==!0)throw new ZA("option "+C+" must be "+I,ZA.ERR_BAD_OPTION_VALUE);continue}if(B!==!0)throw new ZA("Unknown option "+C,ZA.ERR_BAD_OPTION)}}const OE={assertOptions:Gd,validators:XE},xg=OE.validators;let $Q=class{constructor(g){this.defaults=g||{},this.interceptors={request:new cY,response:new cY}}async request(g,B){try{return await this._request(g,B)}catch(Q){if(Q instanceof Error){let w={};Error.captureStackTrace?Error.captureStackTrace(w):w=new Error;const C=w.stack?w.stack.replace(/^.+\n/,""):"";try{Q.stack?C&&!String(Q.stack).endsWith(C.replace(/^.+\n.+\n/,""))&&(Q.stack+=`
7
- `+C):Q.stack=C}catch{}}throw Q}}_request(g,B){typeof g=="string"?(B=B||{},B.url=g):B=g||{},B=_Q(this.defaults,B);const{transitional:Q,paramsSerializer:w,headers:C}=B;Q!==void 0&&OE.assertOptions(Q,{silentJSONParsing:xg.transitional(xg.boolean),forcedJSONParsing:xg.transitional(xg.boolean),clarifyTimeoutError:xg.transitional(xg.boolean)},!1),w!=null&&(_.isFunction(w)?B.paramsSerializer={serialize:w}:OE.assertOptions(w,{encode:xg.function,serialize:xg.function},!0)),B.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?B.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:B.allowAbsoluteUrls=!0),OE.assertOptions(B,{baseUrl:xg.spelling("baseURL"),withXsrfToken:xg.spelling("withXSRFToken")},!0),B.method=(B.method||this.defaults.method||"get").toLowerCase();let E=C&&_.merge(C.common,C[B.method]);C&&_.forEach(["delete","get","head","post","put","patch","common"],M=>{delete C[M]}),B.headers=rg.concat(E,C);const e=[];let I=!0;this.interceptors.request.forEach(function(r){typeof r.runWhen=="function"&&r.runWhen(B)===!1||(I=I&&r.synchronous,e.unshift(r.fulfilled,r.rejected))});const o=[];this.interceptors.response.forEach(function(r){o.push(r.fulfilled,r.rejected)});let n,i=0,c;if(!I){const M=[mY.bind(this),void 0];for(M.unshift.apply(M,e),M.push.apply(M,o),c=M.length,n=Promise.resolve(B);i<c;)n=n.then(M[i++],M[i++]);return n}c=e.length;let Y=B;for(i=0;i<c;){const M=e[i++],r=e[i++];try{Y=M(Y)}catch(D){r.call(this,D);break}}try{n=mY.call(this,Y)}catch(M){return Promise.reject(M)}for(i=0,c=o.length;i<c;)n=n.then(o[i++],o[i++]);return n}getUri(g){g=_Q(this.defaults,g);const B=uY(g.baseURL,g.url,g.allowAbsoluteUrls);return iY(B,g.params,g.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(g){$Q.prototype[g]=function(B,Q){return this.request(_Q(Q||{},{method:g,url:B,data:(Q||{}).data}))}}),_.forEach(["post","put","patch"],function(g){function B(Q){return function(C,E,e){return this.request(_Q(e||{},{method:g,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:C,data:E}))}}$Q.prototype[g]=B(),$Q.prototype[g+"Form"]=B(!0)});let hd=class CF{constructor(g){if(typeof g!="function")throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(C){B=C});const Q=this;this.promise.then(w=>{if(!Q._listeners)return;let C=Q._listeners.length;for(;C-- >0;)Q._listeners[C](w);Q._listeners=null}),this.promise.then=w=>{let C;const E=new Promise(e=>{Q.subscribe(e),C=e}).then(w);return E.cancel=function(){Q.unsubscribe(C)},E},g(function(C,E,e){Q.reason||(Q.reason=new pw(C,E,e),B(Q.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(g){if(this.reason){g(this.reason);return}this._listeners?this._listeners.push(g):this._listeners=[g]}unsubscribe(g){if(!this._listeners)return;const B=this._listeners.indexOf(g);B!==-1&&this._listeners.splice(B,1)}toAbortSignal(){const g=new AbortController,B=Q=>{g.abort(Q)};return this.subscribe(B),g.signal.unsubscribe=()=>this.unsubscribe(B),g.signal}static source(){let g;return{token:new CF(function(w){g=w}),cancel:g}}};function dd(A){return function(B){return A.apply(null,B)}}function Hd(A){return _.isObject(A)&&A.isAxiosError===!0}const so={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(so).forEach(([A,g])=>{so[g]=A});function PY(A){const g=new $Q(A),B=qc($Q.prototype.request,g);return _.extend(B,$Q.prototype,g,{allOwnKeys:!0}),_.extend(B,g,null,{allOwnKeys:!0}),B.create=function(w){return PY(_Q(A,w))},B}const PB=PY(fC);PB.Axios=$Q,PB.CanceledError=pw,PB.CancelToken=hd,PB.isCancel=DY,PB.VERSION=NY,PB.toFormData=SE,PB.AxiosError=ZA,PB.Cancel=PB.CanceledError,PB.all=function(g){return Promise.all(g)},PB.spread=dd,PB.isAxiosError=Hd,PB.mergeConfig=_Q,PB.AxiosHeaders=rg,PB.formToJSON=A=>MY(_.isHTMLForm(A)?new FormData(A):A),PB.getAdapter=JY.getAdapter,PB.HttpStatusCode=so,PB.default=PB;const{Axios:Ek,AxiosError:ek,CanceledError:Ik,isCancel:ok,CancelToken:tk,VERSION:nk,all:ik,Cancel:ck,isAxiosError:Yk,spread:Mk,toFormData:rk,AxiosHeaders:Dk,HttpStatusCode:Fk,formToJSON:ak,getAdapter:sk,mergeConfig:uk}=PB;class Dg{constructor(){wF(this,"axiosInstance");this.axiosInstance=PB.create({baseURL:process.env.VUE_APP_BACKEND,headers:{"Content-Type":"application/json",Accept:"application/json"}}),this.axiosInstance.interceptors.request.use(g=>{const B=this.getToken();return B&&g.headers&&(g.headers.Authorization=`Bearer ${B}`),g},g=>Promise.reject(g)),this.axiosInstance.interceptors.response.use(g=>g.data,g=>{var B,Q;return(((B=g.response)==null?void 0:B.status)===401||((Q=g.response)==null?void 0:Q.status)===403)&&this.logout(),Promise.reject(g)})}getToken(){return localStorage.getItem("token")}removeToken(){localStorage.removeItem("token")}logout(){this.removeToken(),window.location.href="/sign-in"}handleError(g){g.response?console.error("API Error:",g.response.status,g.response.data):g.request?console.error("No response received:",g.request):console.error("Error during request setup:",g.message)}async get(g,B){try{const Q=await this.axiosInstance.get(g,B);return(Q==null?void 0:Q.data)===!1?!1:(Q==null?void 0:Q.data)??Q}catch(Q){const w=Q;throw this.handleError(w),Q}}async delete(g,B){try{return await this.axiosInstance.delete(g,B)}catch(Q){const w=Q;throw this.handleError(w),Q}}async post(g,B,Q){try{const w=await this.axiosInstance.post(g,B,Q);return(w==null?void 0:w.data)===!1?!1:(w==null?void 0:w.data)||w}catch(w){const C=w;throw this.handleError(C),w}}async patch(g,B,Q){try{return(await this.axiosInstance.patch(g,B,Q)).data}catch(w){const C=w;throw this.handleError(C),w}}async put(g,B,Q){try{return(await this.axiosInstance.put(g,B,Q)).data}catch(w){const C=w;throw this.handleError(C),w}}}class fd extends Dg{async fetchCriticalPathTasks(g){return await this.get(`gantt/get_list_task_on_critical_path?${g}`)}async fetchGanttList(g){return await this.get(`/list/tasks/search?${g}&gantt=1`)}}let uo;function Jd(){return uo||(uo=new fd),uo}class md extends Dg{async fetchPieProjects(g){return await this.get("repairs/pie/projects?"+g)}async fetchPieTasks(g){return await this.get("repairs/pie/tasks?"+g)}async fetchPiePersonnel(g){return await this.get("repairs/metrics/get_list_position?"+g)}async fetchPersonnelData(g){return await this.get("repairs/metrics/list_position_intersection_group_by_status?"+g)}async fetchPersonnelInfo(g){return await this.get(`repairs/metrics/list_position_intersection_details?${g}`)}async fetchPiePersonnelInfo(g){return await this.get(`repairs/metrics/get_list_user_by_position?${g}`)}async fetchPieCriticalPath(g){return await this.get("repairs/metrics/get_critical_path_group_by_status?"+g)}async fetchPieCriticalPathInfo(g){return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${g}`)}async fetchPieTmc(g){return await this.get("repairs/metrics/get_list_instrument_type?"+g)}async fetchPieTmcInfo(g){return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${g}`)}async fetchPieUntimelyClosedTask(g){return await this.get("repairs/metrics/get_list_comment_type?"+g)}async fetchPieUntimelyClosedTaskInfo(g){return await this.get(`repairs/metrics/get_list_task_by_comment_type?${g}`)}async fetchPieAdditionalTasks(g){return await this.get("repairs/metrics/get_list_task_after_plan_fixate_group_by_status?"+g)}async fetchPieAdditionalTasksInfo(g){return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${g}`)}async fetchPersonnel(g){return await this.get("repairs/statistic/personnel?"+g)}async fetchPieExpired(g){return await this.get("repairs/metrics/get_list_task_expired_group_by_status?"+g)}async fetchPieExpiredInfo(g){return await this.get(`repairs/metrics/get_list_task_expired?${g}`)}async fetchEconomicsPerformance(g){return await this.get(`repairs/metrics/get_economic_performance?${g}`)}async fetchEconomicsInfo(g){return await this.get(`repairs/metrics/get_list_task_economic_performance?${g}`)}async fetchQualityMetrics(g){return await this.get(`repairs/metrics/get_quality_metrics?${g}`)}async fetchQualityInfo(g){return await this.get(`repairs/metrics/get_list_task_by_quality?${g}`)}async fetchPieWorkZone(g){return await this.get("repairs/metrics/get_list_work_zone_instrument?"+g)}async fetchWorkZoneInfo(g){return await this.get("repairs/metrics/get_list_work_zone_instrument_by_status?"+g)}async fetchPieAllTasks(g){return await this.get("repairs/metrics/get_list_task_group_by_status?"+g)}async fetchPieAllTasksInfo(g){return await this.get("repairs/metrics/get_list_task_by_status?"+g)}}let Uo;function Nd(){return Uo||(Uo=new md),Uo}class Rd extends Dg{async fetchProjectById(g){return this.get(`/projects/${g}`)}createProject(g){return this.post("/projects",g)}editProject(g,B){return this.put(`/projects/${g}`,B)}fetchProjects(g){return this.get("/search/projects",{params:g})}cloneProject(g){return this.post(`projects/${g.id}/clone`,g)}archiveProject(g,B){return this.put(`/projects/${g}`,B)}unArchiveProject(g,B){return this.put(`/projects/${g}`,B)}moveAprProject(g){return this.post("repairs/move_plan_to_real",{repairs:[g]})}restoreProject(g){return this.post("/restore_project",{projects_ids:[g]})}importTasks(g){return this.post("tasks/import",g)}importKtd(g){return this.post("/parse_ktd",g,{headers:{"Content-Type":"multipart/form-data"}})}fetchProjectTeamList(g){return this.put(`/projects/${g}`,null)}deleteProject(g){return this.delete(`/projects/${g}`)}}let lo;function Pd(){return lo||(lo=new Rd),lo}class vd extends Dg{fetchFilters(g){return this.get(`get_list_repair?smart=1&${g}`)}fetchRepairs(g,B,Q,w,C){return this.get("get_list_repair"+(g?`${B}&per_page=100000${C?"&"+C:""}&${Q?"":w}`:`?per_page=100000${C?"&"+C:""}&${w}`))}fetchRepairTemplates({equipmentId:g,categoryCode:B}){return this.get(`repairs/get_repair_template_list?per_page=100000&categoryCodeList[0]=${B}&equipmentIdList[0]=${g}`)}fetchEquipment(){return this.get("repairs/equipment/list?per_page=100000")}createRepair(g){return this.post("/repairs/equipments",g)}createRepairFromTemplate(g){return this.post("/repairs/create_repair_from_repair_template",g)}startRepair(g){return this.post(`/repairs/${g}/start`,null)}finishRepair(g){return this.post("/repairs/complete_repair_list",{repairIdList:[g]})}finishPreparationProject(g){return this.post(`/repairs/${g}/finish_preparation`,null)}moveRepairToCurrent(g){return this.post("/repairs/transfer_repair_plan_to_current",{repairs:[g]})}moveArchiveToCurrent(g){return this.post("/repairs/transfer_repair_archive_to_current",{repairs_ids:[g]})}moveRepairToApr(g){return this.post("/repairs/transfer_repair_current_to_plan",{repairs:[g]})}moveRepairToArchive(g){return this.post("/repairs/transfer_repair_current_to_archive",{repairs_ids:[g]})}restoreRepair(g){return this.post("/restore_repair",{repairs_ids:[g]})}updateRepair(g,B){return this.put(`/repairs/${B}`,g)}copyRepair(g){return this.post(`/repairs/${g}/clone`,null)}deleteRepair(g){return this.delete(`/repairs/${g}`)}}let Go;function kd(){return Go||(Go=new vd),Go}class Td extends Dg{fetchTaskById(g){return this.get(`/tasks/${g}`)}fetchTasksList(g){return this.get("/list/tasks/search",{params:g})}fetchSubtasksList(g){return this.get(`/task/${g}/subtasks/list`)}fetchTaskBranch(g){return this.get(`/get_list_task_branch?task_id=${g}`)}fetchInstrumentsList(g){return this.get("admin/instruments",{params:g})}fetchInstrumentTypeListWithPreparedWarehouse(g){return this.get("/instrument_type/get_instrument_type_list_with_prepared_warehouse",{params:g})}fetchInstrumentsEquivalentList(g){return this.get("tasks/instrument/list",{params:g})}fetchDiffInstruments(g){return this.get(`tasks/${g.taskId}/fill/module`,{params:g})}replaceInstruments(g){return this.post("/instruments/equivalent/attach",g)}fetchTaskUsagePersonal(g){return this.get(`tasks/${g}/usage/users`)}fetchTaskUsageInstrument(g){return this.get(`tasks/${g}/usage/instruments`)}fetchEquipment(g){return this.get("repairs/equipment/list",{params:g})}fetchTaskVideoSources(g){return this.get("work_zone/get_list_video_source",{params:g})}fetchTaskVideoSourcesStream(g){return this.get("horizon/video-source",{params:g})}createWorkZone(g){return this.post("admin/work-zones",g)}createTask(g){return this.post("tasks",g)}editTask(g,B){return this.put(`tasks/${g}`,B)}mergeTask(g){return this.post("tasks/merge",g)}deleteTask(g){return this.delete(`tasks/${g}`)}changeStatus(g,B){return this.put(`task/${g}/change-status`,{status_id:B})}saveMetrics(g){return this.put("/update_quality_metrics",g)}checkReasonForStatus(g){return this.post("/tasks/check_reason_for_task",{task_id:g})}verifyTaskStatus(g,B){return this.get(`/task/${g}/change-status/verification`,{params:{status_id:B}})}checkBranchBeforeCloseTask(g){return this.post("/check_branch_before_close_task",{task_id:g})}}let ho;function jd(){return ho||(ho=new Td),ho}class pd extends Dg{login(g,B){return this.post("/login",{email:g,password:B})}loginPhoto(g){return this.post("/login/from_photo",{photo:g})}loginVideo(g){return this.post("/login/video",g,{transformRequest:B=>B})}logout(){return this.post("/logout",null)}userInfo(){return this.get("/users/auth")}configs(){return this.get("/configs")}changePassword(g,B,Q){return this.put(`/users/${g}/password`,{password:B,password_confirmation:Q})}}let Ho;function yd(){return Ho||(Ho=new pd),Ho}class zd extends Dg{uploadFile(g){return this.post("/upload-file",g,{headers:{"Content-Type":"multipart/form-data"}})}}let fo;function Wd(){return fo||(fo=new zd),fo}class bd extends Dg{async startVideoAnalytics(){return await this.post("/statanly/start",null)}reloadVideoAnalytics(g){return this.post("/horizon/video-source/reload",{video_source_ids:g})}}let Jo;function Sd(){return Jo||(Jo=new bd),Jo}class Ld extends Dg{async editUser({id:g,model:B}){return await this.put(`/admin/users/${g}`,B)}async getUser(g){return await this.get(`/admin/users/${g}`)}async createUser(g){return await this.post("/admin/users",g)}async deleteUser(g){return await this.delete(`/admin/users/${g}`)}async getRoles(g){return await this.get("/search/roles",{params:g})}async getPositions(g){return await this.get("/search/positions",{params:g})}async createPosition(g){return await this.post("/admin/positions",g)}async editPosition(g,B){return await this.put(`/admin/positions/${g}`,B)}async deletePosition(g){return await this.delete(`/admin/positions/${g}`)}async getTeams(g){return await this.get("/search/teams",{params:g})}async createTeam(g){return await this.post("/teams",g)}async editTeam(g,B){return await this.patch(`/teams/${g}`,B)}async deleteTeam(g){return await this.delete(`/teams/${g}`)}}let mo;function Kd(){return mo||(mo=new Ld),mo}class Vd extends Dg{async fetchUserInstrumentsHistory(g,B){const Q={status:"issued",page:B,desc:"desc",column:"updated_at","users[0]":g};return await this.get("search/warehouses",{params:Q})}}let No;function xd(){return No||(No=new Vd),No}class Xd extends Dg{fetchControlZones(g){return this.get("/frame/list",{params:g})}async fetchControlZone(g){return this.get(`/frame/${g}`)}createControlZone(g){return this.post("/frame",g)}editControlZone(g,B){return this.put(`/frame/${g}`,B)}deleteControlZone(g){return this.delete(`/frame/${g}`)}fetchControlLogs(g){return this.get("/exposed_equipment_zones/list",{params:g})}fetchControllers(g){return this.get("/frame/controllers/list",{params:g})}fetchUsersWithPasses(){return this.get("inspector/users-with-passes")}fetchWarehousesList(){return this.get("tasks/warehouse/list?only_outside_exposed_equipment_zone=1")}manualEntry(g){return this.post("exposed_equipment_zones/hand/enter",g)}manualExit(g){return this.post("exposed_equipment_zones/hand/exit",g)}deleteControlLogs(g){return this.delete("exposed_equipment_zones",g)}fetchInstrumentTypeList(g){return this.get("search/instrument_types",{params:g})}}let Ro;function Od(){return Ro||(Ro=new Xd),Ro}class Zd extends Dg{fetchSearchUsers(g){return this.get("search/users",{params:g})}}let Po;function qd(){return Po||(Po=new Zd),Po}class _d extends Dg{async uploadComment(g){return await this.post("comments",g)}async deleteComment(g){return await this.delete(`comments/${g}`)}async editComment(g,B){return await this.put(`comments/${g}`,B)}}let vo;function $d(){return vo||(vo=new _d),vo}/**
7
+ `+C):Q.stack=C}catch{}}throw Q}}_request(g,B){typeof g=="string"?(B=B||{},B.url=g):B=g||{},B=_Q(this.defaults,B);const{transitional:Q,paramsSerializer:w,headers:C}=B;Q!==void 0&&OE.assertOptions(Q,{silentJSONParsing:xg.transitional(xg.boolean),forcedJSONParsing:xg.transitional(xg.boolean),clarifyTimeoutError:xg.transitional(xg.boolean)},!1),w!=null&&(_.isFunction(w)?B.paramsSerializer={serialize:w}:OE.assertOptions(w,{encode:xg.function,serialize:xg.function},!0)),B.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?B.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:B.allowAbsoluteUrls=!0),OE.assertOptions(B,{baseUrl:xg.spelling("baseURL"),withXsrfToken:xg.spelling("withXSRFToken")},!0),B.method=(B.method||this.defaults.method||"get").toLowerCase();let E=C&&_.merge(C.common,C[B.method]);C&&_.forEach(["delete","get","head","post","put","patch","common"],M=>{delete C[M]}),B.headers=rg.concat(E,C);const e=[];let I=!0;this.interceptors.request.forEach(function(r){typeof r.runWhen=="function"&&r.runWhen(B)===!1||(I=I&&r.synchronous,e.unshift(r.fulfilled,r.rejected))});const o=[];this.interceptors.response.forEach(function(r){o.push(r.fulfilled,r.rejected)});let n,i=0,c;if(!I){const M=[mY.bind(this),void 0];for(M.unshift.apply(M,e),M.push.apply(M,o),c=M.length,n=Promise.resolve(B);i<c;)n=n.then(M[i++],M[i++]);return n}c=e.length;let Y=B;for(i=0;i<c;){const M=e[i++],r=e[i++];try{Y=M(Y)}catch(D){r.call(this,D);break}}try{n=mY.call(this,Y)}catch(M){return Promise.reject(M)}for(i=0,c=o.length;i<c;)n=n.then(o[i++],o[i++]);return n}getUri(g){g=_Q(this.defaults,g);const B=uY(g.baseURL,g.url,g.allowAbsoluteUrls);return iY(B,g.params,g.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(g){$Q.prototype[g]=function(B,Q){return this.request(_Q(Q||{},{method:g,url:B,data:(Q||{}).data}))}}),_.forEach(["post","put","patch"],function(g){function B(Q){return function(C,E,e){return this.request(_Q(e||{},{method:g,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:C,data:E}))}}$Q.prototype[g]=B(),$Q.prototype[g+"Form"]=B(!0)});let hd=class CF{constructor(g){if(typeof g!="function")throw new TypeError("executor must be a function.");let B;this.promise=new Promise(function(C){B=C});const Q=this;this.promise.then(w=>{if(!Q._listeners)return;let C=Q._listeners.length;for(;C-- >0;)Q._listeners[C](w);Q._listeners=null}),this.promise.then=w=>{let C;const E=new Promise(e=>{Q.subscribe(e),C=e}).then(w);return E.cancel=function(){Q.unsubscribe(C)},E},g(function(C,E,e){Q.reason||(Q.reason=new pw(C,E,e),B(Q.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(g){if(this.reason){g(this.reason);return}this._listeners?this._listeners.push(g):this._listeners=[g]}unsubscribe(g){if(!this._listeners)return;const B=this._listeners.indexOf(g);B!==-1&&this._listeners.splice(B,1)}toAbortSignal(){const g=new AbortController,B=Q=>{g.abort(Q)};return this.subscribe(B),g.signal.unsubscribe=()=>this.unsubscribe(B),g.signal}static source(){let g;return{token:new CF(function(w){g=w}),cancel:g}}};function dd(A){return function(B){return A.apply(null,B)}}function Hd(A){return _.isObject(A)&&A.isAxiosError===!0}const so={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(so).forEach(([A,g])=>{so[g]=A});function PY(A){const g=new $Q(A),B=qc($Q.prototype.request,g);return _.extend(B,$Q.prototype,g,{allOwnKeys:!0}),_.extend(B,g,null,{allOwnKeys:!0}),B.create=function(w){return PY(_Q(A,w))},B}const PB=PY(fC);PB.Axios=$Q,PB.CanceledError=pw,PB.CancelToken=hd,PB.isCancel=DY,PB.VERSION=NY,PB.toFormData=SE,PB.AxiosError=ZA,PB.Cancel=PB.CanceledError,PB.all=function(g){return Promise.all(g)},PB.spread=dd,PB.isAxiosError=Hd,PB.mergeConfig=_Q,PB.AxiosHeaders=rg,PB.formToJSON=A=>MY(_.isHTMLForm(A)?new FormData(A):A),PB.getAdapter=JY.getAdapter,PB.HttpStatusCode=so,PB.default=PB;const{Axios:Ek,AxiosError:ek,CanceledError:Ik,isCancel:ok,CancelToken:tk,VERSION:nk,all:ik,Cancel:ck,isAxiosError:Yk,spread:Mk,toFormData:rk,AxiosHeaders:Dk,HttpStatusCode:Fk,formToJSON:ak,getAdapter:sk,mergeConfig:uk}=PB;class Dg{constructor(){wF(this,"axiosInstance");this.axiosInstance=PB.create({baseURL:process.env.VUE_APP_BACKEND,headers:{"Content-Type":"application/json",Accept:"application/json"}}),this.axiosInstance.interceptors.request.use(g=>{const B=this.getToken();return B&&g.headers&&(g.headers.Authorization=`Bearer ${B}`),g},g=>Promise.reject(g)),this.axiosInstance.interceptors.response.use(g=>g.data,g=>{var B,Q;return(((B=g.response)==null?void 0:B.status)===401||((Q=g.response)==null?void 0:Q.status)===403)&&this.logout(),Promise.reject(g)})}getToken(){return localStorage.getItem("token")}removeToken(){localStorage.removeItem("token")}logout(){this.removeToken(),window.location.href="/sign-in"}handleError(g){g.response?console.error("API Error:",g.response.status,g.response.data):g.request?console.error("No response received:",g.request):console.error("Error during request setup:",g.message)}async get(g,B){try{const Q=await this.axiosInstance.get(g,B);return(Q==null?void 0:Q.data)===!1?!1:(Q==null?void 0:Q.data)??Q}catch(Q){const w=Q;throw this.handleError(w),Q}}async delete(g,B){try{return await this.axiosInstance.delete(g,B)}catch(Q){const w=Q;throw this.handleError(w),Q}}async post(g,B,Q){try{const w=await this.axiosInstance.post(g,B,Q);return(w==null?void 0:w.data)===!1?!1:(w==null?void 0:w.data)||w}catch(w){const C=w;throw this.handleError(C),w}}async patch(g,B,Q){try{return(await this.axiosInstance.patch(g,B,Q)).data}catch(w){const C=w;throw this.handleError(C),w}}async put(g,B,Q){try{return(await this.axiosInstance.put(g,B,Q)).data}catch(w){const C=w;throw this.handleError(C),w}}}class fd extends Dg{async fetchCriticalPathTasks(g){return await this.get(`gantt/get_list_task_on_critical_path?${g}`)}async fetchGanttList(g){return await this.get(`/list/tasks/search?${g}&gantt=1`)}}let uo;function Jd(){return uo||(uo=new fd),uo}class md extends Dg{async fetchPieProjects(g){return await this.get("repairs/pie/projects?"+g)}async fetchPieTasks(g){return await this.get("repairs/pie/tasks?"+g)}async fetchPiePersonnel(g){return await this.get("repairs/metrics/get_list_position?"+g)}async fetchPersonnelData(g){return await this.get("repairs/metrics/list_position_intersection_group_by_status?"+g)}async fetchPersonnelInfo(g){return await this.get(`repairs/metrics/list_position_intersection_details?${g}`)}async fetchPiePersonnelInfo(g){return await this.get(`repairs/metrics/get_list_user_by_position?${g}`)}async fetchPieCriticalPath(g){return await this.get("repairs/metrics/get_critical_path_group_by_status?"+g)}async fetchPieCriticalPathInfo(g){return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${g}`)}async fetchPieTmc(g){return await this.get("repairs/metrics/get_list_instrument_type?"+g)}async fetchPieTmcInfo(g){return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${g}`)}async fetchPieUntimelyClosedTask(g){return await this.get("repairs/metrics/get_list_comment_type?"+g)}async fetchPieUntimelyClosedTaskInfo(g){return await this.get(`repairs/metrics/get_list_task_by_comment_type?${g}`)}async fetchPieAdditionalTasks(g){return await this.get("repairs/metrics/get_list_task_after_plan_fixate_group_by_status?"+g)}async fetchPieAdditionalTasksInfo(g){return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${g}`)}async fetchPersonnel(g){return await this.get("repairs/statistic/personnel?"+g)}async fetchPieExpired(g){return await this.get("repairs/metrics/get_list_task_expired_group_by_status?"+g)}async fetchPieExpiredInfo(g){return await this.get(`repairs/metrics/get_list_task_expired?${g}`)}async fetchEconomicsPerformance(g){return await this.get(`repairs/metrics/get_economic_performance?${g}`)}async fetchEconomicsInfo(g){return await this.get(`repairs/metrics/get_list_task_economic_performance?${g}`)}async fetchQualityMetrics(g){return await this.get(`repairs/metrics/get_quality_metrics?${g}`)}async fetchQualityInfo(g){return await this.get(`repairs/metrics/get_list_task_by_quality?${g}`)}async fetchPieWorkZone(g){return await this.get("repairs/metrics/get_list_work_zone_instrument?"+g)}async fetchWorkZoneInfo(g){return await this.get("repairs/metrics/get_list_work_zone_instrument_by_status?"+g)}async fetchPieAllTasks(g){return await this.get("repairs/metrics/get_list_task_group_by_status?"+g)}async fetchPieAllTasksInfo(g){return await this.get("repairs/metrics/get_list_task_by_status?"+g)}}let Uo;function Nd(){return Uo||(Uo=new md),Uo}class Rd extends Dg{async fetchProjectById(g){return this.get(`/projects/${g}`)}createProject(g){return this.post("/projects",g)}editProject(g,B){return this.put(`/projects/${g}`,B)}fetchProjects(g){return this.get("/search/projects",{params:g})}cloneProject(g){return this.post(`projects/${g.id}/clone`,g)}archiveProject(g,B){return this.put(`/projects/${g}`,B)}unArchiveProject(g,B){return this.put(`/projects/${g}`,B)}moveAprProject(g){return this.post("repairs/move_plan_to_real",{repairs:[g]})}restoreProject(g){return this.post("/restore_project",{projects_ids:[g]})}importTasks(g){return this.post("tasks/import",g)}importKtd(g){return this.post("/parse_ktd",g,{headers:{"Content-Type":"multipart/form-data"}})}fetchProjectTeamList(g){return this.put(`/projects/${g}`,null)}deleteProject(g){return this.delete(`/projects/${g}`)}}let lo;function Pd(){return lo||(lo=new Rd),lo}class vd extends Dg{fetchFilters(g){return this.get(`get_list_repair?smart=1&${g}`)}fetchRepairs(g,B,Q,w,C){return this.get("get_list_repair"+(g?`${B}&per_page=100000${C?"&"+C:""}&${Q?"":w}`:`?per_page=100000${C?"&"+C:""}&${w}`))}fetchRepairTemplates({equipmentId:g,categoryCode:B}){return this.get(`repairs/get_repair_template_list?per_page=100000&categoryCodeList[0]=${B}&equipmentIdList[0]=${g}`)}fetchEquipment(){return this.get("repairs/equipment/list?per_page=100000")}createRepair(g){return this.post("/repairs/equipments",g)}createRepairFromTemplate(g){return this.post("/repairs/create_repair_from_repair_template",g)}startRepair(g){return this.post(`/repairs/${g}/start`,null)}finishRepair(g){return this.post("/repairs/complete_repair_list",{repairIdList:[g]})}finishPreparationProject(g){return this.post(`/repairs/${g}/finish_preparation`,null)}moveRepairToCurrent(g){return this.post("/repairs/transfer_repair_plan_to_current",{repairs:[g]})}moveArchiveToCurrent(g){return this.post("/repairs/transfer_repair_archive_to_current",{repairs_ids:[g]})}moveRepairToApr(g){return this.post("/repairs/transfer_repair_current_to_plan",{repairs:[g]})}moveRepairToArchive(g){return this.post("/repairs/transfer_repair_current_to_archive",{repairs_ids:[g]})}restoreRepair(g){return this.post("/restore_repair",{repairs_ids:[g]})}updateRepair(g,B){return this.put(`/repairs/${B}`,g)}copyRepair(g){return this.post(`/repairs/${g}/clone`,null)}deleteRepair(g){return this.delete(`/repairs/${g}`)}}let Go;function kd(){return Go||(Go=new vd),Go}class Td extends Dg{fetchTaskById(g){return this.get(`/tasks/${g}`)}fetchTasksList(g){return this.get("/list/tasks/search",{params:g})}fetchSubtasksList(g){return this.get(`/task/${g}/subtasks/list`)}fetchTaskBranch(g){return this.get(`/get_list_task_branch?task_id=${g}`)}fetchInstrumentsList(g){return this.get("admin/instruments",{params:g})}fetchInstrumentTypeListWithPreparedWarehouse(g){return this.get("/instrument_type/get_instrument_type_list_with_prepared_warehouse",{params:g})}fetchInstrumentsEquivalentList(g){return this.get("tasks/instrument/list",{params:g})}fetchDiffInstruments(g){return this.get(`tasks/${g.taskId}/fill/module`,{params:g})}replaceInstruments(g){return this.post("/instruments/equivalent/attach",g)}fetchTaskUsagePersonal(g){return this.get(`tasks/${g}/usage/users`)}fetchTaskUsageInstrument(g){return this.get(`tasks/${g}/usage/instruments`)}fetchEquipment(g){return this.get("repairs/equipment/list",{params:g})}fetchTaskVideoSources(g){return this.get("work_zone/get_list_video_source",{params:g})}fetchTaskVideoSourcesStream(g){return this.get("horizon/video-source",{params:g})}createWorkZone(g){return this.post("admin/work-zones",g)}createTask(g){return this.post("tasks",g)}editTask(g,B){return this.put(`tasks/${g}`,B)}mergeTask(g){return this.post("tasks/merge",g)}deleteTask(g){return this.delete(`tasks/${g}`)}changeStatus(g,B){return this.put(`task/${g}/change-status`,{status_id:B})}saveMetrics(g){return this.put("/update_quality_metrics",g)}checkReasonForStatus(g){return this.post("/tasks/check_reason_for_task",{task_id:g})}verifyTaskStatus(g,B){return this.get(`/task/${g}/change-status/verification`,{params:{status_id:B}})}checkBranchBeforeCloseTask(g){return this.post("/check_branch_before_close_task",{task_id:g})}}let ho;function jd(){return ho||(ho=new Td),ho}class pd extends Dg{login(g,B){return this.post("/login",{email:g,password:B})}loginPhoto(g){return this.post("/login/from_photo",{photo:g})}loginVideo(g){return this.post("/login/video",g,{transformRequest:B=>B})}logout(){return this.post("/logout",null)}userInfo(){return this.get("/users/auth")}configs(){return this.get("/configs")}changePassword(g,B,Q){return this.put(`/users/${g}/password`,{password:B,password_confirmation:Q})}}let Ho;function yd(){return Ho||(Ho=new pd),Ho}class zd extends Dg{uploadFile(g){return this.post("/upload-file",g,{headers:{"Content-Type":"multipart/form-data"}})}}let fo;function Wd(){return fo||(fo=new zd),fo}class bd extends Dg{async startVideoAnalytics(){return await this.post("/statanly/start",null)}reloadVideoAnalytics(g){return this.post("/horizon/video-source/reload",{video_source_ids:g})}}let Jo;function Sd(){return Jo||(Jo=new bd),Jo}class Ld extends Dg{async editUser({id:g,model:B}){return await this.put(`/admin/users/${g}`,B)}async getUser(g){return await this.get(`/admin/users/${g}`)}async createUser(g){return await this.post("/admin/users",g)}async deleteUser(g){return await this.delete(`/admin/users/${g}`)}async getRoles(g){return await this.get("/search/roles",{params:g})}async getPositions(g){return await this.get("/search/positions",{params:g})}async createPosition(g){return await this.post("/admin/positions",g)}async editPosition(g,B){return await this.put(`/admin/positions/${g}`,B)}async deletePosition(g){return await this.delete(`/admin/positions/${g}`)}async getTeams(g){return await this.get("/search/teams",{params:g})}async createTeam(g){return await this.post("/teams",g)}async editTeam(g,B){return await this.patch(`/teams/${g}`,B)}async deleteTeam(g){return await this.delete(`/teams/${g}`)}}let mo;function Kd(){return mo||(mo=new Ld),mo}class Vd extends Dg{async fetchUserInstrumentsHistory(g,B){const Q={status:"issued",page:B,desc:"desc",column:"issued_in"};return await this.get(`users/${g}/instruments`,{params:Q})}}let No;function xd(){return No||(No=new Vd),No}class Xd extends Dg{fetchControlZones(g){return this.get("/frame/list",{params:g})}async fetchControlZone(g){return this.get(`/frame/${g}`)}createControlZone(g){return this.post("/frame",g)}editControlZone(g,B){return this.put(`/frame/${g}`,B)}deleteControlZone(g){return this.delete(`/frame/${g}`)}fetchControlLogs(g){return this.get("/exposed_equipment_zones/list",{params:g})}fetchControllers(g){return this.get("/frame/controllers/list",{params:g})}fetchUsersWithPasses(){return this.get("inspector/users-with-passes")}fetchWarehousesList(){return this.get("tasks/warehouse/list?only_outside_exposed_equipment_zone=1")}manualEntry(g){return this.post("exposed_equipment_zones/hand/enter",g)}manualExit(g){return this.post("exposed_equipment_zones/hand/exit",g)}deleteControlLogs(g){return this.delete("exposed_equipment_zones",g)}fetchInstrumentTypeList(g){return this.get("search/instrument_types",{params:g})}}let Ro;function Od(){return Ro||(Ro=new Xd),Ro}class Zd extends Dg{fetchSearchUsers(g){return this.get("search/users",{params:g})}}let Po;function qd(){return Po||(Po=new Zd),Po}class _d extends Dg{async uploadComment(g){return await this.post("comments",g)}async deleteComment(g){return await this.delete(`comments/${g}`)}async editComment(g,B){return await this.put(`comments/${g}`,B)}}let vo;function $d(){return vo||(vo=new _d),vo}/**
8
8
  * @license
9
9
  * Copyright 2020 Google LLC. All Rights Reserved.
10
10
  * Licensed under the Apache License, Version 2.0 (the "License");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.91",
3
+ "version": "1.2.92",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -7,11 +7,10 @@ class InstrumentsService extends ApiService {
7
7
  status: 'issued',
8
8
  page,
9
9
  desc: 'desc',
10
- column: 'updated_at',
11
- 'users[0]': id
10
+ column: 'issued_in',
12
11
  }
13
12
 
14
- return await this.get(`search/warehouses`, { params })
13
+ return await this.get(`users/${id}/instruments`, { params })
15
14
  }
16
15
  }
17
16