@kumologica/sdk 3.1.0-beta2 → 3.1.0-beta3
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.
|
@@ -146,10 +146,19 @@ exports.builder = {
|
|
|
146
146
|
|
|
147
147
|
Supported triggers:
|
|
148
148
|
|
|
149
|
+
Partner Event:\n-----------------
|
|
150
|
+
* partnerEventBusName - The name of partner event bus name
|
|
151
|
+
* name - the name of event, optional, default value: Event+timestamp if not provided
|
|
152
|
+
* detailType - the detail-type content of the event. Optional
|
|
153
|
+
|
|
154
|
+
Examples:
|
|
155
|
+
1. Creates partner event trigger for salesforce AccountChangeEvent event:\n
|
|
156
|
+
{"partnerEvent": {"detail-type": "AccountChangeEvent", "partnerEventBusName": "aws.partner/salesforce.com/444444444/555555"}}
|
|
157
|
+
|
|
149
158
|
Cloudwatch Event:\n-----------------
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
159
|
+
* schedule - cron expression (minutes hours days-of-month month days-of-week year) or fixed rate expression, required.\n See more: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html
|
|
160
|
+
* name - the name of event, optional, default value: Event+timestamp if not provided
|
|
161
|
+
* reference - the reference property set for event listener node that should handle event. Optional
|
|
153
162
|
|
|
154
163
|
Examples:
|
|
155
164
|
1. Creates event trigger using cron expression that runs at 10am UTC every day:\n
|
|
@@ -36,6 +36,32 @@ const triggersSchema = {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
+
"partnerEvent": {
|
|
40
|
+
"$id": "#root/items/partnerEvent",
|
|
41
|
+
"title": "Partner Event",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": [
|
|
44
|
+
"partnerEventBusName"
|
|
45
|
+
],
|
|
46
|
+
additionalProperties: false,
|
|
47
|
+
"properties": {
|
|
48
|
+
"partnerEventBusName": {
|
|
49
|
+
"$id": "#root/items/partnerEvent/partnerEventBusName",
|
|
50
|
+
"title": "Partner Event Bus Name",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"detailType": {
|
|
54
|
+
"$id": "#root/items/partnerEvent/detailType",
|
|
55
|
+
"title": "detail-type of the partner event",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"name": {
|
|
59
|
+
"$id": "#root/items/partnerEvent/name",
|
|
60
|
+
"title": "Name of the Rule for the event",
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
39
65
|
"sqs": {
|
|
40
66
|
"$id": "#root/items/sqs",
|
|
41
67
|
"title": "Sqs",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"productName": "Kumologica Designer",
|
|
4
4
|
"copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
|
|
5
5
|
"author": "Kumologica Pty Ltd <contact@kumologica.com>",
|
|
6
|
-
"version": "3.1.0-
|
|
6
|
+
"version": "3.1.0-beta3",
|
|
7
7
|
"description": "Kumologica Designer, harnessing Serverless for your cloud integration needs",
|
|
8
8
|
"main": "src/app/main.js",
|
|
9
9
|
"files": [
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"license": "Proprietary",
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@electron/remote": "^2.0.8",
|
|
68
|
-
"@kumologica/builder": "3.1.0-
|
|
69
|
-
"@kumologica/devkit": "3.1.0-
|
|
70
|
-
"@kumologica/runtime": "3.1.0-
|
|
68
|
+
"@kumologica/builder": "3.1.0-beta3",
|
|
69
|
+
"@kumologica/devkit": "3.1.0-beta3",
|
|
70
|
+
"@kumologica/runtime": "3.1.0-beta3",
|
|
71
71
|
"adm-zip": "0.4.13",
|
|
72
72
|
"ajv": "8.10.0",
|
|
73
73
|
"aws-sdk": "2.814.0",
|
package/src/app/lib/aws/index.js
CHANGED
|
@@ -498,6 +498,12 @@ class AWSDeployer {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
this.log('Excluding optional dependencies...');
|
|
501
|
+
|
|
502
|
+
// for npm 8 on windows is creating symlink that causes recursions and zip to fail
|
|
503
|
+
const splitdir = path.dirname(settings.deployDir).split(path.sep);
|
|
504
|
+
const linkname = splitdir[splitdir.length-1];
|
|
505
|
+
fs.rmSync(path.join(settings.deployDir, 'node_modules', linkname), {force: true});
|
|
506
|
+
|
|
501
507
|
// Remove aws-sdk library as it is provided by aws nodejs runtime.
|
|
502
508
|
// Reducing the resulting lambda zip file by more than 70%
|
|
503
509
|
rimraf.sync(path.join(settings.deployDir, 'node_modules', 'aws-sdk'));
|