@furystack/rest-service 5.0.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/get-current-user.js +2 -1
- package/dist/actions/get-current-user.js.map +1 -1
- package/dist/actions/is-authenticated.js +3 -2
- package/dist/actions/is-authenticated.js.map +1 -1
- package/dist/actions/login.js +1 -1
- package/dist/actions/login.js.map +1 -1
- package/dist/authenticate.js +4 -4
- package/dist/authenticate.js.map +1 -1
- package/dist/authorize.js +2 -1
- package/dist/authorize.js.map +1 -1
- package/dist/endpoint-generators/create-delete-endpoint.js +2 -1
- package/dist/endpoint-generators/create-delete-endpoint.js.map +1 -1
- package/dist/endpoint-generators/create-delete-endpoint.spec.js +7 -4
- package/dist/endpoint-generators/create-delete-endpoint.spec.js.map +1 -1
- package/dist/endpoint-generators/create-get-collection-endpoint.js +2 -1
- package/dist/endpoint-generators/create-get-collection-endpoint.js.map +1 -1
- package/dist/endpoint-generators/create-get-collection-endpoint.spec.js +23 -16
- package/dist/endpoint-generators/create-get-collection-endpoint.spec.js.map +1 -1
- package/dist/endpoint-generators/create-get-entity-endpoint.js +2 -1
- package/dist/endpoint-generators/create-get-entity-endpoint.js.map +1 -1
- package/dist/endpoint-generators/create-get-entity-endpoint.spec.js +10 -5
- package/dist/endpoint-generators/create-get-entity-endpoint.spec.js.map +1 -1
- package/dist/endpoint-generators/create-patch-endpoint.js +2 -1
- package/dist/endpoint-generators/create-patch-endpoint.js.map +1 -1
- package/dist/endpoint-generators/create-patch-endpoint.spec.js +7 -4
- package/dist/endpoint-generators/create-patch-endpoint.spec.js.map +1 -1
- package/dist/endpoint-generators/create-post-endpoint.js +2 -1
- package/dist/endpoint-generators/create-post-endpoint.js.map +1 -1
- package/dist/endpoint-generators/create-post-endpoint.spec.js +5 -2
- package/dist/endpoint-generators/create-post-endpoint.spec.js.map +1 -1
- package/dist/endpoint-generators/utils.js +5 -4
- package/dist/endpoint-generators/utils.js.map +1 -1
- package/dist/helpers.js +25 -0
- package/dist/helpers.js.map +1 -0
- package/dist/helpers.spec.js +19 -0
- package/dist/helpers.spec.js.map +1 -0
- package/dist/http-user-context.js +11 -3
- package/dist/http-user-context.js.map +1 -1
- package/dist/http-user-context.spec.js +4 -6
- package/dist/http-user-context.spec.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/rest-service.integration.spec.js +33 -32
- package/dist/rest-service.integration.spec.js.map +1 -1
- package/dist/rest.integration.test.js +7 -6
- package/dist/rest.integration.test.js.map +1 -1
- package/dist/validate.integration.spec.js +4 -2
- package/dist/validate.integration.spec.js.map +1 -1
- package/package.json +13 -14
- package/src/actions/get-current-user.ts +2 -2
- package/src/actions/is-authenticated.ts +3 -2
- package/src/actions/login.ts +1 -1
- package/src/authenticate.ts +4 -4
- package/src/authorize.ts +2 -1
- package/src/endpoint-generators/create-delete-endpoint.spec.ts +7 -4
- package/src/endpoint-generators/create-delete-endpoint.ts +2 -1
- package/src/endpoint-generators/create-get-collection-endpoint.spec.ts +23 -16
- package/src/endpoint-generators/create-get-collection-endpoint.ts +2 -1
- package/src/endpoint-generators/create-get-entity-endpoint.spec.ts +10 -5
- package/src/endpoint-generators/create-get-entity-endpoint.ts +2 -1
- package/src/endpoint-generators/create-patch-endpoint.spec.ts +7 -4
- package/src/endpoint-generators/create-patch-endpoint.ts +2 -1
- package/src/endpoint-generators/create-post-endpoint.spec.ts +5 -2
- package/src/endpoint-generators/create-post-endpoint.ts +2 -1
- package/src/endpoint-generators/utils.ts +23 -23
- package/src/helpers.spec.ts +24 -0
- package/src/helpers.ts +28 -0
- package/src/http-user-context.spec.ts +6 -10
- package/src/http-user-context.ts +13 -4
- package/src/index.ts +1 -1
- package/src/rest-service.integration.spec.ts +36 -36
- package/src/rest.integration.test.ts +7 -6
- package/src/validate.integration.spec.ts +5 -3
- package/{dist → types}/actions/error-action.d.ts +0 -0
- package/{dist → types}/actions/error-action.d.ts.map +0 -0
- package/{dist → types}/actions/error-action.spec.d.ts +0 -0
- package/{dist → types}/actions/error-action.spec.d.ts.map +0 -0
- package/{dist → types}/actions/get-current-user.d.ts +0 -0
- package/types/actions/get-current-user.d.ts.map +1 -0
- package/{dist → types}/actions/get-current-user.spec.d.ts +0 -0
- package/{dist → types}/actions/get-current-user.spec.d.ts.map +0 -0
- package/{dist → types}/actions/index.d.ts +0 -0
- package/{dist → types}/actions/index.d.ts.map +0 -0
- package/{dist → types}/actions/is-authenticated.d.ts +0 -0
- package/{dist → types}/actions/is-authenticated.d.ts.map +1 -1
- package/{dist → types}/actions/is-authenticated.spec.d.ts +0 -0
- package/{dist → types}/actions/is-authenticated.spec.d.ts.map +0 -0
- package/{dist → types}/actions/login-action.spec.d.ts +0 -0
- package/{dist → types}/actions/login-action.spec.d.ts.map +0 -0
- package/{dist → types}/actions/login.d.ts +1 -1
- package/types/actions/login.d.ts.map +1 -0
- package/{dist → types}/actions/logout-action.spec.d.ts +0 -0
- package/{dist → types}/actions/logout-action.spec.d.ts.map +0 -0
- package/{dist → types}/actions/logout.d.ts +0 -0
- package/{dist → types}/actions/logout.d.ts.map +0 -0
- package/{dist → types}/actions/not-found-action.d.ts +0 -0
- package/{dist → types}/actions/not-found-action.d.ts.map +0 -0
- package/{dist → types}/actions/not-found-action.spec.d.ts +0 -0
- package/{dist → types}/actions/not-found-action.spec.d.ts.map +0 -0
- package/{dist → types}/add-cors-header.spec.d.ts +0 -0
- package/{dist → types}/add-cors-header.spec.d.ts.map +0 -0
- package/{dist → types}/api-manager.d.ts +0 -0
- package/{dist → types}/api-manager.d.ts.map +0 -0
- package/{dist → types}/authenticate.d.ts +0 -0
- package/{dist → types}/authenticate.d.ts.map +1 -1
- package/{dist → types}/authenticate.spec.d.ts +0 -0
- package/{dist → types}/authenticate.spec.d.ts.map +0 -0
- package/{dist → types}/authorize.d.ts +0 -0
- package/{dist → types}/authorize.d.ts.map +1 -1
- package/{dist → types}/authorize.spec.d.ts +0 -0
- package/{dist → types}/authorize.spec.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/create-delete-endpoint.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-delete-endpoint.d.ts.map +1 -1
- package/{dist → types}/endpoint-generators/create-delete-endpoint.spec.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-delete-endpoint.spec.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/create-get-collection-endpoint.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-get-collection-endpoint.d.ts.map +1 -1
- package/{dist → types}/endpoint-generators/create-get-collection-endpoint.spec.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-get-collection-endpoint.spec.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/create-get-entity-endpoint.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-get-entity-endpoint.d.ts.map +1 -1
- package/{dist → types}/endpoint-generators/create-get-entity-endpoint.spec.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-get-entity-endpoint.spec.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/create-patch-endpoint.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-patch-endpoint.d.ts.map +1 -1
- package/{dist → types}/endpoint-generators/create-patch-endpoint.spec.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-patch-endpoint.spec.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/create-post-endpoint.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-post-endpoint.d.ts.map +1 -1
- package/{dist → types}/endpoint-generators/create-post-endpoint.spec.d.ts +0 -0
- package/{dist → types}/endpoint-generators/create-post-endpoint.spec.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/index.d.ts +0 -0
- package/{dist → types}/endpoint-generators/index.d.ts.map +0 -0
- package/{dist → types}/endpoint-generators/utils.d.ts +1 -1
- package/{dist → types}/endpoint-generators/utils.d.ts.map +1 -1
- package/types/helpers.d.ts +21 -0
- package/types/helpers.d.ts.map +1 -0
- package/types/helpers.spec.d.ts +2 -0
- package/types/helpers.spec.d.ts.map +1 -0
- package/{dist → types}/http-authentication-settings.d.ts +0 -0
- package/{dist → types}/http-authentication-settings.d.ts.map +0 -0
- package/{dist → types}/http-user-context.d.ts +2 -1
- package/types/http-user-context.d.ts.map +1 -0
- package/{dist → types}/http-user-context.spec.d.ts +0 -1
- package/{dist → types}/http-user-context.spec.d.ts.map +1 -1
- package/{dist → types}/incoming-message-extensions.d.ts +0 -0
- package/{dist → types}/incoming-message-extensions.d.ts.map +0 -0
- package/{dist → types}/incoming-message-extensions.spec.d.ts +0 -0
- package/{dist → types}/incoming-message-extensions.spec.d.ts.map +0 -0
- package/{dist → types}/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -0
- package/{dist → types}/models/cors-options.d.ts +0 -0
- package/{dist → types}/models/cors-options.d.ts.map +0 -0
- package/{dist → types}/models/default-session.d.ts +0 -0
- package/{dist → types}/models/default-session.d.ts.map +0 -0
- package/{dist → types}/models/index.d.ts +0 -0
- package/{dist → types}/models/index.d.ts.map +0 -0
- package/{dist → types}/request-action-implementation.d.ts +0 -0
- package/{dist → types}/request-action-implementation.d.ts.map +0 -0
- package/types/rest-service.integration.spec.d.ts +2 -0
- package/{dist → types}/rest-service.integration.spec.d.ts.map +1 -1
- package/{dist → types}/rest.integration.test.d.ts +1 -1
- package/types/rest.integration.test.d.ts.map +1 -0
- package/{dist → types}/schema-validator/index.d.ts +0 -0
- package/{dist → types}/schema-validator/index.d.ts.map +0 -0
- package/{dist → types}/schema-validator/schema-validation-error.d.ts +0 -0
- package/{dist → types}/schema-validator/schema-validation-error.d.ts.map +0 -0
- package/{dist → types}/schema-validator/schema-validator.d.ts +0 -0
- package/{dist → types}/schema-validator/schema-validator.d.ts.map +0 -0
- package/{dist → types}/schema-validator/schema-validator.test.d.ts +0 -0
- package/{dist → types}/schema-validator/schema-validator.test.d.ts.map +0 -0
- package/{dist → types}/schema-validator/validate-examples.d.ts +0 -0
- package/{dist → types}/schema-validator/validate-examples.d.ts.map +0 -0
- package/{dist → types}/server-manager.d.ts +0 -0
- package/{dist → types}/server-manager.d.ts.map +0 -0
- package/{dist → types}/server-response-extensions.d.ts +0 -0
- package/{dist → types}/server-response-extensions.d.ts.map +0 -0
- package/{dist → types}/server-response-extensions.spec.d.ts +0 -0
- package/{dist → types}/server-response-extensions.spec.d.ts.map +0 -0
- package/{dist → types}/utils.d.ts +0 -0
- package/{dist → types}/utils.d.ts.map +0 -0
- package/{dist → types}/validate.d.ts +0 -0
- package/{dist → types}/validate.d.ts.map +0 -0
- package/{dist → types}/validate.integration.schema.d.ts +0 -0
- package/{dist → types}/validate.integration.schema.d.ts.map +0 -0
- package/types/validate.integration.spec.d.ts +2 -0
- package/{dist → types}/validate.integration.spec.d.ts.map +1 -1
- package/dist/actions/get-current-user.d.ts.map +0 -1
- package/dist/actions/login.d.ts.map +0 -1
- package/dist/http-user-context.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/injector-extensions.d.ts +0 -21
- package/dist/injector-extensions.d.ts.map +0 -1
- package/dist/injector-extensions.js +0 -14
- package/dist/injector-extensions.js.map +0 -1
- package/dist/injector-extensions.spec.d.ts +0 -2
- package/dist/injector-extensions.spec.d.ts.map +0 -1
- package/dist/injector-extensions.spec.js +0 -19
- package/dist/injector-extensions.spec.js.map +0 -1
- package/dist/rest-service.integration.spec.d.ts +0 -2
- package/dist/rest.integration.test.d.ts.map +0 -1
- package/dist/validate.integration.spec.d.ts +0 -2
- package/src/injector-extensions.spec.ts +0 -19
- package/src/injector-extensions.ts +0 -35
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Injector } from '@furystack/inject'
|
|
2
|
-
import './
|
|
2
|
+
import './helpers'
|
|
3
3
|
import { usingAsync, PathHelper } from '@furystack/utils'
|
|
4
4
|
import { GetCurrentUser, IsAuthenticated, LoginAction, LogoutAction } from './actions'
|
|
5
5
|
import { RestApi } from '@furystack/rest'
|
|
6
|
-
import { User, InMemoryStore } from '@furystack/core'
|
|
6
|
+
import { User, InMemoryStore, addStore } from '@furystack/core'
|
|
7
7
|
import { DefaultSession } from './models/default-session'
|
|
8
8
|
import got from 'got'
|
|
9
9
|
import { JsonResult } from './request-action-implementation'
|
|
10
|
+
import { useHttpAuthentication, useRestService } from './helpers'
|
|
10
11
|
|
|
11
12
|
class UserWithPassword extends User {
|
|
12
13
|
password!: string
|
|
@@ -30,43 +31,42 @@ const port = 19090
|
|
|
30
31
|
const hostName = 'localhost'
|
|
31
32
|
const root = 'test-api'
|
|
32
33
|
|
|
33
|
-
const prepareInjector = (i: Injector) =>
|
|
34
|
-
i
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
34
|
+
const prepareInjector = async (i: Injector) => {
|
|
35
|
+
addStore(i, new InMemoryStore({ model: User, primaryKey: 'username' })).addStore(
|
|
36
|
+
new InMemoryStore({ model: DefaultSession, primaryKey: 'sessionId' }),
|
|
37
|
+
)
|
|
38
|
+
useHttpAuthentication(i, {
|
|
39
|
+
getUserStore: (sm) => sm.getStoreFor(UserWithPassword, 'username'),
|
|
40
|
+
getSessionStore: (sm) => sm.getStoreFor(DefaultSession, 'sessionId'),
|
|
41
|
+
})
|
|
42
|
+
await useRestService<IntegrationTestApi>({
|
|
43
|
+
injector: i,
|
|
44
|
+
root,
|
|
45
|
+
port,
|
|
46
|
+
hostName,
|
|
47
|
+
cors: {
|
|
48
|
+
credentials: true,
|
|
49
|
+
origins: ['http://localhost:8080'],
|
|
50
|
+
headers: ['cache', 'content-type'],
|
|
51
|
+
},
|
|
52
|
+
api: {
|
|
53
|
+
GET: {
|
|
54
|
+
'/currentUser': GetCurrentUser,
|
|
55
|
+
'/isAuthenticated': IsAuthenticated,
|
|
56
|
+
'/testQuery': async (options) => JsonResult({ param1Value: options.getQuery().param1 }),
|
|
57
|
+
'/testUrlParams/:urlParam': async (options) => JsonResult({ urlParamValue: options.getUrlParams().urlParam }),
|
|
52
58
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
POST: {
|
|
61
|
-
'/login': LoginAction,
|
|
62
|
-
'/logout': LogoutAction,
|
|
63
|
-
'/testPostBody': async (options) => {
|
|
64
|
-
const body = await options.getBody()
|
|
65
|
-
return JsonResult({ bodyValue: body.value })
|
|
66
|
-
},
|
|
59
|
+
POST: {
|
|
60
|
+
'/login': LoginAction,
|
|
61
|
+
'/logout': LogoutAction,
|
|
62
|
+
'/testPostBody': async (options) => {
|
|
63
|
+
const body = await options.getBody()
|
|
64
|
+
return JsonResult({ bodyValue: body.value })
|
|
67
65
|
},
|
|
68
66
|
},
|
|
69
|
-
}
|
|
67
|
+
},
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
70
|
|
|
71
71
|
const apiUrl = PathHelper.joinPaths(`http://${hostName}:${port}`, root)
|
|
72
72
|
|
|
@@ -3,8 +3,8 @@ import { RestApi } from '@furystack/rest'
|
|
|
3
3
|
import { createClient } from '@furystack/rest-client-got'
|
|
4
4
|
import { usingAsync } from '@furystack/utils'
|
|
5
5
|
import { JsonResult } from './request-action-implementation'
|
|
6
|
-
import
|
|
7
|
-
import './
|
|
6
|
+
import './helpers'
|
|
7
|
+
import { useRestService } from './helpers'
|
|
8
8
|
|
|
9
9
|
export interface EchoApi extends RestApi {
|
|
10
10
|
GET: {
|
|
@@ -25,7 +25,8 @@ const createEchoApiServer = async () => {
|
|
|
25
25
|
const port = Math.round(Math.random() * 1000) + 10000
|
|
26
26
|
const root = '/api'
|
|
27
27
|
const injector = new Injector()
|
|
28
|
-
await
|
|
28
|
+
await useRestService<EchoApi>({
|
|
29
|
+
injector,
|
|
29
30
|
port,
|
|
30
31
|
root,
|
|
31
32
|
api: {
|
|
@@ -65,7 +66,7 @@ describe('REST Integration tests with GOT client', () => {
|
|
|
65
66
|
|
|
66
67
|
it('Should execute a request with headers', async () => {
|
|
67
68
|
await usingAsync(await createEchoApiServer(), async ({ client }) => {
|
|
68
|
-
const value =
|
|
69
|
+
const value = 'value'
|
|
69
70
|
const result = await client({
|
|
70
71
|
method: 'GET',
|
|
71
72
|
action: '/headers',
|
|
@@ -80,7 +81,7 @@ describe('REST Integration tests with GOT client', () => {
|
|
|
80
81
|
|
|
81
82
|
it('Should execute a request with query', async () => {
|
|
82
83
|
await usingAsync(await createEchoApiServer(), async ({ client }) => {
|
|
83
|
-
const value =
|
|
84
|
+
const value = 'value2'
|
|
84
85
|
const result = await client({
|
|
85
86
|
method: 'GET',
|
|
86
87
|
action: '/query',
|
|
@@ -97,7 +98,7 @@ describe('REST Integration tests with GOT client', () => {
|
|
|
97
98
|
|
|
98
99
|
it('Should execute a request with URL parameters', async () => {
|
|
99
100
|
await usingAsync(await createEchoApiServer(), async ({ client }) => {
|
|
100
|
-
const value =
|
|
101
|
+
const value = 'value3'
|
|
101
102
|
const result = await client({
|
|
102
103
|
method: 'GET',
|
|
103
104
|
action: '/urlParams/:id',
|
|
@@ -4,17 +4,19 @@ import { usingAsync } from '@furystack/utils'
|
|
|
4
4
|
import { RequestError } from 'got/dist/source'
|
|
5
5
|
import { JsonResult } from './request-action-implementation'
|
|
6
6
|
import { Validate } from './validate'
|
|
7
|
-
import './
|
|
7
|
+
import './helpers'
|
|
8
8
|
|
|
9
9
|
import schema from './validate.integration.spec.schema.json'
|
|
10
|
-
import { ValidationApi } from 'validate.integration.schema'
|
|
10
|
+
import { ValidationApi } from './validate.integration.schema'
|
|
11
|
+
import { useRestService } from './helpers'
|
|
11
12
|
|
|
12
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
|
|
13
14
|
|
|
14
15
|
const createValidateApi = async () => {
|
|
15
16
|
const injector = new Injector()
|
|
16
17
|
const port = Math.round(Math.random() * 1000) + 10000
|
|
17
|
-
|
|
18
|
+
useRestService<ValidationApi>({
|
|
19
|
+
injector,
|
|
18
20
|
api: {
|
|
19
21
|
GET: {
|
|
20
22
|
'/validate-query': Validate({
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-authenticated.d.ts","sourceRoot":"","sources":["../../src/actions/is-authenticated.ts"],"names":[],"mappings":"
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../src/authenticate.ts"],"names":[],"mappings":"
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../src/authorize.ts"],"names":[],"mappings":"
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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,
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { User } from '@furystack/core';
|
|
2
|
+
import { Injector } from '@furystack/inject';
|
|
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
|
+
/**
|
|
8
|
+
* Sets up the @furystack/rest-service with the provided settings
|
|
9
|
+
*
|
|
10
|
+
* @param api The API implementation details
|
|
11
|
+
*/
|
|
12
|
+
export declare const useRestService: <T extends RestApi>(api: ImplementApiOptions<T>) => Promise<undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Sets up the HTTP Authentication
|
|
15
|
+
*
|
|
16
|
+
* @param injector The Injector instance
|
|
17
|
+
* @param settings Settings for HTTP Authentication
|
|
18
|
+
* @returns void
|
|
19
|
+
*/
|
|
20
|
+
export declare const useHttpAuthentication: <TUser extends User, TSession extends DefaultSession>(injector: Injector, settings?: Partial<HttpAuthenticationSettings<TUser, TSession>> | undefined) => void;
|
|
21
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +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;AAEzD;;;;GAIG;AACH,eAAO,MAAM,cAAc,wEAG1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,kEACtB,QAAQ,sFAE+F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.spec.d.ts","sourceRoot":"","sources":["../src/helpers.spec.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
2
2
|
import { User, StoreManager } from '@furystack/core';
|
|
3
3
|
import { HttpAuthenticationSettings } from './http-authentication-settings';
|
|
4
|
-
import { DefaultSession } from 'models/default-session';
|
|
4
|
+
import { DefaultSession } from './models/default-session';
|
|
5
5
|
import { PasswordAuthenticator } from '@furystack/security';
|
|
6
6
|
/**
|
|
7
7
|
* Injectable UserContext for FuryStack HTTP Api
|
|
@@ -13,6 +13,7 @@ export declare class HttpUserContext {
|
|
|
13
13
|
getUserStore: () => import("@furystack/core").PhysicalStore<User, keyof User>;
|
|
14
14
|
getSessionStore: () => import("@furystack/core").PhysicalStore<DefaultSession, keyof DefaultSession>;
|
|
15
15
|
private getUserByName;
|
|
16
|
+
private getSessionById;
|
|
16
17
|
private user?;
|
|
17
18
|
/**
|
|
18
19
|
* @param request The request to be authenticated
|
|
@@ -0,0 +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,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gC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ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"http-user-context.spec.d.ts","sourceRoot":"","sources":["../src/http-user-context.spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAO5C,eAAO,MAAM,eAAe,MAAa,QAAQ,kBAMhD,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gCAAgC,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,kBAAkB,CAAA;AAChC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,YAAY,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-service.integration.spec.d.ts","sourceRoot":"","sources":["../src/rest-service.integration.spec.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"rest-service.integration.spec.d.ts","sourceRoot":"","sources":["../src/rest-service.integration.spec.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest.integration.test.d.ts","sourceRoot":"","sources":["../src/rest.integration.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAIzC,OAAO,WAAW,CAAA;AAGlB,MAAM,WAAW,OAAQ,SAAQ,OAAO;IACtC,GAAG,EAAE;QACH,QAAQ,EAAE;YAAE,MAAM,EAAE,OAAO,CAAA;SAAE,CAAA;QAC7B,UAAU,EAAE;YAAE,OAAO,EAAE;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAAC,MAAM,EAAE;gBAAE,OAAO,EAAE;oBAAE,KAAK,CAAC,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE,CAAA;QACpF,gBAAgB,EAAE;YAAE,GAAG,EAAE;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE,CAAC;YAAC,MAAM,EAAE;gBAAE,GAAG,EAAE;oBAAE,EAAE,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE,CAAA;QAC1E,QAAQ,EAAE;YACR,KAAK,EAAE;gBAAE,UAAU,EAAE;oBAAE,GAAG,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;YACtC,MAAM,EAAE;gBAAE,KAAK,EAAE;oBAAE,UAAU,EAAE;wBAAE,GAAG,EAAE,MAAM,CAAA;qBAAE,CAAA;iBAAE,CAAA;aAAE,CAAA;SACnD,CAAA;KACF,CAAA;IACD,IAAI,EAAE;QACJ,OAAO,EAAE;YAAE,IAAI,EAAE;gBAAE,GAAG,EAAE,MAAM,CAAC;gBAAC,GAAG,EAAE,MAAM,CAAA;aAAE,CAAC;YAAC,MAAM,EAAE;gBAAE,IAAI,EAAE;oBAAE,GAAG,EAAE,MAAM,CAAC;oBAAC,GAAG,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE,CAAA;KAChG,CAAA;CACF"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.integration.spec.d.ts","sourceRoot":"","sources":["../src/validate.integration.spec.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"validate.integration.spec.d.ts","sourceRoot":"","sources":["../src/validate.integration.spec.ts"],"names":[],"mappings":"AAMA,OAAO,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.d.ts","sourceRoot":"","sources":["../../src/actions/get-current-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/actions/login.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAC/B,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-user-context.d.ts","sourceRoot":"","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