@ez4/gateway 0.23.0 → 0.24.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/dist/errors/preferences.d.ts +8 -0
- package/dist/library.cjs +221 -207
- package/dist/library.d.ts +1 -0
- package/dist/library.mjs +195 -182
- package/dist/main.cjs +16 -16
- package/dist/main.mjs +13 -13
- package/dist/metadata/body.d.ts +1 -1
- package/dist/metadata/preferences.d.ts +3 -0
- package/dist/metadata/utils.d.ts +1 -0
- package/dist/services/common.d.ts +23 -1
- package/dist/services/contract.d.ts +13 -8
- package/dist/services/types.d.ts +9 -0
- package/dist/types/common.d.ts +12 -5
- package/dist/utils/body.d.ts +2 -2
- package/dist/utils/query.d.ts +1 -1
- package/dist/utils.cjs +21 -19
- package/dist/utils.mjs +24 -18
- package/package.json +9 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IncorrectTypeError, InvalidTypeError } from '@ez4/common/library';
|
|
2
|
+
export declare class InvalidPreferencesTypeError extends InvalidTypeError {
|
|
3
|
+
constructor(fileName?: string);
|
|
4
|
+
}
|
|
5
|
+
export declare class IncorrectPreferencesTypeError extends IncorrectTypeError {
|
|
6
|
+
preferencesType: string;
|
|
7
|
+
constructor(preferencesType: string, fileName?: string);
|
|
8
|
+
}
|
package/dist/library.cjs
CHANGED
|
@@ -1,215 +1,229 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
typeof
|
|
3
|
-
|
|
4
|
-
IncompleteHandlerError:()=>
|
|
5
|
-
IncorrectBodyTypeError:()=>
|
|
6
|
-
IncorrectDefaultsTypeError:()=>
|
|
7
|
-
IncorrectParameterTypeError:()=>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
t
|
|
19
|
-
e
|
|
20
|
-
e)&&(0,
|
|
21
|
-
e,"Http.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
e)?
|
|
39
|
-
e),r,
|
|
40
|
-
|
|
1
|
+
"use strict";var ge=Object.defineProperty;var Yr=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames;var Xr=Object.prototype.hasOwnProperty;var p=(e,r)=>ge(e,"name",{value:r,configurable:!0});var Zr=(e,r)=>{for(var t in r)ge(e,t,{get:r[t],enumerable:!0})},_r=(e,r,t,o)=>{if(r&&
|
|
2
|
+
typeof r=="object"||typeof r=="function")for(let n of Wr(r))!Xr.call(e,n)&&n!==t&&
|
|
3
|
+
ge(e,n,{get:()=>r[n],enumerable:!(o=Yr(r,n))||o.enumerable});return e};var $r=e=>_r(ge({},"__esModule",{value:!0}),e);var Tt={};Zr(Tt,{IncompleteAuthorizerError:()=>Y,IncompleteCacheError:()=>ye,IncompleteCorsError:()=>ae,
|
|
4
|
+
IncompleteHandlerError:()=>me,IncompleteRouteError:()=>K,IncompleteServiceError:()=>N,
|
|
5
|
+
IncorrectBodyTypeError:()=>te,IncorrectCacheTypeError:()=>Te,IncorrectCorsTypeError:()=>fe,
|
|
6
|
+
IncorrectDefaultsTypeError:()=>G,IncorrectHeadersTypeError:()=>L,IncorrectIdentityTypeError:()=>_,
|
|
7
|
+
IncorrectParameterTypeError:()=>ie,IncorrectPreferencesTypeError:()=>Q,IncorrectQueryTypeError:()=>le,
|
|
8
|
+
IncorrectRequestTypeError:()=>pe,IncorrectResponseTypeError:()=>X,InvalidBodyTypeError:()=>re,
|
|
9
|
+
InvalidCacheTypeError:()=>de,InvalidCorsTypeError:()=>ue,InvalidDefaultsTypeError:()=>J,
|
|
10
|
+
InvalidHeadersTypeError:()=>$,InvalidIdentityTypeError:()=>Z,InvalidParameterTypeError:()=>se,
|
|
11
|
+
InvalidPreferencesTypeError:()=>V,InvalidQueryTypeError:()=>ce,InvalidRequestTypeError:()=>ne,
|
|
12
|
+
InvalidResponseTypeError:()=>W,InvalidRouteErrorTypeError:()=>R,ServiceType:()=>Me,
|
|
13
|
+
getHttpAuthRequest:()=>Ge,getHttpAuthResponse:()=>Ue,getHttpAuthorizer:()=>We,getHttpBody:()=>oe,
|
|
14
|
+
getHttpCache:()=>Le,getHttpCors:()=>_e,getHttpHandler:()=>Xe,getHttpHandlerRequest:()=>Ke,
|
|
15
|
+
getHttpHandlerResponse:()=>Ve,getHttpHeaders:()=>ee,getHttpIdentity:()=>j,getHttpParameters:()=>Qe,
|
|
16
|
+
getHttpQuery:()=>Je,getHttpRoutes:()=>Ze,getHttpServices:()=>er,isHttpService:()=>Lr,
|
|
17
|
+
registerTriggers:()=>dt});module.exports=$r(Tt);var Jr=require("@ez4/common/library"),Gr=require("@ez4/schema/library"),Kr=require("@ez4/project/library");var g=require("@ez4/common/library"),Vr=require("@ez4/reflection");var Me="@ez4/http",Lr=p(e=>e.type===Me,"isHttpService");var rr=require("@ez4/common/library");var N=class extends rr.IncompleteTypeError{static{p(this,"IncompleteServiceError")}constructor(r,t){
|
|
18
|
+
super("Incomplete service",r,t)}};var y=require("@ez4/common/library"),P=require("@ez4/reflection");var M=require("@ez4/common/library"),v=require("@ez4/reflection");var a=require("@ez4/common/library"),A=require("@ez4/reflection");var et=new Set(["ANY","GET","POST","PUT","PATCH","DELETE","OPTIONS"]),tr=p(e=>{let[
|
|
19
|
+
r]=e.split(" ",2);return et.has(r)},"isHttpPath"),or=p(e=>(0,a.isClassDeclaration)(
|
|
20
|
+
e)&&(0,a.hasHeritageType)(e,"Http.Service"),"isHttpService"),nr=p(e=>(0,a.isModelDeclaration)(
|
|
21
|
+
e)&&(0,a.hasHeritageType)(e,"Http.Route"),"isHttpRoute");var pr=p(e=>(0,a.hasHeritageType)(e,"Http.Defaults"),"isHttpDefaults"),sr=p(e=>(0,a.hasHeritageType)(
|
|
22
|
+
e,"Http.Preferences"),"isHttpPreferences"),ir=p(e=>(0,a.hasHeritageType)(e,"Http\
|
|
23
|
+
.Headers"),"isHttpHeaders"),cr=p(e=>(0,a.hasHeritageType)(e,"Http.Identity"),"is\
|
|
24
|
+
HttpIdentity"),lr=p(e=>(0,a.hasHeritageType)(e,"Http.QueryStrings"),"isHttpQuery"),
|
|
25
|
+
mr=p(e=>(0,a.hasHeritageType)(e,"Http.PathParameters"),"isHttpParameters"),ar=p(
|
|
26
|
+
e=>(0,a.hasHeritageType)(e,"Http.JsonBody"),"isJsonBody"),ur=p(e=>(0,a.hasHeritageType)(
|
|
27
|
+
e,"Http.Cors"),"isHttpCors"),fr=p(e=>(0,a.hasHeritageType)(e,"Http.Cache"),"isHt\
|
|
28
|
+
tpCache"),yr=p(e=>(0,A.isTypeCallback)(e)||(0,A.isTypeFunction)(e),"isHttpAuthor\
|
|
29
|
+
izer"),dr=p(e=>(0,A.isTypeCallback)(e)||(0,A.isTypeFunction)(e),"isHttpHandler");var U=require("@ez4/schema");var He=p((e,r,t,o)=>{if(!(0,v.isTypeReference)(e))return Tr(e,r,o);let n=(0,M.getReferenceType)(
|
|
30
|
+
e,t);if(n)return Tr(n,r,o)},"getHttpPreferences"),Tr=p((e,r,t)=>{if((0,v.isTypeObject)(
|
|
31
|
+
e))return gr(r,(0,M.getObjectMembers)(e),t);if(!(0,M.isModelDeclaration)(e)){t.push(
|
|
32
|
+
new V(r.file));return}if(!sr(e)){t.push(new Q(e.name,r.file));return}return gr(r,
|
|
33
|
+
(0,M.getModelMembers)(e),t)},"getTypePreferences"),gr=p((e,r,t)=>{let o={};for(let n of r)
|
|
34
|
+
if((0,v.isModelProperty)(n))switch(n.name){default:t.push(new M.InvalidServicePropertyError(
|
|
35
|
+
e.name,n.name,e.file));break;case"namingStyle":o.namingStyle=(0,M.getPropertyStringIn)(
|
|
36
|
+
n,[U.NamingStyle.CamelCase,U.NamingStyle.PascalCase,U.NamingStyle.SnakeCase,U.NamingStyle.
|
|
37
|
+
KebabCase]);break}return o},"getTypeFromMembers");var S=require("@ez4/common/library"),be=require("@ez4/utils"),x=require("@ez4/reflection");var he=p((e,r,t,o)=>{if(!(0,x.isTypeReference)(e))return Mr(e,r,t,o);let n=(0,S.getReferenceType)(
|
|
38
|
+
e,t);return n?Mr(n,r,t,o):null},"getHttpErrors"),Mr=p((e,r,t,o)=>(0,x.isTypeObject)(
|
|
39
|
+
e)?rt(e,r,(0,S.getObjectMembers)(e),t,o):null,"getTypeErrors"),rt=p((e,r,t,o,n)=>{
|
|
40
|
+
let s={};for(let i of t){if(!(0,x.isModelProperty)(i)||i.inherited)continue;let c=parseInt(
|
|
41
|
+
i.name,10);(0,be.isAnyNumber)(c)||n.push(new S.InvalidServicePropertyError(r.name,
|
|
42
|
+
i.name,e.file));let l=tt(i,c,r,o,n);l&&Object.assign(s,l)}return(0,be.isEmptyObject)(
|
|
43
|
+
s)?null:s},"getTypeFromMembers"),tt=p((e,r,t,o,n)=>{let s=(0,S.getPropertyTuple)(
|
|
44
|
+
e)??[],i={};for(let c of s){if(!(0,x.isTypeReference)(c)){n.push(new R(t.file));
|
|
45
|
+
continue}let l=(0,S.getReferenceType)(c,o);if(!l||!(0,x.isTypeClass)(l)){n.push(
|
|
46
|
+
new R(t.file));continue}i[l.name]=r}return i},"getErrorClasses");var hr=p((e,r,t,o)=>{if(!(0,P.isTypeReference)(e))return Hr(e,r,t,o);let n=(0,y.getReferenceType)(
|
|
47
|
+
e,t);return n?Hr(n,r,t,o):null},"getHttpDefaults"),Hr=p((e,r,t,o)=>(0,P.isTypeObject)(
|
|
48
|
+
e)?br(r,(0,y.getObjectMembers)(e),t,o):(0,y.isModelDeclaration)(e)?pr(e)?br(r,(0,y.getModelMembers)(
|
|
49
|
+
e),t,o):(o.push(new G(e.name,r.file)),null):(o.push(new J(r.file)),null),"getTyp\
|
|
50
|
+
eDefaults"),br=p((e,r,t,o)=>{let n={};for(let s of r)if(!(!(0,P.isModelProperty)(
|
|
41
51
|
s)||s.inherited))switch(s.name){default:o.push(new y.InvalidServicePropertyError(
|
|
42
|
-
e.name,s.name,e.file));break;case"httpErrors":n.httpErrors=
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
super("Incomplete gateway route",t
|
|
47
|
-
"InvalidRouteErrorTypeError")}constructor(
|
|
48
|
-
ror")}constructor(t
|
|
49
|
-
sponse",void 0,
|
|
50
|
-
|
|
51
|
-
response",
|
|
52
|
-
ponseTypeError")}};var h=require("@ez4/reflection"),
|
|
53
|
-
super("Invalid identity",void 0,"Http.Identity",
|
|
54
|
-
super("Incorrect identity",
|
|
55
|
-
"IncorrectIdentityTypeError")}};var
|
|
56
|
-
|
|
57
|
-
e))return
|
|
58
|
-
"getHttpIdentity"),
|
|
59
|
-
t,
|
|
60
|
-
e))return o.push(new
|
|
61
|
-
null;let n=f(e,
|
|
62
|
-
"getTypeIdentity"),
|
|
63
|
-
n.push(i)}return n.length>1?(0,
|
|
64
|
-
ntityFromUnion");var
|
|
65
|
-
super("Invalid headers",void 0,"Http.Headers",
|
|
66
|
-
super("Incorrect headers",
|
|
67
|
-
IncorrectHeadersTypeError")}};var
|
|
68
|
-
e,
|
|
69
|
-
e)||(0,
|
|
70
|
-
(o.push(new
|
|
71
|
-
super("Invalid body",void 0,"Http.JsonBody",
|
|
72
|
-
super("Incorrect body",
|
|
73
|
-
rectBodyTypeError")}};var
|
|
74
|
-
e))return null;if(!(0,d.isTypeReference)(e))return
|
|
75
|
-
e,
|
|
76
|
-
e):null,"getScalarTypeBody"),
|
|
77
|
-
|
|
78
|
-
o)):(0,d.isTypeObject)(e)||(0,d.isTypeIntersection)(e)?f(e,
|
|
79
|
-
e)?
|
|
80
|
-
"getCompoundTypeBody"),
|
|
81
|
-
o.push(s)}return o.length?(0,
|
|
82
|
-
ypeBody"),
|
|
83
|
-
null},"getArrayTypeBody");var
|
|
84
|
-
"getHttpAuthResponse"),
|
|
85
|
-
|
|
86
|
-
e))return
|
|
87
|
-
null},"getHttpResponse"),
|
|
88
|
-
e.status),"isValidHandlerResponse"),
|
|
89
|
-
|
|
90
|
-
e,n)?
|
|
91
|
-
(o.push(new
|
|
92
|
-
if(!(!(0,
|
|
93
|
-
|
|
94
|
-
headers":{s.headers=
|
|
95
|
-
i.description);break}case"identity":{s.identity=
|
|
96
|
-
(s.identity.description=i.description);break}case"body":{s.body
|
|
52
|
+
e.name,s.name,e.file));break;case"httpErrors":n.httpErrors=he(s.value,e,t,o);break;case"\
|
|
53
|
+
preferences":n.preferences=He(s.value,e,t,o);break;case"memory":case"logRetentio\
|
|
54
|
+
n":case"timeout":n[s.name]=(0,y.getPropertyNumber)(s);break;case"listener":n.listener=
|
|
55
|
+
(0,y.getServiceListener)(s.value,o);break}return n},"getTypeFromMembers");var E=require("@ez4/reflection"),m=require("@ez4/common/library");var Se=require("@ez4/common/library");var K=class extends Se.IncompleteTypeError{static{p(this,"IncompleteRouteError")}constructor(r,t){
|
|
56
|
+
super("Incomplete gateway route",r,t)}},R=class extends Se.TypeError{static{p(this,
|
|
57
|
+
"InvalidRouteErrorTypeError")}constructor(r){super("Invalid route error type.",r)}};var Sr=require("@ez4/common/library");var Y=class extends Sr.IncompleteTypeError{static{p(this,"IncompleteAuthorizerEr\
|
|
58
|
+
ror")}constructor(r,t){super("Incomplete route authorizer",r,t)}};var T=require("@ez4/common/library"),z=require("@ez4/reflection"),Rr=require("@ez4/utils");var xe=require("@ez4/common/library");var W=class extends xe.InvalidTypeError{constructor(t,o){super("Invalid route re\
|
|
59
|
+
sponse",void 0,t,o);this.baseType=t}static{p(this,"InvalidResponseTypeError")}},
|
|
60
|
+
X=class extends xe.IncorrectTypeError{constructor(t,o,n){super("Incorrect route \
|
|
61
|
+
response",t,o,n);this.responseType=t;this.baseType=o}static{p(this,"IncorrectRes\
|
|
62
|
+
ponseTypeError")}};var h=require("@ez4/reflection"),Ae=require("@ez4/common/library"),Ir=require("@ez4/schema/library");var Ie=require("@ez4/common/library");var Z=class extends Ie.InvalidTypeError{static{p(this,"InvalidIdentityTypeError")}constructor(r){
|
|
63
|
+
super("Invalid identity",void 0,"Http.Identity",r)}},_=class extends Ie.IncorrectTypeError{constructor(t,o){
|
|
64
|
+
super("Incorrect identity",t,"Http.Identity",o);this.identityType=t}static{p(this,
|
|
65
|
+
"IncorrectIdentityTypeError")}};var Ee=require("@ez4/schema/library");var f=p((e,r)=>{let t=(0,Ee.getObjectSchema)(e,r);return t&&(0,Ee.isObjectSchema)(
|
|
66
|
+
t)?t:null},"getSchemaFromType");var j=p((e,r,t,o)=>{if((0,h.isTypeUndefined)(e))return null;if(!(0,h.isTypeReference)(
|
|
67
|
+
e))return xr(e,r,t,o);let n=(0,Ae.getReferenceType)(e,t);return n?xr(n,r,t,o):null},
|
|
68
|
+
"getHttpIdentity"),xr=p((e,r,t,o)=>{if((0,h.isTypeUnion)(e))return ot(e.elements,
|
|
69
|
+
r,t,o);if((0,h.isTypeObject)(e)||(0,h.isTypeIntersection)(e))return f(e,t);if(!(0,Ae.isModelDeclaration)(
|
|
70
|
+
e))return o.push(new Z(r.file)),null;if(!cr(e))return o.push(new _(e.name,r.file)),
|
|
71
|
+
null;let n=f(e,t);return n&&(n.definitions={...n.definitions,extensible:!0}),n},
|
|
72
|
+
"getTypeIdentity"),ot=p((e,r,t,o)=>{let n=[];for(let s of e){let i=j(s,r,t,o);i&&
|
|
73
|
+
n.push(i)}return n.length>1?(0,Ir.createUnionSchema)({elements:n}):n[0]},"getIde\
|
|
74
|
+
ntityFromUnion");var w=require("@ez4/reflection"),Re=require("@ez4/common/library");var ve=require("@ez4/common/library");var $=class extends ve.InvalidTypeError{static{p(this,"InvalidHeadersTypeError")}constructor(r){
|
|
75
|
+
super("Invalid headers",void 0,"Http.Headers",r)}},L=class extends ve.IncorrectTypeError{constructor(t,o){
|
|
76
|
+
super("Incorrect headers",t,"Http.Headers",o);this.headersType=t}static{p(this,"\
|
|
77
|
+
IncorrectHeadersTypeError")}};var ee=p((e,r,t,o)=>{if(!(0,w.isTypeReference)(e))return Er(e,r,t,o);let n=(0,Re.getReferenceType)(
|
|
78
|
+
e,t);return n?Er(n,r,t,o):null},"getHttpHeaders"),Er=p((e,r,t,o)=>(0,w.isTypeObject)(
|
|
79
|
+
e)||(0,w.isTypeIntersection)(e)?f(e,t):(0,Re.isModelDeclaration)(e)?ir(e)?f(e,t):
|
|
80
|
+
(o.push(new L(e.name,r.file)),null):(o.push(new $(r.file)),null),"getTypeHeaders");var O=require("@ez4/schema/library"),je=require("@ez4/common/library"),d=require("@ez4/reflection");var Pe=require("@ez4/common/library");var re=class extends Pe.InvalidTypeError{static{p(this,"InvalidBodyTypeError")}constructor(r){
|
|
81
|
+
super("Invalid body",void 0,"Http.JsonBody",r)}},te=class extends Pe.IncorrectTypeError{constructor(t,o){
|
|
82
|
+
super("Incorrect body",t,"Http.JsonBody",o);this.bodyType=t}static{p(this,"Incor\
|
|
83
|
+
rectBodyTypeError")}};var oe=p((e,r,t,o)=>Ne(e,t,n=>Fe(n)??Be(n,r,t,o)),"getHttpBody"),Ne=p((e,r,t)=>{
|
|
84
|
+
if((0,d.isTypeUndefined)(e))return null;if(!(0,d.isTypeReference)(e))return t(e);
|
|
85
|
+
let o=(0,je.getReferenceType)(e,r);return o?t(o):null},"getTypeBody"),Fe=p(e=>(0,d.isTypeScalar)(
|
|
86
|
+
e)?(0,O.getScalarSchema)(e):null,"getScalarTypeBody"),Be=p((e,r,t,o)=>(0,d.isTypeUnion)(
|
|
87
|
+
e)?nt(e.elements,t,n=>Fe(n)??Be(n,r,t,o)):(0,d.isTypeArray)(e)?pt(e.element,t,n=>Fe(
|
|
88
|
+
n)??Be(n,r,t,o)):(0,d.isTypeObject)(e)||(0,d.isTypeIntersection)(e)?f(e,t):(0,je.isModelDeclaration)(
|
|
89
|
+
e)?ar(e)?f(e,t):(o.push(new te(e.name,e.file)),null):(o.push(new re(r.file)),null),
|
|
90
|
+
"getCompoundTypeBody"),nt=p((e,r,t)=>{let o=[];for(let n of e){let s=Ne(n,r,t);s&&
|
|
91
|
+
o.push(s)}return o.length?(0,O.createUnionSchema)({elements:o}):null},"getUnionT\
|
|
92
|
+
ypeBody"),pt=p((e,r,t)=>{let o=Ne(e,r,t);return o?(0,O.createArraySchema)({element:o}):
|
|
93
|
+
null},"getArrayTypeBody");var Ue=p((e,r,t,o)=>{let n=Pr(e,r,t,o,"Http.AuthResponse");return n&&st(n)?n:null},
|
|
94
|
+
"getHttpAuthResponse"),Ve=p((e,r,t,o)=>{let n=Pr(e,r,t,o,"Http.Response");return n&&
|
|
95
|
+
it(n)?n:null},"getHttpHandlerResponse"),Pr=p((e,r,t,o,n)=>{if(!(0,z.isTypeReference)(
|
|
96
|
+
e))return Ar(e,r,t,o,n);let s=(0,T.getReferenceType)(e,t);return s?Ar(s,r,t,o,n):
|
|
97
|
+
null},"getHttpResponse"),st=p(e=>!!e.identity,"isValidAuthResponse"),it=p(e=>(0,Rr.isAnyNumber)(
|
|
98
|
+
e.status),"isValidHandlerResponse"),Ar=p((e,r,t,o,n)=>(0,z.isTypeObject)(e)?vr(e,
|
|
99
|
+
r,(0,T.getObjectMembers)(e),t,o):(0,T.isModelDeclaration)(e)?(0,T.hasHeritageType)(
|
|
100
|
+
e,n)?vr(e,r,(0,T.getModelMembers)(e),t,o):(o.push(new X(e.name,n,e.file)),null):
|
|
101
|
+
(o.push(new W(n,r.file)),null),"getTypeResponse"),vr=p((e,r,t,o,n)=>{let s={};for(let i of t)
|
|
102
|
+
if(!(!(0,z.isModelProperty)(i)||i.inherited))switch(i.name){default:n.push(new T.InvalidServicePropertyError(
|
|
103
|
+
r.name,i.name,e.file));break;case"status":s.status=(0,T.getPropertyNumber)(i);break;case"\
|
|
104
|
+
headers":{s.headers=ee(i.value,e,o,n),s.headers&&i.description&&(s.headers.description=
|
|
105
|
+
i.description);break}case"identity":{s.identity=j(i.value,e,o,n),s.identity&&i.description&&
|
|
106
|
+
(s.identity.description=i.description);break}case"body":{s.body=oe(i.value,e,o,n),
|
|
97
107
|
s.body&&i.description&&(s.body.description=i.description);break}}return s},"getT\
|
|
98
|
-
ypeFromMembers");var
|
|
99
|
-
|
|
100
|
-
super("Incorrect route request",
|
|
101
|
-
p(this,"IncorrectRequestTypeError")}};var
|
|
102
|
-
r")}constructor(
|
|
103
|
-
s",
|
|
104
|
-
request parameters",
|
|
105
|
-
"IncorrectParameterTypeError")}};var
|
|
106
|
-
e,
|
|
107
|
-
e)||(0,
|
|
108
|
-
(o.push(new
|
|
109
|
-
eter");var
|
|
110
|
-
super("Invalid request query strings",void 0,"Http.QueryStrings",
|
|
111
|
-
super("Incorrect request query strings",
|
|
112
|
-
|
|
113
|
-
e,
|
|
114
|
-
e)||(0,
|
|
115
|
-
(o.push(new
|
|
116
|
-
e,t,
|
|
117
|
-
e)&&e.elements.length>0)return
|
|
118
|
-
e))return
|
|
119
|
-
null},"getHttpRequest"),
|
|
120
|
-
e),
|
|
121
|
-
e),
|
|
122
|
-
|
|
123
|
-
i)||i.inherited))switch(i.name){default:n.push(new
|
|
124
|
-
|
|
108
|
+
ypeFromMembers");var I=require("@ez4/reflection"),H=require("@ez4/common/library");var we=require("@ez4/common/library");var ne=class extends we.InvalidTypeError{constructor(t,o){super("Invalid route r\
|
|
109
|
+
equest",void 0,t,o);this.baseType=t}static{p(this,"InvalidRequestTypeError")}},pe=class extends we.IncorrectTypeError{constructor(t,o,n){
|
|
110
|
+
super("Incorrect route request",t,o,n);this.requestType=t;this.baseType=o}static{
|
|
111
|
+
p(this,"IncorrectRequestTypeError")}};var C=require("@ez4/reflection"),ze=require("@ez4/common/library");var Oe=require("@ez4/common/library");var se=class extends Oe.InvalidTypeError{static{p(this,"InvalidParameterTypeErro\
|
|
112
|
+
r")}constructor(r){super("Invalid request parameters",void 0,"Http.PathParameter\
|
|
113
|
+
s",r)}},ie=class extends Oe.IncorrectTypeError{constructor(t,o){super("Incorrect\
|
|
114
|
+
request parameters",t,"Http.PathParameters",o);this.parametersType=t}static{p(this,
|
|
115
|
+
"IncorrectParameterTypeError")}};var Qe=p((e,r,t,o)=>{if(!(0,C.isTypeReference)(e))return jr(e,r,t,o);let n=(0,ze.getReferenceType)(
|
|
116
|
+
e,t);return n?jr(n,r,t,o):null},"getHttpParameters"),jr=p((e,r,t,o)=>(0,C.isTypeObject)(
|
|
117
|
+
e)||(0,C.isTypeIntersection)(e)?f(e,t):(0,ze.isModelDeclaration)(e)?mr(e)?f(e,t):
|
|
118
|
+
(o.push(new ie(e.name,e.file)),null):(o.push(new se(r.file)),null),"getTypeParam\
|
|
119
|
+
eter");var k=require("@ez4/reflection"),ke=require("@ez4/common/library");var Ce=require("@ez4/common/library");var ce=class extends Ce.InvalidTypeError{static{p(this,"InvalidQueryTypeError")}constructor(r){
|
|
120
|
+
super("Invalid request query strings",void 0,"Http.QueryStrings",r)}},le=class extends Ce.IncorrectTypeError{constructor(t,o){
|
|
121
|
+
super("Incorrect request query strings",t,"Http.QueryStrings",o);this.queryType=
|
|
122
|
+
t}static{p(this,"IncorrectQueryTypeError")}};var Je=p((e,r,t,o)=>{if(!(0,k.isTypeReference)(e))return wr(e,r,t,o);let n=(0,ke.getReferenceType)(
|
|
123
|
+
e,t);return n?wr(n,r,t,o):null},"getHttpQuery"),wr=p((e,r,t,o)=>(0,k.isTypeObject)(
|
|
124
|
+
e)||(0,k.isTypeIntersection)(e)?f(e,t):(0,ke.isModelDeclaration)(e)?lr(e)?f(e,t):
|
|
125
|
+
(o.push(new le(e.name,r.file)),null):(o.push(new ce(r.file)),null),"getTypeQuery");var Ge=p((e,r,t,o)=>Ye(e,r,t,o,"Http.AuthRequest"),"getHttpAuthRequest"),Ke=p((e,r,t,o)=>Ye(
|
|
126
|
+
e,r,t,o,"Http.Request"),"getHttpHandlerRequest"),Ye=p((e,r,t,o,n)=>{if((0,I.isTypeIntersection)(
|
|
127
|
+
e)&&e.elements.length>0)return Ye(e.elements[0],r,t,o,n);if(!(0,I.isTypeReference)(
|
|
128
|
+
e))return Or(e,r,t,o,n);let s=(0,H.getReferenceType)(e,t);return s?Or(s,r,t,o,n):
|
|
129
|
+
null},"getHttpRequest"),Or=p((e,r,t,o,n)=>(0,I.isTypeObject)(e)?zr(e,r,(0,H.getObjectMembers)(
|
|
130
|
+
e),t,o):(0,H.isModelDeclaration)(e)?(0,H.hasHeritageType)(e,n)?zr(e,r,(0,H.getModelMembers)(
|
|
131
|
+
e),t,o):(o.push(new pe(e.name,n,e.file)),null):(o.push(new ne(n,r.file)),null),"\
|
|
132
|
+
getTypeRequest"),zr=p((e,r,t,o,n)=>{let s={};for(let i of t)if(!(!(0,I.isModelProperty)(
|
|
133
|
+
i)||i.inherited))switch(i.name){default:n.push(new H.InvalidServicePropertyError(
|
|
134
|
+
r.name,i.name,e.file));break;case"headers":{s.headers=ee(i.value,e,o,n),s.headers&&
|
|
125
135
|
i.description&&(s.headers.description=i.description);break}case"identity":{s.identity=
|
|
126
|
-
|
|
127
|
-
break}case"query":{s.query=
|
|
128
|
-
i.description);break}case"parameters":{s.parameters=
|
|
136
|
+
j(i.value,e,o,n),s.identity&&i.description&&(s.identity.description=i.description);
|
|
137
|
+
break}case"query":{s.query=Je(i.value,e,o,n),s.query&&i.description&&(s.query.description=
|
|
138
|
+
i.description);break}case"parameters":{s.parameters=Qe(i.value,e,o,n),s.parameters&&
|
|
129
139
|
i.description&&(s.parameters.description=i.description);break}case"body":{s.body=
|
|
130
|
-
|
|
131
|
-
return s},"getTypeFromMembers");var
|
|
132
|
-
description&&(
|
|
133
|
-
file=e.file)&&
|
|
134
|
-
|
|
135
|
-
[...
|
|
136
|
-
|
|
137
|
-
r")}constructor(t
|
|
138
|
-
|
|
139
|
-
"name"),(
|
|
140
|
-
|
|
141
|
-
"response"))}return
|
|
142
|
-
|
|
143
|
-
tHttpRoutes"),
|
|
144
|
-
isArray(i)?n.push(...i):i&&n.push(i)}return n},"getRouteFromTuple"),
|
|
145
|
-
if(!(0,
|
|
146
|
-
return n?
|
|
147
|
-
ValidRoute"),
|
|
148
|
-
e)?
|
|
149
|
-
t,
|
|
150
|
-
er"]);for(let c of
|
|
151
|
-
n.push(new m.InvalidServicePropertyError(
|
|
152
|
-
let l=(0,m.getPropertyString)(c);l&&
|
|
153
|
-
handler":(s.handler=
|
|
154
|
-
s.authorizer=
|
|
155
|
-
o,n);break;case"
|
|
156
|
-
|
|
157
|
-
(0,m.
|
|
158
|
-
c,n);break
|
|
159
|
-
|
|
160
|
-
super("Incomplete HTTP CORS",t
|
|
161
|
-
this,"InvalidCorsTypeError")}constructor(
|
|
162
|
-
"Http.Cors",
|
|
163
|
-
ncorrect HTTP CORS type",
|
|
164
|
-
orrectCorsTypeError")}};var
|
|
165
|
-
e,
|
|
166
|
-
sValidCors"),
|
|
167
|
-
|
|
168
|
-
new
|
|
169
|
-
let n={},s=new Set(["allowOrigins"]);for(let i of
|
|
170
|
-
i)||i.inherited))switch(i.name){default:o.push(new
|
|
171
|
-
|
|
172
|
-
ders":case"exposeHeaders":n[i.name]=(0,
|
|
173
|
-
lowCredentials":n.allowCredentials=(0,
|
|
174
|
-
n.maxAge=(0,
|
|
175
|
-
file)),null)},"getTypeFromMembers");var
|
|
176
|
-
super("Incomplete gateway cache",t
|
|
177
|
-
p(this,"InvalidCacheTypeError")}constructor(
|
|
178
|
-
void 0,"Http.Cache",
|
|
179
|
-
super("Incorrect gateway cache type",
|
|
180
|
-
this,"IncorrectCacheTypeError")}};var
|
|
181
|
-
e,
|
|
182
|
-
"isValidCache"),
|
|
183
|
-
e),
|
|
184
|
-
new
|
|
185
|
-
(e,t,
|
|
186
|
-
i)||i.inherited))switch(i.name){default:o.push(new
|
|
187
|
-
|
|
188
|
-
i);(0
|
|
189
|
-
push(new
|
|
190
|
-
n))continue;let s={type:
|
|
140
|
+
oe(i.value,e,o,n),s.body&&i.description&&(s.body.description=i.description);break}}
|
|
141
|
+
return s},"getTypeFromMembers");var We=p((e,r,t,o)=>{if(!yr(e))return null;let{description:n,module:s}=e,i={...n&&
|
|
142
|
+
{description:n},...s&&{module:s}},c=new Set(["name","file"]);if((i.name=e.name)&&
|
|
143
|
+
c.delete("name"),(i.file=e.file)&&c.delete("file"),e.parameters){let[{value:l}]=e.
|
|
144
|
+
parameters;i.request=Ge(l,r,t,o)}return e.return&&(i.response=Ue(e.return,r,t,o)),
|
|
145
|
+
ct(i)?i:(o.push(new Y([...c],e.file)),null)},"getHttpAuthorizer"),ct=p(e=>!!e.name&&
|
|
146
|
+
!!e.file,"isValidAuthorizer");var Cr=require("@ez4/common/library");var me=class extends Cr.IncompleteTypeError{static{p(this,"IncompleteHandlerErro\
|
|
147
|
+
r")}constructor(r,t){super("Incomplete route handler",r,t)}};var Xe=p((e,r,t,o)=>{if(!dr(e))return null;let{description:n,module:s}=e,i={...n&&
|
|
148
|
+
{description:n},...s&&{module:s}},c=new Set(["name","file","response"]);if((i.name=
|
|
149
|
+
e.name)&&c.delete("name"),(i.file=e.file)&&c.delete("file"),e.parameters){let[{value:l}]=e.
|
|
150
|
+
parameters;i.request=Ke(l,r,t,o)}if(e.return){let l=Ve(e.return,r,t,o);l&&(i.response=
|
|
151
|
+
l,c.delete("response"))}return lt(i)?i:(o.push(new me([...c],e.file)),null)},"ge\
|
|
152
|
+
tHttpHandler"),lt=p(e=>!!e.name&&!!e.file&&!!e.response,"isValidHandler");var Ze=p((e,r,t,o)=>{let n=(0,m.getPropertyTuple)(r)??[];return Dr(n,e,t,o)},"ge\
|
|
153
|
+
tHttpRoutes"),Dr=p((e,r,t,o)=>{let n=[];for(let s of e){let i=mt(s,r,t,o);Array.
|
|
154
|
+
isArray(i)?n.push(...i):i&&n.push(i)}return n},"getRouteFromTuple"),mt=p((e,r,t,o)=>{
|
|
155
|
+
if(!(0,E.isTypeReference)(e))return kr(e,r,t,o);let n=(0,m.getReferenceType)(e,t);
|
|
156
|
+
return n?kr(n,r,t,o):null},"getTypeFromRoute"),at=p(e=>!!e.path&&!!e.handler,"is\
|
|
157
|
+
ValidRoute"),kr=p((e,r,t,o)=>nr(e)?qr(e,r,(0,m.getModelMembers)(e),t,o):(0,E.isTypeObject)(
|
|
158
|
+
e)?qr(e,r,(0,m.getObjectMembers)(e),t,o):(0,E.isTypeTuple)(e)&&e.spread?Dr(e.elements,
|
|
159
|
+
r,t,o):null,"getRouteType"),qr=p((e,r,t,o,n)=>{let s={},i=new Set(["path","handl\
|
|
160
|
+
er"]);for(let c of t)if(!(!(0,E.isModelProperty)(c)||c.inherited))switch(c.name){default:
|
|
161
|
+
n.push(new m.InvalidServicePropertyError(r.name,c.name,e.file));break;case"path":{
|
|
162
|
+
let l=(0,m.getPropertyString)(c);l&&tr(l)&&(i.delete(c.name),s.path=l);break}case"\
|
|
163
|
+
handler":(s.handler=Xe(c.value,r,o,n))&&i.delete(c.name);break;case"authorizer":
|
|
164
|
+
s.authorizer=We(c.value,r,o,n);break;case"httpErrors":s.httpErrors=he(c.value,r,
|
|
165
|
+
o,n);break;case"preferences":s.preferences=He(c.value,r,o,n);break;case"memory":case"\
|
|
166
|
+
logRetention":case"timeout":s[c.name]=(0,m.getPropertyNumber)(c);break;case"cors":
|
|
167
|
+
s.cors=(0,m.getPropertyBoolean)(c);break;case"listener":s.listener=(0,m.getServiceListener)(
|
|
168
|
+
c.value,n);break;case"variables":s.variables=(0,m.getLinkedVariableList)(c,n);break}
|
|
169
|
+
return at(s)?s:(n.push(new K([...i],e.file)),null)},"getTypeFromMembers");var u=require("@ez4/common/library"),D=require("@ez4/reflection");var q=require("@ez4/common/library");var ae=class extends q.IncompleteTypeError{static{p(this,"IncompleteCorsError")}constructor(r,t){
|
|
170
|
+
super("Incomplete HTTP CORS",r,t)}},ue=class extends q.InvalidTypeError{static{p(
|
|
171
|
+
this,"InvalidCorsTypeError")}constructor(r){super("Invalid HTTP CORS type",void 0,
|
|
172
|
+
"Http.Cors",r)}},fe=class extends q.IncorrectTypeError{constructor(t,o){super("I\
|
|
173
|
+
ncorrect HTTP CORS type",t,"Http.Cors",o);this.fallbackType=t}static{p(this,"Inc\
|
|
174
|
+
orrectCorsTypeError")}};var _e=p((e,r,t,o)=>{if(!(0,D.isTypeReference)(e))return Fr(e,r,o);let n=(0,u.getReferenceType)(
|
|
175
|
+
e,t);return n?Fr(n,r,o):null},"getHttpCors"),ut=p(e=>!!e.allowOrigins?.length,"i\
|
|
176
|
+
sValidCors"),Fr=p((e,r,t)=>(0,D.isTypeObject)(e)?Br(e,r,(0,u.getObjectMembers)(e),
|
|
177
|
+
t):(0,u.isModelDeclaration)(e)?ur(e)?Br(e,r,(0,u.getModelMembers)(e),t):(t.push(
|
|
178
|
+
new fe(e.name,e.file)),null):(t.push(new ue(r.file)),null),"getTypeCors"),Br=p((e,r,t,o)=>{
|
|
179
|
+
let n={},s=new Set(["allowOrigins"]);for(let i of t)if(!(!(0,D.isModelProperty)(
|
|
180
|
+
i)||i.inherited))switch(i.name){default:o.push(new u.InvalidServicePropertyError(
|
|
181
|
+
r.name,i.name,e.file));break;case"allowOrigins":case"allowMethods":case"allowHea\
|
|
182
|
+
ders":case"exposeHeaders":n[i.name]=(0,u.getPropertyStringList)(i);break;case"al\
|
|
183
|
+
lowCredentials":n.allowCredentials=(0,u.getPropertyBoolean)(i);break;case"maxAge":
|
|
184
|
+
n.maxAge=(0,u.getPropertyNumber)(i);break}return ut(n)?n:(o.push(new ae([...s],e.
|
|
185
|
+
file)),null)},"getTypeFromMembers");var b=require("@ez4/common/library"),B=require("@ez4/reflection"),$e=require("@ez4/utils");var F=require("@ez4/common/library");var ye=class extends F.IncompleteTypeError{static{p(this,"IncompleteCacheError")}constructor(r,t){
|
|
186
|
+
super("Incomplete gateway cache",r,t)}},de=class extends F.InvalidTypeError{static{
|
|
187
|
+
p(this,"InvalidCacheTypeError")}constructor(r){super("Invalid gateway cache type",
|
|
188
|
+
void 0,"Http.Cache",r)}},Te=class extends F.IncorrectTypeError{constructor(t,o){
|
|
189
|
+
super("Incorrect gateway cache type",t,"Http.Cache",o);this.cacheType=t}static{p(
|
|
190
|
+
this,"IncorrectCacheTypeError")}};var Le=p((e,r,t,o)=>{if(!(0,B.isTypeReference)(e))return Nr(e,r,o);let n=(0,b.getReferenceType)(
|
|
191
|
+
e,t);return n?Nr(n,r,o):null},"getHttpCache"),ft=p(e=>(0,$e.isAnyNumber)(e.authorizerTTL),
|
|
192
|
+
"isValidCache"),Nr=p((e,r,t)=>(0,B.isTypeObject)(e)?Ur(e,r,(0,b.getObjectMembers)(
|
|
193
|
+
e),t):(0,b.isModelDeclaration)(e)?fr(e)?Ur(e,r,(0,b.getModelMembers)(e),t):(t.push(
|
|
194
|
+
new Te(e.name,e.file)),null):(t.push(new de(r.file)),null),"getTypeCache"),Ur=p(
|
|
195
|
+
(e,r,t,o)=>{let n={},s=new Set(["authorizerTTL"]);for(let i of t)if(!(!(0,B.isModelProperty)(
|
|
196
|
+
i)||i.inherited))switch(i.name){default:o.push(new b.InvalidServicePropertyError(
|
|
197
|
+
r.name,i.name,e.file));break;case"authorizerTTL":{let c=(0,b.getPropertyNumber)(
|
|
198
|
+
i);(0,$e.isAnyNumber)(c)&&(n[i.name]=c,s.delete(i.name));break}}return ft(n)?n:(o.
|
|
199
|
+
push(new ye([...s],e.file)),null)},"getTypeFromMembers");var er=p(e=>{let r={},t=[];for(let o in e){let n=e[o];if(!or(n)||(0,g.isExternalDeclaration)(
|
|
200
|
+
n))continue;let s={type:Me,extras:{}},i=new Set(["routes"]),c=n.file;s.name=n.name,
|
|
191
201
|
n.description&&(s.description=n.description);for(let l of(0,g.getModelMembers)(n))
|
|
192
|
-
if(!(!(0,
|
|
193
|
-
s.name,l.name,c));break;case"routes":(s.routes=
|
|
194
|
-
name":s.displayName=(0,g.getPropertyString)(l);break;case"defaults":s.defaults=
|
|
195
|
-
l.value,n,e,
|
|
196
|
-
|
|
197
|
-
l,
|
|
198
|
-
s)){
|
|
199
|
-
n.name,c));continue}
|
|
200
|
-
|
|
201
|
-
"@ez4/gateway",{"metadata:getServices":
|
|
202
|
-
super("Invalid defaults",void 0,"Http.Defaults",
|
|
203
|
-
super("Incorrect defaults",
|
|
204
|
-
"IncorrectDefaultsTypeError")}};
|
|
202
|
+
if(!(!(0,Vr.isModelProperty)(l)||l.inherited))switch(l.name){default:t.push(new g.InvalidServicePropertyError(
|
|
203
|
+
s.name,l.name,c));break;case"routes":(s.routes=Ze(n,l,e,t))&&i.delete(l.name);break;case"\
|
|
204
|
+
name":s.displayName=(0,g.getPropertyString)(l);break;case"defaults":s.defaults=hr(
|
|
205
|
+
l.value,n,e,t);break;case"cache":s.cache=Le(l.value,n,e,t);break;case"cors":s.cors=
|
|
206
|
+
_e(l.value,n,e,t);break;case"variables":s.variables=(0,g.getLinkedVariableList)(
|
|
207
|
+
l,t);break;case"services":s.services=(0,g.getLinkedServiceList)(l,e,t);break}if(!yt(
|
|
208
|
+
s)){t.push(new N([...i],c));continue}if(r[n.name]){t.push(new g.DuplicateServiceError(
|
|
209
|
+
n.name,c));continue}r[n.name]=s}return{services:r,errors:t}},"getHttpServices"),
|
|
210
|
+
yt=p(e=>!!e.name&&!!e.routes&&!!e.extras,"isValidService");var Qr=!1,dt=p(()=>{Qr||((0,Jr.registerTriggers)(),(0,Gr.registerTriggers)(),(0,Kr.createTrigger)(
|
|
211
|
+
"@ez4/gateway",{"metadata:getServices":er}),Qr=!0)},"registerTriggers");var qe=require("@ez4/common/library");var J=class extends qe.InvalidTypeError{static{p(this,"InvalidDefaultsTypeError")}constructor(r){
|
|
212
|
+
super("Invalid defaults",void 0,"Http.Defaults",r)}},G=class extends qe.IncorrectTypeError{constructor(t,o){
|
|
213
|
+
super("Incorrect defaults",t,"Http.Defaults",o);this.defaultsType=t}static{p(this,
|
|
214
|
+
"IncorrectDefaultsTypeError")}};var De=require("@ez4/common/library");var V=class extends De.InvalidTypeError{static{p(this,"InvalidPreferencesTypeErr\
|
|
215
|
+
or")}constructor(r){super("Invalid preferences",void 0,"Http.Preferences",r)}},Q=class extends De.IncorrectTypeError{constructor(t,o){
|
|
216
|
+
super("Incorrect preferences",t,"Http.Preferences",o);this.preferencesType=t}static{
|
|
217
|
+
p(this,"IncorrectPreferencesTypeError")}};0&&(module.exports={IncompleteAuthorizerError,IncompleteCacheError,IncompleteCorsError,
|
|
205
218
|
IncompleteHandlerError,IncompleteRouteError,IncompleteServiceError,IncorrectBodyTypeError,
|
|
206
219
|
IncorrectCacheTypeError,IncorrectCorsTypeError,IncorrectDefaultsTypeError,IncorrectHeadersTypeError,
|
|
207
|
-
IncorrectIdentityTypeError,IncorrectParameterTypeError,
|
|
208
|
-
IncorrectResponseTypeError,InvalidBodyTypeError,
|
|
209
|
-
InvalidDefaultsTypeError,InvalidHeadersTypeError,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
isHttpService,
|
|
220
|
+
IncorrectIdentityTypeError,IncorrectParameterTypeError,IncorrectPreferencesTypeError,
|
|
221
|
+
IncorrectQueryTypeError,IncorrectRequestTypeError,IncorrectResponseTypeError,InvalidBodyTypeError,
|
|
222
|
+
InvalidCacheTypeError,InvalidCorsTypeError,InvalidDefaultsTypeError,InvalidHeadersTypeError,
|
|
223
|
+
InvalidIdentityTypeError,InvalidParameterTypeError,InvalidPreferencesTypeError,InvalidQueryTypeError,
|
|
224
|
+
InvalidRequestTypeError,InvalidResponseTypeError,InvalidRouteErrorTypeError,ServiceType,
|
|
225
|
+
getHttpAuthRequest,getHttpAuthResponse,getHttpAuthorizer,getHttpBody,getHttpCache,
|
|
226
|
+
getHttpCors,getHttpHandler,getHttpHandlerRequest,getHttpHandlerResponse,getHttpHeaders,
|
|
227
|
+
getHttpIdentity,getHttpParameters,getHttpQuery,getHttpRoutes,getHttpServices,isHttpService,
|
|
228
|
+
registerTriggers});
|
|
215
229
|
//# sourceMappingURL=library.cjs.map
|
package/dist/library.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './metadata/cors.js';
|
|
|
14
14
|
export * from './metadata/cache.js';
|
|
15
15
|
export * from './errors/service.js';
|
|
16
16
|
export * from './errors/defaults.js';
|
|
17
|
+
export * from './errors/preferences.js';
|
|
17
18
|
export * from './errors/route.js';
|
|
18
19
|
export * from './errors/handler.js';
|
|
19
20
|
export * from './errors/identity.js';
|