@raytio/decrypt-helper 6.1.1 → 6.2.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.
@@ -13,7 +13,10 @@ exports.fetchAA = void 0;
13
13
  const authedFetch_1 = require("./authedFetch");
14
14
  function fetchAA(apiToken, envConfig, aId) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
- return (0, authedFetch_1.authedFetch)(apiToken, `${envConfig.api_url}/share/v2/access_application/${aId}`);
16
+ const [AA] = yield (0, authedFetch_1.authedFetch)(apiToken, `${envConfig.api_url}/db/v1/dsm_access_applications?id=eq.${aId}`);
17
+ if (!AA)
18
+ throw new Error("AA not found");
19
+ return Object.assign(Object.assign({}, AA), { a_id: AA.id });
17
20
  });
18
21
  }
19
22
  exports.fetchAA = fetchAA;
@@ -14,7 +14,7 @@ const core_1 = require("@raytio/core");
14
14
  const authedFetch_1 = require("./authedFetch");
15
15
  function getAllSchema(envConfig) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
- const list = yield (0, authedFetch_1.authedFetch)("", `${envConfig.api_url}/db/v1/schema?version_current=eq.true`);
17
+ const list = yield (0, authedFetch_1.authedFetch)("", `${envConfig.api_url}/db/v1/dsm_schema?version_current=eq.true`);
18
18
  return list.map((wrappedSchema) => (0, core_1.expandSchema)(wrappedSchema, list, [
19
19
  process.env.PDF_LANGUAGE || process.env.DATE_FORMAT || "en-NZ",
20
20
  ]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raytio/decrypt-helper",
3
- "version": "6.1.1",
3
+ "version": "6.2.0",
4
4
  "author": "Raytio",
5
5
  "description": "A helper to decrypt data shared by Raytio users",
6
6
  "main": "dist",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@aws-amplify/auth": "3.4.25",
25
- "@raytio/core": "^11.1.0",
25
+ "@raytio/core": "^11.2.0",
26
26
  "@raytio/maxcryptor": "^3.1.0",
27
- "@raytio/types": "^7.1.0",
27
+ "@raytio/types": "^7.2.0",
28
28
  "aws-sdk": "^2.754.0",
29
29
  "jsx-pdf": "^2.3.0",
30
30
  "localstorage-polyfill": "^1.0.1",
@@ -34,24 +34,24 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@raytio/react-intl-manager": "^6.3.1",
37
- "@types/jest": "^29.5.2",
37
+ "@types/jest": "^29.5.3",
38
38
  "@types/jest-image-snapshot": "^6.1.0",
39
39
  "@types/jsx-pdf": "^2.2.2",
40
40
  "@types/mime-types": "^2.1.1",
41
- "@types/node": "^18.16.18",
41
+ "@types/node": "^18.16.19",
42
42
  "@types/pdfmake": "^0.2.2",
43
- "@types/ramda": "^0.29.2",
43
+ "@types/ramda": "^0.29.3",
44
44
  "babel-preset-react-app": "^10.0.1",
45
45
  "dotenv": "^16.3.1",
46
- "eslint": "^8.43.0",
47
- "eslint-config-kyle": "^11.14.2",
48
- "jest": "^29.5.0",
46
+ "eslint": "^8.45.0",
47
+ "eslint-config-kyle": "^11.19.0",
48
+ "jest": "^29.6.1",
49
49
  "jest-image-snapshot": "^6.1.0",
50
50
  "jest-junit": "^16.0.0",
51
51
  "pdf-to-img": "^2.1.1",
52
- "ts-jest": "^29.1.0",
52
+ "ts-jest": "^29.1.1",
53
53
  "ts-node": "^10.9.1",
54
- "typescript": "^5.1.3"
54
+ "typescript": "^5.1.6"
55
55
  },
56
56
  "eslintConfig": {
57
57
  "extends": "kyle",