@trackunit/iris-app 1.18.16 → 1.18.19

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/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## 1.18.19 (2026-04-27)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated iris-app-build-utilities to 1.15.18
6
+ - Updated iris-app-api to 1.17.18
7
+ - Updated react-test-setup to 1.8.112
8
+ - Updated shared-utils to 1.13.113
9
+
10
+ ## 1.18.18 (2026-04-27)
11
+
12
+ ### 🧱 Updated Dependencies
13
+
14
+ - Updated iris-app-build-utilities to 1.15.17
15
+ - Updated iris-app-api to 1.17.17
16
+ - Updated react-test-setup to 1.8.111
17
+ - Updated shared-utils to 1.13.112
18
+
19
+ ## 1.18.17 (2026-04-27)
20
+
21
+ ### 🧱 Updated Dependencies
22
+
23
+ - Updated iris-app-build-utilities to 1.15.16
24
+ - Updated iris-app-api to 1.17.16
25
+ - Updated react-test-setup to 1.8.110
26
+ - Updated shared-utils to 1.13.111
27
+
1
28
  ## 1.18.16 (2026-04-24)
2
29
 
3
30
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "1.18.16",
3
+ "version": "1.18.19",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "main": "src/index.js",
6
6
  "generators": "./generators.json",
@@ -23,8 +23,8 @@
23
23
  "@nx/react": "22.6.5",
24
24
  "@npmcli/arborist": "^9.1.9",
25
25
  "win-ca": "^3.5.1",
26
- "@trackunit/shared-utils": "1.13.110",
27
- "@trackunit/iris-app-api": "1.17.15",
26
+ "@trackunit/shared-utils": "1.13.113",
27
+ "@trackunit/iris-app-api": "1.17.18",
28
28
  "tslib": "^2.6.2",
29
29
  "@clack/prompts": "^1.0.0",
30
30
  "@npm/types": "^1.0.2",
@@ -116,6 +116,13 @@ function getAuthSettings(env) {
116
116
  internalAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/aush09l7x4mDGKxLu357",
117
117
  env,
118
118
  };
119
+ case "LOCAL":
120
+ return {
121
+ clientId: "0oamebigau4RkaqZ6357",
122
+ publicAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/ausj7eh9zeiFhLk4m357",
123
+ internalAuthorizationServerBaseUrl: "https://identity.dev.iris.trackunit.com/oauth2/aush09l7x4mDGKxLu357",
124
+ env,
125
+ };
119
126
  default:
120
127
  throw new Error(`Unknown environment: ${env}`);
121
128
  }
@@ -1,6 +1,7 @@
1
1
  export type Settings = {
2
2
  approvalUrl: URL;
3
3
  repoUrl: URL;
4
+ graphqlInternalUrl: URL;
4
5
  env: string;
5
6
  devTermsAccept: boolean;
6
7
  };
@@ -7,10 +7,12 @@ exports.getSettings = getSettings;
7
7
  function getSettings() {
8
8
  const env = process.env.TU_ENV?.toUpperCase() ?? "PROD";
9
9
  const baseUrl = getBaseUrl(env);
10
+ const graphqlInternalUrl = getGraphqlInternalUrl(env);
10
11
  const devTermsAccept = process.env.TU_DEV_TERMS_AND_CONDITIONS?.toLowerCase() === "accept";
11
12
  return {
12
13
  approvalUrl: new URL("approve/", baseUrl),
13
14
  repoUrl: new URL("repo/", baseUrl),
15
+ graphqlInternalUrl,
14
16
  env,
15
17
  devTermsAccept,
16
18
  };
@@ -29,6 +31,32 @@ const getBaseUrl = (env) => {
29
31
  return new URL(process.env.BASE_URL ?? "https://stage.iris.trackunit.app/");
30
32
  case "DEV":
31
33
  return new URL(process.env.BASE_URL ?? "https://dev.iris.trackunit.app/");
34
+ case "LOCAL":
35
+ return new URL(process.env.BASE_URL ?? "http://localhost:3003/");
36
+ default:
37
+ throw new Error(`Unknown environment: ${env}`);
38
+ }
39
+ };
40
+ /**
41
+ * Provides the URL for the internal GraphQL endpoint based on the environment.
42
+ * Can be overridden by the `GRAPHQL_INTERNAL_URL` environment variable.
43
+ *
44
+ * @param {string} env The environment to get the URL for.
45
+ * @returns {URL} The internal GraphQL URL.
46
+ */
47
+ const getGraphqlInternalUrl = (env) => {
48
+ if (process.env.GRAPHQL_INTERNAL_URL) {
49
+ return new URL(process.env.GRAPHQL_INTERNAL_URL);
50
+ }
51
+ switch (env.toUpperCase()) {
52
+ case "PROD":
53
+ return new URL("https://prod.awsapi.trackunit.com/public/api/graphql/internal-manager/");
54
+ case "STAGE":
55
+ return new URL("https://stage.awsapi.trackunit.com/public/api/graphql/internal-manager/");
56
+ case "DEV":
57
+ return new URL("https://dev.awsapi.trackunit.com/public/api/graphql/internal-manager/");
58
+ case "LOCAL":
59
+ return new URL("http://localhost:5011/internal");
32
60
  default:
33
61
  throw new Error(`Unknown environment: ${env}`);
34
62
  }
package/src/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ export { getAccessToken } from "./executors/utils/authentication";
2
+ export { getSettings } from "./executors/utils/irisAppServerSettings";
3
+ export type { Settings } from "./executors/utils/irisAppServerSettings";
1
4
  export { IrisAppGenerator } from "./generators/create/generator";
2
5
  export type { IrisAppGeneratorSchema } from "./generators/create/schema";
3
6
  export { IrisAppExtensionGenerator } from "./generators/extend/generator";
package/src/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IrisAppExtensionGenerator = exports.IrisAppGenerator = void 0;
3
+ exports.IrisAppExtensionGenerator = exports.IrisAppGenerator = exports.getSettings = exports.getAccessToken = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ var authentication_1 = require("./executors/utils/authentication");
6
+ Object.defineProperty(exports, "getAccessToken", { enumerable: true, get: function () { return authentication_1.getAccessToken; } });
7
+ var irisAppServerSettings_1 = require("./executors/utils/irisAppServerSettings");
8
+ Object.defineProperty(exports, "getSettings", { enumerable: true, get: function () { return irisAppServerSettings_1.getSettings; } });
5
9
  var generator_1 = require("./generators/create/generator");
6
10
  Object.defineProperty(exports, "IrisAppGenerator", { enumerable: true, get: function () { return generator_1.IrisAppGenerator; } });
7
11
  var generator_2 = require("./generators/extend/generator");