@trackunit/iris-app-api 1.3.52 → 1.3.53

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,7 @@
1
+ ## 1.3.53 (2025-04-03)
2
+
3
+ This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
4
+
1
5
  ## 1.3.52 (2025-04-03)
2
6
 
3
7
  This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-api",
3
- "version": "1.3.52",
3
+ "version": "1.3.53",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -8,9 +8,17 @@ export interface CustomerHomeExtensionManifest extends AbstractExtensionManifest
8
8
  * Its doing AND between the conditions types and OR between the conditions of the same type:
9
9
  * - If only scopes is used/filled out then the extension will be shown for all customers that the user has the required permission for.
10
10
  * - If more scopes are used/filled out then the extension will be shown for all customers that the user has one of the required permission for.
11
+ * - If showFor is used then the extension will be shown for all customers that match the showFor condition.
12
+ * - If both scopes and showFor are used then the extension will be shown for all customers that match the showFor condition and the user has the required permission for.
11
13
  */
12
14
  conditions?: {
13
15
  scopes?: AccountScope | AccountScope[];
16
+ /**
17
+ * - If showFor is "ALL" then the extension will be shown for all customers in customer home.
18
+ * - If showFor is "BUSINESS_UNITS" then the extension will be shown for all business units in customer home.
19
+ * - If showFor is "CUSTOMERS" then the extension will be shown for all customers that are not business units in customer home.
20
+ */
21
+ showFor?: "ALL" | "BUSINESS_UNITS" | "CUSTOMERS";
14
22
  };
15
23
  menuItem: {
16
24
  name: string | Translations | TranslationKey;
@@ -1 +1 @@
1
- {"version":3,"file":"customerHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/customerHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface CustomerHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"CUSTOMER_HOME_EXTENSION\";\n\n /**\n * Conditions for the customer home extension to be shown.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If only scopes is used/filled out then the extension will be shown for all customers that the user has the required permission for.\n * - If more scopes are used/filled out then the extension will be shown for all customers that the user has one of the required permission for.\n */\n conditions?: {\n scopes?: AccountScope | AccountScope[];\n };\n\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
1
+ {"version":3,"file":"customerHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/customerHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface CustomerHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"CUSTOMER_HOME_EXTENSION\";\n\n /**\n * Conditions for the customer home extension to be shown.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If only scopes is used/filled out then the extension will be shown for all customers that the user has the required permission for.\n * - If more scopes are used/filled out then the extension will be shown for all customers that the user has one of the required permission for.\n * - If showFor is used then the extension will be shown for all customers that match the showFor condition.\n * - If both scopes and showFor are used then the extension will be shown for all customers that match the showFor condition and the user has the required permission for.\n */\n conditions?: {\n scopes?: AccountScope | AccountScope[];\n /**\n * - If showFor is \"ALL\" then the extension will be shown for all customers in customer home.\n * - If showFor is \"BUSINESS_UNITS\" then the extension will be shown for all business units in customer home.\n * - If showFor is \"CUSTOMERS\" then the extension will be shown for all customers that are not business units in customer home.\n */\n showFor?: \"ALL\" | \"BUSINESS_UNITS\" | \"CUSTOMERS\";\n };\n\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}