@raytio/core 11.2.0 → 11.4.0

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +126 -30
  3. package/dist/accessApplication/api/__tests__/fetchKeysForSubmission.test.d.ts +1 -0
  4. package/dist/accessApplication/api/__tests__/fetchKeysForSubmission.test.js +28 -0
  5. package/dist/accessApplication/api/__tests__/fetchPOsOrAOsForSubmission.test.d.ts +1 -0
  6. package/dist/accessApplication/api/__tests__/fetchPOsOrAOsForSubmission.test.js +23 -0
  7. package/dist/accessApplication/api/__tests__/fetchRelationshipsForSubmission.test.d.ts +1 -0
  8. package/dist/accessApplication/api/__tests__/fetchRelationshipsForSubmission.test.js +27 -0
  9. package/dist/accessApplication/api/__tests__/getMissingDataForInstance.test.d.ts +1 -0
  10. package/dist/accessApplication/api/__tests__/getMissingDataForInstance.test.js +30 -0
  11. package/dist/accessApplication/api/fetchKeysForSubmission.d.ts +12 -0
  12. package/dist/accessApplication/api/fetchKeysForSubmission.js +15 -0
  13. package/dist/accessApplication/api/fetchPOsOrAOsForSubmission.d.ts +6 -0
  14. package/dist/accessApplication/api/fetchPOsOrAOsForSubmission.js +24 -0
  15. package/dist/accessApplication/api/fetchRelationshipsForSubmission.d.ts +6 -0
  16. package/dist/accessApplication/api/fetchRelationshipsForSubmission.js +9 -0
  17. package/dist/accessApplication/api/getMissingDataForInstance.d.ts +10 -0
  18. package/dist/accessApplication/api/getMissingDataForInstance.js +28 -0
  19. package/dist/accessApplication/api/index.d.ts +2 -0
  20. package/dist/accessApplication/api/index.js +18 -0
  21. package/dist/accessApplication/api/legacy/__tests__/convertRelationships.test.d.ts +1 -0
  22. package/dist/accessApplication/api/legacy/__tests__/convertRelationships.test.js +37 -0
  23. package/dist/accessApplication/api/legacy/convertRelationships.d.ts +16 -0
  24. package/dist/accessApplication/api/legacy/convertRelationships.js +20 -0
  25. package/dist/accessApplication/api/legacy/index.d.ts +1 -0
  26. package/dist/accessApplication/api/legacy/index.js +17 -0
  27. package/dist/accessApplication/createAA.d.ts +4 -1
  28. package/dist/accessApplication/createAA.js +70 -19
  29. package/dist/accessApplication/index.d.ts +1 -0
  30. package/dist/accessApplication/index.js +1 -0
  31. package/dist/crypto/cognitoAttributes.d.ts +1 -1
  32. package/dist/crypto/decryptSharedData.d.ts +3 -3
  33. package/dist/crypto/decryptSharedData.js +2 -5
  34. package/dist/crypto/getAADecryptor.d.ts +18 -3
  35. package/dist/crypto/getAADecryptor.js +10 -11
  36. package/dist/crypto/helpers.d.ts +2 -2
  37. package/dist/general/date.js +1 -2
  38. package/dist/general/password.js +1 -2
  39. package/dist/general/types.d.ts +9 -0
  40. package/dist/general/types.js +11 -2
  41. package/dist/rules/calculateScore.d.ts +1 -1
  42. package/dist/rules/calculateScore.js +2 -3
  43. package/dist/rules/convertInstanceToRuleInput.d.ts +3 -3
  44. package/dist/rules/convertInstanceToRuleInput.js +5 -2
  45. package/dist/rules/evaluateScoreCondition.d.ts +1 -1
  46. package/dist/rules/evaluateScoreCondition.js +1 -2
  47. package/dist/rules/helpers/__tests__/getValuesFromPath.test.js +1 -1
  48. package/dist/rules/helpers/addInfiniteThresholdBoundaries.d.ts +1 -1
  49. package/dist/rules/helpers/checkTypeofValue.d.ts +1 -1
  50. package/dist/rules/helpers/checkTypeofValue.js +2 -3
  51. package/dist/rules/helpers/getValuesFromPath.d.ts +1 -1
  52. package/dist/rules/helpers/getValuesFromPath.js +1 -2
  53. package/dist/rules/helpers/thresholds.d.ts +1 -1
  54. package/dist/rules/helpers/thresholds.js +2 -3
  55. package/dist/rules/operators/bool.d.ts +1 -1
  56. package/dist/rules/operators/date.d.ts +1 -1
  57. package/dist/rules/operators/hfield.d.ts +1 -1
  58. package/dist/rules/operators/hschema.d.ts +1 -1
  59. package/dist/rules/operators/index.d.ts +1 -1
  60. package/dist/rules/operators/number.d.ts +1 -1
  61. package/dist/rules/operators/string.d.ts +1 -1
  62. package/dist/rules/types/config.d.ts +4 -3
  63. package/dist/rules/types/dataValueTypes.d.ts +2 -3
  64. package/dist/rules/types/internal.d.ts +4 -3
  65. package/dist/rules/validate.d.ts +2 -2
  66. package/dist/schema/expandSchema/__tests__/expandSchema.test.js +2 -2
  67. package/dist/schema/expandSchema/__tests__/i18n.test.js +1 -1
  68. package/dist/schema/expandSchema/__tests__/maybeUseI18n.test.js +2 -2
  69. package/dist/schema/expandSchema/__tests__/processSchema.test.js +2 -2
  70. package/dist/schema/expandSchema/addLoadingTimes.d.ts +1 -1
  71. package/dist/schema/expandSchema/constants.d.ts +1 -1
  72. package/dist/schema/expandSchema/expandSchema.d.ts +1 -1
  73. package/dist/schema/expandSchema/expandSchema.js +1 -2
  74. package/dist/schema/expandSchema/maybeUseI18n.d.ts +1 -1
  75. package/dist/schema/expandSchema/processSchema.d.ts +1 -1
  76. package/dist/schema/expandSchema/processSchema.js +12 -10
  77. package/dist/schema/expandSchema/removePrivateFields.d.ts +57 -49
  78. package/dist/schema/expandSchema/sortSchemaProperties.d.ts +3 -3
  79. package/dist/schema/expandSchema/sortSchemaProperties.js +2 -2
  80. package/dist/schema/expandSchema/unwrapSchema.d.ts +2 -6
  81. package/dist/schema/expandSchema/unwrapSchema.js +1 -2
  82. package/dist/schema/labels.d.ts +2 -1
  83. package/dist/testHelpers.d.ts +2 -2
  84. package/dist/verifications/getPOVerification.d.ts +1 -1
  85. package/dist/verifications/getPOVerification.js +1 -2
  86. package/dist/verifications/index.d.ts +0 -1
  87. package/dist/verifications/index.js +0 -1
  88. package/dist/verifications/safeHarbour.d.ts +2 -2
  89. package/dist/verifications/safeHarbour.js +4 -4
  90. package/dist/verifications/verifyCheck/__tests__/getOwnRealVerifications.test.js +3 -3
  91. package/dist/verifications/verifyCheck/__tests__/getSomeoneElsesRealVerifications.test.js +2 -2
  92. package/dist/verifications/verifyCheck/getOwnRealVerifications.d.ts +1 -1
  93. package/dist/verifications/verifyCheck/getSomeoneElsesRealVerifications.d.ts +1 -1
  94. package/dist/verifications/verifyCheck/getSomeoneElsesRealVerifications.js +1 -1
  95. package/dist/verifications/verifyCheck/operations/__tests__/checkOwnVerification.test.js +1 -1
  96. package/dist/verifications/verifyCheck/operations/__tests__/checkSomeoneElsesVerifications.test.js +2 -2
  97. package/dist/verifications/verifyCheck/operations/checkOwnVerification.d.ts +1 -1
  98. package/dist/verifications/verifyCheck/operations/checkOwnVerification.js +4 -2
  99. package/package.json +6 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raytio/core",
3
- "version": "11.2.0",
3
+ "version": "11.4.0",
4
4
  "license": "MIT",
5
5
  "main": "index",
6
6
  "types": "index",
@@ -12,52 +12,16 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "docs": "sh ../../scripts/generate-docs.sh",
15
- "build": "tsc && rimraf dist/jest.setup.* dist/**/__tests__",
16
- "test": "jest && yarn docs"
15
+ "build": "tsc && rm -rf dist/**/__tests__",
16
+ "test": "vitest && yarn docs"
17
17
  },
18
18
  "dependencies": {
19
19
  "@raytio/maxcryptor": "3.1.0",
20
- "@raytio/types": "7.2.0",
21
- "ramda": "0.29.0"
20
+ "@raytio/types": "7.3.0",
21
+ "ramda": "0.30.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@types/ramda": "0.29.2",
25
- "jest": "29.6.1",
26
- "ts-jest": "29.1.1"
27
- },
28
- "jest": {
29
- "transform": {
30
- "^.+\\.(t|j)sx?$": "ts-jest"
31
- },
32
- "testEnvironment": "node",
33
- "collectCoverage": false,
34
- "coverageThreshold": {
35
- "global": {
36
- "statements": 100
37
- }
38
- },
39
- "collectCoverageFrom": [
40
- "**/*.js",
41
- "**/*.ts",
42
- "**/*.tsx"
43
- ],
44
- "coveragePathIgnorePatterns": [
45
- "/dist/",
46
- "/coverage/"
47
- ],
48
- "modulePathIgnorePatterns": [
49
- "/dist/"
50
- ],
51
- "reporters": [
52
- "default",
53
- "jest-junit"
54
- ],
55
- "setupFilesAfterEnv": [
56
- "./src/jest.setup.ts"
57
- ]
58
- },
59
- "jest-junit": {
60
- "outputDirectory": "../../tmp"
24
+ "@types/ramda": "0.29.7"
61
25
  },
62
26
  "engineStrict": true,
63
27
  "engines": {