@furystack/rest-service 6.1.7 → 6.2.1

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.
Files changed (131) hide show
  1. package/dist/actions/error-action.js.map +1 -1
  2. package/dist/actions/get-current-user.js.map +1 -1
  3. package/dist/actions/is-authenticated.js.map +1 -1
  4. package/dist/actions/login.js.map +1 -1
  5. package/dist/actions/logout.js.map +1 -1
  6. package/dist/actions/not-found-action.js.map +1 -1
  7. package/dist/api-manager.js.map +1 -1
  8. package/dist/authenticate.js.map +1 -1
  9. package/dist/authorize.js.map +1 -1
  10. package/dist/authorize.spec.js.map +1 -1
  11. package/dist/endpoint-generators/create-delete-endpoint.js.map +1 -1
  12. package/dist/endpoint-generators/create-get-collection-endpoint.js.map +1 -1
  13. package/dist/endpoint-generators/create-get-collection-endpoint.spec.js.map +1 -1
  14. package/dist/endpoint-generators/create-get-entity-endpoint.js.map +1 -1
  15. package/dist/endpoint-generators/create-get-entity-endpoint.spec.js.map +1 -1
  16. package/dist/endpoint-generators/create-patch-endpoint.js.map +1 -1
  17. package/dist/endpoint-generators/create-post-endpoint.js.map +1 -1
  18. package/dist/helpers.js.map +1 -1
  19. package/dist/http-authentication-settings.js.map +1 -1
  20. package/dist/http-user-context.js.map +1 -1
  21. package/dist/schema-validator/schema-validator.js.map +1 -1
  22. package/dist/schema-validator/schema-validator.test.js.map +1 -1
  23. package/dist/server-manager.js.map +1 -1
  24. package/dist/static-server-manager.js +1 -1
  25. package/dist/static-server-manager.js.map +1 -1
  26. package/dist/static-server-manager.spec.js +60 -18
  27. package/dist/static-server-manager.spec.js.map +1 -1
  28. package/package.json +9 -9
  29. package/src/actions/error-action.spec.ts +2 -2
  30. package/src/actions/error-action.ts +2 -1
  31. package/src/actions/get-current-user.spec.ts +1 -1
  32. package/src/actions/get-current-user.ts +4 -2
  33. package/src/actions/is-authenticated.spec.ts +1 -1
  34. package/src/actions/is-authenticated.ts +2 -1
  35. package/src/actions/login-action.spec.ts +1 -1
  36. package/src/actions/login.ts +3 -2
  37. package/src/actions/logout-action.spec.ts +1 -1
  38. package/src/actions/logout.ts +2 -1
  39. package/src/actions/not-found-action.spec.ts +1 -1
  40. package/src/actions/not-found-action.ts +2 -1
  41. package/src/add-cors-header.spec.ts +1 -1
  42. package/src/api-manager.ts +12 -7
  43. package/src/authenticate.spec.ts +2 -2
  44. package/src/authenticate.ts +2 -1
  45. package/src/authorize.spec.ts +4 -3
  46. package/src/authorize.ts +2 -1
  47. package/src/endpoint-generators/create-delete-endpoint.spec.ts +1 -1
  48. package/src/endpoint-generators/create-delete-endpoint.ts +4 -3
  49. package/src/endpoint-generators/create-get-collection-endpoint.spec.ts +3 -2
  50. package/src/endpoint-generators/create-get-collection-endpoint.ts +4 -3
  51. package/src/endpoint-generators/create-get-entity-endpoint.spec.ts +4 -2
  52. package/src/endpoint-generators/create-get-entity-endpoint.ts +5 -3
  53. package/src/endpoint-generators/create-patch-endpoint.spec.ts +1 -1
  54. package/src/endpoint-generators/create-patch-endpoint.ts +4 -3
  55. package/src/endpoint-generators/create-post-endpoint.spec.ts +1 -1
  56. package/src/endpoint-generators/create-post-endpoint.ts +6 -4
  57. package/src/endpoint-generators/utils.ts +1 -1
  58. package/src/helpers.ts +8 -6
  59. package/src/http-authentication-settings.ts +4 -2
  60. package/src/http-user-context.spec.ts +1 -1
  61. package/src/http-user-context.ts +4 -3
  62. package/src/request-action-implementation.ts +3 -3
  63. package/src/rest-service.integration.spec.ts +1 -1
  64. package/src/rest.integration.test.ts +1 -1
  65. package/src/schema-validator/schema-validation-error.ts +1 -1
  66. package/src/schema-validator/schema-validator.test.ts +2 -1
  67. package/src/schema-validator/schema-validator.ts +2 -1
  68. package/src/server-manager.ts +5 -4
  69. package/src/server-response-extensions.ts +1 -1
  70. package/src/static-server-manager.spec.ts +67 -19
  71. package/src/static-server-manager.ts +4 -2
  72. package/src/utils.ts +2 -2
  73. package/src/validate.integration.schema.ts +1 -1
  74. package/src/validate.integration.spec.ts +1 -1
  75. package/src/validate.ts +1 -1
  76. package/types/actions/error-action.d.ts +1 -1
  77. package/types/actions/error-action.d.ts.map +1 -1
  78. package/types/actions/get-current-user.d.ts +2 -2
  79. package/types/actions/get-current-user.d.ts.map +1 -1
  80. package/types/actions/is-authenticated.d.ts +1 -1
  81. package/types/actions/is-authenticated.d.ts.map +1 -1
  82. package/types/actions/login.d.ts +2 -2
  83. package/types/actions/login.d.ts.map +1 -1
  84. package/types/actions/logout.d.ts +1 -1
  85. package/types/actions/logout.d.ts.map +1 -1
  86. package/types/actions/not-found-action.d.ts +1 -1
  87. package/types/actions/not-found-action.d.ts.map +1 -1
  88. package/types/api-manager.d.ts +6 -6
  89. package/types/api-manager.d.ts.map +1 -1
  90. package/types/authenticate.d.ts +1 -1
  91. package/types/authenticate.d.ts.map +1 -1
  92. package/types/authorize.d.ts +1 -1
  93. package/types/authorize.d.ts.map +1 -1
  94. package/types/endpoint-generators/create-delete-endpoint.d.ts +3 -3
  95. package/types/endpoint-generators/create-delete-endpoint.d.ts.map +1 -1
  96. package/types/endpoint-generators/create-get-collection-endpoint.d.ts +3 -3
  97. package/types/endpoint-generators/create-get-collection-endpoint.d.ts.map +1 -1
  98. package/types/endpoint-generators/create-get-entity-endpoint.d.ts +3 -3
  99. package/types/endpoint-generators/create-get-entity-endpoint.d.ts.map +1 -1
  100. package/types/endpoint-generators/create-patch-endpoint.d.ts +3 -3
  101. package/types/endpoint-generators/create-patch-endpoint.d.ts.map +1 -1
  102. package/types/endpoint-generators/create-post-endpoint.d.ts +3 -3
  103. package/types/endpoint-generators/create-post-endpoint.d.ts.map +1 -1
  104. package/types/endpoint-generators/utils.d.ts +1 -1
  105. package/types/endpoint-generators/utils.d.ts.map +1 -1
  106. package/types/helpers.d.ts +6 -6
  107. package/types/helpers.d.ts.map +1 -1
  108. package/types/http-authentication-settings.d.ts +3 -2
  109. package/types/http-authentication-settings.d.ts.map +1 -1
  110. package/types/http-user-context.d.ts +3 -3
  111. package/types/http-user-context.d.ts.map +1 -1
  112. package/types/request-action-implementation.d.ts +3 -3
  113. package/types/request-action-implementation.d.ts.map +1 -1
  114. package/types/rest.integration.test.d.ts +1 -1
  115. package/types/rest.integration.test.d.ts.map +1 -1
  116. package/types/schema-validator/schema-validation-error.d.ts +1 -1
  117. package/types/schema-validator/schema-validation-error.d.ts.map +1 -1
  118. package/types/schema-validator/schema-validator.d.ts +1 -1
  119. package/types/schema-validator/schema-validator.d.ts.map +1 -1
  120. package/types/server-manager.d.ts +3 -3
  121. package/types/server-manager.d.ts.map +1 -1
  122. package/types/server-response-extensions.d.ts +1 -1
  123. package/types/server-response-extensions.d.ts.map +1 -1
  124. package/types/static-server-manager.d.ts +1 -1
  125. package/types/static-server-manager.d.ts.map +1 -1
  126. package/types/utils.d.ts +2 -2
  127. package/types/utils.d.ts.map +1 -1
  128. package/types/validate.d.ts +1 -1
  129. package/types/validate.d.ts.map +1 -1
  130. package/types/validate.integration.schema.d.ts +1 -1
  131. package/types/validate.integration.schema.d.ts.map +1 -1
@@ -4,20 +4,38 @@ import got, { RequestError } from 'got'
4
4
  import { ServerManager } from './server-manager'
5
5
  import { StaticServerManager } from './static-server-manager'
6
6
 
7
+ /**
8
+ * Generator for an incremental port number
9
+ *
10
+ * @param initialPort The initial port number
11
+ * @yields a port for testing
12
+ * @returns The Port number
13
+ */
14
+ function* getPort(initialPort = 1234) {
15
+ let port = initialPort
16
+
17
+ while (true) {
18
+ yield port++
19
+ }
20
+ return port
21
+ }
22
+
7
23
  describe('StaticServerManager', () => {
24
+ const portGenerator = getPort()
25
+
8
26
  describe('Top level routing', () => {
9
27
  it('Should return a 404 without fallback', async () => {
10
28
  await usingAsync(new Injector(), async (injector) => {
11
29
  const staticServerManager = injector.getInstance(StaticServerManager)
12
-
30
+ const port = portGenerator.next().value
13
31
  await staticServerManager.addStaticSite({
14
32
  baseUrl: '/',
15
33
  path: '.',
16
- port: 1234,
34
+ port,
17
35
  })
18
36
 
19
37
  try {
20
- await got.get('http://localhost:1234/not-found.html')
38
+ await got.get(`http://localhost:${port}/not-found.html`)
21
39
  } catch (error) {
22
40
  expect(error).toBeInstanceOf(RequestError)
23
41
  const requestError: RequestError = error as RequestError
@@ -32,18 +50,41 @@ describe('StaticServerManager', () => {
32
50
  it('Should return a fallback', async () => {
33
51
  await usingAsync(new Injector(), async (injector) => {
34
52
  const staticServerManager = injector.getInstance(StaticServerManager)
53
+ const port = portGenerator.next().value
54
+
55
+ await staticServerManager.addStaticSite({
56
+ baseUrl: '/',
57
+ path: '.',
58
+ fallback: 'package.json',
59
+ port,
60
+ headers: {
61
+ 'custom-header': 'custom-value',
62
+ },
63
+ })
64
+
65
+ const result = await got.get(`http://localhost:${port}/not-found.html`)
66
+
67
+ expect(result.headers['content-type']).toBe('application/json')
68
+ expect(result.headers['custom-header']).toBe('custom-value')
69
+ })
70
+ })
71
+
72
+ it('Should return a fallback for root files', async () => {
73
+ await usingAsync(new Injector(), async (injector) => {
74
+ const staticServerManager = injector.getInstance(StaticServerManager)
75
+ const port = portGenerator.next().value
35
76
 
36
77
  await staticServerManager.addStaticSite({
37
78
  baseUrl: '/',
38
79
  path: '.',
39
80
  fallback: 'package.json',
40
- port: 1234,
81
+ port,
41
82
  headers: {
42
83
  'custom-header': 'custom-value',
43
84
  },
44
85
  })
45
86
 
46
- const result = await got.get('http://localhost:1234/not-found.html')
87
+ const result = await got.get(`http://localhost:${port}`)
47
88
 
48
89
  expect(result.headers['content-type']).toBe('application/json')
49
90
  expect(result.headers['custom-header']).toBe('custom-value')
@@ -53,17 +94,18 @@ describe('StaticServerManager', () => {
53
94
  it('Should return a defined file from a root directory', async () => {
54
95
  await usingAsync(new Injector(), async (injector) => {
55
96
  const staticServerManager = injector.getInstance(StaticServerManager)
97
+ const port = portGenerator.next().value
56
98
 
57
99
  await staticServerManager.addStaticSite({
58
100
  baseUrl: '/',
59
101
  path: '.',
60
- port: 1234,
102
+ port,
61
103
  headers: {
62
104
  'custom-header': 'custom-value',
63
105
  },
64
106
  })
65
107
 
66
- const result = await got.get('http://localhost:1234/README.md')
108
+ const result = await got.get(`http://localhost:${port}/README.md`)
67
109
 
68
110
  expect(result.headers['content-type']).toBe('text/markdown')
69
111
  expect(result.headers['custom-header']).toBe('custom-value')
@@ -73,14 +115,15 @@ describe('StaticServerManager', () => {
73
115
  it('Should return a defined file from a subdirectory', async () => {
74
116
  await usingAsync(new Injector(), async (injector) => {
75
117
  const staticServerManager = injector.getInstance(StaticServerManager)
118
+ const port = portGenerator.next().value
76
119
 
77
120
  await staticServerManager.addStaticSite({
78
121
  baseUrl: '/',
79
122
  path: '.',
80
- port: 1234,
123
+ port,
81
124
  })
82
125
 
83
- const result = await got.get('http://localhost:1234/packages/utils/README.md')
126
+ const result = await got.get(`http://localhost:${port}/packages/utils/README.md`)
84
127
 
85
128
  expect(result.headers['content-type']).toBe('text/markdown')
86
129
  })
@@ -91,18 +134,19 @@ describe('StaticServerManager', () => {
91
134
  it('Should not handle a request when the path is not matching', async () => {
92
135
  await usingAsync(new Injector(), async (injector) => {
93
136
  const staticServerManager = injector.getInstance(StaticServerManager)
137
+ const port = portGenerator.next().value
94
138
 
95
139
  await staticServerManager.addStaticSite({
96
140
  baseUrl: '/bundle',
97
141
  path: '.',
98
- port: 1234,
142
+ port,
99
143
  })
100
144
 
101
145
  const server = [...injector.getInstance(ServerManager).servers.values()][0]
102
146
 
103
147
  server.apis[0].onRequest = jest.fn()
104
148
 
105
- got.get('http://localhost:1234/bundleToAnotherFolder/not-found.html')
149
+ got.get(`http://localhost:${port}/bundleToAnotherFolder/not-found.html`)
106
150
 
107
151
  await sleepAsync(100)
108
152
 
@@ -113,15 +157,16 @@ describe('StaticServerManager', () => {
113
157
  it('Should return a 404 without fallback', async () => {
114
158
  await usingAsync(new Injector(), async (injector) => {
115
159
  const staticServerManager = injector.getInstance(StaticServerManager)
160
+ const port = portGenerator.next().value
116
161
 
117
162
  await staticServerManager.addStaticSite({
118
163
  baseUrl: '/bundle',
119
164
  path: '.',
120
- port: 1234,
165
+ port,
121
166
  })
122
167
 
123
168
  try {
124
- await got.get('http://localhost:1234/bundle/not-found.html')
169
+ await got.get(`http://localhost:${port}/bundle/not-found.html`)
125
170
  } catch (error) {
126
171
  expect(error).toBeInstanceOf(RequestError)
127
172
  const requestError: RequestError = error as RequestError
@@ -136,15 +181,16 @@ describe('StaticServerManager', () => {
136
181
  it('Should return a fallback', async () => {
137
182
  await usingAsync(new Injector(), async (injector) => {
138
183
  const staticServerManager = injector.getInstance(StaticServerManager)
184
+ const port = portGenerator.next().value
139
185
 
140
186
  await staticServerManager.addStaticSite({
141
187
  baseUrl: '/bundle',
142
188
  path: '.',
143
189
  fallback: 'package.json',
144
- port: 1234,
190
+ port,
145
191
  })
146
192
 
147
- const result = await got.get('http://localhost:1234/bundle/not-found.html')
193
+ const result = await got.get(`http://localhost:${port}/bundle/not-found.html`)
148
194
 
149
195
  expect(result.headers['content-type']).toBe('application/json')
150
196
  })
@@ -153,14 +199,15 @@ describe('StaticServerManager', () => {
153
199
  it('Should return a defined file from a root directory', async () => {
154
200
  await usingAsync(new Injector(), async (injector) => {
155
201
  const staticServerManager = injector.getInstance(StaticServerManager)
202
+ const port = portGenerator.next().value
156
203
 
157
204
  await staticServerManager.addStaticSite({
158
205
  baseUrl: '/',
159
206
  path: '.',
160
- port: 1234,
207
+ port,
161
208
  })
162
209
 
163
- const result = await got.get('http://localhost:1234/README.md')
210
+ const result = await got.get(`http://localhost:${port}/README.md`)
164
211
 
165
212
  expect(result.headers['content-type']).toBe('text/markdown')
166
213
  })
@@ -169,14 +216,15 @@ describe('StaticServerManager', () => {
169
216
  it('Should return a defined file from a subdirectory', async () => {
170
217
  await usingAsync(new Injector(), async (injector) => {
171
218
  const staticServerManager = injector.getInstance(StaticServerManager)
219
+ const port = portGenerator.next().value
172
220
 
173
221
  await staticServerManager.addStaticSite({
174
222
  baseUrl: '/',
175
223
  path: '.',
176
- port: 1234,
224
+ port,
177
225
  })
178
226
 
179
- const result = await got.get('http://localhost:1234/packages/utils/README.md')
227
+ const result = await got.get(`http://localhost:${port}/packages/utils/README.md`)
180
228
 
181
229
  expect(result.headers['content-type']).toBe('text/markdown')
182
230
  })
@@ -1,7 +1,7 @@
1
1
  import { Injectable, Injected } from '@furystack/inject'
2
2
  import { createReadStream } from 'fs'
3
3
  import { stat } from 'fs/promises'
4
- import { IncomingMessage, OutgoingHttpHeaders, ServerResponse } from 'http'
4
+ import type { IncomingMessage, OutgoingHttpHeaders, ServerResponse } from 'http'
5
5
  import { getMimeForFile } from './mime-types'
6
6
  import { join, normalize, sep } from 'path'
7
7
  import { ServerManager } from './server-manager'
@@ -38,7 +38,9 @@ export class StaticServerManager {
38
38
  }
39
39
 
40
40
  res.writeHead(200, head)
41
- createReadStream(fullPath, { autoClose: true }).pipe(res)
41
+ await new Promise<void>((resolve, reject) =>
42
+ createReadStream(fullPath, { autoClose: true }).once('finish', resolve).once('error', reject).pipe(res),
43
+ )
42
44
  }
43
45
 
44
46
  public shouldExec =
package/src/utils.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { IncomingMessage, ServerResponse } from 'http'
1
+ import type { IncomingMessage, ServerResponse } from 'http'
2
2
  import { Injectable } from '@furystack/inject'
3
- import { CorsOptions } from './models/cors-options'
3
+ import type { CorsOptions } from './models/cors-options'
4
4
 
5
5
  /**
6
6
  * A collection of various HTTP API related utilities
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  DeleteEndpoint,
3
3
  GetCollectionEndpoint,
4
4
  GetEntityEndpoint,
@@ -7,7 +7,7 @@ import { Validate } from './validate'
7
7
  import './helpers'
8
8
 
9
9
  import schema from './validate.integration.spec.schema.json'
10
- import { ValidationApi } from './validate.integration.schema'
10
+ import type { ValidationApi } from './validate.integration.schema'
11
11
  import { useRestService } from './helpers'
12
12
 
13
13
  // To recreate: yarn ts-json-schema-generator -f tsconfig.json --no-type-check -p packages/rest-service/src/validate.integration.schema.ts -o packages/rest-service/src/validate.integration.spec.schema.json
package/src/validate.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ActionResult, RequestAction, RequestActionOptions } from './request-action-implementation'
1
+ import type { ActionResult, RequestAction, RequestActionOptions } from './request-action-implementation'
2
2
  import { SchemaValidator } from './schema-validator'
3
3
 
4
4
  export const Validate =
@@ -1,4 +1,4 @@
1
- import { RequestAction } from '../request-action-implementation';
1
+ import type { RequestAction } from '../request-action-implementation';
2
2
  /**
3
3
  * Action for unhandled (500) errors
4
4
  * Returns a serialized error instance in JSON format.
@@ -1 +1 @@
1
- {"version":3,"file":"error-action.d.ts","sourceRoot":"","sources":["../../src/actions/error-action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAG5E;;;GAGG;AAEH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC;IACtC,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC1D,CAoBA,CAAA"}
1
+ {"version":3,"file":"error-action.d.ts","sourceRoot":"","sources":["../../src/actions/error-action.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIrE;;;GAGG;AAEH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC;IACtC,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAC1D,CAoBA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { User } from '@furystack/core';
2
- import { RequestAction } from '../request-action-implementation';
1
+ import type { User } from '@furystack/core';
2
+ import type { RequestAction } from '../request-action-implementation';
3
3
  /**
4
4
  * Action that returns the current authenticated user
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-user.d.ts","sourceRoot":"","sources":["../../src/actions/get-current-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAE5E;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE,IAAI,CAAA;CACb,CAGC,CAAA"}
1
+ {"version":3,"file":"get-current-user.d.ts","sourceRoot":"","sources":["../../src/actions/get-current-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGrE;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE,IAAI,CAAA;CACb,CAGC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { RequestAction } from '../request-action-implementation';
1
+ import type { RequestAction } from '../request-action-implementation';
2
2
  /**
3
3
  * Action that returns if the current user is authenticated
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"is-authenticated.d.ts","sourceRoot":"","sources":["../../src/actions/is-authenticated.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAE5E;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE;QAAE,eAAe,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,CAGnF,CAAA"}
1
+ {"version":3,"file":"is-authenticated.d.ts","sourceRoot":"","sources":["../../src/actions/is-authenticated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGrE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE;QAAE,eAAe,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,CAGnF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import '../helpers';
2
- import { User } from '@furystack/core';
3
- import { RequestAction } from '../request-action-implementation';
2
+ import type { User } from '@furystack/core';
3
+ import type { RequestAction } from '../request-action-implementation';
4
4
  /**
5
5
  * Action that logs in the current user
6
6
  * Should be called with a JSON Post body with ``username`` and ``password`` fields.
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/actions/login.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAE5E;;;;GAIG;AAEH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC;IACtC,MAAM,EAAE,IAAI,CAAA;IACZ,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CAC7C,CAUA,CAAA"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/actions/login.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGrE;;;;GAIG;AAEH,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC;IACtC,MAAM,EAAE,IAAI,CAAA;IACZ,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;CAC7C,CAUA,CAAA"}
@@ -1,4 +1,4 @@
1
- import { RequestAction } from '../request-action-implementation';
1
+ import type { RequestAction } from '../request-action-implementation';
2
2
  /**
3
3
  * Action that logs out the current user
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../src/actions/logout.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAE7E;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAG3D,CAAA"}
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../src/actions/logout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGrE;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAG3D,CAAA"}
@@ -1,4 +1,4 @@
1
- import { RequestAction } from '../request-action-implementation';
1
+ import type { RequestAction } from '../request-action-implementation';
2
2
  /**
3
3
  * @returns The standard Not Found action result
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"not-found-action.d.ts","sourceRoot":"","sources":["../../src/actions/not-found-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAOvE,CAAA"}
1
+ {"version":3,"file":"not-found-action.d.ts","sourceRoot":"","sources":["../../src/actions/not-found-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGrE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAOvE,CAAA"}
@@ -1,10 +1,10 @@
1
- import { Disposable } from '@furystack/utils';
2
- import { RestApi } from '@furystack/rest';
3
- import { Injector } from '@furystack/inject';
4
- import { OnRequest } from './server-manager';
5
- import { CorsOptions } from './models/cors-options';
1
+ import type { Disposable } from '@furystack/utils';
2
+ import type { RestApi } from '@furystack/rest';
3
+ import type { Injector } from '@furystack/inject';
4
+ import type { OnRequest } from './server-manager';
5
+ import type { CorsOptions } from './models/cors-options';
6
6
  import './server-response-extensions';
7
- import { RequestAction } from './request-action-implementation';
7
+ import type { RequestAction } from './request-action-implementation';
8
8
  export declare type RestApiImplementation<T extends RestApi> = {
9
9
  [TMethod in keyof T]: {
10
10
  [TUrl in keyof T[TMethod]]: T[TMethod][TUrl] extends {
@@ -1 +1 @@
1
- {"version":3,"file":"api-manager.d.ts","sourceRoot":"","sources":["../src/api-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAA0B,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,EAAwB,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAiB,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,oBAAY,qBAAqB,CAAC,CAAC,SAAS,OAAO,IAAI;KACpD,OAAO,IAAI,MAAM,CAAC,GAAG;SACnB,IAAI,IAAI,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS;YAAE,MAAM,EAAE,OAAO,CAAA;SAAE,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK;KACnH;CACF,CAAA;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,OAAO;IACpD,GAAG,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAA;IAC7B,QAAQ,EAAE,QAAQ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,CAAC,aAAa,CAAgB;CAC/C"}
@@ -1,4 +1,4 @@
1
- import { RequestAction } from './request-action-implementation';
1
+ import type { RequestAction } from './request-action-implementation';
2
2
  export declare const Authenticate: () => <T extends {
3
3
  result: unknown;
4
4
  }>(action: RequestAction<T>) => RequestAction<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../src/authenticate.ts"],"names":[],"mappings":"AAGA,OAAO,EAA4B,aAAa,EAAwB,MAAM,iCAAiC,CAAA;AAE/G,eAAO,MAAM,YAAY;YAEF,OAAO;gDAc3B,CAAA"}
1
+ {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../src/authenticate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgB,aAAa,EAAwB,MAAM,iCAAiC,CAAA;AAGxG,eAAO,MAAM,YAAY;YAEF,OAAO;gDAc3B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { RequestAction } from './request-action-implementation';
1
+ import type { RequestAction } from './request-action-implementation';
2
2
  export declare const Authorize: (...roles: string[]) => <T extends {
3
3
  result: unknown;
4
4
  }>(action: RequestAction<T>) => RequestAction<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../src/authorize.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,aAAa,EAAwB,MAAM,iCAAiC,CAAA;AAE/G,eAAO,MAAM,SAAS,aACT,MAAM,EAAE;YACE,OAAO;gDAa3B,CAAA"}
1
+ {"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../src/authorize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgB,aAAa,EAAwB,MAAM,iCAAiC,CAAA;AAGxG,eAAO,MAAM,SAAS,aACT,MAAM,EAAE;YACE,OAAO;gDAa3B,CAAA"}
@@ -1,7 +1,7 @@
1
- import { Constructable } from '@furystack/inject';
2
- import { DeleteEndpoint } from '@furystack/rest';
1
+ import type { Constructable } from '@furystack/inject';
2
+ import type { DeleteEndpoint } from '@furystack/rest';
3
3
  import '@furystack/repository';
4
- import { RequestAction } from '../request-action-implementation';
4
+ import type { RequestAction } from '../request-action-implementation';
5
5
  /**
6
6
  * Creates a DELETE endpoint for removing entities
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"create-delete-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-delete-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAG5E;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;mDAWhC,CAAA"}
1
+ {"version":3,"file":"create-delete-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-delete-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIrE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;mDAWhC,CAAA"}
@@ -1,7 +1,7 @@
1
- import { Constructable } from '@furystack/inject';
2
- import { GetCollectionEndpoint } from '@furystack/rest';
1
+ import type { Constructable } from '@furystack/inject';
2
+ import type { GetCollectionEndpoint } from '@furystack/rest';
3
3
  import '@furystack/repository';
4
- import { RequestAction } from '../request-action-implementation';
4
+ import type { RequestAction } from '../request-action-implementation';
5
5
  /**
6
6
  * Creates a GetCollection endpoint for the given model. The model should have a Repository DataSet
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"create-get-collection-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-get-collection-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAG5E;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;6CAcvC,CAAA"}
1
+ {"version":3,"file":"create-get-collection-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-get-collection-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIrE;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;6CAcvC,CAAA"}
@@ -1,7 +1,7 @@
1
- import { Constructable } from '@furystack/inject';
2
- import { GetEntityEndpoint } from '@furystack/rest';
1
+ import type { Constructable } from '@furystack/inject';
2
+ import type { GetEntityEndpoint } from '@furystack/rest';
3
3
  import '@furystack/repository';
4
- import { RequestAction } from '../request-action-implementation';
4
+ import type { RequestAction } from '../request-action-implementation';
5
5
  /**
6
6
  * Creates a simple Get Entity endpoint for a specified model.
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"create-get-entity-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-get-entity-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAgB,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACjE,OAAO,uBAAuB,CAAA;AAC9B,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAG5E;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;sDAenC,CAAA"}
1
+ {"version":3,"file":"create-get-entity-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-get-entity-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIrE;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;sDAenC,CAAA"}
@@ -1,8 +1,8 @@
1
- import { Constructable } from '@furystack/inject';
2
- import { PatchEndpoint } from '@furystack/rest';
1
+ import type { Constructable } from '@furystack/inject';
2
+ import type { PatchEndpoint } from '@furystack/rest';
3
3
  import '@furystack/repository';
4
4
  import '../incoming-message-extensions';
5
- import { RequestAction } from '../request-action-implementation';
5
+ import type { RequestAction } from '../request-action-implementation';
6
6
  /**
7
7
  * Creates a PATCH endpoint for updating entities
8
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"create-patch-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-patch-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,uBAAuB,CAAA;AAC9B,OAAO,gCAAgC,CAAA;AACvC,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAG5E;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;kDAY/B,CAAA"}
1
+ {"version":3,"file":"create-patch-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-patch-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIrE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;kDAY/B,CAAA"}
@@ -1,8 +1,8 @@
1
- import { Constructable } from '@furystack/inject';
2
- import { PostEndpoint } from '@furystack/rest';
1
+ import type { Constructable } from '@furystack/inject';
2
+ import type { PostEndpoint } from '@furystack/rest';
3
3
  import '@furystack/repository';
4
4
  import '../incoming-message-extensions';
5
- import { RequestAction } from '../request-action-implementation';
5
+ import type { RequestAction } from '../request-action-implementation';
6
6
  /**
7
7
  * Creates a POST endpoint for updating entities
8
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"create-post-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-post-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAgB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,uBAAuB,CAAA;AAC9B,OAAO,gCAAgC,CAAA;AACvC,OAAO,EAAc,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAG5E;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;iDAe9B,CAAA"}
1
+ {"version":3,"file":"create-post-endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/create-post-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIrE;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;iDAe9B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Injector } from '@furystack/inject';
1
+ import type { Injector } from '@furystack/inject';
2
2
  import '@furystack/repository';
3
3
  import '../helpers';
4
4
  export declare class MockClass {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAG5C,OAAO,uBAAuB,CAAA;AAC9B,OAAO,YAAY,CAAA;AAGnB,qBAAa,SAAS;IACpB,EAAE,EAAG,MAAM,CAAA;IACX,KAAK,EAAG,MAAM,CAAA;CACf;AAED,eAAO,MAAM,YAAY,MAAO,QAAQ,SAqBvC,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/endpoint-generators/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAGjD,OAAO,uBAAuB,CAAA;AAC9B,OAAO,YAAY,CAAA;AAGnB,qBAAa,SAAS;IACpB,EAAE,EAAG,MAAM,CAAA;IACX,KAAK,EAAG,MAAM,CAAA;CACf;AAED,eAAO,MAAM,YAAY,MAAO,QAAQ,SAqBvC,CAAA"}
@@ -1,10 +1,10 @@
1
- import { User } from '@furystack/core';
2
- import { Injector } from '@furystack/inject';
1
+ import type { User } from '@furystack/core';
2
+ import type { Injector } from '@furystack/inject';
3
3
  import { HttpAuthenticationSettings } from './http-authentication-settings';
4
- import { RestApi } from '@furystack/rest';
5
- import { ImplementApiOptions } from './api-manager';
6
- import { DefaultSession } from './models/default-session';
7
- import { StaticServerOptions } from './static-server-manager';
4
+ import type { RestApi } from '@furystack/rest';
5
+ import type { ImplementApiOptions } from './api-manager';
6
+ import type { DefaultSession } from './models/default-session';
7
+ import type { StaticServerOptions } from './static-server-manager';
8
8
  /**
9
9
  * Sets up the @furystack/rest-service with the provided settings
10
10
  *
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAc,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAuB,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAElF;;;;GAIG;AACH,eAAO,MAAM,cAAc,wEAG1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,kEACtB,QAAQ,sFAE+F,CAAA;AAEnH;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,YAAa;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,GAAG,mBAAmB,kBAGnF,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAGlE;;;;GAIG;AACH,eAAO,MAAM,cAAc,wEAG1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,kEACtB,QAAQ,sFAE+F,CAAA;AAEnH;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,YAAa;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,GAAG,mBAAmB,kBAGnF,CAAA"}
@@ -1,5 +1,6 @@
1
- import { PhysicalStore, User, StoreManager } from '@furystack/core';
2
- import { Constructable } from '@furystack/inject';
1
+ import type { PhysicalStore, StoreManager } from '@furystack/core';
2
+ import { User } from '@furystack/core';
3
+ import type { Constructable } from '@furystack/inject';
3
4
  import { DefaultSession } from './models/default-session';
4
5
  /**
5
6
  * Authentication settings object for FuryStack HTTP Api
@@ -1 +1 @@
1
- {"version":3,"file":"http-authentication-settings.d.ts","sourceRoot":"","sources":["../src/http-authentication-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAc,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD;;GAEG;AACH,qBACa,0BAA0B,CAAC,KAAK,SAAS,IAAI,EAAE,QAAQ,SAAS,cAAc;IAClF,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAA+B;IAE1D,YAAY,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,aAAa,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,CACzB;IAEtD,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,aAAa,CAAC,QAAQ,EAAE,MAAM,QAAQ,CAAC,CACI;IAE5F,UAAU,SAAQ;IAClB,eAAe,UAAO;CAC9B"}
1
+ {"version":3,"file":"http-authentication-settings.d.ts","sourceRoot":"","sources":["../src/http-authentication-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD;;GAEG;AACH,qBACa,0BAA0B,CAAC,KAAK,SAAS,IAAI,EAAE,QAAQ,SAAS,cAAc;IAClF,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAA+B;IAE1D,YAAY,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,aAAa,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,CACzB;IAEtD,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,aAAa,CAAC,QAAQ,EAAE,MAAM,QAAQ,CAAC,CACI;IAE5F,UAAU,SAAQ;IAClB,eAAe,UAAO;CAC9B"}
@@ -1,7 +1,7 @@
1
- import { IncomingMessage, ServerResponse } from 'http';
2
- import { User } from '@furystack/core';
1
+ import type { IncomingMessage, ServerResponse } from 'http';
2
+ import type { User } from '@furystack/core';
3
3
  import { HttpAuthenticationSettings } from './http-authentication-settings';
4
- import { DefaultSession } from './models/default-session';
4
+ import type { DefaultSession } from './models/default-session';
5
5
  /**
6
6
  * Injectable UserContext for FuryStack HTTP Api
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"http-user-context.d.ts","sourceRoot":"","sources":["../src/http-user-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AACtD,OAAO,EAAE,IAAI,EAAgB,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAIzD;;GAEG;AACH,qBACa,eAAe;IACnB,YAAY,kEAA4D;IAExE,eAAe,sFAA+D;IAErF,OAAO,CAAC,aAAa,CAOpB;IAED,OAAO,CAAC,cAAc,CAOrB;IAED,OAAO,CAA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ED,OAAO,CAAC,IAAI,CAAC,CAAM;IAEnB;;;OAGG;IACU,eAAe,CAAC,OAAO,EAAE,eAAe;IASrD;;;;;;OAMG;IACU,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAUzF;;;;;;OAMG;IACU,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAanD,cAAc,CAAC,OAAO,EAAE,eAAe;IAQ7C,uBAAuB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI;IAkB1D,mBAAmB,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBzE;;;;;;OAMG;IACU,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAQtE,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc;IAW5E,SACgB,cAAc,EAAG,0BAA0B,CAAC,IAAI,EAAE,cAAc,CAAC,CAAA;IAGjF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAG5C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAwB;CACvD"}
@@ -1,6 +1,6 @@
1
- import { Injector } from '@furystack/inject';
2
- import { ServerResponse } from 'http';
3
- import { IncomingMessage } from 'http';
1
+ import type { Injector } from '@furystack/inject';
2
+ import type { ServerResponse } from 'http';
3
+ import type { IncomingMessage } from 'http';
4
4
  export interface ActionResult<T> {
5
5
  statusCode: number;
6
6
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"request-action-implementation.d.ts","sourceRoot":"","sources":["../src/request-action-implementation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,EAAE,eAAe,EAA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7B,OAAO,CAAC,GACV,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,OAAO,CAAC,GACnF,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,OAAO,CAAC,GACjF,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,GAAG,OAAO,CAAC,CAAA;AAE9E,oBAAY,aAAa,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,IAAI,CACzD,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAC7B,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { RestApi } from '@furystack/rest';
1
+ import type { RestApi } from '@furystack/rest';
2
2
  import './helpers';
3
3
  export interface EchoApi extends RestApi {
4
4
  GET: {