@fnd-platform/api 1.0.0-alpha.3 → 1.0.0-alpha.5
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/LICENSE +21 -0
- package/lib/api-project.js +1 -1
- package/package.json +11 -11
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 fnd-platform contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/lib/api-project.js
CHANGED
|
@@ -954,7 +954,7 @@ interface UpdateContentInput {
|
|
|
954
954
|
interface AuthenticatedEvent extends APIGatewayProxyEvent {
|
|
955
955
|
requestContext: APIGatewayProxyEvent['requestContext'] & {
|
|
956
956
|
authorizer: {
|
|
957
|
-
claims: { sub: string };
|
|
957
|
+
claims: { sub: string; email: string; 'cognito:groups'?: string[] };
|
|
958
958
|
};
|
|
959
959
|
};
|
|
960
960
|
}
|
package/package.json
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnd-platform/api",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"description": "Projen project class for generating Lambda API packages in fnd-platform",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib/"
|
|
9
9
|
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"test": "vitest run",
|
|
13
|
-
"test:watch": "vitest",
|
|
14
|
-
"test:coverage": "vitest run --coverage",
|
|
15
|
-
"lint": "eslint src/ test/"
|
|
16
|
-
},
|
|
17
10
|
"dependencies": {
|
|
18
11
|
"@aws-sdk/client-dynamodb": "^3.500.0",
|
|
19
12
|
"@aws-sdk/client-s3": "^3.500.0",
|
|
20
13
|
"@aws-sdk/lib-dynamodb": "^3.500.0",
|
|
21
14
|
"@aws-sdk/s3-request-presigner": "^3.500.0",
|
|
22
|
-
"@fnd-platform/core": "workspace:*",
|
|
23
15
|
"projen": "^0.91.0",
|
|
24
|
-
"zod": "^3.22.0"
|
|
16
|
+
"zod": "^3.22.0",
|
|
17
|
+
"@fnd-platform/core": "^1.0.0-alpha.2"
|
|
25
18
|
},
|
|
26
19
|
"peerDependencies": {
|
|
27
20
|
"projen": "^0.91.0"
|
|
@@ -52,5 +45,12 @@
|
|
|
52
45
|
"type": "git",
|
|
53
46
|
"url": "https://github.com/your-org/fnd-platform",
|
|
54
47
|
"directory": "packages/api"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsc",
|
|
51
|
+
"test": "vitest run",
|
|
52
|
+
"test:watch": "vitest",
|
|
53
|
+
"test:coverage": "vitest run --coverage",
|
|
54
|
+
"lint": "eslint src/ test/"
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|