wirejs-deploy-amplify-basic 0.0.122-async-api → 0.0.124-async-api
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.
|
@@ -56,6 +56,8 @@ userPoolClient.explicitAuthFlows.push(
|
|
|
56
56
|
'ALLOW_ADMIN_USER_PASSWORD_AUTH'
|
|
57
57
|
);
|
|
58
58
|
|
|
59
|
+
backend.api.resources.lambda.grantInvoke(backend.api.resources.lambda);
|
|
60
|
+
|
|
59
61
|
/**
|
|
60
62
|
* CDK resources
|
|
61
63
|
*/
|
|
@@ -197,6 +199,7 @@ backend.api.addEnvironment(
|
|
|
197
199
|
const apiUrl = backend.api.resources.lambda.addFunctionUrl({
|
|
198
200
|
authType: FunctionUrlAuthType.NONE
|
|
199
201
|
});
|
|
202
|
+
|
|
200
203
|
backend.addOutput({
|
|
201
204
|
custom: {
|
|
202
205
|
api: apiUrl.url
|
|
@@ -54,6 +54,7 @@ function isBackgroundJob(o: any): o is BackgroundJob<any> {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export const handler: LambdaFunctionURLHandler = async (event, context) => {
|
|
57
|
+
console.log('lambda invoke', event); // TEMP!
|
|
57
58
|
const calls = JSON.parse(event.body!);
|
|
58
59
|
|
|
59
60
|
if (Array.isArray(calls)) {
|
|
@@ -115,6 +116,7 @@ export const handler: LambdaFunctionURLHandler = async (event, context) => {
|
|
|
115
116
|
body: JSON.stringify({ message: 'Background job complete' })
|
|
116
117
|
};
|
|
117
118
|
} else {
|
|
119
|
+
console.error('Invalid request format', calls);
|
|
118
120
|
return {
|
|
119
121
|
statusCode: 400,
|
|
120
122
|
body: JSON.stringify({ error: 'Invalid request format' })
|
package/dist/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export { FileService } from './services/file.js';
|
|
|
3
3
|
export { AuthenticationService } from './services/authentication.js';
|
|
4
4
|
export { DistributedTable } from './resources/distributed-table.js';
|
|
5
5
|
export { RealtimeService } from './services/realtime.js';
|
|
6
|
+
export { BackgroundJob } from './resources/background-job.js';
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,11 @@ import { DistributedTable } from './resources/distributed-table.js';
|
|
|
10
10
|
export { DistributedTable } from './resources/distributed-table.js';
|
|
11
11
|
import { RealtimeService } from './services/realtime.js';
|
|
12
12
|
export { RealtimeService } from './services/realtime.js';
|
|
13
|
+
import { BackgroundJob } from './resources/background-job.js';
|
|
14
|
+
export { BackgroundJob } from './resources/background-job.js';
|
|
13
15
|
// expose resources to other resources that might depend on it.
|
|
14
16
|
overrides.AuthenticationService = AuthenticationService;
|
|
15
17
|
overrides.DistributedTable = DistributedTable;
|
|
16
18
|
overrides.FileService = FileService;
|
|
17
19
|
overrides.RealtimeService = RealtimeService;
|
|
20
|
+
overrides.BackgroundJob = BackgroundJob;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.124-async-api",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"recursive-copy": "^2.0.14",
|
|
43
43
|
"rimraf": "^6.0.1",
|
|
44
44
|
"wirejs-dom": "^1.0.41",
|
|
45
|
-
"wirejs-resources": "^0.1.
|
|
45
|
+
"wirejs-resources": "^0.1.92-async-api"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@aws-amplify/backend": "^1.14.0",
|