@izara_project/izara-market-library-service-schemas 1.0.46 → 1.0.47
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 +5 -5
- package/src/reStructure/GenerateCode.js +6 -2
- package/src/reStructure/TemplateData/EndpointPerService/handler/api/data.js +0 -1
- package/src/reStructure/TemplateData/EndpointPerService/handler/dsq/data.js +0 -1
- package/src/reStructure/TemplateData/EndpointPerService/handler/inv/data.js +0 -1
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/backupTemplate.ejs +9 -9
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +13 -14
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +3 -5
- package/src/reStructure/TemplateData/EndpointPerService/yaml/template.ejs +2 -2
- package/src/reStructure/TemplateData/externalService/lambdaRole/data.js +2 -2
- package/src/reStructure/TemplateData/externalService/snsTopicSubscriptions/data.js +4 -4
- package/src/reStructure/TemplateData/findData/findDataYaml/template.ejs +2 -2
- package/src/reStructure/TemplateData/flowSchema/CreateRecordComplete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/createPresignUrl/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Complete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/data.js +5 -5
- package/src/reStructure/TemplateData/flowSchema/externalTopic/Process/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComplete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/data.js +5 -5
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/EndpointComponent/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/functionYaml/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/data.js +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowStep/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/flowStep/sns-in/data.js +3 -3
- package/src/reStructure/TemplateData/flowSchema/register/complete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/data.js +36 -22
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/template.ejs +0 -9
- package/src/reStructure/TemplateData/flowSchema/webSocketComplete/sqs/templateSub.ejs +7 -0
- package/src/reStructure/TemplateData/generateRole/data.js +94 -0
- package/src/reStructure/TemplateData/generateRole/template.ejs +33 -0
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/template.ejs +19 -17
- package/src/reStructure/TemplateData/perActionComplete/create/yaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/template.ejs +6 -6
- package/src/reStructure/TemplateData/perActionComplete/delete/yaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/template.ejs +16 -14
- package/src/reStructure/TemplateData/perActionComplete/get/yaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/template.ejs +15 -13
- package/src/reStructure/TemplateData/perActionComplete/update/yaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/processLogicalPagination/yaml/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +2 -0
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +19 -18
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +0 -3
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +2 -24
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs +3 -5
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +20 -19
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +19 -18
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +18 -17
package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs
CHANGED
|
@@ -56,16 +56,16 @@ module.exports.createRelationshipComplete = async (
|
|
|
56
56
|
// start create awaitingStepId
|
|
57
57
|
const linkTypeId = createLinkTypeId(
|
|
58
58
|
_izContext,
|
|
59
|
-
returnValue.firstObject.objType,
|
|
60
|
-
returnValue.secondObject.objType,
|
|
61
|
-
returnValue.relType,
|
|
62
|
-
returnValue.relationshipDirection
|
|
59
|
+
returnValue.requestParams.firstObject.objType,
|
|
60
|
+
returnValue.requestParams.secondObject.objType,
|
|
61
|
+
returnValue.requestParams.relType,
|
|
62
|
+
returnValue.requestParams.relationshipDirection
|
|
63
63
|
);
|
|
64
64
|
|
|
65
65
|
let awaitingStepId = asyncFlowSharedLib.createAwaitingStepId(
|
|
66
66
|
hash({
|
|
67
67
|
linkTypeId,
|
|
68
|
-
relationshipProperties: returnValue.relationshipProperties,
|
|
68
|
+
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
69
69
|
graphServiceTag: passBackProperties.passBackProperties.graphServiceTag
|
|
70
70
|
}), // hash id
|
|
71
71
|
PREFIX.createRel // prefix, use constant further
|
|
@@ -88,15 +88,16 @@ module.exports.createRelationshipComplete = async (
|
|
|
88
88
|
if (await asyncFlowSharedLib.checkAllAwaitingStepsFinished(
|
|
89
89
|
_izContext,
|
|
90
90
|
pendingStepId, // task waiting
|
|
91
|
-
awaitingStepId
|
|
91
|
+
awaitingStepId,
|
|
92
|
+
errorsFound
|
|
92
93
|
)) {
|
|
93
94
|
_izContext.logger.debug("finished all awaitingStep");
|
|
94
95
|
|
|
95
96
|
let createCompleteMsg = {
|
|
96
|
-
firstObject: returnValue.firstObject,
|
|
97
|
-
secondObject: returnValue.secondObject,
|
|
98
|
-
relType: returnValue.relType,
|
|
99
|
-
relationshipProperties: returnValue.relationshipProperties,
|
|
97
|
+
firstObject: returnValue.requestParams.firstObject,
|
|
98
|
+
secondObject: returnValue.requestParams.secondObject,
|
|
99
|
+
relType: returnValue.requestParams.relType,
|
|
100
|
+
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
100
101
|
status: status,
|
|
101
102
|
errorsFound: errorsFound
|
|
102
103
|
};
|
|
@@ -115,15 +116,15 @@ module.exports.createRelationshipComplete = async (
|
|
|
115
116
|
_izContext.logger.debug("Send message to OutCreateRelationshipComplete :::>", sendMessageToOutCreateRelationshipComplete);
|
|
116
117
|
await sns.publishAsync(_izContext, sendMessageToOutCreateRelationshipComplete);
|
|
117
118
|
|
|
118
|
-
|
|
119
|
-
// remove awaitingMultipleStep after finished
|
|
120
|
-
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
121
|
-
_izContext,
|
|
122
|
-
awaitingStepId,
|
|
123
|
-
pendingStepId,
|
|
124
|
-
);
|
|
125
|
-
|
|
126
119
|
} // check pendingStepId finished
|
|
120
|
+
|
|
121
|
+
// remove awaitingMultipleStep after finished
|
|
122
|
+
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
123
|
+
_izContext,
|
|
124
|
+
awaitingStepId,
|
|
125
|
+
pendingStepId,
|
|
126
|
+
errorsFound
|
|
127
|
+
);
|
|
127
128
|
}) // end per pendingStep
|
|
128
129
|
);
|
|
129
130
|
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js
CHANGED
|
@@ -38,7 +38,7 @@ const {
|
|
|
38
38
|
createDynamoDbComponentByLinks,
|
|
39
39
|
DYNAMO_RESOURCE,
|
|
40
40
|
SQS_RESOURCE
|
|
41
|
-
} = require("../../../../../../../MainLibs/
|
|
41
|
+
} = require("../../../../../../../MainLibs/src/Consts.js");
|
|
42
42
|
|
|
43
43
|
const templatePath = path.join(__dirname, "./template.ejs")
|
|
44
44
|
|
|
@@ -94,7 +94,7 @@ function createParamForCreateSource(allObjectRelationships, srcPath) {
|
|
|
94
94
|
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish, SNS_RESOURCE.subscribe]
|
|
95
95
|
},
|
|
96
96
|
[
|
|
97
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.
|
|
97
|
+
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.deleteRelComplete) + "_Out"),
|
|
98
98
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_In"),
|
|
99
99
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_Out"),
|
|
100
100
|
]
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
#<#Authorizer#>
|
|
11
11
|
#<#/Authorizer#>
|
|
12
12
|
role: <%- roleName %>Role
|
|
13
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
14
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
13
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
14
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
15
15
|
<%_ function firstLetterUpperCase(text){
|
|
16
16
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
17
17
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js
CHANGED
|
@@ -92,7 +92,7 @@ function createParamForCreateSource(allObjectRelationships, srcPath) {
|
|
|
92
92
|
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish, SNS_RESOURCE.subscribe]
|
|
93
93
|
},
|
|
94
94
|
[
|
|
95
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.
|
|
95
|
+
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.deleteRelComplete) + "_Out"),
|
|
96
96
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_In"),
|
|
97
97
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_Out"),
|
|
98
98
|
]
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
8
8
|
batchSize: 10
|
|
9
9
|
role: <%- roleName %>Role
|
|
10
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
11
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
10
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
11
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
12
12
|
<%_ function firstLetterUpperCase(text){
|
|
13
13
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
14
14
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js
CHANGED
|
@@ -94,7 +94,7 @@ function createParamForCreateSource(allObjectRelationships, srcPath) {
|
|
|
94
94
|
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish, SNS_RESOURCE.subscribe]
|
|
95
95
|
},
|
|
96
96
|
[
|
|
97
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.
|
|
97
|
+
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.deleteRelComplete) + "_Out"),
|
|
98
98
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_In"),
|
|
99
99
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_Out"),
|
|
100
100
|
]
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
|
|
4
4
|
name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
5
5
|
role: <%- roleName %>Role
|
|
6
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
7
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
6
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
7
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
8
8
|
<%_ function firstLetterUpperCase(text){
|
|
9
9
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
10
10
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js
CHANGED
|
@@ -91,7 +91,7 @@ function createParamForCreateSource(allObjectRelationships, srcPath) {
|
|
|
91
91
|
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish, SNS_RESOURCE.subscribe]
|
|
92
92
|
},
|
|
93
93
|
[
|
|
94
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.
|
|
94
|
+
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.deleteRelComplete) + "_Out"),
|
|
95
95
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_In"),
|
|
96
96
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_Out"),
|
|
97
97
|
]
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
8
8
|
batchSize: 10
|
|
9
9
|
role: <%- roleName %>Role
|
|
10
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
11
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
10
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
11
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
12
12
|
<%_ function firstLetterUpperCase(text){
|
|
13
13
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
14
14
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs
CHANGED
|
@@ -19,9 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
19
19
|
const izara = require("@izara_project/izara-middleware");
|
|
20
20
|
const middleware = izara.middlewareHandler;
|
|
21
21
|
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
22
|
-
const {
|
|
23
|
-
validateSchemaMiddleware
|
|
24
|
-
} = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs');
|
|
25
22
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
26
23
|
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
27
24
|
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs
CHANGED
|
@@ -185,28 +185,6 @@ module.exports.deleteRelationship = async (
|
|
|
185
185
|
if (!targetStorageResources.length) {
|
|
186
186
|
errorsFound.push(`Not found link from relationship schema`);
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// validate properties exists with schema
|
|
191
|
-
for (const propKey in relationshipProperties) {
|
|
192
|
-
if (!relationshipSchema.fieldNames.hasOwnProperty(propKey)) {
|
|
193
|
-
errorsFound.push(`property:${propKey} not exists in relationshipSchema`);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// validate canCreate properties relationship
|
|
198
|
-
for (const [propName, propSetting] of Object.entries(relationshipSchema.fieldNames)) {
|
|
199
|
-
if (propSetting.requiredOnCreate === true) {
|
|
200
|
-
if (!relationshipProperties.hasOwnProperty(propName)) {
|
|
201
|
-
errorsFound.push(`Missing requiredOnCreate property:${propKey}`);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (!propSetting.optionalOnCreate && !propSetting.requiredOnCreate && relationshipProperties.hasOwnProperty(propName)) {
|
|
206
|
-
errorsFound.push(`property:${propName} cannot create`);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
188
|
} else {
|
|
211
189
|
errorsFound.push(`relationshipSchema not exists`);
|
|
212
190
|
}
|
|
@@ -329,9 +307,9 @@ module.exports.deleteRelationship = async (
|
|
|
329
307
|
callingFlowSharedLib.addParentCallingFlowConfig(
|
|
330
308
|
callingFlowConfig, // receive parent callingFlowConfig.
|
|
331
309
|
callingFlowSharedLib.createCallingFlowConfig( // calling flow own service
|
|
332
|
-
|
|
310
|
+
//(<callingFlowProperties>)
|
|
333
311
|
await lambdaSharedLib.lambdaFunctionName(_izContext, TOPIC_NAME_GENERATE_CODE.deleteRelComplete), {}
|
|
334
|
-
|
|
312
|
+
//(</callingFlowProperties>)
|
|
335
313
|
)
|
|
336
314
|
)
|
|
337
315
|
);
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/functionYaml/template.ejs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- sqs:
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %>
|
|
8
8
|
batchSize: 10
|
|
9
|
-
filterPatterns: #**** need to update serverless
|
|
9
|
+
filterPatterns: #**** need to update serverless framework upper v.2.69.1
|
|
10
10
|
- body: {"MessageAttributes":{"callingFlow":{"Value":["${self:custom.iz_resourcePrefix}<%-firstLetterUpperCase(functionName) %>"]}}} # functionName of callingFlow
|
|
11
11
|
- body: {"MessageAttributes":{"callingFlow":{"Value":[{"exists":false}]}}}
|
|
12
12
|
role: <%- roleName %>Role
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs
CHANGED
|
@@ -22,10 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const
|
|
26
|
-
const recordHandlerSharedLib =
|
|
27
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
28
|
-
|
|
25
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
26
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
29
27
|
const deleteRelationshipComplete = require('./DeleteRelationshipComplete_Main');
|
|
30
28
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
31
29
|
// validate event properties in body.Message of sqs event
|
|
@@ -122,4 +120,4 @@ module.exports.main = middleware.wrap(async (event, context, callback) => {
|
|
|
122
120
|
Logger.error('Unhandled Error, deleteRelationshipComplete: ', err);
|
|
123
121
|
throw (err);
|
|
124
122
|
}
|
|
125
|
-
});
|
|
123
|
+
});
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs
CHANGED
|
@@ -57,16 +57,16 @@ module.exports.deleteRelationshipComplete = async (
|
|
|
57
57
|
// start create awaitingStepId
|
|
58
58
|
const linkTypeId = createLinkTypeId(
|
|
59
59
|
_izContext,
|
|
60
|
-
returnValue.firstObject.objType,
|
|
61
|
-
returnValue.secondObject.objType,
|
|
62
|
-
returnValue.relType,
|
|
63
|
-
returnValue.relationshipDirection
|
|
60
|
+
returnValue.requestParams.firstObject.objType,
|
|
61
|
+
returnValue.requestParams.secondObject.objType,
|
|
62
|
+
returnValue.requestParams.relType,
|
|
63
|
+
returnValue.requestParams.relationshipDirection
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
let awaitingStepId = asyncFlowSharedLib.createAwaitingStepId(
|
|
67
67
|
hash({
|
|
68
68
|
linkTypeId,
|
|
69
|
-
relationshipProperties: returnValue.relationshipProperties,
|
|
69
|
+
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
70
70
|
graphServiceTag: passBackProperties.passBackProperties.graphServiceTag
|
|
71
71
|
}), // hash id
|
|
72
72
|
PREFIX.deleteRel // prefix, use constant further
|
|
@@ -89,15 +89,16 @@ module.exports.deleteRelationshipComplete = async (
|
|
|
89
89
|
if (await asyncFlowSharedLib.checkAllAwaitingStepsFinished(
|
|
90
90
|
_izContext,
|
|
91
91
|
pendingStepId, // task waiting
|
|
92
|
-
awaitingStepId
|
|
92
|
+
awaitingStepId,
|
|
93
|
+
errorsFound
|
|
93
94
|
)) {
|
|
94
95
|
_izContext.logger.debug("finished all awaitingStep");
|
|
95
96
|
|
|
96
97
|
let deleteRelComp = {
|
|
97
|
-
firstObject: returnValue.firstObject,
|
|
98
|
-
secondObject: returnValue.secondObject,
|
|
99
|
-
relType: returnValue.relType,
|
|
100
|
-
relationshipProperties: returnValue.relationshipProperties,
|
|
98
|
+
firstObject: returnValue.requestParams.firstObject,
|
|
99
|
+
secondObject: returnValue.requestParams.secondObject,
|
|
100
|
+
relType: returnValue.requestParams.relType,
|
|
101
|
+
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
101
102
|
status: status,
|
|
102
103
|
errorsFound: errorsFound
|
|
103
104
|
};
|
|
@@ -116,16 +117,16 @@ module.exports.deleteRelationshipComplete = async (
|
|
|
116
117
|
_izContext.logger.debug("Send message to OutDeleteRelationshipComplete :::>", sendMessageToOutDeleteRelationshipComplete);
|
|
117
118
|
await sns.publishAsync(_izContext, sendMessageToOutDeleteRelationshipComplete);
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
// remove awaitingMultipleStep after finished
|
|
121
|
-
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
122
|
-
_izContext,
|
|
123
|
-
awaitingStepId,
|
|
124
|
-
pendingStepId,
|
|
125
|
-
);
|
|
126
|
-
|
|
127
120
|
} // check pendingStepId finished
|
|
128
|
-
|
|
121
|
+
|
|
122
|
+
// remove awaitingMultipleStep after finished
|
|
123
|
+
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
124
|
+
_izContext,
|
|
125
|
+
awaitingStepId,
|
|
126
|
+
pendingStepId,
|
|
127
|
+
errorsFound
|
|
128
|
+
);
|
|
129
|
+
}) // end per pendingStep
|
|
129
130
|
);
|
|
130
131
|
|
|
131
132
|
|
package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/template.ejs
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
#<#Authorizer#>
|
|
11
11
|
#<#/Authorizer#>
|
|
12
12
|
role: <%- roleName %>Role
|
|
13
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
14
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
13
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
14
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
15
15
|
<%_ function firstLetterUpperCase(text){
|
|
16
16
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
17
17
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js
CHANGED
|
@@ -92,7 +92,7 @@ function createParamForCreateSource(allObjectRelationships, srcPath) {
|
|
|
92
92
|
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish, SNS_RESOURCE.subscribe]
|
|
93
93
|
},
|
|
94
94
|
[
|
|
95
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.
|
|
95
|
+
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.getRelComplete) + "_Out"),
|
|
96
96
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_In"),
|
|
97
97
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_Out"),
|
|
98
98
|
]
|
package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/template.ejs
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
8
8
|
batchSize: 10
|
|
9
9
|
role: <%- roleName %>Role
|
|
10
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
11
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
10
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
11
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
12
12
|
<%_ function firstLetterUpperCase(text){
|
|
13
13
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
14
14
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/template.ejs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
|
|
4
4
|
name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
5
5
|
role: <%- roleName %>Role
|
|
6
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
7
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
6
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
7
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
8
8
|
<%_ function firstLetterUpperCase(text){
|
|
9
9
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
10
10
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/template.ejs
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
8
8
|
batchSize: 10
|
|
9
9
|
role: <%- roleName %>Role
|
|
10
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
11
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
10
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
11
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
12
12
|
<%_ function firstLetterUpperCase(text){
|
|
13
13
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
14
14
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/template.ejs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- sqs:
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %>
|
|
8
8
|
batchSize: 10
|
|
9
|
-
filterPatterns: #**** need to update serverless
|
|
9
|
+
filterPatterns: #**** need to update serverless framework upper v.2.69.1
|
|
10
10
|
- body: {"MessageAttributes":{"callingFlow":{"Value":["${self:custom.iz_resourcePrefix}<%-firstLetterUpperCase(functionName) %>"]}}} # functionName of callingFlow
|
|
11
11
|
- body: {"MessageAttributes":{"callingFlow":{"Value":[{"exists":false}]}}}
|
|
12
12
|
role: <%- roleName %>Role
|
package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs
CHANGED
|
@@ -57,10 +57,10 @@ module.exports.getRelationshipComplete = async (
|
|
|
57
57
|
// start create awaitingStepId
|
|
58
58
|
const linkTypeId = createLinkTypeId(
|
|
59
59
|
_izContext,
|
|
60
|
-
returnValue.firstObject.objType,
|
|
61
|
-
returnValue.secondObject.objType,
|
|
62
|
-
returnValue.relType,
|
|
63
|
-
returnValue.relationshipDirection
|
|
60
|
+
returnValue.requestParams.firstObject.objType,
|
|
61
|
+
returnValue.requestParams.secondObject.objType,
|
|
62
|
+
returnValue.requestParams.relType,
|
|
63
|
+
returnValue.requestParams.relationshipDirection
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
let awaitingStepId = asyncFlowSharedLib.createAwaitingStepId(
|
|
@@ -69,7 +69,7 @@ module.exports.getRelationshipComplete = async (
|
|
|
69
69
|
relationshipProperties: returnValue.relationshipProperties,
|
|
70
70
|
graphServiceTag: passBackProperties.passBackProperties.graphServiceTag
|
|
71
71
|
}), // hash id
|
|
72
|
-
PREFIX.
|
|
72
|
+
PREFIX.getRel // prefix, use constant further
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
|
|
@@ -89,15 +89,16 @@ module.exports.getRelationshipComplete = async (
|
|
|
89
89
|
if (await asyncFlowSharedLib.checkAllAwaitingStepsFinished(
|
|
90
90
|
_izContext,
|
|
91
91
|
pendingStepId, // task waiting
|
|
92
|
-
awaitingStepId
|
|
92
|
+
awaitingStepId,
|
|
93
|
+
errorsFound
|
|
93
94
|
)) {
|
|
94
95
|
_izContext.logger.debug("finished all awaitingStep");
|
|
95
96
|
|
|
96
97
|
let createCompleteMsg = {
|
|
97
|
-
firstObject: returnValue.firstObject,
|
|
98
|
-
secondObject: returnValue.secondObject,
|
|
99
|
-
relType: returnValue.relType,
|
|
100
|
-
relationshipProperties: returnValue.relationshipProperties,
|
|
98
|
+
firstObject: returnValue.requestParams.firstObject,
|
|
99
|
+
secondObject: returnValue.requestParams.secondObject,
|
|
100
|
+
relType: returnValue.requestParams.relType,
|
|
101
|
+
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
101
102
|
status: status,
|
|
102
103
|
errorsFound: errorsFound
|
|
103
104
|
};
|
|
@@ -116,15 +117,15 @@ module.exports.getRelationshipComplete = async (
|
|
|
116
117
|
_izContext.logger.debug("Send message to outGetRelComplete :::>", sendMessageToOutGetRelComplete);
|
|
117
118
|
await sns.publishAsync(_izContext, sendMessageToOutGetRelComplete);
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
// remove awaitingMultipleStep after finished
|
|
121
|
-
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
122
|
-
_izContext,
|
|
123
|
-
awaitingStepId,
|
|
124
|
-
pendingStepId,
|
|
125
|
-
);
|
|
126
|
-
|
|
127
120
|
} // check pendingStepId finished
|
|
121
|
+
|
|
122
|
+
// remove awaitingMultipleStep after finished
|
|
123
|
+
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
124
|
+
_izContext,
|
|
125
|
+
awaitingStepId,
|
|
126
|
+
pendingStepId,
|
|
127
|
+
errorsFound
|
|
128
|
+
);
|
|
128
129
|
}) // end per pendingStep
|
|
129
130
|
);
|
|
130
131
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
#<#Authorizer#>
|
|
11
11
|
#<#/Authorizer#>
|
|
12
12
|
role: <%- roleName %>Role
|
|
13
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
14
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
13
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
14
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
15
15
|
<%_ function firstLetterUpperCase(text){
|
|
16
16
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
17
17
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js
CHANGED
|
@@ -113,7 +113,7 @@ function createParamForCreateSource(allObjectRelationships, srcPath) {
|
|
|
113
113
|
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish, SNS_RESOURCE.subscribe]
|
|
114
114
|
},
|
|
115
115
|
[
|
|
116
|
-
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.
|
|
116
|
+
resourceNames(RESOURCE_CLASSES.sns, upperCase(FUNCTION_NAME.updateRelComplete) + "_Out"),
|
|
117
117
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_In"),
|
|
118
118
|
resourceNames(RESOURCE_CLASSES.sns, upperCase(functionName) + "_Out"),
|
|
119
119
|
]
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
8
8
|
batchSize: 10
|
|
9
9
|
role: <%- roleName %>Role
|
|
10
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
11
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
10
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
11
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
12
12
|
<%_ function firstLetterUpperCase(text){
|
|
13
13
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
14
14
|
} _%>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
handler: <%- join(resourceLocation, `${firstLetterUpperCase(functionName)}_${firstLetterUpperCase(handlerType)}.main`)%>
|
|
4
4
|
name: ${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
5
5
|
role: <%- roleName %>Role
|
|
6
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
7
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
6
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
7
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
8
8
|
<%_ function firstLetterUpperCase(text){
|
|
9
9
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
10
10
|
} _%>
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %><%- firstLetterUpperCase(handlerType) %>
|
|
8
8
|
batchSize: 10
|
|
9
9
|
role: <%- roleName %>Role
|
|
10
|
-
#<#<%- functionName %><%- handlerType %>IamRole#>
|
|
11
|
-
#<#/<%- functionName %><%- handlerType %>IamRole#>
|
|
10
|
+
#<#<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
11
|
+
#<#/<%- functionName %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
12
12
|
<%_ function firstLetterUpperCase(text){
|
|
13
13
|
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
14
14
|
} _%>
|
package/src/reStructure/TemplateData/relationshipPerAction/update/complete/functionYaml/template.ejs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- sqs:
|
|
7
7
|
arn: arn:aws:sqs:${self:custom.iz_region}:${self:custom.iz_accountId}:${self:custom.iz_resourcePrefix}<%- firstLetterUpperCase(functionName) %>
|
|
8
8
|
batchSize: 10
|
|
9
|
-
filterPatterns: #**** need to update serverless
|
|
9
|
+
filterPatterns: #**** need to update serverless framework upper v.2.69.1
|
|
10
10
|
- body: {"MessageAttributes":{"callingFlow":{"Value":["${self:custom.iz_resourcePrefix}<%-firstLetterUpperCase(functionName) %>"]}}} # functionName of callingFlow
|
|
11
11
|
- body: {"MessageAttributes":{"callingFlow":{"Value":[{"exists":false}]}}}
|
|
12
12
|
role: <%- roleName %>Role
|
package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs
CHANGED
|
@@ -58,17 +58,17 @@ module.exports.updateRelationshipComplete = async (
|
|
|
58
58
|
// start create awaitingStepId
|
|
59
59
|
const linkTypeId = createLinkTypeId(
|
|
60
60
|
_izContext,
|
|
61
|
-
returnValue.firstObject.objType,
|
|
62
|
-
returnValue.secondObject.objType,
|
|
63
|
-
returnValue.relType,
|
|
64
|
-
returnValue.relationshipDirection
|
|
61
|
+
returnValue.requestParams.firstObject.objType,
|
|
62
|
+
returnValue.requestParams.secondObject.objType,
|
|
63
|
+
returnValue.requestParams.relType,
|
|
64
|
+
returnValue.requestParams.relationshipDirection
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
let awaitingStepId = asyncFlowSharedLib.createAwaitingStepId(
|
|
68
68
|
hash({
|
|
69
69
|
linkTypeId,
|
|
70
|
-
relId: returnValue.relId,
|
|
71
|
-
relationshipProperties: returnValue.updatePropertiesParam,
|
|
70
|
+
relId: returnValue.requestParams.relId,
|
|
71
|
+
relationshipProperties: returnValue.requestParams.updatePropertiesParam,
|
|
72
72
|
graphServiceTag: passBackProperties.passBackProperties.graphServiceTag
|
|
73
73
|
}), // hash id
|
|
74
74
|
PREFIX.updateRel // prefix, use constant further
|
|
@@ -91,13 +91,14 @@ module.exports.updateRelationshipComplete = async (
|
|
|
91
91
|
if (await asyncFlowSharedLib.checkAllAwaitingStepsFinished(
|
|
92
92
|
_izContext,
|
|
93
93
|
pendingStepId, // task waiting
|
|
94
|
-
awaitingStepId
|
|
94
|
+
awaitingStepId,
|
|
95
|
+
errorsFound
|
|
95
96
|
)) {
|
|
96
97
|
_izContext.logger.debug("finished all awaitingStep");
|
|
97
98
|
|
|
98
99
|
let updateCompleteMsg = {
|
|
99
|
-
relId: returnValue.relId,
|
|
100
|
-
relType: returnValue.relType,
|
|
100
|
+
relId: returnValue.requestParams.relId,
|
|
101
|
+
relType: returnValue.requestParams.relType,
|
|
101
102
|
status: status,
|
|
102
103
|
errorsFound: errorsFound
|
|
103
104
|
//(<inUpdateCompleteMsg>)
|
|
@@ -118,15 +119,15 @@ module.exports.updateRelationshipComplete = async (
|
|
|
118
119
|
_izContext.logger.debug("Send message to OutUpdateRelationshipComplete :::>", sendMessageToOutUpdateRelationshipComplete);
|
|
119
120
|
await sns.publishAsync(_izContext, sendMessageToOutUpdateRelationshipComplete);
|
|
120
121
|
|
|
121
|
-
|
|
122
|
-
// remove awaitingMultipleStep after finished
|
|
123
|
-
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
124
|
-
_izContext,
|
|
125
|
-
awaitingStepId,
|
|
126
|
-
pendingStepId,
|
|
127
|
-
);
|
|
128
|
-
|
|
129
122
|
} // check pendingStepId finished
|
|
123
|
+
|
|
124
|
+
// remove awaitingMultipleStep after finished
|
|
125
|
+
await asyncFlowSharedLib.removeAwaitingMultipleStep(
|
|
126
|
+
_izContext,
|
|
127
|
+
awaitingStepId,
|
|
128
|
+
pendingStepId,
|
|
129
|
+
errorsFound
|
|
130
|
+
);
|
|
130
131
|
}) // end per pendingStep
|
|
131
132
|
);
|
|
132
133
|
|