@izara_project/izara-market-library-service-schemas 1.0.48 → 1.0.49
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/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +4 -3
- package/src/reStructure/TemplateData/flowSchema/templateBystatusType/triggerCacheTemplate.ejs +2 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs +5 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +3 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs +6 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs +7 -7
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs +8 -4
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +8 -7
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/template.ejs +8 -4
- package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs +8 -7
package/package.json
CHANGED
|
@@ -167,7 +167,7 @@ module.exports.getMain = async (
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
_izContext.logger.debug("messageParams OutUpdateNode ::::::: ", messageParams);
|
|
170
|
-
|
|
170
|
+
await sns.publishAsync(_izContext, messageParams);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
|
|
@@ -221,7 +221,7 @@ module.exports.getMain = async (
|
|
|
221
221
|
let identifiersForGetData = await dynamoDbIdentifiersByStorageResource(
|
|
222
222
|
_izContext,
|
|
223
223
|
objectSchema,
|
|
224
|
-
|
|
224
|
+
getDataDetail,
|
|
225
225
|
requestParams.identifiers
|
|
226
226
|
)
|
|
227
227
|
_izContext.logger.debug("identifiersForGetData", identifiersForGetData);
|
|
@@ -235,9 +235,10 @@ module.exports.getMain = async (
|
|
|
235
235
|
),
|
|
236
236
|
identifiersForGetData
|
|
237
237
|
);
|
|
238
|
+
|
|
239
|
+
getResults.push([getParent, getDataDetail]);
|
|
238
240
|
}
|
|
239
241
|
|
|
240
|
-
getResults.push([getParent, getDataDetail]);
|
|
241
242
|
|
|
242
243
|
}
|
|
243
244
|
})
|
package/src/reStructure/TemplateData/flowSchema/templateBystatusType/triggerCacheTemplate.ejs
CHANGED
|
@@ -17,8 +17,9 @@ if (triggerCacheStatus !== "process") {
|
|
|
17
17
|
//(<afterValidateTriggerCacheStatus>)
|
|
18
18
|
//(</afterValidateTriggerCacheStatus>)
|
|
19
19
|
}
|
|
20
|
+
//(<mainFunctionHookCode>)
|
|
21
|
+
//(</mainFunctionHookCode>)
|
|
20
22
|
|
|
21
|
-
|
|
22
23
|
return {
|
|
23
24
|
//(<validateTriggerCacheProcessing>)
|
|
24
25
|
//(</validateTriggerCacheProcessing>)
|
package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs
CHANGED
|
@@ -354,8 +354,8 @@ module.exports.createRelationship = async (
|
|
|
354
354
|
relationshipProperties
|
|
355
355
|
//(<inUpdateRelMessageBodyCreateRel>)
|
|
356
356
|
//(</inUpdateRelMessageBodyCreateRel>)
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
|
|
358
|
+
// assign originTimestamp if not exists in relationshipProperties
|
|
359
359
|
}
|
|
360
360
|
_izContext.logger.debug('createRelMessageBody: ', createRelMessageBody);
|
|
361
361
|
|
package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs
CHANGED
|
@@ -35,7 +35,8 @@ let perRecordsValidatorSchema = {
|
|
|
35
35
|
required: [
|
|
36
36
|
'returnValue',
|
|
37
37
|
'status',
|
|
38
|
-
'errorsFound'
|
|
38
|
+
'errorsFound',
|
|
39
|
+
'graphServiceTag'
|
|
39
40
|
],
|
|
40
41
|
properties: {
|
|
41
42
|
returnValue: {
|
|
@@ -47,6 +48,9 @@ let perRecordsValidatorSchema = {
|
|
|
47
48
|
errorsFound: {
|
|
48
49
|
type: 'array',
|
|
49
50
|
default: []
|
|
51
|
+
},
|
|
52
|
+
graphServiceTag: {
|
|
53
|
+
type: 'string'
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
};
|
package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs
CHANGED
|
@@ -41,6 +41,7 @@ module.exports.createRelationshipComplete = async (
|
|
|
41
41
|
returnValue,
|
|
42
42
|
status,
|
|
43
43
|
errorsFound,
|
|
44
|
+
graphServiceTag,
|
|
44
45
|
passBackProperties = {},
|
|
45
46
|
|
|
46
47
|
) => {
|
|
@@ -49,6 +50,7 @@ module.exports.createRelationshipComplete = async (
|
|
|
49
50
|
returnValue: returnValue,
|
|
50
51
|
status: status,
|
|
51
52
|
errorsFound: errorsFound,
|
|
53
|
+
graphServiceTag: graphServiceTag,
|
|
52
54
|
passBackProperties: passBackProperties,
|
|
53
55
|
});
|
|
54
56
|
|
|
@@ -66,7 +68,7 @@ module.exports.createRelationshipComplete = async (
|
|
|
66
68
|
hash({
|
|
67
69
|
linkTypeId,
|
|
68
70
|
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
69
|
-
graphServiceTag:
|
|
71
|
+
graphServiceTag: graphServiceTag
|
|
70
72
|
}), // hash id
|
|
71
73
|
PREFIX.createRel // prefix, use constant further
|
|
72
74
|
)
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/handler/sqs/template.ejs
CHANGED
|
@@ -34,7 +34,8 @@ let perRecordsValidatorSchema = {
|
|
|
34
34
|
required: [
|
|
35
35
|
'returnValue',
|
|
36
36
|
'status',
|
|
37
|
-
'errorsFound'
|
|
37
|
+
'errorsFound',
|
|
38
|
+
'graphServiceTag'
|
|
38
39
|
],
|
|
39
40
|
properties: {
|
|
40
41
|
returnValue: {
|
|
@@ -46,6 +47,9 @@ let perRecordsValidatorSchema = {
|
|
|
46
47
|
errorsFound: {
|
|
47
48
|
type: 'array',
|
|
48
49
|
default: []
|
|
50
|
+
},
|
|
51
|
+
graphServiceTag: {
|
|
52
|
+
type: 'string',
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
};
|
|
@@ -89,6 +93,7 @@ module.exports.main = middleware.wrap(async (event, context, callback) => {
|
|
|
89
93
|
passOnProperties.push(record.body.Message.returnValue)
|
|
90
94
|
passOnProperties.push(record.body.Message.status)
|
|
91
95
|
passOnProperties.push(record.body.Message.errorsFound)
|
|
96
|
+
passOnProperties.push(record.body.Message.graphServiceTag)
|
|
92
97
|
passOnProperties.push(callingFlowSharedLib.addPassBackPropertiesToPassOnProperties(record.body.Message)) // is Ok PassBackProperties
|
|
93
98
|
// passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message)) // is Ok callinfFlow
|
|
94
99
|
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/complete/mainFunction/template.ejs
CHANGED
|
@@ -18,12 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const hash = require('@izara_project/izara-shared-core').objectHash;
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const asyncFlowSharedLib = izaraShared.asyncFlowSharedLib;
|
|
26
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
21
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
22
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
23
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
24
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
27
25
|
|
|
28
26
|
const sns = require("@izara_project/izara-core-library-external-request").sns;
|
|
29
27
|
const NoRetryError = require("@izara_project/izara-core-library-core/src/NoRetryError");
|
|
@@ -42,6 +40,7 @@ module.exports.deleteRelationshipComplete = async (
|
|
|
42
40
|
returnValue,
|
|
43
41
|
status,
|
|
44
42
|
errorsFound,
|
|
43
|
+
graphServiceTag,
|
|
45
44
|
passBackProperties = {},
|
|
46
45
|
|
|
47
46
|
) => {
|
|
@@ -50,6 +49,7 @@ module.exports.deleteRelationshipComplete = async (
|
|
|
50
49
|
returnValue: returnValue,
|
|
51
50
|
status: status,
|
|
52
51
|
errorsFound: errorsFound,
|
|
52
|
+
graphServiceTag: graphServiceTag,
|
|
53
53
|
passBackProperties: passBackProperties,
|
|
54
54
|
});
|
|
55
55
|
|
|
@@ -67,7 +67,7 @@ module.exports.deleteRelationshipComplete = async (
|
|
|
67
67
|
hash({
|
|
68
68
|
linkTypeId,
|
|
69
69
|
relationshipProperties: returnValue.requestParams.relationshipProperties,
|
|
70
|
-
graphServiceTag:
|
|
70
|
+
graphServiceTag: graphServiceTag
|
|
71
71
|
}), // hash id
|
|
72
72
|
PREFIX.deleteRel // prefix, use constant further
|
|
73
73
|
)
|
package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs
CHANGED
|
@@ -22,9 +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;
|
|
25
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
26
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
28
27
|
|
|
29
28
|
const getRelationshipComplete = require('./GetRelationshipComplete_Main');
|
|
30
29
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
@@ -36,7 +35,8 @@ let perRecordsValidatorSchema = {
|
|
|
36
35
|
required: [
|
|
37
36
|
'returnValue',
|
|
38
37
|
'status',
|
|
39
|
-
'errorsFound'
|
|
38
|
+
'errorsFound',
|
|
39
|
+
'graphServiceTag'
|
|
40
40
|
],
|
|
41
41
|
properties: {
|
|
42
42
|
returnValue: {
|
|
@@ -48,6 +48,9 @@ let perRecordsValidatorSchema = {
|
|
|
48
48
|
errorsFound: {
|
|
49
49
|
type: 'array',
|
|
50
50
|
default: []
|
|
51
|
+
},
|
|
52
|
+
graphServiceTag: {
|
|
53
|
+
type: 'string'
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
};
|
|
@@ -91,6 +94,7 @@ module.exports.main = middleware.wrap(async (event, context, callback) => {
|
|
|
91
94
|
passOnProperties.push(record.body.Message.returnValue)
|
|
92
95
|
passOnProperties.push(record.body.Message.status)
|
|
93
96
|
passOnProperties.push(record.body.Message.errorsFound)
|
|
97
|
+
passOnProperties.push(record.body.Message.graphServiceTag)
|
|
94
98
|
passOnProperties.push(callingFlowSharedLib.addPassBackPropertiesToPassOnProperties(record.body.Message)) // is Ok PassBackProperties
|
|
95
99
|
// passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message)) // is Ok callinfFlow
|
|
96
100
|
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs
CHANGED
|
@@ -18,12 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const hash = require('@izara_project/izara-shared-core').objectHash;
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const asyncFlowSharedLib =
|
|
26
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
21
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
22
|
+
const lambdaSharedLib = require("@izara_project/izara-core-library-lambda");
|
|
23
|
+
const snsSharedLib = require("@izara_project/izara-core-library-sns");
|
|
24
|
+
const dynamodbSharedLib = require("@izara_project/izara-core-library-dynamodb");
|
|
25
|
+
const asyncFlowSharedLib = require("@izara_project/izara-core-library-asynchronous-flow");
|
|
27
26
|
|
|
28
27
|
const sns = require("@izara_project/izara-core-library-external-request").sns;
|
|
29
28
|
const NoRetryError = require("@izara_project/izara-core-library-core/src/NoRetryError");
|
|
@@ -42,6 +41,7 @@ module.exports.getRelationshipComplete = async (
|
|
|
42
41
|
returnValue,
|
|
43
42
|
status,
|
|
44
43
|
errorsFound,
|
|
44
|
+
graphServiceTag,
|
|
45
45
|
passBackProperties = {},
|
|
46
46
|
|
|
47
47
|
) => {
|
|
@@ -50,6 +50,7 @@ module.exports.getRelationshipComplete = async (
|
|
|
50
50
|
returnValue: returnValue,
|
|
51
51
|
status: status,
|
|
52
52
|
errorsFound: errorsFound,
|
|
53
|
+
graphServiceTag: graphServiceTag,
|
|
53
54
|
passBackProperties: passBackProperties,
|
|
54
55
|
});
|
|
55
56
|
|
|
@@ -67,7 +68,7 @@ module.exports.getRelationshipComplete = async (
|
|
|
67
68
|
hash({
|
|
68
69
|
linkTypeId,
|
|
69
70
|
relationshipProperties: returnValue.relationshipProperties,
|
|
70
|
-
graphServiceTag:
|
|
71
|
+
graphServiceTag: graphServiceTag
|
|
71
72
|
}), // hash id
|
|
72
73
|
PREFIX.getRel // prefix, use constant further
|
|
73
74
|
)
|
package/src/reStructure/TemplateData/relationshipPerAction/update/complete/handler/sqs/template.ejs
CHANGED
|
@@ -22,9 +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;
|
|
25
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
26
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
28
27
|
|
|
29
28
|
const updateRelationshipComplete = require('./UpdateRelationshipComplete_Main');
|
|
30
29
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
@@ -36,7 +35,8 @@ let perRecordsValidatorSchema = {
|
|
|
36
35
|
required: [
|
|
37
36
|
'returnValue',
|
|
38
37
|
'status',
|
|
39
|
-
'errorsFound'
|
|
38
|
+
'errorsFound',
|
|
39
|
+
'graphServiceTag'
|
|
40
40
|
],
|
|
41
41
|
properties: {
|
|
42
42
|
returnValue: {//validate from authorizer
|
|
@@ -48,6 +48,9 @@ let perRecordsValidatorSchema = {
|
|
|
48
48
|
errorsFound: {
|
|
49
49
|
type: 'array',
|
|
50
50
|
default: []
|
|
51
|
+
},
|
|
52
|
+
graphServiceTag: {
|
|
53
|
+
type: 'string'
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
};
|
|
@@ -91,6 +94,7 @@ module.exports.main = middleware.wrap(async (event, context, callback) => {
|
|
|
91
94
|
passOnProperties.push(record.body.Message.returnValue)
|
|
92
95
|
passOnProperties.push(record.body.Message.status)
|
|
93
96
|
passOnProperties.push(record.body.Message.errorsFound)
|
|
97
|
+
passOnProperties.push(record.body.Message.graphServiceTag)
|
|
94
98
|
passOnProperties.push(callingFlowSharedLib.addPassBackPropertiesToPassOnProperties(record.body.Message)) // is Ok PassBackProperties
|
|
95
99
|
// passOnProperties.push(callingFlowSharedLib.addCallingFlowToPassOnProperties(record.body.Message)) // is Ok callinfFlow
|
|
96
100
|
record._izContext.logger.debug('passOnProperties in handler', passOnProperties);
|
package/src/reStructure/TemplateData/relationshipPerAction/update/complete/mainFunction/template.ejs
CHANGED
|
@@ -18,12 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const hash = require('@izara_project/izara-shared-core').objectHash;
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const asyncFlowSharedLib =
|
|
26
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
21
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
22
|
+
const lambdaSharedLib = require("@izara_project/izara-core-library-lambda");
|
|
23
|
+
const snsSharedLib = require("@izara_project/izara-core-library-sns");
|
|
24
|
+
const dynamodbSharedLib = require("@izara_project/izara-core-library-dynamodb");
|
|
25
|
+
const asyncFlowSharedLib = require("@izara_project/izara-core-library-asynchronous-flow");
|
|
27
26
|
|
|
28
27
|
const sns = require("@izara_project/izara-core-library-external-request").sns;
|
|
29
28
|
const NoRetryError = require("@izara_project/izara-core-library-core/src/NoRetryError");
|
|
@@ -42,6 +41,7 @@ module.exports.updateRelationshipComplete = async (
|
|
|
42
41
|
returnValue,
|
|
43
42
|
status,
|
|
44
43
|
errorsFound,
|
|
44
|
+
graphServiceTag,
|
|
45
45
|
passBackProperties = {},
|
|
46
46
|
// callingFlowConfig = {}
|
|
47
47
|
) => {
|
|
@@ -50,6 +50,7 @@ module.exports.updateRelationshipComplete = async (
|
|
|
50
50
|
returnValue: returnValue,
|
|
51
51
|
status: status,
|
|
52
52
|
errorsFound: errorsFound,
|
|
53
|
+
graphServiceTag: graphServiceTag,
|
|
53
54
|
passBackProperties: passBackProperties,
|
|
54
55
|
// callingFlowConfig: callingFlowConfig
|
|
55
56
|
});
|
|
@@ -69,7 +70,7 @@ module.exports.updateRelationshipComplete = async (
|
|
|
69
70
|
linkTypeId,
|
|
70
71
|
relId: returnValue.requestParams.relId,
|
|
71
72
|
relationshipProperties: returnValue.requestParams.updatePropertiesParam,
|
|
72
|
-
graphServiceTag:
|
|
73
|
+
graphServiceTag: graphServiceTag
|
|
73
74
|
}), // hash id
|
|
74
75
|
PREFIX.updateRel // prefix, use constant further
|
|
75
76
|
)
|