@izara_project/izara-core-library-service-schemas 1.0.83 → 1.0.84

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-service-schemas",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "description": "Schemas for the service and objects it controls",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "@izara_project/izara-core-library-lambda": "^1.0.4",
30
30
  "@izara_project/izara-core-library-logger": "^1.0.7",
31
31
  "@izara_project/izara-shared-core": "^1.0.2",
32
- "@izara_project/izara-shared-service-schemas": "^1.0.26",
32
+ "@izara_project/izara-shared-service-schemas": "^1.0.27",
33
33
  "glob": "^11.0.3",
34
34
  "lodash": "^4.17.21",
35
35
  "object-hash": "^3.0.0",
@@ -42,7 +42,7 @@ async function getServiceName(
42
42
  _izContext.logger.debug("getServiceName: ", serviceTag)
43
43
 
44
44
  const getObjectParam = {
45
- Bucket: process.env.iz_serviceSchemaBucketName,
45
+ Bucket: process.env.iz_serviceSchemaBucketName || OBJECT_SCHEMA_BUCKET_NAME,
46
46
  Key: UPLOAD_PATH_S3.serviceName(_izContext, serviceTag),
47
47
  };
48
48
  _izContext.logger.debug("getObjectParam", getObjectParam)
@@ -82,7 +82,7 @@ const getServiceNameWithCache = inMemoryCacheLib(
82
82
  async function getGraphServiceTag(
83
83
  _izContext,
84
84
  graphServerTag,
85
- bucketName = process.env.iz_serviceSchemaBucketName
85
+ bucketName = process.env.iz_serviceSchemaBucketName || OBJECT_SCHEMA_BUCKET_NAME
86
86
  ) {
87
87
 
88
88
  // get all graph serverTag
@@ -78,7 +78,7 @@ async function _processNodeRelationships(
78
78
  storageResourceTags,
79
79
  objectRelationships,
80
80
  relationshipSchema,
81
- bucketName
81
+ bucketName = process.env.iz_serviceSchemaBucketName
82
82
  ) {
83
83
  const { node, isBase, relationshipDirection } = nodeConfig;
84
84
  const results = [];
@@ -500,7 +500,7 @@ async function _processObjectLinksGroup(_izContext, relationshipTag, objectLinks
500
500
  storageResourceTags,
501
501
  objectRelationships,
502
502
  relationshipSchema,
503
- bucketName
503
+ process.env.iz_serviceSchemaBucketName
504
504
  );
505
505
  results.push(...secondNodeResults);
506
506
  } catch (error) {
@@ -554,8 +554,7 @@ async function _processObjectLinksGroup(_izContext, relationshipTag, objectLinks
554
554
  _izContext,
555
555
  relType.relationshipTag,
556
556
  objectLinksGroup,
557
- { depth: loopSetting.depth + 1 },
558
- bucketName
557
+ { depth: loopSetting.depth + 1 }
559
558
  )
560
559
  }
561
560
 
@@ -640,7 +639,6 @@ async function _processObjectLinksGroup(_izContext, relationshipTag, objectLinks
640
639
  relType.relationshipTag,
641
640
  objectLinksGroup,
642
641
  { depth: loopSetting.depth + 1 },
643
- bucketName
644
642
  )
645
643
  }
646
644
  } catch (error) {
@@ -383,7 +383,7 @@ async function generateValidatorSchemaForCreate(_izContext, objType, settings =
383
383
  }
384
384
  _izContext.logger.debug("Function:generateValidatorSchemaForCreate ", {
385
385
  objType,
386
- specificFieldNames: settings.specificFieldNames
386
+ settings
387
387
  })
388
388
 
389
389
  const objectSchema = await getObjSchemaS3WithHierarchy(_izContext, objType);