@izara_project/izara-market-library-service-schemas 1.0.50 → 1.0.52
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 +2 -2
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/create/template.ejs +0 -3
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/delete/template.ejs +0 -2
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/get/template.ejs +0 -2
- package/src/reStructure/TemplateData/EndpointPerService/mainFunction/update/template.ejs +0 -2
- package/src/reStructure/TemplateData/EndpointPerService/yaml/data.js +12 -1
- package/src/reStructure/TemplateData/EndpointPerService/yaml/template.ejs +16 -6
- package/src/reStructure/TemplateData/findData/GetByStorage/getByDynamo.ejs +0 -1
- package/src/reStructure/TemplateData/findData/GetByStorage/getByGraph.ejs +0 -1
- package/src/reStructure/TemplateData/findData/findDataYaml/data.js +0 -1
- package/src/reStructure/TemplateData/flowSchema/flowSchemaOwnTopic/FlowSchemaComponent/mainFunction/template.ejs +0 -1
- package/src/reStructure/TemplateData/processLogical/mainFunction/template.ejs +1 -1
- package/src/reStructure/TemplateData/propertyValueSchema/objectPropertyValueSchema/data.js +9 -9
- package/src/reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema/data.js +8 -8
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +3 -3
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@izara_project/izara-market-library-service-schemas",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "Schemas for Izara Market project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@izara_project/izara-core-library-core": "^1.0.19",
|
|
25
25
|
"@izara_project/izara-core-library-external-request": "^1.0.20",
|
|
26
26
|
"@izara_project/izara-core-library-logger": "^1.0.7",
|
|
27
|
-
"@izara_project/izara-core-library-service-schemas": "^1.0.
|
|
27
|
+
"@izara_project/izara-core-library-service-schemas": "^1.0.79",
|
|
28
28
|
"@izara_project/izara-core-library-sns": "^1.0.6",
|
|
29
29
|
"@izara_project/izara-core-library-sqs": "^1.0.4",
|
|
30
30
|
"@izara_project/izara-shared": "^1.0.126",
|
|
@@ -89,7 +89,6 @@ module.exports.createMain = async (
|
|
|
89
89
|
let objectSchema = await getObjectSchema.getObjSchemaS3WithHierarchy(
|
|
90
90
|
_izContext,
|
|
91
91
|
objType,
|
|
92
|
-
process.env.iz_serviceSchemaBucketName
|
|
93
92
|
);
|
|
94
93
|
_izContext.logger.debug("objectSchema", objectSchema);
|
|
95
94
|
|
|
@@ -123,7 +122,6 @@ module.exports.createMain = async (
|
|
|
123
122
|
let createDataDetails = await createDataDetailsLib(
|
|
124
123
|
_izContext,
|
|
125
124
|
objectSchemas,
|
|
126
|
-
{bucketName: process.env.iz_serviceSchemaBucketName}
|
|
127
125
|
);
|
|
128
126
|
_izContext.logger.debug("createDataDetails is =", createDataDetails);
|
|
129
127
|
|
|
@@ -137,7 +135,6 @@ module.exports.createMain = async (
|
|
|
137
135
|
_izContext,
|
|
138
136
|
objType,
|
|
139
137
|
requestParams.relationships,
|
|
140
|
-
process.env.iz_serviceSchemaBucketName
|
|
141
138
|
)
|
|
142
139
|
)
|
|
143
140
|
_izContext.logger.debug("errorsFound", errorsFound)
|
|
@@ -77,7 +77,6 @@ module.exports.deleteMain = async (
|
|
|
77
77
|
let objectSchema = await getObjectSchema.getObjSchemaS3WithHierarchy(
|
|
78
78
|
_izContext,
|
|
79
79
|
objType,
|
|
80
|
-
process.env.iz_serviceSchemaBucketName
|
|
81
80
|
);
|
|
82
81
|
_izContext.logger.debug("objectSchema", objectSchema);
|
|
83
82
|
|
|
@@ -106,7 +105,6 @@ module.exports.deleteMain = async (
|
|
|
106
105
|
let deleteDataDetails = await createDeleteDataDetail(
|
|
107
106
|
_izContext,
|
|
108
107
|
objectSchema,
|
|
109
|
-
{bucketName: process.env.iz_serviceSchemaBucketName}
|
|
110
108
|
);
|
|
111
109
|
_izContext.logger.debug("deleteDataDetails", deleteDataDetails);
|
|
112
110
|
|
|
@@ -91,7 +91,6 @@ module.exports.getMain = async (
|
|
|
91
91
|
let objectSchema = await getObjSchemaS3WithHierarchy(
|
|
92
92
|
_izContext,
|
|
93
93
|
objType,
|
|
94
|
-
process.env.iz_serviceSchemaBucketName
|
|
95
94
|
);
|
|
96
95
|
|
|
97
96
|
_izContext.logger.debug("objectSchema: ", objectSchema);
|
|
@@ -99,7 +98,6 @@ module.exports.getMain = async (
|
|
|
99
98
|
let getDataDetails = await createGetDataDetails(
|
|
100
99
|
_izContext,
|
|
101
100
|
objectSchema,
|
|
102
|
-
{bucketName: process.env.iz_serviceSchemaBucketName}
|
|
103
101
|
);
|
|
104
102
|
_izContext.logger.debug("getDataDetails:", getDataDetails)
|
|
105
103
|
|
|
@@ -76,7 +76,6 @@ module.exports.updateMain = async (
|
|
|
76
76
|
let objectSchema = await getObjectSchema.getObjSchemaS3WithHierarchy(
|
|
77
77
|
_izContext,
|
|
78
78
|
objType,
|
|
79
|
-
process.env.iz_serviceSchemaBucketName
|
|
80
79
|
);
|
|
81
80
|
_izContext.logger.debug("objectSchema", objectSchema);
|
|
82
81
|
|
|
@@ -111,7 +110,6 @@ module.exports.updateMain = async (
|
|
|
111
110
|
let updateDataDetails = await createUpdateDataDetail(
|
|
112
111
|
_izContext,
|
|
113
112
|
objectSchema,
|
|
114
|
-
{bucketName: process.env.iz_serviceSchemaBucketName}
|
|
115
113
|
);
|
|
116
114
|
|
|
117
115
|
_izContext.logger.debug("updateDataDetails", updateDataDetails);
|
|
@@ -182,6 +182,16 @@ async function createParamForCreateSource(_izContext, allObjSchemas, action, han
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
let resourceApis = [];
|
|
186
|
+
if (action === "get", handler === HANDLER.hdrApi) {
|
|
187
|
+
for (const objectSchema of allObjSchemas.records) {
|
|
188
|
+
resourceApis.push({
|
|
189
|
+
event: objectSchema.objectType,
|
|
190
|
+
method: httpEvent(action)
|
|
191
|
+
})
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
185
195
|
return {
|
|
186
196
|
templatePath: templatePath,
|
|
187
197
|
templateData: {
|
|
@@ -191,7 +201,8 @@ async function createParamForCreateSource(_izContext, allObjSchemas, action, han
|
|
|
191
201
|
event: event,
|
|
192
202
|
roleName: groupBy,
|
|
193
203
|
action: action,
|
|
194
|
-
functionNameConfig
|
|
204
|
+
functionNameConfig,
|
|
205
|
+
resourceApis
|
|
195
206
|
},
|
|
196
207
|
setting: {
|
|
197
208
|
savePath: path.join(srcPath, SOURCE_PATH.appYaml),
|
|
@@ -8,12 +8,22 @@
|
|
|
8
8
|
arn: <%- event %>
|
|
9
9
|
batchSize: 10
|
|
10
10
|
<%_ } else if (handlerType === "hdrApi") { _%>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
<%_ resourceApis.forEach(resourceApi => { _%>
|
|
12
|
+
- http:
|
|
13
|
+
path: <%- firstLetterUpperCase(resourceApi.event) %>/<%- action %>
|
|
14
|
+
method: <%- resourceApi.method %>
|
|
15
|
+
# authorizer:
|
|
16
|
+
# name: arn:aws:lambda:${self:custom.iz_region}:${self:custom.iz_accountId}:function:UserAccountTestAuthorizerServiceSchema
|
|
17
|
+
#<#<%- firstLetterUpperCase(resourceApi.event) _%><%- firstLetterUpperCase(handlerType) %>AppLevelAuthorizer#>
|
|
18
|
+
#<#/<%- firstLetterUpperCase(resourceApi.event) _%><%- firstLetterUpperCase(handlerType) %>AppLevelAuthorizer#>
|
|
19
|
+
- http:
|
|
20
|
+
path: <%- firstLetterUpperCase(resourceApi.event) %>/<%- action %>/{targetUserId}
|
|
21
|
+
method: <%- resourceApi.method %>
|
|
22
|
+
# authorizer:
|
|
23
|
+
# name: arn:aws:lambda:${self:custom.iz_region}:${self:custom.iz_accountId}:function:UserAccountTestAuthorizerServiceSchema
|
|
24
|
+
#<#<%- firstLetterUpperCase(resourceApi.event) _%><%- firstLetterUpperCase(handlerType) %>UserLevelAuthorizer#>
|
|
25
|
+
#<#/<%- firstLetterUpperCase(resourceApi.event) _%><%- firstLetterUpperCase(handlerType) %>UserLevelAuthorizer#>
|
|
26
|
+
<%_ }) _%>
|
|
17
27
|
<%_ } _%>
|
|
18
28
|
role: <%- firstLetterUpperCase(roleName) _%>Role
|
|
19
29
|
#<#<%- firstLetterUpperCase(action) %><%- firstLetterUpperCase(handlerType) %>IamRole#>
|
|
@@ -73,7 +73,6 @@ async function data(_izContext, objectSchemas, srcPath, settings) {
|
|
|
73
73
|
const graphHandlerServiceTag = await serviceConfig.getGraphServiceTagWithCache(
|
|
74
74
|
_izContext,
|
|
75
75
|
storageResource.graphServerTag,
|
|
76
|
-
settings.bucketName
|
|
77
76
|
);
|
|
78
77
|
// _izContext.logger.debug("graphHandlerServiceTag: ", graphHandlerServiceTag)
|
|
79
78
|
|
|
@@ -68,7 +68,6 @@ module.exports.<%- functionName %> = async (
|
|
|
68
68
|
let flowSchema = await getObjectSchema.getFlowSchemaS3WithCache(_izContext, {
|
|
69
69
|
flowTag: "<%- flowTag %>",
|
|
70
70
|
serviceTag: process.env.iz_serviceTag,
|
|
71
|
-
process.env.iz_serviceSchemaBucketName
|
|
72
71
|
})
|
|
73
72
|
|
|
74
73
|
_izContext.logger.debug("flowSchema", flowSchema)
|
|
@@ -110,7 +110,7 @@ module.exports.processLogical = async (
|
|
|
110
110
|
errorsFound.push("type of element isn't object")
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
const objectSchemas = await getObjectSchemas.getObjSchemaS3WithHierarchy(_izContext, objType
|
|
113
|
+
const objectSchemas = await getObjectSchemas.getObjSchemaS3WithHierarchy(_izContext, objType);
|
|
114
114
|
_izContext.logger.debug("objectSchemas: ", objectSchemas)
|
|
115
115
|
|
|
116
116
|
let identifiersFieldName = null;
|
|
@@ -24,10 +24,10 @@ const fs = require('fs');
|
|
|
24
24
|
const {
|
|
25
25
|
SOURCE_PATH,
|
|
26
26
|
fieldNameSetting,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
FIELD_NAME_TYPE,
|
|
28
|
+
PROPERTY_VALUE_TAG,
|
|
29
29
|
SAVE_FILE_NAME
|
|
30
|
-
} = require('
|
|
30
|
+
} = require('../../../../MainLibs/src/Consts');
|
|
31
31
|
|
|
32
32
|
const templatePath = path.join(__dirname, "./templateObjectPropertyValueSchema.ejs");
|
|
33
33
|
|
|
@@ -71,26 +71,26 @@ async function data(_izContext, settings, srcPath) {
|
|
|
71
71
|
|
|
72
72
|
propertyValueObjectSchemas.push(
|
|
73
73
|
{ // {subject}property
|
|
74
|
-
objectType: propertyValueTag +
|
|
74
|
+
objectType: propertyValueTag + PROPERTY_VALUE_TAG.property,
|
|
75
75
|
fieldNames: {
|
|
76
|
-
[propertyValueTag +
|
|
76
|
+
[propertyValueTag + PROPERTY_VALUE_TAG.property + "Id"]: fieldNameSetting(FIELD_NAME_TYPE.randomOnCreateFieldName),
|
|
77
77
|
},
|
|
78
78
|
identifiers: [
|
|
79
79
|
{
|
|
80
80
|
type: "identifier",
|
|
81
|
-
fieldName: propertyValueTag +
|
|
81
|
+
fieldName: propertyValueTag + PROPERTY_VALUE_TAG.property + "Id"
|
|
82
82
|
}
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
85
|
{ // {subject}propertyLabel
|
|
86
|
-
objectType: propertyValueTag +
|
|
86
|
+
objectType: propertyValueTag + PROPERTY_VALUE_TAG.propertyLabel,
|
|
87
87
|
fieldNames: {
|
|
88
|
-
[propertyValueTag +
|
|
88
|
+
[propertyValueTag + PROPERTY_VALUE_TAG.propertyLabel + "Id"]: fieldNameSetting(FIELD_NAME_TYPE.randomOnCreateFieldName),
|
|
89
89
|
},
|
|
90
90
|
identifiers: [
|
|
91
91
|
{
|
|
92
92
|
type: "identifier",
|
|
93
|
-
fieldName: propertyValueTag +
|
|
93
|
+
fieldName: propertyValueTag + PROPERTY_VALUE_TAG.propertyLabel + "Id"
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
}
|
package/src/reStructure/TemplateData/propertyValueSchema/relationshipPropertyValueSchema/data.js
CHANGED
|
@@ -22,7 +22,7 @@ const fs = require('fs');
|
|
|
22
22
|
const {
|
|
23
23
|
SOURCE_PATH,
|
|
24
24
|
PREFIX_RELATIONSHIP,
|
|
25
|
-
|
|
25
|
+
PROPERTY_VALUE_TAG,
|
|
26
26
|
SAVE_FILE_NAME
|
|
27
27
|
} = require('@izara_project/izara-market-library-service-schemas/src/MainLibs/src/Consts');
|
|
28
28
|
|
|
@@ -92,7 +92,7 @@ function createSourceParams(_izContext, objectSchema, settings, srcPath) {
|
|
|
92
92
|
|
|
93
93
|
attributeRelationships.push(
|
|
94
94
|
{ // has{objectType}propertyValue
|
|
95
|
-
relationshipTag: PREFIX_RELATIONSHIP.has + upperCase(propertyValue) +
|
|
95
|
+
relationshipTag: PREFIX_RELATIONSHIP.has + upperCase(propertyValue) + PROPERTY_VALUE_TAG.property,
|
|
96
96
|
relationshipProperties: createBasicRelationshipsProperties(
|
|
97
97
|
{
|
|
98
98
|
serviceTag: serviceTag,
|
|
@@ -102,7 +102,7 @@ function createSourceParams(_izContext, objectSchema, settings, srcPath) {
|
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
serviceTag: serviceTag,
|
|
105
|
-
objectType: propertyValue +
|
|
105
|
+
objectType: propertyValue + PROPERTY_VALUE_TAG.property,
|
|
106
106
|
linkType: "many",
|
|
107
107
|
requiredOnCreate: true
|
|
108
108
|
},
|
|
@@ -112,7 +112,7 @@ function createSourceParams(_izContext, objectSchema, settings, srcPath) {
|
|
|
112
112
|
},
|
|
113
113
|
// disabled{objectType}propertyValue
|
|
114
114
|
{
|
|
115
|
-
relationshipTag: PREFIX_RELATIONSHIP.disabled + upperCase(propertyValue) +
|
|
115
|
+
relationshipTag: PREFIX_RELATIONSHIP.disabled + upperCase(propertyValue) + PROPERTY_VALUE_TAG.property,
|
|
116
116
|
relationshipProperties: createBasicRelationshipsProperties(
|
|
117
117
|
{
|
|
118
118
|
serviceTag: serviceTag,
|
|
@@ -122,7 +122,7 @@ function createSourceParams(_izContext, objectSchema, settings, srcPath) {
|
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
serviceTag: serviceTag,
|
|
125
|
-
objectType: propertyValue +
|
|
125
|
+
objectType: propertyValue + PROPERTY_VALUE_TAG.property,
|
|
126
126
|
linkType: "many",
|
|
127
127
|
requiredOnCreate: false
|
|
128
128
|
},
|
|
@@ -132,17 +132,17 @@ function createSourceParams(_izContext, objectSchema, settings, srcPath) {
|
|
|
132
132
|
},
|
|
133
133
|
|
|
134
134
|
{ // is{objectType}PropertyLabel
|
|
135
|
-
relationshipTag: PREFIX_RELATIONSHIP.is + upperCase(propertyValue) +
|
|
135
|
+
relationshipTag: PREFIX_RELATIONSHIP.is + upperCase(propertyValue) + PROPERTY_VALUE_TAG.propertyLabel,
|
|
136
136
|
relationshipProperties: createBasicRelationshipsProperties(
|
|
137
137
|
{
|
|
138
138
|
serviceTag: serviceTag,
|
|
139
|
-
objectType: propertyValue +
|
|
139
|
+
objectType: propertyValue + PROPERTY_VALUE_TAG.property,
|
|
140
140
|
linkType: "many",
|
|
141
141
|
requiredOnCreate: true
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
serviceTag: serviceTag,
|
|
145
|
-
objectType: propertyValue +
|
|
145
|
+
objectType: propertyValue + PROPERTY_VALUE_TAG.propertyLabel,
|
|
146
146
|
linkType: "one",
|
|
147
147
|
requiredOnCreate: false
|
|
148
148
|
},
|
package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs
CHANGED
|
@@ -100,7 +100,7 @@ module.exports.createRelationship = async (
|
|
|
100
100
|
async function validateIdentifiersExists(_izContext, objType, identifiersObject) {
|
|
101
101
|
|
|
102
102
|
const objTypeString = `objType:{ serviceTag:${objType.serviceTag}, objectType:${objType.objectType} }`;
|
|
103
|
-
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType
|
|
103
|
+
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType);
|
|
104
104
|
|
|
105
105
|
if (!objectSchema) {
|
|
106
106
|
errorsFound.push(`validateIdentifiers, not found schema of ${objTypeString}`);
|
|
@@ -133,7 +133,7 @@ module.exports.createRelationship = async (
|
|
|
133
133
|
//(<beforeGetRelCreateRel>)
|
|
134
134
|
//(</beforeGetRelCreateRel>)
|
|
135
135
|
|
|
136
|
-
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType
|
|
136
|
+
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType);
|
|
137
137
|
_izContext.logger.debug("relationshipSchema: ", relationshipSchema);
|
|
138
138
|
|
|
139
139
|
const links = await findLinksByObjTypes(_izContext, [firstObject.objType, secondObject.objType], relationshipSchema.links)
|
|
@@ -196,7 +196,7 @@ module.exports.createRelationship = async (
|
|
|
196
196
|
const usedStorageResource = relationshipSchema.storageResources[storageResourceTag];
|
|
197
197
|
|
|
198
198
|
if (usedStorageResource.storageType === consts.STORAGE_TYPES.graph) {
|
|
199
|
-
const graphServiceTag = await getGraphServiceTagWithCache(_izContext, usedStorageResource.graphServerTag
|
|
199
|
+
const graphServiceTag = await getGraphServiceTagWithCache(_izContext, usedStorageResource.graphServerTag);
|
|
200
200
|
if (!graphServiceTag) {
|
|
201
201
|
errorsFound.push(`storageResourceTag: ${storageResourceTag} invalid, not found graph serviceTag from graphServerTag: ${usedStorageResource.graphServerTag}`)
|
|
202
202
|
}
|
package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs
CHANGED
|
@@ -97,7 +97,7 @@ module.exports.deleteRelationship = async (
|
|
|
97
97
|
async function validateIdentifiersExists(_izContext, objType, identifiersObject) {
|
|
98
98
|
|
|
99
99
|
const objTypeString = `objType:{ serviceTag:${objType.serviceTag}, objectType:${objType.objectType} }`;
|
|
100
|
-
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType
|
|
100
|
+
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType);
|
|
101
101
|
|
|
102
102
|
if (!objectSchema) {
|
|
103
103
|
errorsFound.push(`validateIdentifiers, not found schema of ${objTypeString}`);
|
|
@@ -130,7 +130,7 @@ module.exports.deleteRelationship = async (
|
|
|
130
130
|
//(<beforeDeleteRel>)
|
|
131
131
|
//(</beforeDeleteRel>)
|
|
132
132
|
|
|
133
|
-
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType
|
|
133
|
+
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType);
|
|
134
134
|
_izContext.logger.debug("relationshipSchema: ", relationshipSchema);
|
|
135
135
|
|
|
136
136
|
let targetStorageResources = [];
|
package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs
CHANGED
|
@@ -98,7 +98,7 @@ module.exports.getRelationship = async (
|
|
|
98
98
|
async function validateIdentifiersExists(_izContext, objType, identifiersObject) {
|
|
99
99
|
|
|
100
100
|
const objTypeString = `objType:{ serviceTag:${objType.serviceTag}, objectType:${objType.objectType} }`;
|
|
101
|
-
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType
|
|
101
|
+
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType);
|
|
102
102
|
|
|
103
103
|
if (!objectSchema) {
|
|
104
104
|
errorsFound.push(`validateIdentifiers, not found schema of ${objTypeString}`);
|
|
@@ -131,7 +131,7 @@ module.exports.getRelationship = async (
|
|
|
131
131
|
//(<beforeGetRel>)
|
|
132
132
|
//(</beforeGetRel>)
|
|
133
133
|
|
|
134
|
-
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType
|
|
134
|
+
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType);
|
|
135
135
|
_izContext.logger.debug("relationshipSchema: ", relationshipSchema);
|
|
136
136
|
|
|
137
137
|
const links = await findLinksByObjTypes(_izContext, [firstObject.objType, secondObject.objType], relationshipSchema.links)
|
package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs
CHANGED
|
@@ -104,7 +104,7 @@ module.exports.updateRelationship = async (
|
|
|
104
104
|
async function validateIdentifiersExists(_izContext, objType, identifiersObject) {
|
|
105
105
|
|
|
106
106
|
const objTypeString = `objType:{ serviceTag:${objType.serviceTag}, objectType:${objType.objectType} }`;
|
|
107
|
-
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType
|
|
107
|
+
const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType);
|
|
108
108
|
|
|
109
109
|
if (!objectSchema) {
|
|
110
110
|
errorsFound.push(`validateIdentifiers, not found schema of ${objTypeString}`);
|
|
@@ -135,7 +135,7 @@ module.exports.updateRelationship = async (
|
|
|
135
135
|
|
|
136
136
|
//(<beforeGetRelUpdateRel>)
|
|
137
137
|
//(</beforeGetRelUpdateRel>)
|
|
138
|
-
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType
|
|
138
|
+
const relationshipSchema = await getRelationshipSchemaWithCache(_izContext, relType);
|
|
139
139
|
_izContext.logger.debug("relationshipSchema: ", relationshipSchema);
|
|
140
140
|
|
|
141
141
|
let targetStorageResources = [];
|