@zeroin.earth/appwrite-graphql 22.4.1 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +572 -47
- package/dist/index.cjs +173 -255
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7919 -8877
- package/dist/index.d.ts +7919 -8877
- package/dist/index.js +173 -255
- package/dist/index.js.map +1 -1
- package/package.json +56 -27
- package/react-native/index.cjs +173 -255
- package/react-native/index.d.cts +7919 -8877
package/react-native/index.cjs
CHANGED
|
@@ -1,37 +1,15 @@
|
|
|
1
|
-
'use strict';var jotai=require('jotai'),graphql=require('graphql'),appwrite=require('react-native-appwrite'),reactQuery=require('@tanstack/react-query'),utils=require('jotai/utils'),immer=require('immer');var Qa=Object.create;var tn=Object.defineProperty;var Ga=Object.getOwnPropertyDescriptor;var Oa=Object.getOwnPropertyNames;var Ka=Object.getPrototypeOf,Ba=Object.prototype.hasOwnProperty;var Se=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var Ja=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Oa(n))!Ba.call(e,t)&&t!==r&&tn(e,t,{get:()=>n[t],enumerable:!(i=Ga(n,t))||i.enumerable});return e};var w=(e,n,r)=>(r=e!=null?Qa(Ka(e)):{},Ja(tn(r,"default",{value:e,enumerable:true}),e));var ca=Se(v=>{var he=Symbol.for("react.transitional.element"),li=Symbol.for("react.portal"),mi=Symbol.for("react.fragment"),ci=Symbol.for("react.strict_mode"),pi=Symbol.for("react.profiler"),yi=Symbol.for("react.consumer"),ki=Symbol.for("react.context"),fi=Symbol.for("react.forward_ref"),gi=Symbol.for("react.suspense"),Si=Symbol.for("react.memo"),oa=Symbol.for("react.lazy"),na=Symbol.iterator;function bi(e){return e===null||typeof e!="object"?null:(e=na&&e[na]||e["@@iterator"],typeof e=="function"?e:null)}var sa={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ua=Object.assign,da={};function K(e,n,r){this.props=e,this.context=n,this.refs=da,this.updater=r||sa;}K.prototype.isReactComponent={};K.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState");};K.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate");};function la(){}la.prototype=K.prototype;function xe(e,n,r){this.props=e,this.context=n,this.refs=da,this.updater=r||sa;}var Te=xe.prototype=new la;Te.constructor=xe;ua(Te,K.prototype);Te.isPureReactComponent=true;var ta=Array.isArray,T={H:null,A:null,T:null,S:null,V:null},ma=Object.prototype.hasOwnProperty;function Ce(e,n,r,i,t,s){return r=s.ref,{$$typeof:he,type:e,key:n,ref:r!==void 0?r:null,props:s}}function vi(e,n){return Ce(e.type,n,void 0,void 0,void 0,e.props)}function Ae(e){return typeof e=="object"&&e!==null&&e.$$typeof===he}function Ii(e){var n={"=":"=0",":":"=2"};return "$"+e.replace(/[=:]/g,function(r){return n[r]})}var aa=/\/+/g;function Me(e,n){return typeof e=="object"&&e!==null&&e.key!=null?Ii(""+e.key):n.toString(36)}function ia(){}function Ni(e){switch(e.status){case "fulfilled":return e.value;case "rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ia,ia):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n);},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n);})),e.status){case "fulfilled":return e.value;case "rejected":throw e.reason}}throw e}function O(e,n,r,i,t){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=false;if(e===null)l=true;else switch(s){case "bigint":case "string":case "number":l=true;break;case "object":switch(e.$$typeof){case he:case li:l=true;break;case oa:return l=e._init,O(l(e._payload),n,r,i,t)}}if(l)return t=t(e),l=i===""?"."+Me(e,0):i,ta(t)?(r="",l!=null&&(r=l.replace(aa,"$&/")+"/"),O(t,n,r,"",function(I){return I})):t!=null&&(Ae(t)&&(t=vi(t,r+(t.key==null||e&&e.key===t.key?"":(""+t.key).replace(aa,"$&/")+"/")+l)),n.push(t)),1;l=0;var p=i===""?".":i+":";if(ta(e))for(var y=0;y<e.length;y++)i=e[y],s=p+Me(i,y),l+=O(i,n,r,s,t);else if(y=bi(e),typeof y=="function")for(e=y.call(e),y=0;!(i=e.next()).done;)i=i.value,s=p+Me(i,y++),l+=O(i,n,r,s,t);else if(s==="object"){if(typeof e.then=="function")return O(Ni(e),n,r,i,t);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return l}function oe(e,n,r){if(e==null)return e;var i=[],t=0;return O(e,i,"","",function(s){return n.call(r,s,t++)}),i}function Di(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r);},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r);}),e._status===-1&&(e._status=0,e._result=n);}if(e._status===1)return e._result.default;throw e._result}var ra=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e);};function $i(){}v.Children={map:oe,forEach:function(e,n,r){oe(e,function(){n.apply(this,arguments);},r);},count:function(e){var n=0;return oe(e,function(){n++;}),n},toArray:function(e){return oe(e,function(n){return n})||[]},only:function(e){if(!Ae(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};v.Component=K;v.Fragment=mi;v.Profiler=pi;v.PureComponent=xe;v.StrictMode=ci;v.Suspense=gi;v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T;v.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}};v.cache=function(e){return function(){return e.apply(null,arguments)}};v.cloneElement=function(e,n,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=ua({},e.props),t=e.key,s=void 0;if(n!=null)for(l in n.ref!==void 0&&(s=void 0),n.key!==void 0&&(t=""+n.key),n)!ma.call(n,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&n.ref===void 0||(i[l]=n[l]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var p=Array(l),y=0;y<l;y++)p[y]=arguments[y+2];i.children=p;}return Ce(e.type,t,void 0,void 0,s,i)};v.createContext=function(e){return e={$$typeof:ki,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:yi,_context:e},e};v.createElement=function(e,n,r){var i,t={},s=null;if(n!=null)for(i in n.key!==void 0&&(s=""+n.key),n)ma.call(n,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(t[i]=n[i]);var l=arguments.length-2;if(l===1)t.children=r;else if(1<l){for(var p=Array(l),y=0;y<l;y++)p[y]=arguments[y+2];t.children=p;}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)t[i]===void 0&&(t[i]=l[i]);return Ce(e,s,void 0,void 0,null,t)};v.createRef=function(){return {current:null}};v.forwardRef=function(e){return {$$typeof:fi,render:e}};v.isValidElement=Ae;v.lazy=function(e){return {$$typeof:oa,_payload:{_status:-1,_result:e},_init:Di}};v.memo=function(e,n){return {$$typeof:Si,type:e,compare:n===void 0?null:n}};v.startTransition=function(e){var n=T.T,r={};T.T=r;try{var i=e(),t=T.S;t!==null&&t(r,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then($i,ra);}catch(s){ra(s);}finally{T.T=n;}};v.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()};v.use=function(e){return T.H.use(e)};v.useActionState=function(e,n,r){return T.H.useActionState(e,n,r)};v.useCallback=function(e,n){return T.H.useCallback(e,n)};v.useContext=function(e){return T.H.useContext(e)};v.useDebugValue=function(){};v.useDeferredValue=function(e,n){return T.H.useDeferredValue(e,n)};v.useEffect=function(e,n,r){var i=T.H;if(typeof r=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,n)};v.useId=function(){return T.H.useId()};v.useImperativeHandle=function(e,n,r){return T.H.useImperativeHandle(e,n,r)};v.useInsertionEffect=function(e,n){return T.H.useInsertionEffect(e,n)};v.useLayoutEffect=function(e,n){return T.H.useLayoutEffect(e,n)};v.useMemo=function(e,n){return T.H.useMemo(e,n)};v.useOptimistic=function(e,n){return T.H.useOptimistic(e,n)};v.useReducer=function(e,n,r){return T.H.useReducer(e,n,r)};v.useRef=function(e){return T.H.useRef(e)};v.useState=function(e){return T.H.useState(e)};v.useSyncExternalStore=function(e,n,r){return T.H.useSyncExternalStore(e,n,r)};v.useTransition=function(){return T.H.useTransition()};v.version="19.1.0";});var pa=Se((b,se)=>{process.env.NODE_ENV!=="production"&&(function(){function e(a,d){Object.defineProperty(i.prototype,a,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",d[0],d[1]);}});}function n(a){return a===null||typeof a!="object"?null:(a=Ge&&a[Ge]||a["@@iterator"],typeof a=="function"?a:null)}function r(a,d){a=(a=a.constructor)&&(a.displayName||a.name)||"ReactClass";var k=a+"."+d;Oe[k]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",d,a),Oe[k]=true);}function i(a,d,k){this.props=a,this.context=d,this.refs=fe,this.updater=k||Ke;}function t(){}function s(a,d,k){this.props=a,this.context=d,this.refs=fe,this.updater=k||Ke;}function l(a){return ""+a}function p(a){try{l(a);var d=!1;}catch{d=true;}if(d){d=console;var k=d.error,f=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return k.call(d,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",f),l(a)}}function y(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Ea?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case pe:return "Fragment";case Le:return "Profiler";case Fe:return "StrictMode";case Qe:return "Suspense";case Va:return "SuspenseList";case Ua:return "Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Ee:return "Portal";case Pe:return (a.displayName||"Context")+".Provider";case ye:return (a._context.displayName||"Context")+".Consumer";case Re:var d=a.render;return a=a.displayName,a||(a=d.displayName||d.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ke:return d=a.displayName||null,d!==null?d:y(a.type)||"Memo";case X:d=a._payload,a=a._init;try{return y(a(d))}catch{}}return null}function I(a){if(a===pe)return "<>";if(typeof a=="object"&&a!==null&&a.$$typeof===X)return "<...>";try{var d=y(a);return d?"<"+d+">":"<...>"}catch{return "<...>"}}function h(){var a=$.A;return a===null?null:a.getOwner()}function A(){return Error("react-stack-top-frame")}function C(a){if(ee.call(a,"key")){var d=Object.getOwnPropertyDescriptor(a,"key").get;if(d&&d.isReactWarning)return false}return a.key!==void 0}function F(a,d){function k(){We||(We=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",d));}k.isReactWarning=true,Object.defineProperty(a,"key",{get:k,configurable:true});}function L(){var a=y(this.type);return Ye[a]||(Ye[a]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),a=this.props.ref,a!==void 0?a:null}function P(a,d,k,f,S,M,N,x){return k=M.ref,a={$$typeof:ce,type:a,key:d,props:M,_owner:S},(k!==void 0?k:null)!==null?Object.defineProperty(a,"ref",{enumerable:false,get:L}):Object.defineProperty(a,"ref",{enumerable:false,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(a,"_debugStack",{configurable:false,enumerable:false,writable:true,value:N}),Object.defineProperty(a,"_debugTask",{configurable:false,enumerable:false,writable:true,value:x}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function ue(a,d){return d=P(a.type,d,void 0,void 0,a._owner,a.props,a._debugStack,a._debugTask),a._store&&(d._store.validated=a._store.validated),d}function U(a){return typeof a=="object"&&a!==null&&a.$$typeof===ce}function Ve(a){var d={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(k){return d[k]})}function de(a,d){return typeof a=="object"&&a!==null&&a.key!=null?(p(a.key),Ve(""+a.key)):d.toString(36)}function Ue(){}function _a(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(Ue,Ue):(a.status="pending",a.then(function(d){a.status==="pending"&&(a.status="fulfilled",a.value=d);},function(d){a.status==="pending"&&(a.status="rejected",a.reason=d);})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason}}throw a}function R(a,d,k,f,S){var M=typeof a;(M==="undefined"||M==="boolean")&&(a=null);var N=false;if(a===null)N=true;else switch(M){case "bigint":case "string":case "number":N=true;break;case "object":switch(a.$$typeof){case ce:case Ee:N=true;break;case X:return N=a._init,R(N(a._payload),d,k,f,S)}}if(N){N=a,S=S(N);var x=f===""?"."+de(N,0):f;return Je(S)?(k="",x!=null&&(k=x.replace(Xe,"$&/")+"/"),R(S,d,k,"",function(E){return E})):S!=null&&(U(S)&&(S.key!=null&&(N&&N.key===S.key||p(S.key)),k=ue(S,k+(S.key==null||N&&N.key===S.key?"":(""+S.key).replace(Xe,"$&/")+"/")+x),f!==""&&N!=null&&U(N)&&N.key==null&&N._store&&!N._store.validated&&(k._store.validated=2),S=k),d.push(S)),1}if(N=0,x=f===""?".":f+":",Je(a))for(var D=0;D<a.length;D++)f=a[D],M=x+de(f,D),N+=R(f,d,k,M,S);else if(D=n(a),typeof D=="function")for(D===a.entries&&(He||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),He=true),a=D.call(a),D=0;!(f=a.next()).done;)f=f.value,M=x+de(f,D++),N+=R(f,d,k,M,S);else if(M==="object"){if(typeof a.then=="function")return R(_a(a),d,k,f,S);throw d=String(a),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}return N}function z(a,d,k){if(a==null)return a;var f=[],S=0;return R(a,f,"","",function(M){return d.call(k,M,S++)}),f}function qa(a){if(a._status===-1){var d=a._result;d=d(),d.then(function(k){(a._status===0||a._status===-1)&&(a._status=1,a._result=k);},function(k){(a._status===0||a._status===-1)&&(a._status=2,a._result=k);}),a._status===-1&&(a._status=0,a._result=d);}if(a._status===1)return d=a._result,d===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
Your code should look like:
|
|
4
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
-
|
|
6
|
-
Did you accidentally put curly braces around the import?`,d),"default"in d||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
-
|
|
8
|
-
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,d),d.default;throw a._result}function _(){var a=$.H;return a===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
-
2. You might be breaking the Rules of Hooks
|
|
12
|
-
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function wa(){}function Y(a){if(ne===null)try{var d=("require"+Math.random()).slice(0,7);ne=(se&&se[d]).call(se,"timers").setImmediate;}catch{ne=function(f){en===false&&(en=true,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var S=new MessageChannel;S.port1.onmessage=f,S.port2.postMessage(void 0);};}return ne(a)}function B(a){return 1<a.length&&typeof AggregateError=="function"?new AggregateError(a):a[0]}function H(a,d){d!==te-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),te=d;}function le(a,d,k){var f=$.actQueue;if(f!==null)if(f.length!==0)try{me(f),Y(function(){return le(a,d,k)});return}catch(S){$.thrownErrors.push(S);}else $.actQueue=null;0<$.thrownErrors.length?(f=B($.thrownErrors),$.thrownErrors.length=0,k(f)):d(a);}function me(a){if(!ge){ge=true;var d=0;try{for(;d<a.length;d++){var k=a[d];do{$.didUsePromise=!1;var f=k(!1);if(f!==null){if($.didUsePromise){a[d]=k,a.splice(0,d);return}k=f;}else break}while(!0)}a.length=0;}catch(S){a.splice(0,d+1),$.thrownErrors.push(S);}finally{ge=false;}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for("react.transitional.element"),Ee=Symbol.for("react.portal"),pe=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),Le=Symbol.for("react.profiler"),ye=Symbol.for("react.consumer"),Pe=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),Va=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),Ua=Symbol.for("react.activity"),Ge=Symbol.iterator,Oe={},Ke={isMounted:function(){return false},enqueueForceUpdate:function(a){r(a,"forceUpdate");},enqueueReplaceState:function(a){r(a,"replaceState");},enqueueSetState:function(a){r(a,"setState");}},Be=Object.assign,fe={};Object.freeze(fe),i.prototype.isReactComponent={},i.prototype.setState=function(a,d){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,d,"setState");},i.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};var V={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Z;for(Z in V)V.hasOwnProperty(Z)&&e(Z,V[Z]);t.prototype=i.prototype,V=s.prototype=new t,V.constructor=s,Be(V,i.prototype),V.isPureReactComponent=true;var Je=Array.isArray,Ea=Symbol.for("react.client.reference"),$={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:false,didScheduleLegacyUpdate:false,didUsePromise:false,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,je=console.createTask?console.createTask:function(){return null};V={"react-stack-bottom-frame":function(a){return a()}};var We,ze,Ye={},Fa=V["react-stack-bottom-frame"].bind(V,A)(),La=je(I(A)),He=false,Xe=/\/+/g,Ze=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var d=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(d))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a);},en=false,ne=null,te=0,ae=false,ge=false,nn=typeof queueMicrotask=="function"?function(a){queueMicrotask(function(){return queueMicrotask(a)});}:Y;V=Object.freeze({__proto__:null,c:function(a){return _().useMemoCache(a)}}),b.Children={map:z,forEach:function(a,d,k){z(a,function(){d.apply(this,arguments);},k);},count:function(a){var d=0;return z(a,function(){d++;}),d},toArray:function(a){return z(a,function(d){return d})||[]},only:function(a){if(!U(a))throw Error("React.Children.only expected to receive a single React element child.");return a}},b.Component=i,b.Fragment=pe,b.Profiler=Le,b.PureComponent=s,b.StrictMode=Fe,b.Suspense=Qe,b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,b.__COMPILER_RUNTIME=V,b.act=function(a){var d=$.actQueue,k=te;te++;var f=$.actQueue=d!==null?d:[],S=false;try{var M=a();}catch(D){$.thrownErrors.push(D);}if(0<$.thrownErrors.length)throw H(d,k),a=B($.thrownErrors),$.thrownErrors.length=0,a;if(M!==null&&typeof M=="object"&&typeof M.then=="function"){var N=M;return nn(function(){S||ae||(ae=true,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));}),{then:function(D,E){S=true,N.then(function(Q){if(H(d,k),k===0){try{me(f),Y(function(){return le(Q,D,E)});}catch(Ra){$.thrownErrors.push(Ra);}if(0<$.thrownErrors.length){var Pa=B($.thrownErrors);$.thrownErrors.length=0,E(Pa);}}else D(Q);},function(Q){H(d,k),0<$.thrownErrors.length&&(Q=B($.thrownErrors),$.thrownErrors.length=0),E(Q);});}}}var x=M;if(H(d,k),k===0&&(me(f),f.length!==0&&nn(function(){S||ae||(ae=true,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));}),$.actQueue=null),0<$.thrownErrors.length)throw a=B($.thrownErrors),$.thrownErrors.length=0,a;return {then:function(D,E){S=true,k===0?($.actQueue=f,Y(function(){return le(x,D,E)})):D(x);}}},b.cache=function(a){return function(){return a.apply(null,arguments)}},b.captureOwnerStack=function(){var a=$.getCurrentStack;return a===null?null:a()},b.cloneElement=function(a,d,k){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var f=Be({},a.props),S=a.key,M=a._owner;if(d!=null){var N;e:{if(ee.call(d,"ref")&&(N=Object.getOwnPropertyDescriptor(d,"ref").get)&&N.isReactWarning){N=false;break e}N=d.ref!==void 0;}N&&(M=h()),C(d)&&(p(d.key),S=""+d.key);for(x in d)!ee.call(d,x)||x==="key"||x==="__self"||x==="__source"||x==="ref"&&d.ref===void 0||(f[x]=d[x]);}var x=arguments.length-2;if(x===1)f.children=k;else if(1<x){N=Array(x);for(var D=0;D<x;D++)N[D]=arguments[D+2];f.children=N;}for(f=P(a.type,S,void 0,void 0,M,f,a._debugStack,a._debugTask),S=2;S<arguments.length;S++)M=arguments[S],U(M)&&M._store&&(M._store.validated=1);return f},b.createContext=function(a){return a={$$typeof:Pe,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:ye,_context:a},a._currentRenderer=null,a._currentRenderer2=null,a},b.createElement=function(a,d,k){for(var f=2;f<arguments.length;f++){var S=arguments[f];U(S)&&S._store&&(S._store.validated=1);}if(f={},S=null,d!=null)for(D in ze||!("__self"in d)||"key"in d||(ze=true,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),C(d)&&(p(d.key),S=""+d.key),d)ee.call(d,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(f[D]=d[D]);var M=arguments.length-2;if(M===1)f.children=k;else if(1<M){for(var N=Array(M),x=0;x<M;x++)N[x]=arguments[x+2];Object.freeze&&Object.freeze(N),f.children=N;}if(a&&a.defaultProps)for(D in M=a.defaultProps,M)f[D]===void 0&&(f[D]=M[D]);S&&F(f,typeof a=="function"?a.displayName||a.name||"Unknown":a);var D=1e4>$.recentlyCreatedOwnerStacks++;return P(a,S,void 0,void 0,h(),f,D?Error("react-stack-top-frame"):Fa,D?je(I(a)):La)},b.createRef=function(){var a={current:null};return Object.seal(a),a},b.forwardRef=function(a){a!=null&&a.$$typeof===ke?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof a!="function"?console.error("forwardRef requires a render function but was given %s.",a===null?"null":typeof a):a.length!==0&&a.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",a.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),a!=null&&a.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var d={$$typeof:Re,render:a},k;return Object.defineProperty(d,"displayName",{enumerable:false,configurable:true,get:function(){return k},set:function(f){k=f,a.name||a.displayName||(Object.defineProperty(a,"name",{value:f}),a.displayName=f);}}),d},b.isValidElement=U,b.lazy=function(a){return {$$typeof:X,_payload:{_status:-1,_result:a},_init:qa}},b.memo=function(a,d){a==null&&console.error("memo: The first argument must be a component. Instead received: %s",a===null?"null":typeof a),d={$$typeof:ke,type:a,compare:d===void 0?null:d};var k;return Object.defineProperty(d,"displayName",{enumerable:false,configurable:true,get:function(){return k},set:function(f){k=f,a.name||a.displayName||(Object.defineProperty(a,"name",{value:f}),a.displayName=f);}}),d},b.startTransition=function(a){var d=$.T,k={};$.T=k,k._updatedFibers=new Set;try{var f=a(),S=$.S;S!==null&&S(k,f),typeof f=="object"&&f!==null&&typeof f.then=="function"&&f.then(wa,Ze);}catch(M){Ze(M);}finally{d===null&&k._updatedFibers&&(a=k._updatedFibers.size,k._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),$.T=d;}},b.unstable_useCacheRefresh=function(){return _().useCacheRefresh()},b.use=function(a){return _().use(a)},b.useActionState=function(a,d,k){return _().useActionState(a,d,k)},b.useCallback=function(a,d){return _().useCallback(a,d)},b.useContext=function(a){var d=_();return a.$$typeof===ye&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),d.useContext(a)},b.useDebugValue=function(a,d){return _().useDebugValue(a,d)},b.useDeferredValue=function(a,d){return _().useDeferredValue(a,d)},b.useEffect=function(a,d,k){a==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var f=_();if(typeof k=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return f.useEffect(a,d)},b.useId=function(){return _().useId()},b.useImperativeHandle=function(a,d,k){return _().useImperativeHandle(a,d,k)},b.useInsertionEffect=function(a,d){return a==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useInsertionEffect(a,d)},b.useLayoutEffect=function(a,d){return a==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useLayoutEffect(a,d)},b.useMemo=function(a,d){return _().useMemo(a,d)},b.useOptimistic=function(a,d){return _().useOptimistic(a,d)},b.useReducer=function(a,d,k){return _().useReducer(a,d,k)},b.useRef=function(a){return _().useRef(a)},b.useState=function(a){return _().useState(a)},b.useSyncExternalStore=function(a,d,k){return _().useSyncExternalStore(a,d,k)},b.useTransition=function(){return _().useTransition()},b.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var q=Se((vd,_e)=>{process.env.NODE_ENV==="production"?_e.exports=ca():_e.exports=pa();});function ja(e,n){return n}var an={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Account_User"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},rn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Identity_Provider"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Identity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"provider"}}]}}]},on={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Account_User"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Account_User"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},sn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAnonymousSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateAnonymousSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},un={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phrase"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"phrase"},value:{kind:"Variable",name:{kind:"Name",value:"phrase"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},dn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},ln={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateJWT"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateJWT"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwt"}}]}}]}}]},mn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMagicURLToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phrase"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMagicURLToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}},{kind:"Argument",name:{kind:"Name",value:"phrase"},value:{kind:"Variable",name:{kind:"Name",value:"phrase"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},cn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"uri"}}]}}]}}]},pn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"factor"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaChallenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"factor"},value:{kind:"Variable",name:{kind:"Name",value:"factor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},kn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePhoneToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePhoneToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},fn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePhoneVerification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePhoneVerification"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},gn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePushTarget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"providerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreatePushTarget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetId"},value:{kind:"Variable",name:{kind:"Name",value:"targetId"}}},{kind:"Argument",name:{kind:"Name",value:"identifier"},value:{kind:"Variable",name:{kind:"Name",value:"identifier"}}},{kind:"Argument",name:{kind:"Name",value:"providerId"},value:{kind:"Variable",name:{kind:"Name",value:"providerId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"providerType"}},{kind:"Field",name:{kind:"Name",value:"identifier"}}]}}]}}]},Sn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},bn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDelete"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},vn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteIdentity"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identityId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteIdentity"},arguments:[{kind:"Argument",name:{kind:"Name",value:"identityId"},value:{kind:"Variable",name:{kind:"Name",value:"identityId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},In={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Nn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePushTarget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeletePushTarget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetId"},value:{kind:"Variable",name:{kind:"Name",value:"targetId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Dn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},$n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountDeleteSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Mn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},hn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPrefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetPrefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},xn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountGetSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},Tn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListIdentities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListIdentities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"identities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Identity_Provider"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Identity_Provider"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Identity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"provider"}}]}}]},Cn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListMfaFactors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListMfaFactors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totp"}},{kind:"Field",name:{kind:"Name",value:"phone"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},An={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListSessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sessions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"osName"}},{kind:"Field",name:{kind:"Name",value:"clientName"}}]}}]}}]}}]},_n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateEmailPasswordSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateEmailPasswordSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},qn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListLogs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountListLogs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"logs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"userEmail"}},{kind:"Field",name:{kind:"Name",value:"userName"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"ip"}},{kind:"Field",name:{kind:"Name",value:"time"}},{kind:"Field",name:{kind:"Name",value:"osCode"}},{kind:"Field",name:{kind:"Name",value:"osName"}},{kind:"Field",name:{kind:"Name",value:"osVersion"}},{kind:"Field",name:{kind:"Name",value:"clientType"}},{kind:"Field",name:{kind:"Name",value:"clientCode"}},{kind:"Field",name:{kind:"Name",value:"clientName"}},{kind:"Field",name:{kind:"Name",value:"clientVersion"}},{kind:"Field",name:{kind:"Name",value:"clientEngine"}},{kind:"Field",name:{kind:"Name",value:"clientEngineVersion"}},{kind:"Field",name:{kind:"Name",value:"deviceName"}},{kind:"Field",name:{kind:"Name",value:"deviceBrand"}},{kind:"Field",name:{kind:"Name",value:"deviceModel"}},{kind:"Field",name:{kind:"Name",value:"countryCode"}},{kind:"Field",name:{kind:"Name",value:"countryName"}}]}}]}}]}}]},wn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateRecovery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateRecovery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Vn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateRecovery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateRecovery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Un={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},En={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"VerifyEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountCreateVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Fn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateEmail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateEmail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}}]}}]}}]},Ln={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateEmailVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateEmailVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},Pn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMagicURLSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMagicURLSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},Rn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMFA"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mfa"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMFA"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mfa"},value:{kind:"Variable",name:{kind:"Name",value:"mfa"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},Qn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaAuthenticator"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaAuthenticator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mfa"}}]}}]}}]},Gn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"challengeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"otp"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaChallenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"challengeId"},value:{kind:"Variable",name:{kind:"Name",value:"challengeId"}}},{kind:"Argument",name:{kind:"Name",value:"otp"},value:{kind:"Variable",name:{kind:"Name",value:"otp"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},On={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateMfaRecoveryCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recoveryCodes"}}]}}]}}]},Kn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateName"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Bn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePassword"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"oldPassword"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePassword"},arguments:[{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}},{kind:"Argument",name:{kind:"Name",value:"oldPassword"},value:{kind:"Variable",name:{kind:"Name",value:"oldPassword"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Jn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhone"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhone"},arguments:[{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phone"}}]}}]}}]},jn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhoneSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhoneSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},Wn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePhoneVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePhoneVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expire"}}]}}]}}]},zn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePrefs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prefs"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Assoc"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePrefs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prefs"},value:{kind:"Variable",name:{kind:"Name",value:"prefs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},Yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePushTarget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identifier"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdatePushTarget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetId"},value:{kind:"Variable",name:{kind:"Name",value:"targetId"}}},{kind:"Argument",name:{kind:"Name",value:"identifier"},value:{kind:"Variable",name:{kind:"Name",value:"identifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"providerType"}},{kind:"Field",name:{kind:"Name",value:"identifier"}}]}}]}}]},Hn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sessionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sessionId"},value:{kind:"Variable",name:{kind:"Name",value:"sessionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"current"}}]}}]}}]},Xn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Zn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateVerification"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountUpdateVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secret"}},{kind:"Field",name:{kind:"Name",value:"expire"}},{kind:"Field",name:{kind:"Name",value:"userId"}}]}}]}}]},et={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesListDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},nt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Json"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesCreateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},tt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documents"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Json"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesCreateDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documents"},value:{kind:"Variable",name:{kind:"Name",value:"documents"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]}}]},at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"operations"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesCreateOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}},{kind:"Argument",name:{kind:"Name",value:"operations"},value:{kind:"Variable",name:{kind:"Name",value:"operations"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"operations"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}}]},it={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ttl"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesCreateTransaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ttl"},value:{kind:"Variable",name:{kind:"Name",value:"ttl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"operations"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}}]},rt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DecrementDocumentAttribute"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attribute"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"min"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesDecrementDocumentAttribute"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"attribute"},value:{kind:"Variable",name:{kind:"Name",value:"attribute"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}},{kind:"Argument",name:{kind:"Name",value:"min"},value:{kind:"Variable",name:{kind:"Name",value:"min"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesDeleteDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},st={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesDeleteDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]}}]},ut={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesDeleteTransaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesGetDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},lt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesGetTransaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"operations"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}}]},mt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"IncrementDocumentAttribute"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attribute"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"max"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesIncrementDocumentAttribute"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"attribute"},value:{kind:"Variable",name:{kind:"Name",value:"attribute"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}},{kind:"Argument",name:{kind:"Name",value:"max"},value:{kind:"Variable",name:{kind:"Name",value:"max"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListTransactions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesListTransactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"transactions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"operations"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}}]}}]},pt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NamedType",name:{kind:"Name",value:"Json"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpdateDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},yt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NamedType",name:{kind:"Name",value:"Json"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpdateDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]}}]},kt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTransaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"transactionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"commit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"rollback"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpdateTransaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transactionId"},value:{kind:"Variable",name:{kind:"Name",value:"transactionId"}}},{kind:"Argument",name:{kind:"Name",value:"commit"},value:{kind:"Variable",name:{kind:"Name",value:"commit"}}},{kind:"Argument",name:{kind:"Name",value:"rollback"},value:{kind:"Variable",name:{kind:"Name",value:"rollback"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"operations"}}]}}]}}]},ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpsertDocument"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Json"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpsertDocument"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documentId"},value:{kind:"Variable",name:{kind:"Name",value:"documentId"}}},{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]},gt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpsertDocuments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"databaseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"documents"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Json"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databasesUpsertDocuments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"databaseId"},value:{kind:"Variable",name:{kind:"Name",value:"databaseId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}},{kind:"Argument",name:{kind:"Name",value:"documents"},value:{kind:"Variable",name:{kind:"Name",value:"documents"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"documents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}}]}}]}}]}}]},St={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"body"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"async"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"method"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsCreateExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"body"},value:{kind:"Variable",name:{kind:"Name",value:"body"}}},{kind:"Argument",name:{kind:"Name",value:"async"},value:{kind:"Variable",name:{kind:"Name",value:"async"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"Variable",name:{kind:"Name",value:"method"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"responseStatusCode"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]},bt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFunctionExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"executionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsGetExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"executionId"},value:{kind:"Variable",name:{kind:"Name",value:"executionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"requestPath"}}]}}]}}]},vt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"executionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsGetExecution"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"executionId"},value:{kind:"Variable",name:{kind:"Name",value:"executionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"functionId"}},{kind:"Field",name:{kind:"Name",value:"trigger"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"requestMethod"}},{kind:"Field",name:{kind:"Name",value:"requestPath"}},{kind:"Field",name:{kind:"Name",value:"responseStatusCode"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]},It={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListExecutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"functionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"functionsListExecutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"functionId"},value:{kind:"Variable",name:{kind:"Name",value:"functionId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"executions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"functionId"}},{kind:"Field",name:{kind:"Name",value:"trigger"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"requestMethod"}},{kind:"Field",name:{kind:"Name",value:"requestPath"}},{kind:"Field",name:{kind:"Name",value:"responseStatusCode"}},{kind:"Field",name:{kind:"Name",value:"responseBody"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]}}]},Nt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLocale"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeGet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ip"}},{kind:"Field",name:{kind:"Name",value:"countryCode"}},{kind:"Field",name:{kind:"Name",value:"country"}},{kind:"Field",name:{kind:"Name",value:"continentCode"}},{kind:"Field",name:{kind:"Name",value:"continent"}},{kind:"Field",name:{kind:"Name",value:"eu"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]},Dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListLocaleCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"localeCodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},$t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListContinents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListContinents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"continents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}}]}}]}}]},Mt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCountries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListCountries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"countries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}}]}}]}}]},ht={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCountriesEU"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListCountriesEU"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"countries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}}]}}]}}]},xt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCountriesPhones"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListCountriesPhones"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"phones"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"countryCode"}},{kind:"Field",name:{kind:"Name",value:"countryName"}}]}}]}}]}}]},Tt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCurrencies"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListCurrencies"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"currencies"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"symbol"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"symbolNative"}},{kind:"Field",name:{kind:"Name",value:"decimalDigits"}},{kind:"Field",name:{kind:"Name",value:"rounding"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"namePlural"}}]}}]}}]}}]},Ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListLanguages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeListLanguages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"languages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"nativeName"}}]}}]}}]}}]},At={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bucketId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storageCreateFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bucketId"},value:{kind:"Variable",name:{kind:"Name",value:"bucketId"}}},{kind:"Argument",name:{kind:"Name",value:"fileId"},value:{kind:"Variable",name:{kind:"Name",value:"fileId"}}},{kind:"Argument",name:{kind:"Name",value:"file"},value:{kind:"Variable",name:{kind:"Name",value:"file"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"bucketId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"sizeOriginal"}}]}}]}}]},_t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bucketId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storageDeleteFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bucketId"},value:{kind:"Variable",name:{kind:"Name",value:"bucketId"}}},{kind:"Argument",name:{kind:"Name",value:"fileId"},value:{kind:"Variable",name:{kind:"Name",value:"fileId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},qt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bucketId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storageGetFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bucketId"},value:{kind:"Variable",name:{kind:"Name",value:"bucketId"}}},{kind:"Argument",name:{kind:"Name",value:"fileId"},value:{kind:"Variable",name:{kind:"Name",value:"fileId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"bucketId"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"_permissions"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"signature"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"sizeOriginal"}},{kind:"Field",name:{kind:"Name",value:"chunksTotal"}},{kind:"Field",name:{kind:"Name",value:"chunksUploaded"}}]}}]}}]},wt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListFiles"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bucketId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storageListFiles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bucketId"},value:{kind:"Variable",name:{kind:"Name",value:"bucketId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}},{kind:"Argument",name:{kind:"Name",value:"search"},value:{kind:"Variable",name:{kind:"Name",value:"search"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"files"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"bucketId"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"_permissions"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"signature"}},{kind:"Field",name:{kind:"Name",value:"mimeType"}},{kind:"Field",name:{kind:"Name",value:"sizeOriginal"}},{kind:"Field",name:{kind:"Name",value:"chunksTotal"}},{kind:"Field",name:{kind:"Name",value:"chunksUploaded"}}]}}]}}]}}]},Vt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bucketId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fileId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissions"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storageUpdateFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bucketId"},value:{kind:"Variable",name:{kind:"Name",value:"bucketId"}}},{kind:"Argument",name:{kind:"Name",value:"fileId"},value:{kind:"Variable",name:{kind:"Name",value:"fileId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"permissions"},value:{kind:"Variable",name:{kind:"Name",value:"permissions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"bucketId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"_permissions"}}]}}]}}]},Ut={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMembership"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"roles"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phone"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsCreateMembership"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"Variable",name:{kind:"Name",value:"roles"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"phone"},value:{kind:"Variable",name:{kind:"Name",value:"phone"}}},{kind:"Argument",name:{kind:"Name",value:"url"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"teamId"}},{kind:"Field",name:{kind:"Name",value:"roles"}},{kind:"Field",name:{kind:"Name",value:"confirm"}}]}}]}}]},Et={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateTeam"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"roles"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"Variable",name:{kind:"Name",value:"roles"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"total"}}]}}]}}]},Ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMembership"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"membershipId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsDeleteMembership"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"membershipId"},value:{kind:"Variable",name:{kind:"Name",value:"membershipId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Lt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteTeam"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},Pt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTeam"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsGet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]},Rt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMembership"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"membershipId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsGetMembership"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"membershipId"},value:{kind:"Variable",name:{kind:"Name",value:"membershipId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"userName"}},{kind:"Field",name:{kind:"Name",value:"userEmail"}},{kind:"Field",name:{kind:"Name",value:"teamId"}},{kind:"Field",name:{kind:"Name",value:"teamName"}},{kind:"Field",name:{kind:"Name",value:"invited"}},{kind:"Field",name:{kind:"Name",value:"joined"}},{kind:"Field",name:{kind:"Name",value:"confirm"}},{kind:"Field",name:{kind:"Name",value:"mfa"}},{kind:"Field",name:{kind:"Name",value:"roles"}}]}}]}}]},Qt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListMemberships"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsListMemberships"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}},{kind:"Argument",name:{kind:"Name",value:"search"},value:{kind:"Variable",name:{kind:"Name",value:"search"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"memberships"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"userName"}},{kind:"Field",name:{kind:"Name",value:"userEmail"}},{kind:"Field",name:{kind:"Name",value:"teamId"}},{kind:"Field",name:{kind:"Name",value:"teamName"}},{kind:"Field",name:{kind:"Name",value:"invited"}},{kind:"Field",name:{kind:"Name",value:"joined"}},{kind:"Field",name:{kind:"Name",value:"confirm"}},{kind:"Field",name:{kind:"Name",value:"mfa"}},{kind:"Field",name:{kind:"Name",value:"roles"}}]}}]}}]}}]},Gt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetTeamPrefs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsGetPrefs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]},Ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListTeams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queries"},value:{kind:"Variable",name:{kind:"Name",value:"queries"}}},{kind:"Argument",name:{kind:"Name",value:"search"},value:{kind:"Variable",name:{kind:"Name",value:"search"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"teams"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"_createdAt"}},{kind:"Field",name:{kind:"Name",value:"_updatedAt"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"prefs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]}}]}}]},Kt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMembership"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"membershipId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"roles"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsUpdateMembership"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"membershipId"},value:{kind:"Variable",name:{kind:"Name",value:"membershipId"}}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"Variable",name:{kind:"Name",value:"roles"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"roles"}}]}}]}}]},Bt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMembershipStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"membershipId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"secret"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsUpdateMembershipStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"membershipId"},value:{kind:"Variable",name:{kind:"Name",value:"membershipId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"secret"},value:{kind:"Variable",name:{kind:"Name",value:"secret"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"confirm"}}]}}]}}]},Jt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTeamName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsUpdateName"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"_id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},jt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateTeamPrefs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"teamId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prefs"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Assoc"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"teamsUpdatePrefs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"teamId"},value:{kind:"Variable",name:{kind:"Name",value:"teamId"}}},{kind:"Argument",name:{kind:"Name",value:"prefs"},value:{kind:"Variable",name:{kind:"Name",value:"prefs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"}}]}}]}}]};var za={"\n fragment Account_User on User {\n _id\n name\n email\n prefs {\n data\n }\n }\n":an,"\n fragment Identity_Provider on Identity {\n _id\n userId\n provider\n }\n":rn,"\n query AccountGet {\n accountGet {\n ...Account_User\n }\n }\n":on,"\n mutation CreateAnonymousSession {\n accountCreateAnonymousSession {\n _id\n expire\n current\n }\n }\n":sn,"\n mutation CreateEmailToken($userId: String!, $email: String!, $phrase: Boolean) {\n accountCreateEmailToken(userId: $userId, email: $email, phrase: $phrase) {\n expire\n }\n }\n":un,"\n mutation CreateEmailVerification($url: String!) {\n accountCreateEmailVerification(url: $url) {\n _id\n userId\n secret\n expire\n }\n }\n":dn,"\n mutation CreateJWT {\n accountCreateJWT {\n jwt\n }\n }\n":ln,"\n mutation CreateMagicURLToken($userId: String!, $email: String!, $url: String, $phrase: Boolean) {\n accountCreateMagicURLToken(userId: $userId, email: $email, url: $url, phrase: $phrase) {\n expire\n }\n }\n":mn,"\n mutation CreateMfaAuthenticator($type: String!) {\n accountCreateMfaAuthenticator(type: $type) {\n secret\n uri\n }\n }\n":cn,"\n mutation CreateMfaChallenge($factor: String!) {\n accountCreateMfaChallenge(factor: $factor) {\n userId\n expire\n }\n }\n":pn,"\n mutation CreateMfaRecoveryCodes {\n accountCreateMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":yn,"\n mutation CreatePhoneToken($userId: String!, $phone: String!) {\n accountCreatePhoneToken(userId: $userId, phone: $phone) {\n expire\n }\n }\n":kn,"\n mutation CreatePhoneVerification {\n accountCreatePhoneVerification {\n expire\n }\n }\n":fn,"\n mutation CreatePushTarget($targetId: String!, $identifier: String!, $providerId: String) {\n accountCreatePushTarget(targetId: $targetId, identifier: $identifier, providerId: $providerId) {\n _id\n userId\n providerType\n identifier\n }\n }\n":gn,"\n mutation CreateSession($userId: String!, $secret: String!) {\n accountCreateSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":Sn,"\n mutation DeleteAccount {\n accountDelete {\n status\n }\n }\n":bn,"\n mutation DeleteIdentity($identityId: String!) {\n accountDeleteIdentity(identityId: $identityId) {\n status\n }\n }\n":vn,"\n mutation DeleteMfaAuthenticator($type: String!) {\n accountDeleteMfaAuthenticator(type: $type) {\n status\n }\n }\n":In,"\n mutation DeletePushTarget($targetId: String!) {\n accountDeletePushTarget(targetId: $targetId) {\n status\n }\n }\n":Nn,"\n mutation DeleteSession($sessionId: String!) {\n accountDeleteSession(sessionId: $sessionId) {\n status\n }\n }\n":Dn,"\n mutation DeleteSessions {\n accountDeleteSessions {\n status\n }\n }\n":$n,"\n query GetMfaRecoveryCodes {\n accountGetMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":Mn,"\n query GetPrefs {\n accountGetPrefs {\n data\n }\n }\n":hn,"\n query GetSession($sessionId: String!) {\n accountGetSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n":xn,"\n query ListIdentities {\n accountListIdentities {\n total\n identities {\n ...Identity_Provider\n }\n }\n }\n":Tn,"\n query ListMfaFactors {\n accountListMfaFactors {\n totp\n phone\n email\n }\n }\n":Cn,"\n query ListSessions {\n accountListSessions {\n sessions {\n _id\n _createdAt\n osName\n clientName\n }\n }\n }\n":An,"\n mutation CreateEmailPasswordSession($email: String!, $password: String!) {\n accountCreateEmailPasswordSession(email: $email, password: $password) {\n userId\n expire\n current\n }\n }\n":_n,"\n query ListLogs($queries: [String!]) {\n accountListLogs(queries: $queries) {\n total\n logs {\n event\n userId\n userEmail\n userName\n mode\n ip\n time\n osCode\n osName\n osVersion\n clientType\n clientCode\n clientName\n clientVersion\n clientEngine\n clientEngineVersion\n deviceName\n deviceBrand\n deviceModel\n countryCode\n countryName\n }\n }\n }\n":qn,"\n mutation CreateRecovery($email: String!, $url: String!) {\n accountCreateRecovery(email: $email, url: $url) {\n expire\n }\n }\n":wn,"\n mutation UpdateRecovery($userId: String!, $secret: String!, $password: String!) {\n accountUpdateRecovery(userId: $userId, secret: $secret, password: $password) {\n expire\n }\n }\n":Vn,"\n mutation CreateAccount($userId: String!, $name: String, $email: String!, $password: String!) {\n accountCreate(userId: $userId, name: $name, email: $email, password: $password) {\n name\n email\n }\n }\n":Un,"\n mutation VerifyEmail($url: String!) {\n accountCreateVerification(url: $url) {\n expire\n }\n }\n":En,"\n mutation UpdateEmail($email: String!, $password: String!) {\n accountUpdateEmail(email: $email, password: $password) {\n name\n email\n }\n }\n":Fn,"\n mutation UpdateEmailVerification($userId: String!, $secret: String!) {\n accountUpdateEmailVerification(userId: $userId, secret: $secret) {\n _id\n userId\n secret\n expire\n }\n }\n":Ln,"\n mutation UpdateMagicURLSession($userId: String!, $secret: String!) {\n accountUpdateMagicURLSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":Pn,"\n mutation UpdateMFA($mfa: Boolean!) {\n accountUpdateMFA(mfa: $mfa) {\n mfa\n }\n }\n":Rn,"\n mutation UpdateMfaAuthenticator($type: String!, $otp: String!) {\n accountUpdateMfaAuthenticator(type: $type, otp: $otp) {\n mfa\n }\n }\n":Qn,"\n mutation UpdateMfaChallenge($challengeId: String!, $otp: String!) {\n accountUpdateMfaChallenge(challengeId: $challengeId, otp: $otp) {\n status\n }\n }\n":Gn,"\n mutation UpdateMfaRecoveryCodes {\n accountUpdateMfaRecoveryCodes {\n recoveryCodes\n }\n }\n":On,"\n mutation UpdateName($name: String!) {\n accountUpdateName(name: $name) {\n name\n }\n }\n":Kn,"\n mutation UpdatePassword($password: String!, $oldPassword: String!) {\n accountUpdatePassword(password: $password, oldPassword: $oldPassword) {\n status\n }\n }\n":Bn,"\n mutation UpdatePhone($phone: String!, $password: String!) {\n accountUpdatePhone(phone: $phone, password: $password) {\n phone\n }\n }\n":Jn,"\n mutation UpdatePhoneSession($userId: String!, $secret: String!) {\n accountUpdatePhoneSession(userId: $userId, secret: $secret) {\n userId\n expire\n current\n }\n }\n":jn,"\n mutation UpdatePhoneVerification($userId: String!, $secret: String!) {\n accountUpdatePhoneVerification(userId: $userId, secret: $secret) {\n expire\n }\n }\n":Wn,"\n mutation UpdatePrefs($prefs: Assoc!) {\n accountUpdatePrefs(prefs: $prefs) {\n prefs {\n data\n }\n }\n }\n":zn,"\n mutation UpdatePushTarget($targetId: String!, $identifier: String!) {\n accountUpdatePushTarget(targetId: $targetId, identifier: $identifier) {\n _id\n userId\n providerType\n identifier\n }\n }\n":Yn,"\n mutation UpdateSession($sessionId: String!) {\n accountUpdateSession(sessionId: $sessionId) {\n userId\n expire\n current\n }\n }\n":Hn,"\n mutation UpdateStatus {\n accountUpdateStatus {\n _id\n status\n }\n }\n":Xn,"\n mutation UpdateVerification($userId: String!, $secret: String!) {\n accountUpdateVerification(userId: $userId, secret: $secret) {\n secret\n expire\n userId\n }\n }\n":Zn,"\n query ListDocuments($databaseId: String!, $collectionId: String!, $queries: [String!]) {\n databasesListDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n queries: $queries\n ) {\n total\n documents {\n _id\n data\n }\n }\n }\n":et,"\n mutation CreateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: Json!\n $permissions: [String!]\n ) {\n databasesCreateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":nt,"\n mutation CreateDocuments(\n $databaseId: String!\n $collectionId: String!\n $documents: [Json!]!\n ) {\n databasesCreateDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n documents: $documents\n ) {\n total\n documents {\n _id\n }\n }\n }\n":tt,"\n mutation CreateOperations($transactionId: String!, $operations: [String!]) {\n databasesCreateOperations(transactionId: $transactionId, operations: $operations) {\n _id\n status\n operations\n expiresAt\n }\n }\n":at,"\n mutation CreateTransaction($ttl: Int) {\n databasesCreateTransaction(ttl: $ttl) {\n _id\n status\n operations\n expiresAt\n }\n }\n":it,"\n mutation DecrementDocumentAttribute(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $attribute: String!\n $value: Int\n $min: Int\n ) {\n databasesDecrementDocumentAttribute(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n attribute: $attribute\n value: $value\n min: $min\n ) {\n _id\n data\n }\n }\n":rt,"\n mutation DeleteDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesDeleteDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n status\n }\n }\n":ot,"\n mutation DeleteDocuments(\n $databaseId: String!\n $collectionId: String!\n $queries: [String!]\n ) {\n databasesDeleteDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n queries: $queries\n ) {\n total\n documents {\n _id\n }\n }\n }\n":st,"\n mutation DeleteTransaction($transactionId: String!) {\n databasesDeleteTransaction(transactionId: $transactionId) {\n status\n }\n }\n":ut,"\n query GetDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {\n databasesGetDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n ) {\n _id\n data\n }\n }\n":dt,"\n query GetTransaction($transactionId: String!) {\n databasesGetTransaction(transactionId: $transactionId) {\n _id\n _createdAt\n _updatedAt\n status\n operations\n expiresAt\n }\n }\n":lt,"\n mutation IncrementDocumentAttribute(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $attribute: String!\n $value: Int\n $max: Int\n ) {\n databasesIncrementDocumentAttribute(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n attribute: $attribute\n value: $value\n max: $max\n ) {\n _id\n data\n }\n }\n":mt,"\n query ListTransactions($queries: String) {\n databasesListTransactions(queries: $queries) {\n total\n transactions {\n _id\n _createdAt\n _updatedAt\n status\n operations\n expiresAt\n }\n }\n }\n":ct,"\n mutation UpdateDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: Json\n $permissions: [String!]\n ) {\n databasesUpdateDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":pt,"\n mutation UpdateDocuments(\n $databaseId: String!\n $collectionId: String!\n $data: Json\n $queries: [String!]\n ) {\n databasesUpdateDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n data: $data\n queries: $queries\n ) {\n total\n documents {\n _id\n }\n }\n }\n":yt,"\n mutation UpdateTransaction($transactionId: String!, $commit: Boolean, $rollback: Boolean) {\n databasesUpdateTransaction(\n transactionId: $transactionId\n commit: $commit\n rollback: $rollback\n ) {\n _id\n status\n operations\n }\n }\n":kt,"\n mutation UpsertDocument(\n $databaseId: String!\n $collectionId: String!\n $documentId: String!\n $data: Json!\n $permissions: [String!]\n ) {\n databasesUpsertDocument(\n databaseId: $databaseId\n collectionId: $collectionId\n documentId: $documentId\n data: $data\n permissions: $permissions\n ) {\n _id\n }\n }\n":ft,"\n mutation UpsertDocuments(\n $databaseId: String!\n $collectionId: String!\n $documents: [Json!]!\n ) {\n databasesUpsertDocuments(\n databaseId: $databaseId\n collectionId: $collectionId\n documents: $documents\n ) {\n total\n documents {\n _id\n }\n }\n }\n":gt,"\n mutation CreateExecution(\n $functionId: String!\n $body: String\n $async: Boolean\n $path: String\n $method: String # $headers: Json\n ) {\n functionsCreateExecution(\n functionId: $functionId\n body: $body\n async: $async\n path: $path\n method: $method # headers: $headers\n ) {\n _id\n status\n responseStatusCode\n responseBody\n errors\n duration\n }\n }\n":St,"\n query GetFunctionExecution($functionId: String!, $executionId: String!) {\n functionsGetExecution(functionId: $functionId, executionId: $executionId) {\n status\n errors\n duration\n responseBody\n requestPath\n }\n }\n":bt,"\n query GetExecution($functionId: String!, $executionId: String!) {\n functionsGetExecution(functionId: $functionId, executionId: $executionId) {\n _id\n _createdAt\n _updatedAt\n functionId\n trigger\n status\n requestMethod\n requestPath\n responseStatusCode\n responseBody\n errors\n duration\n }\n }\n":vt,"\n query ListExecutions($functionId: String!, $queries: [String!]) {\n functionsListExecutions(functionId: $functionId, queries: $queries) {\n total\n executions {\n _id\n _createdAt\n _updatedAt\n functionId\n trigger\n status\n requestMethod\n requestPath\n responseStatusCode\n responseBody\n errors\n duration\n }\n }\n }\n":It,"\n query GetLocale {\n localeGet {\n ip\n countryCode\n country\n continentCode\n continent\n eu\n currency\n }\n }\n":Nt,"\n query ListLocaleCodes {\n localeListCodes {\n total\n localeCodes {\n code\n name\n }\n }\n }\n":Dt,"\n query ListContinents {\n localeListContinents {\n total\n continents {\n name\n code\n }\n }\n }\n":$t,"\n query ListCountries {\n localeListCountries {\n total\n countries {\n name\n code\n }\n }\n }\n":Mt,"\n query ListCountriesEU {\n localeListCountriesEU {\n total\n countries {\n name\n code\n }\n }\n }\n":ht,"\n query ListCountriesPhones {\n localeListCountriesPhones {\n total\n phones {\n code\n countryCode\n countryName\n }\n }\n }\n":xt,"\n query ListCurrencies {\n localeListCurrencies {\n total\n currencies {\n symbol\n name\n symbolNative\n decimalDigits\n rounding\n code\n namePlural\n }\n }\n }\n":Tt,"\n query ListLanguages {\n localeListLanguages {\n total\n languages {\n name\n code\n nativeName\n }\n }\n }\n":Ct,"\n mutation CreateFile(\n $bucketId: String!\n $fileId: String!\n $file: String!\n $permissions: [String!]\n ) {\n storageCreateFile(\n bucketId: $bucketId\n fileId: $fileId\n file: $file\n permissions: $permissions\n ) {\n _id\n bucketId\n name\n mimeType\n sizeOriginal\n }\n }\n":At,"\n mutation DeleteFile($bucketId: String!, $fileId: String!) {\n storageDeleteFile(bucketId: $bucketId, fileId: $fileId) {\n status\n }\n }\n":_t,"\n query GetFile($bucketId: String!, $fileId: String!) {\n storageGetFile(bucketId: $bucketId, fileId: $fileId) {\n _id\n bucketId\n _createdAt\n _updatedAt\n _permissions\n name\n signature\n mimeType\n sizeOriginal\n chunksTotal\n chunksUploaded\n }\n }\n":qt,"\n query ListFiles($bucketId: String!, $queries: [String!], $search: String) {\n storageListFiles(bucketId: $bucketId, queries: $queries, search: $search) {\n total\n files {\n _id\n bucketId\n _createdAt\n _updatedAt\n _permissions\n name\n signature\n mimeType\n sizeOriginal\n chunksTotal\n chunksUploaded\n }\n }\n }\n":wt,"\n mutation UpdateFile(\n $bucketId: String!\n $fileId: String!\n $name: String\n $permissions: [String!]\n ) {\n storageUpdateFile(\n bucketId: $bucketId\n fileId: $fileId\n name: $name\n permissions: $permissions\n ) {\n _id\n bucketId\n name\n _permissions\n }\n }\n":Vt,"\n mutation CreateMembership(\n $teamId: String!\n $roles: [String!]!\n $email: String\n $userId: String\n $phone: String\n $url: String\n $name: String\n ) {\n teamsCreateMembership(\n teamId: $teamId\n roles: $roles\n email: $email\n userId: $userId\n phone: $phone\n url: $url\n name: $name\n ) {\n _id\n userId\n teamId\n roles\n confirm\n }\n }\n":Ut,"\n mutation CreateTeam($teamId: String!, $name: String!, $roles: [String!]) {\n teamsCreate(teamId: $teamId, name: $name, roles: $roles) {\n _id\n name\n total\n }\n }\n":Et,"\n mutation DeleteMembership($teamId: String!, $membershipId: String!) {\n teamsDeleteMembership(teamId: $teamId, membershipId: $membershipId) {\n status\n }\n }\n":Ft,"\n mutation DeleteTeam($teamId: String!) {\n teamsDelete(teamId: $teamId) {\n status\n }\n }\n":Lt,"\n query GetTeam($teamId: String!) {\n teamsGet(teamId: $teamId) {\n _id\n _createdAt\n _updatedAt\n name\n total\n prefs {\n data\n }\n }\n }\n":Pt,"\n query GetMembership($teamId: String!, $membershipId: String!) {\n teamsGetMembership(teamId: $teamId, membershipId: $membershipId) {\n _id\n _createdAt\n _updatedAt\n userId\n userName\n userEmail\n teamId\n teamName\n invited\n joined\n confirm\n mfa\n roles\n }\n }\n":Rt,"\n query ListMemberships($teamId: String!, $queries: [String!], $search: String) {\n teamsListMemberships(teamId: $teamId, queries: $queries, search: $search) {\n total\n memberships {\n _id\n _createdAt\n _updatedAt\n userId\n userName\n userEmail\n teamId\n teamName\n invited\n joined\n confirm\n mfa\n roles\n }\n }\n }\n":Qt,"\n query GetTeamPrefs($teamId: String!) {\n teamsGetPrefs(teamId: $teamId) {\n data\n }\n }\n":Gt,"\n query ListTeams($queries: [String!], $search: String) {\n teamsList(queries: $queries, search: $search) {\n total\n teams {\n _id\n _createdAt\n _updatedAt\n name\n total\n prefs {\n data\n }\n }\n }\n }\n":Ot,"\n mutation UpdateMembership($teamId: String!, $membershipId: String!, $roles: [String!]!) {\n teamsUpdateMembership(teamId: $teamId, membershipId: $membershipId, roles: $roles) {\n _id\n roles\n }\n }\n":Kt,"\n mutation UpdateMembershipStatus(\n $teamId: String!\n $membershipId: String!\n $userId: String!\n $secret: String!\n ) {\n teamsUpdateMembershipStatus(\n teamId: $teamId\n membershipId: $membershipId\n userId: $userId\n secret: $secret\n ) {\n _id\n confirm\n }\n }\n":Bt,"\n mutation UpdateTeamName($teamId: String!, $name: String!) {\n teamsUpdateName(teamId: $teamId, name: $name) {\n _id\n name\n }\n }\n":Jt,"\n mutation UpdateTeamPrefs($teamId: String!, $prefs: Assoc!) {\n teamsUpdatePrefs(teamId: $teamId, prefs: $prefs) {\n data\n }\n }\n":jt};function u(e){return za[e]??{}}var Wt=u(`
|
|
14
|
-
fragment Account_User on User {
|
|
15
|
-
_id
|
|
16
|
-
name
|
|
17
|
-
email
|
|
18
|
-
prefs {
|
|
19
|
-
data
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`),zt=u(`
|
|
23
|
-
fragment Identity_Provider on Identity {
|
|
24
|
-
_id
|
|
25
|
-
userId
|
|
26
|
-
provider
|
|
27
|
-
}
|
|
28
|
-
`);var Ha=process.env.APPWRITE_ENDPOINT??process.env.EXPO_PUBLIC_APPWRITE_URL??process.env.NEXT_PUBLIC_APPWRITE_URL??"http://localhost/v1",Xa=process.env.APPWRITE_PROJECT_ID??process.env.EXPO_PUBLIC_APPWRITE_PROJECT_ID??process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID??"[PROJECT_ID]",G=new appwrite.Client;G.setEndpoint(Ha).setProject(Xa);var ea=e=>({client:e.client,query:async({query:n,variables:r})=>{let{data:i,errors:t}=await e.query({query:{query:graphql.print(n),variables:r}});return {data:i,errors:t}},mutation:async({query:n,variables:r})=>{let{data:i,errors:t}=await e.mutation({query:{query:graphql.print(n),variables:r}});return {data:i,errors:t}}}),Xt=jotai.atom({account:new appwrite.Account(G),avatars:new appwrite.Avatars(G),realtime:new appwrite.Realtime(G),storage:new appwrite.Storage(G),graphql:ea(new appwrite.Graphql(G))}),ie=jotai.atom(e=>e(Xt),(e,n,{endpoint:r,projectId:i})=>{let t=new appwrite.Client;t.setEndpoint(r).setProject(i);let s=new appwrite.Account(t),l=new appwrite.Avatars(t),p=new appwrite.Realtime(t),y=new appwrite.Storage(t),I=new appwrite.Graphql(t);n(Xt,{account:s,avatars:l,realtime:p,storage:y,graphql:ea(I)});});function o(){let{account:e,avatars:n,realtime:r,storage:i,graphql:t}=jotai.useAtomValue(ie);return {avatars:n,realtime:r,storage:i,account:e,graphql:t}}var ti=new reactQuery.QueryClient,re=jotai.atom(ti);function c(){return jotai.useAtomValue(re)}function m(e){let n=c();return reactQuery.useMutation(e,n)}function g(e){let n=c();return reactQuery.useQuery(e,n)}function J(e){let n=c(),r=reactQuery.useQuery({...e,enabled:false},n);return {run:r.refetch,query:r}}function j(e){let n=c();return reactQuery.useSuspenseQuery(e,n)}function di({endpoint:e,projectId:n,queryClient:r,children:i}){let t=[[ie,{endpoint:e,projectId:n}]];return r&&t.push([re,r]),utils.useHydrateAtoms(t),i}var W=w(q());var xi=u(`
|
|
1
|
+
'use strict';var O=require('react'),reactQuery=require('@tanstack/react-query'),reactQueryDevtools=require('@tanstack/react-query-devtools'),reactQueryPersistClient=require('@tanstack/react-query-persist-client'),graphql=require('graphql'),appwrite=require('react-native-appwrite'),gql_tada=require('gql.tada'),immer=require('immer'),queryAsyncStoragePersister=require('@tanstack/query-async-storage-persister');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var O__namespace=/*#__PURE__*/_interopNamespace(O);var I=O__namespace.createContext(null),at=new reactQuery.QueryClient;function it({client:t,queryClient:e,persister:s,onCacheRestored:r,children:o}){let n=e??at;return s?O__namespace.createElement(reactQueryPersistClient.PersistQueryClientProvider,{client:n,persistOptions:{persister:s,dehydrateOptions:{shouldDehydrateMutation:u=>u.state.isPaused,shouldDehydrateQuery:u=>u.state.status==="success"}},onSuccess:()=>{n.resumePausedMutations(),r?.();}},O__namespace.createElement(I.Provider,{value:t},o),O__namespace.createElement(reactQueryDevtools.ReactQueryDevtools,{initialIsOpen:false})):O__namespace.createElement(reactQuery.QueryClientProvider,{client:n},O__namespace.createElement(I.Provider,{value:t},o),O__namespace.createElement(reactQueryDevtools.ReactQueryDevtools,{initialIsOpen:false}))}function i(){let t=O.useContext(I);if(!t)throw new Error("Wrap your app in <AppwriteProvider>");return t}function m(){let t=O.useContext(reactQuery.QueryClientContext);if(!t)throw new Error("Wrap your app in <QueryClientProvider>");return t}function p(t){let e=m();return reactQuery.useMutation(t,e)}function d(t){let e=m();return reactQuery.useQuery(t,e)}function Q(t){let e=m(),s=reactQuery.useQuery({...t,enabled:false},e);return {run:s.refetch,query:s}}function S(t){let e=m();return reactQuery.useSuspenseQuery(t,e)}var dt=t=>({client:t.client,query:async({query:e,variables:s})=>{let{data:r,errors:o}=await t.query({query:{query:graphql.print(e),variables:s}});return {data:r,errors:o}},mutation:async({query:e,variables:s})=>{let{data:r,errors:o}=await t.mutation({query:{query:graphql.print(e),variables:s}});return {data:r,errors:o}}});function V({endpoint:t,projectId:e}){let s=new appwrite.Client;return s.setEndpoint(t).setProject(e),{client:s,account:new appwrite.Account(s),avatars:new appwrite.Avatars(s),realtime:new appwrite.Realtime(s),storage:new appwrite.Storage(s),graphql:dt(new appwrite.Graphql(s)),databases:new appwrite.Databases(s),functions:new appwrite.Functions(s),locale:new appwrite.Locale(s),messaging:new appwrite.Messaging(s),tablesDB:new appwrite.TablesDB(s),teams:new appwrite.Teams(s)}}var a=class t{keys=["appwrite"];_type;constructor(){}static create(...e){let s=new t;return s.keys.push(...e),s}static account(){return t.create("account")}static databases(){return t.create("databases")}static database(e){return t.create("databases",e)}static tablesDB(e){return t.create("tablesDB",e)}static buckets(){return t.create("buckets")}static bucket(e){return t.create("buckets",e)}static functions(){return t.create("functions")}static function(e){return t.create("functions",e)}static teams(){return t.create("teams")}static team(e){return t.create("teams",e)}static locale(){return t.create("locale")}static messaging(){return t.create("messaging")}jwt(){return this.keys.push("jwt"),this}anonymous(){return this.keys.push("anonymous"),this}emailToken(){return this.keys.push("emailToken"),this}emailVerification(){return this.keys.push("emailVerification"),this}magicUrl(){return this.keys.push("magicUrl"),this}mfaAuthenticator(){return this.keys.push("mfaAuthenticator"),this}mfaChallenge(){return this.keys.push("mfaChallenge"),this}mfaCodes(){return this.keys.push("mfaCodes"),this}oauth2Token(){return this.keys.push("oauth2Token"),this}phoneToken(){return this.keys.push("phoneToken"),this}phoneVerification(){return this.keys.push("phoneVerification"),this}pushTarget(){return this.keys.push("pushTarget"),this}identity(){return this.keys.push("identity"),this}prefs(){return this.keys.push("prefs"),this}login(){return this.keys.push("login"),this}signUp(){return this.keys.push("signUp"),this}name(){return this.keys.push("name"),this}email(){return this.keys.push("email"),this}phone(){return this.keys.push("phone"),this}password(){return this.keys.push("password"),this}recovery(){return this.keys.push("recovery"),this}mfa(){return this.keys.push("mfa"),this}status(){return this.keys.push("status"),this}logs(){return this.keys.push("logs"),this}verification(){return this.keys.push("verification"),this}session(e){return this.keys.push("sessions"),e&&this.keys.push(e),this}sessions(){return [...this.keys,"sessions"]}identities(){return [...this.keys,"identities"]}mfaFactors(){return [...this.keys,"mfaFactors"]}collections(){return this.keys.push("collections"),this}collection(e){return this.keys.push("collections",e),this}transactions(){return this.keys.push("transactions"),this}transaction(e){return this.keys.push("transactions",e),this}documents(){return this.keys.push("documents"),this}document(e){return this.keys.push("documents",e),this}operations(){return this.keys.push("operations"),this}table(e){return this.keys.push("table",e),this}rows(){return this.keys.push("rows"),this}row(e){return this.keys.push("row",e),this}files(){return this.keys.push("files"),this}file(e){return this.keys.push("files",e),this}executions(){return this.keys.push("executions"),this}execution(e){return this.keys.push("executions",e),this}teamName(){return this.keys.push("name"),this}teamPrefs(){return this.keys.push("prefs"),this}memberships(){return this.keys.push("memberships"),this}membership(e){return this.keys.push("memberships",e),this}membershipStatus(){return this.keys.push("membershipStatus"),this}continents(){return [...this.keys,"continents"]}countries(){return [...this.keys,"countries"]}countriesEU(){return [...this.keys,"countriesEU"]}countriesPhones(){return [...this.keys,"countriesPhones"]}currencies(){return [...this.keys,"currencies"]}languages(){return [...this.keys,"languages"]}codes(){return [...this.keys,"codes"]}subscriber(){return this.keys.push("subscriber"),this}create(){return [...this.keys,"create"]}upsert(){return [...this.keys,"upsert"]}update(){return [...this.keys,"update"]}delete(){return [...this.keys,"delete"]}key(){return [...this.keys]}};var gt=gql_tada.graphql(`
|
|
29
2
|
query AccountGet {
|
|
30
3
|
accountGet {
|
|
31
|
-
|
|
4
|
+
_id
|
|
5
|
+
name
|
|
6
|
+
email
|
|
7
|
+
prefs {
|
|
8
|
+
data
|
|
9
|
+
}
|
|
32
10
|
}
|
|
33
11
|
}
|
|
34
|
-
`);function
|
|
12
|
+
`);function $(t){return {queryKey:a.account().key(),queryFn:async()=>{let{data:e,errors:s}=await t.graphql.query({query:gt});if(s)throw s;return e.accountGet},retry:false}}function xt(){let t=i(),e=m(),[s,r]=O.useState(false),o=Q(Ee(t));return O.useEffect(()=>{if(!s)return;let n=Ie(t.realtime,e);return ()=>{n.then(u=>u.close());}},[s,t.realtime,e]),{...o,run:()=>(r(true),o.run())}}function At(t={}){let e=i(),s=m(),r=d({...Ee(e),...t});return O.useEffect(()=>{let o=Ie(e.realtime,s);return ()=>{o.then(n=>n.close());}},[e.realtime,s]),r}function Ee(t){return $(t)}function Ie(t,e){return t.subscribe(appwrite.Channel.account(),s=>{if(s.events.some(o=>o.endsWith("prefs"))){e.setQueryData(a.account().key(),o=>immer.produce(o,n=>{n&&(n.prefs=immer.castDraft(s.payload.prefs));}));return}e.setQueryData(a.account().key(),s.payload);})}var Kt=gql_tada.graphql(`
|
|
35
13
|
mutation CreateAnonymousSession {
|
|
36
14
|
accountCreateAnonymousSession {
|
|
37
15
|
_id
|
|
@@ -39,57 +17,58 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
39
17
|
current
|
|
40
18
|
}
|
|
41
19
|
}
|
|
42
|
-
`);function
|
|
20
|
+
`);function Ot(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().anonymous().create(),mutationFn:async()=>{let{data:r,errors:o}=await t.mutation({query:Kt});if(o)throw o;return r.accountCreateAnonymousSession},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().anonymous().create()});}})}}var Tt=gql_tada.graphql(`
|
|
43
21
|
mutation CreateEmailToken($userId: String!, $email: String!, $phrase: Boolean) {
|
|
44
22
|
accountCreateEmailToken(userId: $userId, email: $email, phrase: $phrase) {
|
|
45
23
|
expire
|
|
46
24
|
}
|
|
47
25
|
}
|
|
48
|
-
`);function
|
|
26
|
+
`);function kt(){let{graphql:t}=i();return {...p({mutationKey:a.account().emailToken().create(),mutationFn:async({userId:s,email:r,phrase:o})=>{let{data:n,errors:u}=await t.mutation({query:Tt,variables:{userId:s,email:r,phrase:o}});if(u)throw u;return n.accountCreateEmailToken}})}}var ve=gql_tada.graphql(`
|
|
49
27
|
mutation CreateJWT {
|
|
50
28
|
accountCreateJWT {
|
|
51
29
|
jwt
|
|
52
30
|
}
|
|
53
31
|
}
|
|
54
|
-
`);function
|
|
32
|
+
`);function Et({gcTime:t=6e5}={}){let{graphql:e}=i(),s=m();return {...p({gcTime:t,mutationKey:a.account().jwt().create(),mutationFn:async()=>{let{data:o,errors:n}=await e.mutation({query:ve});if(n)throw n;return o.accountCreateJWT},onSuccess:o=>{e.client.setJWT(o.jwt),s.setQueryData(a.account().jwt().create(),o.jwt,{updatedAt:Date.now()});}})}}function It({gcTime:t=6e5}={}){let{graphql:e}=i();return {...S({gcTime:t,queryKey:a.account().jwt().create(),queryFn:async()=>{let{data:r,errors:o}=await e.mutation({query:ve});if(o)throw o;return e.client.setJWT(r.accountCreateJWT.jwt),r.accountCreateJWT}})}}var Qt=gql_tada.graphql(`
|
|
55
33
|
mutation CreateMagicURLToken($userId: String!, $email: String!, $url: String, $phrase: Boolean) {
|
|
56
34
|
accountCreateMagicURLToken(userId: $userId, email: $email, url: $url, phrase: $phrase) {
|
|
57
35
|
expire
|
|
58
36
|
}
|
|
59
37
|
}
|
|
60
|
-
`);function
|
|
38
|
+
`);function Vt(){let{graphql:t}=i();return {...p({mutationKey:a.account().magicUrl().create(),mutationFn:async({userId:s,email:r,url:o,phrase:n})=>{let{data:u,errors:c}=await t.mutation({query:Qt,variables:{userId:s,email:r,url:o,phrase:n}});if(c)throw c;return u.accountCreateMagicURLToken}})}}var Mt=gql_tada.graphql(`
|
|
61
39
|
mutation CreateMfaAuthenticator($type: String!) {
|
|
62
40
|
accountCreateMfaAuthenticator(type: $type) {
|
|
63
41
|
secret
|
|
64
42
|
uri
|
|
65
43
|
}
|
|
66
44
|
}
|
|
67
|
-
`);function
|
|
45
|
+
`);function Pt(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().mfaAuthenticator().create(),mutationFn:async({type:r="totp"})=>{let{data:o,errors:n}=await t.mutation({query:Mt,variables:{type:r}});if(n)throw n;return o.accountCreateMfaAuthenticator},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().mfaAuthenticator().key()});}})}}var Ut=gql_tada.graphql(`
|
|
68
46
|
mutation CreateMfaChallenge($factor: String!) {
|
|
69
47
|
accountCreateMfaChallenge(factor: $factor) {
|
|
48
|
+
_id
|
|
70
49
|
userId
|
|
71
50
|
expire
|
|
72
51
|
}
|
|
73
52
|
}
|
|
74
|
-
`);function
|
|
53
|
+
`);function Lt(){let{graphql:t}=i();return {...p({mutationKey:a.account().mfaChallenge().create(),mutationFn:async({factor:s})=>{let{data:r,errors:o}=await t.mutation({query:Ut,variables:{factor:s}});if(o)throw o;return r.accountCreateMfaChallenge}})}}var Nt=gql_tada.graphql(`
|
|
75
54
|
mutation CreateMfaRecoveryCodes {
|
|
76
55
|
accountCreateMfaRecoveryCodes {
|
|
77
56
|
recoveryCodes
|
|
78
57
|
}
|
|
79
58
|
}
|
|
80
|
-
`);function
|
|
59
|
+
`);function Gt(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().mfaCodes().create(),mutationFn:async()=>{let{data:r,errors:o}=await t.mutation({query:Nt});if(o)throw o;return r.accountCreateMfaRecoveryCodes},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().mfaCodes().key()});}})}}function Bt(){let{account:t}=i();return {...p({mutationKey:a.account().oauth2Token().create(),mutationFn:async({provider:s,success:r,failure:o,scopes:n})=>t.createOAuth2Token({provider:s,success:r,failure:o,scopes:n})})}}var Jt=gql_tada.graphql(`
|
|
81
60
|
mutation CreatePhoneToken($userId: String!, $phone: String!) {
|
|
82
61
|
accountCreatePhoneToken(userId: $userId, phone: $phone) {
|
|
83
62
|
expire
|
|
84
63
|
}
|
|
85
64
|
}
|
|
86
|
-
`);function
|
|
65
|
+
`);function Wt(){let{graphql:t}=i();return {...p({mutationKey:a.account().phoneToken().create(),mutationFn:async({userId:s,phone:r})=>{let{data:o,errors:n}=await t.mutation({query:Jt,variables:{userId:s,phone:r}});if(n)throw n;return o.accountCreatePhoneToken}})}}var Ht=gql_tada.graphql(`
|
|
87
66
|
mutation CreatePhoneVerification {
|
|
88
67
|
accountCreatePhoneVerification {
|
|
89
68
|
expire
|
|
90
69
|
}
|
|
91
70
|
}
|
|
92
|
-
`);function
|
|
71
|
+
`);function Xt(){let{graphql:t}=i();return {...p({mutationKey:a.account().phoneVerification().create(),mutationFn:async()=>{let{data:s,errors:r}=await t.mutation({query:Ht});if(r)throw r;return s.accountCreatePhoneVerification}})}}var Zt=gql_tada.graphql(`
|
|
93
72
|
mutation CreatePushTarget($targetId: String!, $identifier: String!, $providerId: String) {
|
|
94
73
|
accountCreatePushTarget(targetId: $targetId, identifier: $identifier, providerId: $providerId) {
|
|
95
74
|
_id
|
|
@@ -98,7 +77,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
98
77
|
identifier
|
|
99
78
|
}
|
|
100
79
|
}
|
|
101
|
-
`);function
|
|
80
|
+
`);function er(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().pushTarget().create(),mutationFn:async({targetId:r,identifier:o,providerId:n})=>{let{data:u,errors:c}=await t.mutation({query:Zt,variables:{targetId:r,identifier:o,providerId:n}});if(c)throw c;return u.accountCreatePushTarget},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var rr=gql_tada.graphql(`
|
|
102
81
|
mutation CreateSession($userId: String!, $secret: String!) {
|
|
103
82
|
accountCreateSession(userId: $userId, secret: $secret) {
|
|
104
83
|
userId
|
|
@@ -106,13 +85,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
106
85
|
current
|
|
107
86
|
}
|
|
108
87
|
}
|
|
109
|
-
`);function
|
|
110
|
-
mutation DeleteAccount {
|
|
111
|
-
accountDelete {
|
|
112
|
-
status
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
`);function er(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async()=>{let{data:i,errors:t}=await e.mutation({query:Zi});if(t)throw t;return i?.accountDelete??{status:true}},onSuccess:()=>{n.clear();}})}}var nr=u(`
|
|
88
|
+
`);function or(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().session().create(),mutationFn:async({userId:r,secret:o})=>{let{data:n,errors:u}=await t.mutation({query:rr,variables:{userId:r,secret:o}});if(u)throw u;return n.accountCreateSession},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().sessions()});}})}}var nr=gql_tada.graphql(`
|
|
116
89
|
mutation CreateEmailVerification($url: String!) {
|
|
117
90
|
accountCreateEmailVerification(url: $url) {
|
|
118
91
|
_id
|
|
@@ -121,49 +94,49 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
121
94
|
expire
|
|
122
95
|
}
|
|
123
96
|
}
|
|
124
|
-
`);function
|
|
97
|
+
`);function ar(){let{graphql:t}=i();return {...p({mutationKey:a.account().emailVerification().create(),mutationFn:async({url:s})=>{let{data:r,errors:o}=await t.mutation({query:nr,variables:{url:s}});if(o)throw o;return r.accountCreateEmailVerification}})}}var ur=gql_tada.graphql(`
|
|
125
98
|
mutation DeleteIdentity($identityId: String!) {
|
|
126
99
|
accountDeleteIdentity(identityId: $identityId) {
|
|
127
100
|
status
|
|
128
101
|
}
|
|
129
102
|
}
|
|
130
|
-
`);function
|
|
103
|
+
`);function pr(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().identity().delete(),mutationFn:async({identityId:r})=>{let{data:o,errors:n}=await t.mutation({query:ur,variables:{identityId:r}});if(n)throw n;return o?.accountDeleteIdentity??{status:""}},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var mr=gql_tada.graphql(`
|
|
131
104
|
mutation DeleteMfaAuthenticator($type: String!) {
|
|
132
105
|
accountDeleteMfaAuthenticator(type: $type) {
|
|
133
106
|
status
|
|
134
107
|
}
|
|
135
108
|
}
|
|
136
|
-
`);function
|
|
109
|
+
`);function lr(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().mfaAuthenticator().delete(),mutationFn:async({type:r="totp"})=>{let{data:o,errors:n}=await t.mutation({query:mr,variables:{type:r}});if(n)throw n;return o?.accountDeleteMfaAuthenticator??{status:""}},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().mfaAuthenticator().key()});}})}}var fr=gql_tada.graphql(`
|
|
137
110
|
mutation DeletePushTarget($targetId: String!) {
|
|
138
111
|
accountDeletePushTarget(targetId: $targetId) {
|
|
139
112
|
status
|
|
140
113
|
}
|
|
141
114
|
}
|
|
142
|
-
`);function
|
|
115
|
+
`);function dr(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().pushTarget().delete(),mutationFn:async({targetId:r})=>{let{data:o,errors:n}=await t.mutation({query:fr,variables:{targetId:r}});if(n)throw n;return o?.accountDeletePushTarget??{status:""}},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var gr=gql_tada.graphql(`
|
|
143
116
|
mutation DeleteSession($sessionId: String!) {
|
|
144
117
|
accountDeleteSession(sessionId: $sessionId) {
|
|
145
118
|
status
|
|
146
119
|
}
|
|
147
120
|
}
|
|
148
|
-
`);function
|
|
121
|
+
`);function qr(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().session().delete(),mutationFn:async({sessionId:r})=>{let{data:o,errors:n}=await t.mutation({query:gr,variables:{sessionId:r}});if(n)throw n;return o?.accountDeleteSession??{status:""}},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().sessions()});}})}}var wr=gql_tada.graphql(`
|
|
149
122
|
mutation DeleteSessions {
|
|
150
123
|
accountDeleteSessions {
|
|
151
124
|
status
|
|
152
125
|
}
|
|
153
126
|
}
|
|
154
|
-
`);function
|
|
127
|
+
`);function Rr(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().session().delete(),mutationFn:async()=>{let{data:r,errors:o}=await t.mutation({query:wr});if(o)throw o;return r?.accountDeleteSessions??{status:""}},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().sessions()}),e.clear();}})}}var Ar=gql_tada.graphql(`
|
|
155
128
|
query GetMfaRecoveryCodes {
|
|
156
129
|
accountGetMfaRecoveryCodes {
|
|
157
130
|
recoveryCodes
|
|
158
131
|
}
|
|
159
132
|
}
|
|
160
|
-
`);function
|
|
133
|
+
`);function Cr(t={}){let{graphql:e}=i();return {...d({queryKey:a.account().mfaCodes().key(),queryFn:async()=>{let{data:r,errors:o}=await e.query({query:Ar});if(o)throw o;return r.accountGetMfaRecoveryCodes},...t})}}var Or=gql_tada.graphql(`
|
|
161
134
|
query GetPrefs {
|
|
162
135
|
accountGetPrefs {
|
|
163
136
|
data
|
|
164
137
|
}
|
|
165
138
|
}
|
|
166
|
-
`);function
|
|
139
|
+
`);function Sr(t={}){let{graphql:e}=i();return {...d({queryKey:a.account().prefs().key(),queryFn:async()=>{let{data:r,errors:o}=await e.query({query:Or});if(o)throw o;return r.accountGetPrefs},...t})}}var kr=gql_tada.graphql(`
|
|
167
140
|
query GetSession($sessionId: String!) {
|
|
168
141
|
accountGetSession(sessionId: $sessionId) {
|
|
169
142
|
userId
|
|
@@ -171,16 +144,18 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
171
144
|
current
|
|
172
145
|
}
|
|
173
146
|
}
|
|
174
|
-
`);function
|
|
147
|
+
`);function Dr({sessionId:t},e={}){let{graphql:s}=i();return d({queryKey:a.account().session(t).key(),queryFn:async()=>{let{data:o,errors:n}=await s.query({query:kr,variables:{sessionId:t}});if(n)throw n;return o.accountGetSession},...e})}var Ir=gql_tada.graphql(`
|
|
175
148
|
query ListIdentities {
|
|
176
149
|
accountListIdentities {
|
|
177
150
|
total
|
|
178
151
|
identities {
|
|
179
|
-
|
|
152
|
+
_id
|
|
153
|
+
userId
|
|
154
|
+
provider
|
|
180
155
|
}
|
|
181
156
|
}
|
|
182
157
|
}
|
|
183
|
-
`);function vr(){let{graphql:e}=
|
|
158
|
+
`);function vr(t={}){let{graphql:e}=i();return {...d({queryKey:a.account().identities(),queryFn:async()=>{let{data:r,errors:o}=await e.query({query:Ir});if(o)throw o;return r.accountListIdentities},...t})}}var Vr=gql_tada.graphql(`
|
|
184
159
|
query ListMfaFactors {
|
|
185
160
|
accountListMfaFactors {
|
|
186
161
|
totp
|
|
@@ -188,7 +163,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
188
163
|
email
|
|
189
164
|
}
|
|
190
165
|
}
|
|
191
|
-
`);function
|
|
166
|
+
`);function $r(t={}){let{graphql:e}=i();return {...d({queryKey:a.account().mfaFactors(),queryFn:async()=>{let{data:r,errors:o}=await e.query({query:Vr});if(o)throw o;return r.accountListMfaFactors},...t})}}var Pr=gql_tada.graphql(`
|
|
192
167
|
query ListSessions {
|
|
193
168
|
accountListSessions {
|
|
194
169
|
sessions {
|
|
@@ -199,7 +174,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
199
174
|
}
|
|
200
175
|
}
|
|
201
176
|
}
|
|
202
|
-
`);function
|
|
177
|
+
`);function Fr(t={}){let{graphql:e}=i();return {...d({queryKey:a.account().sessions(),queryFn:async()=>{let{data:r,errors:o}=await e.query({query:Pr});if(o)throw o;return r.accountListSessions},...t})}}var Lr=gql_tada.graphql(`
|
|
203
178
|
mutation CreateEmailPasswordSession($email: String!, $password: String!) {
|
|
204
179
|
accountCreateEmailPasswordSession(email: $email, password: $password) {
|
|
205
180
|
userId
|
|
@@ -207,13 +182,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
207
182
|
current
|
|
208
183
|
}
|
|
209
184
|
}
|
|
210
|
-
`);function
|
|
185
|
+
`);function _r(){let{account:t,graphql:e}=i(),s=m(),r=p({mutationKey:a.account().login().create(),mutationFn:async({email:n,password:u})=>{let{data:c,errors:l}=await e.mutation({query:Lr,variables:{email:n,password:u}});if(l)throw l;return c.accountCreateEmailPasswordSession},onSuccess:()=>{s.invalidateQueries({queryKey:a.account().key()}),s.invalidateQueries({queryKey:a.account().sessions()});}}),o=p({mutationFn:async({provider:n,success:u,failure:c})=>t.createOAuth2Session({provider:n,success:u,failure:c})});return {login:r,oAuthLogin:o}}var Gr=gql_tada.graphql(`
|
|
211
186
|
mutation DeleteSession($sessionId: String!) {
|
|
212
187
|
accountDeleteSession(sessionId: $sessionId) {
|
|
213
188
|
status
|
|
214
189
|
}
|
|
215
190
|
}
|
|
216
|
-
`);function
|
|
191
|
+
`);function Br(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().session().delete(),mutationFn:async({sessionId:r})=>{let{data:o,errors:n}=await t.mutation({query:Gr,variables:{sessionId:r}});if(n)throw n;return o?.accountDeleteSession??{status:""}},onSuccess:async()=>{e.clear();}})}}var Jr=gql_tada.graphql(`
|
|
217
192
|
query ListLogs($queries: [String!]) {
|
|
218
193
|
accountListLogs(queries: $queries) {
|
|
219
194
|
total
|
|
@@ -242,39 +217,39 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
242
217
|
}
|
|
243
218
|
}
|
|
244
219
|
}
|
|
245
|
-
`);function
|
|
220
|
+
`);function Wr({queries:t},e={}){let{graphql:s}=i();return {...d({queryKey:[...a.account().logs().key(),...t??[]],queryFn:async()=>{let{data:o,errors:n}=await s.query({query:Jr,variables:{queries:t}});if(n)throw n;return o.accountListLogs},...e})}}var Hr=gql_tada.graphql(`
|
|
246
221
|
mutation CreateRecovery($email: String!, $url: String!) {
|
|
247
222
|
accountCreateRecovery(email: $email, url: $url) {
|
|
248
223
|
expire
|
|
249
224
|
}
|
|
250
225
|
}
|
|
251
|
-
`);function
|
|
226
|
+
`);function Xr(){let{graphql:t}=i();return {...p({mutationKey:a.account().recovery().create(),mutationFn:async({email:s,url:r})=>{let{data:o,errors:n}=await t.mutation({query:Hr,variables:{email:s,url:r}});if(n)throw n;return o.accountCreateRecovery},onSuccess:async(s,r)=>{try{localStorage?.setItem("email",r.email);}catch(o){console.error("Could not save email to local storage. If you are using react-native, this is expected.",o);}}})}}var Zr=gql_tada.graphql(`
|
|
252
227
|
mutation UpdateRecovery($userId: String!, $secret: String!, $password: String!) {
|
|
253
228
|
accountUpdateRecovery(userId: $userId, secret: $secret, password: $password) {
|
|
254
229
|
expire
|
|
255
230
|
}
|
|
256
231
|
}
|
|
257
|
-
`);function
|
|
232
|
+
`);function eo(){let{graphql:t}=i();return {...p({mutationKey:a.account().recovery().update(),mutationFn:async({userId:s,secret:r,password:o})=>{let{data:n,errors:u}=await t.mutation({query:Zr,variables:{userId:s,secret:r,password:o}});if(u)throw u;return n.accountUpdateRecovery}})}}var to=gql_tada.graphql(`
|
|
258
233
|
mutation CreateAccount($userId: String!, $name: String, $email: String!, $password: String!) {
|
|
259
234
|
accountCreate(userId: $userId, name: $name, email: $email, password: $password) {
|
|
260
235
|
name
|
|
261
236
|
email
|
|
262
237
|
}
|
|
263
238
|
}
|
|
264
|
-
`),
|
|
239
|
+
`),ro=gql_tada.graphql(`
|
|
265
240
|
mutation VerifyEmail($url: String!) {
|
|
266
241
|
accountCreateVerification(url: $url) {
|
|
267
242
|
expire
|
|
268
243
|
}
|
|
269
244
|
}
|
|
270
|
-
`);function
|
|
245
|
+
`);function oo(){let{graphql:t}=i(),e=p({mutationKey:a.account().signUp().create(),mutationFn:async({userId:r,email:o,password:n,name:u})=>{let{data:c,errors:l}=await t.mutation({query:to,variables:{userId:r??appwrite.ID.unique(),name:u,email:o,password:n}});if(l)throw l;return c.accountCreate}}),s=p({mutationKey:a.account().emailVerification().create(),mutationFn:async({verifyUrl:r})=>{let{data:o,errors:n}=await t.mutation({query:ro,variables:{url:r}});if(n)throw n;return o.accountCreateVerification}});return {signUp:e,verifyEmail:s}}var M=gql_tada.graphql(`
|
|
271
246
|
mutation UpdateEmail($email: String!, $password: String!) {
|
|
272
247
|
accountUpdateEmail(email: $email, password: $password) {
|
|
273
248
|
name
|
|
274
249
|
email
|
|
275
250
|
}
|
|
276
251
|
}
|
|
277
|
-
`);function
|
|
252
|
+
`);function no(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().email().update(),mutationFn:async({email:r,password:o})=>{let{data:n,errors:u}=await t.mutation({query:M,variables:{email:r,password:o}});if(u)throw u;return n.accountUpdateEmail},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var io=gql_tada.graphql(`
|
|
278
253
|
mutation UpdateEmailVerification($userId: String!, $secret: String!) {
|
|
279
254
|
accountUpdateEmailVerification(userId: $userId, secret: $secret) {
|
|
280
255
|
_id
|
|
@@ -283,7 +258,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
283
258
|
expire
|
|
284
259
|
}
|
|
285
260
|
}
|
|
286
|
-
`);function
|
|
261
|
+
`);function uo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().emailVerification().update(),mutationFn:async({userId:r,secret:o})=>{let{data:n,errors:u}=await t.mutation({query:io,variables:{userId:r,secret:o}});if(u)throw u;return n.accountUpdateEmailVerification},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var co=gql_tada.graphql(`
|
|
287
262
|
mutation UpdateMagicURLSession($userId: String!, $secret: String!) {
|
|
288
263
|
accountUpdateMagicURLSession(userId: $userId, secret: $secret) {
|
|
289
264
|
userId
|
|
@@ -291,49 +266,52 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
291
266
|
current
|
|
292
267
|
}
|
|
293
268
|
}
|
|
294
|
-
`);function
|
|
269
|
+
`);function mo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().magicUrl().update(),mutationFn:async({userId:r,secret:o})=>{let{data:n,errors:u}=await t.mutation({query:co,variables:{userId:r,secret:o}});if(u)throw u;return n.accountUpdateMagicURLSession},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().sessions()});}})}}var yo=gql_tada.graphql(`
|
|
295
270
|
mutation UpdateMFA($mfa: Boolean!) {
|
|
296
271
|
accountUpdateMFA(mfa: $mfa) {
|
|
297
272
|
mfa
|
|
298
273
|
}
|
|
299
274
|
}
|
|
300
|
-
`);function
|
|
275
|
+
`);function fo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().mfa().update(),mutationFn:async({mfa:r})=>{let{data:o,errors:n}=await t.mutation({query:yo,variables:{mfa:r}});if(n)throw n;return o.accountUpdateMFA},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().mfaFactors()});}})}}var go=gql_tada.graphql(`
|
|
301
276
|
mutation UpdateMfaAuthenticator($type: String!, $otp: String!) {
|
|
302
277
|
accountUpdateMfaAuthenticator(type: $type, otp: $otp) {
|
|
303
278
|
mfa
|
|
304
279
|
}
|
|
305
280
|
}
|
|
306
|
-
`);function
|
|
281
|
+
`);function qo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().mfaAuthenticator().update(),mutationFn:async({type:r="totp",otp:o})=>{let{data:n,errors:u}=await t.mutation({query:go,variables:{type:r,otp:o}});if(u)throw u;return n.accountUpdateMfaAuthenticator},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().mfaFactors()});}})}}var wo=gql_tada.graphql(`
|
|
307
282
|
mutation UpdateMfaChallenge($challengeId: String!, $otp: String!) {
|
|
308
283
|
accountUpdateMfaChallenge(challengeId: $challengeId, otp: $otp) {
|
|
309
|
-
|
|
284
|
+
_id
|
|
285
|
+
userId
|
|
286
|
+
expire
|
|
287
|
+
current
|
|
310
288
|
}
|
|
311
289
|
}
|
|
312
|
-
`);function
|
|
290
|
+
`);function Ro(){let{graphql:t}=i();return {...p({mutationKey:a.account().mfaChallenge().update(),mutationFn:async({challengeId:s,otp:r})=>{let{data:o,errors:n}=await t.mutation({query:wo,variables:{challengeId:s,otp:r}});if(n)throw n;return o?.accountUpdateMfaChallenge??null}})}}var Ao=gql_tada.graphql(`
|
|
313
291
|
mutation UpdateMfaRecoveryCodes {
|
|
314
292
|
accountUpdateMfaRecoveryCodes {
|
|
315
293
|
recoveryCodes
|
|
316
294
|
}
|
|
317
295
|
}
|
|
318
|
-
`);function
|
|
296
|
+
`);function Co(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().mfaCodes().update(),mutationFn:async()=>{let{data:r,errors:o}=await t.mutation({query:Ao});if(o)throw o;return r.accountUpdateMfaRecoveryCodes},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().mfaCodes().key()});}})}}var P=gql_tada.graphql(`
|
|
319
297
|
mutation UpdateName($name: String!) {
|
|
320
298
|
accountUpdateName(name: $name) {
|
|
321
299
|
name
|
|
322
300
|
}
|
|
323
301
|
}
|
|
324
|
-
`);function
|
|
302
|
+
`);function Oo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().name().update(),mutationFn:async({name:r})=>{let{data:o,errors:n}=await t.mutation({query:P,variables:{name:r}});if(n)throw n;return o.accountUpdateName},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var F=gql_tada.graphql(`
|
|
325
303
|
mutation UpdatePassword($password: String!, $oldPassword: String!) {
|
|
326
304
|
accountUpdatePassword(password: $password, oldPassword: $oldPassword) {
|
|
327
305
|
status
|
|
328
306
|
}
|
|
329
307
|
}
|
|
330
|
-
`);function
|
|
308
|
+
`);function To(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().password().update(),mutationFn:async({password:r,oldPassword:o})=>{let{data:n,errors:u}=await t.mutation({query:F,variables:{password:r,oldPassword:o}});if(u)throw u;return n?.accountUpdatePassword},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var U=gql_tada.graphql(`
|
|
331
309
|
mutation UpdatePhone($phone: String!, $password: String!) {
|
|
332
310
|
accountUpdatePhone(phone: $phone, password: $password) {
|
|
333
311
|
phone
|
|
334
312
|
}
|
|
335
313
|
}
|
|
336
|
-
`);function
|
|
314
|
+
`);function Do(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().phone().update(),mutationFn:async({phone:r,password:o})=>{let{data:n,errors:u}=await t.mutation({query:U,variables:{phone:r,password:o}});if(u)throw u;return n.accountUpdatePhone},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var Io=gql_tada.graphql(`
|
|
337
315
|
mutation UpdatePhoneSession($userId: String!, $secret: String!) {
|
|
338
316
|
accountUpdatePhoneSession(userId: $userId, secret: $secret) {
|
|
339
317
|
userId
|
|
@@ -341,13 +319,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
341
319
|
current
|
|
342
320
|
}
|
|
343
321
|
}
|
|
344
|
-
`);function
|
|
322
|
+
`);function vo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().phoneToken().update(),mutationFn:async({userId:r,secret:o})=>{let{data:n,errors:u}=await t.mutation({query:Io,variables:{userId:r,secret:o}});if(u)throw u;return n.accountUpdatePhoneSession},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()}),e.invalidateQueries({queryKey:a.account().sessions()});}})}}var Vo=gql_tada.graphql(`
|
|
345
323
|
mutation UpdatePhoneVerification($userId: String!, $secret: String!) {
|
|
346
324
|
accountUpdatePhoneVerification(userId: $userId, secret: $secret) {
|
|
347
325
|
expire
|
|
348
326
|
}
|
|
349
327
|
}
|
|
350
|
-
`);function
|
|
328
|
+
`);function $o(){let{graphql:t}=i();return {...p({mutationKey:a.account().phoneVerification().update(),mutationFn:async({userId:s,secret:r})=>{let{data:o,errors:n}=await t.mutation({query:Vo,variables:{userId:s,secret:r}});if(n)throw n;return o.accountUpdatePhoneVerification}})}}var L=gql_tada.graphql(`
|
|
351
329
|
mutation UpdatePrefs($prefs: Assoc!) {
|
|
352
330
|
accountUpdatePrefs(prefs: $prefs) {
|
|
353
331
|
prefs {
|
|
@@ -355,7 +333,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
355
333
|
}
|
|
356
334
|
}
|
|
357
335
|
}
|
|
358
|
-
`);function
|
|
336
|
+
`);function Po(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().prefs().update(),mutationFn:async({prefs:r})=>{let{data:o,errors:n}=await t.mutation({query:L,variables:{prefs:r}});if(n)throw n;return o?.accountUpdatePrefs},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var Uo=gql_tada.graphql(`
|
|
359
337
|
mutation UpdatePushTarget($targetId: String!, $identifier: String!) {
|
|
360
338
|
accountUpdatePushTarget(targetId: $targetId, identifier: $identifier) {
|
|
361
339
|
_id
|
|
@@ -364,7 +342,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
364
342
|
identifier
|
|
365
343
|
}
|
|
366
344
|
}
|
|
367
|
-
`);function
|
|
345
|
+
`);function Lo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().pushTarget().update(),mutationFn:async({targetId:r,identifier:o})=>{let{data:n,errors:u}=await t.mutation({query:Uo,variables:{targetId:r,identifier:o}});if(u)throw u;return n.accountUpdatePushTarget},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var No=gql_tada.graphql(`
|
|
368
346
|
mutation UpdateSession($sessionId: String!) {
|
|
369
347
|
accountUpdateSession(sessionId: $sessionId) {
|
|
370
348
|
userId
|
|
@@ -372,14 +350,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
372
350
|
current
|
|
373
351
|
}
|
|
374
352
|
}
|
|
375
|
-
`);function
|
|
353
|
+
`);function Go(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().session().update(),mutationFn:async({sessionId:r})=>{let{data:o,errors:n}=await t.mutation({query:No,variables:{sessionId:r}});if(n)throw n;return o.accountUpdateSession},onSuccess:()=>{e.invalidateQueries({queryKey:a.account().sessions()});}})}}var jo=gql_tada.graphql(`
|
|
376
354
|
mutation UpdateStatus {
|
|
377
355
|
accountUpdateStatus {
|
|
378
356
|
_id
|
|
379
357
|
status
|
|
380
358
|
}
|
|
381
359
|
}
|
|
382
|
-
`);function
|
|
360
|
+
`);function Jo(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().status().update(),mutationFn:async()=>{let{data:r,errors:o}=await t.mutation({query:jo});if(o)throw o;return r.accountUpdateStatus},onSuccess:async()=>{e.invalidateQueries({queryKey:a.account().key()});}})}}var zo=gql_tada.graphql(`
|
|
383
361
|
mutation UpdateVerification($userId: String!, $secret: String!) {
|
|
384
362
|
accountUpdateVerification(userId: $userId, secret: $secret) {
|
|
385
363
|
secret
|
|
@@ -387,12 +365,37 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
387
365
|
userId
|
|
388
366
|
}
|
|
389
367
|
}
|
|
390
|
-
`);function
|
|
391
|
-
query
|
|
368
|
+
`);function Ho(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.account().verification().update(),mutationFn:async({userId:r,secret:o})=>{if(!r||!o)throw new Error("Missing userId or secret");let{data:n,errors:u}=await t.mutation({query:zo,variables:{userId:r,secret:o}});if(u)throw u;return n.accountUpdateVerification},onSuccess:async()=>{e.setQueryData(a.account().key(),null);}})}}function Yo({code:t,width:e,height:s,quality:r}){let{avatars:o}=i();return O.useMemo(()=>o?.getBrowser({code:t,width:e,height:s,quality:r}),[o,t,e,s,r])}function es({code:t,width:e,height:s,quality:r}){let{avatars:o}=i();return O.useMemo(()=>o?.getCreditCard({code:t,width:e,height:s,quality:r}),[o,t,e,s,r])}function rs({url:t}){let{avatars:e}=i();return O.useMemo(()=>e?.getFavicon({url:t}),[e,t])}function ss({code:t,width:e,height:s,quality:r}){let{avatars:o}=i();return O.useMemo(()=>o?.getFlag({code:t,width:e,height:s,quality:r}),[o,t,e,s,r])}function as({url:t,width:e,height:s}){let{avatars:r}=i();return O.useMemo(()=>r?.getImage({url:t,width:e,height:s}),[r,t,e,s])}function us({name:t,width:e,height:s,background:r}={}){let{avatars:o}=i();return O.useMemo(()=>o?.getInitials({name:t,width:e,height:s,background:r}),[o,t,e,s,r])}function cs({text:t,size:e,margin:s,download:r}){let{avatars:o}=i();return O.useMemo(()=>o?.getQR({text:t,size:e,margin:s,download:r}),[o,t,e,s,r])}function ls({url:t,width:e,height:s}){let{avatars:r}=i();return O.useMemo(()=>r?.getScreenshot({url:t,width:e,height:s}),[r,t,e,s])}function _(t,e){return !e||e.length===0?t:[appwrite.Query.select(e),...t]}var N=gql_tada.graphql(`
|
|
369
|
+
query GetDocument(
|
|
370
|
+
$databaseId: String!
|
|
371
|
+
$collectionId: String!
|
|
372
|
+
$documentId: String!
|
|
373
|
+
$queries: [String!]
|
|
374
|
+
$transactionId: String
|
|
375
|
+
) {
|
|
376
|
+
databasesGetDocument(
|
|
377
|
+
databaseId: $databaseId
|
|
378
|
+
collectionId: $collectionId
|
|
379
|
+
documentId: $documentId
|
|
380
|
+
queries: $queries
|
|
381
|
+
transactionId: $transactionId
|
|
382
|
+
) {
|
|
383
|
+
_id
|
|
384
|
+
data
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
`);function G(t,{databaseId:e,collectionId:s,documentId:r,queries:o,transactionId:n,fields:u}){let c=Array.isArray(o)?o:o?[o]:[],l=_(c,u);return {queryKey:[...a.database(e).collection(s).document(r).key(),...l],queryFn:async()=>{let{data:y,errors:f}=await t.graphql.query({query:N,variables:{databaseId:e,collectionId:s,documentId:r,queries:l.length>0?l:void 0,transactionId:n}});if(f)throw f;return {...y.databasesGetDocument,...y.databasesGetDocument?JSON.parse(y.databasesGetDocument.data):{}}}}}var fs=gql_tada.graphql(`
|
|
388
|
+
query ListDocuments(
|
|
389
|
+
$databaseId: String!
|
|
390
|
+
$collectionId: String!
|
|
391
|
+
$queries: [String!]
|
|
392
|
+
$transactionId: String
|
|
393
|
+
) {
|
|
392
394
|
databasesListDocuments(
|
|
393
395
|
databaseId: $databaseId
|
|
394
396
|
collectionId: $collectionId
|
|
395
397
|
queries: $queries
|
|
398
|
+
transactionId: $transactionId
|
|
396
399
|
) {
|
|
397
400
|
total
|
|
398
401
|
documents {
|
|
@@ -401,13 +404,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
}
|
|
404
|
-
`);function
|
|
407
|
+
`);function B(t,{databaseId:e,collectionId:s,queries:r,transactionId:o,fields:n}){let u=_(r??[],n);return {queryKey:[...a.database(e).collection(s).key(),...u],queryFn:async()=>{let{data:c,errors:l}=await t.graphql.query({query:fs,variables:{databaseId:e,collectionId:s,queries:u,transactionId:o}});if(l)throw l;let y=c.databasesListDocuments?.documents?.map(f=>({...f,...f?JSON.parse(f.data):{}}))??[];return {total:c.databasesListDocuments?.total??0,documents:y}}}}function $e({databaseId:t,collectionId:e,queries:s,transactionId:r,fields:o}){let n=i();return B(n,{databaseId:t,collectionId:e,queries:s,transactionId:r,fields:o})}function Me(t,e,s,r){let{realtime:o}=i(),n=m(),u=JSON.stringify(s);O.useEffect(()=>{if(!r)return;let c=o.subscribe(appwrite.Channel.tablesdb(t).table(e).row(),l=>{let[,y]=l.events[0].match(/\.(\w+)$/),f=l.payload;switch(y){case "create":case "update":case "delete":n.setQueryData(a.database(t).collection(e).document(f.$id).key(),f),n.invalidateQueries({queryKey:a.database(t).collection(e).key()});break}});return ()=>{c.then(l=>l.close());}},[t,e,o,n,u,r]);}function E({databaseId:t,collectionId:e,queries:s=[],transactionId:r,subscribe:o=true,fields:n},u={}){let c=$e({databaseId:t,collectionId:e,queries:s,transactionId:r,fields:n}),l=d({...c,...u});return Me(t,e,s,o),{...l,documents:l.data?.documents,total:l.data?.total}}function j({databaseId:t,collectionId:e,queries:s,transactionId:r,subscribe:o=true,fields:n},u={}){let c=$e({databaseId:t,collectionId:e,queries:s,transactionId:r,fields:n}),l=S({...c,...u});return Me(t,e,s,o),{...l,documents:l.data?.documents,total:l.data?.total}}function Pe(t){let[e,s]=O.useState(1),r=O.useRef(0),o=(e-1)*t;return {page:e,offset:o,totalRef:r,nextPage:()=>{s(l=>{let y=(l-1)*t;return r.current>0&&y+t<r.current?l+1:l});},previousPage:()=>{s(l=>l>1?l-1:l);},handlePageChange:l=>{if(!(l<1)){if(r.current>0){let y=Math.ceil(r.current/t);if(l>y)return}s(l);}}}}function bs({databaseId:t,collectionId:e,queries:s,transactionId:r,limit:o=25,fields:n},u={}){let{page:c,offset:l,totalRef:y,nextPage:f,previousPage:q,handlePageChange:w}=Pe(o),g=E({databaseId:t,collectionId:e,queries:[...s,appwrite.Query.limit(o),appwrite.Query.offset(l)],transactionId:r,fields:n},u),b=g.data?.total??0;return y.current=b,{documents:g.data?.documents??[],total:b,page:c,hasNextPage:b>0&&l+o<b,hasPreviousPage:c>1,handlePageChange:w,nextPage:f,previousPage:q,isLoading:g.isLoading,isError:g.isError,error:g.error,isFetching:g.isFetching}}function ws({databaseId:t,collectionId:e,queries:s,transactionId:r,limit:o=25,fields:n},u={}){let{page:c,offset:l,totalRef:y,nextPage:f,previousPage:q,handlePageChange:w}=Pe(o),g=j({databaseId:t,collectionId:e,queries:[...s,appwrite.Query.limit(o),appwrite.Query.offset(l)],transactionId:r,fields:n},u),b=g.total??0;return y.current=b,{documents:g.documents??[],total:b,page:c,hasNextPage:b>0&&l+o<b,hasPreviousPage:c>1,handlePageChange:w,nextPage:f,previousPage:q,isLoading:g.isLoading,isError:g.isError,error:g.error,isFetching:g.isFetching}}var J=gql_tada.graphql(`
|
|
405
408
|
mutation CreateDocument(
|
|
406
409
|
$databaseId: String!
|
|
407
410
|
$collectionId: String!
|
|
408
411
|
$documentId: String!
|
|
409
412
|
$data: Json!
|
|
410
413
|
$permissions: [String!]
|
|
414
|
+
$transactionId: String
|
|
411
415
|
) {
|
|
412
416
|
databasesCreateDocument(
|
|
413
417
|
databaseId: $databaseId
|
|
@@ -415,28 +419,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
415
419
|
documentId: $documentId
|
|
416
420
|
data: $data
|
|
417
421
|
permissions: $permissions
|
|
422
|
+
transactionId: $transactionId
|
|
418
423
|
) {
|
|
419
424
|
_id
|
|
420
425
|
}
|
|
421
426
|
}
|
|
422
|
-
`);function
|
|
423
|
-
mutation CreateDocuments(
|
|
424
|
-
$databaseId: String!
|
|
425
|
-
$collectionId: String!
|
|
426
|
-
$documents: [Json!]!
|
|
427
|
-
) {
|
|
428
|
-
databasesCreateDocuments(
|
|
429
|
-
databaseId: $databaseId
|
|
430
|
-
collectionId: $collectionId
|
|
431
|
-
documents: $documents
|
|
432
|
-
) {
|
|
433
|
-
total
|
|
434
|
-
documents {
|
|
435
|
-
_id
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
`);function qo(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async({databaseId:i,collectionId:t,documents:s})=>{let{data:l,errors:p}=await e.mutation({query:_o,variables:{databaseId:i,collectionId:t,documents:s.map(y=>JSON.stringify(y))}});if(p)throw p;return l.databasesCreateDocuments},onSuccess:(i,t)=>{n.invalidateQueries({queryKey:["appwrite","databases",t.databaseId,t.collectionId]});}})}}var wo=u(`
|
|
427
|
+
`);function xs(){let{graphql:t}=i(),e=m();return p({mutationKey:a.databases().collections().documents().create(),mutationFn:async({databaseId:r,collectionId:o,documentId:n,data:u,permissions:c,transactionId:l})=>{let{data:y,errors:f}=await t.mutation({query:J,variables:{databaseId:r,collectionId:o,documentId:n,data:JSON.stringify(u),permissions:c,transactionId:l}});if(f)throw f;return y.databasesCreateDocument},onSuccess:(r,o)=>{let n=a.database(o.databaseId).collection(o.collectionId).document(r._id).key();e.invalidateQueries({queryKey:a.database(o.databaseId).collection(o.collectionId).key()}),e.setQueryData(n,{...o,...o.data});}})}var Cs=gql_tada.graphql(`
|
|
440
428
|
mutation CreateOperations($transactionId: String!, $operations: [String!]) {
|
|
441
429
|
databasesCreateOperations(transactionId: $transactionId, operations: $operations) {
|
|
442
430
|
_id
|
|
@@ -445,7 +433,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
445
433
|
expiresAt
|
|
446
434
|
}
|
|
447
435
|
}
|
|
448
|
-
`);function
|
|
436
|
+
`);function Ks(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.databases().transactions().operations().create(),mutationFn:async({transactionId:r,operations:o})=>{let{data:n,errors:u}=await t.mutation({query:Cs,variables:{transactionId:r,operations:o}});if(u)throw u;return n.databasesCreateOperations},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.databases().transaction(o.transactionId).key()});}})}}var Ss=gql_tada.graphql(`
|
|
449
437
|
mutation CreateTransaction($ttl: Int) {
|
|
450
438
|
databasesCreateTransaction(ttl: $ttl) {
|
|
451
439
|
_id
|
|
@@ -454,7 +442,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
454
442
|
expiresAt
|
|
455
443
|
}
|
|
456
444
|
}
|
|
457
|
-
`);function
|
|
445
|
+
`);function Ts(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.databases().transactions().create(),mutationFn:async({ttl:r}={})=>{let{data:o,errors:n}=await t.mutation({query:Ss,variables:{ttl:r}});if(n)throw n;return o.databasesCreateTransaction},onSuccess:()=>{e.invalidateQueries({queryKey:a.databases().transactions().key()});}})}}var W=gql_tada.graphql(`
|
|
458
446
|
mutation DecrementDocumentAttribute(
|
|
459
447
|
$databaseId: String!
|
|
460
448
|
$collectionId: String!
|
|
@@ -462,6 +450,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
462
450
|
$attribute: String!
|
|
463
451
|
$value: Int
|
|
464
452
|
$min: Int
|
|
453
|
+
$transactionId: String
|
|
465
454
|
) {
|
|
466
455
|
databasesDecrementDocumentAttribute(
|
|
467
456
|
databaseId: $databaseId
|
|
@@ -470,56 +459,35 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
470
459
|
attribute: $attribute
|
|
471
460
|
value: $value
|
|
472
461
|
min: $min
|
|
462
|
+
transactionId: $transactionId
|
|
473
463
|
) {
|
|
474
464
|
_id
|
|
475
465
|
data
|
|
476
466
|
}
|
|
477
467
|
}
|
|
478
|
-
`);function
|
|
479
|
-
mutation DeleteDocument(
|
|
480
|
-
databasesDeleteDocument(
|
|
481
|
-
databaseId: $databaseId
|
|
482
|
-
collectionId: $collectionId
|
|
483
|
-
documentId: $documentId
|
|
484
|
-
) {
|
|
485
|
-
status
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
`);function Ro(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async({databaseId:i,collectionId:t,documentId:s})=>{let{data:l,errors:p}=await e.mutation({query:Po,variables:{databaseId:i,collectionId:t,documentId:s}});if(p)throw p;return l?.databasesDeleteDocument??{status:true}},onSuccess:async(i,t)=>{n.removeQueries({queryKey:["appwrite","databases",t.databaseId,t.collectionId,"documents",t.documentId]}),n.invalidateQueries({queryKey:["appwrite","databases",t.databaseId,t.collectionId]});}})}}var Qo=u(`
|
|
489
|
-
mutation DeleteDocuments(
|
|
468
|
+
`);function Ds(){let{graphql:t}=i(),e=m();return {...p({mutationKey:[...a.databases().transactions().operations().key(),"decrementAttribute"],mutationFn:async({databaseId:r,collectionId:o,documentId:n,attribute:u,value:c,min:l,transactionId:y})=>{let{data:f,errors:q}=await t.mutation({query:W,variables:{databaseId:r,collectionId:o,documentId:n,attribute:u,value:c,min:l,transactionId:y}});if(q)throw q;return f.databasesDecrementDocumentAttribute},onMutate:async r=>{let o=a.database(r.databaseId).collection(r.collectionId).document(r.documentId).key();await e.cancelQueries({queryKey:o});let n=e.getQueriesData({queryKey:o});return e.setQueryData(o,u=>{if(!u)return u;let c=u[r.attribute]??0,l=r.value??1,y=r.min!=null?Math.max(c-l,r.min):c-l;return {...u,[r.attribute]:y}}),{previousEntries:n,documentKeyPrefix:o}},onError:(r,o,n)=>{if(n?.previousEntries)for(let[u,c]of n.previousEntries)e.setQueryData(u,c);},onSettled:(r,o,n)=>{e.invalidateQueries({queryKey:a.database(n.databaseId).collection(n.collectionId).key()});}})}}var z=gql_tada.graphql(`
|
|
469
|
+
mutation DeleteDocument(
|
|
490
470
|
$databaseId: String!
|
|
491
471
|
$collectionId: String!
|
|
492
|
-
$
|
|
472
|
+
$documentId: String!
|
|
473
|
+
$transactionId: String
|
|
493
474
|
) {
|
|
494
|
-
|
|
475
|
+
databasesDeleteDocument(
|
|
495
476
|
databaseId: $databaseId
|
|
496
477
|
collectionId: $collectionId
|
|
497
|
-
|
|
478
|
+
documentId: $documentId
|
|
479
|
+
transactionId: $transactionId
|
|
498
480
|
) {
|
|
499
|
-
|
|
500
|
-
documents {
|
|
501
|
-
_id
|
|
502
|
-
}
|
|
481
|
+
status
|
|
503
482
|
}
|
|
504
483
|
}
|
|
505
|
-
`);function
|
|
484
|
+
`);function Is(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.databases().collections().documents().delete(),mutationFn:async({databaseId:r,collectionId:o,documentId:n,transactionId:u})=>{let{data:c,errors:l}=await t.mutation({query:z,variables:{databaseId:r,collectionId:o,documentId:n,transactionId:u}});if(l)throw l;return c?.databasesDeleteDocument??{status:""}},onMutate:async r=>{let o=a.database(r.databaseId).collection(r.collectionId).document(r.documentId).key();await e.cancelQueries({queryKey:o});let n=e.getQueriesData({queryKey:o});return e.removeQueries({queryKey:o}),{previousEntries:n,documentKeyPrefix:o}},onError:(r,o,n)=>{if(n?.previousEntries)for(let[u,c]of n.previousEntries)e.setQueryData(u,c);},onSettled:(r,o,n)=>{e.removeQueries({queryKey:a.database(n.databaseId).collection(n.collectionId).document(n.documentId).key()}),e.invalidateQueries({queryKey:a.database(n.databaseId).collection(n.collectionId).key()});}})}}var Qs=gql_tada.graphql(`
|
|
506
485
|
mutation DeleteTransaction($transactionId: String!) {
|
|
507
486
|
databasesDeleteTransaction(transactionId: $transactionId) {
|
|
508
487
|
status
|
|
509
488
|
}
|
|
510
489
|
}
|
|
511
|
-
`);function
|
|
512
|
-
query GetDocument($databaseId: String!, $collectionId: String!, $documentId: String!) {
|
|
513
|
-
databasesGetDocument(
|
|
514
|
-
databaseId: $databaseId
|
|
515
|
-
collectionId: $collectionId
|
|
516
|
-
documentId: $documentId
|
|
517
|
-
) {
|
|
518
|
-
_id
|
|
519
|
-
data
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
`);function Jo({databaseId:e,collectionId:n,documentId:r}){let{graphql:i,realtime:t}=o(),s=c(),l=g({queryKey:["appwrite","databases",e,n,"documents",r],queryFn:async()=>{let{data:p,errors:y}=await i.query({query:Bo,variables:{databaseId:e,collectionId:n,documentId:r}});if(y)throw y;return {...p.databasesGetDocument,...p.databasesGetDocument?JSON.parse(p.databasesGetDocument.data):{}}}});return (0, ha.useEffect)(()=>{let p=t.subscribe(`databases.${e}.collections.${n}.documents.${r}`,y=>{s.setQueryData(["appwrite","databases",e,n,"documents",r],y.payload);});return ()=>{p.then(y=>y.close());}},[e,n,r,t,s]),{...l}}var jo=u(`
|
|
490
|
+
`);function Vs(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.databases().transactions().delete(),mutationFn:async({transactionId:r})=>{let{data:o,errors:n}=await t.mutation({query:Qs,variables:{transactionId:r}});if(n)throw n;return o?.databasesDeleteTransaction??{status:""}},onSuccess:(r,o)=>{e.removeQueries({queryKey:a.databases().transaction(o.transactionId).key()}),e.invalidateQueries({queryKey:a.databases().transactions().key()});}})}}function Fe({databaseId:t,collectionId:e,documentId:s,queries:r,transactionId:o,fields:n}){let u=i();return G(u,{databaseId:t,collectionId:e,documentId:s,queries:r,transactionId:o,fields:n})}function Ue(t,e,s,r){let{realtime:o}=i(),n=m();O.useEffect(()=>{let u=o.subscribe(appwrite.Channel.tablesdb(t).table(e).row(s).update(),c=>{n.setQueryData(a.database(t).collection(e).document(s).key(),c.payload);});return ()=>{u.then(c=>c.close());}},[t,e,s,o,n,r]);}function Ps({databaseId:t,collectionId:e,documentId:s,queries:r,transactionId:o,fields:n},u={}){let c=Fe({databaseId:t,collectionId:e,documentId:s,queries:r,transactionId:o,fields:n}),l=JSON.stringify(r),y=d({...c,...u});return Ue(t,e,s,l),{...y}}function Fs({databaseId:t,collectionId:e,documentId:s,queries:r,transactionId:o,fields:n},u={}){let c=Fe({databaseId:t,collectionId:e,documentId:s,queries:r,transactionId:o,fields:n}),l=JSON.stringify(r),y=S({...c,...u});return Ue(t,e,s,l),{...y}}var Ls=gql_tada.graphql(`
|
|
523
491
|
query GetTransaction($transactionId: String!) {
|
|
524
492
|
databasesGetTransaction(transactionId: $transactionId) {
|
|
525
493
|
_id
|
|
@@ -530,7 +498,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
530
498
|
expiresAt
|
|
531
499
|
}
|
|
532
500
|
}
|
|
533
|
-
`);function
|
|
501
|
+
`);function _s({transactionId:t},e={}){let{graphql:s}=i();return {...d({queryKey:a.databases().transaction(t).key(),queryFn:async()=>{let{data:o,errors:n}=await s.query({query:Ls,variables:{transactionId:t}});if(n)throw n;return o.databasesGetTransaction},...e})}}var H=gql_tada.graphql(`
|
|
534
502
|
mutation IncrementDocumentAttribute(
|
|
535
503
|
$databaseId: String!
|
|
536
504
|
$collectionId: String!
|
|
@@ -538,6 +506,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
538
506
|
$attribute: String!
|
|
539
507
|
$value: Int
|
|
540
508
|
$max: Int
|
|
509
|
+
$transactionId: String
|
|
541
510
|
) {
|
|
542
511
|
databasesIncrementDocumentAttribute(
|
|
543
512
|
databaseId: $databaseId
|
|
@@ -546,12 +515,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
546
515
|
attribute: $attribute
|
|
547
516
|
value: $value
|
|
548
517
|
max: $max
|
|
518
|
+
transactionId: $transactionId
|
|
549
519
|
) {
|
|
550
520
|
_id
|
|
551
521
|
data
|
|
552
522
|
}
|
|
553
523
|
}
|
|
554
|
-
`);function
|
|
524
|
+
`);function Gs(){let{graphql:t}=i(),e=m();return {...p({mutationKey:[...a.databases().transactions().operations().key(),"incrementAttribute"],mutationFn:async({databaseId:r,collectionId:o,documentId:n,attribute:u,value:c,max:l,transactionId:y})=>{let{data:f,errors:q}=await t.mutation({query:H,variables:{databaseId:r,collectionId:o,documentId:n,attribute:u,value:c,max:l,transactionId:y}});if(q)throw q;return f.databasesIncrementDocumentAttribute},onMutate:async r=>{let o=a.database(r.databaseId).collection(r.collectionId).document(r.documentId).key();await e.cancelQueries({queryKey:o});let n=e.getQueriesData({queryKey:o});return e.setQueryData(o,u=>{if(!u)return u;let c=u[r.attribute]??0,l=r.value??1,y=r.max!=null?Math.min(c+l,r.max):c+l;return {...u,[r.attribute]:y}}),{previousEntries:n,documentKeyPrefix:o}},onError:(r,o,n)=>{if(n?.previousEntries)for(let[u,c]of n.previousEntries)e.setQueryData(u,c);},onSettled:(r,o,n)=>{e.invalidateQueries({queryKey:a.database(n.databaseId).collection(n.collectionId).key()});}})}}function js({databaseId:t,collectionId:e,queries:s,transactionId:r,limit:o=25,subscribe:n=true,fields:u}){let[c,l]=O.useState(1),[y,f]=O.useState([]),q=(c-1)*o,w=[...s,appwrite.Query.limit(o),appwrite.Query.offset(q)],g=E({databaseId:t,collectionId:e,queries:w,transactionId:r,subscribe:n,fields:u});O.useEffect(()=>{g.documents&&f(c===1?[...g.documents]:A=>{let T=(c-1)*o+g.documents.length;return A.length<T?[...A,...g.documents]:A});},[g.documents,c,o]);let b=g.total??0,C=b>0&&q+o<b,K=O.useCallback(()=>{C&&!g.isFetching&&l(A=>A+1);},[C,g.isFetching]),x=O.useCallback(()=>{f([]),l(1);},[]);return {documents:y,total:b,hasNextPage:C,fetchNextPage:K,isFetchingNextPage:c>1&&g.isFetching,isLoading:g.isLoading,isError:g.isError,error:g.error,isFetching:g.isFetching,reset:x}}var Ws=gql_tada.graphql(`
|
|
555
525
|
query ListTransactions($queries: String) {
|
|
556
526
|
databasesListTransactions(queries: $queries) {
|
|
557
527
|
total
|
|
@@ -565,13 +535,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
565
535
|
}
|
|
566
536
|
}
|
|
567
537
|
}
|
|
568
|
-
`);function
|
|
538
|
+
`);function zs({queries:t}={},e={}){let{graphql:s}=i();return {...d({queryKey:[...a.databases().transactions().key(),...t?[t]:[]],queryFn:async()=>{let{data:o,errors:n}=await s.query({query:Ws,variables:{queries:t}});if(n)throw n;return o.databasesListTransactions},...e})}}function Y(t,e){if(typeof e=="function")return e(t);switch(e){case "last-write-wins":return X(t.base,t.local);case "server-wins":return "abort";case "merge-shallow":{let s=X(t.base,t.local),r=X(t.base,t.remote);return {...s,...r}}}}function X(t,e){let s={};for(let r of Object.keys(e))JSON.stringify(t[r])!==JSON.stringify(e[r])&&(s[r]=e[r]);return s}function k(t){return async(e,s,r)=>{let{databaseId:o,collectionId:n,documentId:u}=s,l=r.getMutationCache().getAll().find(b=>JSON.stringify(b.state.variables)===JSON.stringify(s))?.state.context?.baseSnapshot,y=s.data;if(l){let{data:b,errors:C}=await e.graphql.query({query:N,variables:{databaseId:o,collectionId:n,documentId:u}});if(C)throw C;let K=b.databasesGetDocument,x={...K,...K?JSON.parse(K.data):{}};delete x.data,delete x._id;let A={...l,...s.data},T=Y({base:l,remote:x,local:A,mutationKey:[o,n,u]},t);if(T==="abort")return await r.setQueryData(a.database(o).collection(n).document(u).key(),x),{_id:u};y=T;}let{data:f,errors:q}=await e.graphql.mutation({query:Z,variables:{...s,data:JSON.stringify(y.data??y)}}),w=y.data??y;delete s.data;let g={...l,...w,_id:u};if(await r.setQueryData(a.database(o).collection(n).document(u).key(),b=>b&&{...b,...g}),q)throw q;return f.databasesUpdateDocument}}var Z=gql_tada.graphql(`
|
|
569
539
|
mutation UpdateDocument(
|
|
570
540
|
$databaseId: String!
|
|
571
541
|
$collectionId: String!
|
|
572
542
|
$documentId: String!
|
|
573
543
|
$data: Json
|
|
574
544
|
$permissions: [String!]
|
|
545
|
+
$transactionId: String
|
|
575
546
|
) {
|
|
576
547
|
databasesUpdateDocument(
|
|
577
548
|
databaseId: $databaseId
|
|
@@ -579,30 +550,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
579
550
|
documentId: $documentId
|
|
580
551
|
data: $data
|
|
581
552
|
permissions: $permissions
|
|
553
|
+
transactionId: $transactionId
|
|
582
554
|
) {
|
|
583
555
|
_id
|
|
584
556
|
}
|
|
585
557
|
}
|
|
586
|
-
`);function
|
|
587
|
-
mutation UpdateDocuments(
|
|
588
|
-
$databaseId: String!
|
|
589
|
-
$collectionId: String!
|
|
590
|
-
$data: Json
|
|
591
|
-
$queries: [String!]
|
|
592
|
-
) {
|
|
593
|
-
databasesUpdateDocuments(
|
|
594
|
-
databaseId: $databaseId
|
|
595
|
-
collectionId: $collectionId
|
|
596
|
-
data: $data
|
|
597
|
-
queries: $queries
|
|
598
|
-
) {
|
|
599
|
-
total
|
|
600
|
-
documents {
|
|
601
|
-
_id
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
`);function ts(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async({databaseId:i,collectionId:t,data:s,queries:l})=>{let{data:p,errors:y}=await e.mutation({query:ns,variables:{databaseId:i,collectionId:t,data:s?JSON.stringify(s):void 0,queries:l}});if(y)throw y;return p.databasesUpdateDocuments},onSuccess:(i,t)=>{n.invalidateQueries({queryKey:["appwrite","databases",t.databaseId,t.collectionId]});}})}}var as=u(`
|
|
558
|
+
`);function Ys(){let t=i(),e=m();return {...p({mutationKey:a.databases().collections().documents().update(),mutationFn:async({databaseId:r,collectionId:o,documentId:n,data:u,permissions:c,transactionId:l},y)=>{let f=y.meta.willPerformOfflineMutation??false;if(y.meta.willPerformOfflineMutation!=null&&delete y.meta.willPerformOfflineMutation,f)try{return await k(y.meta.conflictStrategy)(t,{databaseId:r,collectionId:o,documentId:n,data:u,permissions:c,transactionId:l},e)}catch(g){throw console.error("Conflict-aware update failed:",g),g}let{data:q,errors:w}=await t.graphql.mutation({query:Z,variables:{databaseId:r,collectionId:o,documentId:n,data:JSON.stringify(u),permissions:c,transactionId:l}});if(w)throw w;return q.databasesUpdateDocument},onMutate:async(r,o)=>{let n=a.database(r.databaseId).collection(r.collectionId).document(r.documentId).key();await e.cancelQueries({queryKey:n});let u=e.getQueriesData({queryKey:n}),c=u.find(([,f])=>f!=null)?.[1],l=c?JSON.parse(JSON.stringify(c)):void 0;e.setQueryData(n,f=>f&&{...f,...r.data});let y=reactQuery.onlineManager.isOnline()===false;return o.meta={...o.meta,willPerformOfflineMutation:y},{previousEntries:u,documentKeyPrefix:n,baseSnapshot:l,willPerformOfflineMutation:y}},onError:(r,o,n)=>{if(n?.previousEntries)for(let[u,c]of n.previousEntries)e.setQueryData(u,c);},onSettled:(r,o,n)=>{e.invalidateQueries({queryKey:a.database(n.databaseId).collection(n.collectionId).key()});}})}}var en=gql_tada.graphql(`
|
|
606
559
|
mutation UpdateTransaction($transactionId: String!, $commit: Boolean, $rollback: Boolean) {
|
|
607
560
|
databasesUpdateTransaction(
|
|
608
561
|
transactionId: $transactionId
|
|
@@ -614,13 +567,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
614
567
|
operations
|
|
615
568
|
}
|
|
616
569
|
}
|
|
617
|
-
`);function
|
|
570
|
+
`);function tn(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.databases().transactions().update(),mutationFn:async({transactionId:r,commit:o,rollback:n})=>{let{data:u,errors:c}=await t.mutation({query:en,variables:{transactionId:r,commit:o,rollback:n}});if(c)throw c;return u.databasesUpdateTransaction},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.databases().transaction(o.transactionId).key()}),e.invalidateQueries({queryKey:a.databases().transactions().key()});}})}}var ee=gql_tada.graphql(`
|
|
618
571
|
mutation UpsertDocument(
|
|
619
572
|
$databaseId: String!
|
|
620
573
|
$collectionId: String!
|
|
621
574
|
$documentId: String!
|
|
622
575
|
$data: Json!
|
|
623
576
|
$permissions: [String!]
|
|
577
|
+
$transactionId: String
|
|
624
578
|
) {
|
|
625
579
|
databasesUpsertDocument(
|
|
626
580
|
databaseId: $databaseId
|
|
@@ -628,28 +582,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
628
582
|
documentId: $documentId
|
|
629
583
|
data: $data
|
|
630
584
|
permissions: $permissions
|
|
585
|
+
transactionId: $transactionId
|
|
631
586
|
) {
|
|
632
587
|
_id
|
|
633
588
|
}
|
|
634
589
|
}
|
|
635
|
-
`);function
|
|
636
|
-
mutation UpsertDocuments(
|
|
637
|
-
$databaseId: String!
|
|
638
|
-
$collectionId: String!
|
|
639
|
-
$documents: [Json!]!
|
|
640
|
-
) {
|
|
641
|
-
databasesUpsertDocuments(
|
|
642
|
-
databaseId: $databaseId
|
|
643
|
-
collectionId: $collectionId
|
|
644
|
-
documents: $documents
|
|
645
|
-
) {
|
|
646
|
-
total
|
|
647
|
-
documents {
|
|
648
|
-
_id
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
`);function us(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async({databaseId:i,collectionId:t,documents:s})=>{let{data:l,errors:p}=await e.mutation({query:ss,variables:{databaseId:i,collectionId:t,documents:s.map(y=>JSON.stringify(y))}});if(p)throw p;return l.databasesUpsertDocuments},onSuccess:(i,t)=>{n.invalidateQueries({queryKey:["appwrite","databases",t.databaseId,t.collectionId]});}})}}var ds=u(`
|
|
590
|
+
`);function sn(){let t=i(),e=m();return {...p({mutationKey:a.databases().collections().documents().upsert(),mutationFn:async({databaseId:r,collectionId:o,documentId:n,data:u,permissions:c,transactionId:l},y)=>{let f=y.meta.willPerformOfflineMutation??false;if(y.meta.willPerformOfflineMutation!=null&&delete y.meta.willPerformOfflineMutation,f)try{return await k(y.meta.conflictStrategy)(t,{databaseId:r,collectionId:o,documentId:n,data:u,permissions:c,transactionId:l},e)}catch(g){throw console.error("Conflict-aware update failed:",g),g}let{data:q,errors:w}=await t.graphql.mutation({query:ee,variables:{databaseId:r,collectionId:o,documentId:n,data:JSON.stringify(u),permissions:c,transactionId:l}});if(w)throw w;return q.databasesUpsertDocument},onMutate:async(r,o)=>{let n=a.database(r.databaseId).collection(r.collectionId).document(r.documentId).key();await e.cancelQueries({queryKey:n});let u=e.getQueriesData({queryKey:n}),c=u.find(([,f])=>f!=null)?.[1],l=c?JSON.parse(JSON.stringify(c)):void 0;e.setQueryData(n,f=>f&&{...f,...r.data});let y=reactQuery.onlineManager.isOnline()===false;return o.meta={...o.meta,willPerformOfflineMutation:y},{previousEntries:u,documentKeyPrefix:n,baseSnapshot:l,willPerformOfflineMutation:y}},onError:(r,o,n)=>{if(n?.previousEntries)for(let[u,c]of n.previousEntries)e.setQueryData(u,c);},onSettled:(r,o,n)=>{e.invalidateQueries({queryKey:a.database(n.databaseId).collection(n.collectionId).key()});}})}}var an=gql_tada.graphql(`
|
|
653
591
|
query GetLocale {
|
|
654
592
|
localeGet {
|
|
655
593
|
ip
|
|
@@ -661,7 +599,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
661
599
|
currency
|
|
662
600
|
}
|
|
663
601
|
}
|
|
664
|
-
`);function
|
|
602
|
+
`);function un(){let{graphql:t}=i();return {...d({queryKey:a.locale().key(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:an});if(r)throw r;return s.localeGet}})}}var cn=gql_tada.graphql(`
|
|
665
603
|
query ListLocaleCodes {
|
|
666
604
|
localeListCodes {
|
|
667
605
|
total
|
|
@@ -671,7 +609,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
671
609
|
}
|
|
672
610
|
}
|
|
673
611
|
}
|
|
674
|
-
`);function
|
|
612
|
+
`);function mn(){let{graphql:t}=i();return {...d({queryKey:a.locale().codes(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:cn});if(r)throw r;return s.localeListCodes}})}}var yn=gql_tada.graphql(`
|
|
675
613
|
query ListContinents {
|
|
676
614
|
localeListContinents {
|
|
677
615
|
total
|
|
@@ -681,7 +619,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
681
619
|
}
|
|
682
620
|
}
|
|
683
621
|
}
|
|
684
|
-
`);function
|
|
622
|
+
`);function fn(){let{graphql:t}=i();return {...d({queryKey:a.locale().continents(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:yn});if(r)throw r;return s.localeListContinents}})}}var hn=gql_tada.graphql(`
|
|
685
623
|
query ListCountries {
|
|
686
624
|
localeListCountries {
|
|
687
625
|
total
|
|
@@ -691,7 +629,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
691
629
|
}
|
|
692
630
|
}
|
|
693
631
|
}
|
|
694
|
-
`);function
|
|
632
|
+
`);function gn(){let{graphql:t}=i();return {...d({queryKey:a.locale().countries(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:hn});if(r)throw r;return s.localeListCountries}})}}var bn=gql_tada.graphql(`
|
|
695
633
|
query ListCountriesEU {
|
|
696
634
|
localeListCountriesEU {
|
|
697
635
|
total
|
|
@@ -701,7 +639,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
701
639
|
}
|
|
702
640
|
}
|
|
703
641
|
}
|
|
704
|
-
`);function
|
|
642
|
+
`);function wn(){let{graphql:t}=i();return {...d({queryKey:a.locale().countriesEU(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:bn});if(r)throw r;return s.localeListCountriesEU}})}}var xn=gql_tada.graphql(`
|
|
705
643
|
query ListCountriesPhones {
|
|
706
644
|
localeListCountriesPhones {
|
|
707
645
|
total
|
|
@@ -712,7 +650,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
712
650
|
}
|
|
713
651
|
}
|
|
714
652
|
}
|
|
715
|
-
`);function
|
|
653
|
+
`);function An(){let{graphql:t}=i();return {...d({queryKey:a.locale().countriesPhones(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:xn});if(r)throw r;return s.localeListCountriesPhones}})}}var Kn=gql_tada.graphql(`
|
|
716
654
|
query ListCurrencies {
|
|
717
655
|
localeListCurrencies {
|
|
718
656
|
total
|
|
@@ -727,7 +665,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
727
665
|
}
|
|
728
666
|
}
|
|
729
667
|
}
|
|
730
|
-
`);function
|
|
668
|
+
`);function On(){let{graphql:t}=i();return {...d({queryKey:a.locale().currencies(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:Kn});if(r)throw r;return s.localeListCurrencies}})}}var Tn=gql_tada.graphql(`
|
|
731
669
|
query ListLanguages {
|
|
732
670
|
localeListLanguages {
|
|
733
671
|
total
|
|
@@ -738,7 +676,26 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
738
676
|
}
|
|
739
677
|
}
|
|
740
678
|
}
|
|
741
|
-
`);function
|
|
679
|
+
`);function kn(){let{graphql:t}=i();return {...d({queryKey:a.locale().languages(),queryFn:async()=>{let{data:s,errors:r}=await t.query({query:Tn});if(r)throw r;return s.localeListLanguages}})}}var te=gql_tada.graphql(`
|
|
680
|
+
mutation CreateSubscriber($subscriberId: String!, $topicId: String!, $targetId: String!) {
|
|
681
|
+
messagingCreateSubscriber(subscriberId: $subscriberId, topicId: $topicId, targetId: $targetId) {
|
|
682
|
+
_id
|
|
683
|
+
_createdAt
|
|
684
|
+
_updatedAt
|
|
685
|
+
targetId
|
|
686
|
+
userId
|
|
687
|
+
userName
|
|
688
|
+
topicId
|
|
689
|
+
providerType
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
`);function En(){let{graphql:t}=i();return {...p({mutationKey:a.messaging().subscriber().create(),mutationFn:async({subscriberId:s,topicId:r,targetId:o})=>{let{data:n,errors:u}=await t.mutation({query:te,variables:{subscriberId:s,topicId:r,targetId:o}});if(u)throw u;return n?.messagingCreateSubscriber}})}}var re=gql_tada.graphql(`
|
|
693
|
+
mutation DeleteSubscriber($topicId: String!, $subscriberId: String!) {
|
|
694
|
+
messagingDeleteSubscriber(topicId: $topicId, subscriberId: $subscriberId) {
|
|
695
|
+
status
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
`);function vn(){let{graphql:t}=i();return {...p({mutationKey:a.messaging().subscriber().delete(),mutationFn:async({topicId:s,subscriberId:r})=>{let{data:o,errors:n}=await t.mutation({query:re,variables:{topicId:s,subscriberId:r}});if(n)throw n;return o?.messagingDeleteSubscriber??{status:""}}})}}var Vn=gql_tada.graphql(`
|
|
742
699
|
query GetFile($bucketId: String!, $fileId: String!) {
|
|
743
700
|
storageGetFile(bucketId: $bucketId, fileId: $fileId) {
|
|
744
701
|
_id
|
|
@@ -754,7 +711,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
754
711
|
chunksUploaded
|
|
755
712
|
}
|
|
756
713
|
}
|
|
757
|
-
`);function
|
|
714
|
+
`);function $n({bucketId:t,fileId:e}){let{graphql:s}=i();return {...d({queryKey:a.bucket(t).file(e).key(),queryFn:async()=>{let{data:o,errors:n}=await s.query({query:Vn,variables:{bucketId:t,fileId:e}});if(n)throw n;return o.storageGetFile}})}}function Pn({bucketId:t,fileId:e,token:s}){let{storage:r}=i();return O.useMemo(()=>r?.getFileDownload({bucketId:t,fileId:e,token:s}),[r,t,e,s])}function Un({bucketId:t,fileId:e,width:s,height:r,gravity:o,quality:n,borderWidth:u,borderColor:c,borderRadius:l,opacity:y,rotation:f,background:q,output:w,token:g}){let{storage:b}=i();return O.useMemo(()=>b?.getFilePreview({bucketId:t,fileId:e,width:s,height:r,gravity:o,quality:n,borderWidth:u,borderColor:c,borderRadius:l,opacity:y,rotation:f,background:q,output:w,token:g}),[b,t,e,s,r,o,n,u,c,l,y,f,q,w,g])}function _n({bucketId:t,fileId:e,token:s}){let{storage:r}=i();return O.useMemo(()=>r?.getFileView({bucketId:t,fileId:e,token:s}),[r,t,e,s])}var Gn=gql_tada.graphql(`
|
|
758
715
|
query ListFiles($bucketId: String!, $queries: [String!], $search: String) {
|
|
759
716
|
storageListFiles(bucketId: $bucketId, queries: $queries, search: $search) {
|
|
760
717
|
total
|
|
@@ -773,27 +730,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
773
730
|
}
|
|
774
731
|
}
|
|
775
732
|
}
|
|
776
|
-
`);function
|
|
777
|
-
mutation CreateFile(
|
|
778
|
-
$bucketId: String!
|
|
779
|
-
$fileId: String!
|
|
780
|
-
$file: String!
|
|
781
|
-
$permissions: [String!]
|
|
782
|
-
) {
|
|
783
|
-
storageCreateFile(
|
|
784
|
-
bucketId: $bucketId
|
|
785
|
-
fileId: $fileId
|
|
786
|
-
file: $file
|
|
787
|
-
permissions: $permissions
|
|
788
|
-
) {
|
|
789
|
-
_id
|
|
790
|
-
bucketId
|
|
791
|
-
name
|
|
792
|
-
mimeType
|
|
793
|
-
sizeOriginal
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
`);function ws(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async({bucketId:i,fileId:t,file:s,permissions:l})=>{let{data:p,errors:y}=await e.mutation({query:qs,variables:{bucketId:i,fileId:t,file:s,permissions:l}});if(y)throw y;return p.storageCreateFile},onSuccess:(i,t)=>{n.invalidateQueries({queryKey:["appwrite","storage",t.bucketId,"files"]});}})}}var Vs=u(`
|
|
733
|
+
`);function Bn({bucketId:t,queries:e,search:s}){let{graphql:r}=i();return {...d({queryKey:[...a.bucket(t).files().key(),...e??[],...s?[s]:[]],queryFn:async()=>{let{data:n,errors:u}=await r.query({query:Gn,variables:{bucketId:t,queries:e,search:s}});if(u)throw u;return n.storageListFiles}})}}function jn(){let{storage:t}=i(),e=m();return {...p({mutationKey:a.buckets().files().create(),mutationFn:async({bucketId:r,fileId:o,file:n,permissions:u,onProgress:c})=>t.createFile({bucketId:r,fileId:o,file:n,permissions:u,onProgress:c}),onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.bucket(o.bucketId).files().key()});}})}}var Wn=gql_tada.graphql(`
|
|
797
734
|
mutation UpdateFile(
|
|
798
735
|
$bucketId: String!
|
|
799
736
|
$fileId: String!
|
|
@@ -812,13 +749,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
812
749
|
_permissions
|
|
813
750
|
}
|
|
814
751
|
}
|
|
815
|
-
`);function
|
|
752
|
+
`);function zn(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.buckets().files().update(),mutationFn:async({bucketId:r,fileId:o,name:n,permissions:u})=>{let{data:c,errors:l}=await t.mutation({query:Wn,variables:{bucketId:r,fileId:o,name:n,permissions:u}});if(l)throw l;return c.storageUpdateFile},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.bucket(o.bucketId).files().key()});}})}}var Xn=gql_tada.graphql(`
|
|
816
753
|
mutation DeleteFile($bucketId: String!, $fileId: String!) {
|
|
817
754
|
storageDeleteFile(bucketId: $bucketId, fileId: $fileId) {
|
|
818
755
|
status
|
|
819
756
|
}
|
|
820
757
|
}
|
|
821
|
-
`);function
|
|
758
|
+
`);function Yn(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.buckets().files().delete(),mutationFn:async({bucketId:r,fileId:o})=>{let{data:n,errors:u}=await t.mutation({query:Xn,variables:{bucketId:r,fileId:o}});if(u)throw u;return n?.storageDeleteFile??{status:""}},onSuccess:(r,o)=>{e.removeQueries({queryKey:a.bucket(o.bucketId).file(o.fileId).key()}),e.invalidateQueries({queryKey:a.bucket(o.bucketId).files().key()});}})}}var ea=gql_tada.graphql(`
|
|
822
759
|
query GetTeam($teamId: String!) {
|
|
823
760
|
teamsGet(teamId: $teamId) {
|
|
824
761
|
_id
|
|
@@ -831,7 +768,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
831
768
|
}
|
|
832
769
|
}
|
|
833
770
|
}
|
|
834
|
-
`);function
|
|
771
|
+
`);function oe(t,{teamId:e}){return {queryKey:a.team(e).key(),queryFn:async()=>{let{data:s,errors:r}=await t.graphql.query({query:ea,variables:{teamId:e}});if(r)throw r;return s.teamsGet}}}function ta({teamId:t},e={}){let s=i();return {...d({...oe(s,{teamId:t}),...e})}}var oa=gql_tada.graphql(`
|
|
835
772
|
query ListTeams($queries: [String!], $search: String) {
|
|
836
773
|
teamsList(queries: $queries, search: $search) {
|
|
837
774
|
total
|
|
@@ -847,13 +784,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
847
784
|
}
|
|
848
785
|
}
|
|
849
786
|
}
|
|
850
|
-
`);function
|
|
787
|
+
`);function sa({queries:t,search:e}={},s={}){let{graphql:r}=i();return {...d({queryKey:[...a.teams().key(),...t??[],...e?[e]:[]],queryFn:async()=>{let{data:n,errors:u}=await r.query({query:oa,variables:{queries:t,search:e}});if(u)throw u;return n.teamsList},...s})}}var aa=gql_tada.graphql(`
|
|
851
788
|
query GetTeamPrefs($teamId: String!) {
|
|
852
789
|
teamsGetPrefs(teamId: $teamId) {
|
|
853
790
|
data
|
|
854
791
|
}
|
|
855
792
|
}
|
|
856
|
-
`);function
|
|
793
|
+
`);function ia({teamId:t},e={}){let{graphql:s}=i();return {...d({queryKey:a.team(t).teamPrefs().key(),queryFn:async()=>{let{data:o,errors:n}=await s.query({query:aa,variables:{teamId:t}});if(n)throw n;return o.teamsGetPrefs},...e})}}var pa=gql_tada.graphql(`
|
|
857
794
|
query GetMembership($teamId: String!, $membershipId: String!) {
|
|
858
795
|
teamsGetMembership(teamId: $teamId, membershipId: $membershipId) {
|
|
859
796
|
_id
|
|
@@ -871,7 +808,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
871
808
|
roles
|
|
872
809
|
}
|
|
873
810
|
}
|
|
874
|
-
`);function
|
|
811
|
+
`);function ca({teamId:t,membershipId:e},s={}){let{graphql:r}=i();return {...d({queryKey:a.team(t).membership(e).key(),queryFn:async()=>{let{data:n,errors:u}=await r.query({query:pa,variables:{teamId:t,membershipId:e}});if(u)throw u;return n.teamsGetMembership},...s})}}var la=gql_tada.graphql(`
|
|
875
812
|
query ListMemberships($teamId: String!, $queries: [String!], $search: String) {
|
|
876
813
|
teamsListMemberships(teamId: $teamId, queries: $queries, search: $search) {
|
|
877
814
|
total
|
|
@@ -892,7 +829,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
892
829
|
}
|
|
893
830
|
}
|
|
894
831
|
}
|
|
895
|
-
`);function
|
|
832
|
+
`);function ya({teamId:t,queries:e,search:s},r={}){let{graphql:o}=i();return {...d({queryKey:[...a.team(t).memberships().key(),...e??[],...s?[s]:[]],queryFn:async()=>{let{data:u,errors:c}=await o.query({query:la,variables:{teamId:t,queries:e,search:s}});if(c)throw c;return u.teamsListMemberships},...r})}}var se=gql_tada.graphql(`
|
|
896
833
|
mutation CreateTeam($teamId: String!, $name: String!, $roles: [String!]) {
|
|
897
834
|
teamsCreate(teamId: $teamId, name: $name, roles: $roles) {
|
|
898
835
|
_id
|
|
@@ -900,26 +837,26 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
900
837
|
total
|
|
901
838
|
}
|
|
902
839
|
}
|
|
903
|
-
`);function
|
|
840
|
+
`);function da(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().create(),mutationFn:async({teamId:r,name:o,roles:n})=>{let{data:u,errors:c}=await t.mutation({query:se,variables:{teamId:r,name:o,roles:n}});if(c)throw c;return u.teamsCreate},onSuccess:()=>{e.invalidateQueries({queryKey:a.teams().key()});}})}}var ne=gql_tada.graphql(`
|
|
904
841
|
mutation UpdateTeamName($teamId: String!, $name: String!) {
|
|
905
842
|
teamsUpdateName(teamId: $teamId, name: $name) {
|
|
906
843
|
_id
|
|
907
844
|
name
|
|
908
845
|
}
|
|
909
846
|
}
|
|
910
|
-
`);function
|
|
847
|
+
`);function ga(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().teamName().update(),mutationFn:async({teamId:r,name:o})=>{let{data:n,errors:u}=await t.mutation({query:ne,variables:{teamId:r,name:o}});if(u)throw u;return n.teamsUpdateName},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.team(o.teamId).key()}),e.invalidateQueries({queryKey:a.teams().key()});}})}}var ae=gql_tada.graphql(`
|
|
911
848
|
mutation UpdateTeamPrefs($teamId: String!, $prefs: Assoc!) {
|
|
912
849
|
teamsUpdatePrefs(teamId: $teamId, prefs: $prefs) {
|
|
913
850
|
data
|
|
914
851
|
}
|
|
915
852
|
}
|
|
916
|
-
`);function
|
|
853
|
+
`);function ba(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().teamPrefs().update(),mutationFn:async({teamId:r,prefs:o})=>{let{data:n,errors:u}=await t.mutation({query:ae,variables:{teamId:r,prefs:o}});if(u)throw u;return n.teamsUpdatePrefs},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.team(o.teamId).key()});}})}}var ie=gql_tada.graphql(`
|
|
917
854
|
mutation DeleteTeam($teamId: String!) {
|
|
918
855
|
teamsDelete(teamId: $teamId) {
|
|
919
856
|
status
|
|
920
857
|
}
|
|
921
858
|
}
|
|
922
|
-
`);function
|
|
859
|
+
`);function Ra(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().delete(),mutationFn:async({teamId:r})=>{let{data:o,errors:n}=await t.mutation({query:ie,variables:{teamId:r}});if(n)throw n;return o?.teamsDelete??{status:""}},onSuccess:(r,o)=>{e.removeQueries({queryKey:a.team(o.teamId).key()}),e.invalidateQueries({queryKey:a.teams().key()});}})}}var ue=gql_tada.graphql(`
|
|
923
860
|
mutation CreateMembership(
|
|
924
861
|
$teamId: String!
|
|
925
862
|
$roles: [String!]!
|
|
@@ -945,14 +882,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
945
882
|
confirm
|
|
946
883
|
}
|
|
947
884
|
}
|
|
948
|
-
`);function
|
|
885
|
+
`);function Aa(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().memberships().create(),mutationFn:async({teamId:r,roles:o,email:n,userId:u,phone:c,url:l,name:y})=>{let{data:f,errors:q}=await t.mutation({query:ue,variables:{teamId:r,roles:o,email:n,userId:u,phone:c,url:l,name:y}});if(q)throw q;return f.teamsCreateMembership},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.team(o.teamId).memberships().key()}),e.invalidateQueries({queryKey:a.team(o.teamId).key()});}})}}var pe=gql_tada.graphql(`
|
|
949
886
|
mutation UpdateMembership($teamId: String!, $membershipId: String!, $roles: [String!]!) {
|
|
950
887
|
teamsUpdateMembership(teamId: $teamId, membershipId: $membershipId, roles: $roles) {
|
|
951
888
|
_id
|
|
952
889
|
roles
|
|
953
890
|
}
|
|
954
891
|
}
|
|
955
|
-
`);function
|
|
892
|
+
`);function Ka(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().memberships().update(),mutationFn:async({teamId:r,membershipId:o,roles:n})=>{let{data:u,errors:c}=await t.mutation({query:pe,variables:{teamId:r,membershipId:o,roles:n}});if(c)throw c;return u.teamsUpdateMembership},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.team(o.teamId).memberships().key()});}})}}var Sa=gql_tada.graphql(`
|
|
956
893
|
mutation UpdateMembershipStatus(
|
|
957
894
|
$teamId: String!
|
|
958
895
|
$membershipId: String!
|
|
@@ -969,26 +906,30 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
969
906
|
confirm
|
|
970
907
|
}
|
|
971
908
|
}
|
|
972
|
-
`);function
|
|
909
|
+
`);function Ta(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().membershipStatus().update(),mutationFn:async({teamId:r,membershipId:o,userId:n,secret:u})=>{let{data:c,errors:l}=await t.mutation({query:Sa,variables:{teamId:r,membershipId:o,userId:n,secret:u}});if(l)throw l;return c.teamsUpdateMembershipStatus},onSuccess:(r,o)=>{e.invalidateQueries({queryKey:a.team(o.teamId).memberships().key()});}})}}var ce=gql_tada.graphql(`
|
|
973
910
|
mutation DeleteMembership($teamId: String!, $membershipId: String!) {
|
|
974
911
|
teamsDeleteMembership(teamId: $teamId, membershipId: $membershipId) {
|
|
975
912
|
status
|
|
976
913
|
}
|
|
977
914
|
}
|
|
978
|
-
`);function du(){let{graphql:e}=o(),n=c();return {...m({mutationFn:async({teamId:i,membershipId:t})=>{let{data:s,errors:l}=await e.mutation({query:uu,variables:{teamId:i,membershipId:t}});if(l)throw l;return s?.teamsDeleteMembership??{status:true}},onSuccess:(i,t)=>{n.removeQueries({queryKey:["appwrite","teams",t.teamId,"memberships",t.membershipId]}),n.invalidateQueries({queryKey:["appwrite","teams",t.teamId,"memberships"]}),n.invalidateQueries({queryKey:["appwrite","teams",t.teamId]});}})}}var we=w(q());var Aa=u(`
|
|
915
|
+
`);function Da(){let{graphql:t}=i(),e=m();return {...p({mutationKey:a.teams().memberships().delete(),mutationFn:async({teamId:r,membershipId:o})=>{let{data:n,errors:u}=await t.mutation({query:ce,variables:{teamId:r,membershipId:o}});if(u)throw u;return n?.teamsDeleteMembership??{status:""}},onSuccess:(r,o)=>{e.removeQueries({queryKey:a.team(o.teamId).membership(o.membershipId).key()}),e.invalidateQueries({queryKey:a.team(o.teamId).memberships().key()}),e.invalidateQueries({queryKey:a.team(o.teamId).key()});}})}}var me=class t{queries=[];equal(e,s){return this.queries.push(appwrite.Query.equal(e,s)),this}notEqual(e,s){return this.queries.push(appwrite.Query.notEqual(e,s)),this}regex(e,s){return this.queries.push(appwrite.Query.regex(e,s)),this}lessThan(e,s){return this.queries.push(appwrite.Query.lessThan(e,s)),this}lessThanEqual(e,s){return this.queries.push(appwrite.Query.lessThanEqual(e,s)),this}greaterThan(e,s){return this.queries.push(appwrite.Query.greaterThan(e,s)),this}greaterThanEqual(e,s){return this.queries.push(appwrite.Query.greaterThanEqual(e,s)),this}isNull(e){return this.queries.push(appwrite.Query.isNull(e)),this}isNotNull(e){return this.queries.push(appwrite.Query.isNotNull(e)),this}exists(e){return this.queries.push(appwrite.Query.exists(e)),this}notExists(e){return this.queries.push(appwrite.Query.notExists(e)),this}between(e,s,r){return this.queries.push(appwrite.Query.between(e,s,r)),this}startsWith(e,s){return this.queries.push(appwrite.Query.startsWith(e,s)),this}endsWith(e,s){return this.queries.push(appwrite.Query.endsWith(e,s)),this}select(e){return this.queries.push(appwrite.Query.select(e)),this}search(e,s){return this.queries.push(appwrite.Query.search(e,s)),this}orderAsc(e){return this.queries.push(appwrite.Query.orderAsc(e)),this}orderDesc(e){return this.queries.push(appwrite.Query.orderDesc(e)),this}orderRandom(){return this.queries.push(appwrite.Query.orderRandom()),this}cursorAfter(e){return this.queries.push(appwrite.Query.cursorAfter(e)),this}cursorBefore(e){return this.queries.push(appwrite.Query.cursorBefore(e)),this}limit(e){return this.queries.push(appwrite.Query.limit(e)),this}offset(e){return this.queries.push(appwrite.Query.offset(e)),this}contains(e,s){return this.queries.push(appwrite.Query.contains(e,s)),this}containsAny(e,s){return this.queries.push(appwrite.Query.containsAny(e,s)),this}containsAll(e,s){return this.queries.push(appwrite.Query.containsAll(e,s)),this}notContains(e,s){return this.queries.push(appwrite.Query.notContains(e,s)),this}notSearch(e,s){return this.queries.push(appwrite.Query.notSearch(e,s)),this}notBetween(e,s,r){return this.queries.push(appwrite.Query.notBetween(e,s,r)),this}notStartsWith(e,s){return this.queries.push(appwrite.Query.notStartsWith(e,s)),this}notEndsWith(e,s){return this.queries.push(appwrite.Query.notEndsWith(e,s)),this}createdBefore(e){return this.queries.push(appwrite.Query.createdBefore(e)),this}createdAfter(e){return this.queries.push(appwrite.Query.createdAfter(e)),this}createdBetween(e,s){return this.queries.push(appwrite.Query.createdBetween(e,s)),this}updatedBefore(e){return this.queries.push(appwrite.Query.updatedBefore(e)),this}updatedAfter(e){return this.queries.push(appwrite.Query.updatedAfter(e)),this}updatedBetween(e,s){return this.queries.push(appwrite.Query.updatedBetween(e,s)),this}or(...e){let s=e.map(r=>r(new t).queries).flat();return this.queries.push(appwrite.Query.or(s)),this}and(...e){let s=e.map(r=>r(new t).queries).flat();return this.queries.push(appwrite.Query.and(s)),this}elemMatch(e,s){return this.queries.push(appwrite.Query.elemMatch(e,s.queries)),this}distanceEqual(e,s,r,o,n=true){return this.queries.push(appwrite.Query.distanceEqual(e,[s,r],o,n)),this}distanceNotEqual(e,s,r,o,n=true){return this.queries.push(appwrite.Query.distanceNotEqual(e,[s,r],o,n)),this}distanceGreaterThan(e,s,r,o,n=true){return this.queries.push(appwrite.Query.distanceGreaterThan(e,[s,r],o,n)),this}distanceLessThan(e,s,r,o,n=true){return this.queries.push(appwrite.Query.distanceLessThan(e,[s,r],o,n)),this}intersects(e,s){return this.queries.push(appwrite.Query.intersects(e,s)),this}notIntersects(e,s){return this.queries.push(appwrite.Query.notIntersects(e,s)),this}crosses(e,s){return this.queries.push(appwrite.Query.crosses(e,s)),this}notCrosses(e,s){return this.queries.push(appwrite.Query.notCrosses(e,s)),this}overlaps(e,s){return this.queries.push(appwrite.Query.overlaps(e,s)),this}notOverlaps(e,s){return this.queries.push(appwrite.Query.notOverlaps(e,s)),this}touches(e,s){return this.queries.push(appwrite.Query.touches(e,s)),this}notTouches(e,s){return this.queries.push(appwrite.Query.notTouches(e,s)),this}build(){return [...this.queries]}};function yw(){return new me}function D(){}function Ge(t){let e;if(t.then(s=>(e=s,s),D)?.catch(D),e!==void 0)return {data:e}}function Be(t){return t}function Ea(t){return {mutationKey:t.options.mutationKey,state:t.state,...t.options.scope&&{scope:t.options.scope},...t.meta&&{meta:t.meta}}}function Ia(t,e,s){let r=()=>{let o=t.promise?.then(e).catch(n=>s(n)?(process.env.NODE_ENV!=="production"&&console.error(`A query that was dehydrated as pending ended up rejecting. [${t.queryHash}]: ${n}; The error will be redacted in production builds`),Promise.reject(new Error("redacted"))):Promise.reject(n));return o?.catch(D),o};return {dehydratedAt:Date.now(),state:{...t.state,...t.state.data!==void 0&&{data:e(t.state.data)}},queryKey:t.queryKey,queryHash:t.queryHash,...t.state.status==="pending"&&{promise:r()},...t.meta&&{meta:t.meta}}}function je(t){return t.state.isPaused}function Je(t){return t.state.status==="success"}function va(t){return true}function le(t,e={}){let s=e.shouldDehydrateMutation??t.getDefaultOptions().dehydrate?.shouldDehydrateMutation??je,r=t.getMutationCache().getAll().flatMap(l=>s(l)?[Ea(l)]:[]),o=e.shouldDehydrateQuery??t.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Je,n=e.shouldRedactErrors??t.getDefaultOptions().dehydrate?.shouldRedactErrors??va,u=e.serializeData??t.getDefaultOptions().dehydrate?.serializeData??Be,c=t.getQueryCache().getAll().flatMap(l=>o(l)?[Ia(l,u,n)]:[]);return {mutations:r,queries:c}}function ye(t,e,s){if(typeof e!="object"||e===null)return;let r=t.getMutationCache(),o=t.getQueryCache(),n=s?.defaultOptions?.deserializeData??t.getDefaultOptions().hydrate?.deserializeData??Be,u=e.mutations||[],c=e.queries||[];u.forEach(({state:l,...y})=>{r.build(t,{...t.getDefaultOptions().hydrate?.mutations,...s?.defaultOptions?.mutations,...y},l);}),c.forEach(({queryKey:l,state:y,queryHash:f,meta:q,promise:w,dehydratedAt:g})=>{let b=w?Ge(w):void 0,C=y.data===void 0?b?.data:y.data,K=C===void 0?C:n(C),x=o.get(f),A=x?.state.status==="pending",T=x?.state.fetchStatus==="fetching";if(x){let tt=b&&g!==void 0&&g>x.state.dataUpdatedAt;if(y.dataUpdatedAt>x.state.dataUpdatedAt||tt){let{fetchStatus:za,...rt}=y;x.setState({...rt,data:K});}}else x=o.build(t,{...t.getDefaultOptions().hydrate?.queries,...s?.defaultOptions?.queries,queryKey:l,queryHash:f,meta:q},{...y,data:K,fetchStatus:"idle",status:K!==void 0?"success":y.status});w&&!A&&!T&&(g===void 0||g>x.state.dataUpdatedAt)&&x.fetch(void 0,{initialPromise:Promise.resolve(w).then(n)}).catch(D);});}var Qa=["added","removed","updated"];function We(t){return Qa.includes(t)}async function Va({queryClient:t,persister:e,maxAge:s=1e3*60*60*24,buster:r="",hydrateOptions:o}){try{let n=await e.restoreClient();if(n)if(n.timestamp){let u=Date.now()-n.timestamp>s,c=n.buster!==r;if(u||c)return e.removeClient();ye(t,n.clientState,o);}else return e.removeClient()}catch(n){throw process.env.NODE_ENV!=="production"&&(console.error(n),console.warn("Encountered an error attempting to restore client cache from persisted location. As a precaution, the persisted cache will be discarded.")),await e.removeClient(),n}}async function ze({queryClient:t,persister:e,buster:s="",dehydrateOptions:r}){let o={buster:s,timestamp:Date.now(),clientState:le(t,r)};await e.persistClient(o);}function $a(t){let e=t.queryClient.getQueryCache().subscribe(r=>{We(r.type)&&ze(t);}),s=t.queryClient.getMutationCache().subscribe(r=>{We(r.type)&&ze(t);});return ()=>{e(),s();}}function He(t){let e=false,s,r=()=>{e=true,s?.();},o=Va(t).then(()=>{e||(s=$a(t));});return [r,o]}function R(t,e,s){return async(r,o)=>{let n=s?.serializeData?{...o,data:JSON.stringify(o.data)}:o,{data:u,errors:c}=await r.graphql.mutation({query:t,variables:n});if(c)throw c;return u[e]}}var Xe=[{mutationKey:a.databases().collections().documents().create(),mutationFn:R(J,"databasesCreateDocument",{serializeData:true})},{mutationKey:a.databases().collections().documents().delete(),mutationFn:R(z,"databasesDeleteDocument")},{mutationKey:a.databases().collections().documents().upsert(),mutationFn:R(ee,"databasesUpsertDocument",{serializeData:true})},{mutationKey:[...a.databases().transactions().operations().key(),"incrementAttribute"],mutationFn:R(H,"databasesIncrementDocumentAttribute")},{mutationKey:[...a.databases().transactions().operations().key(),"decrementAttribute"],mutationFn:R(W,"databasesDecrementDocumentAttribute")},{mutationKey:a.account().prefs().update(),mutationFn:R(L,"accountUpdatePrefs")},{mutationKey:a.account().name().update(),mutationFn:R(P,"accountUpdateName")},{mutationKey:a.account().email().update(),mutationFn:R(M,"accountUpdateEmail")},{mutationKey:a.account().password().update(),mutationFn:R(F,"accountUpdatePassword")},{mutationKey:a.account().phone().update(),mutationFn:R(U,"accountUpdatePhone")},{mutationKey:a.teams().create(),mutationFn:R(se,"teamsCreate")},{mutationKey:a.teams().delete(),mutationFn:R(ie,"teamsDelete")},{mutationKey:a.teams().teamName().update(),mutationFn:R(ne,"teamsUpdateName")},{mutationKey:a.teams().teamPrefs().update(),mutationFn:R(ae,"teamsUpdatePrefs")},{mutationKey:a.teams().memberships().create(),mutationFn:R(ue,"teamsCreateMembership")},{mutationKey:a.teams().memberships().delete(),mutationFn:R(ce,"teamsDeleteMembership")},{mutationKey:a.teams().memberships().update(),mutationFn:R(pe,"teamsUpdateMembership")},{mutationKey:a.messaging().subscriber().create(),mutationFn:R(te,"messagingCreateSubscriber")},{mutationKey:a.messaging().subscriber().delete(),mutationFn:R(re,"messagingDeleteSubscriber")}];function fe(t,e,s){for(let o of Xe)t.setMutationDefaults(o.mutationKey,{mutationFn:n=>o.mutationFn(e,n,t),scope:{id:"appwrite"}});let r=s?.conflictStrategy??"last-write-wins";t.setMutationDefaults(a.databases().collections().documents().update(),{mutationFn:o=>k(r)(e,o,t),scope:{id:"appwrite"}});}var Ua={shouldDehydrateMutation:t=>t.state.isPaused,shouldDehydrateQuery:t=>t.state.status==="success"};function La({endpoint:t,projectId:e,storage:s,persister:r,networkAdapter:o,throttleTime:n=1e3,conflictStrategy:u="last-write-wins"}){if(s&&r)throw new Error("Provide either `storage` or `persister`, not both.");let c=V({endpoint:t,projectId:e}),l=new reactQuery.QueryClient({defaultOptions:{mutations:{networkMode:"offlineFirst",meta:{conflictStrategy:u}},queries:{networkMode:"offlineFirst",gcTime:1e3*60*60*24}}});fe(l,c,{conflictStrategy:u});let y=r??(s?queryAsyncStoragePersister.createAsyncStoragePersister({storage:s,key:"appwrite-graphql-offline-cache",throttleTime:n}):void 0);return o.listen(f=>{reactQuery.onlineManager.setOnline(f);}),{appwrite:c,queryClient:l,persister:y,startPersistence(){if(!y)throw new Error("No persister configured. Provide `storage` or `persister` to createOfflineClient.");let[f,q]=He({queryClient:l,persister:y,dehydrateOptions:Ua}),w=q.then(()=>{l.resumePausedMutations();});return {unsubscribe:f,restored:w}}}}function _a(){return {listen:t=>{let e=()=>{t(navigator.onLine);};return window.addEventListener("online",e),window.addEventListener("offline",e),t(navigator.onLine),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e);}}}}var et=gql_tada.graphql(`
|
|
979
916
|
mutation CreateExecution(
|
|
980
917
|
$functionId: String!
|
|
981
918
|
$body: String
|
|
982
919
|
$async: Boolean
|
|
983
920
|
$path: String
|
|
984
|
-
$method: String
|
|
921
|
+
$method: String
|
|
922
|
+
$headers: String
|
|
923
|
+
$scheduledAt: String
|
|
985
924
|
) {
|
|
986
925
|
functionsCreateExecution(
|
|
987
926
|
functionId: $functionId
|
|
988
927
|
body: $body
|
|
989
928
|
async: $async
|
|
990
929
|
path: $path
|
|
991
|
-
method: $method
|
|
930
|
+
method: $method
|
|
931
|
+
headers: $headers
|
|
932
|
+
scheduledAt: $scheduledAt
|
|
992
933
|
) {
|
|
993
934
|
_id
|
|
994
935
|
status
|
|
@@ -998,7 +939,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
998
939
|
duration
|
|
999
940
|
}
|
|
1000
941
|
}
|
|
1001
|
-
`),
|
|
942
|
+
`),Na=gql_tada.graphql(`
|
|
1002
943
|
query GetFunctionExecution($functionId: String!, $executionId: String!) {
|
|
1003
944
|
functionsGetExecution(functionId: $functionId, executionId: $executionId) {
|
|
1004
945
|
status
|
|
@@ -1008,7 +949,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1008
949
|
requestPath
|
|
1009
950
|
}
|
|
1010
951
|
}
|
|
1011
|
-
`);function
|
|
952
|
+
`);function Ga({currentExecution:t,currentFunction:e}){let{graphql:s}=i(),r=!!e&&!!t;return {...d({queryKey:r?a.function(e).execution(t).key():a.functions().key(),queryFn:async()=>{if(!t||!e)return null;let{data:n}=await s.query({query:Na,variables:{functionId:e,executionId:t}});if(!n?.functionsGetExecution)throw new Error("Execution not found");return n.functionsGetExecution??null},enabled:r})}}function fR(){let{graphql:t}=i(),[e,s]=O.useState(null),[r,o]=O.useState(null),n=Ga({currentExecution:e,currentFunction:r});return {executeFunction:p({mutationKey:a.functions().executions().create(),mutationFn:async({functionId:c,body:l={},async:y=false,path:f="/",method:q="POST",headers:w={},scheduledAt:g})=>{o(c);let{data:b}=await t.mutation({query:et,variables:{functionId:c,body:JSON.stringify(l),async:y,path:f,method:q,headers:JSON.stringify(w),scheduledAt:g}}),{_id:C,status:K,errors:x,responseBody:A}=b.functionsCreateExecution??{};if(K==="failed")throw new Error(x);if(s(C??null),typeof A=="string"){if(A.trim().startsWith("{")&&A.trim().endsWith("}"))try{return JSON.parse(A)}catch(T){return console.error("Failed to parse response body:",T),A}return A}}}),currentExecution:n}}function dR({functionId:t,body:e={},async:s=false,path:r="/",method:o="POST",headers:n={},scheduledAt:u}){let{graphql:c}=i();return {executeFunction:S({queryKey:[...a.function(t).key(),"execute",{path:r,method:o,body:e}],queryFn:async()=>{let{data:y}=await c.mutation({query:et,variables:{functionId:t,body:JSON.stringify(e),async:s,path:r,method:o,headers:JSON.stringify(n),scheduledAt:u}});if(y?.functionsCreateExecution?.status==="failed")throw new Error(y.functionsCreateExecution.errors);let{responseBody:f}=y.functionsCreateExecution??{};if(typeof f=="string"&&f.trim().startsWith("{")&&f.trim().endsWith("}"))try{return JSON.parse(f)}catch(q){return console.error("Failed to parse response body:",q),f}return f},staleTime:1/0})}}var ja=gql_tada.graphql(`
|
|
1012
953
|
query GetExecution($functionId: String!, $executionId: String!) {
|
|
1013
954
|
functionsGetExecution(functionId: $functionId, executionId: $executionId) {
|
|
1014
955
|
_id
|
|
@@ -1025,7 +966,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1025
966
|
duration
|
|
1026
967
|
}
|
|
1027
968
|
}
|
|
1028
|
-
`);function
|
|
969
|
+
`);function RR({functionId:t,executionId:e},s={}){let{graphql:r}=i();return {...d({queryKey:a.function(t).execution(e).key(),queryFn:async()=>{let{data:n,errors:u}=await r.query({query:ja,variables:{functionId:t,executionId:e}});if(u)throw u;return n.functionsGetExecution},...s})}}var Wa=gql_tada.graphql(`
|
|
1029
970
|
query ListExecutions($functionId: String!, $queries: [String!]) {
|
|
1030
971
|
functionsListExecutions(functionId: $functionId, queries: $queries) {
|
|
1031
972
|
total
|
|
@@ -1045,27 +986,4 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1045
986
|
}
|
|
1046
987
|
}
|
|
1047
988
|
}
|
|
1048
|
-
`);function
|
|
1049
|
-
|
|
1050
|
-
react/cjs/react.production.js:
|
|
1051
|
-
(**
|
|
1052
|
-
* @license React
|
|
1053
|
-
* react.production.js
|
|
1054
|
-
*
|
|
1055
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1056
|
-
*
|
|
1057
|
-
* This source code is licensed under the MIT license found in the
|
|
1058
|
-
* LICENSE file in the root directory of this source tree.
|
|
1059
|
-
*)
|
|
1060
|
-
|
|
1061
|
-
react/cjs/react.development.js:
|
|
1062
|
-
(**
|
|
1063
|
-
* @license React
|
|
1064
|
-
* react.development.js
|
|
1065
|
-
*
|
|
1066
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1067
|
-
*
|
|
1068
|
-
* This source code is licensed under the MIT license found in the
|
|
1069
|
-
* LICENSE file in the root directory of this source tree.
|
|
1070
|
-
*)
|
|
1071
|
-
*/exports.AppwriteProvider=di;exports.getFragmentData=ja;exports.useAccount=Ci;exports.useAppwrite=o;exports.useAvatarBrowser=bo;exports.useAvatarCreditCard=vo;exports.useAvatarFavicon=Io;exports.useAvatarFlag=No;exports.useAvatarImage=Do;exports.useAvatarInitials=$o;exports.useAvatarQR=Mo;exports.useAvatarScreenshot=ho;exports.useCollection=xo;exports.useCreateAnonymousSession=_i;exports.useCreateDocument=Ao;exports.useCreateDocuments=qo;exports.useCreateEmailToken=wi;exports.useCreateEmailVerification=tr;exports.useCreateFile=ws;exports.useCreateJWT=Vi;exports.useCreateMagicURLToken=Fi;exports.useCreateMembership=au;exports.useCreateMfaAuthenticator=Pi;exports.useCreateMfaChallenge=Qi;exports.useCreateMfaRecoveryCodes=Oi;exports.useCreateOAuth2Token=Ki;exports.useCreateOperations=Vo;exports.useCreatePhoneToken=Ji;exports.useCreatePhoneVerification=Wi;exports.useCreatePushTarget=Yi;exports.useCreateSession=Xi;exports.useCreateTeam=zs;exports.useCreateTransaction=Eo;exports.useDecrementAttribute=Lo;exports.useDeleteAccount=er;exports.useDeleteDocument=Ro;exports.useDeleteDocuments=Go;exports.useDeleteFile=Fs;exports.useDeleteIdentity=ir;exports.useDeleteMembership=du;exports.useDeleteMfaAuthenticator=or;exports.useDeletePushTarget=ur;exports.useDeleteSession=lr;exports.useDeleteSessions=cr;exports.useDeleteTeam=nu;exports.useDeleteTransaction=Ko;exports.useDocument=Jo;exports.useFile=hs;exports.useFileDownload=xs;exports.useFilePreview=Ts;exports.useFileView=Cs;exports.useFiles=_s;exports.useFunction=Zb;exports.useGetExecution=rv;exports.useGetMfaRecoveryCodes=yr;exports.useGetPrefs=fr;exports.useGetSession=Sr;exports.useGetTransaction=Wo;exports.useIncrementAttribute=Yo;exports.useLazyAccount=Ti;exports.useLazyQuery=J;exports.useListExecutions=lv;exports.useListIdentities=vr;exports.useListMfaFactors=Nr;exports.useListSessions=$r;exports.useListTransactions=Xo;exports.useLocale=ls;exports.useLocaleCodes=cs;exports.useLocaleContinents=ys;exports.useLocaleCountries=fs;exports.useLocaleCountriesEU=Ss;exports.useLocaleCountriesPhones=vs;exports.useLocaleCurrencies=Ns;exports.useLocaleLanguages=$s;exports.useLogin=hr;exports.useLogout=Tr;exports.useLogs=Ar;exports.useMutation=m;exports.usePasswordRecovery=qr;exports.useQuery=g;exports.useQueryClient=c;exports.useResetPassword=Vr;exports.useSignUp=Fr;exports.useSuspenseCollection=To;exports.useSuspenseCreateJWT=Ui;exports.useSuspenseFunction=ev;exports.useSuspenseQuery=j;exports.useTeam=Ps;exports.useTeamMembership=Bs;exports.useTeamMemberships=js;exports.useTeamPrefs=Os;exports.useTeams=Qs;exports.useUpdateDocument=es;exports.useUpdateDocuments=ts;exports.useUpdateEmail=Pr;exports.useUpdateEmailVerification=Qr;exports.useUpdateFile=Us;exports.useUpdateMagicURLSession=Or;exports.useUpdateMembership=ru;exports.useUpdateMembershipStatus=su;exports.useUpdateMfa=Br;exports.useUpdateMfaAuthenticator=jr;exports.useUpdateMfaChallenge=zr;exports.useUpdateMfaRecoveryCodes=Hr;exports.useUpdateName=Zr;exports.useUpdatePassword=no;exports.useUpdatePhone=ao;exports.useUpdatePhoneSession=ro;exports.useUpdatePhoneVerification=so;exports.useUpdatePrefs=lo;exports.useUpdatePushTarget=co;exports.useUpdateSession=yo;exports.useUpdateStatus=fo;exports.useUpdateTeamName=Hs;exports.useUpdateTeamPrefs=Zs;exports.useUpdateTransaction=is;exports.useUpsertDocument=os;exports.useUpsertDocuments=us;exports.useVerification=So;
|
|
989
|
+
`);function SR({functionId:t,queries:e},s={}){let{graphql:r}=i();return {...d({queryKey:[...a.function(t).executions().key(),...e??[]],queryFn:async()=>{let{data:n,errors:u}=await r.query({query:Wa,variables:{functionId:t,queries:e}});if(u)throw u;return n.functionsListExecutions},...s})}}exports.AppwriteProvider=it;exports.Keys=a;exports.QueryBuilder=me;exports.createAppwriteClient=V;exports.createOfflineClient=La;exports.getAccountQuery=$;exports.getCollectionQuery=B;exports.getDocumentQuery=G;exports.hydrateMutationDefaults=fe;exports.mutationRegistry=Xe;exports.q=yw;exports.resolveConflict=Y;exports.teamQueryOptions=oe;exports.useAccount=At;exports.useAppwrite=i;exports.useAvatarBrowser=Yo;exports.useAvatarCreditCard=es;exports.useAvatarFavicon=rs;exports.useAvatarFlag=ss;exports.useAvatarImage=as;exports.useAvatarInitials=us;exports.useAvatarQR=cs;exports.useAvatarScreenshot=ls;exports.useCollection=E;exports.useCollectionWithPagination=bs;exports.useCreateAnonymousSession=Ot;exports.useCreateDocument=xs;exports.useCreateEmailToken=kt;exports.useCreateEmailVerification=ar;exports.useCreateFile=jn;exports.useCreateJWT=Et;exports.useCreateMagicURLToken=Vt;exports.useCreateMembership=Aa;exports.useCreateMfaAuthenticator=Pt;exports.useCreateMfaChallenge=Lt;exports.useCreateMfaRecoveryCodes=Gt;exports.useCreateOAuth2Token=Bt;exports.useCreateOperations=Ks;exports.useCreatePhoneToken=Wt;exports.useCreatePhoneVerification=Xt;exports.useCreatePushTarget=er;exports.useCreateSession=or;exports.useCreateSubscriber=En;exports.useCreateTeam=da;exports.useCreateTransaction=Ts;exports.useDecrementAttribute=Ds;exports.useDeleteDocument=Is;exports.useDeleteFile=Yn;exports.useDeleteIdentity=pr;exports.useDeleteMembership=Da;exports.useDeleteMfaAuthenticator=lr;exports.useDeletePushTarget=dr;exports.useDeleteSession=qr;exports.useDeleteSessions=Rr;exports.useDeleteSubscriber=vn;exports.useDeleteTeam=Ra;exports.useDeleteTransaction=Vs;exports.useDocument=Ps;exports.useFile=$n;exports.useFileDownload=Pn;exports.useFilePreview=Un;exports.useFileView=_n;exports.useFiles=Bn;exports.useFunction=fR;exports.useGetExecution=RR;exports.useGetMfaRecoveryCodes=Cr;exports.useGetPrefs=Sr;exports.useGetSession=Dr;exports.useGetTransaction=_s;exports.useIncrementAttribute=Gs;exports.useInfiniteCollection=js;exports.useLazyAccount=xt;exports.useLazyQuery=Q;exports.useListExecutions=SR;exports.useListIdentities=vr;exports.useListMfaFactors=$r;exports.useListSessions=Fr;exports.useListTransactions=zs;exports.useLocale=un;exports.useLocaleCodes=mn;exports.useLocaleContinents=fn;exports.useLocaleCountries=gn;exports.useLocaleCountriesEU=wn;exports.useLocaleCountriesPhones=An;exports.useLocaleCurrencies=On;exports.useLocaleLanguages=kn;exports.useLogin=_r;exports.useLogout=Br;exports.useLogs=Wr;exports.useMutation=p;exports.usePasswordRecovery=Xr;exports.useQuery=d;exports.useQueryClient=m;exports.useResetPassword=eo;exports.useSignUp=oo;exports.useSuspenseCollection=j;exports.useSuspenseCollectionWithPagination=ws;exports.useSuspenseCreateJWT=It;exports.useSuspenseDocument=Fs;exports.useSuspenseFunction=dR;exports.useSuspenseQuery=S;exports.useTeam=ta;exports.useTeamMembership=ca;exports.useTeamMemberships=ya;exports.useTeamPrefs=ia;exports.useTeams=sa;exports.useUpdateDocument=Ys;exports.useUpdateEmail=no;exports.useUpdateEmailVerification=uo;exports.useUpdateFile=zn;exports.useUpdateMagicURLSession=mo;exports.useUpdateMembership=Ka;exports.useUpdateMembershipStatus=Ta;exports.useUpdateMfa=fo;exports.useUpdateMfaAuthenticator=qo;exports.useUpdateMfaChallenge=Ro;exports.useUpdateMfaRecoveryCodes=Co;exports.useUpdateName=Oo;exports.useUpdatePassword=To;exports.useUpdatePhone=Do;exports.useUpdatePhoneSession=vo;exports.useUpdatePhoneVerification=$o;exports.useUpdatePrefs=Po;exports.useUpdatePushTarget=Lo;exports.useUpdateSession=Go;exports.useUpdateStatus=Jo;exports.useUpdateTeamName=ga;exports.useUpdateTeamPrefs=ba;exports.useUpdateTransaction=tn;exports.useUpsertDocument=sn;exports.useVerification=Ho;exports.webNetworkAdapter=_a;
|