@adonoustech/bacon-core 1.21.1 → 1.22.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/cjs/interfaces/i-bacon-ui-passthrough-input-event.js +1 -1
- package/dist/es/interfaces/i-bacon-ui-passthrough-input-event.js +1 -1
- package/dist/types/interfaces/i-bacon-ui-passthrough-input-event.d.ts +53 -30
- package/package.json +2 -2
- package/src/interfaces/i-bacon-ui-passthrough-input-event.ts +57 -35
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// represents incoming APIGW HTTP API lambda event
|
|
3
3
|
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1iYWNvbi11aS1wYXNzdGhyb3VnaC1pbnB1dC1ldmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcmZhY2VzL2ktYmFjb24tdWktcGFzc3Rocm91Z2gtaW5wdXQtZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGtEQUFrRDtBQUNsRCx5R0FBeUciLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZXByZXNlbnRzIGluY29taW5nIEFQSUdXIEhUVFAgQVBJIGxhbWJkYSBldmVudFxyXG4vLyBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vYXBpZ2F0ZXdheS9sYXRlc3QvZGV2ZWxvcGVyZ3VpZGUvaHR0cC1hcGktZGV2ZWxvcC1pbnRlZ3JhdGlvbnMtbGFtYmRhLmh0bWxcclxuXHJcbi8vIGFzIG9mIHRvZGF5LCB0aGVyZSBhcmUgbm8gdHlwZXNjcmlwdCBkZWZpbml0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6IHtcclxuICAgICAgICAgIFtjbGFpbTogc3RyaW5nXTogc3RyaW5nXHJcbiAgICAgICAgfSxcclxuICAgICAgICBcInNjb3Blc1wiOiBzdHJpbmdbXVxyXG4gICAgICB9XHJcbiAgICB9LFxyXG4gICAgXCJkb21haW5OYW1lXCI6IHN0cmluZyxcclxuICAgIFwiZG9tYWluUHJlZml4XCI6IHN0cmluZyxcclxuICAgIFwiaHR0cFwiOiB7XHJcbiAgICAgIFwibWV0aG9kXCI6IHN0cmluZyxcclxuICAgICAgXCJwYXRoXCI6IHN0cmluZyxcclxuICAgICAgXCJwcm90b2NvbFwiOiBzdHJpbmcsXHJcbiAgICAgIFwic291cmNlSXBcIjogc3RyaW5nLFxyXG4gICAgICBcInVzZXJBZ2VudFwiOiBzdHJpbmdcclxuICAgIH0sXHJcbiAgICBcInJlcXVlc3RJZFwiOiBzdHJpbmcsXHJcbiAgICBcInJvdXRlS2V5XCI6IHN0cmluZyxcclxuICAgIFwic3RhZ2VcIjogc3RyaW5nLFxyXG4gICAgXCJ0aW1lXCI6IHN0cmluZyxcclxuICAgIFwidGltZUVwb2NoXCI6IG51bWJlclxyXG4gIH0sXHJcbiAgXCJib2R5XCI6IHN0cmluZyxcclxuICBcInBhdGhQYXJhbWV0ZXJzXCI6IHtcclxuICAgIFwicGFyYW1ldGVyMVwiOiBzdHJpbmcsXHJcbiAgfSxcclxuICBcImlzQmFzZTY0RW5jb2RlZFwiOiBmYWxzZSxcclxuICBcInN0YWdlVmFyaWFibGVzXCI6IHtcclxuICAgIFwic3RhZ2VWYXJpYWJsZTFcIjogc3RyaW5nLFxyXG4gICAgXCJzdGFnZVZhcmlhYmxlMlwiOiBzdHJpbmdcclxuICB9XHJcbn0iXX0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// represents incoming APIGW HTTP API lambda event
|
|
2
2
|
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
3
3
|
export {};
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1iYWNvbi11aS1wYXNzdGhyb3VnaC1pbnB1dC1ldmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcmZhY2VzL2ktYmFjb24tdWktcGFzc3Rocm91Z2gtaW5wdXQtZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0RBQWtEO0FBQ2xELHlHQUF5RyIsInNvdXJjZXNDb250ZW50IjpbIi8vIHJlcHJlc2VudHMgaW5jb21pbmcgQVBJR1cgSFRUUCBBUEkgbGFtYmRhIGV2ZW50XHJcbi8vIGh0dHBzOi8vZG9jcy5hd3MuYW1hem9uLmNvbS9hcGlnYXRld2F5L2xhdGVzdC9kZXZlbG9wZXJndWlkZS9odHRwLWFwaS1kZXZlbG9wLWludGVncmF0aW9ucy1sYW1iZGEuaHRtbFxyXG5cclxuLy8gYXMgb2YgdG9kYXksIHRoZXJlIGFyZSBubyB0eXBlc2NyaXB0IGRlZmluaXRpb25zIGZvciB0aGlzIGV2ZW50IHR5cGVcclxuZXhwb3J0IGludGVyZmFjZSBJQmFjb25VSVBhc3N0aHJvdWdoSW5wdXRFdmVudCBcclxue1xyXG4gIFwidmVyc2lvblwiOiBzdHJpbmcsXHJcbiAgXCJyb3V0ZUtleVwiOiBzdHJpbmcsXHJcbiAgXCJyYXdQYXRoXCI6IHN0cmluZyxcclxuICBcInJhd1F1ZXJ5U3RyaW5nXCI6IHN0cmluZyxcclxuICBcImNvb2tpZXNcIjogc3RyaW5nW10sXHJcbiAgXCJoZWFkZXJzXCI6IHtcclxuICAgIFtoZWFkZXI6IHN0cmluZ106IHN0cmluZyBcclxuICB9LFxyXG4gIFwicXVlcnlTdHJpbmdQYXJhbWV0ZXJzXCI6IHtcclxuICAgIFtwYXJhbTogc3RyaW5nXTogc3RyaW5nXHJcbiAgfSxcclxuICBcInJlcXVlc3RDb250ZXh0XCI6IHtcclxuICAgIFwiYWNjb3VudElkXCI6IHN0cmluZyxcclxuICAgIFwiYXBpSWRcIjogc3RyaW5nLFxyXG4gICAgXCJhdXRoZW50aWNhdGlvblwiOiB7XHJcbiAgICAgIFwiY2xpZW50Q2VydFwiOiB7XHJcbiAgICAgICAgXCJjbGllbnRDZXJ0UGVtXCI6IHN0cmluZyxcclxuICAgICAgICBcInN1YmplY3RETlwiOiBzdHJpbmcsXHJcbiAgICAgICAgXCJpc3N1ZXJETlwiOiBzdHJpbmcsXHJcbiAgICAgICAgXCJzZXJpYWxOdW1iZXJcIjogc3RyaW5nLFxyXG4gICAgICAgIFwidmFsaWRpdHlcIjoge1xyXG4gICAgICAgICAgXCJub3RCZWZvcmVcIjogc3RyaW5nLFxyXG4gICAgICAgICAgXCJub3RBZnRlclwiOiBzdHJpbmdcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH0sXHJcbiAgICBcImF1dGhvcml6ZXJcIjoge1xyXG4gICAgICBcImp3dFwiOiB7XHJcbiAgICAgICAgXCJjbGFpbXNcIjoge1xyXG4gICAgICAgICAgW2NsYWltOiBzdHJpbmddOiBzdHJpbmdcclxuICAgICAgICB9LFxyXG4gICAgICAgIFwic2NvcGVzXCI6IHN0cmluZ1tdXHJcbiAgICAgIH1cclxuICAgIH0sXHJcbiAgICBcImRvbWFpbk5hbWVcIjogc3RyaW5nLFxyXG4gICAgXCJkb21haW5QcmVmaXhcIjogc3RyaW5nLFxyXG4gICAgXCJodHRwXCI6IHtcclxuICAgICAgXCJtZXRob2RcIjogc3RyaW5nLFxyXG4gICAgICBcInBhdGhcIjogc3RyaW5nLFxyXG4gICAgICBcInByb3RvY29sXCI6IHN0cmluZyxcclxuICAgICAgXCJzb3VyY2VJcFwiOiBzdHJpbmcsXHJcbiAgICAgIFwidXNlckFnZW50XCI6IHN0cmluZ1xyXG4gICAgfSxcclxuICAgIFwicmVxdWVzdElkXCI6IHN0cmluZyxcclxuICAgIFwicm91dGVLZXlcIjogc3RyaW5nLFxyXG4gICAgXCJzdGFnZVwiOiBzdHJpbmcsXHJcbiAgICBcInRpbWVcIjogc3RyaW5nLFxyXG4gICAgXCJ0aW1lRXBvY2hcIjogbnVtYmVyXHJcbiAgfSxcclxuICBcImJvZHlcIjogc3RyaW5nLFxyXG4gIFwicGF0aFBhcmFtZXRlcnNcIjoge1xyXG4gICAgXCJwYXJhbWV0ZXIxXCI6IHN0cmluZyxcclxuICB9LFxyXG4gIFwiaXNCYXNlNjRFbmNvZGVkXCI6IGZhbHNlLFxyXG4gIFwic3RhZ2VWYXJpYWJsZXNcIjoge1xyXG4gICAgXCJzdGFnZVZhcmlhYmxlMVwiOiBzdHJpbmcsXHJcbiAgICBcInN0YWdlVmFyaWFibGUyXCI6IHN0cmluZ1xyXG4gIH1cclxufSJdfQ==
|
|
@@ -1,37 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
headers: {
|
|
1
|
+
export interface IBaconUIPassthroughInputEvent {
|
|
2
|
+
"version": string;
|
|
3
|
+
"routeKey": string;
|
|
4
|
+
"rawPath": string;
|
|
5
|
+
"rawQueryString": string;
|
|
6
|
+
"cookies": string[];
|
|
7
|
+
"headers": {
|
|
9
8
|
[header: string]: string;
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
"queryStringParameters": {
|
|
11
|
+
[param: string]: string;
|
|
12
|
+
};
|
|
13
|
+
"requestContext": {
|
|
14
|
+
"accountId": string;
|
|
15
|
+
"apiId": string;
|
|
16
|
+
"authentication": {
|
|
17
|
+
"clientCert": {
|
|
18
|
+
"clientCertPem": string;
|
|
19
|
+
"subjectDN": string;
|
|
20
|
+
"issuerDN": string;
|
|
21
|
+
"serialNumber": string;
|
|
22
|
+
"validity": {
|
|
23
|
+
"notBefore": string;
|
|
24
|
+
"notAfter": string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
"authorizer": {
|
|
29
|
+
"jwt": {
|
|
30
|
+
"claims": {
|
|
31
|
+
[claim: string]: string;
|
|
32
|
+
};
|
|
33
|
+
"scopes": string[];
|
|
34
|
+
};
|
|
16
35
|
};
|
|
17
|
-
domainName: string;
|
|
18
|
-
domainPrefix: string;
|
|
19
|
-
http: {
|
|
20
|
-
method: string;
|
|
21
|
-
path: string;
|
|
22
|
-
protocol: string;
|
|
23
|
-
sourceIp: string;
|
|
24
|
-
userAgent: string;
|
|
36
|
+
"domainName": string;
|
|
37
|
+
"domainPrefix": string;
|
|
38
|
+
"http": {
|
|
39
|
+
"method": string;
|
|
40
|
+
"path": string;
|
|
41
|
+
"protocol": string;
|
|
42
|
+
"sourceIp": string;
|
|
43
|
+
"userAgent": string;
|
|
25
44
|
};
|
|
26
|
-
requestId: string;
|
|
27
|
-
routeKey: string;
|
|
28
|
-
stage: string;
|
|
29
|
-
time: string;
|
|
30
|
-
timeEpoch: number;
|
|
45
|
+
"requestId": string;
|
|
46
|
+
"routeKey": string;
|
|
47
|
+
"stage": string;
|
|
48
|
+
"time": string;
|
|
49
|
+
"timeEpoch": number;
|
|
31
50
|
};
|
|
32
|
-
|
|
33
|
-
|
|
51
|
+
"body": string;
|
|
52
|
+
"pathParameters": {
|
|
53
|
+
"parameter1": string;
|
|
54
|
+
};
|
|
55
|
+
"isBase64Encoded": false;
|
|
56
|
+
"stageVariables": {
|
|
57
|
+
"stageVariable1": string;
|
|
58
|
+
"stageVariable2": string;
|
|
34
59
|
};
|
|
35
|
-
isBase64Encoded: boolean;
|
|
36
60
|
}
|
|
37
|
-
export { IBaconUIPassthroughInputEvent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonoustech/bacon-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
6
6
|
"build:es": "tsc -p tsconfig.es.json",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"bugs": {
|
|
46
46
|
"url": "https://github.com/AdonousTech/bacon-core/issues"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "36361eb3c7b4420f52487b302a823940ae7e01a0"
|
|
49
49
|
}
|
|
@@ -1,43 +1,65 @@
|
|
|
1
1
|
// represents incoming APIGW HTTP API lambda event
|
|
2
2
|
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
3
3
|
|
|
4
|
-
import { BaconBusinessLayerKinds } from "../enums";
|
|
5
|
-
|
|
6
4
|
// as of today, there are no typescript definitions for this event type
|
|
7
|
-
interface IBaconUIPassthroughInputEvent
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
export interface IBaconUIPassthroughInputEvent
|
|
6
|
+
{
|
|
7
|
+
"version": string,
|
|
8
|
+
"routeKey": string,
|
|
9
|
+
"rawPath": string,
|
|
10
|
+
"rawQueryString": string,
|
|
11
|
+
"cookies": string[],
|
|
12
|
+
"headers": {
|
|
13
|
+
[header: string]: string
|
|
14
|
+
},
|
|
15
|
+
"queryStringParameters": {
|
|
16
|
+
[param: string]: string
|
|
17
|
+
},
|
|
18
|
+
"requestContext": {
|
|
19
|
+
"accountId": string,
|
|
20
|
+
"apiId": string,
|
|
21
|
+
"authentication": {
|
|
22
|
+
"clientCert": {
|
|
23
|
+
"clientCertPem": string,
|
|
24
|
+
"subjectDN": string,
|
|
25
|
+
"issuerDN": string,
|
|
26
|
+
"serialNumber": string,
|
|
27
|
+
"validity": {
|
|
28
|
+
"notBefore": string,
|
|
29
|
+
"notAfter": string
|
|
30
|
+
}
|
|
31
|
+
}
|
|
15
32
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
domainPrefix: string,
|
|
24
|
-
http: {
|
|
25
|
-
method: string,
|
|
26
|
-
path: string,
|
|
27
|
-
protocol: string,
|
|
28
|
-
sourceIp: string,
|
|
29
|
-
userAgent: string
|
|
30
|
-
},
|
|
31
|
-
requestId: string,
|
|
32
|
-
routeKey: string,
|
|
33
|
-
stage: string,
|
|
34
|
-
time: string,
|
|
35
|
-
timeEpoch: number
|
|
33
|
+
"authorizer": {
|
|
34
|
+
"jwt": {
|
|
35
|
+
"claims": {
|
|
36
|
+
[claim: string]: string
|
|
37
|
+
},
|
|
38
|
+
"scopes": string[]
|
|
39
|
+
}
|
|
36
40
|
},
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
"domainName": string,
|
|
42
|
+
"domainPrefix": string,
|
|
43
|
+
"http": {
|
|
44
|
+
"method": string,
|
|
45
|
+
"path": string,
|
|
46
|
+
"protocol": string,
|
|
47
|
+
"sourceIp": string,
|
|
48
|
+
"userAgent": string
|
|
39
49
|
},
|
|
40
|
-
|
|
50
|
+
"requestId": string,
|
|
51
|
+
"routeKey": string,
|
|
52
|
+
"stage": string,
|
|
53
|
+
"time": string,
|
|
54
|
+
"timeEpoch": number
|
|
55
|
+
},
|
|
56
|
+
"body": string,
|
|
57
|
+
"pathParameters": {
|
|
58
|
+
"parameter1": string,
|
|
59
|
+
},
|
|
60
|
+
"isBase64Encoded": false,
|
|
61
|
+
"stageVariables": {
|
|
62
|
+
"stageVariable1": string,
|
|
63
|
+
"stageVariable2": string
|
|
41
64
|
}
|
|
42
|
-
|
|
43
|
-
export { IBaconUIPassthroughInputEvent };
|
|
65
|
+
}
|