@izara_project/izara-core-library-service-schemas 1.0.62 → 1.0.63

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.62",
3
+ "version": "1.0.63",
4
4
  "description": "Schemas for the service and objects it controls",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,14 +20,15 @@
20
20
  "testEnvironment": "node"
21
21
  },
22
22
  "dependencies": {
23
- "@aws-sdk/client-lambda": "^3.812.0",
24
- "@aws-sdk/client-s3": "^3.815.0",
25
- "@aws-sdk/crc64-nvme-crt": "^3.815.0",
23
+ "@aws-sdk/client-lambda": "^3.787.0",
24
+ "@aws-sdk/client-s3": "^3.787.0",
25
+ "@aws-sdk/crc64-nvme-crt": "^3.787.0",
26
26
  "@izara_project/izara-core-library-core": "^1.0.19",
27
27
  "@izara_project/izara-core-library-external-request": "^1.0.20",
28
28
  "@izara_project/izara-core-library-lambda": "^1.0.4",
29
29
  "@izara_project/izara-core-library-logger": "^1.0.7",
30
- "@izara_project/izara-shared-service-schemas": "^1.0.12",
30
+ "@izara_project/izara-shared-core": "^1.0.2",
31
+ "@izara_project/izara-shared-service-schemas": "^1.0.13",
31
32
  "glob": "^11.0.2",
32
33
  "lodash": "^4.17.21",
33
34
  "object-hash": "^3.0.0",
@@ -20,9 +20,9 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
20
20
 
21
21
  const glob = require('glob')
22
22
  const path = require('path')
23
- const hash = require('object-hash');
24
23
  const lodash = require('lodash');
25
24
 
25
+ const hash = require('@izara_project/izara-shared-core').objectHash;
26
26
 
27
27
  const sharedServiceSchema = require("@izara_project/izara-shared-service-schemas");
28
28
  const {
@@ -17,7 +17,7 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
 
20
- const hash = require("object-hash")
20
+ const hash = require('@izara_project/izara-shared-core').objectHash;
21
21
 
22
22
  const { inMemoryCacheLib } = require('@izara_project/izara-core-library-core');
23
23
 
@@ -17,7 +17,7 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
 
20
- const hash = require('object-hash');
20
+ const hash = require('@izara_project/izara-shared-core').objectHash;
21
21
 
22
22
  const {
23
23
  validateGraphServerTags,
@@ -460,6 +460,7 @@ async function uploadObjectSchemaByUseCase(_izContext) {
460
460
  }
461
461
 
462
462
  // ------------ Upload Relationship ------------------
463
+ let setRelationships = new Set();
463
464
  if (allObjectRelationships) {
464
465
 
465
466
  // upload relationshipTag
@@ -499,7 +500,6 @@ async function uploadObjectSchemaByUseCase(_izContext) {
499
500
  }
500
501
 
501
502
  // send params to translateIds to create permission fpr query dynamoDB
502
- let setRelationships = new Set();
503
503
  for (const [storageResourceTag, storageResource] of Object.entries(relTagDetail[relationshipTag].storageResources)) {
504
504
  if (storageResource.storageType === STORAGE_TYPES.dynamoDB) {
505
505
  for (const link of relTagDetail[relationshipTag].links) {
@@ -514,17 +514,15 @@ async function uploadObjectSchemaByUseCase(_izContext) {
514
514
  }
515
515
  }
516
516
  }
517
- let arrayRelationships = [...setRelationships]
518
- await lambda.invokeSync(_izContext,
519
- await lambdaSharedLib.lambdaFunctionName(_izContext, "CreatePermissionHdrInv", "TranslateIds"),
520
- {
521
- relationships: arrayRelationships
522
- }
523
- )
524
-
525
517
  }// per relationshipTag
526
-
527
-
518
+
519
+ let arrayRelationships = [...setRelationships]
520
+ await lambda.invokeSync(_izContext,
521
+ await lambdaSharedLib.lambdaFunctionName(_izContext, "CreatePermissionHdrInv", "TranslateIds"),
522
+ {
523
+ relationships: arrayRelationships
524
+ }
525
+ )
528
526
 
529
527
  const linksPerObjectTyjpe = groupLinksPerObjectType(_izContext, allObjectRelationships, foundedObjectTypes)
530
528
 
package/src/Utils.js CHANGED
@@ -17,7 +17,7 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
 
20
- const hash = require('object-hash');
20
+ const hash = require('@izara_project/izara-shared-core').objectHash;
21
21
  const {
22
22
  NoRetryError,
23
23
  validator: { validateObject }
@@ -18,7 +18,6 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
18
18
  'use strict';
19
19
 
20
20
 
21
- const hash = require('object-hash');
22
21
  const readYamlFile = require('read-yaml-file');
23
22
  const lodash = require('lodash')
24
23
  const { inMemoryCacheLib, NoRetryError } = require('@izara_project/izara-core-library-core');
@@ -27,6 +26,7 @@ const uploadUseCase = require('./libs/UploadUseCase')
27
26
 
28
27
  const { getGraphServiceTag, getServiceName } = require('./ServiceConfig')
29
28
 
29
+ const hash = require('@izara_project/izara-shared-core').objectHash;
30
30
  const {
31
31
  validateObjectSchema,
32
32
  validateRelationshipSchema,
@@ -17,9 +17,9 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
 
20
- const hash = require("object-hash");
21
20
  const lodash = require("lodash");
22
21
 
22
+ const hash = require('@izara_project/izara-shared-core').objectHash;
23
23
  const { NoRetryError } = require('@izara_project/izara-core-library-core');
24
24
  const getObjectSchema = require("../GetObjectSchema");
25
25
  const { validateObjType: { validateObjType } } = require("@izara_project/izara-shared-service-schemas");
@@ -28,7 +28,7 @@ const {
28
28
  PutObjectCommand,
29
29
  } = require("@aws-sdk/client-s3");
30
30
 
31
- const hash = require('object-hash');
31
+ const hash = require('@izara_project/izara-shared-core').objectHash;
32
32
 
33
33
  const { NoRetryError, inMemoryCacheLib } = require('@izara_project/izara-core-library-core');
34
34
  const { SCHEMA_NAME_PER_S3_PATH } = require('@izara_project/izara-shared-service-schemas').consts;