@izara_project/izara-market-library-service-schemas 1.0.30 → 1.0.31
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/package.json +1 -1
- package/src/GenerateCodeLibs/src/Consts.js +2 -1
- package/src/MainLibs/src/Consts.js +11 -4
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +3 -3
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +1 -2
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +2 -2
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +2 -2
- package/src/reStructure/TemplateData/EndpointPerService/yaml/data.js +10 -8
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/data.js +2 -2
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js +2 -2
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/handler/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/mainFunction/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/functionYaml/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/functionYml/HdrS3/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js +4 -4
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js +3 -3
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/template.ejs +2 -0
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/data.js +3 -2
- package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/template.ejs +4 -16
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchema/functionYaml/data.js +115 -0
- package/src/reStructure/TemplateData/flowSchema/{components/schema/inProcess → flowSchemaOwnTopic/flowSchema}/functionYaml/template.ejs +1 -20
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchema/handler/data.js +70 -0
- package/src/reStructure/TemplateData/flowSchema/{components/schema/inProcess → flowSchemaOwnTopic/flowSchema}/handler/template.ejs +14 -32
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchema/mainFunction/data.js +64 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchema/mainFunction/template.ejs +104 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchemaComplete/functionYaml/data.js +115 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchemaComplete/functionYaml/template.ejs +20 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchemaComplete/handler/data.js +71 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchemaComplete/handler/template.ejs +85 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchemaComplete/mainFunction/data.js +63 -0
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/flowSchemaComplete/mainFunction/template.ejs +105 -0
- package/src/reStructure/TemplateData/flowSchema/generateTemplateData.js +55 -35
- package/src/reStructure/TemplateData/generateRole/createSharedResource.js +10 -0
- package/src/reStructure/TemplateData/flowSchema/components/schema/inProcess/functionYaml/data.js +0 -76
- package/src/reStructure/TemplateData/flowSchema/components/schema/inProcess/handler/data.js +0 -46
- package/src/reStructure/TemplateData/flowSchema/components/schema/inProcess/mainFunction/data.js +0 -45
- package/src/reStructure/TemplateData/flowSchema/components/schema/inProcess/sns-sqs/data.js +0 -35
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/functionYaml/data.js +0 -34
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/functionYaml/template.ejs +0 -0
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/handler/data.js +0 -34
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/handler/template.ejs +0 -0
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/mainFunction/data.js +0 -34
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/mainFunction/template.ejs +0 -0
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/sns-sqs/data.js +0 -34
- package/src/reStructure/TemplateData/flowSchema/components/schema/outComplete/sns-sqs/template.ejs +0 -0
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/functionYaml/data.js +0 -101
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/functionYaml/template.ejs +0 -43
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/handler/data.js +0 -93
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/handler/templateAsyncHandler.ejs +0 -110
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/handler/templateSyncHandler.ejs +0 -49
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/hookLogic/data.js +0 -64
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/mainFunction/data.js +0 -66
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/mainFunction/template.ejs +0 -30
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/queue/data.js +0 -124
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/queue/snsTemplate.ejs +0 -59
- package/src/reStructure/TemplateData/flowSchema/legacy/hookCode-old/queue/sqsTemplate.ejs +0 -43
- /package/src/reStructure/TemplateData/flowSchema/{components/schema/inProcess/mainFunction/template.ejs → flowSchemaOwnTopic/sns-in/data.js} +0 -0
- /package/src/reStructure/TemplateData/flowSchema/{components/schema/inProcess/sns-sqs/template.ejs → flowSchemaOwnTopic/sns-out/data.js} +0 -0
package/package.json
CHANGED
|
@@ -61,7 +61,8 @@ const TOPIC_NAME_GENERATE_CODE = {
|
|
|
61
61
|
getNodeComplete: "GetNodeComplete",
|
|
62
62
|
outGetNodeComplete: "GetNodeComplete_Out",
|
|
63
63
|
reservedLimitComplete: "ReservedLimitComplete",
|
|
64
|
-
createPresignUrl: "CreatePresignUrl"
|
|
64
|
+
createPresignUrl: "CreatePresignUrl",
|
|
65
|
+
flowSchemaOwnTopicComplete: "FlowSchemaOwnTopicComplete"
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
const GRAPH_HANDLER_SERVICE_NAME = {
|
|
@@ -111,12 +111,15 @@ const SOURCE_PATH = {
|
|
|
111
111
|
translateIdsRequestFile: '../src/generatedCode/TranslateId/source/',
|
|
112
112
|
processLogical: "../src/generatedCode/ProcessLogical/source/",
|
|
113
113
|
resourceLocationPerAction: 'src/generatedCode/ObjectTypePerActionEndpoint/source/',
|
|
114
|
-
resourceLocationFindData: 'src/generatedCode/FindData/source',
|
|
114
|
+
resourceLocationFindData: 'src/generatedCode/FindData/source/',
|
|
115
|
+
resourceLocationFindData: 'src/generatedCode/FindData/source/',
|
|
115
116
|
resourceLocationRelationshipPerAction: 'src/generatedCode/RelationshipPerAction/source/',
|
|
116
117
|
resourceLocationTranslateId: 'src/generatedCode/TranslateId/source/',
|
|
117
118
|
resourceLocationProcessLogical: "src/generatedCode/ProcessLogical/source/",
|
|
118
|
-
webSocket: "../src/generatedCode/FlowSchema/
|
|
119
|
-
resourceLocationWebSocket: "src/generatedCode/FlowSchema/
|
|
119
|
+
webSocket: "../src/generatedCode/FlowSchema/UploadS3/",
|
|
120
|
+
resourceLocationWebSocket: "src/generatedCode/FlowSchema/UploadS3/",
|
|
121
|
+
flowSchemaOwnTopic: "../src/generatedCode/FlowSchema/FlowSchemaOwnTopic/",
|
|
122
|
+
resourceLocationFlowSchemaOwnTopic: "src/generatedCode/flowSchemaOwnTopic/UploadS3/",
|
|
120
123
|
generateCodeLib: "../src/generatedCode/libs/source/",
|
|
121
124
|
logicalFunctionHook: "../src/generatedCode/WebSocket/source/FlowSchemaHook/HookLogicFunction/source/",
|
|
122
125
|
resourceLocationLogicalFunctionHook: "src/generatedCode/WebSocket/source/FlowSchemaHook/HookLogicFunction/source",
|
|
@@ -250,7 +253,9 @@ const FUNCTION_NAME = {
|
|
|
250
253
|
getRel: "getRelationship",
|
|
251
254
|
getRelComplete: "getRelationshipComplete",
|
|
252
255
|
reservedLimit: "reservedLimit",
|
|
253
|
-
createPresignUrl: "createPresignUrl"
|
|
256
|
+
createPresignUrl: "createPresignUrl",
|
|
257
|
+
flowSchemaOwnTopic: "flowSchemaOwnTopic",
|
|
258
|
+
flowSchemaOwnTopicComplete: "flowSchemaOwnTopicComplete"
|
|
254
259
|
};
|
|
255
260
|
|
|
256
261
|
const SHORT_FUNCTION_NAME = {
|
|
@@ -366,6 +371,8 @@ const SOURCE_GENERATE_IAM_ROLE = {
|
|
|
366
371
|
RelationshipRole: "Relationship",
|
|
367
372
|
RelationshipCompleteRole: "RelationshipCom",
|
|
368
373
|
FlowSchemaUploadS3Role: "FlowSchemaUploadS3",
|
|
374
|
+
FlowSchemaOwnTopic: "FlowSchemaOwnTopic",
|
|
375
|
+
FlowSchemaOwnTopic: "FlowSchemaOwnTopic",
|
|
369
376
|
perActionEndpoint: "PerActionEndpoint"
|
|
370
377
|
};
|
|
371
378
|
|
|
@@ -567,7 +567,7 @@ module.exports.createMain = async (
|
|
|
567
567
|
let sendMessageOutCreateObjectComplete = {
|
|
568
568
|
Message: JSON.stringify(messageObject),
|
|
569
569
|
MessageAttributes: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
570
|
-
TopicArn: await snsSharedLib.
|
|
570
|
+
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outCreateNodeComplete)
|
|
571
571
|
};
|
|
572
572
|
_izContext.logger.debug("Send message to OutCreateObjectComplete :::>", sendMessageOutCreateObjectComplete)
|
|
573
573
|
await sns.publishAsync(_izContext, sendMessageOutCreateObjectComplete);
|
|
@@ -599,7 +599,7 @@ module.exports.createMain = async (
|
|
|
599
599
|
messageObject = callingFlowSharedLib.addPassBackPropertiesToSnsResponseMessageObject(callingFlowConfig, messageObject);
|
|
600
600
|
|
|
601
601
|
let messageAttributes = callingFlowSharedLib.addCallingFlowToSnsResponseMessageAttributes(callingFlowConfig, {});
|
|
602
|
-
let outCreateNodeCompleteTopic = await snsSharedLib.
|
|
602
|
+
let outCreateNodeCompleteTopic = await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outCreateNodeComplete)
|
|
603
603
|
let messageParams = {
|
|
604
604
|
Message: JSON.stringify(messageObject),
|
|
605
605
|
MessageAttributes: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
@@ -621,4 +621,4 @@ module.exports.createMain = async (
|
|
|
621
621
|
} catch (err) {
|
|
622
622
|
throw (err)
|
|
623
623
|
}
|
|
624
|
-
}
|
|
624
|
+
}
|
|
@@ -23,7 +23,6 @@ const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-
|
|
|
23
23
|
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
24
24
|
|
|
25
25
|
const sns = require('@izara_project/izara-core-library-external-request/src/resources/Sns');
|
|
26
|
-
const snsSharedLib = require('@izara_project/izara-shared/src/SnsSharedLib');
|
|
27
26
|
const getObjectSchema = require('@izara_project/izara-core-library-service-schemas/src/GetObjectSchema');
|
|
28
27
|
const serviceConfigLib = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig')
|
|
29
28
|
|
|
@@ -108,7 +107,7 @@ module.exports.deleteMain = async (
|
|
|
108
107
|
let messageParams = {
|
|
109
108
|
Message: JSON.stringify(deleteNodeCompleteMessage),
|
|
110
109
|
MessageAttribute: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
111
|
-
TopicArn: await snsSharedLib.
|
|
110
|
+
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outDeleteNodeComplete)
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
_izContext.logger.debug("messageParams OutDeleteNodeComplete::", messageParams);
|
|
@@ -160,7 +160,7 @@ module.exports.getMain = async (
|
|
|
160
160
|
messageObject = callingFlowSharedLib.addPassBackPropertiesToSnsResponseMessageObject(callingFlowConfig, messageObject);
|
|
161
161
|
|
|
162
162
|
let messageAttributes = callingFlowSharedLib.addCallingFlowToSnsResponseMessageAttributes(callingFlowConfig, {});
|
|
163
|
-
let outGetNodeCompleteTopic = await snsSharedLib.
|
|
163
|
+
let outGetNodeCompleteTopic = await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outGetNodeComplete)
|
|
164
164
|
let messageParams = {
|
|
165
165
|
Message: JSON.stringify(messageObject),
|
|
166
166
|
MessageAttributes: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
@@ -168,7 +168,7 @@ module.exports.getMain = async (
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
_izContext.logger.debug("messageParams OutUpdateNode ::::::: ", messageParams);
|
|
171
|
-
|
|
171
|
+
await sns.publishAsync(_izContext, messageParams);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
|
|
@@ -176,7 +176,7 @@ module.exports.updateMain = async (
|
|
|
176
176
|
let messageParams = {
|
|
177
177
|
Message: JSON.stringify(updateNodeCompleteMessage),
|
|
178
178
|
MessageAttributes: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
179
|
-
TopicArn: await snsSharedLib.
|
|
179
|
+
TopicArn: await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outUpdateNodeComplete),
|
|
180
180
|
};
|
|
181
181
|
|
|
182
182
|
_izContext.logger.debug("messageParams OutUpdateNodeComplete ::::::: ", messageParams);
|
|
@@ -295,7 +295,7 @@ module.exports.updateMain = async (
|
|
|
295
295
|
let messageAttributes = callingFlowSharedLib.addCallingFlowToSnsResponseMessageAttributes(callingFlowConfig, {});
|
|
296
296
|
|
|
297
297
|
_izContext.logger.debug("after create callingFlow", messageObject)
|
|
298
|
-
let outUpdateNodeCompleteTopic = await snsSharedLib.
|
|
298
|
+
let outUpdateNodeCompleteTopic = await snsSharedLib.snsTopicArnByFlowSchema(_izContext, TOPIC_NAME_GENERATE_CODE.outUpdateNodeComplete);
|
|
299
299
|
let messageParams = {
|
|
300
300
|
Message: JSON.stringify(messageObject),
|
|
301
301
|
MessageAttributes: sns.createStringMessageAttributes(_izContext, messageAttributes),
|
|
@@ -72,16 +72,18 @@ async function createParamForCreateSource(_izContext, allObjSchemas, action, han
|
|
|
72
72
|
|
|
73
73
|
let storageResourceAllLocalObjectSchemas = await getStorageResourceFromObjectSchemas(_izContext, allObjSchemas)
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
if (storageResourceAllLocalObjectSchemas.resourceDynamoTableName.length) {
|
|
76
|
+
additionalResourcePermission.push(
|
|
77
|
+
createIamRole(
|
|
78
|
+
{
|
|
79
|
+
[RESOURCE_CLASSES.dynamoDbTable]: Object.values(DYNAMO_RESOURCE),
|
|
80
|
+
},
|
|
81
|
+
storageResourceAllLocalObjectSchemas.resourceDynamoTableName.map(tableName =>
|
|
82
|
+
resourceNames(RESOURCE_CLASSES.dynamoDbTable, tableName)
|
|
83
|
+
)
|
|
82
84
|
)
|
|
83
85
|
)
|
|
84
|
-
|
|
86
|
+
}
|
|
85
87
|
|
|
86
88
|
function httpEvent(lambdaAction) {
|
|
87
89
|
return {
|
|
@@ -49,11 +49,11 @@ const {
|
|
|
49
49
|
* @return {{ templatePath, templateData, setting } }
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
|
-
function data(_izContext, srcPath) {
|
|
53
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
52
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
53
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
function createSourceParams(_izContext, srcPath) {
|
|
56
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
57
57
|
let functionName = "ConfirmNewReserved";
|
|
58
58
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
59
59
|
let additionalResourcePermission = defaultIamRolePerAction();
|
|
@@ -104,7 +104,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
104
104
|
functionName,
|
|
105
105
|
handlerType,
|
|
106
106
|
functionNameConfig: functionName + upperCase(handlerType),
|
|
107
|
-
resourceLocation: SOURCE_PATH.resourceLocationWebSocket,
|
|
107
|
+
resourceLocation: path.join(SOURCE_PATH.resourceLocationWebSocket, flowSchema.flowTag, "source/"),
|
|
108
108
|
additionalResourcePermission,
|
|
109
109
|
functionNameConfig: upperCase(functionName) + upperCase(shortNameHandler(handlerType)),
|
|
110
110
|
roleName: SOURCE_GENERATE_IAM_ROLE.FlowSchemaUploadS3Role
|
package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/data.js
CHANGED
|
@@ -30,11 +30,11 @@ const { HANDLER, SOURCE_PATH } = require('../../../../../../../MainLibs/src/Cons
|
|
|
30
30
|
* @return {{ templatePath, templateData, setting } }
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
function data(_izContext, srcPath) {
|
|
34
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
33
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
34
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function createSourceParams(_izContext, srcPath) {
|
|
37
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
38
38
|
let functionName = "ConfirmNewReserved";
|
|
39
39
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
46
46
|
},
|
|
47
47
|
setting: {
|
|
48
48
|
saveFileName: `${functionName}_${handlerType}`,
|
|
49
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
49
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
50
50
|
fileExtension: ".js",
|
|
51
51
|
isAppend: true
|
|
52
52
|
}
|
|
@@ -34,14 +34,14 @@ function data(_izContext, flowSchema, srcPath) {
|
|
|
34
34
|
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function createSourceParams(_izContext, srcPath) {
|
|
37
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
38
38
|
let functionName = "ConfirmNewReserved"
|
|
39
39
|
return {
|
|
40
40
|
templatePath: templatePath,
|
|
41
41
|
templateData: {},
|
|
42
42
|
setting: {
|
|
43
43
|
saveFileName: `${functionName}_Main`,
|
|
44
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
44
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
45
45
|
fileExtension: ".js",
|
|
46
46
|
isAppend: false
|
|
47
47
|
}
|
package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/functionYaml/data.js
CHANGED
|
@@ -53,7 +53,7 @@ function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
|
53
53
|
let functionName = upperCase(FUNCTION_NAME.createObjectS3)
|
|
54
54
|
let handlerType = upperCase("hdrWbs")
|
|
55
55
|
let additionalResourcePermission = defaultIamRolePerAction();
|
|
56
|
-
let route =
|
|
56
|
+
let route = flowSchema.flowTag;
|
|
57
57
|
|
|
58
58
|
additionalResourcePermission.push(
|
|
59
59
|
createIamRole(
|
|
@@ -96,7 +96,7 @@ function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
|
96
96
|
return {
|
|
97
97
|
templatePath: templatePath,
|
|
98
98
|
templateData: {
|
|
99
|
-
resourceLocation: SOURCE_PATH.resourceLocationWebSocket,
|
|
99
|
+
resourceLocation: path.join(SOURCE_PATH.resourceLocationWebSocket, flowSchema.flowTag, "source/"),
|
|
100
100
|
functionName,
|
|
101
101
|
handlerType,
|
|
102
102
|
additionalResourcePermission,
|
package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/data.js
CHANGED
|
@@ -46,7 +46,7 @@ function createParamsForCreateSource(_izContext, flowSchema, srcPath) {
|
|
|
46
46
|
handlerType
|
|
47
47
|
},
|
|
48
48
|
setting: {
|
|
49
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
49
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
50
50
|
saveFileName: `${functionName}_${handlerType}`,
|
|
51
51
|
fileExtension: ".js",
|
|
52
52
|
isAppend: false
|
package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/data.js
CHANGED
|
@@ -44,7 +44,7 @@ async function createParamsForCreateSource(_izContext, flowSchema, srcPath) {
|
|
|
44
44
|
templatePath: templatePath,
|
|
45
45
|
templateData: {},
|
|
46
46
|
setting: {
|
|
47
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
47
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
48
48
|
saveFileName: `${functionName}_Main`,
|
|
49
49
|
fileExtension: ".js",
|
|
50
50
|
isAppend: false
|
|
@@ -47,11 +47,11 @@ const {
|
|
|
47
47
|
* @param {Object} objectSchemas
|
|
48
48
|
* @return {{ templatePath, templateData, setting } }
|
|
49
49
|
*/
|
|
50
|
-
function data(_izContext, srcPath) {
|
|
51
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
50
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
51
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
function createSourceParams(_izContext, srcPath) {
|
|
54
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
55
55
|
let functionName = upperCase(FUNCTION_NAME.createObjectS3Complete);
|
|
56
56
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
57
57
|
let additionalResourcePermission = defaultIamRolePerAction();
|
|
@@ -98,7 +98,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
98
98
|
return {
|
|
99
99
|
templatePath: templatePath,
|
|
100
100
|
templateData: {
|
|
101
|
-
resourceLocation: SOURCE_PATH.resourceLocationWebSocket,
|
|
101
|
+
resourceLocation: path.join(SOURCE_PATH.resourceLocationWebSocket, flowSchema.flowTag, "source/"),
|
|
102
102
|
functionName: functionName,
|
|
103
103
|
handlerType: handlerType,
|
|
104
104
|
additionalResourcePermission: additionalResourcePermission,
|
|
@@ -45,11 +45,11 @@ const {
|
|
|
45
45
|
* @param {Object} objectSchemas
|
|
46
46
|
* @return {{ templatePath, templateData, setting } }
|
|
47
47
|
*/
|
|
48
|
-
function data(_izContext, srcPath) {
|
|
49
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
48
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
49
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
function createSourceParams(_izContext, srcPath) {
|
|
52
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
53
53
|
let functionName = upperCase(FUNCTION_NAME.createObjectS3Complete)
|
|
54
54
|
let handlerType = upperCase(HANDLER.hdrSqs)
|
|
55
55
|
return {
|
|
@@ -59,7 +59,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
59
59
|
handlerType,
|
|
60
60
|
},
|
|
61
61
|
setting: {
|
|
62
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
62
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
63
63
|
saveFileName: `${functionName}_${handlerType}`,
|
|
64
64
|
fileExtension: ".js",
|
|
65
65
|
isAppend: false
|
|
@@ -32,11 +32,11 @@ const { firstLetterUpperCase: upperCase } = require('../../../../../../../MainLi
|
|
|
32
32
|
* @param {Object} objectSchemas
|
|
33
33
|
* @return {{ templatePath, templateData, setting } }
|
|
34
34
|
*/
|
|
35
|
-
function data(_izContext, srcPath) {
|
|
36
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
35
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
36
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
function createSourceParams(_izContext, srcPath) {
|
|
39
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
40
40
|
let functionName = upperCase(FUNCTION_NAME.createObjectS3Complete)
|
|
41
41
|
return {
|
|
42
42
|
templatePath: templatePath,
|
|
@@ -44,7 +44,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
44
44
|
functionName,
|
|
45
45
|
},
|
|
46
46
|
setting: {
|
|
47
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
47
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
48
48
|
saveFileName: `${functionName}_Main`,
|
|
49
49
|
fileExtension: ".js",
|
|
50
50
|
isAppend: false
|
|
@@ -54,11 +54,11 @@ const {
|
|
|
54
54
|
* @return {{ templatePath, templateData, setting } }
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
|
-
function data(_izContext, srcPath) {
|
|
58
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
57
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
58
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
function createSourceParams(_izContext, srcPath) {
|
|
61
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
62
62
|
let functionName = upperCase(FUNCTION_NAME.createPresignUrl);
|
|
63
63
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
64
64
|
let additionalResourcePermission = defaultIamRolePerAction();
|
|
@@ -118,7 +118,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
118
118
|
functionName,
|
|
119
119
|
handlerType,
|
|
120
120
|
functionNameConfig: functionName + upperCase(handlerType),
|
|
121
|
-
resourceLocation: SOURCE_PATH.resourceLocationWebSocket,
|
|
121
|
+
resourceLocation: path.join(SOURCE_PATH.resourceLocationWebSocket, flowSchema.flowTag, "source/"),
|
|
122
122
|
additionalResourcePermission,
|
|
123
123
|
functionNameConfig: upperCase("ReservedLimitComp") + upperCase(shortNameHandler(handlerType)),
|
|
124
124
|
roleName: SOURCE_GENERATE_IAM_ROLE.FlowSchemaUploadS3Role
|
|
@@ -31,11 +31,11 @@ const { HANDLER, SOURCE_PATH, FUNCTION_NAME } = require('../../../../../../../..
|
|
|
31
31
|
* @return {{ templatePath, templateData, setting } }
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
function data(_izContext, srcPath) {
|
|
35
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
34
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
35
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
function createSourceParams(_izContext, srcPath) {
|
|
38
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
39
39
|
let functionName = upperCase(FUNCTION_NAME.createPresignUrl);
|
|
40
40
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
41
41
|
|
|
@@ -47,7 +47,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
47
47
|
},
|
|
48
48
|
setting: {
|
|
49
49
|
saveFileName: `${functionName}_${handlerType}`,
|
|
50
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
50
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
51
51
|
fileExtension: ".js",
|
|
52
52
|
isAppend: true
|
|
53
53
|
}
|
|
@@ -44,7 +44,7 @@ function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
|
44
44
|
},
|
|
45
45
|
setting: {
|
|
46
46
|
saveFileName: `${functionName}_Main`,
|
|
47
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
47
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
48
48
|
fileExtension: ".js",
|
|
49
49
|
isAppend: false
|
|
50
50
|
}
|
|
@@ -51,11 +51,11 @@ const {
|
|
|
51
51
|
* @return {{ templatePath, templateData, setting } }
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
|
-
function data(_izContext, srcPath) {
|
|
55
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
54
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
55
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
function createSourceParams(_izContext, srcPath) {
|
|
58
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
59
59
|
let functionName = upperCase(FUNCTION_NAME.reservedLimit);
|
|
60
60
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
61
61
|
let additionalResourcePermission = defaultIamRolePerAction();
|
|
@@ -88,7 +88,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
88
88
|
functionName,
|
|
89
89
|
handlerType,
|
|
90
90
|
functionNameConfig: functionName + upperCase(handlerType),
|
|
91
|
-
resourceLocation: SOURCE_PATH.resourceLocationWebSocket,
|
|
91
|
+
resourceLocation: path.join(SOURCE_PATH.resourceLocationWebSocket, flowSchema.flowTag, "source/"),
|
|
92
92
|
additionalResourcePermission,
|
|
93
93
|
functionNameConfig: upperCase(functionName) + upperCase(shortNameHandler(handlerType)),
|
|
94
94
|
roleName: SOURCE_GENERATE_IAM_ROLE.FlowSchemaUploadS3Role
|
|
@@ -31,11 +31,11 @@ const { HANDLER, SOURCE_PATH, FUNCTION_NAME } = require('../../../../../../../..
|
|
|
31
31
|
* @return {{ templatePath, templateData, setting } }
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
function data(_izContext, srcPath) {
|
|
35
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
34
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
35
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
function createSourceParams(_izContext, srcPath) {
|
|
38
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
39
39
|
let functionName = upperCase(FUNCTION_NAME.reservedLimit);
|
|
40
40
|
let handlerType = upperCase(HANDLER.hdrSqs);
|
|
41
41
|
|
|
@@ -47,7 +47,7 @@ function createSourceParams(_izContext, srcPath) {
|
|
|
47
47
|
},
|
|
48
48
|
setting: {
|
|
49
49
|
saveFileName: `${functionName}_${handlerType}`,
|
|
50
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
50
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
51
51
|
fileExtension: ".js",
|
|
52
52
|
isAppend: true
|
|
53
53
|
}
|
|
@@ -30,18 +30,18 @@ const { SOURCE_PATH, FUNCTION_NAME } = require('../../../../../../../../MainLibs
|
|
|
30
30
|
* @return {{ templatePath, templateData, setting } }
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
function data(_izContext, srcPath) {
|
|
34
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
33
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
34
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function createSourceParams(_izContext, srcPath) {
|
|
37
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
38
38
|
let functionName = upperCase(FUNCTION_NAME.reservedLimit)
|
|
39
39
|
return {
|
|
40
40
|
templatePath: templatePath,
|
|
41
41
|
templateData: {},
|
|
42
42
|
setting: {
|
|
43
43
|
saveFileName: `${functionName}_Main`,
|
|
44
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
44
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
45
45
|
fileExtension: ".js",
|
|
46
46
|
isAppend: false
|
|
47
47
|
}
|
|
@@ -114,7 +114,7 @@ function createSourceParam(_izContext, flowSchema, srcPath) {
|
|
|
114
114
|
functionName,
|
|
115
115
|
handlerType,
|
|
116
116
|
additionalResourcePermission,
|
|
117
|
-
resourceLocation: SOURCE_PATH.resourceLocationWebSocket,
|
|
117
|
+
resourceLocation: path.join(SOURCE_PATH.resourceLocationWebSocket, flowSchema.flowTag, "source/"),
|
|
118
118
|
bucketName,
|
|
119
119
|
functionNameConfig: upperCase(functionName) + upperCase(shortNameHandler(handlerType)),
|
|
120
120
|
roleName: SOURCE_GENERATE_IAM_ROLE.FlowSchemaUploadS3Role
|
|
@@ -38,18 +38,18 @@ const {
|
|
|
38
38
|
|
|
39
39
|
const templatePath = path.join(__dirname, "./template.ejs")
|
|
40
40
|
|
|
41
|
-
function data(_izContext, srcPath) {
|
|
42
|
-
return [createSourceData(_izContext, srcPath)]
|
|
41
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
42
|
+
return [createSourceData(_izContext, flowSchema, srcPath)]
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
function createSourceData(_izContext, srcPath) {
|
|
45
|
+
function createSourceData(_izContext, flowSchema, srcPath) {
|
|
46
46
|
let functionName = FUNCTION_NAME.processAfterUploadS3
|
|
47
47
|
let handlerType = "HdrS3"
|
|
48
48
|
return {
|
|
49
49
|
templatePath: templatePath,
|
|
50
50
|
templateData: {},
|
|
51
51
|
setting: {
|
|
52
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
52
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
53
53
|
saveFileName: `${upperCase(functionName)}_${upperCase(handlerType)}`,
|
|
54
54
|
fileExtension: ".js",
|
|
55
55
|
}
|
package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/data.js
CHANGED
|
@@ -38,18 +38,18 @@ const {
|
|
|
38
38
|
|
|
39
39
|
const templatePath = path.join(__dirname, "./template.ejs")
|
|
40
40
|
|
|
41
|
-
function data(_izContext, srcPath) {
|
|
42
|
-
return [createSourceParams(_izContext, srcPath)]
|
|
41
|
+
function data(_izContext, flowSchema, srcPath) {
|
|
42
|
+
return [createSourceParams(_izContext, flowSchema, srcPath)]
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
function createSourceParams(_izContext, srcPath) {
|
|
45
|
+
function createSourceParams(_izContext, flowSchema, srcPath) {
|
|
46
46
|
let functionName = upperCase(FUNCTION_NAME.processAfterUploadS3)
|
|
47
47
|
return {
|
|
48
48
|
templatePath: templatePath,
|
|
49
49
|
templateData: {},
|
|
50
50
|
setting: {
|
|
51
51
|
saveFileName: `${functionName}_Main`,
|
|
52
|
-
savePath: path.join(srcPath, SOURCE_PATH.webSocket),
|
|
52
|
+
savePath: path.join(srcPath, SOURCE_PATH.webSocket, flowSchema.flowTag, "source/"),
|
|
53
53
|
fileExtension: ".js",
|
|
54
54
|
}
|
|
55
55
|
}
|
package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/functionYaml/data.js
CHANGED
|
@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const path = require('path');
|
|
20
20
|
|
|
21
|
-
const { SOURCE_PATH, SAVE_FILE_NAME, defaultIamRolePerAction, createIamRole, RESOURCE_CLASSES, DYNAMO_RESOURCE, resourceNames, SOURCE_GENERATE_IAM_ROLE } = require("
|
|
22
|
-
const { firstLetterUpperCase: upperCase } = require('
|
|
21
|
+
const { SOURCE_PATH, SAVE_FILE_NAME, defaultIamRolePerAction, createIamRole, RESOURCE_CLASSES, DYNAMO_RESOURCE, resourceNames, SOURCE_GENERATE_IAM_ROLE } = require("../../../../../../../MainLibs/src/Consts");
|
|
22
|
+
const { firstLetterUpperCase: upperCase } = require('../../../../../../../MainLibs/src/Utils');
|
|
23
23
|
|
|
24
24
|
const templatePath = path.join(__dirname, "./template.ejs")
|
|
25
25
|
|
|
@@ -59,7 +59,7 @@ function createWebSocketConnectYaml(_izContext, srcPath) {
|
|
|
59
59
|
templatePath: templatePath,
|
|
60
60
|
templateData: {
|
|
61
61
|
functionName,
|
|
62
|
-
resourceLocation:
|
|
62
|
+
resourceLocation: "src/generatedCode/FlowSchema/WebSocketConnect/source/",
|
|
63
63
|
additionalResourcePermission,
|
|
64
64
|
roleName: SOURCE_GENERATE_IAM_ROLE.FlowSchemaUploadS3Role
|
|
65
65
|
|
package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/data.js
CHANGED
|
@@ -18,7 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const path = require('path');
|
|
20
20
|
|
|
21
|
-
const { SOURCE_PATH } = require("
|
|
21
|
+
const { SOURCE_PATH, SAVE_FILE_NAME, defaultIamRolePerAction, createIamRole, RESOURCE_CLASSES, DYNAMO_RESOURCE, resourceNames, SOURCE_GENERATE_IAM_ROLE } = require("../../../../../../../MainLibs/src/Consts");
|
|
22
|
+
const { firstLetterUpperCase: upperCase } = require('../../../../../../../MainLibs/src/Utils');
|
|
22
23
|
|
|
23
24
|
const templatePath = path.join(__dirname, "./template.ejs")
|
|
24
25
|
|
|
@@ -44,7 +45,7 @@ function createWebSocketConnectYaml(_izContext, srcPath) {
|
|
|
44
45
|
functionName,
|
|
45
46
|
},
|
|
46
47
|
setting: {
|
|
47
|
-
savePath: path.join(srcPath,
|
|
48
|
+
savePath: path.join(srcPath, "../src/generatedCode/FlowSchema/WebSocketConnect/source/"),
|
|
48
49
|
saveFileName: functionName,
|
|
49
50
|
fileExtension: ".js",
|
|
50
51
|
isAppend: false
|
package/src/reStructure/TemplateData/flowSchema/components/websocket/connect/handler/template.ejs
CHANGED
|
@@ -32,25 +32,13 @@ module.exports.main = middleware.wrap(async (event, context, callback) => {
|
|
|
32
32
|
switch (eventType) {
|
|
33
33
|
case 'CONNECT':
|
|
34
34
|
console.log('Connect websocket')
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
// await dynamodbSharedLib.tableName(event._izContext, "WebSocketTask"),
|
|
38
|
-
// {
|
|
39
|
-
// taskKey: "connect" + connectionId,
|
|
40
|
-
// connectionId: connectionId,
|
|
41
|
-
// }
|
|
42
|
-
// )
|
|
35
|
+
//(<additionalParams>)
|
|
36
|
+
//(</additionalParams>)
|
|
43
37
|
break
|
|
44
38
|
case 'DISCONNECT':
|
|
45
39
|
console.log('Websocket are Disconnection')
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
// await dynamodbSharedLib.tableName(event._izContext, "WebSocketTask"),
|
|
49
|
-
// {
|
|
50
|
-
// taskKey: "connect" + connectionId,
|
|
51
|
-
// connectionid: connectionId
|
|
52
|
-
// }
|
|
53
|
-
// );
|
|
40
|
+
//(<additionalParams>)
|
|
41
|
+
//(</additionalParams>)
|
|
54
42
|
break
|
|
55
43
|
case '$default':
|
|
56
44
|
console.log('Received unknown route:', route)
|