@izara_project/izara-market-library-service-schemas 1.0.50 → 1.0.51
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/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/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.51",
|
|
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);
|
|
@@ -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;
|
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 = [];
|