@overmap-ai/core 1.0.78-bulk-update.7 → 1.0.78-bulk-update.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/overmap-core.js
CHANGED
|
@@ -10526,7 +10526,6 @@ export {
|
|
|
10526
10526
|
eO as createOfflineAction,
|
|
10527
10527
|
j as createPayload,
|
|
10528
10528
|
Vb as createSelectionAdapter,
|
|
10529
|
-
f as createSelectorFactory,
|
|
10530
10529
|
S as createShallowEqualSelector,
|
|
10531
10530
|
pu as deleteAsset,
|
|
10532
10531
|
hr as deleteAssetAttachment,
|
|
@@ -10821,6 +10820,7 @@ export {
|
|
|
10821
10820
|
rc as projectSlice,
|
|
10822
10821
|
rI as rehydratedReducer,
|
|
10823
10822
|
dc as rehydratedSlice,
|
|
10823
|
+
f as restructureSelectorArgs,
|
|
10824
10824
|
pb as runMiddleware,
|
|
10825
10825
|
UO as saveActiveProjectFileBounds,
|
|
10826
10826
|
HP as selectAccessToken,
|
|
@@ -12,4 +12,4 @@ Action:`,s);const y=st();if(!y)throw new Error("Outbox coordinator not set");y.r
|
|
|
12
12
|
(with an uuid attached) being returned. Alternatively, you may be running with
|
|
13
13
|
import.meta.env.PROD, which will result in some file requests being treated as
|
|
14
14
|
external URLs and therefore not prepended with VITE_API_URL.`;throw new Error(f)}const y=d.type.split("/")[1];if(!y)throw new Error("File has no extension");const A=a??o+"."+y;if(d=sa(d,A),!d.name)throw new Error("Failed to set file's name");await this.addCache(d,o),Ut[c]=new Promise(f=>{f(d)})}return d}processPresignedUrls(e){const n={};for(const[a,c]of Object.entries(e))n[a]=this.enqueueRequest({url:c.url,description:"Upload file to S3",method:h.POST,isExternalUrl:!0,isAuthNeeded:!1,attachmentHash:a,blockers:[`s3-${c.fields.key}`],blocks:[a],s3url:c});return n}async getFilePayload(e){const n=await nt(e),a={sha1:n,file_type:e.type,extension:e.name.split(".").pop(),size:e.size};return await this.client.files.addCache(e,n),a}}class kg extends V{constructor(){super(...arguments);m(this,"name","Form Identifier");m(this,"url","/form-identifiers");m(this,"actions",{addOne:Wh,addMany:Yh,setOne:Zh,setMany:Jh,updateOne:Xh,updateMany:Qh,deleteOne:xh,deleteMany:em,initialize:Kh});m(this,"selectors",{selectById:sm,selectByIds:im})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,u=new Date().toISOString(),d=R({...e,created_by:l,submitted_at:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[d.form],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(()=>{this.dispatch(r(d.uuid))}),[d,o]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState());if(!r)throw new Error(`Expected form identifier with uuid ${e.uuid} to exist`);const l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(()=>{this.dispatch(a(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected form identifier with uuid ${e} to exist`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{form__organization:e}},n);return this.dispatch(a(c)),c}}class Lg extends V{constructor(){super(...arguments);m(this,"name","Form Identifier Value");m(this,"url","/form-identifier-values");m(this,"actions",{addOne:dm,addMany:rm,setOne:um,setMany:lm,updateOne:om,updateMany:hm,deleteOne:mm,deleteMany:ym,initialize:cm});m(this,"selectors",{selectById:Am,selectByIds:fm})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,u=new Date().toISOString(),d=R({...e,created_by:l,submitted_at:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[e.form_submission,e.form_identifier],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(()=>{this.dispatch(r(d.uuid))}),[d,o]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState());if(!r)throw new Error(`Expected form identifier value with uuid ${e.uuid} to exist`);const l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(()=>{this.dispatch(a(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected form identifier value with uuid ${e} to exist`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{form_submission__form_revision__form__organization:e}},n)).flat();return this.dispatch(a(r)),r}}class Ng extends V{constructor(){super(...arguments);m(this,"name","Form Revision Attachment");m(this,"url","/form-revision-attachments");m(this,"actions",{addOne:Om,addMany:Pm,setOne:Fm,setMany:gm,updateOne:bm,updateMany:_m,deleteOne:Mm,deleteMany:Rm,initialize:Im});m(this,"selectors",{selectById:Em,selectByIds:vm})}async bulkAdd(e){var A;const{addMany:n,setMany:a,deleteMany:c}=this.actions,r=new Date().toISOString(),l=((A=this.client.store.getState().userReducer.currentUser)==null?void 0:A.id)??null,u={},d=[],o=[];for(const f of e){const{revisionUuid:I,fieldIdentifier:g,file:F}=f,b=await this.client.files.getFilePayload(F);b.sha1 in u||(u[b.sha1]=b);const _=R({file:URL.createObjectURL(F),file_type:F.type,file_name:F.name,file_sha1:b.sha1,created_by:l,form_revision:I,submitted_at:r,field_identifier:g});d.push(_);const v={uuid:_.uuid,file_name:F.name,field_identifier:g,file_extension:b.extension,file_sha1:b.sha1,form_revision:I};o.push(v)}this.dispatch(n(d));const y=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{submitted_at:r,attachments:o,files:Object.values(u)},blockers:d.map(f=>f.form_revision),blocks:d.map(f=>f.uuid)});return y.then(f=>{this.client.files.processPresignedUrls(f.presigned_urls),this.dispatch(a(f.attachments))}).catch(()=>{this.dispatch(c(d.map(f=>f.uuid)))}),[d,y.then(({attachments:f})=>f)]}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{form_revision__form__organization:e}},n);return this.dispatch(a(c)),c}}class Gg extends V{constructor(){super(...arguments);m(this,"name","Form Revision");m(this,"url","/form-revisions");m(this,"actions",{addOne:Ai,addMany:fi,setOne:jm,setMany:qm,updateOne:Dm,updateMany:Cm,deleteOne:Si,deleteMany:Ti,initialize:Bm});m(this,"selectors",{selectById:$m,selectByIds:Um})}add(e){var A;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,u=((A=n.getState().userReducer.currentUser)==null?void 0:A.id)??null,d=new Date().toISOString(),o=R({...e,created_by:u,submitted_at:d});this.dispatch(a(o));const y=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(o),blockers:[e.form],blocks:[o.uuid]});return y.then(f=>{this.dispatch(c(f))}).catch(()=>{this.dispatch(r(o.uuid))}),[o,y]}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{form__organization:e}},n);return this.dispatch(a(c)),c}}class Hg extends V{constructor(){super(...arguments);m(this,"name","Form");m(this,"url","/forms");m(this,"actions",{addOne:Hm,addMany:Km,setOne:Wm,setMany:Ym,updateOne:Zm,updateMany:Jm,deleteOne:Xm,deleteMany:Qm,initialize:Gm});m(this,"selectors",{selectById:ty,selectByIds:sy})}add(e,n){var A;const{store:a}=this.client,{addOne:c,deleteOne:r}=this.actions,l=new Date().toISOString(),u=((A=a.getState().userReducer.currentUser)==null?void 0:A.id)??null,d=R({...e,submitted_at:l,created_by:u}),o=R({...n,form:d.uuid,submitted_at:l,created_by:u});this.dispatch(c(d)),this.dispatch(Ai(o));const y=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:{...z(d),initial_revision:{uuid:o.uuid,submitted_at:o.submitted_at,title:o.title,description:o.description,fields:o.fields}},blockers:[],blocks:[d.uuid,o.uuid]});return y.catch(f=>{throw this.dispatch(r(d.uuid)),this.dispatch(Si(o.uuid)),f}),[d,o,y]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error("Expected form to exist");const d=_y(e)(l),o=km(e)(l);this.dispatch(a(e)),this.dispatch(vi(C(d))),this.dispatch(Ti(C(o)));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(y){throw this.dispatch(c(u)),this.dispatch(fi(o)),this.dispatch(Ei(d)),y}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{organization:e}},n);return this.dispatch(a(c)),c}}class Kg extends V{constructor(){super(...arguments);m(this,"name","Form Submission Attachment");m(this,"url","/form-submission-attachments");m(this,"actions",{addOne:ay,addMany:gi,setOne:cy,setMany:dy,updateOne:ry,updateMany:uy,deleteOne:ly,deleteMany:bi,initialize:ny});m(this,"selectors",{selectById:oy,selectByIds:hy})}async bulkAdd(e){var A;const{addMany:n,setMany:a,deleteMany:c}=this.actions,r=new Date().toISOString(),l=((A=this.client.store.getState().userReducer.currentUser)==null?void 0:A.id)??null,u={},d=[],o=[];for(const f of e){const{submissionUuid:I,fieldIdentifier:g,file:F}=f,b=await this.client.files.getFilePayload(F);b.sha1 in u||(u[b.sha1]=b);const _=R({file:URL.createObjectURL(F),file_type:F.type,file_name:F.name,file_sha1:b.sha1,created_by:l,form_submission:I,submitted_at:r,field_identifier:g});d.push(_);const v={uuid:_.uuid,file_name:F.name,file_sha1:b.sha1,file_extension:b.extension,field_identifier:g,form_submission:I};o.push(v)}this.dispatch(n(d));const y=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{submitted_at:r,attachments:o,files:Object.values(u)},blockers:d.map(f=>f.form_submission),blocks:d.map(f=>f.uuid)});return y.then(f=>{this.client.files.processPresignedUrls(f.presigned_urls),this.dispatch(a(f.attachments))}).catch(f=>{throw this.dispatch(c(d.map(I=>I.uuid))),f}),[d,y.then(({attachments:f})=>f)]}async bulkDelete(e){const{store:n}=this.client,{deleteMany:a,addMany:c}=this.actions,r=n.getState(),l=Ri(e)(r);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!0),method:h.DELETE,url:`${this.url}/bulk/`,payload:{uuids:e},blockers:e,blocks:[]})}catch(u){throw this.dispatch(c(l)),u}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{form_submission__form_revision__form__organization:e}},n)).flat();return this.dispatch(a(r)),r}}class Wg extends V{constructor(){super(...arguments);m(this,"name","Form Submission");m(this,"url","/form-submissions");m(this,"actions",{addOne:Ty,addMany:Ei,setOne:fy,setMany:Sy,updateOne:Iy,updateMany:Oy,deleteOne:Py,deleteMany:vi,initialize:Ay});m(this,"selectors",{selectById:gy,selectByIds:by})}add(e){var A;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,u=((A=n.getState().userReducer.currentUser)==null?void 0:A.id)??null,d=new Date().toISOString(),o=R({...e,created_by:u,submitted_at:d}),y=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(o),blockers:[e.form_revision],blocks:[o.uuid]});return this.dispatch(a(o)),y.then(f=>{this.dispatch(c(f))}).catch(()=>{this.dispatch(r(o.uuid))}),[o,y]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=n.getState(),l=c(e.uuid)(r);if(!l)throw new Error(`Expected submission with uuid ${e.uuid} to exist`);const u={...l,...e};this.dispatch(a(u));const d=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${u.uuid}/`,payload:e,blockers:[u.uuid],blocks:[u.uuid]});return d.then(o=>{this.dispatch(a(o))}).catch(()=>{this.dispatch(a(l))}),[u,d]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected submission with uuid ${e} to exist`);const d=my(e)(l);this.dispatch(a(e)),this.dispatch(bi(C(d)));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(o){throw this.dispatch(c(u)),this.dispatch(gi(d)),o}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{limit:this.pageSize,paginate:!0,form_revision__form_organization:e}},n)).flat();return this.dispatch(a(r)),r}}class Yg extends V{constructor(){super(...arguments);m(this,"name","Geo Image");m(this,"url","/geo-images");m(this,"actions",{addOne:Vy,addMany:zy,setOne:Ey,setMany:vy,updateOne:By,updateMany:jy,deleteOne:qy,deleteMany:Dy,initialize:wy});m(this,"selectors",{selectById:$y,selectByIds:Uy})}async add(e){var g;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,{file:l,...u}=e,d=new Date().toISOString(),o=((g=n.getState().userReducer.currentUser)==null?void 0:g.id)??null,y=u.project,A=await this.client.files.getFilePayload(l),f=R({...u,file_name:l.name,file_sha1:A.sha1,file_type:l.type,file:URL.createObjectURL(l),submitted_at:d,created_by:o});this.dispatch(a(f));const I=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:{uuid:f.uuid,submitted_at:d,title:f.title,description:f.description,geo_marker:f.geo_marker,canvas_marker:f.canvas_marker,sha1:f.file_sha1,project:f.project,file_name:f.file_name,direction:f.direction,original_date:f.original_date,file:A},blocks:[y],blockers:[y]});return I.then(F=>{this.client.files.processPresignedUrls(F.presigned_urls),this.dispatch(c(F.geo_image))}).catch(()=>{this.dispatch(r(f.uuid))}),[f,I.then(F=>F.geo_image)]}async bulkAdd(e,n){var g;const{store:a}=this.client,{addMany:c,setMany:r,deleteMany:l}=this.actions,u=new Date().toISOString(),d=((g=a.getState().userReducer.currentUser)==null?void 0:g.id)??null,o=[],y=[],A=[],f={};for(const F of e){const{file:b,..._}=F,v=await this.client.files.getFilePayload(b);v.sha1 in f||(f[v.sha1]=v);const j=R({..._,file_name:b.name,file_sha1:v.sha1,file_type:b.type,file:URL.createObjectURL(b),submitted_at:u,created_by:d,project:n});o.push(j),y.push(j.uuid),A.push({uuid:j.uuid,sha1:j.file_sha1,file_name:j.file_name,title:j.title,description:j.description,geo_marker:j.geo_marker,canvas_marker:j.canvas_marker,direction:j.direction,original_date:j.original_date})}this.dispatch(c(o));const I=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{submitted_at:u,project:n,geo_images:A,files:Object.values(f)},blocks:[n],blockers:y});return I.then(F=>{this.client.files.processPresignedUrls(F.presigned_urls),this.dispatch(r(F.geo_images))}).catch(()=>{this.dispatch(l(y))}),[o,I.then(F=>F.geo_images)]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=n.getState(),l=c(e.uuid)(r);if(!l)throw new Error(`Map image with uuid ${e.uuid} does not exist in the store`);const u={...l,...e};this.dispatch(a(u));const d=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blocks:[e.uuid],blockers:[e.uuid]});return d.then(o=>{this.dispatch(a(o))}).catch(()=>{this.dispatch(a(l))}),[u,d]}async delete(e){const{store:n}=this.client,{deleteOne:a,setOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Map image with uuid ${e} does not exist in the store`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blocks:[e],blockers:[e]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.listPaginated({queryParams:{project:e}},n),r=c.flat();return this.dispatch(a(r)),c}}class Zg extends V{constructor(){super(...arguments);m(this,"name","Issue Association");m(this,"url","/issue-associations");m(this,"actions",{addOne:Yy,addMany:Et,setOne:Hy,setMany:Gy,updateOne:Ky,updateMany:Wy,deleteOne:Zy,deleteMany:vt,initialize:Ny});m(this,"selectors",{selectById:Xy,selectByIds:Qy})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=new Date().toISOString(),u=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,d=R({...e,submitted_at:l,created_by:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[e.associated_issue,...e.issue?[e.issue]:[],...e.asset?[e.asset]:[]],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(()=>{this.dispatch(r(d.uuid))}),[d,o]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=r(e)(n.getState());if(!l)throw new Error(`Issue association with uuid ${e} not found in store.`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(u){throw this.dispatch(c(l)),u}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{associated_issue__project:e}},n)).flat();return this.dispatch(a(r)),r}}class Jg extends Qe{constructor(){super(...arguments);m(this,"name","Issue Attachment");m(this,"url","/issue-attachments");m(this,"actions",{addOne:ap,addMany:Di,setOne:cp,setMany:dp,updateOne:rp,updateMany:up,deleteOne:lp,deleteMany:Ci,initialize:np});m(this,"selectors",{selectById:mp,selectByIds:yp})}getId(e){return e.uuid}buildModel(e){return R({file:URL.createObjectURL(e.file),file_sha1:e.file_sha1,created_by:e.created_by,file_name:e.file.name,file_type:e.file.type,submitted_at:e.submitted_at,issue:e.modelUuid})}buildPayload(e,n){return{uuid:e.uuid,file_name:e.file_name,file_sha1:e.file_sha1,file_extension:n.extension,issue:e.issue}}async bulkAdd(e){return this._bulkAdd(e.map(n=>({modelUuid:n.issueUuid,file:n.file})))}async delete(e){return this._delete(e)}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{issue__project:e}},n)).flat();return this.dispatch(a(r)),r}}class Xg extends Qe{constructor(){super(...arguments);m(this,"name","Issue Comment Attachment");m(this,"url","/issue-comment-attachments");m(this,"actions",{addOne:Sp,addMany:Tp,setOne:Ip,setMany:Op,updateOne:Pp,updateMany:Fp,deleteOne:gp,deleteMany:bp,initialize:fp});m(this,"selectors",{selectById:Mp,selectByIds:Rp})}getId(e){return e.uuid}buildModel(e){return R({file:URL.createObjectURL(e.file),file_sha1:e.file_sha1,created_by:e.created_by,file_name:e.file.name,file_type:e.file.type,submitted_at:e.submitted_at,issue_comment:e.modelUuid})}buildPayload(e,n){return{uuid:e.uuid,file_name:e.file_name,file_sha1:e.file_sha1,file_extension:n.extension,issue_comment:e.issue_comment}}async bulkAdd(e){return this._bulkAdd(e.map(n=>({modelUuid:n.issueCommentUuid,file:n.file})))}async delete(e){return this._delete(e)}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{issue_comment__issue__project:e}},n)).flat();return this.dispatch(a(r)),r}}class Qg extends V{constructor(){super(...arguments);m(this,"name","Issue Comment");m(this,"url","/issue-comments");m(this,"actions",{addOne:Vp,addMany:zp,setOne:Bp,setMany:jp,updateOne:qp,updateMany:Dp,deleteOne:Cp,deleteMany:$p,initialize:vp});m(this,"selectors",{selectById:Up,selectByIds:kp})}add(e){const{store:n}=this.client,{addOne:a,updateOne:c,deleteOne:r}=this.actions,l=R({...e,author:n.getState().userReducer.currentUser.id,submitted_at:new Date().toISOString()});this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(l),blockers:[e.issue],blocks:[l.uuid]});return u.then(d=>{this.dispatch(c(d))}).catch(()=>{this.dispatch(r(l.uuid))}),[l,u]}update(e){const{store:n}=this.client,{updateOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState());if(!r)throw new Error(`Comment with uuid ${e.uuid} not found in store`);const l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(()=>{this.dispatch(a(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=r(e)(n.getState());if(!l)throw new Error(`Comment with uuid ${e} not found in store`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(u){throw this.dispatch(c(l)),u}}async refreshStore(e,n){const{setMany:a}=this.actions,r=(await this.listPaginated({queryParams:{issue__project:e}},n)).flat();return this.dispatch(a(r)),r}}class xg extends V{constructor(){super(...arguments);m(this,"name","Issue");m(this,"url","/issues");m(this,"actions",{addOne:Hp,addMany:Hi,setOne:Kp,setMany:Wp,updateOne:Yp,updateMany:Zp,deleteOne:Jp,deleteMany:Ki,initialize:Gp});m(this,"selectors",{selectById:Qp,selectByIds:xp})}add(e){var A;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=n.getState(),u=new Date().toISOString(),d=((A=l.userReducer.currentUser)==null?void 0:A.id)??null,o=R({...e,submitted_at:u,created_by:d});this.dispatch(a(o));const y=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(o),blockers:[o.project,o.issue_type,...o.category?[o.category]:[]],blocks:[o.uuid]});return y.then(f=>{this.dispatch(c(f))}).catch(f=>{throw this.dispatch(r(o.uuid)),f}),[o,y]}update(e){var y;const{updateOne:n}=this.actions,{selectById:a}=this.selectors,c=this.client.store.getState(),r=a(e.uuid)(c);if(!r)throw new Error(`Attempting to update an issue with uuid ${e.uuid} that doesn't exist in the store`);const l={...r,...e};this.dispatch(n(l));const u={};for(const A of[U.TITLE,U.DESCRIPTION,U.STATUS,U.CATEGORY,U.PRIORITY,U.ASSIGNED_TO,U.DUE_DATE])if(A in e&&e[A]!==r[A])switch(A){case U.PRIORITY:u[A]=e[A];break;case U.DUE_DATE:u[A]=e[A];break;case U.DESCRIPTION:u[A]=e[A];break;case U.TITLE:u[A]=e[A];break;case U.STATUS:{const f=e[A],I=on(f)(c);if(!I)throw new Error(`Trying to update issue type status with ${f} which does not exist in store`);u[A]={name:I.name,color:I.color,uuid:I.uuid};break}case U.CATEGORY:{const f=e[A];if(f===null)u[A]=null;else{const I=ii(f)(c);if(!I)throw new Error(`Trying to update category with ${f} which does not exist in store.`);u[A]={name:I.name,color:I.color,uuid:I.uuid}}break}case U.ASSIGNED_TO:{const f=e[A];if(f===null)u[A]=null;else{const I=qt(f)(c);if(!I)throw new Error(`Trying to update assigned to with ${f} which does not exist in store.`);u[A]={full_name:I.username,id:I.id}}break}}const d=R({created_by:((y=c.userReducer.currentUser)==null?void 0:y.id)??null,submitted_at:new Date().toISOString(),issue:r.uuid,changes:u});this.dispatch(mn(d));const o=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return o.then(A=>{this.dispatch(n(A))}).catch(()=>{this.dispatch(n(r)),this.dispatch(pn(d.uuid))}),[l,o]}bulkUpdate(e,n){const{store:a}=this.client,{updateMany:c}=this.actions,{selectByIds:r}=this.selectors,l=C(e).toSorted(ft);if(l.length!==e.length)throw new Error("payloads contains duplicate uuids.");const u=r(l)(a.getState()).toSorted(Yt);if(l.length!=u.length)throw new Error(`Attempting to bulk update ${l.length-u.length} issues that dont exist in the store`);const d=[];for(let f=0;f<l.length;f++)d.push({...u[f],...e[f]});this.dispatch(c(d));const o=xe(e,Math.min(n??e.length,N)),y=[];let A=null;for(const f of o){const I=et.v4(),g=C(f),F=f.map(({status:v})=>v).filter(Boolean),b=f.map(({category:v})=>v).filter(Boolean),_=this.enqueueRequest({description:P(h.PATCH,this.name,!0),method:h.PATCH,url:`${this.url}/bulk/`,payload:{payloads:f},blockers:g.concat(F).concat(b).concat(A?[A]:[]),blocks:g.concat([I])});y.push(_),A=I}return Promise.all(y).then(f=>{this.dispatch(c(f.flat()))}).catch(()=>{this.dispatch(c(u))}),[d,y]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`No issue with uuid ${e} found in the store`);const d=hp(e)(l),o=MS(e)(l),y={};for(const f of xy(e)(l))y[f.uuid]=f;for(const f of ep(e)(l))y[f.uuid]=f;const A=Object.values(y);this.dispatch(a(e)),this.dispatch(Ci(C(d))),this.dispatch(An(C(o))),this.dispatch(vt(C(A)));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(f){throw this.dispatch(c(u)),this.dispatch(Di(d)),this.dispatch(yn(o)),this.dispatch(Et(A)),f}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{project:e}},n)).flat();return this.dispatch(a(r)),r}}class eb extends Qe{constructor(){super(...arguments);m(this,"name","Issue Type Attachment");m(this,"url","/issue-type-attachments");m(this,"actions",{addOne:nA,addMany:aA,setOne:cA,setMany:dA,updateOne:rA,updateMany:uA,deleteOne:lA,deleteMany:oA,initialize:iA});m(this,"selectors",{selectById:mA,selectByIds:yA})}getId(e){return e.uuid}buildModel(e){return R({file:URL.createObjectURL(e.file),file_sha1:e.file_sha1,created_by:e.created_by,file_name:e.file.name,file_type:e.file.type,submitted_at:e.submitted_at,issue_type:e.modelUuid})}buildPayload(e,n){return{uuid:e.uuid,file_name:e.file_name,file_sha1:e.file_sha1,file_extension:n.extension,issue_type:e.issue_type}}async bulkAdd(e){return this._bulkAdd(e.map(n=>({modelUuid:n.issueTypeUuid,file:n.file})))}async delete(e){return this._delete(e)}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{issue_type__organization:e}},n);return this.dispatch(a(c)),c}}class tb extends V{constructor(){super(...arguments);m(this,"name","Issue Type Fields Attachment");m(this,"url","/issue-type-fields-attachments");m(this,"actions",{addOne:SA,addMany:TA,setOne:IA,setMany:OA,updateOne:PA,updateMany:FA,deleteOne:gA,deleteMany:bA,initialize:fA});m(this,"selectors",{selectById:MA,selectByIds:RA})}async bulkAdd(e){var A;const{addMany:n,setMany:a,deleteMany:c}=this.actions,r=new Date().toISOString(),l=((A=this.client.store.getState().userReducer.currentUser)==null?void 0:A.id)??null,u={},d=[],o=[];for(const f of e){const{fieldsRevisionUuid:I,fieldIdentifier:g,file:F}=f,b=await this.client.files.getFilePayload(F);b.sha1 in u||(u[b.sha1]=b);const _=R({file:URL.createObjectURL(F),file_type:F.type,file_name:F.name,file_sha1:b.sha1,created_by:l,fields_revision:I,submitted_at:r,field_identifier:g});d.push(_);const v={uuid:_.uuid,file_name:F.name,file_extension:b.extension,field_identifier:g,file_sha1:b.sha1,fields_revision:I};o.push(v)}this.dispatch(n(d));const y=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{submitted_at:r,attachments:o,files:Object.values(u)},blockers:d.map(f=>f.fields_revision),blocks:d.map(f=>f.uuid)});return y.then(f=>{this.client.files.processPresignedUrls(f.presigned_urls),this.dispatch(a(f.attachments))}).catch(()=>{this.dispatch(c(d.map(f=>f.uuid)))}),[d,y.then(({attachments:f})=>f)]}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{fields_revision__issue_type__organization:e}},n);return this.dispatch(a(c)),c}}class sb extends V{constructor(){super(...arguments);m(this,"name","Issue Type Fields");m(this,"url","/issue-type-fields");m(this,"actions",{addOne:KA,addMany:WA,setOne:YA,setMany:ZA,updateOne:JA,updateMany:XA,deleteOne:QA,deleteMany:xA,initialize:HA});m(this,"selectors",{selectById:tf,selectByIds:sf})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,u=new Date().toISOString(),d=R({...e,created_by:l,submitted_at:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[d.issue_type],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(A=>{throw this.dispatch(r(d.uuid)),A}),[d,o]}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{issue_type__organization:e}},n);return this.dispatch(a(c)),c}}class ib extends V{constructor(){super(...arguments);m(this,"name","Issue Type Field Values Attachment");m(this,"url","/issue-type-field-values-attachments");m(this,"actions",{addOne:df,addMany:en,setOne:rf,setMany:uf,updateOne:lf,updateMany:of,deleteOne:hf,deleteMany:tn,initialize:cf});m(this,"selectors",{selectById:yf,selectByIds:pf})}async bulkAdd(e){var A;const{addMany:n,setMany:a,deleteMany:c}=this.actions,r=new Date().toISOString(),l=((A=this.client.store.getState().userReducer.currentUser)==null?void 0:A.id)??null,u={},d=[],o=[];for(const f of e){const{fieldValuesUuid:I,fieldIdentifier:g,file:F}=f,b=await this.client.files.getFilePayload(F);b.sha1 in u||(u[b.sha1]=b);const _=R({file:URL.createObjectURL(F),file_type:F.type,file_name:F.name,file_sha1:b.sha1,created_by:l,field_values:I,submitted_at:r,field_identifier:g});d.push(_);const v={uuid:_.uuid,file_name:F.name,file_sha1:b.sha1,file_extension:b.extension,field_identifier:g,field_values:I};o.push(v)}this.dispatch(n(d));const y=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{submitted_at:r,attachments:o,files:Object.values(u)},blockers:d.map(f=>f.field_values),blocks:d.map(f=>f.uuid)});return y.then(({presigned_urls:f,attachments:I})=>{this.client.files.processPresignedUrls(f),this.dispatch(a(I))}).catch(f=>{throw this.dispatch(c(d.map(I=>I.uuid))),f}),[d,y.then(({attachments:f})=>f)]}async bulkDelete(e){const{store:n}=this.client,{deleteMany:a,addMany:c}=this.actions,{selectByIds:r}=this.selectors,l=n.getState(),u=r(e)(l);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!0),method:h.DELETE,url:`${this.url}/bulk/`,payload:{uuids:e},blockers:e,blocks:[]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{field_values__issue__project:e,latest:!0}},n)).flat();return this.dispatch(a(r)),r}}class nb extends V{constructor(){super(...arguments);m(this,"name","Issue Type Field Values");m(this,"url","/issue-type-field-values");m(this,"actions",{addOne:VA,addMany:zA,setOne:BA,setMany:jA,updateOne:qA,updateMany:DA,deleteOne:CA,deleteMany:$A,initialize:vA});m(this,"selectors",{selectById:kA,selectByIds:LA})}add(e){var A;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,u=((A=n.getState().userReducer.currentUser)==null?void 0:A.id)??null,d=new Date().toISOString(),o=R({...e,created_by:u,submitted_at:d}),y=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(o),blockers:[e.issue,e.fields_revision],blocks:[o.uuid]});return this.dispatch(a(o)),y.then(f=>{this.dispatch(c(f))}).catch(()=>{this.dispatch(r(o.uuid))}),[o,y]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=n.getState(),l=c(e.uuid)(r);if(!l)throw new Error(`Expected IssueTypeFieldValues with uuid ${e.uuid} to exist`);const u={...l,...e};this.dispatch(a(u));const d=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[u.uuid,u.fields_revision,u.issue],blocks:[u.uuid]});return d.then(o=>{this.dispatch(a(o))}).catch(()=>{this.dispatch(a(l))}),[u,d]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected submission with uuid ${e} to exist`);const d=Af(e)(l);this.dispatch(a(e)),this.dispatch(tn(C(d)));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(o){throw this.dispatch(c(u)),this.dispatch(en(d)),o}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{issue__project:e,latest:!0}},n)).flat();return this.dispatch(a(r)),r}}class ab extends V{constructor(){super(...arguments);m(this,"name","Issue Type Identifier");m(this,"url","/issue-type-identifiers");m(this,"actions",{addOne:If,addMany:Of,setOne:Pf,setMany:Ff,updateOne:gf,updateMany:bf,deleteOne:_f,deleteMany:Mf,initialize:Tf});m(this,"selectors",{selectById:wf,selectByIds:Ef})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,u=new Date().toISOString(),d=R({...e,created_by:l,submitted_at:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[d.issue_type],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(()=>{this.dispatch(r(d.uuid))}),[d,o]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState());if(!r)throw new Error(`Expected issue type identifier with uuid ${e.uuid} to exist`);const l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(()=>{this.dispatch(a(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected issue type identifier with uuid ${e} to exist`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{issue_type__organization:e}},n);return this.dispatch(a(c)),c}}class cb extends V{constructor(){super(...arguments);m(this,"name","Issue Type Identifier Value");m(this,"url","/issue-type-identifier-values");m(this,"actions",{addOne:Bf,addMany:jf,setOne:qf,setMany:Df,updateOne:Cf,updateMany:$f,deleteOne:Uf,deleteMany:kf,initialize:zf});m(this,"selectors",{selectById:Nf,selectByIds:Gf})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,u=new Date().toISOString(),d=R({...e,created_by:l,submitted_at:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[e.issue,e.issue_type_identifier],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(()=>{this.dispatch(r(d.uuid))}),[d,o]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState());if(!r)throw new Error(`Expected issue type identifier value with uuid ${e.uuid} to exist`);const l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(()=>{this.dispatch(a(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected issue type identifier value with uuid ${e} to exist`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{issue__project:e}},n)).flat();return this.dispatch(a(r)),r}}class db extends V{constructor(){super(...arguments);m(this,"name","Issue Type");m(this,"url","/issue-types");m(this,"actions",{addOne:Yf,addMany:Zf,setOne:Jf,setMany:Xf,updateOne:Qf,updateMany:xf,deleteOne:eS,deleteMany:tS,initialize:Wf});m(this,"selectors",{selectById:iS,selectByIds:nS})}add(e){var A;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,u=((A=n.getState().userReducer.currentUser)==null?void 0:A.id)??null,d=new Date().toISOString(),o=R({...e,submitted_at:d,created_by:u});this.dispatch(a(o));const y=this.enqueueRequest({method:h.POST,url:`${this.url}/`,payload:z(o),blockers:[],blocks:[o.uuid]});return y.then(f=>{this.dispatch(c(f))}).catch(()=>{this.dispatch(r(o.uuid))}),[o,y]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=n.getState(),l=c(e.uuid)(r);if(!l)throw new Error(`IssueType with uuid ${e.uuid} does not exist in the store.`);const u={...l,...e};this.dispatch(a(u));const d=this.enqueueRequest({method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return d.then(o=>{this.dispatch(a(o))}).catch(()=>{this.dispatch(a(l))}),[u,d]}async delete(e){const{store:n}=this.client,{deleteOne:a,setOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`IssueType with uuid ${e} does not exist in the store.`);const d=eA(e)(l);this.dispatch(a(e)),this.dispatch(Ki(C(d)));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(o){throw this.dispatch(c(u)),this.dispatch(Hi(d)),o}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{organization:e}},n);return this.dispatch(a(c)),c}}class rb extends V{constructor(){super(...arguments);m(this,"name","Issue Type Status");m(this,"url","/issue-type-statuses");m(this,"actions",{addOne:rS,addMany:uS,setOne:lS,setMany:oS,updateOne:hS,updateMany:mS,deleteOne:yS,deleteMany:pS,initialize:dS});m(this,"selectors",{selectById:on,selectByIds:fS})}add(e){var y;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=((y=n.getState().userReducer.currentUser)==null?void 0:y.id)??null,u=new Date().toISOString(),d=R({...e,created_by:l,submitted_at:u});this.dispatch(a(d));const o=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(d),blockers:[e.issue_type],blocks:[d.uuid]});return o.then(A=>{this.dispatch(c(A))}).catch(()=>{this.dispatch(r(d.uuid))}),[d,o]}update(e){const{setOne:n}=this.actions,{selectById:a}=this.selectors,c=this.client.store.getState(),r=a(e.uuid)(c);if(!r)throw new Error(`Expected an existing issue type status with uuid ${e.uuid}`);const l={...r,...e};this.dispatch(n(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(n(d))}).catch(()=>{this.dispatch(n(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=r(e)(n.getState());if(!l)throw new Error(`No issue type status with uuid ${e} found in the store`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(u){throw this.dispatch(c(l)),u}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{issue_type__organization:e}},n);return this.dispatch(a(c)),c}}class ub extends V{constructor(){super(...arguments);m(this,"name","Issue Update");m(this,"url","/issue-updates");m(this,"actions",{addOne:mn,addMany:yn,setOne:OS,setMany:PS,updateOne:FS,updateMany:gS,deleteOne:pn,deleteMany:An,initialize:IS});m(this,"selectors",{selectById:bS,selectByIds:_S})}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{issue__project:e}},n)).flat();return this.dispatch(a(r)),r}}const lb=1800;function ob(t){if(!t.access)throw new Error("Missing access token");if(!t.refresh)throw new Error("Missing refresh token");return{accessToken:t.access,refreshToken:t.refresh}}class hb extends dg{constructor(){super(...arguments);m(this,"_getRenewedTokens",async e=>{const n=this.performRequest({method:h.POST,url:this.refreshTokensUrl,payload:{refresh:e},isAuthNeeded:!1,checkAuth:!1});let a;try{a=await n}catch(c){console.error("Could not renew tokens; clearing auth",c),this.clearAuth();return}if(!a.access)throw new Error("Missing access token");return{accessToken:a.access,refreshToken:a.refresh??this.getRefreshToken()}})}clearAuth(){console.debug(this.constructor.name,"clearing auth;"),this.dispatch(Do(!1)),this.clearTokens(),this.dispatch(M()),this.dispatch(M())}async renewTokens(){const e=this.getRefreshToken();if(!e)throw new Error("No refresh token found");console.debug(this.constructor.name,"renewing tokens");try{const n=await this._getRenewedTokens(e);if(!n)return;console.log("Got renewed tokens"),this.setTokens(n)}catch(n){throw console.error("Could not renew tokens; clearing auth",n),this.clearAuth(),n}}tokenIsExpiringSoon(){const e=this.getAccessToken();if(!e)return!1;const n=Date.now()/1e3;let a;try{a=qO(e).exp??n}catch{a=n}return a-n<lb}getAuthHeader(){return`Bearer ${this.getAccessToken()}`}async prepareAuth(){if(this.tokenIsExpiringSoon()){console.debug(this.constructor.name,"preparing auth");try{await this.renewTokens()}catch(e){return e instanceof k&&this.clearAuth(),e instanceof Error?Promise.reject(e):Promise.reject(new Error((e??at).toString()))}}}async handleUnauthorized(e,n){const a=this.client.store.getState();if(e.url.endsWith("/token/refresh/"))throw a.authReducer.isLoggedIn&&console.warn("No signed-in user to sign out."),this.clearAuth(),new k({message:"You have been signed out due to inactivity.",response:n,discard:!0});if(a.authReducer.isLoggedIn)await this.renewTokens();else throw console.debug("Forbidden; user is not logged in."),new k({message:"Incorrect username or password.",response:n,discard:!0})}async initAuth(e){const n=et.v4();return console.debug(this.constructor.name,"Initiating auth"),this.performRequest({uuid:n,method:h.POST,url:this.initTokensUrl,payload:e,isAuthNeeded:!1,checkAuth:!1}).then(a=>{this.setTokens(ob(a))})}}class mb extends ct{constructor(){super(...arguments);m(this,"name","Organization Access");m(this,"url","/organization-accesses");m(this,"actions",{addOne:LS,addMany:NS,setOne:GS,setMany:HS,updateOne:KS,updateMany:WS,deleteOne:YS,deleteMany:ZS,initialize:kS});m(this,"selectors",{selectById:XS,selectByIds:QS})}update(e){const{store:n}=this.client,{updateOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState()),l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(d=>{throw this.dispatch(a(r)),d}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l),d=qt(u.user)(l);this.dispatch(a(u.uuid)),this.dispatch(On(u.user));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${u.uuid}/`,blockers:[u.uuid],blocks:[]})}catch(o){throw this.dispatch(c(u)),this.dispatch(In(d)),o}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{organization:e}},n);return this.dispatch(a(c)),c}}class yb extends ct{constructor(){super(...arguments);m(this,"name","Organization");m(this,"url","/organizations");m(this,"actions",{addOne:aT,addMany:nT,setOne:iT,setMany:sT,updateOne:dT,updateMany:cT,deleteOne:rT,deleteMany:uT,initialize:tT});m(this,"selectors",{selectById:hT,selectByIds:mT})}async add(e){const{addOne:n}=this.actions,a=await this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:e,blockers:[],blocks:[]});return this.dispatch(n(a)),a}async update(e){const{setOne:n}=this.actions,a=await this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[e.uuid]});return this.dispatch(n(a)),a}async invite(e,n){return this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/${e}/invite/${n}/`,blockers:[],blocks:[]})}async refreshStore(e){const{initialize:n}=this.actions,a=await this.list({},e);return this.dispatch(n(a)),a}}class pb extends V{constructor(){super(...arguments);m(this,"name","Project Access");m(this,"url","/project-accesses");m(this,"actions",{addOne:FT,addMany:gT,setOne:bT,setMany:_T,updateOne:MT,updateMany:RT,deleteOne:wT,deleteMany:ET,initialize:PT});m(this,"selectors",{selectById:VT,selectByIds:zT})}add(e){var d;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=R({...e,created_by:((d=n.getState().userReducer.currentUser)==null?void 0:d.id)??null});this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(l),blockers:[l.organization_access,l.project],blocks:[l.uuid]});return u.then(o=>{this.dispatch(c(o))}).catch(o=>{throw this.dispatch(r(l.uuid)),o}),[l,u]}bulkAdd(e){var o;const{store:n}=this.client,{addMany:a,deleteMany:c,updateMany:r}=this.actions,l=((o=n.getState().userReducer.currentUser)==null?void 0:o.id)??null,u=e.map(y=>R({...y,created_by:l}));this.dispatch(a(u));const d=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{project_accesses:u.map(y=>z(y))},blockers:u.flatMap(y=>[y.project,y.organization_access]),blocks:u.map(y=>y.uuid)});return d.then(y=>{this.dispatch(r(y))}).catch(y=>{throw this.dispatch(c(u.map(A=>A.uuid))),y}),[u,d]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState()),l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:e,blockers:[e.uuid],blocks:[]});return u.then(d=>{this.dispatch(a(d))}).catch(d=>{throw this.dispatch(a(r)),d}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,addOne:c}=this.actions,{selectById:r}=this.selectors,l=r(e)(n.getState());this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]})}catch(u){throw this.dispatch(c(l)),u}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{project__organization:e}},n);return this.dispatch(a(c)),c}}class Ab extends Qe{constructor(){super(...arguments);m(this,"name","Project Attachment");m(this,"url","/project-attachments");m(this,"actions",{addOne:qT,addMany:DT,setOne:CT,setMany:$T,updateOne:UT,updateMany:kT,deleteOne:LT,deleteMany:NT,initialize:jT});m(this,"selectors",{selectById:HT,selectByIds:KT})}getId(e){return e.uuid}buildModel(e){return R({file:URL.createObjectURL(e.file),file_sha1:e.file_sha1,created_by:e.created_by,file_name:e.file.name,file_type:e.file.type,submitted_at:e.submitted_at,project:e.modelUuid})}buildPayload(e,n){return{uuid:e.uuid,file_name:e.file_name,file_sha1:e.file_sha1,file_extension:n.extension,project:e.project}}async bulkAdd(e){return this._bulkAdd(e.map(n=>({modelUuid:n.projectUuid,file:n.file})))}async delete(e){return this._delete(e)}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{project__organization:e}},n);return this.dispatch(a(c)),c}}class fb extends V{constructor(){super(...arguments);m(this,"name","Project File");m(this,"url","/project-files");m(this,"actions",{addOne:QT,addMany:xT,setOne:JT,setMany:XT,updateOne:eI,updateMany:tI,deleteOne:sI,deleteMany:iI,initialize:ZT});m(this,"selectors",{selectById:uI,selectByIds:lI})}async saveExisting(e){const{setOne:n}=this.actions;if(!e.uuid)throw new Error("You can only use this method to save existing project files. The one provided has no uuid.");const a={...e};delete a.file;const c=this.enqueueRequest({method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:a,blockers:[e.uuid],blocks:[e.uuid]});return c.then(r=>{this.dispatch(n(r))}),c}saveActive(){const{store:e}=this.client,{setOne:n}=this.actions,a=e.getState(),c=a.projectFileReducer.activeProjectFileId;if(!c)throw new Error("No active project file");const r=a.projectFileReducer.instances[c];if(!r)throw new Error("No active project file");if(!r.bounds&&!r.canvas_bounds)throw new Error("Project file must either have bounds or canvas_bounds set");let l;if(typeof r.file=="string"&&!r.file.startsWith("blob:")){const o={...r};delete o.file,l={method:h.PATCH,url:`${this.url}/${c}/`,payload:o,blockers:[c],blocks:[c]}}else l=new Promise((o,y)=>{this.client.files.uploadFileToS3(r.file_sha1).then(([A])=>{o({method:h.POST,url:`${this.url}/`,payload:{...r,...A},blockers:[c],blocks:[c]})}).catch(y)});const d=Promise.resolve(l).then(o=>this.enqueueRequest(o));return d.then(o=>{this.dispatch(n(o))}),this.dispatch(cI),this.dispatch(aI(null)),this.dispatch(nI(!1)),[r,d]}async delete(e){const{store:n}=this.client,{addOne:a,deleteOne:c}=this.actions,{selectById:r}=this.selectors,l=r(e)(n.getState());if(!l)throw new Error(`Expected project file with uuid ${e} to exist in the store.`);this.dispatch(c(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}`,blockers:[e],blocks:[]})}catch(u){throw this.dispatch(a(l)),u}}async refreshStore(e,n){const{initialize:a}=this.actions,r=(await this.listPaginated({queryParams:{project:e}},n)).flat();return this.dispatch(a(r)),r}}class Sb extends ct{constructor(){super(...arguments);m(this,"name","Project");m(this,"url","/projects");m(this,"actions",{addOne:fI,addMany:AI,setOne:pI,setMany:yI,updateOne:TI,updateMany:SI,deleteOne:II,deleteMany:OI,initialize:mI});m(this,"selectors",{selectById:gI,selectByIds:bI})}async add(e){const{addOne:n}=this.actions,a=await this.performRequest({method:h.POST,url:`${this.url}/`,payload:z(e)});return this.dispatch(n(a)),a}async update(e){const{updateOne:n}=this.actions,a=await this.performRequest({method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:z(e)});return this.dispatch(n(a)),a}async delete(e){const{deleteOne:n}=this.actions,a=await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[]});return this.dispatch(n(e)),a}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{organization:e}},n);return this.dispatch(a(c)),c}}class Tb extends V{constructor(){super(...arguments);m(this,"name","Team Membership");m(this,"url","/team-memberships");m(this,"actions",{addOne:wI,addMany:EI,setOne:vI,setMany:VI,updateOne:zI,updateMany:BI,deleteOne:jI,deleteMany:qI,initialize:RI});m(this,"selectors",{selectById:$I,selectByIds:UI})}add(e){var d;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=R({...e,created_by:((d=n.getState().userReducer.currentUser)==null?void 0:d.id)??null});this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(l),blockers:[e.team],blocks:[l.uuid]});return u.then(o=>{this.dispatch(c(o))}).catch(()=>{this.dispatch(r(l.uuid))}),[l,u]}bulkAdd(e){var o;const{store:n}=this.client,{addMany:a,setMany:c,deleteMany:r}=this.actions,l=((o=n.getState().userReducer.currentUser)==null?void 0:o.id)??null,u=e.map(y=>R({...y,created_by:l}));this.dispatch(a(u));const d=this.enqueueRequest({description:P(h.POST,this.name,!0),method:h.POST,url:`${this.url}/bulk/`,payload:{team_memberships:u.map(y=>z(y))},blockers:u.map(y=>y.team),blocks:u.map(y=>y.uuid)});return d.then(y=>{this.dispatch(c(y))}).catch(()=>{this.dispatch(r(u.map(y=>y.uuid)))}),[u,d]}async delete(e){const{store:n}=this.client,{deleteOne:a,setOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected team membership with uuid ${e} to exist`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[e]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{team__organization:e}},n);return this.dispatch(a(c)),c}}class Ib extends V{constructor(){super(...arguments);m(this,"name","Team");m(this,"url","/teams");m(this,"actions",{addOne:NI,addMany:GI,setOne:HI,setMany:KI,updateOne:WI,updateMany:YI,deleteOne:ZI,deleteMany:JI,initialize:LI});m(this,"selectors",{selectById:QI,selectByIds:xI})}add(e){var d;const{store:n}=this.client,{addOne:a,setOne:c,deleteOne:r}=this.actions,l=R({...e,submitted_at:new Date().toISOString(),created_by:((d=n.getState().userReducer.currentUser)==null?void 0:d.id)??null});this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.POST,this.name,!1),method:h.POST,url:`${this.url}/`,payload:z(l),blockers:[],blocks:[l.uuid]});return u.then(o=>{this.dispatch(c(o))}).catch(()=>{this.dispatch(r(l.uuid))}),[l,u]}update(e){const{store:n}=this.client,{setOne:a}=this.actions,{selectById:c}=this.selectors,r=c(e.uuid)(n.getState());if(!r)throw new Error(`Expected team with uuid ${e.uuid} to exist`);const l={...r,...e};this.dispatch(a(l));const u=this.enqueueRequest({description:P(h.PATCH,this.name,!1),method:h.PATCH,url:`${this.url}/${e.uuid}/`,payload:z(e),blockers:[e.uuid],blocks:[e.uuid]});return u.then(d=>{this.dispatch(a(d))}).catch(()=>{this.dispatch(a(r))}),[l,u]}async delete(e){const{store:n}=this.client,{deleteOne:a,setOne:c}=this.actions,{selectById:r}=this.selectors,l=n.getState(),u=r(e)(l);if(!u)throw new Error(`Expected team with uuid ${e} to exist`);this.dispatch(a(e));try{return await this.enqueueRequest({description:P(h.DELETE,this.name,!1),method:h.DELETE,url:`${this.url}/${e}/`,blockers:[e],blocks:[e]})}catch(d){throw this.dispatch(c(u)),d}}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({queryParams:{organization:e}},n);return this.dispatch(a(c)),c}}class Ob extends ct{constructor(){super(...arguments);m(this,"name","User");m(this,"url","/user");m(this,"actions",{addOne:In,addMany:zS,setOne:VS,setMany:vS,updateOne:jS,updateMany:BS,deleteOne:On,deleteMany:qS,initialize:ES});m(this,"selectors",{selectById:qt,selectByIds:$S})}async list(e,n){const{organizationUuid:a,...c}=e,r=a?`/organizations/${a}${this.url}s/`:`/${this.url}`;return this.performRequest({method:h.GET,url:r,...c},n)}async refreshStore(e,n){const{initialize:a}=this.actions,c=await this.list({organizationUuid:e},n);return this.dispatch(a(c)),c}}async function kn(t,s,e,n,a){const c=n instanceof tt;c&&s.checkAuth!==!1&&await n.auth.prepareAuth();const r={queryParams:"",isAuthNeeded:!0},{s3url:l,payload:u,headers:d,method:o,queryParams:y,attachmentHash:A,isExternalUrl:f,isAuthNeeded:I,isResponseBlob:g}={...r,...s};let F=s.url;const b=A?await e.files.fetchCache(A):void 0;if(A&&!b)throw new Error(`Cannot upload file ${A} because it's not cached.`);!f&&!F.startsWith("http")&&(!F.startsWith("/")&&!F.startsWith("blob:")&&(F="/"+F),F=t+F);const _=D=>{if(A){if(!l)throw new Error(`No S3 URL for file ${A}`);if("warning"in l)throw new Error(`S3 URL warning for file ${A}`);if(!b)throw new Error(`No file for file ${A}`);const q=l.fields["x-amz-checksum-sha1"];if(!q)throw new Error(`No checksum for file ${A}`);return D.set("x-amz-checksum-sha1",q).field({...u,...l.fields}).attach("file",b)}return D.send(u)},j={[h.GET]:()=>g?it.get(F.toString()).responseType("blob"):it.get(F.toString()),[h.POST]:()=>{const D=it.post(F.toString());return _(D)},[h.PATCH]:()=>{const D=it.patch(F.toString());return _(D)},[h.PUT]:()=>{const D=it.put(F.toString());return _(D)},[h.DELETE]:()=>{const D=it.delete(F.toString());return _(D)}}[o];let B=j();if(a==null||a.addEventListener("abort",()=>{console.debug("aborting request:",s),B.abort()}),I&&c){const D=n.auth.getAuthHeader();B=B.set("Authorization",D)}d&&(B=B.set(d));try{return await B.query(y)}catch(D){const q=fO(D),wO=q==null?void 0:q.status;if(c&&wO===401)return await n.auth.handleUnauthorized(B,q),B.query(y);throw new k({response:q,innerError:D,discard:Dn.includes(wO)})}}class Pb{constructor(s){m(this,"store");this.store=s}_performRequest(s,e,n,a){const c=new Nt,r={...e,uuid:e.uuid??et.v4()};return kn(s,r,this,n,a).then(l=>{c.resolve(l.body)}).catch(l=>{l instanceof Error?c.reject(l):c.reject(new Error((l??at).toString()))}),c}async performRequest(s,e,n,a){return this._performRequest(s,e,n,a).then(c=>{if(c instanceof k)throw c;return c})}async enqueueRequest(s,e,n){return this._enqueueRequest(s,e,n).then(a=>{if(a instanceof k)throw a;return a})}_enqueueRequest(s,e,n){const a=new Nt,c={...s,BASE_URL:e,serviceName:n},r=this.store.dispatch(fT(c)),l=d=>{if(d)a.resolve(d.body);else{const o=new k({message:"Could not get a response from the server.",response:d,discard:!0});a.reject(o)}},u=d=>{d instanceof k?d.options.discard=!0:(console.error("Received an unexpected error while processing a request:",d,`
|
|
15
|
-
Converting error to APIError and discarding.`),d=new k({message:"An error occurred while processing the request.",innerError:d,discard:!0})),a.reject(d)};return r.then(l,u),a}async performPagination(s,e,n,a,c){const r={...e,queryParams:{...e.queryParams,paginate:!0,limit:n}},{method:l}=r,u=[];let d=await this.performRequest(s,r,a,c);for(u.push(d.results);d.next;)d=await this.performRequest(s,{url:d.next,method:l},a,c),u.push(d.results);return u}}class dt{constructor(){m(this,"graph");m(this,"requestAttemptCounter");this.graph=new DO.DepGraph,this.requestAttemptCounter={}}static _fromOutbox(s){const e=new dt;for(let n=0;n<s.length;n++){const a=s[n];if(!a){console.error("Outbox item was undefined");continue}e.sneakRequest(a);for(let c=0;c<n;c++){const r=s[c];if(!r){console.error("Previous outbox item was undefined");continue}r.payload.uuid!==a.payload.uuid&&r.payload.blocks.some(l=>a.payload.blockers.includes(l))&&dt._addDependency(a.payload.uuid,r.payload.uuid,e.graph)}}return e}_addDependency(s,e){dt._addDependency(s,e,this.graph)}static _addDependency(s,e,n){if(s===e)throw new Error(`Tried to add dependency from node to itself: ${s}`);if(!n.hasNode(s))throw new Error(`Tried to add dependency from non-existent node: ${s} (to node: ${e})`);if(!n.hasNode(e))throw new Error(`Tried to add dependency to non-existent node: ${e} (from node: ${s})`);n.addDependency(s,e)}addRequest(s){if(this.graph.addNode(s.payload.uuid,s),!(s.payload.blockers.length===0||this.graph.size()===1))for(const e of this.graph.overallOrder()){if(e===s.payload.uuid)continue;const n=this.graph.getNodeData(e);s.payload.blockers.some(a=>n.payload.blocks.includes(a))&&this._addDependency(s.payload.uuid,e)}}insertRequest(s){this.graph.addNode(s.payload.uuid,s);for(const e of this.graph.overallOrder()){if(e===s.payload.uuid)continue;this.graph.getNodeData(e).payload.blockers.some(a=>s.payload.blocks.includes(a))&&this._addDependency(e,s.payload.uuid)}}sneakRequest(s){this.graph.addNode(s.payload.uuid,s)}_getNextNode(){const s=this.graph.overallOrder(!0);let e=1/0,n;for(const a of s){const c=this.requestAttemptCounter[a]||0;c<e&&(e=c,n=a)}return n}peek(){const s=this._getNextNode();if(s)return this.graph.getNodeData(s)}remove(s){this.graph.removeNode(s),delete this.requestAttemptCounter[s]}pop(){const s=this.peek();return s&&this.graph.removeNode(s.payload.uuid),s}getQueue(){const s=this.graph.overallOrder().map(n=>this.graph.getNodeData(n)),e=this._getNextNode();if(e){const n=this.graph.getNodeData(e),a=s.findIndex(c=>c.payload.uuid===n.payload.uuid);a!==-1&&(s.splice(a,1),s.unshift(n))}return s}getReady(){let s=this.graph.overallOrder(!0).map(e=>this.graph.getNodeData(e));return s=s.sort((e,n)=>e.meta.offline.effect.timestamp.localeCompare(n.meta.offline.effect.timestamp)),s=s.sort((e,n)=>{const a=this.requestAttemptCounter[e.payload.uuid]||0,c=this.requestAttemptCounter[n.payload.uuid]||0;return a-c}),s}registerRetry(s){this.requestAttemptCounter[s]=(this.requestAttemptCounter[s]||0)+1}}let SO;function TO(t){SO=t}function rt(){return SO}let IO;function OO(t){IO=t}function PO(){return IO}let Ln=null;function st(){const t=rt();if(!t)return console.warn("Client store not set; cannot get outbox coordinator yet."),null;if(Ln)return Ln;const s=t.getState().offline.outbox,e=dt._fromOutbox(s);return Ln=e,e}const Fb=(t,s)=>{const e=new s(t);return OO(e),TO(t),e};class gb{constructor(s){m(this,"_all");m(this,"_previous");this._all=[s],this._previous=s,this.then=this.then.bind(this),this.compile=this.compile.bind(this)}then(s){return this._previous&&(this._previous.next=s),this._all.push(s),this._previous=s,{then:this.then,compile:this.compile}}compile(){return this._all}}class Nn{constructor(){m(this,"next");this.next=null}then(s){return new gb(this).then(s)}async run(s){if(this.next)return this.next.run(s);{if(console.debug("Middleware finished. Performing request:",s),!rt())throw new Error("Client store not set");const n=PO();if(!n)throw new Error("Client SDK not set");return yO(s,n)}}}class FO extends Nn{async run(s){return super.run(s)}}class gO extends Nn{async run(s){return super.run(s)}}const bO=new FO().then(new gO).compile();function _O(t){var s;return(s=bO[0])==null?void 0:s.run(t)}var MO=(t=>(t[t.USER_REGISTRATION=0]="USER_REGISTRATION",t[t.APPLICATION_INVITE=2]="APPLICATION_INVITE",t[t.PROJECT_INVITE=4]="PROJECT_INVITE",t[t.ORGANIZATION_INVITE=6]="ORGANIZATION_INVITE",t[t.ADD_EMAIL_DOMAIN=8]="ADD_EMAIL_DOMAIN",t[t.RESET_PASSWORD=10]="RESET_PASSWORD",t))(MO||{});i.ALL_MIDDLEWARE=bO,i.APIError=k,i.ATTACHMENT_MODEL_DEFAULT_PAGE_SIZE=aO,i.AgentService=rg,i.AssetAttachmentService=ug,i.AssetProcedureService=pg,i.AssetProcedureStepFieldValuesAttachmentService=Tg,i.AssetProcedureStepFieldValuesService=Ig,i.AssetProcedureStepFieldsAttachmentService=fg,i.AssetProcedureStepFieldsService=Sg,i.AssetProcedureStepService=Og,i.AssetProcedureTypeAttachmentService=lg,i.AssetProcedureTypeFieldValuesAttachmentService=mg,i.AssetProcedureTypeFieldValuesService=yg,i.AssetProcedureTypeFieldsAttachmentService=og,i.AssetProcedureTypeFieldsService=hg,i.AssetProcedureTypeService=Ag,i.AssetService=Pg,i.AssetStageCompletionService=Fg,i.AssetStageService=gg,i.AssetStatusType=Xn,i.AssetTypeAttachmentService=bg,i.AssetTypeFieldValuesAttachmentService=Rg,i.AssetTypeFieldValuesService=wg,i.AssetTypeFieldsAttachmentService=_g,i.AssetTypeFieldsService=Mg,i.AssetTypeIdentifierService=Eg,i.AssetTypeIdentifierValueService=vg,i.AssetTypeService=Vg,i.AssetTypeStatusService=zg,i.AttachmentModel=Qn,i.BaseApiService=tt,i.BaseModelApiService=ct,i.BaseOfflineAttachmentModelService=Qe,i.BaseOfflineModelApiService=V,i.BaseSDK=Pb,i.COMMON_AUTO_FIELDS=aa,i.CategoryService=Bg,i.DEFAULT_ISSUE_PRIORITY=CO,i.DEFAULT_PAGE_SIZE=nO,i.DISCARD_HTTP_STATUSES=Dn,i.DeferredPromise=Nt,i.DocumentAttachmentService=jg,i.DocumentService=qg,i.EMPTY_ARRAY=Yn,i.EMPTY_OBJECT=Zn,i.EmailDomainsService=Dg,i.EmailVerificationService=Cg,i.FileService=Ug,i.FormIdentifierService=kg,i.FormIdentifierValueService=Lg,i.FormRevisionAttachmentService=Ng,i.FormRevisionService=Gg,i.FormService=Hg,i.FormSubmissionAttachmentService=Kg,i.FormSubmissionService=Wg,i.GeoImageService=Yg,i.HttpMethod=h,i.IssueAssociationService=Zg,i.IssueAttachmentService=Jg,i.IssueCommentAttachmentService=Xg,i.IssueCommentService=Qg,i.IssuePriority=Lt,i.IssueService=xg,i.IssueStatusType=xn,i.IssueTypeAttachmentService=eb,i.IssueTypeFieldValuesAttachmentService=ib,i.IssueTypeFieldValuesService=nb,i.IssueTypeFieldsAttachmentService=tb,i.IssueTypeFieldsService=sb,i.IssueTypeIdentifierService=ab,i.IssueTypeIdentifierValueService=cb,i.IssueTypeService=db,i.IssueTypeStatusService=rb,i.IssueUpdateChange=U,i.IssueUpdateService=ub,i.JWTService=hb,i.MAX_SERVICE_BATCH_SIZE=N,i.OUTBOX_RETRY_DELAY=ea,i.OfflineAnalyticsMiddleware=FO,i.OfflineMiddleware=Nn,i.OrganizationAccessLevel=Jn,i.OrganizationAccessService=mb,i.OrganizationService=yb,i.OutboxCoordinator=dt,i.ProjectAccessService=pb,i.ProjectAttachmentService=Ab,i.ProjectFileService=fb,i.ProjectService=Sb,i.RESET_ORGANIZATION_STATE=E,i.RESET_PROJECT_STATE=$,i.RESET_STATE=M,i.RateLimitingMiddleware=gO,i.SelectorBuilder=uP,i.TeamMembershipService=Tb,i.TeamService=Ib,i.UNKNOWN_ERROR_MESSAGE=at,i.UserService=Ob,i.VERSION_REDUCER_KEY=ut,i.VerificationCodeType=MO,i._setLatestRetryTime=TT,i.addAsset=jr,i.addAssetAttachment=Ia,i.addAssetAttachments=Qt,i.addAssetProcedure=Yc,i.addAssetProcedureStep=Fr,i.addAssetProcedureStepFieldValues=dr,i.addAssetProcedureStepFieldValuesAttachment=Yd,i.addAssetProcedureStepFieldValuesAttachments=Os,i.addAssetProcedureStepFieldValuesMany=rr,i.addAssetProcedureStepFields=jd,i.addAssetProcedureStepFieldsAttachment=Od,i.addAssetProcedureStepFieldsAttachments=Pd,i.addAssetProcedureStepFieldsMany=qd,i.addAssetProcedureSteps=gr,i.addAssetProcedureType=dd,i.addAssetProcedureTypeAttachment=za,i.addAssetProcedureTypeAttachments=Ba,i.addAssetProcedureTypeFieldValues=Bc,i.addAssetProcedureTypeFieldValuesAttachment=Oc,i.addAssetProcedureTypeFieldValuesAttachments=ds,i.addAssetProcedureTypeFieldValuesMany=jc,i.addAssetProcedureTypeFields=dc,i.addAssetProcedureTypeFieldsAttachment=Wa,i.addAssetProcedureTypeFieldsAttachments=Ya,i.addAssetProcedureTypeFieldsMany=rc,i.addAssetProcedureTypes=rd,i.addAssetProcedures=hs,i.addAssetStage=lu,i.addAssetStageCompletion=Wr,i.addAssetStageCompletions=Yr,i.addAssetStages=ou,i.addAssetType=ho,i.addAssetTypeAttachment=Ou,i.addAssetTypeAttachments=Ds,i.addAssetTypeFieldValues=Ol,i.addAssetTypeFieldValuesAttachment=rl,i.addAssetTypeFieldValuesAttachments=Gs,i.addAssetTypeFieldValuesMany=Pl,i.addAssetTypeFields=Yu,i.addAssetTypeFieldsAttachment=Bu,i.addAssetTypeFieldsAttachments=ju,i.addAssetTypeFieldsMany=Zu,i.addAssetTypeIdentifier=jl,i.addAssetTypeIdentifierValue=Zl,i.addAssetTypeIdentifierValues=Jl,i.addAssetTypeIdentifiers=ql,i.addAssetTypeStatus=go,i.addAssetTypeStatuses=bo,i.addAssetTypes=mo,i.addAssets=Rs,i.addCategories=Lo,i.addCategory=ko,i.addConversation=ya,i.addConversations=oP,i.addDocument=yh,i.addDocumentAttachment=eh,i.addDocumentAttachments=th,i.addDocuments=ph,i.addEmailDomain=Rh,i.addEmailDomains=wh,i.addForm=Hm,i.addFormIdentifier=Wh,i.addFormIdentifierValue=dm,i.addFormIdentifierValues=rm,i.addFormIdentifiers=Yh,i.addFormRevision=Ai,i.addFormRevisionAttachment=Om,i.addFormRevisionAttachments=Pm,i.addFormRevisions=fi,i.addFormSubmission=Ty,i.addFormSubmissionAttachment=ay,i.addFormSubmissionAttachments=gi,i.addFormSubmissions=Ei,i.addForms=Km,i.addGeoImage=Vy,i.addGeoImages=zy,i.addIssue=Hp,i.addIssueAssociation=Yy,i.addIssueAssociations=Et,i.addIssueAttachment=ap,i.addIssueAttachments=Di,i.addIssueComment=Vp,i.addIssueCommentAttachment=Sp,i.addIssueCommentAttachments=Tp,i.addIssueComments=zp,i.addIssueType=Yf,i.addIssueTypeAttachment=nA,i.addIssueTypeAttachments=aA,i.addIssueTypeFieldValues=VA,i.addIssueTypeFieldValuesAttachment=df,i.addIssueTypeFieldValuesAttachments=en,i.addIssueTypeFieldValuesMany=zA,i.addIssueTypeFields=KA,i.addIssueTypeFieldsAttachment=SA,i.addIssueTypeFieldsAttachments=TA,i.addIssueTypeFieldsMany=WA,i.addIssueTypeIdentifier=If,i.addIssueTypeIdentifierValue=Bf,i.addIssueTypeIdentifierValues=jf,i.addIssueTypeIdentifiers=Of,i.addIssueTypeStatus=rS,i.addIssueTypeStatuses=uS,i.addIssueTypes=Zf,i.addIssueUpdate=mn,i.addIssueUpdates=yn,i.addIssues=Hi,i.addOrganization=aT,i.addOrganizationAccess=LS,i.addOrganizationAccesses=NS,i.addOrganizations=nT,i.addProject=fI,i.addProjectAccess=FT,i.addProjectAccesses=gT,i.addProjectAttachment=qT,i.addProjectAttachments=DT,i.addProjectFile=QT,i.addProjectFiles=xT,i.addProjects=AI,i.addTeam=NI,i.addTeamMembership=wI,i.addTeamMemberships=EI,i.addTeams=GI,i.addUser=In,i.addUsers=zS,i.agentsReducer=fa,i.agentsSlice=Zt,i.areArraysEqual=NO,i.assetAttachmentReducer=Ea,i.assetAttachmentSlice=Xt,i.assetProcedureReducer=ed,i.assetProcedureSlice=os,i.assetProcedureStepFieldValuesAttachmentReducer=nr,i.assetProcedureStepFieldValuesAttachmentSlice=Is,i.assetProcedureStepFieldValuesReducer=Sr,i.assetProcedureStepFieldValuesSlice=gs,i.assetProcedureStepFieldsAttachmentReducer=Vd,i.assetProcedureStepFieldsAttachmentSlice=As,i.assetProcedureStepFieldsReducer=Hd,i.assetProcedureStepFieldsSlice=Ss,i.assetProcedureStepReducer=wr,i.assetProcedureStepSlice=bs,i.assetProcedureTypeAttachmentReducer=ka,i.assetProcedureTypeAttachmentSlice=ts,i.assetProcedureTypeFieldValuesAttachmentReducer=Mc,i.assetProcedureTypeFieldValuesAttachmentSlice=cs,i.assetProcedureTypeFieldValuesReducer=Lc,i.assetProcedureTypeFieldValuesSlice=ls,i.assetProcedureTypeFieldsAttachmentReducer=tc,i.assetProcedureTypeFieldsAttachmentSlice=is,i.assetProcedureTypeFieldsReducer=pc,i.assetProcedureTypeFieldsSlice=as,i.assetProcedureTypeReducer=pd,i.assetProcedureTypeSlice=ys,i.assetReducer=Gr,i.assetSlice=Ms,i.assetStageCompletionReducer=tu,i.assetStageCompletionSlice=Vs,i.assetStageReducer=Au,i.assetStageSlice=zs,i.assetTypeAttachmentReducer=vu,i.assetTypeAttachmentSlice=qs,i.assetTypeFieldValuesAttachmentReducer=Sl,i.assetTypeFieldValuesAttachmentSlice=Ns,i.assetTypeFieldValuesReducer=Vl,i.assetTypeFieldValuesSlice=Ws,i.assetTypeFieldsAttachmentReducer=Hu,i.assetTypeFieldsAttachmentSlice=Us,i.assetTypeFieldsReducer=al,i.assetTypeFieldsSlice=Ls,i.assetTypeIdentifierReducer=Kl,i.assetTypeIdentifierSlice=Ys,i.assetTypeIdentifierValueReducer=co,i.assetTypeIdentifierValueSlice=Js,i.assetTypeReducer=Oo,i.assetTypeSlice=Xs,i.assetTypeStatusReducer=jo,i.assetTypeStatusSlice=xs,i.assetTypeStatusSortFn=ra,i.authReducer=Co,i.authSlice=bt,i.baseReducer=WF,i.baseReducers=qn,i.blobToBase64=QO,i.categoryReducer=Xo,i.categorySlice=ti,i.clearTokens=ZP,i.constructUploadedFilePayloads=XO,i.createDeepEqualSelector=lP,i.createModelAdapter=w,i.createOfflineAction=pT,i.createPayload=z,i.createSelectionAdapter=$O,i.createSelectorFactory=S,i.createShallowEqualSelector=O,i.deleteAsset=Cr,i.deleteAssetAttachment=ba,i.deleteAssetAttachments=xt,i.deleteAssetProcedure=Xc,i.deleteAssetProcedureStep=Mr,i.deleteAssetProcedureStepFieldValues=mr,i.deleteAssetProcedureStepFieldValuesAttachment=xd,i.deleteAssetProcedureStepFieldValuesAttachments=Ps,i.deleteAssetProcedureStepFieldValuesMany=yr,i.deleteAssetProcedureStepFields=kd,i.deleteAssetProcedureStepFieldsAttachment=Md,i.deleteAssetProcedureStepFieldsAttachments=Rd,i.deleteAssetProcedureStepFieldsMany=Ld,i.deleteAssetProcedureSteps=Rr,i.deleteAssetProcedureType=od,i.deleteAssetProcedureTypeAttachment=$a,i.deleteAssetProcedureTypeAttachments=Ua,i.deleteAssetProcedureTypeFieldValues=Uc,i.deleteAssetProcedureTypeFieldValuesAttachment=_c,i.deleteAssetProcedureTypeFieldValuesAttachments=rs,i.deleteAssetProcedureTypeFieldValuesMany=kc,i.deleteAssetProcedureTypeFields=mc,i.deleteAssetProcedureTypeFieldsAttachment=xa,i.deleteAssetProcedureTypeFieldsAttachments=ec,i.deleteAssetProcedureTypeFieldsMany=yc,i.deleteAssetProcedureTypes=hd,i.deleteAssetProcedures=ms,i.deleteAssetStage=yu,i.deleteAssetStageCompletion=xr,i.deleteAssetStageCompletions=eu,i.deleteAssetStages=pu,i.deleteAssetType=Ao,i.deleteAssetTypeAttachment=_u,i.deleteAssetTypeAttachments=Cs,i.deleteAssetTypeFieldValues=Ml,i.deleteAssetTypeFieldValuesAttachment=ml,i.deleteAssetTypeFieldValuesAttachments=Hs,i.deleteAssetTypeFieldValuesMany=Rl,i.deleteAssetTypeFields=el,i.deleteAssetTypeFieldsAttachment=Uu,i.deleteAssetTypeFieldsAttachments=ku,i.deleteAssetTypeFieldsMany=tl,i.deleteAssetTypeIdentifier=kl,i.deleteAssetTypeIdentifierValue=to,i.deleteAssetTypeIdentifierValues=so,i.deleteAssetTypeIdentifiers=Ll,i.deleteAssetTypeStatus=Eo,i.deleteAssetTypeStatuses=vo,i.deleteAssetTypes=fo,i.deleteAssets=ws,i.deleteCategories=Yo,i.deleteCategory=Wo,i.deleteConversation=yP,i.deleteConversations=pP,i.deleteDocument=Ih,i.deleteDocumentAttachment=ch,i.deleteDocumentAttachments=dh,i.deleteDocuments=Oh,i.deleteEmailDomain=Bh,i.deleteEmailDomains=jh,i.deleteForm=Xm,i.deleteFormIdentifier=xh,i.deleteFormIdentifierValue=mm,i.deleteFormIdentifierValues=ym,i.deleteFormIdentifiers=em,i.deleteFormRevision=Si,i.deleteFormRevisionAttachment=Mm,i.deleteFormRevisionAttachments=Rm,i.deleteFormRevisions=Ti,i.deleteFormSubmission=Py,i.deleteFormSubmissionAttachment=ly,i.deleteFormSubmissionAttachments=bi,i.deleteFormSubmissions=vi,i.deleteForms=Qm,i.deleteGeoImage=qy,i.deleteGeoImages=Dy,i.deleteIssue=Jp,i.deleteIssueAssociation=Zy,i.deleteIssueAssociations=vt,i.deleteIssueAttachment=lp,i.deleteIssueAttachments=Ci,i.deleteIssueComment=Cp,i.deleteIssueCommentAttachment=gp,i.deleteIssueCommentAttachments=bp,i.deleteIssueComments=$p,i.deleteIssueType=eS,i.deleteIssueTypeAttachment=lA,i.deleteIssueTypeAttachments=oA,i.deleteIssueTypeFieldValues=CA,i.deleteIssueTypeFieldValuesAttachment=hf,i.deleteIssueTypeFieldValuesAttachments=tn,i.deleteIssueTypeFieldValuesMany=$A,i.deleteIssueTypeFields=QA,i.deleteIssueTypeFieldsAttachment=gA,i.deleteIssueTypeFieldsAttachments=bA,i.deleteIssueTypeFieldsMany=xA,i.deleteIssueTypeIdentifier=_f,i.deleteIssueTypeIdentifierValue=Uf,i.deleteIssueTypeIdentifierValues=kf,i.deleteIssueTypeIdentifiers=Mf,i.deleteIssueTypeStatus=yS,i.deleteIssueTypeStatuses=pS,i.deleteIssueTypes=tS,i.deleteIssueUpdate=pn,i.deleteIssueUpdates=An,i.deleteIssues=Ki,i.deleteOrganization=rT,i.deleteOrganizationAccess=YS,i.deleteOrganizationAccesses=ZS,i.deleteOrganizations=uT,i.deleteProject=II,i.deleteProjectAccess=wT,i.deleteProjectAccesses=ET,i.deleteProjectAttachment=LT,i.deleteProjectAttachments=NT,i.deleteProjectFile=sI,i.deleteProjectFiles=iI,i.deleteProjects=OI,i.deleteTeam=ZI,i.deleteTeamMembership=jI,i.deleteTeamMemberships=qI,i.deleteTeams=JI,i.deleteUser=On,i.deleteUsers=qS,i.dequeue=mO,i.discard=pO,i.documentAttachmentReducer=oh,i.documentAttachmentSlice=ni,i.documentSlice=ci,i.documentsReducer=Ph,i.downloadFile=xO,i.downloadInMemoryFile=JO,i.emailDomainsReducer=$h,i.emailDomainsSlice=ri,i.emailRegex=cP,i.enqueue=hO,i.enqueueRequest=fT,i.extractResponseFromError=fO,i.fallbackToEmptyArray=T,i.fallbackToEmptyObject=At,i.fileReducer=Gh,i.fileSlice=li,i.fileToBlob=ia,i.formIdentifierReducer=nm,i.formIdentifierSlice=oi,i.formIdentifierValueReducer=Sm,i.formIdentifierValueSlice=mi,i.formReducer=xm,i.formRevisionAttachmentReducer=Vm,i.formRevisionAttachmentSlice=yi,i.formRevisionReducer=Lm,i.formRevisionsSlice=pi,i.formSlice=Oi,i.formSubmissionAttachmentReducer=yy,i.formSubmissionAttachmentSlice=Fi,i.formSubmissionReducer=My,i.formSubmissionSlice=wi,i.geoImageReducer=ky,i.geoImageSlice=zi,i.getAssetProcedureStepSubTree=da,i.getAssetProcedureStepTrees=dP,i.getClientSDK=PO,i.getClientStore=rt,i.getDocumentSubTree=oa,i.getDocumentTrees=rP,i.getFileIdentifier=ZO,i.getFileS3Key=Wt,i.getLocalDateString=ta,i.getLocalRelativeDateString=WO,i.getOutboxCoordinator=st,i.getRenamedFile=sa,i.getRequestDescription=P,i.hashFile=nt,i.initSDK=Fb,i.initializeAssetAttachments=Ta,i.initializeAssetProcedureStepFieldValues=cr,i.initializeAssetProcedureStepFieldValuesAttachments=Wd,i.initializeAssetProcedureStepFields=Bd,i.initializeAssetProcedureStepFieldsAttachments=Id,i.initializeAssetProcedureSteps=Ir,i.initializeAssetProcedureTypeAttachments=Va,i.initializeAssetProcedureTypeFieldValues=zc,i.initializeAssetProcedureTypeFieldValuesAttachments=Ic,i.initializeAssetProcedureTypeFields=cc,i.initializeAssetProcedureTypeFieldsAttachments=Ka,i.initializeAssetProcedureTypes=cd,i.initializeAssetProcedures=Wc,i.initializeAssetStageCompletions=Kr,i.initializeAssetStages=du,i.initializeAssetTypeAttachments=Iu,i.initializeAssetTypeFieldValues=Il,i.initializeAssetTypeFieldValuesAttachments=dl,i.initializeAssetTypeFields=Wu,i.initializeAssetTypeFieldsAttachments=zu,i.initializeAssetTypeIdentifierValues=Yl,i.initializeAssetTypeIdentifiers=Bl,i.initializeAssetTypeStatuses=Fo,i.initializeAssetTypes=uo,i.initializeAssets=Br,i.initializeCategories=Uo,i.initializeConversations=ma,i.initializeDocumentAttachments=xo,i.initializeDocuments=mh,i.initializeEmailDomains=Mh,i.initializeFormIdentifierValues=cm,i.initializeFormIdentifiers=Kh,i.initializeFormRevisionAttachments=Im,i.initializeFormRevisions=Bm,i.initializeFormSubmissionAttachments=ny,i.initializeFormSubmissions=Ay,i.initializeForms=Gm,i.initializeGeoImages=wy,i.initializeIssueAssociations=Ny,i.initializeIssueAttachments=np,i.initializeIssueCommentAttachments=fp,i.initializeIssueComments=vp,i.initializeIssueTypeAttachments=iA,i.initializeIssueTypeFieldValues=vA,i.initializeIssueTypeFieldValuesAttachments=cf,i.initializeIssueTypeFields=HA,i.initializeIssueTypeFieldsAttachments=fA,i.initializeIssueTypeIdentifierValues=zf,i.initializeIssueTypeIdentifiers=Tf,i.initializeIssueTypeStatuses=dS,i.initializeIssueTypes=Wf,i.initializeIssueUpdates=IS,i.initializeIssues=Gp,i.initializeOrganizationAccesses=kS,i.initializeOrganizations=tT,i.initializeProjectAccesses=PT,i.initializeProjectAttachments=jT,i.initializeProjectFiles=ZT,i.initializeProjects=mI,i.initializeTeamMemberships=RI,i.initializeTeams=LI,i.initializeUsers=ES,i.isToday=KO,i.issueAssociationReducer=sp,i.issueAssociationSlice=ji,i.issueAttachmentReducer=pp,i.issueAttachmentSlice=qi,i.issueCommentAttachmentReducer=wp,i.issueCommentAttachmentSlice=Ui,i.issueCommentReducer=Lp,i.issueCommentSlice=Li,i.issueReducer=tA,i.issueSlice=Gi,i.issueTypeAttachmentReducer=pA,i.issueTypeAttachmentSlice=Wi,i.issueTypeFieldValuesAttachmentReducer=ff,i.issueTypeFieldValuesAttachmentSlice=xi,i.issueTypeFieldValuesReducer=NA,i.issueTypeFieldValuesSlice=Xi,i.issueTypeFieldsAttachmentReducer=wA,i.issueTypeFieldsAttachmentSlice=Zi,i.issueTypeFieldsReducer=nf,i.issueTypeFieldsSlice=Qi,i.issueTypeIdentifierReducer=vf,i.issueTypeIdentifierSlice=nn,i.issueTypeIdentifierValueReducer=Hf,i.issueTypeIdentifierValueSlice=cn,i.issueTypeReducer=aS,i.issueTypeSlice=dn,i.issueTypeStatusReducer=SS,i.issueTypeStatusSlice=un,i.issueTypeStatusSortFn=ua,i.issueUpdateReducer=RS,i.issueUpdateSlice=hn,i.logOnlyOnce=eP,i.markAsDeleted=ST,i.markForDeletion=vF,i.memoize=Ht,i.organizationAccessReducer=JS,i.organizationAccessSlice=Fn,i.organizationReducer=yT,i.organizationSlice=gn,i.outboxReducer=IT,i.outboxSlice=bn,i.overmapEnhancer=sg,i.overmapReducer=YF,i.overmapReducers=iO,i.performRequest=kn,i.performRequestFromAction=yO,i.projectAccessReducer=vT,i.projectAccessSlice=_n,i.projectAttachmentReducer=WT,i.projectAttachmentSlice=Rn,i.projectFileReducer=oI,i.projectFileSlice=En,i.projectReducer=PI,i.projectSlice=vn,i.rehydratedReducer=_I,i.rehydratedSlice=Vn,i.runMiddleware=_O,i.saveActiveProjectFileBounds=cI,i.selectAccessToken=JP,i.selectAccessesByUserOfProject=zF,i.selectAccessibleProjects=CF,i.selectActiveOrganizationAccess=MF,i.selectActiveProjectFileId=qF,i.selectAllDocumentAttachments=ai,i.selectAssetAttachmentById=Ma,i.selectAssetAttachmentMapping=_a,i.selectAssetAttachments=es,i.selectAssetAttachmentsByIds=Ra,i.selectAssetById=Lr,i.selectAssetProcedureById=id,i.selectAssetProcedureStepById=Er,i.selectAssetProcedureStepFieldValues=lt,i.selectAssetProcedureStepFieldValuesAttachmentById=tr,i.selectAssetProcedureStepFieldValuesAttachments=Fs,i.selectAssetProcedureStepFieldValuesAttachmentsByIds=sr,i.selectAssetProcedureStepFieldValuesAttachmentsMapping=er,i.selectAssetProcedureStepFieldValuesById=Ar,i.selectAssetProcedureStepFieldValuesByIds=fr,i.selectAssetProcedureStepFieldValuesMapping=pr,i.selectAssetProcedureStepFieldValuesOfAsset=EP,i.selectAssetProcedureStepFieldValuesOfAssetProcedure=vP,i.selectAssetProcedureStepFieldValuesOfAssetProcedureStep=VP,i.selectAssetProcedureStepFields=Ot,i.selectAssetProcedureStepFieldsAttachmentById=Ed,i.selectAssetProcedureStepFieldsAttachments=fs,i.selectAssetProcedureStepFieldsAttachmentsByIds=vd,i.selectAssetProcedureStepFieldsAttachmentsMapping=wd,i.selectAssetProcedureStepFieldsById=Nd,i.selectAssetProcedureStepFieldsByIds=Gd,i.selectAssetProcedureStepFieldsMapping=Ts,i.selectAssetProcedureStepFieldsOfAssetProcedureStep=MP,i.selectAssetProcedureStepMapping=Pt,i.selectAssetProcedureSteps=_s,i.selectAssetProcedureStepsByIds=vr,i.selectAssetProcedureStepsMappingOfAssetProcedureType=zP,i.selectAssetProcedureStepsOfAssetProcedureType=BP,i.selectAssetProcedureTypeAttachmentById=Na,i.selectAssetProcedureTypeAttachmentMapping=La,i.selectAssetProcedureTypeAttachments=ss,i.selectAssetProcedureTypeAttachmentsByIds=Ga,i.selectAssetProcedureTypeById=fd,i.selectAssetProcedureTypeFieldValues=Tt,i.selectAssetProcedureTypeFieldValuesAttachmentById=wc,i.selectAssetProcedureTypeFieldValuesAttachments=us,i.selectAssetProcedureTypeFieldValuesAttachmentsByIds=Ec,i.selectAssetProcedureTypeFieldValuesAttachmentsMapping=Rc,i.selectAssetProcedureTypeFieldValuesById=Gc,i.selectAssetProcedureTypeFieldValuesByIds=Hc,i.selectAssetProcedureTypeFieldValuesMapping=Nc,i.selectAssetProcedureTypeFieldValuesOfAsset=PP,i.selectAssetProcedureTypeFields=St,i.selectAssetProcedureTypeFieldsAttachmentById=ic,i.selectAssetProcedureTypeFieldsAttachments=ns,i.selectAssetProcedureTypeFieldsAttachmentsByIds=nc,i.selectAssetProcedureTypeFieldsAttachmentsMapping=sc,i.selectAssetProcedureTypeFieldsById=fc,i.selectAssetProcedureTypeFieldsByIds=Sc,i.selectAssetProcedureTypeFieldsMapping=Ac,i.selectAssetProcedureTypeFieldsOfAssetProcedureType=IP,i.selectAssetProcedureTypes=ps,i.selectAssetProcedureTypesByIds=Sd,i.selectAssetProcedureTypesMapping=Ad,i.selectAssetProcedureTypesOfOrganization=bP,i.selectAssetProcedures=It,i.selectAssetProceduresByIds=nd,i.selectAssetProceduresMapping=td,i.selectAssetProceduresOfAssetProcedureType=sd,i.selectAssetProceduresOfAssetType=gP,i.selectAssetStageById=fu,i.selectAssetStageCompletionById=nu,i.selectAssetStageCompletionMapping=su,i.selectAssetStageCompletions=iu,i.selectAssetStageCompletionsByIds=au,i.selectAssetStages=js,i.selectAssetStagesByIds=Su,i.selectAssetStagesMappingOfAssetProcedureType=qP,i.selectAssetStagesOfAssetProcedureType=DP,i.selectAssetTypeAttachmentById=Ru,i.selectAssetTypeAttachmentMapping=Mu,i.selectAssetTypeAttachments=$s,i.selectAssetTypeAttachmentsByIds=wu,i.selectAssetTypeById=To,i.selectAssetTypeFieldValues=Ft,i.selectAssetTypeFieldValuesAttachmentById=pl,i.selectAssetTypeFieldValuesAttachments=Ks,i.selectAssetTypeFieldValuesAttachmentsByIds=Al,i.selectAssetTypeFieldValuesAttachmentsMapping=yl,i.selectAssetTypeFieldValuesById=El,i.selectAssetTypeFieldValuesByIds=vl,i.selectAssetTypeFieldValuesMapping=wl,i.selectAssetTypeFieldValuesOfAsset=kP,i.selectAssetTypeFields=ot,i.selectAssetTypeFieldsAttachmentById=Nu,i.selectAssetTypeFieldsAttachments=ks,i.selectAssetTypeFieldsAttachmentsByIds=Gu,i.selectAssetTypeFieldsAttachmentsMapping=Lu,i.selectAssetTypeFieldsById=il,i.selectAssetTypeFieldsByIds=nl,i.selectAssetTypeFieldsMapping=sl,i.selectAssetTypeFieldsOfAssetType=$P,i.selectAssetTypeIdentifierById=Gl,i.selectAssetTypeIdentifierMapping=Nl,i.selectAssetTypeIdentifierValueById=no,i.selectAssetTypeIdentifierValueMapping=io,i.selectAssetTypeIdentifierValues=gt,i.selectAssetTypeIdentifierValuesByIds=ao,i.selectAssetTypeIdentifierValuesOfAsset=GP,i.selectAssetTypeIdentifierValuesOfIdentifier=HP,i.selectAssetTypeIdentifiers=Zs,i.selectAssetTypeIdentifiersByIds=Hl,i.selectAssetTypeIdentifiersOfAssetType=NP,i.selectAssetTypeStatusById=zo,i.selectAssetTypeStatusMapping=Vo,i.selectAssetTypeStatuses=ei,i.selectAssetTypeStatusesByIds=Bo,i.selectAssetTypeStatusesOfAssetType=WP,i.selectAssetTypeValuesOfAssetType=LP,i.selectAssetTypes=Qs,i.selectAssetTypesByIds=Io,i.selectAssetTypesMapping=So,i.selectAssetTypesOfOrganization=KP,i.selectAssets=Es,i.selectAssetsByIds=Nr,i.selectAssetsMapping=kr,i.selectAssetsOfAssetType=vs,i.selectAttachmentsOfAsset=wa,i.selectAttachmentsOfAssetProcedureStepFieldValues=ir,i.selectAttachmentsOfAssetProcedureStepFields=_P,i.selectAttachmentsOfAssetProcedureType=SP,i.selectAttachmentsOfAssetProcedureTypeFieldValues=vc,i.selectAttachmentsOfAssetProcedureTypeFields=TP,i.selectAttachmentsOfAssetType=Eu,i.selectAttachmentsOfAssetTypeFieldValues=fl,i.selectAttachmentsOfAssetTypeFields=CP,i.selectAttachmentsOfDocument=xP,i.selectAttachmentsOfFormRevision=dF,i.selectAttachmentsOfFormSubmission=my,i.selectAttachmentsOfIssue=hp,i.selectAttachmentsOfIssueComment=oF,i.selectAttachmentsOfIssueType=yF,i.selectAttachmentsOfIssueTypeFieldValues=Af,i.selectAttachmentsOfIssueTypeFields=pF,i.selectAttachmentsOfProject=jF,i.selectCategories=si,i.selectCategoriesByIds=Jo,i.selectCategoriesOfProject=QP,i.selectCategoryById=ii,i.selectCategoryMapping=Zo,i.selectCommentsOfIssue=hF,i.selectConversation=fP,i.selectConversationMapping=Jt,i.selectConversations=AP,i.selectCurrentUser=CS,i.selectDeletedRequests=wF,i.selectDescendantsOfAssetProcedureStep=Vr,i.selectDescendantsOfDocument=bh,i.selectDocumentAttachmentById=uh,i.selectDocumentAttachmentMapping=rh,i.selectDocumentAttachmentsByIds=lh,i.selectDocumentById=Fh,i.selectDocuments=_t,i.selectDocumentsByIds=gh,i.selectDocumentsMapping=di,i.selectEmailDomainById=Dh,i.selectEmailDomains=ui,i.selectEmailDomainsAsMapping=qh,i.selectEmailDomainsByIds=Ch,i.selectEmailDomainsOfOrganization=sF,i.selectFieldValuesOfAssetProcedure=FP,i.selectFormById=ty,i.selectFormIdentifierById=sm,i.selectFormIdentifierMapping=tm,i.selectFormIdentifierValueById=Am,i.selectFormIdentifierValueMapping=pm,i.selectFormIdentifierValues=Mt,i.selectFormIdentifierValuesByIds=fm,i.selectFormIdentifierValuesOfFormSubmission=aF,i.selectFormIdentifierValuesOfIdentifier=cF,i.selectFormIdentifiers=hi,i.selectFormIdentifiersByIds=im,i.selectFormIdentifiersOfForm=nF,i.selectFormMapping=ey,i.selectFormRevisionAttachmentById=Em,i.selectFormRevisionAttachments=wm,i.selectFormRevisionAttachmentsByIds=vm,i.selectFormRevisionAttachmentsMapping=Rt,i.selectFormRevisionById=$m,i.selectFormRevisionMapping=Ii,i.selectFormRevisions=wt,i.selectFormRevisionsByIds=Um,i.selectFormRevisionsOfForm=km,i.selectFormSubmissionAttachemntsByIds=Ri,i.selectFormSubmissionAttachmentById=oy,i.selectFormSubmissionAttachments=Mi,i.selectFormSubmissionAttachmentsByIds=hy,i.selectFormSubmissionAttachmentsMapping=_i,i.selectFormSubmissionById=gy,i.selectFormSubmissions=Fy,i.selectFormSubmissionsByIds=by,i.selectFormSubmissionsMapping=Vi,i.selectFormSubmissionsOfForm=_y,i.selectForms=Pi,i.selectFormsByIds=sy,i.selectFormsOfOrganization=uF,i.selectGeoImageById=$y,i.selectGeoImageMapping=Cy,i.selectGeoImages=Bi,i.selectGeoImagesByIds=Uy,i.selectGeoImagesOfProject=lF,i.selectIsImportingProjectFile=DF,i.selectIsLoggedIn=XP,i.selectIssueAssociationById=Xy,i.selectIssueAssociationMapping=ht,i.selectIssueAssociations=Jy,i.selectIssueAssociationsByIds=Qy,i.selectIssueAssociationsOfAsset=tp,i.selectIssueAssociationsOfIssue=ep,i.selectIssueAssociationsToIssue=xy,i.selectIssueAttachmentById=mp,i.selectIssueAttachmentMapping=op,i.selectIssueAttachments=$i,i.selectIssueAttachmentsByIds=yp,i.selectIssueById=Qp,i.selectIssueCommentAttachmentById=Mp,i.selectIssueCommentAttachmentMapping=_p,i.selectIssueCommentAttachments=ki,i.selectIssueCommentAttachmentsByIds=Rp,i.selectIssueCommentById=Up,i.selectIssueCommentMapping=Ni,i.selectIssueCommentsByIds=kp,i.selectIssueMapping=Xp,i.selectIssueTypeAttachmentById=mA,i.selectIssueTypeAttachmentMapping=hA,i.selectIssueTypeAttachments=Yi,i.selectIssueTypeAttachmentsByIds=yA,i.selectIssueTypeById=iS,i.selectIssueTypeFieldValues=zt,i.selectIssueTypeFieldValuesAttachmentById=yf,i.selectIssueTypeFieldValuesAttachments=sn,i.selectIssueTypeFieldValuesAttachmentsByIds=pf,i.selectIssueTypeFieldValuesAttachmentsMapping=mf,i.selectIssueTypeFieldValuesById=kA,i.selectIssueTypeFieldValuesByIds=LA,i.selectIssueTypeFieldValuesMapping=UA,i.selectIssueTypeFieldValuesOfIssue=AF,i.selectIssueTypeFields=mt,i.selectIssueTypeFieldsAttachmentById=MA,i.selectIssueTypeFieldsAttachments=Ji,i.selectIssueTypeFieldsAttachmentsByIds=RA,i.selectIssueTypeFieldsAttachmentsMapping=_A,i.selectIssueTypeFieldsById=tf,i.selectIssueTypeFieldsByIds=sf,i.selectIssueTypeFieldsMapping=ef,i.selectIssueTypeFieldsOfIssueType=fF,i.selectIssueTypeIdentifierById=wf,i.selectIssueTypeIdentifierMapping=Rf,i.selectIssueTypeIdentifierValueById=Nf,i.selectIssueTypeIdentifierValueMapping=Lf,i.selectIssueTypeIdentifierValues=Bt,i.selectIssueTypeIdentifierValuesByIds=Gf,i.selectIssueTypeIdentifierValuesOfIdentifier=PF,i.selectIssueTypeIdentifierValuesOfIssue=OF,i.selectIssueTypeIdentifiers=an,i.selectIssueTypeIdentifiersByIds=Ef,i.selectIssueTypeIdentifiersOfIssueType=IF,i.selectIssueTypeMapping=sS,i.selectIssueTypeStatusById=on,i.selectIssueTypeStatusMapping=AS,i.selectIssueTypeStatuses=ln,i.selectIssueTypeStatusesByIds=fS,i.selectIssueTypeStatusesOfIssueType=gF,i.selectIssueTypeValuesOfIssueType=TF,i.selectIssueTypes=rn,i.selectIssueTypesByIds=nS,i.selectIssueTypesOfOrganization=FF,i.selectIssueUpdateById=bS,i.selectIssueUpdateMapping=fn,i.selectIssueUpdates=Sn,i.selectIssueUpdatesByIds=_S,i.selectIssueUpdatesOfIssue=MS,i.selectIssues=Vt,i.selectIssuesByIds=xp,i.selectIssuesOfIssueType=eA,i.selectIssuesOfProject=mF,i.selectLatestAssetProcedureStepFieldsOfAssetProcedureStep=RP,i.selectLatestAssetProcedureTypeFieldsOfAssetProcedureType=OP,i.selectLatestAssetTypeFieldsOfAssetType=UP,i.selectLatestFieldsByAssetProcedureStep=wP,i.selectLatestFormRevisionOfForm=rF,i.selectLatestIssueTypeFieldsOfIssueType=SF,i.selectLatestRetryTime=EF,i.selectMembershipsByUserOfTeam=NF,i.selectNumberOfAssetsOfAssetType=jP,i.selectOrganizationAccessById=XS,i.selectOrganizationAccessMapping=Dt,i.selectOrganizationAccessUserMapping=xS,i.selectOrganizationAccessesByIds=QS,i.selectOrganizationById=hT,i.selectOrganizationDocuments=tF,i.selectOrganizations=oT,i.selectOrganizationsByIds=mT,i.selectOrganizationsMapping=lT,i.selectProjectAccessById=VT,i.selectProjectAccessMapping=Mn,i.selectProjectAccesses=yt,i.selectProjectAccessesByIds=zT,i.selectProjectAccessesOfProject=VF,i.selectProjectAttachmentById=HT,i.selectProjectAttachmentMapping=GT,i.selectProjectAttachments=wn,i.selectProjectAttachmentsByIds=KT,i.selectProjectById=gI,i.selectProjectDocuments=eF,i.selectProjectFileById=uI,i.selectProjectFileMapping=dI,i.selectProjectFiles=rI,i.selectProjectFilesByIds=lI,i.selectProjectMapping=FI,i.selectProjects=Ct,i.selectProjectsByIds=bI,i.selectProjectsOfOrganization=$F,i.selectRehydrated=LF,i.selectStageMapping=Bs,i.selectTeamById=QI,i.selectTeamMembershipById=$I,i.selectTeamMemberships=$t,i.selectTeamMembershipsByIds=UI,i.selectTeamMembershipsMapping=CI,i.selectTeams=jn,i.selectTeamsByIds=xI,i.selectTeamsMapping=XI,i.selectTeamsOfOrganization=HF,i.selectUploadUrl=Nh,i.selectUserById=qt,i.selectUsers=jt,i.selectUsersByIds=$S,i.selectUsersMapping=Pn,i.selectUsersOfOrganization=RF,i.selectUsersOfProject=BF,i.selectUsersOfTeam=GF,i.setActiveProjectFileId=aI,i.setAsset=$r,i.setAssetAttachment=Oa,i.setAssetAttachments=Pa,i.setAssetProcedure=Qc,i.setAssetProcedureStep=Or,i.setAssetProcedureStepFieldValues=ur,i.setAssetProcedureStepFieldValuesAttachment=Zd,i.setAssetProcedureStepFieldValuesAttachments=Jd,i.setAssetProcedureStepFieldValuesMany=lr,i.setAssetProcedureStepFields=Dd,i.setAssetProcedureStepFieldsAttachment=Fd,i.setAssetProcedureStepFieldsAttachments=gd,i.setAssetProcedureStepFieldsMany=Cd,i.setAssetProcedureSteps=Pr,i.setAssetProcedureType=md,i.setAssetProcedureTypeAttachment=ja,i.setAssetProcedureTypeAttachments=qa,i.setAssetProcedureTypeFieldValues=qc,i.setAssetProcedureTypeFieldValuesAttachment=Pc,i.setAssetProcedureTypeFieldValuesAttachments=Fc,i.setAssetProcedureTypeFieldValuesMany=Dc,i.setAssetProcedureTypeFields=uc,i.setAssetProcedureTypeFieldsAttachment=Za,i.setAssetProcedureTypeFieldsAttachments=Ja,i.setAssetProcedureTypeFieldsMany=lc,i.setAssetProcedureTypes=yd,i.setAssetProcedures=xc,i.setAssetStage=ru,i.setAssetStageCompletion=Zr,i.setAssetStageCompletions=Jr,i.setAssetStages=uu,i.setAssetType=lo,i.setAssetTypeAttachment=Pu,i.setAssetTypeAttachments=Fu,i.setAssetTypeFieldValues=Fl,i.setAssetTypeFieldValuesAttachment=ul,i.setAssetTypeFieldValuesAttachments=ll,i.setAssetTypeFieldValuesMany=gl,i.setAssetTypeFields=Ju,i.setAssetTypeFieldsAttachment=qu,i.setAssetTypeFieldsAttachments=Du,i.setAssetTypeFieldsMany=Xu,i.setAssetTypeIdentifier=Dl,i.setAssetTypeIdentifierValue=Xl,i.setAssetTypeIdentifierValues=Ql,i.setAssetTypeIdentifiers=Cl,i.setAssetTypeStatus=_o,i.setAssetTypeStatuses=Mo,i.setAssetTypes=oo,i.setAssets=Ur,i.setCategories=Go,i.setCategory=No,i.setClientSDK=OO,i.setClientStore=TO,i.setConversation=pa,i.setConversations=hP,i.setCurrentUser=bF,i.setDocument=Ah,i.setDocumentAttachment=sh,i.setDocumentAttachments=ih,i.setDocuments=fh,i.setEmailDomain=Eh,i.setEmailDomains=vh,i.setForm=Wm,i.setFormIdentifier=Zh,i.setFormIdentifierValue=um,i.setFormIdentifierValues=lm,i.setFormIdentifiers=Jh,i.setFormRevision=jm,i.setFormRevisionAttachment=Fm,i.setFormRevisionAttachments=gm,i.setFormRevisions=qm,i.setFormSubmission=fy,i.setFormSubmissionAttachment=cy,i.setFormSubmissionAttachments=dy,i.setFormSubmissions=Sy,i.setForms=Ym,i.setGeoImage=Ey,i.setGeoImages=vy,i.setIsImportingProjectFile=nI,i.setIssue=Kp,i.setIssueAssociation=Hy,i.setIssueAssociations=Gy,i.setIssueAttachment=cp,i.setIssueAttachments=dp,i.setIssueComment=Bp,i.setIssueCommentAttachment=Ip,i.setIssueCommentAttachments=Op,i.setIssueComments=jp,i.setIssueType=Jf,i.setIssueTypeAttachment=cA,i.setIssueTypeAttachments=dA,i.setIssueTypeFieldValues=BA,i.setIssueTypeFieldValuesAttachment=rf,i.setIssueTypeFieldValuesAttachments=uf,i.setIssueTypeFieldValuesMany=jA,i.setIssueTypeFields=YA,i.setIssueTypeFieldsAttachment=IA,i.setIssueTypeFieldsAttachments=OA,i.setIssueTypeFieldsMany=ZA,i.setIssueTypeIdentifier=Pf,i.setIssueTypeIdentifierValue=qf,i.setIssueTypeIdentifierValues=Df,i.setIssueTypeIdentifiers=Ff,i.setIssueTypeStatus=lS,i.setIssueTypeStatuses=oS,i.setIssueTypes=Xf,i.setIssueUpdate=OS,i.setIssueUpdates=PS,i.setIssues=Wp,i.setLoggedIn=Do,i.setOrganization=iT,i.setOrganizationAccess=GS,i.setOrganizationAccesses=HS,i.setOrganizations=sT,i.setProfilePicture=_F,i.setProject=pI,i.setProjectAccess=bT,i.setProjectAccesses=_T,i.setProjectAttachment=CT,i.setProjectAttachments=$T,i.setProjectFile=JT,i.setProjectFiles=XT,i.setProjects=yI,i.setRehydrated=kF,i.setTeam=HI,i.setTeamMembership=vI,i.setTeamMemberships=VI,i.setTeams=KI,i.setTokens=YP,i.setUploadUrl=Lh,i.setUser=VS,i.setUsers=vS,i.shallowEqual=LO,i.slugify=nP,i.spacesToDashesLower=iP,i.teamMembershipReducer=DI,i.teamMembershipSlice=zn,i.teamReducer=eO,i.teamSlice=Bn,i.toFileNameSafeString=sP,i.toUuidArray=C,i.toUuidIdRecord=tP,i.truncate=aP,i.updateAsset=qr,i.updateAssetAttachment=Fa,i.updateAssetAttachments=ga,i.updateAssetProcedure=Zc,i.updateAssetProcedureStep=br,i.updateAssetProcedureStepFieldValues=or,i.updateAssetProcedureStepFieldValuesAttachment=Xd,i.updateAssetProcedureStepFieldValuesAttachments=Qd,i.updateAssetProcedureStepFieldValuesMany=hr,i.updateAssetProcedureStepFields=$d,i.updateAssetProcedureStepFieldsAttachment=bd,i.updateAssetProcedureStepFieldsAttachments=_d,i.updateAssetProcedureStepFieldsMany=Ud,i.updateAssetProcedureSteps=_r,i.updateAssetProcedureType=ud,i.updateAssetProcedureTypeAttachment=Da,i.updateAssetProcedureTypeAttachments=Ca,i.updateAssetProcedureTypeFieldValues=Cc,i.updateAssetProcedureTypeFieldValuesAttachment=gc,i.updateAssetProcedureTypeFieldValuesAttachments=bc,i.updateAssetProcedureTypeFieldValuesMany=$c,i.updateAssetProcedureTypeFields=oc,i.updateAssetProcedureTypeFieldsAttachment=Xa,i.updateAssetProcedureTypeFieldsAttachments=Qa,i.updateAssetProcedureTypeFieldsMany=hc,i.updateAssetProcedureTypes=ld,i.updateAssetProcedures=Jc,i.updateAssetStage=hu,i.updateAssetStageCompletion=Xr,i.updateAssetStageCompletions=Qr,i.updateAssetStages=mu,i.updateAssetType=yo,i.updateAssetTypeAttachment=gu,i.updateAssetTypeAttachments=bu,i.updateAssetTypeFieldValues=bl,i.updateAssetTypeFieldValuesAttachment=ol,i.updateAssetTypeFieldValuesAttachments=hl,i.updateAssetTypeFieldValuesMany=_l,i.updateAssetTypeFields=Qu,i.updateAssetTypeFieldsAttachment=Cu,i.updateAssetTypeFieldsAttachments=$u,i.updateAssetTypeFieldsMany=xu,i.updateAssetTypeIdentifier=$l,i.updateAssetTypeIdentifierValue=xl,i.updateAssetTypeIdentifierValues=eo,i.updateAssetTypeIdentifiers=Ul,i.updateAssetTypeStatus=Ro,i.updateAssetTypeStatuses=wo,i.updateAssetTypes=po,i.updateAssets=Dr,i.updateCategories=Ko,i.updateCategory=Ho,i.updateConversation=Aa,i.updateConversations=mP,i.updateDocument=Sh,i.updateDocumentAttachment=nh,i.updateDocumentAttachments=ah,i.updateDocuments=Th,i.updateEmailDomain=Vh,i.updateEmailDomains=zh,i.updateForm=Zm,i.updateFormIdentifier=Xh,i.updateFormIdentifierValue=om,i.updateFormIdentifierValues=hm,i.updateFormIdentifiers=Qh,i.updateFormRevision=Dm,i.updateFormRevisionAttachment=bm,i.updateFormRevisionAttachments=_m,i.updateFormRevisions=Cm,i.updateFormSubmission=Iy,i.updateFormSubmissionAttachment=ry,i.updateFormSubmissionAttachments=uy,i.updateFormSubmissions=Oy,i.updateForms=Jm,i.updateGeoImage=By,i.updateGeoImages=jy,i.updateIssue=Yp,i.updateIssueAssociation=Ky,i.updateIssueAssociations=Wy,i.updateIssueAttachment=rp,i.updateIssueAttachments=up,i.updateIssueComment=qp,i.updateIssueCommentAttachment=Pp,i.updateIssueCommentAttachments=Fp,i.updateIssueComments=Dp,i.updateIssueType=Qf,i.updateIssueTypeAttachment=rA,i.updateIssueTypeAttachments=uA,i.updateIssueTypeFieldValues=qA,i.updateIssueTypeFieldValuesAttachment=lf,i.updateIssueTypeFieldValuesAttachments=of,i.updateIssueTypeFieldValuesMany=DA,i.updateIssueTypeFields=JA,i.updateIssueTypeFieldsAttachment=PA,i.updateIssueTypeFieldsAttachments=FA,i.updateIssueTypeFieldsMany=XA,i.updateIssueTypeIdentifier=gf,i.updateIssueTypeIdentifierValue=Cf,i.updateIssueTypeIdentifierValues=$f,i.updateIssueTypeIdentifiers=bf,i.updateIssueTypeStatus=hS,i.updateIssueTypeStatuses=mS,i.updateIssueTypes=xf,i.updateIssueUpdate=FS,i.updateIssueUpdates=gS,i.updateIssues=Zp,i.updateOrganization=dT,i.updateOrganizationAccess=KS,i.updateOrganizationAccesses=WS,i.updateOrganizations=cT,i.updateProject=TI,i.updateProjectAccess=MT,i.updateProjectAccesses=RT,i.updateProjectAttachment=UT,i.updateProjectAttachments=kT,i.updateProjectFile=eI,i.updateProjectFiles=tI,i.updateProjects=SI,i.updateTeam=WI,i.updateTeamMembership=zI,i.updateTeamMemberships=BI,i.updateTeams=YI,i.updateUser=jS,i.updateUsers=BS,i.useSelectorBuilder=UO,i.useSelectorFactory=kO,i.userReducer=DS,i.userSlice=Tn,i.uuidObj=R,i.uuidObjSortFn=Yt,i.uuidSortFn=ft,i.versioningReducer=sO,i.versioningSlice=tO,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
15
|
+
Converting error to APIError and discarding.`),d=new k({message:"An error occurred while processing the request.",innerError:d,discard:!0})),a.reject(d)};return r.then(l,u),a}async performPagination(s,e,n,a,c){const r={...e,queryParams:{...e.queryParams,paginate:!0,limit:n}},{method:l}=r,u=[];let d=await this.performRequest(s,r,a,c);for(u.push(d.results);d.next;)d=await this.performRequest(s,{url:d.next,method:l},a,c),u.push(d.results);return u}}class dt{constructor(){m(this,"graph");m(this,"requestAttemptCounter");this.graph=new DO.DepGraph,this.requestAttemptCounter={}}static _fromOutbox(s){const e=new dt;for(let n=0;n<s.length;n++){const a=s[n];if(!a){console.error("Outbox item was undefined");continue}e.sneakRequest(a);for(let c=0;c<n;c++){const r=s[c];if(!r){console.error("Previous outbox item was undefined");continue}r.payload.uuid!==a.payload.uuid&&r.payload.blocks.some(l=>a.payload.blockers.includes(l))&&dt._addDependency(a.payload.uuid,r.payload.uuid,e.graph)}}return e}_addDependency(s,e){dt._addDependency(s,e,this.graph)}static _addDependency(s,e,n){if(s===e)throw new Error(`Tried to add dependency from node to itself: ${s}`);if(!n.hasNode(s))throw new Error(`Tried to add dependency from non-existent node: ${s} (to node: ${e})`);if(!n.hasNode(e))throw new Error(`Tried to add dependency to non-existent node: ${e} (from node: ${s})`);n.addDependency(s,e)}addRequest(s){if(this.graph.addNode(s.payload.uuid,s),!(s.payload.blockers.length===0||this.graph.size()===1))for(const e of this.graph.overallOrder()){if(e===s.payload.uuid)continue;const n=this.graph.getNodeData(e);s.payload.blockers.some(a=>n.payload.blocks.includes(a))&&this._addDependency(s.payload.uuid,e)}}insertRequest(s){this.graph.addNode(s.payload.uuid,s);for(const e of this.graph.overallOrder()){if(e===s.payload.uuid)continue;this.graph.getNodeData(e).payload.blockers.some(a=>s.payload.blocks.includes(a))&&this._addDependency(e,s.payload.uuid)}}sneakRequest(s){this.graph.addNode(s.payload.uuid,s)}_getNextNode(){const s=this.graph.overallOrder(!0);let e=1/0,n;for(const a of s){const c=this.requestAttemptCounter[a]||0;c<e&&(e=c,n=a)}return n}peek(){const s=this._getNextNode();if(s)return this.graph.getNodeData(s)}remove(s){this.graph.removeNode(s),delete this.requestAttemptCounter[s]}pop(){const s=this.peek();return s&&this.graph.removeNode(s.payload.uuid),s}getQueue(){const s=this.graph.overallOrder().map(n=>this.graph.getNodeData(n)),e=this._getNextNode();if(e){const n=this.graph.getNodeData(e),a=s.findIndex(c=>c.payload.uuid===n.payload.uuid);a!==-1&&(s.splice(a,1),s.unshift(n))}return s}getReady(){let s=this.graph.overallOrder(!0).map(e=>this.graph.getNodeData(e));return s=s.sort((e,n)=>e.meta.offline.effect.timestamp.localeCompare(n.meta.offline.effect.timestamp)),s=s.sort((e,n)=>{const a=this.requestAttemptCounter[e.payload.uuid]||0,c=this.requestAttemptCounter[n.payload.uuid]||0;return a-c}),s}registerRetry(s){this.requestAttemptCounter[s]=(this.requestAttemptCounter[s]||0)+1}}let SO;function TO(t){SO=t}function rt(){return SO}let IO;function OO(t){IO=t}function PO(){return IO}let Ln=null;function st(){const t=rt();if(!t)return console.warn("Client store not set; cannot get outbox coordinator yet."),null;if(Ln)return Ln;const s=t.getState().offline.outbox,e=dt._fromOutbox(s);return Ln=e,e}const Fb=(t,s)=>{const e=new s(t);return OO(e),TO(t),e};class gb{constructor(s){m(this,"_all");m(this,"_previous");this._all=[s],this._previous=s,this.then=this.then.bind(this),this.compile=this.compile.bind(this)}then(s){return this._previous&&(this._previous.next=s),this._all.push(s),this._previous=s,{then:this.then,compile:this.compile}}compile(){return this._all}}class Nn{constructor(){m(this,"next");this.next=null}then(s){return new gb(this).then(s)}async run(s){if(this.next)return this.next.run(s);{if(console.debug("Middleware finished. Performing request:",s),!rt())throw new Error("Client store not set");const n=PO();if(!n)throw new Error("Client SDK not set");return yO(s,n)}}}class FO extends Nn{async run(s){return super.run(s)}}class gO extends Nn{async run(s){return super.run(s)}}const bO=new FO().then(new gO).compile();function _O(t){var s;return(s=bO[0])==null?void 0:s.run(t)}var MO=(t=>(t[t.USER_REGISTRATION=0]="USER_REGISTRATION",t[t.APPLICATION_INVITE=2]="APPLICATION_INVITE",t[t.PROJECT_INVITE=4]="PROJECT_INVITE",t[t.ORGANIZATION_INVITE=6]="ORGANIZATION_INVITE",t[t.ADD_EMAIL_DOMAIN=8]="ADD_EMAIL_DOMAIN",t[t.RESET_PASSWORD=10]="RESET_PASSWORD",t))(MO||{});i.ALL_MIDDLEWARE=bO,i.APIError=k,i.ATTACHMENT_MODEL_DEFAULT_PAGE_SIZE=aO,i.AgentService=rg,i.AssetAttachmentService=ug,i.AssetProcedureService=pg,i.AssetProcedureStepFieldValuesAttachmentService=Tg,i.AssetProcedureStepFieldValuesService=Ig,i.AssetProcedureStepFieldsAttachmentService=fg,i.AssetProcedureStepFieldsService=Sg,i.AssetProcedureStepService=Og,i.AssetProcedureTypeAttachmentService=lg,i.AssetProcedureTypeFieldValuesAttachmentService=mg,i.AssetProcedureTypeFieldValuesService=yg,i.AssetProcedureTypeFieldsAttachmentService=og,i.AssetProcedureTypeFieldsService=hg,i.AssetProcedureTypeService=Ag,i.AssetService=Pg,i.AssetStageCompletionService=Fg,i.AssetStageService=gg,i.AssetStatusType=Xn,i.AssetTypeAttachmentService=bg,i.AssetTypeFieldValuesAttachmentService=Rg,i.AssetTypeFieldValuesService=wg,i.AssetTypeFieldsAttachmentService=_g,i.AssetTypeFieldsService=Mg,i.AssetTypeIdentifierService=Eg,i.AssetTypeIdentifierValueService=vg,i.AssetTypeService=Vg,i.AssetTypeStatusService=zg,i.AttachmentModel=Qn,i.BaseApiService=tt,i.BaseModelApiService=ct,i.BaseOfflineAttachmentModelService=Qe,i.BaseOfflineModelApiService=V,i.BaseSDK=Pb,i.COMMON_AUTO_FIELDS=aa,i.CategoryService=Bg,i.DEFAULT_ISSUE_PRIORITY=CO,i.DEFAULT_PAGE_SIZE=nO,i.DISCARD_HTTP_STATUSES=Dn,i.DeferredPromise=Nt,i.DocumentAttachmentService=jg,i.DocumentService=qg,i.EMPTY_ARRAY=Yn,i.EMPTY_OBJECT=Zn,i.EmailDomainsService=Dg,i.EmailVerificationService=Cg,i.FileService=Ug,i.FormIdentifierService=kg,i.FormIdentifierValueService=Lg,i.FormRevisionAttachmentService=Ng,i.FormRevisionService=Gg,i.FormService=Hg,i.FormSubmissionAttachmentService=Kg,i.FormSubmissionService=Wg,i.GeoImageService=Yg,i.HttpMethod=h,i.IssueAssociationService=Zg,i.IssueAttachmentService=Jg,i.IssueCommentAttachmentService=Xg,i.IssueCommentService=Qg,i.IssuePriority=Lt,i.IssueService=xg,i.IssueStatusType=xn,i.IssueTypeAttachmentService=eb,i.IssueTypeFieldValuesAttachmentService=ib,i.IssueTypeFieldValuesService=nb,i.IssueTypeFieldsAttachmentService=tb,i.IssueTypeFieldsService=sb,i.IssueTypeIdentifierService=ab,i.IssueTypeIdentifierValueService=cb,i.IssueTypeService=db,i.IssueTypeStatusService=rb,i.IssueUpdateChange=U,i.IssueUpdateService=ub,i.JWTService=hb,i.MAX_SERVICE_BATCH_SIZE=N,i.OUTBOX_RETRY_DELAY=ea,i.OfflineAnalyticsMiddleware=FO,i.OfflineMiddleware=Nn,i.OrganizationAccessLevel=Jn,i.OrganizationAccessService=mb,i.OrganizationService=yb,i.OutboxCoordinator=dt,i.ProjectAccessService=pb,i.ProjectAttachmentService=Ab,i.ProjectFileService=fb,i.ProjectService=Sb,i.RESET_ORGANIZATION_STATE=E,i.RESET_PROJECT_STATE=$,i.RESET_STATE=M,i.RateLimitingMiddleware=gO,i.SelectorBuilder=uP,i.TeamMembershipService=Tb,i.TeamService=Ib,i.UNKNOWN_ERROR_MESSAGE=at,i.UserService=Ob,i.VERSION_REDUCER_KEY=ut,i.VerificationCodeType=MO,i._setLatestRetryTime=TT,i.addAsset=jr,i.addAssetAttachment=Ia,i.addAssetAttachments=Qt,i.addAssetProcedure=Yc,i.addAssetProcedureStep=Fr,i.addAssetProcedureStepFieldValues=dr,i.addAssetProcedureStepFieldValuesAttachment=Yd,i.addAssetProcedureStepFieldValuesAttachments=Os,i.addAssetProcedureStepFieldValuesMany=rr,i.addAssetProcedureStepFields=jd,i.addAssetProcedureStepFieldsAttachment=Od,i.addAssetProcedureStepFieldsAttachments=Pd,i.addAssetProcedureStepFieldsMany=qd,i.addAssetProcedureSteps=gr,i.addAssetProcedureType=dd,i.addAssetProcedureTypeAttachment=za,i.addAssetProcedureTypeAttachments=Ba,i.addAssetProcedureTypeFieldValues=Bc,i.addAssetProcedureTypeFieldValuesAttachment=Oc,i.addAssetProcedureTypeFieldValuesAttachments=ds,i.addAssetProcedureTypeFieldValuesMany=jc,i.addAssetProcedureTypeFields=dc,i.addAssetProcedureTypeFieldsAttachment=Wa,i.addAssetProcedureTypeFieldsAttachments=Ya,i.addAssetProcedureTypeFieldsMany=rc,i.addAssetProcedureTypes=rd,i.addAssetProcedures=hs,i.addAssetStage=lu,i.addAssetStageCompletion=Wr,i.addAssetStageCompletions=Yr,i.addAssetStages=ou,i.addAssetType=ho,i.addAssetTypeAttachment=Ou,i.addAssetTypeAttachments=Ds,i.addAssetTypeFieldValues=Ol,i.addAssetTypeFieldValuesAttachment=rl,i.addAssetTypeFieldValuesAttachments=Gs,i.addAssetTypeFieldValuesMany=Pl,i.addAssetTypeFields=Yu,i.addAssetTypeFieldsAttachment=Bu,i.addAssetTypeFieldsAttachments=ju,i.addAssetTypeFieldsMany=Zu,i.addAssetTypeIdentifier=jl,i.addAssetTypeIdentifierValue=Zl,i.addAssetTypeIdentifierValues=Jl,i.addAssetTypeIdentifiers=ql,i.addAssetTypeStatus=go,i.addAssetTypeStatuses=bo,i.addAssetTypes=mo,i.addAssets=Rs,i.addCategories=Lo,i.addCategory=ko,i.addConversation=ya,i.addConversations=oP,i.addDocument=yh,i.addDocumentAttachment=eh,i.addDocumentAttachments=th,i.addDocuments=ph,i.addEmailDomain=Rh,i.addEmailDomains=wh,i.addForm=Hm,i.addFormIdentifier=Wh,i.addFormIdentifierValue=dm,i.addFormIdentifierValues=rm,i.addFormIdentifiers=Yh,i.addFormRevision=Ai,i.addFormRevisionAttachment=Om,i.addFormRevisionAttachments=Pm,i.addFormRevisions=fi,i.addFormSubmission=Ty,i.addFormSubmissionAttachment=ay,i.addFormSubmissionAttachments=gi,i.addFormSubmissions=Ei,i.addForms=Km,i.addGeoImage=Vy,i.addGeoImages=zy,i.addIssue=Hp,i.addIssueAssociation=Yy,i.addIssueAssociations=Et,i.addIssueAttachment=ap,i.addIssueAttachments=Di,i.addIssueComment=Vp,i.addIssueCommentAttachment=Sp,i.addIssueCommentAttachments=Tp,i.addIssueComments=zp,i.addIssueType=Yf,i.addIssueTypeAttachment=nA,i.addIssueTypeAttachments=aA,i.addIssueTypeFieldValues=VA,i.addIssueTypeFieldValuesAttachment=df,i.addIssueTypeFieldValuesAttachments=en,i.addIssueTypeFieldValuesMany=zA,i.addIssueTypeFields=KA,i.addIssueTypeFieldsAttachment=SA,i.addIssueTypeFieldsAttachments=TA,i.addIssueTypeFieldsMany=WA,i.addIssueTypeIdentifier=If,i.addIssueTypeIdentifierValue=Bf,i.addIssueTypeIdentifierValues=jf,i.addIssueTypeIdentifiers=Of,i.addIssueTypeStatus=rS,i.addIssueTypeStatuses=uS,i.addIssueTypes=Zf,i.addIssueUpdate=mn,i.addIssueUpdates=yn,i.addIssues=Hi,i.addOrganization=aT,i.addOrganizationAccess=LS,i.addOrganizationAccesses=NS,i.addOrganizations=nT,i.addProject=fI,i.addProjectAccess=FT,i.addProjectAccesses=gT,i.addProjectAttachment=qT,i.addProjectAttachments=DT,i.addProjectFile=QT,i.addProjectFiles=xT,i.addProjects=AI,i.addTeam=NI,i.addTeamMembership=wI,i.addTeamMemberships=EI,i.addTeams=GI,i.addUser=In,i.addUsers=zS,i.agentsReducer=fa,i.agentsSlice=Zt,i.areArraysEqual=NO,i.assetAttachmentReducer=Ea,i.assetAttachmentSlice=Xt,i.assetProcedureReducer=ed,i.assetProcedureSlice=os,i.assetProcedureStepFieldValuesAttachmentReducer=nr,i.assetProcedureStepFieldValuesAttachmentSlice=Is,i.assetProcedureStepFieldValuesReducer=Sr,i.assetProcedureStepFieldValuesSlice=gs,i.assetProcedureStepFieldsAttachmentReducer=Vd,i.assetProcedureStepFieldsAttachmentSlice=As,i.assetProcedureStepFieldsReducer=Hd,i.assetProcedureStepFieldsSlice=Ss,i.assetProcedureStepReducer=wr,i.assetProcedureStepSlice=bs,i.assetProcedureTypeAttachmentReducer=ka,i.assetProcedureTypeAttachmentSlice=ts,i.assetProcedureTypeFieldValuesAttachmentReducer=Mc,i.assetProcedureTypeFieldValuesAttachmentSlice=cs,i.assetProcedureTypeFieldValuesReducer=Lc,i.assetProcedureTypeFieldValuesSlice=ls,i.assetProcedureTypeFieldsAttachmentReducer=tc,i.assetProcedureTypeFieldsAttachmentSlice=is,i.assetProcedureTypeFieldsReducer=pc,i.assetProcedureTypeFieldsSlice=as,i.assetProcedureTypeReducer=pd,i.assetProcedureTypeSlice=ys,i.assetReducer=Gr,i.assetSlice=Ms,i.assetStageCompletionReducer=tu,i.assetStageCompletionSlice=Vs,i.assetStageReducer=Au,i.assetStageSlice=zs,i.assetTypeAttachmentReducer=vu,i.assetTypeAttachmentSlice=qs,i.assetTypeFieldValuesAttachmentReducer=Sl,i.assetTypeFieldValuesAttachmentSlice=Ns,i.assetTypeFieldValuesReducer=Vl,i.assetTypeFieldValuesSlice=Ws,i.assetTypeFieldsAttachmentReducer=Hu,i.assetTypeFieldsAttachmentSlice=Us,i.assetTypeFieldsReducer=al,i.assetTypeFieldsSlice=Ls,i.assetTypeIdentifierReducer=Kl,i.assetTypeIdentifierSlice=Ys,i.assetTypeIdentifierValueReducer=co,i.assetTypeIdentifierValueSlice=Js,i.assetTypeReducer=Oo,i.assetTypeSlice=Xs,i.assetTypeStatusReducer=jo,i.assetTypeStatusSlice=xs,i.assetTypeStatusSortFn=ra,i.authReducer=Co,i.authSlice=bt,i.baseReducer=WF,i.baseReducers=qn,i.blobToBase64=QO,i.categoryReducer=Xo,i.categorySlice=ti,i.clearTokens=ZP,i.constructUploadedFilePayloads=XO,i.createDeepEqualSelector=lP,i.createModelAdapter=w,i.createOfflineAction=pT,i.createPayload=z,i.createSelectionAdapter=$O,i.createShallowEqualSelector=O,i.deleteAsset=Cr,i.deleteAssetAttachment=ba,i.deleteAssetAttachments=xt,i.deleteAssetProcedure=Xc,i.deleteAssetProcedureStep=Mr,i.deleteAssetProcedureStepFieldValues=mr,i.deleteAssetProcedureStepFieldValuesAttachment=xd,i.deleteAssetProcedureStepFieldValuesAttachments=Ps,i.deleteAssetProcedureStepFieldValuesMany=yr,i.deleteAssetProcedureStepFields=kd,i.deleteAssetProcedureStepFieldsAttachment=Md,i.deleteAssetProcedureStepFieldsAttachments=Rd,i.deleteAssetProcedureStepFieldsMany=Ld,i.deleteAssetProcedureSteps=Rr,i.deleteAssetProcedureType=od,i.deleteAssetProcedureTypeAttachment=$a,i.deleteAssetProcedureTypeAttachments=Ua,i.deleteAssetProcedureTypeFieldValues=Uc,i.deleteAssetProcedureTypeFieldValuesAttachment=_c,i.deleteAssetProcedureTypeFieldValuesAttachments=rs,i.deleteAssetProcedureTypeFieldValuesMany=kc,i.deleteAssetProcedureTypeFields=mc,i.deleteAssetProcedureTypeFieldsAttachment=xa,i.deleteAssetProcedureTypeFieldsAttachments=ec,i.deleteAssetProcedureTypeFieldsMany=yc,i.deleteAssetProcedureTypes=hd,i.deleteAssetProcedures=ms,i.deleteAssetStage=yu,i.deleteAssetStageCompletion=xr,i.deleteAssetStageCompletions=eu,i.deleteAssetStages=pu,i.deleteAssetType=Ao,i.deleteAssetTypeAttachment=_u,i.deleteAssetTypeAttachments=Cs,i.deleteAssetTypeFieldValues=Ml,i.deleteAssetTypeFieldValuesAttachment=ml,i.deleteAssetTypeFieldValuesAttachments=Hs,i.deleteAssetTypeFieldValuesMany=Rl,i.deleteAssetTypeFields=el,i.deleteAssetTypeFieldsAttachment=Uu,i.deleteAssetTypeFieldsAttachments=ku,i.deleteAssetTypeFieldsMany=tl,i.deleteAssetTypeIdentifier=kl,i.deleteAssetTypeIdentifierValue=to,i.deleteAssetTypeIdentifierValues=so,i.deleteAssetTypeIdentifiers=Ll,i.deleteAssetTypeStatus=Eo,i.deleteAssetTypeStatuses=vo,i.deleteAssetTypes=fo,i.deleteAssets=ws,i.deleteCategories=Yo,i.deleteCategory=Wo,i.deleteConversation=yP,i.deleteConversations=pP,i.deleteDocument=Ih,i.deleteDocumentAttachment=ch,i.deleteDocumentAttachments=dh,i.deleteDocuments=Oh,i.deleteEmailDomain=Bh,i.deleteEmailDomains=jh,i.deleteForm=Xm,i.deleteFormIdentifier=xh,i.deleteFormIdentifierValue=mm,i.deleteFormIdentifierValues=ym,i.deleteFormIdentifiers=em,i.deleteFormRevision=Si,i.deleteFormRevisionAttachment=Mm,i.deleteFormRevisionAttachments=Rm,i.deleteFormRevisions=Ti,i.deleteFormSubmission=Py,i.deleteFormSubmissionAttachment=ly,i.deleteFormSubmissionAttachments=bi,i.deleteFormSubmissions=vi,i.deleteForms=Qm,i.deleteGeoImage=qy,i.deleteGeoImages=Dy,i.deleteIssue=Jp,i.deleteIssueAssociation=Zy,i.deleteIssueAssociations=vt,i.deleteIssueAttachment=lp,i.deleteIssueAttachments=Ci,i.deleteIssueComment=Cp,i.deleteIssueCommentAttachment=gp,i.deleteIssueCommentAttachments=bp,i.deleteIssueComments=$p,i.deleteIssueType=eS,i.deleteIssueTypeAttachment=lA,i.deleteIssueTypeAttachments=oA,i.deleteIssueTypeFieldValues=CA,i.deleteIssueTypeFieldValuesAttachment=hf,i.deleteIssueTypeFieldValuesAttachments=tn,i.deleteIssueTypeFieldValuesMany=$A,i.deleteIssueTypeFields=QA,i.deleteIssueTypeFieldsAttachment=gA,i.deleteIssueTypeFieldsAttachments=bA,i.deleteIssueTypeFieldsMany=xA,i.deleteIssueTypeIdentifier=_f,i.deleteIssueTypeIdentifierValue=Uf,i.deleteIssueTypeIdentifierValues=kf,i.deleteIssueTypeIdentifiers=Mf,i.deleteIssueTypeStatus=yS,i.deleteIssueTypeStatuses=pS,i.deleteIssueTypes=tS,i.deleteIssueUpdate=pn,i.deleteIssueUpdates=An,i.deleteIssues=Ki,i.deleteOrganization=rT,i.deleteOrganizationAccess=YS,i.deleteOrganizationAccesses=ZS,i.deleteOrganizations=uT,i.deleteProject=II,i.deleteProjectAccess=wT,i.deleteProjectAccesses=ET,i.deleteProjectAttachment=LT,i.deleteProjectAttachments=NT,i.deleteProjectFile=sI,i.deleteProjectFiles=iI,i.deleteProjects=OI,i.deleteTeam=ZI,i.deleteTeamMembership=jI,i.deleteTeamMemberships=qI,i.deleteTeams=JI,i.deleteUser=On,i.deleteUsers=qS,i.dequeue=mO,i.discard=pO,i.documentAttachmentReducer=oh,i.documentAttachmentSlice=ni,i.documentSlice=ci,i.documentsReducer=Ph,i.downloadFile=xO,i.downloadInMemoryFile=JO,i.emailDomainsReducer=$h,i.emailDomainsSlice=ri,i.emailRegex=cP,i.enqueue=hO,i.enqueueRequest=fT,i.extractResponseFromError=fO,i.fallbackToEmptyArray=T,i.fallbackToEmptyObject=At,i.fileReducer=Gh,i.fileSlice=li,i.fileToBlob=ia,i.formIdentifierReducer=nm,i.formIdentifierSlice=oi,i.formIdentifierValueReducer=Sm,i.formIdentifierValueSlice=mi,i.formReducer=xm,i.formRevisionAttachmentReducer=Vm,i.formRevisionAttachmentSlice=yi,i.formRevisionReducer=Lm,i.formRevisionsSlice=pi,i.formSlice=Oi,i.formSubmissionAttachmentReducer=yy,i.formSubmissionAttachmentSlice=Fi,i.formSubmissionReducer=My,i.formSubmissionSlice=wi,i.geoImageReducer=ky,i.geoImageSlice=zi,i.getAssetProcedureStepSubTree=da,i.getAssetProcedureStepTrees=dP,i.getClientSDK=PO,i.getClientStore=rt,i.getDocumentSubTree=oa,i.getDocumentTrees=rP,i.getFileIdentifier=ZO,i.getFileS3Key=Wt,i.getLocalDateString=ta,i.getLocalRelativeDateString=WO,i.getOutboxCoordinator=st,i.getRenamedFile=sa,i.getRequestDescription=P,i.hashFile=nt,i.initSDK=Fb,i.initializeAssetAttachments=Ta,i.initializeAssetProcedureStepFieldValues=cr,i.initializeAssetProcedureStepFieldValuesAttachments=Wd,i.initializeAssetProcedureStepFields=Bd,i.initializeAssetProcedureStepFieldsAttachments=Id,i.initializeAssetProcedureSteps=Ir,i.initializeAssetProcedureTypeAttachments=Va,i.initializeAssetProcedureTypeFieldValues=zc,i.initializeAssetProcedureTypeFieldValuesAttachments=Ic,i.initializeAssetProcedureTypeFields=cc,i.initializeAssetProcedureTypeFieldsAttachments=Ka,i.initializeAssetProcedureTypes=cd,i.initializeAssetProcedures=Wc,i.initializeAssetStageCompletions=Kr,i.initializeAssetStages=du,i.initializeAssetTypeAttachments=Iu,i.initializeAssetTypeFieldValues=Il,i.initializeAssetTypeFieldValuesAttachments=dl,i.initializeAssetTypeFields=Wu,i.initializeAssetTypeFieldsAttachments=zu,i.initializeAssetTypeIdentifierValues=Yl,i.initializeAssetTypeIdentifiers=Bl,i.initializeAssetTypeStatuses=Fo,i.initializeAssetTypes=uo,i.initializeAssets=Br,i.initializeCategories=Uo,i.initializeConversations=ma,i.initializeDocumentAttachments=xo,i.initializeDocuments=mh,i.initializeEmailDomains=Mh,i.initializeFormIdentifierValues=cm,i.initializeFormIdentifiers=Kh,i.initializeFormRevisionAttachments=Im,i.initializeFormRevisions=Bm,i.initializeFormSubmissionAttachments=ny,i.initializeFormSubmissions=Ay,i.initializeForms=Gm,i.initializeGeoImages=wy,i.initializeIssueAssociations=Ny,i.initializeIssueAttachments=np,i.initializeIssueCommentAttachments=fp,i.initializeIssueComments=vp,i.initializeIssueTypeAttachments=iA,i.initializeIssueTypeFieldValues=vA,i.initializeIssueTypeFieldValuesAttachments=cf,i.initializeIssueTypeFields=HA,i.initializeIssueTypeFieldsAttachments=fA,i.initializeIssueTypeIdentifierValues=zf,i.initializeIssueTypeIdentifiers=Tf,i.initializeIssueTypeStatuses=dS,i.initializeIssueTypes=Wf,i.initializeIssueUpdates=IS,i.initializeIssues=Gp,i.initializeOrganizationAccesses=kS,i.initializeOrganizations=tT,i.initializeProjectAccesses=PT,i.initializeProjectAttachments=jT,i.initializeProjectFiles=ZT,i.initializeProjects=mI,i.initializeTeamMemberships=RI,i.initializeTeams=LI,i.initializeUsers=ES,i.isToday=KO,i.issueAssociationReducer=sp,i.issueAssociationSlice=ji,i.issueAttachmentReducer=pp,i.issueAttachmentSlice=qi,i.issueCommentAttachmentReducer=wp,i.issueCommentAttachmentSlice=Ui,i.issueCommentReducer=Lp,i.issueCommentSlice=Li,i.issueReducer=tA,i.issueSlice=Gi,i.issueTypeAttachmentReducer=pA,i.issueTypeAttachmentSlice=Wi,i.issueTypeFieldValuesAttachmentReducer=ff,i.issueTypeFieldValuesAttachmentSlice=xi,i.issueTypeFieldValuesReducer=NA,i.issueTypeFieldValuesSlice=Xi,i.issueTypeFieldsAttachmentReducer=wA,i.issueTypeFieldsAttachmentSlice=Zi,i.issueTypeFieldsReducer=nf,i.issueTypeFieldsSlice=Qi,i.issueTypeIdentifierReducer=vf,i.issueTypeIdentifierSlice=nn,i.issueTypeIdentifierValueReducer=Hf,i.issueTypeIdentifierValueSlice=cn,i.issueTypeReducer=aS,i.issueTypeSlice=dn,i.issueTypeStatusReducer=SS,i.issueTypeStatusSlice=un,i.issueTypeStatusSortFn=ua,i.issueUpdateReducer=RS,i.issueUpdateSlice=hn,i.logOnlyOnce=eP,i.markAsDeleted=ST,i.markForDeletion=vF,i.memoize=Ht,i.organizationAccessReducer=JS,i.organizationAccessSlice=Fn,i.organizationReducer=yT,i.organizationSlice=gn,i.outboxReducer=IT,i.outboxSlice=bn,i.overmapEnhancer=sg,i.overmapReducer=YF,i.overmapReducers=iO,i.performRequest=kn,i.performRequestFromAction=yO,i.projectAccessReducer=vT,i.projectAccessSlice=_n,i.projectAttachmentReducer=WT,i.projectAttachmentSlice=Rn,i.projectFileReducer=oI,i.projectFileSlice=En,i.projectReducer=PI,i.projectSlice=vn,i.rehydratedReducer=_I,i.rehydratedSlice=Vn,i.restructureSelectorArgs=S,i.runMiddleware=_O,i.saveActiveProjectFileBounds=cI,i.selectAccessToken=JP,i.selectAccessesByUserOfProject=zF,i.selectAccessibleProjects=CF,i.selectActiveOrganizationAccess=MF,i.selectActiveProjectFileId=qF,i.selectAllDocumentAttachments=ai,i.selectAssetAttachmentById=Ma,i.selectAssetAttachmentMapping=_a,i.selectAssetAttachments=es,i.selectAssetAttachmentsByIds=Ra,i.selectAssetById=Lr,i.selectAssetProcedureById=id,i.selectAssetProcedureStepById=Er,i.selectAssetProcedureStepFieldValues=lt,i.selectAssetProcedureStepFieldValuesAttachmentById=tr,i.selectAssetProcedureStepFieldValuesAttachments=Fs,i.selectAssetProcedureStepFieldValuesAttachmentsByIds=sr,i.selectAssetProcedureStepFieldValuesAttachmentsMapping=er,i.selectAssetProcedureStepFieldValuesById=Ar,i.selectAssetProcedureStepFieldValuesByIds=fr,i.selectAssetProcedureStepFieldValuesMapping=pr,i.selectAssetProcedureStepFieldValuesOfAsset=EP,i.selectAssetProcedureStepFieldValuesOfAssetProcedure=vP,i.selectAssetProcedureStepFieldValuesOfAssetProcedureStep=VP,i.selectAssetProcedureStepFields=Ot,i.selectAssetProcedureStepFieldsAttachmentById=Ed,i.selectAssetProcedureStepFieldsAttachments=fs,i.selectAssetProcedureStepFieldsAttachmentsByIds=vd,i.selectAssetProcedureStepFieldsAttachmentsMapping=wd,i.selectAssetProcedureStepFieldsById=Nd,i.selectAssetProcedureStepFieldsByIds=Gd,i.selectAssetProcedureStepFieldsMapping=Ts,i.selectAssetProcedureStepFieldsOfAssetProcedureStep=MP,i.selectAssetProcedureStepMapping=Pt,i.selectAssetProcedureSteps=_s,i.selectAssetProcedureStepsByIds=vr,i.selectAssetProcedureStepsMappingOfAssetProcedureType=zP,i.selectAssetProcedureStepsOfAssetProcedureType=BP,i.selectAssetProcedureTypeAttachmentById=Na,i.selectAssetProcedureTypeAttachmentMapping=La,i.selectAssetProcedureTypeAttachments=ss,i.selectAssetProcedureTypeAttachmentsByIds=Ga,i.selectAssetProcedureTypeById=fd,i.selectAssetProcedureTypeFieldValues=Tt,i.selectAssetProcedureTypeFieldValuesAttachmentById=wc,i.selectAssetProcedureTypeFieldValuesAttachments=us,i.selectAssetProcedureTypeFieldValuesAttachmentsByIds=Ec,i.selectAssetProcedureTypeFieldValuesAttachmentsMapping=Rc,i.selectAssetProcedureTypeFieldValuesById=Gc,i.selectAssetProcedureTypeFieldValuesByIds=Hc,i.selectAssetProcedureTypeFieldValuesMapping=Nc,i.selectAssetProcedureTypeFieldValuesOfAsset=PP,i.selectAssetProcedureTypeFields=St,i.selectAssetProcedureTypeFieldsAttachmentById=ic,i.selectAssetProcedureTypeFieldsAttachments=ns,i.selectAssetProcedureTypeFieldsAttachmentsByIds=nc,i.selectAssetProcedureTypeFieldsAttachmentsMapping=sc,i.selectAssetProcedureTypeFieldsById=fc,i.selectAssetProcedureTypeFieldsByIds=Sc,i.selectAssetProcedureTypeFieldsMapping=Ac,i.selectAssetProcedureTypeFieldsOfAssetProcedureType=IP,i.selectAssetProcedureTypes=ps,i.selectAssetProcedureTypesByIds=Sd,i.selectAssetProcedureTypesMapping=Ad,i.selectAssetProcedureTypesOfOrganization=bP,i.selectAssetProcedures=It,i.selectAssetProceduresByIds=nd,i.selectAssetProceduresMapping=td,i.selectAssetProceduresOfAssetProcedureType=sd,i.selectAssetProceduresOfAssetType=gP,i.selectAssetStageById=fu,i.selectAssetStageCompletionById=nu,i.selectAssetStageCompletionMapping=su,i.selectAssetStageCompletions=iu,i.selectAssetStageCompletionsByIds=au,i.selectAssetStages=js,i.selectAssetStagesByIds=Su,i.selectAssetStagesMappingOfAssetProcedureType=qP,i.selectAssetStagesOfAssetProcedureType=DP,i.selectAssetTypeAttachmentById=Ru,i.selectAssetTypeAttachmentMapping=Mu,i.selectAssetTypeAttachments=$s,i.selectAssetTypeAttachmentsByIds=wu,i.selectAssetTypeById=To,i.selectAssetTypeFieldValues=Ft,i.selectAssetTypeFieldValuesAttachmentById=pl,i.selectAssetTypeFieldValuesAttachments=Ks,i.selectAssetTypeFieldValuesAttachmentsByIds=Al,i.selectAssetTypeFieldValuesAttachmentsMapping=yl,i.selectAssetTypeFieldValuesById=El,i.selectAssetTypeFieldValuesByIds=vl,i.selectAssetTypeFieldValuesMapping=wl,i.selectAssetTypeFieldValuesOfAsset=kP,i.selectAssetTypeFields=ot,i.selectAssetTypeFieldsAttachmentById=Nu,i.selectAssetTypeFieldsAttachments=ks,i.selectAssetTypeFieldsAttachmentsByIds=Gu,i.selectAssetTypeFieldsAttachmentsMapping=Lu,i.selectAssetTypeFieldsById=il,i.selectAssetTypeFieldsByIds=nl,i.selectAssetTypeFieldsMapping=sl,i.selectAssetTypeFieldsOfAssetType=$P,i.selectAssetTypeIdentifierById=Gl,i.selectAssetTypeIdentifierMapping=Nl,i.selectAssetTypeIdentifierValueById=no,i.selectAssetTypeIdentifierValueMapping=io,i.selectAssetTypeIdentifierValues=gt,i.selectAssetTypeIdentifierValuesByIds=ao,i.selectAssetTypeIdentifierValuesOfAsset=GP,i.selectAssetTypeIdentifierValuesOfIdentifier=HP,i.selectAssetTypeIdentifiers=Zs,i.selectAssetTypeIdentifiersByIds=Hl,i.selectAssetTypeIdentifiersOfAssetType=NP,i.selectAssetTypeStatusById=zo,i.selectAssetTypeStatusMapping=Vo,i.selectAssetTypeStatuses=ei,i.selectAssetTypeStatusesByIds=Bo,i.selectAssetTypeStatusesOfAssetType=WP,i.selectAssetTypeValuesOfAssetType=LP,i.selectAssetTypes=Qs,i.selectAssetTypesByIds=Io,i.selectAssetTypesMapping=So,i.selectAssetTypesOfOrganization=KP,i.selectAssets=Es,i.selectAssetsByIds=Nr,i.selectAssetsMapping=kr,i.selectAssetsOfAssetType=vs,i.selectAttachmentsOfAsset=wa,i.selectAttachmentsOfAssetProcedureStepFieldValues=ir,i.selectAttachmentsOfAssetProcedureStepFields=_P,i.selectAttachmentsOfAssetProcedureType=SP,i.selectAttachmentsOfAssetProcedureTypeFieldValues=vc,i.selectAttachmentsOfAssetProcedureTypeFields=TP,i.selectAttachmentsOfAssetType=Eu,i.selectAttachmentsOfAssetTypeFieldValues=fl,i.selectAttachmentsOfAssetTypeFields=CP,i.selectAttachmentsOfDocument=xP,i.selectAttachmentsOfFormRevision=dF,i.selectAttachmentsOfFormSubmission=my,i.selectAttachmentsOfIssue=hp,i.selectAttachmentsOfIssueComment=oF,i.selectAttachmentsOfIssueType=yF,i.selectAttachmentsOfIssueTypeFieldValues=Af,i.selectAttachmentsOfIssueTypeFields=pF,i.selectAttachmentsOfProject=jF,i.selectCategories=si,i.selectCategoriesByIds=Jo,i.selectCategoriesOfProject=QP,i.selectCategoryById=ii,i.selectCategoryMapping=Zo,i.selectCommentsOfIssue=hF,i.selectConversation=fP,i.selectConversationMapping=Jt,i.selectConversations=AP,i.selectCurrentUser=CS,i.selectDeletedRequests=wF,i.selectDescendantsOfAssetProcedureStep=Vr,i.selectDescendantsOfDocument=bh,i.selectDocumentAttachmentById=uh,i.selectDocumentAttachmentMapping=rh,i.selectDocumentAttachmentsByIds=lh,i.selectDocumentById=Fh,i.selectDocuments=_t,i.selectDocumentsByIds=gh,i.selectDocumentsMapping=di,i.selectEmailDomainById=Dh,i.selectEmailDomains=ui,i.selectEmailDomainsAsMapping=qh,i.selectEmailDomainsByIds=Ch,i.selectEmailDomainsOfOrganization=sF,i.selectFieldValuesOfAssetProcedure=FP,i.selectFormById=ty,i.selectFormIdentifierById=sm,i.selectFormIdentifierMapping=tm,i.selectFormIdentifierValueById=Am,i.selectFormIdentifierValueMapping=pm,i.selectFormIdentifierValues=Mt,i.selectFormIdentifierValuesByIds=fm,i.selectFormIdentifierValuesOfFormSubmission=aF,i.selectFormIdentifierValuesOfIdentifier=cF,i.selectFormIdentifiers=hi,i.selectFormIdentifiersByIds=im,i.selectFormIdentifiersOfForm=nF,i.selectFormMapping=ey,i.selectFormRevisionAttachmentById=Em,i.selectFormRevisionAttachments=wm,i.selectFormRevisionAttachmentsByIds=vm,i.selectFormRevisionAttachmentsMapping=Rt,i.selectFormRevisionById=$m,i.selectFormRevisionMapping=Ii,i.selectFormRevisions=wt,i.selectFormRevisionsByIds=Um,i.selectFormRevisionsOfForm=km,i.selectFormSubmissionAttachemntsByIds=Ri,i.selectFormSubmissionAttachmentById=oy,i.selectFormSubmissionAttachments=Mi,i.selectFormSubmissionAttachmentsByIds=hy,i.selectFormSubmissionAttachmentsMapping=_i,i.selectFormSubmissionById=gy,i.selectFormSubmissions=Fy,i.selectFormSubmissionsByIds=by,i.selectFormSubmissionsMapping=Vi,i.selectFormSubmissionsOfForm=_y,i.selectForms=Pi,i.selectFormsByIds=sy,i.selectFormsOfOrganization=uF,i.selectGeoImageById=$y,i.selectGeoImageMapping=Cy,i.selectGeoImages=Bi,i.selectGeoImagesByIds=Uy,i.selectGeoImagesOfProject=lF,i.selectIsImportingProjectFile=DF,i.selectIsLoggedIn=XP,i.selectIssueAssociationById=Xy,i.selectIssueAssociationMapping=ht,i.selectIssueAssociations=Jy,i.selectIssueAssociationsByIds=Qy,i.selectIssueAssociationsOfAsset=tp,i.selectIssueAssociationsOfIssue=ep,i.selectIssueAssociationsToIssue=xy,i.selectIssueAttachmentById=mp,i.selectIssueAttachmentMapping=op,i.selectIssueAttachments=$i,i.selectIssueAttachmentsByIds=yp,i.selectIssueById=Qp,i.selectIssueCommentAttachmentById=Mp,i.selectIssueCommentAttachmentMapping=_p,i.selectIssueCommentAttachments=ki,i.selectIssueCommentAttachmentsByIds=Rp,i.selectIssueCommentById=Up,i.selectIssueCommentMapping=Ni,i.selectIssueCommentsByIds=kp,i.selectIssueMapping=Xp,i.selectIssueTypeAttachmentById=mA,i.selectIssueTypeAttachmentMapping=hA,i.selectIssueTypeAttachments=Yi,i.selectIssueTypeAttachmentsByIds=yA,i.selectIssueTypeById=iS,i.selectIssueTypeFieldValues=zt,i.selectIssueTypeFieldValuesAttachmentById=yf,i.selectIssueTypeFieldValuesAttachments=sn,i.selectIssueTypeFieldValuesAttachmentsByIds=pf,i.selectIssueTypeFieldValuesAttachmentsMapping=mf,i.selectIssueTypeFieldValuesById=kA,i.selectIssueTypeFieldValuesByIds=LA,i.selectIssueTypeFieldValuesMapping=UA,i.selectIssueTypeFieldValuesOfIssue=AF,i.selectIssueTypeFields=mt,i.selectIssueTypeFieldsAttachmentById=MA,i.selectIssueTypeFieldsAttachments=Ji,i.selectIssueTypeFieldsAttachmentsByIds=RA,i.selectIssueTypeFieldsAttachmentsMapping=_A,i.selectIssueTypeFieldsById=tf,i.selectIssueTypeFieldsByIds=sf,i.selectIssueTypeFieldsMapping=ef,i.selectIssueTypeFieldsOfIssueType=fF,i.selectIssueTypeIdentifierById=wf,i.selectIssueTypeIdentifierMapping=Rf,i.selectIssueTypeIdentifierValueById=Nf,i.selectIssueTypeIdentifierValueMapping=Lf,i.selectIssueTypeIdentifierValues=Bt,i.selectIssueTypeIdentifierValuesByIds=Gf,i.selectIssueTypeIdentifierValuesOfIdentifier=PF,i.selectIssueTypeIdentifierValuesOfIssue=OF,i.selectIssueTypeIdentifiers=an,i.selectIssueTypeIdentifiersByIds=Ef,i.selectIssueTypeIdentifiersOfIssueType=IF,i.selectIssueTypeMapping=sS,i.selectIssueTypeStatusById=on,i.selectIssueTypeStatusMapping=AS,i.selectIssueTypeStatuses=ln,i.selectIssueTypeStatusesByIds=fS,i.selectIssueTypeStatusesOfIssueType=gF,i.selectIssueTypeValuesOfIssueType=TF,i.selectIssueTypes=rn,i.selectIssueTypesByIds=nS,i.selectIssueTypesOfOrganization=FF,i.selectIssueUpdateById=bS,i.selectIssueUpdateMapping=fn,i.selectIssueUpdates=Sn,i.selectIssueUpdatesByIds=_S,i.selectIssueUpdatesOfIssue=MS,i.selectIssues=Vt,i.selectIssuesByIds=xp,i.selectIssuesOfIssueType=eA,i.selectIssuesOfProject=mF,i.selectLatestAssetProcedureStepFieldsOfAssetProcedureStep=RP,i.selectLatestAssetProcedureTypeFieldsOfAssetProcedureType=OP,i.selectLatestAssetTypeFieldsOfAssetType=UP,i.selectLatestFieldsByAssetProcedureStep=wP,i.selectLatestFormRevisionOfForm=rF,i.selectLatestIssueTypeFieldsOfIssueType=SF,i.selectLatestRetryTime=EF,i.selectMembershipsByUserOfTeam=NF,i.selectNumberOfAssetsOfAssetType=jP,i.selectOrganizationAccessById=XS,i.selectOrganizationAccessMapping=Dt,i.selectOrganizationAccessUserMapping=xS,i.selectOrganizationAccessesByIds=QS,i.selectOrganizationById=hT,i.selectOrganizationDocuments=tF,i.selectOrganizations=oT,i.selectOrganizationsByIds=mT,i.selectOrganizationsMapping=lT,i.selectProjectAccessById=VT,i.selectProjectAccessMapping=Mn,i.selectProjectAccesses=yt,i.selectProjectAccessesByIds=zT,i.selectProjectAccessesOfProject=VF,i.selectProjectAttachmentById=HT,i.selectProjectAttachmentMapping=GT,i.selectProjectAttachments=wn,i.selectProjectAttachmentsByIds=KT,i.selectProjectById=gI,i.selectProjectDocuments=eF,i.selectProjectFileById=uI,i.selectProjectFileMapping=dI,i.selectProjectFiles=rI,i.selectProjectFilesByIds=lI,i.selectProjectMapping=FI,i.selectProjects=Ct,i.selectProjectsByIds=bI,i.selectProjectsOfOrganization=$F,i.selectRehydrated=LF,i.selectStageMapping=Bs,i.selectTeamById=QI,i.selectTeamMembershipById=$I,i.selectTeamMemberships=$t,i.selectTeamMembershipsByIds=UI,i.selectTeamMembershipsMapping=CI,i.selectTeams=jn,i.selectTeamsByIds=xI,i.selectTeamsMapping=XI,i.selectTeamsOfOrganization=HF,i.selectUploadUrl=Nh,i.selectUserById=qt,i.selectUsers=jt,i.selectUsersByIds=$S,i.selectUsersMapping=Pn,i.selectUsersOfOrganization=RF,i.selectUsersOfProject=BF,i.selectUsersOfTeam=GF,i.setActiveProjectFileId=aI,i.setAsset=$r,i.setAssetAttachment=Oa,i.setAssetAttachments=Pa,i.setAssetProcedure=Qc,i.setAssetProcedureStep=Or,i.setAssetProcedureStepFieldValues=ur,i.setAssetProcedureStepFieldValuesAttachment=Zd,i.setAssetProcedureStepFieldValuesAttachments=Jd,i.setAssetProcedureStepFieldValuesMany=lr,i.setAssetProcedureStepFields=Dd,i.setAssetProcedureStepFieldsAttachment=Fd,i.setAssetProcedureStepFieldsAttachments=gd,i.setAssetProcedureStepFieldsMany=Cd,i.setAssetProcedureSteps=Pr,i.setAssetProcedureType=md,i.setAssetProcedureTypeAttachment=ja,i.setAssetProcedureTypeAttachments=qa,i.setAssetProcedureTypeFieldValues=qc,i.setAssetProcedureTypeFieldValuesAttachment=Pc,i.setAssetProcedureTypeFieldValuesAttachments=Fc,i.setAssetProcedureTypeFieldValuesMany=Dc,i.setAssetProcedureTypeFields=uc,i.setAssetProcedureTypeFieldsAttachment=Za,i.setAssetProcedureTypeFieldsAttachments=Ja,i.setAssetProcedureTypeFieldsMany=lc,i.setAssetProcedureTypes=yd,i.setAssetProcedures=xc,i.setAssetStage=ru,i.setAssetStageCompletion=Zr,i.setAssetStageCompletions=Jr,i.setAssetStages=uu,i.setAssetType=lo,i.setAssetTypeAttachment=Pu,i.setAssetTypeAttachments=Fu,i.setAssetTypeFieldValues=Fl,i.setAssetTypeFieldValuesAttachment=ul,i.setAssetTypeFieldValuesAttachments=ll,i.setAssetTypeFieldValuesMany=gl,i.setAssetTypeFields=Ju,i.setAssetTypeFieldsAttachment=qu,i.setAssetTypeFieldsAttachments=Du,i.setAssetTypeFieldsMany=Xu,i.setAssetTypeIdentifier=Dl,i.setAssetTypeIdentifierValue=Xl,i.setAssetTypeIdentifierValues=Ql,i.setAssetTypeIdentifiers=Cl,i.setAssetTypeStatus=_o,i.setAssetTypeStatuses=Mo,i.setAssetTypes=oo,i.setAssets=Ur,i.setCategories=Go,i.setCategory=No,i.setClientSDK=OO,i.setClientStore=TO,i.setConversation=pa,i.setConversations=hP,i.setCurrentUser=bF,i.setDocument=Ah,i.setDocumentAttachment=sh,i.setDocumentAttachments=ih,i.setDocuments=fh,i.setEmailDomain=Eh,i.setEmailDomains=vh,i.setForm=Wm,i.setFormIdentifier=Zh,i.setFormIdentifierValue=um,i.setFormIdentifierValues=lm,i.setFormIdentifiers=Jh,i.setFormRevision=jm,i.setFormRevisionAttachment=Fm,i.setFormRevisionAttachments=gm,i.setFormRevisions=qm,i.setFormSubmission=fy,i.setFormSubmissionAttachment=cy,i.setFormSubmissionAttachments=dy,i.setFormSubmissions=Sy,i.setForms=Ym,i.setGeoImage=Ey,i.setGeoImages=vy,i.setIsImportingProjectFile=nI,i.setIssue=Kp,i.setIssueAssociation=Hy,i.setIssueAssociations=Gy,i.setIssueAttachment=cp,i.setIssueAttachments=dp,i.setIssueComment=Bp,i.setIssueCommentAttachment=Ip,i.setIssueCommentAttachments=Op,i.setIssueComments=jp,i.setIssueType=Jf,i.setIssueTypeAttachment=cA,i.setIssueTypeAttachments=dA,i.setIssueTypeFieldValues=BA,i.setIssueTypeFieldValuesAttachment=rf,i.setIssueTypeFieldValuesAttachments=uf,i.setIssueTypeFieldValuesMany=jA,i.setIssueTypeFields=YA,i.setIssueTypeFieldsAttachment=IA,i.setIssueTypeFieldsAttachments=OA,i.setIssueTypeFieldsMany=ZA,i.setIssueTypeIdentifier=Pf,i.setIssueTypeIdentifierValue=qf,i.setIssueTypeIdentifierValues=Df,i.setIssueTypeIdentifiers=Ff,i.setIssueTypeStatus=lS,i.setIssueTypeStatuses=oS,i.setIssueTypes=Xf,i.setIssueUpdate=OS,i.setIssueUpdates=PS,i.setIssues=Wp,i.setLoggedIn=Do,i.setOrganization=iT,i.setOrganizationAccess=GS,i.setOrganizationAccesses=HS,i.setOrganizations=sT,i.setProfilePicture=_F,i.setProject=pI,i.setProjectAccess=bT,i.setProjectAccesses=_T,i.setProjectAttachment=CT,i.setProjectAttachments=$T,i.setProjectFile=JT,i.setProjectFiles=XT,i.setProjects=yI,i.setRehydrated=kF,i.setTeam=HI,i.setTeamMembership=vI,i.setTeamMemberships=VI,i.setTeams=KI,i.setTokens=YP,i.setUploadUrl=Lh,i.setUser=VS,i.setUsers=vS,i.shallowEqual=LO,i.slugify=nP,i.spacesToDashesLower=iP,i.teamMembershipReducer=DI,i.teamMembershipSlice=zn,i.teamReducer=eO,i.teamSlice=Bn,i.toFileNameSafeString=sP,i.toUuidArray=C,i.toUuidIdRecord=tP,i.truncate=aP,i.updateAsset=qr,i.updateAssetAttachment=Fa,i.updateAssetAttachments=ga,i.updateAssetProcedure=Zc,i.updateAssetProcedureStep=br,i.updateAssetProcedureStepFieldValues=or,i.updateAssetProcedureStepFieldValuesAttachment=Xd,i.updateAssetProcedureStepFieldValuesAttachments=Qd,i.updateAssetProcedureStepFieldValuesMany=hr,i.updateAssetProcedureStepFields=$d,i.updateAssetProcedureStepFieldsAttachment=bd,i.updateAssetProcedureStepFieldsAttachments=_d,i.updateAssetProcedureStepFieldsMany=Ud,i.updateAssetProcedureSteps=_r,i.updateAssetProcedureType=ud,i.updateAssetProcedureTypeAttachment=Da,i.updateAssetProcedureTypeAttachments=Ca,i.updateAssetProcedureTypeFieldValues=Cc,i.updateAssetProcedureTypeFieldValuesAttachment=gc,i.updateAssetProcedureTypeFieldValuesAttachments=bc,i.updateAssetProcedureTypeFieldValuesMany=$c,i.updateAssetProcedureTypeFields=oc,i.updateAssetProcedureTypeFieldsAttachment=Xa,i.updateAssetProcedureTypeFieldsAttachments=Qa,i.updateAssetProcedureTypeFieldsMany=hc,i.updateAssetProcedureTypes=ld,i.updateAssetProcedures=Jc,i.updateAssetStage=hu,i.updateAssetStageCompletion=Xr,i.updateAssetStageCompletions=Qr,i.updateAssetStages=mu,i.updateAssetType=yo,i.updateAssetTypeAttachment=gu,i.updateAssetTypeAttachments=bu,i.updateAssetTypeFieldValues=bl,i.updateAssetTypeFieldValuesAttachment=ol,i.updateAssetTypeFieldValuesAttachments=hl,i.updateAssetTypeFieldValuesMany=_l,i.updateAssetTypeFields=Qu,i.updateAssetTypeFieldsAttachment=Cu,i.updateAssetTypeFieldsAttachments=$u,i.updateAssetTypeFieldsMany=xu,i.updateAssetTypeIdentifier=$l,i.updateAssetTypeIdentifierValue=xl,i.updateAssetTypeIdentifierValues=eo,i.updateAssetTypeIdentifiers=Ul,i.updateAssetTypeStatus=Ro,i.updateAssetTypeStatuses=wo,i.updateAssetTypes=po,i.updateAssets=Dr,i.updateCategories=Ko,i.updateCategory=Ho,i.updateConversation=Aa,i.updateConversations=mP,i.updateDocument=Sh,i.updateDocumentAttachment=nh,i.updateDocumentAttachments=ah,i.updateDocuments=Th,i.updateEmailDomain=Vh,i.updateEmailDomains=zh,i.updateForm=Zm,i.updateFormIdentifier=Xh,i.updateFormIdentifierValue=om,i.updateFormIdentifierValues=hm,i.updateFormIdentifiers=Qh,i.updateFormRevision=Dm,i.updateFormRevisionAttachment=bm,i.updateFormRevisionAttachments=_m,i.updateFormRevisions=Cm,i.updateFormSubmission=Iy,i.updateFormSubmissionAttachment=ry,i.updateFormSubmissionAttachments=uy,i.updateFormSubmissions=Oy,i.updateForms=Jm,i.updateGeoImage=By,i.updateGeoImages=jy,i.updateIssue=Yp,i.updateIssueAssociation=Ky,i.updateIssueAssociations=Wy,i.updateIssueAttachment=rp,i.updateIssueAttachments=up,i.updateIssueComment=qp,i.updateIssueCommentAttachment=Pp,i.updateIssueCommentAttachments=Fp,i.updateIssueComments=Dp,i.updateIssueType=Qf,i.updateIssueTypeAttachment=rA,i.updateIssueTypeAttachments=uA,i.updateIssueTypeFieldValues=qA,i.updateIssueTypeFieldValuesAttachment=lf,i.updateIssueTypeFieldValuesAttachments=of,i.updateIssueTypeFieldValuesMany=DA,i.updateIssueTypeFields=JA,i.updateIssueTypeFieldsAttachment=PA,i.updateIssueTypeFieldsAttachments=FA,i.updateIssueTypeFieldsMany=XA,i.updateIssueTypeIdentifier=gf,i.updateIssueTypeIdentifierValue=Cf,i.updateIssueTypeIdentifierValues=$f,i.updateIssueTypeIdentifiers=bf,i.updateIssueTypeStatus=hS,i.updateIssueTypeStatuses=mS,i.updateIssueTypes=xf,i.updateIssueUpdate=FS,i.updateIssueUpdates=gS,i.updateIssues=Zp,i.updateOrganization=dT,i.updateOrganizationAccess=KS,i.updateOrganizationAccesses=WS,i.updateOrganizations=cT,i.updateProject=TI,i.updateProjectAccess=MT,i.updateProjectAccesses=RT,i.updateProjectAttachment=UT,i.updateProjectAttachments=kT,i.updateProjectFile=eI,i.updateProjectFiles=tI,i.updateProjects=SI,i.updateTeam=WI,i.updateTeamMembership=zI,i.updateTeamMemberships=BI,i.updateTeams=YI,i.updateUser=jS,i.updateUsers=BS,i.useSelectorBuilder=UO,i.useSelectorFactory=kO,i.userReducer=DS,i.userSlice=Tn,i.uuidObj=R,i.uuidObjSortFn=Yt,i.uuidSortFn=ft,i.versioningReducer=sO,i.versioningSlice=tO,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { lruMemoize } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const restructureSelectorArgs: <TState, TArgs extends any[], TRet>(selector: (state: TState, ...args: TArgs) => TRet) => (...args: TArgs) => (state: TState) => TRet;
|
|
3
3
|
export declare const createShallowEqualSelector: import('reselect').CreateSelectorFunction<typeof lruMemoize, typeof import('reselect').weakMapMemoize, any>;
|
|
4
4
|
export declare const createDeepEqualSelector: import('reselect').CreateSelectorFunction<typeof lruMemoize, typeof import('reselect').weakMapMemoize, any>;
|