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