veloce-ts 0.2.4 → 0.2.6

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/CHANGELOG.md CHANGED
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.6] - 2025-10-15
11
+
12
+ ### Fixed
13
+ - **Query Export**: Added missing `Query` export from main index to resolve import conflicts
14
+ - **Parameter Decorators**: HTTP `@Query` decorator now properly exported alongside GraphQL decorators
15
+ - **Import Resolution**: Fixed "Export named 'Query' not found" error in applications
16
+
17
+ ## [0.2.5] - 2025-10-15
18
+
19
+ ### Fixed
20
+ - **GraphQL Query Conflict**: Removed conflicting alias `Query` from GraphQL decorators
21
+ - **Import Resolution**: GraphQL decorators now use `GQLQuery` to avoid conflicts with HTTP `@Query` decorator
22
+ - **Type Safety**: Eliminated TypeScript errors caused by decorator name conflicts
23
+
24
+ ### Breaking Changes
25
+ - GraphQL queries now use `@GQLQuery` instead of `@Query` to avoid conflicts with HTTP parameter decorator
26
+
10
27
  ## [0.2.4] - 2025-10-15
11
28
 
12
29
  ### Fixed
@@ -11,7 +11,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var IX;(function($){(function(X){var J=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:G(),W=q($);if(typeof J.Reflect<"u")W=q(J.Reflect,W);if(X(W,J),typeof J.Reflect>"u")J.Reflect=$;function q(z,U){return function(C,Z){if(Object.defineProperty(z,C,{configurable:!0,writable:!0,value:Z}),U)U(C,Z)}}function Q(){try{return Function("return this;")()}catch(z){}}function Y(){try{return(0,eval)("(function() { return this; })()")}catch(z){}}function G(){return Q()||Y()}})(function(X,J){var W=Object.prototype.hasOwnProperty,q=typeof Symbol==="function",Q=q&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",Y=q&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",G=typeof Object.create==="function",z={__proto__:[]}instanceof Array,U=!G&&!z,C={create:G?function(){return qX(Object.create(null))}:z?function(){return qX({__proto__:null})}:function(){return qX({})},has:U?function(H,B){return W.call(H,B)}:function(H,B){return B in H},get:U?function(H,B){return W.call(H,B)?H[B]:void 0}:function(H,B){return H[B]}},Z=Object.getPrototypeOf(Function),u=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:N1(),t$=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:A1(),e$=typeof WeakMap==="function"?WeakMap:E1(),V$=q?Symbol.for("@reflect-metadata:registry"):void 0,n$=z1(),wX=j1(n$);function oX(H,B,_,V){if(!M(_)){if(!DX(H))throw TypeError();if(!P(B))throw TypeError();if(!P(V)&&!M(V)&&!N$(V))throw TypeError();if(N$(V))V=void 0;return _=s(_),Y1(H,B,_,V)}else{if(!DX(H))throw TypeError();if(!UX(B))throw TypeError();return W1(H,B)}}X("decorate",oX);function sX(H,B){function _(V,F){if(!P(V))throw TypeError();if(!M(F)&&!G1(F))throw TypeError();NX(H,B,V,F)}return _}X("metadata",sX);function rX(H,B,_,V){if(!P(_))throw TypeError();if(!M(V))V=s(V);return NX(H,B,_,V)}X("defineMetadata",rX);function aX(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return zX(H,B,_)}X("hasMetadata",aX);function tX(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return $X(H,B,_)}X("hasOwnMetadata",tX);function eX(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return jX(H,B,_)}X("getMetadata",eX);function $1(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return VX(H,B,_)}X("getOwnMetadata",$1);function X1(H,B){if(!P(H))throw TypeError();if(!M(B))B=s(B);return AX(H,B)}X("getMetadataKeys",X1);function J1(H,B){if(!P(H))throw TypeError();if(!M(B))B=s(B);return EX(H,B)}X("getOwnMetadataKeys",J1);function q1(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);if(!P(B))throw TypeError();if(!M(_))_=s(_);var V=P$(B,_,!1);if(M(V))return!1;return V.OrdinaryDeleteMetadata(H,B,_)}X("deleteMetadata",q1);function W1(H,B){for(var _=H.length-1;_>=0;--_){var V=H[_],F=V(B);if(!M(F)&&!N$(F)){if(!UX(F))throw TypeError();B=F}}return B}function Y1(H,B,_,V){for(var F=H.length-1;F>=0;--F){var T=H[F],x=T(B,_,V);if(!M(x)&&!N$(x)){if(!P(x))throw TypeError();V=x}}return V}function zX(H,B,_){var V=$X(H,B,_);if(V)return!0;var F=JX(B);if(!N$(F))return zX(H,F,_);return!1}function $X(H,B,_){var V=P$(B,_,!1);if(M(V))return!1;return LX(V.OrdinaryHasOwnMetadata(H,B,_))}function jX(H,B,_){var V=$X(H,B,_);if(V)return VX(H,B,_);var F=JX(B);if(!N$(F))return jX(H,F,_);return}function VX(H,B,_){var V=P$(B,_,!1);if(M(V))return;return V.OrdinaryGetOwnMetadata(H,B,_)}function NX(H,B,_,V){var F=P$(_,V,!0);F.OrdinaryDefineOwnMetadata(H,B,_,V)}function AX(H,B){var _=EX(H,B),V=JX(H);if(V===null)return _;var F=AX(V,B);if(F.length<=0)return _;if(_.length<=0)return F;var T=new t$,x=[];for(var f=0,A=_;f<A.length;f++){var E=A[f],R=T.has(E);if(!R)T.add(E),x.push(E)}for(var D=0,K=F;D<K.length;D++){var E=K[D],R=T.has(E);if(!R)T.add(E),x.push(E)}return x}function EX(H,B){var _=P$(H,B,!1);if(!_)return[];return _.OrdinaryOwnMetadataKeys(H,B)}function RX(H){if(H===null)return 1;switch(typeof H){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return H===null?1:6;default:return 6}}function M(H){return H===void 0}function N$(H){return H===null}function Q1(H){return typeof H==="symbol"}function P(H){return typeof H==="object"?H!==null:typeof H==="function"}function H1(H,B){switch(RX(H)){case 0:return H;case 1:return H;case 2:return H;case 3:return H;case 4:return H;case 5:return H}var _=B===3?"string":B===5?"number":"default",V=FX(H,Q);if(V!==void 0){var F=V.call(H,_);if(P(F))throw TypeError();return F}return B1(H,_==="default"?"number":_)}function B1(H,B){if(B==="string"){var _=H.toString;if(A$(_)){var V=_.call(H);if(!P(V))return V}var F=H.valueOf;if(A$(F)){var V=F.call(H);if(!P(V))return V}}else{var F=H.valueOf;if(A$(F)){var V=F.call(H);if(!P(V))return V}var T=H.toString;if(A$(T)){var V=T.call(H);if(!P(V))return V}}throw TypeError()}function LX(H){return!!H}function _1(H){return""+H}function s(H){var B=H1(H,3);if(Q1(B))return B;return _1(B)}function DX(H){return Array.isArray?Array.isArray(H):H instanceof Object?H instanceof Array:Object.prototype.toString.call(H)==="[object Array]"}function A$(H){return typeof H==="function"}function UX(H){return typeof H==="function"}function G1(H){switch(RX(H)){case 3:return!0;case 4:return!0;default:return!1}}function XX(H,B){return H===B||H!==H&&B!==B}function FX(H,B){var _=H[B];if(_===void 0||_===null)return;if(!A$(_))throw TypeError();return _}function SX(H){var B=FX(H,Y);if(!A$(B))throw TypeError();var _=B.call(H);if(!P(_))throw TypeError();return _}function bX(H){return H.value}function MX(H){var B=H.next();return B.done?!1:B}function vX(H){var B=H.return;if(B)B.call(H)}function JX(H){var B=Object.getPrototypeOf(H);if(typeof H!=="function"||H===Z)return B;if(B!==Z)return B;var _=H.prototype,V=_&&Object.getPrototypeOf(_);if(V==null||V===Object.prototype)return B;var F=V.constructor;if(typeof F!=="function")return B;if(F===H)return B;return F}function w1(){var H;if(!M(V$)&&typeof J.Reflect<"u"&&!(V$ in J.Reflect)&&typeof J.Reflect.defineMetadata==="function")H=V1(J.Reflect);var B,_,V,F=new e$,T={registerProvider:x,getProvider:A,setProvider:R};return T;function x(D){if(!Object.isExtensible(T))throw Error("Cannot add provider to a frozen registry.");switch(!0){case H===D:break;case M(B):B=D;break;case B===D:break;case M(_):_=D;break;case _===D:break;default:if(V===void 0)V=new t$;V.add(D);break}}function f(D,K){if(!M(B)){if(B.isProviderFor(D,K))return B;if(!M(_)){if(_.isProviderFor(D,K))return B;if(!M(V)){var I=SX(V);while(!0){var g=MX(I);if(!g)return;var c=bX(g);if(c.isProviderFor(D,K))return vX(I),c}}}}if(!M(H)&&H.isProviderFor(D,K))return H;return}function A(D,K){var I=F.get(D),g;if(!M(I))g=I.get(K);if(!M(g))return g;if(g=f(D,K),!M(g)){if(M(I))I=new u,F.set(D,I);I.set(K,g)}return g}function E(D){if(M(D))throw TypeError();return B===D||_===D||!M(V)&&V.has(D)}function R(D,K,I){if(!E(I))throw Error("Metadata provider not registered.");var g=A(D,K);if(g!==I){if(!M(g))return!1;var c=F.get(D);if(M(c))c=new u,F.set(D,c);c.set(K,I)}return!0}}function z1(){var H;if(!M(V$)&&P(J.Reflect)&&Object.isExtensible(J.Reflect))H=J.Reflect[V$];if(M(H))H=w1();if(!M(V$)&&P(J.Reflect)&&Object.isExtensible(J.Reflect))Object.defineProperty(J.Reflect,V$,{enumerable:!1,configurable:!1,writable:!1,value:H});return H}function j1(H){var B=new e$,_={isProviderFor:function(E,R){var D=B.get(E);if(M(D))return!1;return D.has(R)},OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:F,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:f,OrdinaryDeleteMetadata:A};return n$.registerProvider(_),_;function V(E,R,D){var K=B.get(E),I=!1;if(M(K)){if(!D)return;K=new u,B.set(E,K),I=!0}var g=K.get(R);if(M(g)){if(!D)return;if(g=new u,K.set(R,g),!H.setProvider(E,R,_)){if(K.delete(R),I)B.delete(E);throw Error("Wrong provider for target.")}}return g}function F(E,R,D){var K=V(R,D,!1);if(M(K))return!1;return LX(K.has(E))}function T(E,R,D){var K=V(R,D,!1);if(M(K))return;return K.get(E)}function x(E,R,D,K){var I=V(D,K,!0);I.set(E,R)}function f(E,R){var D=[],K=V(E,R,!1);if(M(K))return D;var I=K.keys(),g=SX(I),c=0;while(!0){var CX=MX(g);if(!CX)return D.length=c,D;var R1=bX(CX);try{D[c]=R1}catch(L1){try{vX(g)}finally{throw L1}}c++}}function A(E,R,D){var K=V(R,D,!1);if(M(K))return!1;if(!K.delete(E))return!1;if(K.size===0){var I=B.get(R);if(!M(I)){if(I.delete(D),I.size===0)B.delete(I)}}return!0}}function V1(H){var{defineMetadata:B,hasOwnMetadata:_,getOwnMetadata:V,getOwnMetadataKeys:F,deleteMetadata:T}=H,x=new e$,f={isProviderFor:function(A,E){var R=x.get(A);if(!M(R)&&R.has(E))return!0;if(F(A,E).length){if(M(R))R=new t$,x.set(A,R);return R.add(E),!0}return!1},OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:_,OrdinaryGetOwnMetadata:V,OrdinaryOwnMetadataKeys:F,OrdinaryDeleteMetadata:T};return f}function P$(H,B,_){var V=n$.getProvider(H,B);if(!M(V))return V;if(_){if(n$.setProvider(H,B,wX))return wX;throw Error("Illegal state.")}return}function N1(){var H={},B=[],_=function(){function f(A,E,R){this._index=0,this._keys=A,this._values=E,this._selector=R}return f.prototype["@@iterator"]=function(){return this},f.prototype[Y]=function(){return this},f.prototype.next=function(){var A=this._index;if(A>=0&&A<this._keys.length){var E=this._selector(this._keys[A],this._values[A]);if(A+1>=this._keys.length)this._index=-1,this._keys=B,this._values=B;else this._index++;return{value:E,done:!1}}return{value:void 0,done:!0}},f.prototype.throw=function(A){if(this._index>=0)this._index=-1,this._keys=B,this._values=B;throw A},f.prototype.return=function(A){if(this._index>=0)this._index=-1,this._keys=B,this._values=B;return{value:A,done:!0}},f}(),V=function(){function f(){this._keys=[],this._values=[],this._cacheKey=H,this._cacheIndex=-2}return Object.defineProperty(f.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),f.prototype.has=function(A){return this._find(A,!1)>=0},f.prototype.get=function(A){var E=this._find(A,!1);return E>=0?this._values[E]:void 0},f.prototype.set=function(A,E){var R=this._find(A,!0);return this._values[R]=E,this},f.prototype.delete=function(A){var E=this._find(A,!1);if(E>=0){var R=this._keys.length;for(var D=E+1;D<R;D++)this._keys[D-1]=this._keys[D],this._values[D-1]=this._values[D];if(this._keys.length--,this._values.length--,XX(A,this._cacheKey))this._cacheKey=H,this._cacheIndex=-2;return!0}return!1},f.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=H,this._cacheIndex=-2},f.prototype.keys=function(){return new _(this._keys,this._values,F)},f.prototype.values=function(){return new _(this._keys,this._values,T)},f.prototype.entries=function(){return new _(this._keys,this._values,x)},f.prototype["@@iterator"]=function(){return this.entries()},f.prototype[Y]=function(){return this.entries()},f.prototype._find=function(A,E){if(!XX(this._cacheKey,A)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(XX(this._keys[R],A)){this._cacheIndex=R;break}}if(this._cacheIndex<0&&E)this._cacheIndex=this._keys.length,this._keys.push(A),this._values.push(void 0);return this._cacheIndex},f}();return V;function F(f,A){return f}function T(f,A){return A}function x(f,A){return[f,A]}}function A1(){var H=function(){function B(){this._map=new u}return Object.defineProperty(B.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),B.prototype.has=function(_){return this._map.has(_)},B.prototype.add=function(_){return this._map.set(_,_),this},B.prototype.delete=function(_){return this._map.delete(_)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[Y]=function(){return this.keys()},B}();return H}function E1(){var H=16,B=C.create(),_=V();return function(){function A(){this._key=V()}return A.prototype.has=function(E){var R=F(E,!1);return R!==void 0?C.has(R,this._key):!1},A.prototype.get=function(E){var R=F(E,!1);return R!==void 0?C.get(R,this._key):void 0},A.prototype.set=function(E,R){var D=F(E,!0);return D[this._key]=R,this},A.prototype.delete=function(E){var R=F(E,!1);return R!==void 0?delete R[this._key]:!1},A.prototype.clear=function(){this._key=V()},A}();function V(){var A;do A="@@WeakMap@@"+f();while(C.has(B,A));return B[A]=!0,A}function F(A,E){if(!W.call(A,_)){if(!E)return;Object.defineProperty(A,_,{value:C.create()})}return A[_]}function T(A,E){for(var R=0;R<E;++R)A[R]=Math.random()*255|0;return A}function x(A){if(typeof Uint8Array==="function"){var E=new Uint8Array(A);if(typeof crypto<"u")crypto.getRandomValues(E);else if(typeof msCrypto<"u")msCrypto.getRandomValues(E);else T(E,A);return E}return T(Array(A),A)}function f(){var A=x(H);A[6]=A[6]&79|64,A[8]=A[8]&191|128;var E="";for(var R=0;R<H;++R){var D=A[R];if(R===4||R===6||R===8)E+="-";if(D<16)E+="0";E+=D.toString(16).toLowerCase()}return E}}function qX(H){return H.__=void 0,delete H.__,H}})})(IX||(IX={}))});var j$,r6,a6,t6,e6;var pX=v1(()=>{j$=class j$ extends Error{statusCode;details;constructor($,X,J){super(X);this.statusCode=$;this.details=J;if(this.name="HTTPException",Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};r6=class r6 extends j${constructor($="Not Found",X){super(404,$,X);this.name="NotFoundException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};a6=class a6 extends j${constructor($="Unauthorized",X){super(401,$,X);this.name="UnauthorizedException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};t6=class t6 extends j${constructor($="Forbidden",X){super(403,$,X);this.name="ForbiddenException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};e6=class e6 extends j${constructor($="Bad Request",X){super(400,$,X);this.name="BadRequestException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}}});var $9={};KX($9,{zodToGraphQLType:()=>r,zodObjectToGraphQLType:()=>Z1,zodObjectToGraphQLInput:()=>m1,isNullable:()=>R$,hasResolverMetadata:()=>g1,hasFieldMetadata:()=>x1,getResolverMetadata:()=>h1,getFieldsMetadata:()=>P1,getFieldMetadata:()=>T1,getDefaultValue:()=>QX,getArgumentsMetadata:()=>i$,Subscription:()=>k1,Resolver:()=>C1,Query:()=>O1,Mutation:()=>f1,GraphQLSubscription:()=>k1,GraphQLSchemaBuilder:()=>a$,GraphQLQuery:()=>O1,GraphQLPlugin:()=>dX,GraphQLMutation:()=>f1,GraphQLCtx:()=>I1,GQLSubscription:()=>k1,GQLQuery:()=>O1,GQLMutation:()=>f1,GQLContext:()=>I1,Arg:()=>K1});module.exports=b1($9);var W9=S1(hX()),WX=Symbol("graphql:resolver"),E$=Symbol("graphql:field"),g$=Symbol("graphql:args");function C1($){return(X)=>{let J={target:X,name:$||X.name};Reflect.defineMetadata(WX,J,X)}}function O1($,X){return YX("query",$,X)}function f1($,X){return YX("mutation",$,X)}function k1($,X){return YX("subscription",$,X)}function YX($,X,J){return(W,q)=>{let Q={target:W.constructor,propertyKey:q,type:$,name:X||q,description:J?.description,deprecated:J?.deprecated,deprecationReason:J?.deprecationReason},Y=Reflect.getMetadata(E$,W.constructor)||[];Y.push(Q),Reflect.defineMetadata(E$,Y,W.constructor),Reflect.defineMetadata(E$,Q,W,q)}}function K1($,X,J){return(W,q,Q)=>{if(!q)return;let Y=Reflect.getMetadata(g$,W,q)||[],G={index:Q,name:$,schema:X,description:J?.description,defaultValue:J?.defaultValue,nullable:J?.nullable};Y[Q]=G,Reflect.defineMetadata(g$,Y,W,q)}}function I1(){return($,X,J)=>{if(!X)return;let W=Reflect.getMetadata(g$,$,X)||[],q={index:J,name:"__context__",nullable:!1};W[J]=q,Reflect.defineMetadata(g$,W,$,X)}}function h1($){return Reflect.getMetadata(WX,$)}function P1($){return Reflect.getMetadata(E$,$)||[]}function T1($,X){return Reflect.getMetadata(E$,$,X)}function i$($,X){return Reflect.getMetadata(g$,$,X)||[]}function g1($){return Reflect.hasMetadata(WX,$)}function x1($,X){return Reflect.hasMetadata(E$,$,X)}function r($){let X=$._def.typeName;if(X==="ZodString")return"String";if(X==="ZodNumber"){if($._def.checks?.some((W)=>W.kind==="int"))return"Int";return"Float"}if(X==="ZodBoolean")return"Boolean";if(X==="ZodArray")return`[${r($._def.type)}]`;if(X==="ZodObject")return"JSON";if(X==="ZodOptional")return r($._def.innerType);if(X==="ZodNullable")return r($._def.innerType);if(X==="ZodDefault")return r($._def.innerType);if(X==="ZodEnum")return"String";if(X==="ZodUnion"){let J=$._def.options;if(J&&J.length>0)return r(J[0])}if(X==="ZodLiteral"){let J=$._def.value;if(typeof J==="string")return"String";if(typeof J==="number")return"Float";if(typeof J==="boolean")return"Boolean"}if(X==="ZodDate")return"String";return"String"}function R$($){let X=$._def.typeName;if(X==="ZodOptional"||X==="ZodNullable")return!0;if(X==="ZodDefault")return R$($._def.innerType);return!1}function QX($){let X=$._def.typeName;if(X==="ZodDefault")return $._def.defaultValue();if(X==="ZodOptional"||X==="ZodNullable"){let J=$._def.innerType;if(J)return QX(J)}return}function Z1($,X){if(X._def.typeName!=="ZodObject")throw Error("Schema must be a ZodObject");let W=X._def.shape(),q=[];for(let[Q,Y]of Object.entries(W)){let G=Y,z=r(G),C=R$(G)?z:`${z}!`;q.push(` ${Q}: ${C}`)}return`type ${$} {
14
+ ***************************************************************************** */var IX;(function($){(function(X){var J=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:G(),W=q($);if(typeof J.Reflect<"u")W=q(J.Reflect,W);if(X(W,J),typeof J.Reflect>"u")J.Reflect=$;function q(z,U){return function(C,Z){if(Object.defineProperty(z,C,{configurable:!0,writable:!0,value:Z}),U)U(C,Z)}}function Q(){try{return Function("return this;")()}catch(z){}}function Y(){try{return(0,eval)("(function() { return this; })()")}catch(z){}}function G(){return Q()||Y()}})(function(X,J){var W=Object.prototype.hasOwnProperty,q=typeof Symbol==="function",Q=q&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",Y=q&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",G=typeof Object.create==="function",z={__proto__:[]}instanceof Array,U=!G&&!z,C={create:G?function(){return qX(Object.create(null))}:z?function(){return qX({__proto__:null})}:function(){return qX({})},has:U?function(H,B){return W.call(H,B)}:function(H,B){return B in H},get:U?function(H,B){return W.call(H,B)?H[B]:void 0}:function(H,B){return H[B]}},Z=Object.getPrototypeOf(Function),u=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:N1(),t$=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:A1(),e$=typeof WeakMap==="function"?WeakMap:E1(),V$=q?Symbol.for("@reflect-metadata:registry"):void 0,n$=z1(),wX=j1(n$);function oX(H,B,_,V){if(!M(_)){if(!DX(H))throw TypeError();if(!P(B))throw TypeError();if(!P(V)&&!M(V)&&!N$(V))throw TypeError();if(N$(V))V=void 0;return _=s(_),Y1(H,B,_,V)}else{if(!DX(H))throw TypeError();if(!UX(B))throw TypeError();return W1(H,B)}}X("decorate",oX);function sX(H,B){function _(V,F){if(!P(V))throw TypeError();if(!M(F)&&!G1(F))throw TypeError();NX(H,B,V,F)}return _}X("metadata",sX);function rX(H,B,_,V){if(!P(_))throw TypeError();if(!M(V))V=s(V);return NX(H,B,_,V)}X("defineMetadata",rX);function aX(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return zX(H,B,_)}X("hasMetadata",aX);function tX(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return $X(H,B,_)}X("hasOwnMetadata",tX);function eX(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return jX(H,B,_)}X("getMetadata",eX);function $1(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);return VX(H,B,_)}X("getOwnMetadata",$1);function X1(H,B){if(!P(H))throw TypeError();if(!M(B))B=s(B);return AX(H,B)}X("getMetadataKeys",X1);function J1(H,B){if(!P(H))throw TypeError();if(!M(B))B=s(B);return EX(H,B)}X("getOwnMetadataKeys",J1);function q1(H,B,_){if(!P(B))throw TypeError();if(!M(_))_=s(_);if(!P(B))throw TypeError();if(!M(_))_=s(_);var V=P$(B,_,!1);if(M(V))return!1;return V.OrdinaryDeleteMetadata(H,B,_)}X("deleteMetadata",q1);function W1(H,B){for(var _=H.length-1;_>=0;--_){var V=H[_],F=V(B);if(!M(F)&&!N$(F)){if(!UX(F))throw TypeError();B=F}}return B}function Y1(H,B,_,V){for(var F=H.length-1;F>=0;--F){var T=H[F],x=T(B,_,V);if(!M(x)&&!N$(x)){if(!P(x))throw TypeError();V=x}}return V}function zX(H,B,_){var V=$X(H,B,_);if(V)return!0;var F=JX(B);if(!N$(F))return zX(H,F,_);return!1}function $X(H,B,_){var V=P$(B,_,!1);if(M(V))return!1;return LX(V.OrdinaryHasOwnMetadata(H,B,_))}function jX(H,B,_){var V=$X(H,B,_);if(V)return VX(H,B,_);var F=JX(B);if(!N$(F))return jX(H,F,_);return}function VX(H,B,_){var V=P$(B,_,!1);if(M(V))return;return V.OrdinaryGetOwnMetadata(H,B,_)}function NX(H,B,_,V){var F=P$(_,V,!0);F.OrdinaryDefineOwnMetadata(H,B,_,V)}function AX(H,B){var _=EX(H,B),V=JX(H);if(V===null)return _;var F=AX(V,B);if(F.length<=0)return _;if(_.length<=0)return F;var T=new t$,x=[];for(var f=0,A=_;f<A.length;f++){var E=A[f],R=T.has(E);if(!R)T.add(E),x.push(E)}for(var D=0,K=F;D<K.length;D++){var E=K[D],R=T.has(E);if(!R)T.add(E),x.push(E)}return x}function EX(H,B){var _=P$(H,B,!1);if(!_)return[];return _.OrdinaryOwnMetadataKeys(H,B)}function RX(H){if(H===null)return 1;switch(typeof H){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return H===null?1:6;default:return 6}}function M(H){return H===void 0}function N$(H){return H===null}function Q1(H){return typeof H==="symbol"}function P(H){return typeof H==="object"?H!==null:typeof H==="function"}function H1(H,B){switch(RX(H)){case 0:return H;case 1:return H;case 2:return H;case 3:return H;case 4:return H;case 5:return H}var _=B===3?"string":B===5?"number":"default",V=FX(H,Q);if(V!==void 0){var F=V.call(H,_);if(P(F))throw TypeError();return F}return B1(H,_==="default"?"number":_)}function B1(H,B){if(B==="string"){var _=H.toString;if(A$(_)){var V=_.call(H);if(!P(V))return V}var F=H.valueOf;if(A$(F)){var V=F.call(H);if(!P(V))return V}}else{var F=H.valueOf;if(A$(F)){var V=F.call(H);if(!P(V))return V}var T=H.toString;if(A$(T)){var V=T.call(H);if(!P(V))return V}}throw TypeError()}function LX(H){return!!H}function _1(H){return""+H}function s(H){var B=H1(H,3);if(Q1(B))return B;return _1(B)}function DX(H){return Array.isArray?Array.isArray(H):H instanceof Object?H instanceof Array:Object.prototype.toString.call(H)==="[object Array]"}function A$(H){return typeof H==="function"}function UX(H){return typeof H==="function"}function G1(H){switch(RX(H)){case 3:return!0;case 4:return!0;default:return!1}}function XX(H,B){return H===B||H!==H&&B!==B}function FX(H,B){var _=H[B];if(_===void 0||_===null)return;if(!A$(_))throw TypeError();return _}function SX(H){var B=FX(H,Y);if(!A$(B))throw TypeError();var _=B.call(H);if(!P(_))throw TypeError();return _}function bX(H){return H.value}function MX(H){var B=H.next();return B.done?!1:B}function vX(H){var B=H.return;if(B)B.call(H)}function JX(H){var B=Object.getPrototypeOf(H);if(typeof H!=="function"||H===Z)return B;if(B!==Z)return B;var _=H.prototype,V=_&&Object.getPrototypeOf(_);if(V==null||V===Object.prototype)return B;var F=V.constructor;if(typeof F!=="function")return B;if(F===H)return B;return F}function w1(){var H;if(!M(V$)&&typeof J.Reflect<"u"&&!(V$ in J.Reflect)&&typeof J.Reflect.defineMetadata==="function")H=V1(J.Reflect);var B,_,V,F=new e$,T={registerProvider:x,getProvider:A,setProvider:R};return T;function x(D){if(!Object.isExtensible(T))throw Error("Cannot add provider to a frozen registry.");switch(!0){case H===D:break;case M(B):B=D;break;case B===D:break;case M(_):_=D;break;case _===D:break;default:if(V===void 0)V=new t$;V.add(D);break}}function f(D,K){if(!M(B)){if(B.isProviderFor(D,K))return B;if(!M(_)){if(_.isProviderFor(D,K))return B;if(!M(V)){var I=SX(V);while(!0){var g=MX(I);if(!g)return;var c=bX(g);if(c.isProviderFor(D,K))return vX(I),c}}}}if(!M(H)&&H.isProviderFor(D,K))return H;return}function A(D,K){var I=F.get(D),g;if(!M(I))g=I.get(K);if(!M(g))return g;if(g=f(D,K),!M(g)){if(M(I))I=new u,F.set(D,I);I.set(K,g)}return g}function E(D){if(M(D))throw TypeError();return B===D||_===D||!M(V)&&V.has(D)}function R(D,K,I){if(!E(I))throw Error("Metadata provider not registered.");var g=A(D,K);if(g!==I){if(!M(g))return!1;var c=F.get(D);if(M(c))c=new u,F.set(D,c);c.set(K,I)}return!0}}function z1(){var H;if(!M(V$)&&P(J.Reflect)&&Object.isExtensible(J.Reflect))H=J.Reflect[V$];if(M(H))H=w1();if(!M(V$)&&P(J.Reflect)&&Object.isExtensible(J.Reflect))Object.defineProperty(J.Reflect,V$,{enumerable:!1,configurable:!1,writable:!1,value:H});return H}function j1(H){var B=new e$,_={isProviderFor:function(E,R){var D=B.get(E);if(M(D))return!1;return D.has(R)},OrdinaryDefineOwnMetadata:x,OrdinaryHasOwnMetadata:F,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:f,OrdinaryDeleteMetadata:A};return n$.registerProvider(_),_;function V(E,R,D){var K=B.get(E),I=!1;if(M(K)){if(!D)return;K=new u,B.set(E,K),I=!0}var g=K.get(R);if(M(g)){if(!D)return;if(g=new u,K.set(R,g),!H.setProvider(E,R,_)){if(K.delete(R),I)B.delete(E);throw Error("Wrong provider for target.")}}return g}function F(E,R,D){var K=V(R,D,!1);if(M(K))return!1;return LX(K.has(E))}function T(E,R,D){var K=V(R,D,!1);if(M(K))return;return K.get(E)}function x(E,R,D,K){var I=V(D,K,!0);I.set(E,R)}function f(E,R){var D=[],K=V(E,R,!1);if(M(K))return D;var I=K.keys(),g=SX(I),c=0;while(!0){var CX=MX(g);if(!CX)return D.length=c,D;var R1=bX(CX);try{D[c]=R1}catch(L1){try{vX(g)}finally{throw L1}}c++}}function A(E,R,D){var K=V(R,D,!1);if(M(K))return!1;if(!K.delete(E))return!1;if(K.size===0){var I=B.get(R);if(!M(I)){if(I.delete(D),I.size===0)B.delete(I)}}return!0}}function V1(H){var{defineMetadata:B,hasOwnMetadata:_,getOwnMetadata:V,getOwnMetadataKeys:F,deleteMetadata:T}=H,x=new e$,f={isProviderFor:function(A,E){var R=x.get(A);if(!M(R)&&R.has(E))return!0;if(F(A,E).length){if(M(R))R=new t$,x.set(A,R);return R.add(E),!0}return!1},OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:_,OrdinaryGetOwnMetadata:V,OrdinaryOwnMetadataKeys:F,OrdinaryDeleteMetadata:T};return f}function P$(H,B,_){var V=n$.getProvider(H,B);if(!M(V))return V;if(_){if(n$.setProvider(H,B,wX))return wX;throw Error("Illegal state.")}return}function N1(){var H={},B=[],_=function(){function f(A,E,R){this._index=0,this._keys=A,this._values=E,this._selector=R}return f.prototype["@@iterator"]=function(){return this},f.prototype[Y]=function(){return this},f.prototype.next=function(){var A=this._index;if(A>=0&&A<this._keys.length){var E=this._selector(this._keys[A],this._values[A]);if(A+1>=this._keys.length)this._index=-1,this._keys=B,this._values=B;else this._index++;return{value:E,done:!1}}return{value:void 0,done:!0}},f.prototype.throw=function(A){if(this._index>=0)this._index=-1,this._keys=B,this._values=B;throw A},f.prototype.return=function(A){if(this._index>=0)this._index=-1,this._keys=B,this._values=B;return{value:A,done:!0}},f}(),V=function(){function f(){this._keys=[],this._values=[],this._cacheKey=H,this._cacheIndex=-2}return Object.defineProperty(f.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),f.prototype.has=function(A){return this._find(A,!1)>=0},f.prototype.get=function(A){var E=this._find(A,!1);return E>=0?this._values[E]:void 0},f.prototype.set=function(A,E){var R=this._find(A,!0);return this._values[R]=E,this},f.prototype.delete=function(A){var E=this._find(A,!1);if(E>=0){var R=this._keys.length;for(var D=E+1;D<R;D++)this._keys[D-1]=this._keys[D],this._values[D-1]=this._values[D];if(this._keys.length--,this._values.length--,XX(A,this._cacheKey))this._cacheKey=H,this._cacheIndex=-2;return!0}return!1},f.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=H,this._cacheIndex=-2},f.prototype.keys=function(){return new _(this._keys,this._values,F)},f.prototype.values=function(){return new _(this._keys,this._values,T)},f.prototype.entries=function(){return new _(this._keys,this._values,x)},f.prototype["@@iterator"]=function(){return this.entries()},f.prototype[Y]=function(){return this.entries()},f.prototype._find=function(A,E){if(!XX(this._cacheKey,A)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(XX(this._keys[R],A)){this._cacheIndex=R;break}}if(this._cacheIndex<0&&E)this._cacheIndex=this._keys.length,this._keys.push(A),this._values.push(void 0);return this._cacheIndex},f}();return V;function F(f,A){return f}function T(f,A){return A}function x(f,A){return[f,A]}}function A1(){var H=function(){function B(){this._map=new u}return Object.defineProperty(B.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),B.prototype.has=function(_){return this._map.has(_)},B.prototype.add=function(_){return this._map.set(_,_),this},B.prototype.delete=function(_){return this._map.delete(_)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[Y]=function(){return this.keys()},B}();return H}function E1(){var H=16,B=C.create(),_=V();return function(){function A(){this._key=V()}return A.prototype.has=function(E){var R=F(E,!1);return R!==void 0?C.has(R,this._key):!1},A.prototype.get=function(E){var R=F(E,!1);return R!==void 0?C.get(R,this._key):void 0},A.prototype.set=function(E,R){var D=F(E,!0);return D[this._key]=R,this},A.prototype.delete=function(E){var R=F(E,!1);return R!==void 0?delete R[this._key]:!1},A.prototype.clear=function(){this._key=V()},A}();function V(){var A;do A="@@WeakMap@@"+f();while(C.has(B,A));return B[A]=!0,A}function F(A,E){if(!W.call(A,_)){if(!E)return;Object.defineProperty(A,_,{value:C.create()})}return A[_]}function T(A,E){for(var R=0;R<E;++R)A[R]=Math.random()*255|0;return A}function x(A){if(typeof Uint8Array==="function"){var E=new Uint8Array(A);if(typeof crypto<"u")crypto.getRandomValues(E);else if(typeof msCrypto<"u")msCrypto.getRandomValues(E);else T(E,A);return E}return T(Array(A),A)}function f(){var A=x(H);A[6]=A[6]&79|64,A[8]=A[8]&191|128;var E="";for(var R=0;R<H;++R){var D=A[R];if(R===4||R===6||R===8)E+="-";if(D<16)E+="0";E+=D.toString(16).toLowerCase()}return E}}function qX(H){return H.__=void 0,delete H.__,H}})})(IX||(IX={}))});var j$,r6,a6,t6,e6;var pX=v1(()=>{j$=class j$ extends Error{statusCode;details;constructor($,X,J){super(X);this.statusCode=$;this.details=J;if(this.name="HTTPException",Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};r6=class r6 extends j${constructor($="Not Found",X){super(404,$,X);this.name="NotFoundException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};a6=class a6 extends j${constructor($="Unauthorized",X){super(401,$,X);this.name="UnauthorizedException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};t6=class t6 extends j${constructor($="Forbidden",X){super(403,$,X);this.name="ForbiddenException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}};e6=class e6 extends j${constructor($="Bad Request",X){super(400,$,X);this.name="BadRequestException"}toJSON(){return{error:this.message,statusCode:this.statusCode,...this.details&&{details:this.details}}}}});var $9={};KX($9,{zodToGraphQLType:()=>r,zodObjectToGraphQLType:()=>Z1,zodObjectToGraphQLInput:()=>m1,isNullable:()=>R$,hasResolverMetadata:()=>g1,hasFieldMetadata:()=>x1,getResolverMetadata:()=>h1,getFieldsMetadata:()=>P1,getFieldMetadata:()=>T1,getDefaultValue:()=>QX,getArgumentsMetadata:()=>i$,Subscription:()=>k1,Resolver:()=>C1,Mutation:()=>f1,GraphQLSubscription:()=>k1,GraphQLSchemaBuilder:()=>a$,GraphQLQuery:()=>O1,GraphQLPlugin:()=>dX,GraphQLMutation:()=>f1,GraphQLCtx:()=>I1,GQLSubscription:()=>k1,GQLQuery:()=>O1,GQLMutation:()=>f1,GQLContext:()=>I1,Arg:()=>K1});module.exports=b1($9);var W9=S1(hX()),WX=Symbol("graphql:resolver"),E$=Symbol("graphql:field"),g$=Symbol("graphql:args");function C1($){return(X)=>{let J={target:X,name:$||X.name};Reflect.defineMetadata(WX,J,X)}}function O1($,X){return YX("query",$,X)}function f1($,X){return YX("mutation",$,X)}function k1($,X){return YX("subscription",$,X)}function YX($,X,J){return(W,q)=>{let Q={target:W.constructor,propertyKey:q,type:$,name:X||q,description:J?.description,deprecated:J?.deprecated,deprecationReason:J?.deprecationReason},Y=Reflect.getMetadata(E$,W.constructor)||[];Y.push(Q),Reflect.defineMetadata(E$,Y,W.constructor),Reflect.defineMetadata(E$,Q,W,q)}}function K1($,X,J){return(W,q,Q)=>{if(!q)return;let Y=Reflect.getMetadata(g$,W,q)||[],G={index:Q,name:$,schema:X,description:J?.description,defaultValue:J?.defaultValue,nullable:J?.nullable};Y[Q]=G,Reflect.defineMetadata(g$,Y,W,q)}}function I1(){return($,X,J)=>{if(!X)return;let W=Reflect.getMetadata(g$,$,X)||[],q={index:J,name:"__context__",nullable:!1};W[J]=q,Reflect.defineMetadata(g$,W,$,X)}}function h1($){return Reflect.getMetadata(WX,$)}function P1($){return Reflect.getMetadata(E$,$)||[]}function T1($,X){return Reflect.getMetadata(E$,$,X)}function i$($,X){return Reflect.getMetadata(g$,$,X)||[]}function g1($){return Reflect.hasMetadata(WX,$)}function x1($,X){return Reflect.hasMetadata(E$,$,X)}function r($){let X=$._def.typeName;if(X==="ZodString")return"String";if(X==="ZodNumber"){if($._def.checks?.some((W)=>W.kind==="int"))return"Int";return"Float"}if(X==="ZodBoolean")return"Boolean";if(X==="ZodArray")return`[${r($._def.type)}]`;if(X==="ZodObject")return"JSON";if(X==="ZodOptional")return r($._def.innerType);if(X==="ZodNullable")return r($._def.innerType);if(X==="ZodDefault")return r($._def.innerType);if(X==="ZodEnum")return"String";if(X==="ZodUnion"){let J=$._def.options;if(J&&J.length>0)return r(J[0])}if(X==="ZodLiteral"){let J=$._def.value;if(typeof J==="string")return"String";if(typeof J==="number")return"Float";if(typeof J==="boolean")return"Boolean"}if(X==="ZodDate")return"String";return"String"}function R$($){let X=$._def.typeName;if(X==="ZodOptional"||X==="ZodNullable")return!0;if(X==="ZodDefault")return R$($._def.innerType);return!1}function QX($){let X=$._def.typeName;if(X==="ZodDefault")return $._def.defaultValue();if(X==="ZodOptional"||X==="ZodNullable"){let J=$._def.innerType;if(J)return QX(J)}return}function Z1($,X){if(X._def.typeName!=="ZodObject")throw Error("Schema must be a ZodObject");let W=X._def.shape(),q=[];for(let[Q,Y]of Object.entries(W)){let G=Y,z=r(G),C=R$(G)?z:`${z}!`;q.push(` ${Q}: ${C}`)}return`type ${$} {
15
15
  ${q.join(`
16
16
  `)}
17
17
  }`}function m1($,X){if(X._def.typeName!=="ZodObject")throw Error("Schema must be a ZodObject");let W=X._def.shape(),q=[];for(let[Q,Y]of Object.entries(W)){let G=Y,z=r(G),U=R$(G),C=QX(G),Z=U?z:`${z}!`;if(C!==void 0){let u=JSON.stringify(C);Z+=` = ${u}`}q.push(` ${Q}: ${Z}`)}return`input ${$} {
@@ -80,4 +80,4 @@ ${q.join(`
80
80
  </html>
81
81
  `.trim()}getSchema(){return this.schema}}
82
82
 
83
- //# debugId=143F45CD545869C564756E2164756E21
83
+ //# debugId=DE66DC141B24CAEF64756E2164756E21