@trackunit/iris-app-api 1.7.43-alpha-fb1493a185d.0 → 1.7.44
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,11 @@
|
|
|
1
|
+
## 1.7.44 (2025-10-28)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.7.43 (2025-10-28)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
1
9
|
## 1.7.42 (2025-10-27)
|
|
2
10
|
|
|
3
11
|
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
|
@@ -4,12 +4,12 @@ export interface AssetHomeExtensionManifest extends AbstractExtensionManifest {
|
|
|
4
4
|
type: "ASSET_HOME_EXTENSION";
|
|
5
5
|
/**
|
|
6
6
|
* Conditions for the asset home extension to be shown.
|
|
7
|
-
* model
|
|
7
|
+
* model and brand is case insensitive so does not matter how you write the brand.
|
|
8
8
|
* brand: "trackunit" and brand: "Trackunit" will be the same.
|
|
9
9
|
*
|
|
10
10
|
* Its doing AND between the conditions types and OR between the conditions of the same type:
|
|
11
11
|
* - If both model and brand are used/filled out then asset needs to match both model and brand.
|
|
12
|
-
* - If only brand
|
|
12
|
+
* - If only brand or model is used/filled out then the asset needs to match the filled out property.
|
|
13
13
|
* - If only scopes is used/filled out then the asset home extension will be shown for all assets that the user has the required scopes for.
|
|
14
14
|
* - If more scopes are used/filled out then the asset home extension will be shown for all assets that the user has one of the required scopes for.
|
|
15
15
|
* - If no conditions are used/filled out then the asset home extension will be shown for all assets.
|
|
@@ -17,7 +17,6 @@ export interface AssetHomeExtensionManifest extends AbstractExtensionManifest {
|
|
|
17
17
|
conditions?: {
|
|
18
18
|
model?: Array<string | RegExpType> | string | RegExpType;
|
|
19
19
|
brand?: Array<string | RegExpType> | string | RegExpType;
|
|
20
|
-
telematicsDeviceType?: Array<string | RegExpType> | string | RegExpType;
|
|
21
20
|
scopes?: AccountScope | Array<AccountScope>;
|
|
22
21
|
/**
|
|
23
22
|
* Only entityType ASSET custom fields are supported here
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/assetHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RegExpType,\n RequiredCustomField,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface AssetHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"ASSET_HOME_EXTENSION\";\n /**\n * Conditions for the asset home extension to be shown.\n * model
|
|
1
|
+
{"version":3,"file":"assetHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/assetHomeExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RegExpType,\n RequiredCustomField,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface AssetHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"ASSET_HOME_EXTENSION\";\n /**\n * Conditions for the asset home extension to be shown.\n * model and brand is case insensitive so does not matter how you write the brand.\n * brand: \"trackunit\" and brand: \"Trackunit\" will be the same.\n *\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If both model and brand are used/filled out then asset needs to match both model and brand.\n * - If only brand or model is used/filled out then the asset needs to match the filled out property.\n * - If only scopes is used/filled out then the asset home extension will be shown for all assets that the user has the required scopes for.\n * - If more scopes are used/filled out then the asset home extension will be shown for all assets that the user has one of the required scopes for.\n * - If no conditions are used/filled out then the asset home extension will be shown for all assets.\n */\n conditions?: {\n model?: Array<string | RegExpType> | string | RegExpType;\n brand?: Array<string | RegExpType> | string | RegExpType;\n scopes?: AccountScope | Array<AccountScope>;\n\n /**\n * Only entityType ASSET custom fields are supported here\n */\n requiredCustomField?: RequiredCustomField | Array<RequiredCustomField>;\n };\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|
package/src/types/scopes.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare const functionalityScope: {
|
|
|
45
45
|
readonly API_IRIS_APP_SDK_PROXY_FETCH: "api.iris.app.proxy.fetch";
|
|
46
46
|
};
|
|
47
47
|
export type FunctionalityScope = (typeof functionalityScope)[keyof typeof functionalityScope];
|
|
48
|
+
export type Scope = AccountScope | AssetScope | SiteScope | FunctionalityScope;
|
|
48
49
|
export declare const allScopes: {
|
|
49
50
|
API_IRIS_APP_SDK_PROXY_FETCH: "api.iris.app.proxy.fetch";
|
|
50
51
|
SITE_VIEW: "site.view";
|
|
@@ -82,4 +83,4 @@ export declare const allScopes: {
|
|
|
82
83
|
ACCOUNT_BRANDING_MANAGE: "account.branding.manage";
|
|
83
84
|
ACCOUNT_REMOTE_COMMAND_CONFIGURATION_VIEW: "account.remote-commands.configuration-tool.view";
|
|
84
85
|
};
|
|
85
|
-
export
|
|
86
|
+
export declare const readOnlyScopes: Array<Scope>;
|
package/src/types/scopes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.allScopes = exports.functionalityScope = exports.siteScope = exports.assetScope = exports.accountScope = void 0;
|
|
3
|
+
exports.readOnlyScopes = exports.allScopes = exports.functionalityScope = exports.siteScope = exports.assetScope = exports.accountScope = void 0;
|
|
4
4
|
exports.accountScope = {
|
|
5
5
|
ACCOUNT_ACCESS_MANAGEMENT_MANAGE: "account.access-management.manage",
|
|
6
6
|
ACCOUNT_ALERT_MANAGE: "account.alert.manage",
|
|
@@ -45,4 +45,16 @@ exports.functionalityScope = {
|
|
|
45
45
|
API_IRIS_APP_SDK_PROXY_FETCH: "api.iris.app.proxy.fetch",
|
|
46
46
|
};
|
|
47
47
|
exports.allScopes = { ...exports.accountScope, ...exports.assetScope, ...exports.siteScope, ...exports.functionalityScope };
|
|
48
|
+
exports.readOnlyScopes = [
|
|
49
|
+
exports.accountScope.ACCOUNT_ALERT_VIEW,
|
|
50
|
+
exports.accountScope.ACCOUNT_AUDIT_LOG_VIEW,
|
|
51
|
+
exports.accountScope.ACCOUNT_REMOTE_COMMAND_CONFIGURATION_VIEW,
|
|
52
|
+
exports.accountScope.ACCOUNT_RENTAL_VIEW,
|
|
53
|
+
exports.accountScope.ACCOUNT_SERVICE_MANAGEMENT_NETWORK_VIEW,
|
|
54
|
+
exports.accountScope.ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_VIEW,
|
|
55
|
+
exports.accountScope.ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_VIEW,
|
|
56
|
+
exports.accountScope.ACCOUNT_VIEW,
|
|
57
|
+
exports.assetScope.ASSET_VIEW,
|
|
58
|
+
exports.siteScope.SITE_VIEW,
|
|
59
|
+
];
|
|
48
60
|
//# sourceMappingURL=scopes.js.map
|
package/src/types/scopes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/scopes.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,gCAAgC,EAAE,kCAAkC;IACpE,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,4BAA4B,EAAE,8BAA8B;IAC5D,cAAc,EAAE,gBAAgB;IAChC,oBAAoB,EAAE,sBAAsB;IAC5C,0BAA0B,EAAE,4BAA4B;IACxD,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,gBAAgB;IAChC,+BAA+B,EAAE,iCAAiC;IAClE,mBAAmB,EAAE,qBAAqB;IAC1C,yCAAyC,EAAE,2CAA2C;IACtF,uCAAuC,EAAE,yCAAyC;IAClF,yDAAyD,EACvD,2DAA2D;IAC7D,yDAAyD,EACvD,2DAA2D;IAC7D,gFAAgF,EAC9E,kFAAkF;IACpF,4EAA4E,EAC1E,8EAA8E;IAChF,uDAAuD,EAAE,yDAAyD;IAClH,8CAA8C,EAAE,gDAAgD;IAChG,4CAA4C,EAAE,8CAA8C;IAC5F,mBAAmB,EAAE,qBAAqB;IAC1C,uBAAuB,EAAE,yBAAyB;IAClD,oCAAoC,EAAE,sCAAsC;IAC5E,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,cAAc;IAC5B,6BAA6B,EAAE,+BAA+B;IAC9D,uBAAuB,EAAE,yBAAyB;IAClD,yCAAyC,EAAE,iDAAiD;CACpF,CAAC;AAGE,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE,WAAW;CACd,CAAC;AAGE,QAAA,kBAAkB,GAAG;IAChC,4BAA4B,EAAE,0BAA0B;CAChD,CAAC;
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/scopes.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,gCAAgC,EAAE,kCAAkC;IACpE,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,4BAA4B,EAAE,8BAA8B;IAC5D,cAAc,EAAE,gBAAgB;IACh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zB,kBAAU,CAAC,UAAU;IACrB,iBAAS,CAAC,SAAS;CACpB,CAAC","sourcesContent":["export const accountScope = {\n ACCOUNT_ACCESS_MANAGEMENT_MANAGE: \"account.access-management.manage\",\n ACCOUNT_ALERT_MANAGE: \"account.alert.manage\",\n ACCOUNT_ALERT_VIEW: \"account.alert.view\",\n ACCOUNT_API_KEY_MANAGE: \"account.api-key.manage\",\n ACCOUNT_ASSET_MANAGE: \"account.asset.manage\",\n ACCOUNT_AUDIT_LOG_VIEW: \"account.audit-log.view\",\n ACCOUNT_BILLING_MANAGE: \"account.billing.manage\",\n ACCOUNT_CUSTOM_FIELDS_MANAGE: \"account.custom-fields.manage\",\n ACCOUNT_DELETE: \"account.delete\",\n ACCOUNT_EVENT_MANAGE: \"account.event.manage\",\n ACCOUNT_EVENT_REPORT_ISSUE: \"account.event.report-issue\",\n ACCOUNT_GROUP_MANAGE: \"account.group.manage\",\n ACCOUNT_MANAGE: \"account.manage\",\n ACCOUNT_MARKETPLACE_APP_INSTALL: \"account.marketplace.app.install\",\n ACCOUNT_RENTAL_VIEW: \"account.rental.view\",\n ACCOUNT_SERVICE_MANAGEMENT_NETWORK_MANAGE: \"account.service-management.network.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_NETWORK_VIEW: \"account.service-management.network.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_MANAGE:\n \"account.service-management.service-plan.assignment.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_REPORT:\n \"account.service-management.service-plan.assignment.report\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_SERVICE_REGISTRATION_REGISTER:\n \"account.service-management.service-plan.assignment.service-registration.register\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_SERVICE_REGISTRATION_VIEW:\n \"account.service-management.service-plan.assignment.service-registration.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_VIEW: \"account.service-management.service-plan.assignment.view\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_MANAGE: \"account.service-management.service-plan.manage\",\n ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_VIEW: \"account.service-management.service-plan.view\",\n ACCOUNT_SITE_MANAGE: \"account.site.manage\",\n ACCOUNT_CUSTOMER_MANAGE: \"account.customer.manage\",\n ACCOUNT_SUPPORT_ACCESS_APPROVAL_FLOW: \"account.support-access.approval-flow\",\n ACCOUNT_USER_MANAGE: \"account.user.manage\",\n ACCOUNT_VIEW: \"account.view\",\n ACCOUNT_IRIS_APP_STORE_SECRET: \"account.iris.app.store-secret\",\n ACCOUNT_BRANDING_MANAGE: \"account.branding.manage\",\n ACCOUNT_REMOTE_COMMAND_CONFIGURATION_VIEW: \"account.remote-commands.configuration-tool.view\",\n} as const;\nexport type AccountScope = (typeof accountScope)[keyof typeof accountScope];\n\nexport const assetScope = {\n ASSET_VIEW: \"asset.view\",\n} as const;\nexport type AssetScope = (typeof assetScope)[keyof typeof assetScope];\n\nexport const siteScope = {\n SITE_VIEW: \"site.view\",\n} as const;\nexport type SiteScope = (typeof siteScope)[keyof typeof siteScope];\n\nexport const functionalityScope = {\n API_IRIS_APP_SDK_PROXY_FETCH: \"api.iris.app.proxy.fetch\",\n} as const;\nexport type FunctionalityScope = (typeof functionalityScope)[keyof typeof functionalityScope];\n\nexport type Scope = AccountScope | AssetScope | SiteScope | FunctionalityScope;\n\nexport const allScopes = { ...accountScope, ...assetScope, ...siteScope, ...functionalityScope };\n\nexport const readOnlyScopes: Array<Scope> = [\n accountScope.ACCOUNT_ALERT_VIEW,\n accountScope.ACCOUNT_AUDIT_LOG_VIEW,\n accountScope.ACCOUNT_REMOTE_COMMAND_CONFIGURATION_VIEW,\n accountScope.ACCOUNT_RENTAL_VIEW,\n accountScope.ACCOUNT_SERVICE_MANAGEMENT_NETWORK_VIEW,\n accountScope.ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_ASSIGNMENT_VIEW,\n accountScope.ACCOUNT_SERVICE_MANAGEMENT_SERVICE_PLAN_VIEW,\n accountScope.ACCOUNT_VIEW,\n assetScope.ASSET_VIEW,\n siteScope.SITE_VIEW,\n];\n"]}
|