@trackunit/iris-app-api 1.15.2-alpha-c2a1dc6c53b.0 → 1.15.2
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 +4 -0
- package/package.json +1 -1
- package/src/index.js.map +0 -1
- package/src/types/cspDirectives.js.map +0 -1
- package/src/types/defaultValidHosts.js.map +0 -1
- package/src/types/extensions/adminExtensionManifest.js.map +0 -1
- package/src/types/extensions/assetEventsActionsExtensionManifest.js.map +0 -1
- package/src/types/extensions/assetHomeExtensionManifest.js.map +0 -1
- package/src/types/extensions/customerHomeExtensionManifest.js.map +0 -1
- package/src/types/extensions/fleetExtensionManifest.js.map +0 -1
- package/src/types/extensions/irisAppSettingsExtensionManifest.js.map +0 -1
- package/src/types/extensions/lifecycleExtensionManifest.js.map +0 -1
- package/src/types/extensions/reportExtensionManifest.js.map +0 -1
- package/src/types/extensions/serversideApiExtensionManifest.js.map +0 -1
- package/src/types/extensions/siteHomeExtensionManifest.js.map +0 -1
- package/src/types/extensions/widgetExtensionManifest.js.map +0 -1
- package/src/types/iconImage.js.map +0 -1
- package/src/types/icons.generated.js.map +0 -1
- package/src/types/irisAppCspInput.js.map +0 -1
- package/src/types/irisAppCustomFields.js.map +0 -1
- package/src/types/irisAppExtensionManifest.js.map +0 -1
- package/src/types/irisAppInstallationConfig.js.map +0 -1
- package/src/types/irisAppManifest.js.map +0 -1
- package/src/types/irisAppMarketplace.js.map +0 -1
- package/src/types/loadNxRootPackageJson.js.map +0 -1
- package/src/types/modulefederation.js.map +0 -1
- package/src/types/permissionsPolicy.js.map +0 -1
- package/src/types/scopes.js.map +0 -1
- package/src/types/serversideInterfaces.js.map +0 -1
- package/src/types/subscriptionPackages.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 1.15.2 (2026-03-18)
|
|
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.15.1 (2026-03-17)
|
|
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
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/iris-app-api/src/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C;AAC1C,oFAA0D;AAC1D,iGAAuE;AACvE,wFAA8D;AAC9D,2FAAiE;AACjE,oFAA0D;AAC1D,8FAAoE;AACpE,wFAA8D;AAC9D,qFAA2D;AAC3D,4FAAkE;AAClE,uFAA6D;AAC7D,qFAA2D;AAC3D,4DAAkC;AAClC,kEAAwC;AACxC,kEAAwC;AACxC,sEAA4C;AAC5C,2EAAiD;AACjD,4EAAkD;AAClD,kEAAwC;AACxC,qEAA2C;AAC3C,wEAA8C;AAC9C,mEAAyC;AACzC,oEAA0C;AAC1C,yDAA+B;AAC/B,uEAA6C;AAC7C,uEAA6C","sourcesContent":["export * from \"./types/defaultValidHosts\";\nexport * from \"./types/extensions/adminExtensionManifest\";\nexport * from \"./types/extensions/assetEventsActionsExtensionManifest\";\nexport * from \"./types/extensions/assetHomeExtensionManifest\";\nexport * from \"./types/extensions/customerHomeExtensionManifest\";\nexport * from \"./types/extensions/fleetExtensionManifest\";\nexport * from \"./types/extensions/irisAppSettingsExtensionManifest\";\nexport * from \"./types/extensions/lifecycleExtensionManifest\";\nexport * from \"./types/extensions/reportExtensionManifest\";\nexport * from \"./types/extensions/serversideApiExtensionManifest\";\nexport * from \"./types/extensions/siteHomeExtensionManifest\";\nexport * from \"./types/extensions/widgetExtensionManifest\";\nexport * from \"./types/iconImage\";\nexport * from \"./types/icons.generated\";\nexport * from \"./types/irisAppCspInput\";\nexport * from \"./types/irisAppCustomFields\";\nexport * from \"./types/irisAppExtensionManifest\";\nexport * from \"./types/irisAppInstallationConfig\";\nexport * from \"./types/irisAppManifest\";\nexport * from \"./types/irisAppMarketplace\";\nexport * from \"./types/loadNxRootPackageJson\";\nexport * from \"./types/modulefederation\";\nexport * from \"./types/permissionsPolicy\";\nexport * from \"./types/scopes\";\nexport * from \"./types/serversideInterfaces\";\nexport * from \"./types/subscriptionPackages\";\n\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cspDirectives.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/cspDirectives.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,yFAAyF;AACzF,EAAE;;;AAEW,QAAA,uCAAuC,GAAG,yCAAyC,CAAC;AACjG,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AACjC,QAAA,WAAW,GAAG,aAAa,CAAC;AAC5B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAClD,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,8BAA8B,GAAG,gCAAgC,CAAC;AAClE,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AACxC,QAAA,uCAAuC,GAAG,yCAAyC,CAAC;AACpF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,uCAAuC,GAAG,yCAAyC,CAAC;AA0BpF,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,IAAI,GAAG,QAAQ,CAAC;AAChB,QAAA,cAAc,GAAG,kBAAkB,CAAC;AACpC,QAAA,aAAa,GAAG,iBAAiB,CAAC;AAClC,QAAA,WAAW,GAAG,eAAe,CAAC;AAC3C,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAC3B,QAAA,aAAa,GAAG,iBAAiB,CAAC;AAClC,QAAA,gBAAgB,GAAG,oBAAoB,CAAC","sourcesContent":["//\n// Based on types from https://www.npmjs.com/package/csp-header but adjusted to our needs\n//\n\nexport const ALLOW_DOWNLOADS_WITHOUT_USER_ACTIVATION = \"allow-downloads-without-user-activation\";\nconst ALLOW_DUPLICATES = \"'allow-duplicates'\";\nexport const ALLOW_FORMS = \"allow-forms\";\nexport const ALLOW_MODALS = \"allow-modals\";\nexport const ALLOW_ORIENTATION_LOCK = \"allow-orientation-lock\";\nexport const ALLOW_POINTER_LOCK = \"allow-pointer-lock\";\nexport const ALLOW_POPUPS = \"allow-popups\";\nexport const ALLOW_POPUPS_TO_ESCAPE_SANDBOX = \"allow-popups-to-escape-sandbox\";\nexport const ALLOW_PRESENTATION = \"allow-presentation\";\nexport const ALLOW_SAME_ORIGIN = \"allow-same-origin\";\nexport const ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION = \"allow-storage-access-by-user-activation\";\nexport const ALLOW_SCRIPTS = \"allow-scripts\";\nexport const ALLOW_TOP_NAVIGATION = \"allow-top-navigation\";\nexport const ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION = \"allow-top-navigation-by-user-activation\";\n\ntype TSource = string;\ntype TNonce = `nonce-${string}`;\ntype THash = `sha${\"256\" | \"384\" | \"512\"}-${string}`;\ntype TAttrDirective = THash | typeof NONE | typeof UNSAFE_INLINE | typeof UNSAFE_HASHES;\ntype TFetchDirective =\n | TSource\n | TNonce\n | THash\n | typeof NONE\n | typeof SELF\n | typeof UNSAFE_EVAL\n | typeof UNSAFE_HASHES\n | typeof UNSAFE_INLINE;\ntype TNavigationDirective =\n | TSource\n | TNonce\n | THash\n | typeof NONE\n | typeof SELF\n | typeof UNSAFE_EVAL\n | typeof UNSAFE_HASHES\n | typeof UNSAFE_INLINE\n | typeof STRICT_DYNAMIC;\n\nexport const NONE = \"'none'\";\nexport const SELF = \"'self'\";\nexport const STRICT_DYNAMIC = \"'strict-dynamic'\";\nexport const REPORT_SAMPLE = \"'report-sample'\";\nexport const UNSAFE_EVAL = \"'unsafe-eval'\";\nconst UNSAFE_HASHES = \"'unsafe-hashes'\";\nexport const UNSAFE_INLINE = \"'unsafe-inline'\";\nexport const WASM_UNSAFE_EVAL = \"'wasm-unsafe-eval'\";\n\nexport type CSPDirectives = {\n \"child-src\": Array<TFetchDirective>;\n \"connect-src\": Array<TFetchDirective>;\n \"font-src\": Array<TFetchDirective>;\n \"form-action\": Array<TNavigationDirective>;\n \"frame-src\": Array<TFetchDirective>;\n \"img-src\": Array<TFetchDirective | typeof STRICT_DYNAMIC>;\n \"media-src\": Array<TFetchDirective>;\n sandbox: Array<\n | typeof ALLOW_DOWNLOADS_WITHOUT_USER_ACTIVATION\n | typeof ALLOW_FORMS\n | typeof ALLOW_MODALS\n | typeof ALLOW_ORIENTATION_LOCK\n | typeof ALLOW_POINTER_LOCK\n | typeof ALLOW_POPUPS\n | typeof ALLOW_POPUPS_TO_ESCAPE_SANDBOX\n | typeof ALLOW_PRESENTATION\n | typeof ALLOW_SAME_ORIGIN\n | typeof ALLOW_SCRIPTS\n | typeof ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION\n | typeof ALLOW_TOP_NAVIGATION\n | typeof ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION\n >;\n \"script-src\": Array<TFetchDirective | typeof STRICT_DYNAMIC | typeof REPORT_SAMPLE | typeof WASM_UNSAFE_EVAL>;\n \"script-src-attr\": Array<TAttrDirective | typeof REPORT_SAMPLE>;\n \"script-src-elem\": Array<TFetchDirective | typeof STRICT_DYNAMIC | typeof REPORT_SAMPLE>;\n \"style-src\": Array<TFetchDirective> | typeof REPORT_SAMPLE;\n \"style-src-attr\": Array<TAttrDirective | typeof REPORT_SAMPLE>;\n \"style-src-elem\": Array<TFetchDirective | typeof REPORT_SAMPLE>;\n \"upgrade-insecure-requests\": boolean;\n \"worker-src\": Array<TFetchDirective>;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultValidHosts.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/defaultValidHosts.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAE9C;;;;;;GAMG;AACI,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,2EAA2E;IAC3E,OAAO;QACL,mCAAmC;QACnC,qCAAqC;QACrC,mCAAmC;QACnC,wBAAwB;QACxB,wBAAwB;QACxB,wBAAwB;QACxB,8BAA8B;QAC9B,OAAO;QACP,gCAAgC;QAChC,OAAO;QACP,QAAQ;QACR,mCAAmC;QACnC,iCAAiC,EAAE,mCAAmC;QACtE,QAAQ;QACR,gCAAgC;QAChC,QAAQ;QACR,uBAAuB;QACvB,0BAA0B;QAC1B,qBAAqB;QACrB,WAAW;QACX,yBAAyB;QACzB,WAAW;QACX,yBAAyB;QACzB,yBAAyB;KAC1B,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,iBAAiB,qBA4B5B;AAEF;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,OAAO;QACL,aAAa,EAAE,IAAA,yBAAiB,GAAE;QAClC,YAAY,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,2BAAW,CAAC;QACnD,SAAS,EAAE,IAAA,yBAAiB,GAAE;QAC9B,YAAY,EAAE,IAAA,yBAAiB,GAAE;QACjC,aAAa,EAAE,IAAA,yBAAiB,GAAE;KACnC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B","sourcesContent":["import { UNSAFE_EVAL } from \"./cspDirectives\";\n\n/**\n * Returns default valid hosts for CSP for manager.\n *\n * ! Internal use only !\n *\n * @returns {string[]} - Array of valid hosts for CSP\n */\nexport const defaultValidHosts = () => {\n // TRY TO KEEP IN SYNC WITH CHANGES IN server.js from manager (CSP headers)\n return [\n \"https://dev.manager.trackunit.com\",\n \"https://stage.manager.trackunit.com\",\n \"https://new.manager.trackunit.com\",\n \"http://localhost:5005/\",\n \"http://localhost:5010/\",\n \"http://localhost:5011/\",\n //Allow inline data like icons\n \"data:\",\n //Allow vector based google maps\n \"blob:\",\n //IMAGES\n \"https://images.iris.trackunit.com\",\n \"https://*.awsapi.trackunit.com/\", // loading images from machines api\n //SENTRY\n \"https://browser.sentry-cdn.com\",\n //GOOGLE\n \"https://*.gstatic.com\",\n \"https://*.googleapis.com\",\n \"https://*.ggpht.com\",\n //AMPLITUDE\n \"https://*.amplitude.com\",\n //SPECCHECK\n \"https://*.speccheck.com\",\n \"https://api.hsforms.com\",\n ];\n};\n\n/**\n * Returns default CSP config\n *\n * ! Internal use only !\n */\nexport const defaultCspConfig = () => {\n return {\n \"default-src\": defaultValidHosts(),\n \"script-src\": [...defaultValidHosts(), UNSAFE_EVAL],\n \"img-src\": defaultValidHosts(),\n \"worker-src\": defaultValidHosts(),\n \"connect-src\": defaultValidHosts(),\n };\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/adminExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface AdminExtensionManifest extends AbstractExtensionManifest {\n type: \"ADMIN_EXTENSION\";\n\n /**\n * Conditions for the admin extension to be shown.\n *\n * Its doing OR between the conditions of the same type:\n * - If only 1 scopes is used/filled out then the admin home extension will be shown if user has the required scope.\n * - If more scopes are used/filled out then the admin home extension will be shown for all assets that the user has one of the required scopes for.\n */\n conditions?: {\n scopes?: AccountScope | Array<AccountScope>;\n };\n\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assetEventsActionsExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/assetEventsActionsExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AbstractExtensionManifest,\n RequiredCustomField,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n/**\n * BETA! DONT USE THIS YET - its under development\n */\n\nexport type EVENT_TYPE =\n | \"ALERT\"\n | \"CAN_ERROR\"\n | \"DAMAGE_REPORT\"\n | \"FLUCTUATING_CAN_ERROR\"\n | \"MACHINE_FAULT\"\n | \"SERVICE\";\n\nexport interface AssetEventsActionsExtensionManifest extends AbstractExtensionManifest {\n type: \"ASSET_EVENTS_ACTIONS_EXTENSION\";\n /**\n * Conditions for the asset events actions extension to be shown.\n * Its doing AND between the conditions types and OR between the conditions of the same type:\n * - If only failureModeIdentifier or suspectParameterNumber or eventType or SourceAddress is used/filled out then the event needs to match the filled out property.\n * - If more failureModeIdentifier, suspectParameterNumber, SourceAddress, and eventType is used/filled out then asset events actions extension will be shown for all events that matches all FMI, SPN, and eventType.\n * - If only scopes is used/filled out then the asset events actions 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 events actions 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 events actions extension will be shown for all assets and events.\n */\n conditions?: {\n eventType?: EVENT_TYPE | Array<EVENT_TYPE>;\n sourceAddress?: number | Array<number>;\n failureModeIdentifier?: number | Array<number>;\n suspectParameterNumber?: number | Array<number>;\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"]}
|
|
@@ -1 +0,0 @@
|
|
|
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, brand, and telematicsDeviceType are case insensitive so does not matter how you write them.\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, model, or telematicsDeviceType 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 telematicsDeviceType?: 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"]}
|
|
@@ -1 +0,0 @@
|
|
|
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 | Array<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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fleetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/fleetExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { IconByName, IconByPath } from \"../iconImage\";\nimport { AbstractExtensionManifest, RegExpType, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface FleetExtensionManifest extends AbstractExtensionManifest {\n type: \"FLEET_EXTENSION\";\n\n /**\n * Conditions for the fleet extension to be shown.\n * It 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 fleet extension will be shown if the user has the required scope.\n * - If more scopes are used/filled out then the fleet extension will be shown if the user has one of the required scopes.\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 menuItem: {\n /**\n * The name used in the menu item.\n */\n name: string | Translations | TranslationKey;\n /**\n * The icon used in the menu item.\n *\n * @deprecated please use image instead.\n */\n icon?: string;\n image?: IconByName | IconByPath;\n\n /**\n * Description of the menu item, used in the 'Applications' menu.\n */\n description?: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppSettingsExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/irisAppSettingsExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest } from \"../irisAppExtensionManifest\";\n\nexport interface IrisAppSettingsExtensionManifest extends AbstractExtensionManifest {\n type: \"IRIS_APP_SETTINGS_EXTENSION\";\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycleExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/lifecycleExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest } from \"../irisAppExtensionManifest\";\n\nexport interface LifecycleExtensionManifest extends AbstractExtensionManifest {\n type: \"LIFECYCLE_EXTENSION\";\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reportExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/reportExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { IconName } from \"../icons.generated\";\nimport { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\nexport interface ReportExtensionManifest extends AbstractExtensionManifest {\n type: \"REPORT_EXTENSION\";\n\n conditions?: {\n scopes?: AccountScope | Array<AccountScope>;\n };\n\n menuItem: {\n /**\n * Title of the card in manager\n */\n name: string | Translations | TranslationKey;\n\n /**\n * Subtitle of the card in manager\n */\n description: string | Translations | TranslationKey;\n\n /**\n * Icon of the card in manager, must use icons from:\n * https://design.iris.trackunit.com/?path=/docs/components-icon--default\n */\n icon: IconName;\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serversideApiExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/serversideApiExtensionManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { AbstractExtensionManifest } from \"../irisAppExtensionManifest\";\n\nexport interface ServersideApiExtensionManifest extends AbstractExtensionManifest {\n type: \"SERVERSIDE_API_EXTENSION\";\n runtime: \"DENO\";\n id: string;\n name: string;\n description?: string;\n main: `${string}.ts` | `${string}.js`;\n dependencyDefinitionFile: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteHomeExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/siteHomeExtensionManifest.ts"],"names":[],"mappings":";;AAQA,6DAA6D;AAC7D,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC","sourcesContent":["import {\n AbstractExtensionManifest,\n RequiredCustomField,\n TranslationKey,\n Translations,\n} from \"../irisAppExtensionManifest\";\nimport { AccountScope } from \"../scopes\";\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst siteType = {\n AREA: \"AREA\",\n CLASSIC_POI: \"CLASSIC_POI\",\n CLASSIC_ZONE: \"CLASSIC_ZONE\",\n CONSTRUCTION_SITE: \"CONSTRUCTION_SITE\",\n DEPOT: \"DEPOT\",\n NOT_ON_SITE: \"NOT_ON_SITE\",\n WORK_PLACE: \"WORK_PLACE\",\n} as const;\ntype SiteType = (typeof siteType)[keyof typeof siteType];\n\nexport interface SiteHomeExtensionManifest extends AbstractExtensionManifest {\n type: \"SITE_HOME_EXTENSION\";\n\n /**\n * Conditions for the site 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 site home extension will be shown for all sites that the user has the required permission for.\n * - If more scopes are used/filled out then the site home extension will be shown for all sites that the user has one of the required permission for.\n * - If only requiredCustomField is used/filled out then the site home extension will be shown for all sites that has the required custom field.\n * - If more requiredCustomField are used/filled out then the site home extension will be shown for all sites that has all of the required custom field.\n * - If no conditions are used/filled out then the site home extension will be shown for all sites.\n */\n conditions?: {\n siteType?: Array<SiteType> | SiteType;\n scopes?: AccountScope | Array<AccountScope>;\n\n /**\n * Only entityType SITE custom fields are supported here\n */\n requiredCustomField?: RequiredCustomField | Array<RequiredCustomField>;\n };\n\n menuItem: {\n name: string | Translations | TranslationKey;\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widgetExtensionManifest.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/iris-app-api/src/types/extensions/widgetExtensionManifest.ts"],"names":[],"mappings":";;;AAGA;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,CAAC,MAA0C,EAA4B,EAAE;IACvG,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC;AACrF,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AAEF;;;;;GAKG;AACI,MAAM,mBAAmB,GAAG,CAAC,MAA0C,EAA+B,EAAE;IAC7G,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IAAI,MAAM,KAAK,KAAK,CAAC;AAClE,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAQW,QAAA,WAAW,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAU,CAAC;AAIhE,QAAA,kBAAkB,GAAG;IAChC,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,UAAU;IACV,sBAAsB;IACtB,UAAU;IACV,UAAU;IACV,UAAU;IACV,iBAAiB;IACjB,MAAM;IACN,SAAS;IACT,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,cAAc;IACd,uBAAuB;IACvB,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,kBAAkB;CACV,CAAC;AAEE,QAAA,8BAA8B,GAAG;IAC5C,GAAG,0BAAkB;IACrB,aAAa;IACb,gBAAgB;IAChB,2BAA2B;IAC3B,6BAA6B;IAC7B,6CAA6C;CAC9C,CAAC;AACW,QAAA,oBAAoB,GAAG,cAAuB,CAAC;AAK/C,QAAA,kCAAkC,GAAG,CAAC,GAAG,sCAA8B,EAAE,4BAAoB,CAAU,CAAC;AAGxG,QAAA,iBAAiB,GAAG,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAU,CAAC;AAElE,QAAA,iCAAiC,GAAG,CAAC,GAAG,yBAAiB,EAAE,4BAAoB,CAAU,CAAC;AAG1F,QAAA,qBAAqB,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,CAAU,CAAC;AAE1F,QAAA,qCAAqC,GAAG,CAAC,GAAG,6BAAqB,EAAE,4BAAoB,CAAU,CAAC;AAGlG,QAAA,sBAAsB,GAAG,CAAC,KAAK,CAAU,CAAC","sourcesContent":["import { IconByName, IconByPath, ImageByPath } from \"../iconImage\";\nimport { AbstractExtensionManifest, TranslationKey, Translations } from \"../irisAppExtensionManifest\";\n\n/**\n * Check if the object is a footer with a link\n *\n * @param object - The object to check\n * @returns {boolean} if the object is a footer with a link, false otherwise\n */\nexport const isFooterWithLink = (object: FooterWithLink | FooterWithoutLink): object is FooterWithLink => {\n return typeof object === \"object\" && \"link\" in object && object.link !== undefined;\n};\n\n/**\n * Check if the object is a footer without a link\n *\n * @param object - The object to check\n * @returns {boolean} if the object is a footer without a link, false otherwise\n */\nexport const isFooterWithoutLink = (object: FooterWithLink | FooterWithoutLink): object is FooterWithoutLink => {\n return typeof object === \"object\" && \"link\" in object === false;\n};\n\nexport type WidgetSupportedLocations = \"MY_HOME\" | \"SITE_HOME\" | \"PLAYGROUND\";\n\nexport type WidgetSupportedFilterBars = \"CUSTOMERS\" | \"ASSETS\" | \"SITES\";\n\nexport type WidgetSupportedFilters = WidgetSupportedFilterBars | \"TIME_RANGE\";\n\nexport const widgetTypes = [\"KPI\", \"CHART\", \"LIST\", \"MAP\", \"OTHER\"] as const;\n\nexport type WidgetType = (typeof widgetTypes)[number];\n\nexport const allAssetFilterKeys = [\n \"search\",\n \"siteIds\",\n \"groups\",\n \"types\",\n \"assetType\",\n \"brands\",\n \"models\",\n \"criticality\",\n \"activity\",\n \"metadataCompleteness\",\n \"lastSeen\",\n \"followed\",\n \"siteType\",\n \"ownerAccountIds\",\n \"area\",\n \"partner\",\n \"productionYears\",\n \"serviceStatus\",\n \"telematicsConnected\",\n \"activeFilter\",\n \"siteDepotOwnershipIds\",\n \"fleetHealthStates\",\n \"fleetHealthStatus\",\n \"fleetHealthCategories\",\n \"fleetHealthTypes\",\n] as const;\n\nexport const allAssetFilterKeysWithCustomer = [\n ...allAssetFilterKeys,\n \"customerIds\",\n \"rentalStatuses\",\n \"rentalContractOrderNumber\",\n \"rentalContractReferenceCode\",\n \"rentalContractReferenceCodeDescriptionQuery\",\n];\nexport const customFieldFilterKey = \"customFields\" as const;\nexport type AssetFilterKeys = typeof allAssetFilterKeys;\n\nexport type AssetFilterKeysWithCustomer = typeof allAssetFilterKeysWithCustomer;\n\nexport const allAssetFilterKeysWithCustomFields = [...allAssetFilterKeysWithCustomer, customFieldFilterKey] as const;\nexport type AssetFilterKeysWithCustomFields = typeof allAssetFilterKeysWithCustomFields;\n\nexport const allSiteFilterKeys = [\"search\", \"siteStatus\", \"siteType\"] as const;\nexport type SiteFilterKeys = typeof allSiteFilterKeys;\nexport const allSiteFilterKeysWithCustomFields = [...allSiteFilterKeys, customFieldFilterKey] as const;\nexport type SiteFilterKeysWithCustomFields = typeof allSiteFilterKeysWithCustomFields;\n\nexport const allCustomerFilterKeys = [\"search\", \"customerType\", \"criticality\", \"servicePlan\"] as const;\nexport type CustomerFilterKeys = typeof allCustomerFilterKeys;\nexport const allCustomerFilterKeysWithCustomFields = [...allCustomerFilterKeys, customFieldFilterKey] as const;\nexport type CustomerFilterKeysWithCustomFields = typeof allCustomerFilterKeysWithCustomFields;\n\nexport const allTimeRangeFilterKeys = [\"ALL\"] as const;\nexport type TimeRangeFilterKeys = typeof allTimeRangeFilterKeys;\n\ntype FilterConfig<TFilterKeys extends ReadonlyArray<string>> = {\n include: Array<TFilterKeys[number]>;\n};\n\nexport type SupportedFiltersConfig = {\n ASSETS?: FilterConfig<AssetFilterKeysWithCustomFields>;\n SITES?: FilterConfig<SiteFilterKeysWithCustomFields>;\n CUSTOMERS?: FilterConfig<CustomerFilterKeysWithCustomFields>;\n TIME_RANGE?: FilterConfig<TimeRangeFilterKeys>;\n};\n\nexport type FilterBarToLinkConfig = {\n /**\n * The name of the search property to append the filter bar to the link.\n * Example: \"assetType\"\n * Will append to the link as \"?assetType=<encoded value>\"\n */\n searchPropertyName?: string;\n\n /**\n * The filter bar to append to the search property.\n * Example:\n * {\n * ASSETS: { include: [\"assetType\"] },\n * }\n * Then use filterBar: \"ASSETS\"\n *\n * Will append to the link as \"?<searchPropertyName>=<encoded value>\"\n *\n * Encoded using useCustomEncoding from @trackunit/react-core-hooks it has a decode hook as well. Its optimized to create a small url string.\n * Will encode to something like \"H4sIAJblCWkAA6tWSipKzEspVrKKVgpJzE4tTc7IVNJRck_Ny0wF0o6lxYlKsbUAbPtHWiYAAAA\"\n */\n filterBar: keyof SupportedFiltersConfig;\n};\n\nexport type FooterWithLink = {\n /**\n * The link to display in the footer. The link is fixed and will always point to the same route.\n */\n link: string;\n\n /**\n * The link description to display in the footer, if not it will default to localized version of 'See full details'. Only relevant if link is provided.\n */\n linkDescription?: string | Translations | TranslationKey;\n\n /**\n * The filter bar to append to the link.\n */\n appendFilterBar?: FilterBarToLinkConfig | Array<FilterBarToLinkConfig>;\n\n /**\n * A logo can be displayed in the footer to show that the widget is powered by an entity. You can use an SVG logo, and provide background and foreground colors.\n * You can also use a SVG, PNG, JPEG or JPG logo directly max size 150x16px.\n */\n poweredByImage?: ImageByPath;\n};\n\nexport type FooterWithoutLink = {\n link?: never;\n linkDescription?: never;\n\n /**\n * A logo can be displayed in the footer to show that the widget is powered by an entity. You can use an SVG logo, and provide background and foreground colors.\n * You can also use a SVG, PNG, JPEG or JPG logo directly max size 150x16px.\n */\n poweredByImage?: ImageByPath;\n};\n\n/**\n * BETA! DO NOT USE THIS YET - its under development\n */\nexport interface WidgetExtensionManifest extends AbstractExtensionManifest {\n type: \"WIDGET_EXTENSION\";\n\n preview?: {\n /**\n * The description of the widget will be displayed in the drawer for adding widgets.\n */\n description?: string | Translations | TranslationKey;\n };\n\n /**\n * The widget type is used for filtering the widgets in the drawer.\n */\n widgetType: WidgetType;\n\n /**\n * Each widget must have one fixed size.\n * Standard widgets are 2x2.\n * Smaller widgets can be either 1x1 or 2x1.\n * It is not recommended to create widgets that are larger than 2x2 by default.\n * If a widget needs to support multiple sizes, create a separate widget for each size.\n * Use `allowFullWidth: true` to let users expand the widget across the full width of the screen.\n * This is generally recommended only for charts and maps where a larger display improves usability.\n */\n size: {\n default: {\n width: 1 | 2 | 3 | 4 | 5 | 6;\n height: 1 | 2 | 3 | 4 | 5 | 6;\n };\n allowFullWidth?: boolean;\n };\n\n header: {\n /**\n * The name of the widget to display in the header. Do not place date ranges or fixed filters in the name. It is used for finding the widget in the drawer.\n * Widgets sized 1x1 do not show the name in the header, but it is still visible in the drawer.\n */\n name: string | Translations | TranslationKey;\n\n /**\n * The image of the widget to display in the header, if not it will default to the icon of the manifest.\n * Most standard widgets use icons, but you can use an SVG logo instead.\n */\n image?: IconByName | IconByPath;\n\n /**\n * If true, a button will be on the header and an editDialog from the src folder of this extension will be loaded to allow users to configure the widget.\n */\n hasEditDialog?: boolean;\n };\n\n footer?: FooterWithLink | FooterWithoutLink;\n\n /**\n * The locations where the widget can be placed. Choose between My Home, Site Home and Playground.\n */\n supportedLocations: Array<WidgetSupportedLocations>;\n\n /**\n * The filters that the widget can be filtered by. To support a date range filter, add \"TIME_RANGE\" to the list. The date range will be displayed separately in the menu.\n * If you would like to lock the filters to a specific value, you can do so by adding the filter to the list and setting the value to the filter.\n */\n supportedFilters?: SupportedFiltersConfig;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iconImage.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/iconImage.ts"],"names":[],"mappings":";;;AASA;;GAEG;AACH,8DAA8D;AACvD,MAAM,UAAU,GAAG,CAAC,KAAU,EAAqB,EAAE;IAC1D,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACxE,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF;;GAEG;AACH,8DAA8D;AACvD,MAAM,UAAU,GAAG,CAAC,KAAU,EAAqB,EAAE;IAC1D,OAAO,mCAAmC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAmDF;;;;;GAKG;AACI,MAAM,YAAY,GAAG,CAAC,KAAc,EAAuB,EAAE;IAClE,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,MAAM,IAAI,KAAK;QACf,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;QAC9B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAC5B,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,YAAY,gBAQvB;AAEF;;;;;GAKG;AACI,MAAM,aAAa,GA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ACI,MAAM,YAAY,GAAG,CAAC,KAAc,EAAuB,EAAE;IAClE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,IAAI,KAAK,CAAC;AACxE,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB","sourcesContent":["import { IconName } from \"./icons.generated\";\n\ntype HexColor = `#${string}`;\ntype RgbColor = `rgb(${number},${number},${number})`;\n\nexport type SvgImagePath = `${string}.svg`;\nexport type PngImagePath = `${string}.png`;\nexport type JpegImagePath = `${string}.jpeg` | `${string}.jpg`;\n\n/**\n * Checks if the value is a valid hex color\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const isHexColor = (color: any): color is HexColor => {\n return /^#[0-9A-F]{6}$/i.test(color) || /^#[0-9A-F]{3}$/i.test(color);\n};\n\n/**\n * Checks if the value is a valid rgb color\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const isRgbColor = (color: any): color is RgbColor => {\n return /^rgb\\(\\d{1,3},\\d{1,3},\\d{1,3}\\)$/i.test(color);\n};\n\nexport type Color = HexColor | RgbColor;\n\nexport type Colorable = {\n /**\n * Color of the background for the icon\n * Supports hex or rgb\n *\n * @example \"#ff0000\" or \"rgb(255,0,0)\"\n */\n background?: Color;\n\n /**\n * Color of the foreground for the icon\n * Supports hex or rgb\n *\n * @example \"#ff0000\" or \"rgb(255,0,0)\"\n */\n foreground?: Color;\n};\n\nexport type IconByPath = {\n /**\n * Path relative to the projects src folder defined in the extensions sourceRoot\n * ONLY supports svg files since we replace the color in the svg file at runtime.\n *\n * @example \"assets/icon.svg\"\n */\n path: SvgImagePath;\n} & Colorable;\n\nexport type ImageByPath = {\n /**\n * Path relative to the projects src folder defined in the extensions sourceRoot\n * Supports png, jpeg, jpg and svg files.\n *\n * @example \"assets/icon1.png\" or \"assets/icon2.jpeg\" or \"assets/icon3.jpg\" or \"assets/icon4.svg\"\n */\n path: PngImagePath | JpegImagePath | SvgImagePath;\n};\n\nexport type IconByName = {\n /**\n * Name of the icon from the Iris Icons package\n *\n * @example \"MapMarkerPointSquare\"\n */\n name: IconName;\n} & Colorable;\n\n/**\n * Checks if value is an IconImage\n *\n * @param value - The value to check\n * @returns {boolean} True if value is an IconImage\n */\nexport const isIconByPath = (value: unknown): value is IconByPath => {\n return (\n typeof value === \"object\" &&\n value !== null &&\n \"path\" in value &&\n typeof value.path === \"string\" &&\n value.path.endsWith(\".svg\")\n );\n};\n\n/**\n * Checks if value is a ImageByPath\n *\n * @param value - The value to check\n * @returns {boolean} True if value is a ImageByPath\n */\nexport const isImageByPath = (value: unknown): value is ImageByPath => {\n return (\n typeof value === \"object\" &&\n value !== null &&\n \"path\" in value &&\n typeof value.path === \"string\" &&\n (isPngPath(value.path) || isJpgOrJpegPath(value.path) || isSvgPath(value.path))\n );\n};\n\n/**\n * Checks if the path is a svg path\n *\n * @param path - The path to check\n * @returns {boolean} True if the path is a svg path\n */\nexport const isSvgPath = (path: string | undefined | null): path is SvgImagePath => {\n if (path === undefined || path === null) {\n return false;\n }\n return path.endsWith(\".svg\");\n};\n\n/**\n * Checks if the path is a png path\n *\n * @param path - The path to check\n * @returns {boolean} True if the path is a png path\n */\nexport const isPngPath = (path: string | undefined | null): path is PngImagePath => {\n if (path === undefined || path === null) {\n return false;\n }\n return path.endsWith(\".png\");\n};\n\n/**\n * Checks if the path is a jpeg or jpg path\n *\n * @param path - The path to check\n * @returns {boolean} True if the path is a jpeg or jpg path\n */\nexport const isJpgOrJpegPath = (path: string | undefined | null): path is JpegImagePath => {\n if (path === undefined || path === null) {\n return false;\n }\n return path.endsWith(\".jpeg\") || path.endsWith(\".jpg\");\n};\n\n/**\n * Checks if value is an IconByName\n *\n * @param value - The value to check\n * @returns {boolean}- True if value is an IconByName\n */\nexport const isIconByName = (value: unknown): value is IconByName => {\n return typeof value === \"object\" && value !== null && \"name\" in value;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.generated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A4B;IACxD,wBAAwB,EAAE,0BAA0B;IACpD,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,sBAAsB,EAAE,wBAAwB;IAChD,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,SAAS,EAAE,WAAW;IACtB,yBAAyB,EAAE,2BAA2B;IACtD,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;IAClC,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,sBAAsB,EAAE,wBAAwB;IAChD,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,qBAAqB;IAC1C,qBAAqB,EAAE,uBAAuB;IAC9C,WAAW,EAAE,aAAa;CAClB,CAAC","sourcesContent":["export const iconNames = {\n Zone: \"Zone\",\n WackerNeusonZeroEmission: \"WackerNeusonZeroEmission\",\n Unpin: \"Unpin\",\n Transmission: \"Transmission\",\n Timeline: \"Timeline\",\n Timeline1: \"Timeline1\",\n Slash: \"Slash\",\n SidebarOpen: \"SidebarOpen\",\n SidebarClose: \"SidebarClose\",\n RawDevice: \"RawDevice\",\n Points: \"Points\",\n Plug: \"Plug\",\n Pin: \"Pin\",\n MapSearch: \"MapSearch\",\n MapMarkerPointSquare: \"MapMarkerPointSquare\",\n MapMarkerPointRound: \"MapMarkerPointRound\",\n MapMarkerLabelSquare: \"MapMarkerLabelSquare\",\n MapMarkerLabelRound: \"MapMarkerLabelRound\",\n Leaf: \"Leaf\",\n IrisX: \"IrisX\",\n Hierarchy: \"Hierarchy\",\n Heatmap: \"Heatmap\",\n Gps: \"Gps\",\n GpsArrow: \"GpsArrow\",\n Fuel: \"Fuel\",\n FitToWidth: \"FitToWidth\",\n FitToHeight: \"FitToHeight\",\n Filter: \"Filter\",\n Excavator: \"Excavator\",\n Engine: \"Engine\",\n EllipsisDrag: \"EllipsisDrag\",\n Directions: \"Directions\",\n DemolitionHammer: \"DemolitionHammer\",\n ConstructionCone: \"ConstructionCone\",\n ConcreteMixer: \"ConcreteMixer\",\n Co2: \"Co2\",\n CloudX: \"CloudX\",\n Bucket: \"Bucket\",\n Brakes: \"Brakes\",\n Bluetooth: \"Bluetooth\",\n BatteryBig: \"BatteryBig\",\n Asset: \"Asset\",\n Spot: \"Spot\",\n XMark: \"XMark\",\n XCircle: \"XCircle\",\n Wrench: \"Wrench\",\n WrenchScrewdriver: \"WrenchScrewdriver\",\n Window: \"Window\",\n Wifi: \"Wifi\",\n Wallet: \"Wallet\",\n ViewfinderCircle: \"ViewfinderCircle\",\n ViewColumns: \"ViewColumns\",\n VideoCamera: \"VideoCamera\",\n VideoCameraSlash: \"VideoCameraSlash\",\n Variable: \"Variable\",\n Users: \"Users\",\n User: \"User\",\n UserPlus: \"UserPlus\",\n UserMinus: \"UserMinus\",\n UserGroup: \"UserGroup\",\n UserCircle: \"UserCircle\",\n Underline: \"Underline\",\n Tv: \"Tv\",\n Truck: \"Truck\",\n Trophy: \"Trophy\",\n Trash: \"Trash\",\n Ticket: \"Ticket\",\n Tag: \"Tag\",\n TableCells: \"TableCells\",\n Swatch: \"Swatch\",\n Sun: \"Sun\",\n Strikethrough: \"Strikethrough\",\n Stop: \"Stop\",\n StopCircle: \"StopCircle\",\n Star: \"Star\",\n SquaresPlus: \"SquaresPlus\",\n Squares2X2: \"Squares2X2\",\n Square3Stack3D: \"Square3Stack3D\",\n Square2Stack: \"Square2Stack\",\n SpeakerXMark: \"SpeakerXMark\",\n SpeakerWave: \"SpeakerWave\",\n Sparkles: \"Sparkles\",\n Signal: \"Signal\",\n SignalSlash: \"SignalSlash\",\n ShoppingCart: \"ShoppingCart\",\n ShoppingBag: \"ShoppingBag\",\n ShieldExclamation: \"ShieldExclamation\",\n ShieldCheck: \"ShieldCheck\",\n Share: \"Share\",\n Server: \"Server\",\n ServerStack: \"ServerStack\",\n Scissors: \"Scissors\",\n Scale: \"Scale\",\n Rss: \"Rss\",\n RocketLaunch: \"RocketLaunch\",\n RectangleStack: \"RectangleStack\",\n RectangleGroup: \"RectangleGroup\",\n ReceiptRefund: \"ReceiptRefund\",\n ReceiptPercent: \"ReceiptPercent\",\n Radio: \"Radio\",\n QueueList: \"QueueList\",\n QuestionMarkCircle: \"QuestionMarkCircle\",\n QrCode: \"QrCode\",\n PuzzlePiece: \"PuzzlePiece\",\n Printer: \"Printer\",\n PresentationChartLine: \"PresentationChartLine\",\n PresentationChartBar: \"PresentationChartBar\",\n Power: \"Power\",\n Plus: \"Plus\",\n PlusCircle: \"PlusCircle\",\n Play: \"Play\",\n PlayPause: \"PlayPause\",\n PlayCircle: \"PlayCircle\",\n Photo: \"Photo\",\n Phone: \"Phone\",\n PhoneXMark: \"PhoneXMark\",\n PhoneArrowUpRight: \"PhoneArrowUpRight\",\n PhoneArrowDownLeft: \"PhoneArrowDownLeft\",\n PercentBadge: \"PercentBadge\",\n Pencil: \"Pencil\",\n PencilSquare: \"PencilSquare\",\n Pause: \"Pause\",\n PauseCircle: \"PauseCircle\",\n PaperClip: \"PaperClip\",\n PaperAirplane: \"PaperAirplane\",\n PaintBrush: \"PaintBrush\",\n NumberedList: \"NumberedList\",\n NoSymbol: \"NoSymbol\",\n Newspaper: \"Newspaper\",\n MusicalNote: \"MusicalNote\",\n Moon: \"Moon\",\n Minus: \"Minus\",\n MinusCircle: \"MinusCircle\",\n Microphone: \"Microphone\",\n Megaphone: \"Megaphone\",\n Map: \"Map\",\n MapPin: \"MapPin\",\n MagnifyingGlass: \"MagnifyingGlass\",\n MagnifyingGlassPlus: \"MagnifyingGlassPlus\",\n MagnifyingGlassMinus: \"MagnifyingGlassMinus\",\n MagnifyingGlassCircle: \"MagnifyingGlassCircle\",\n LockOpen: \"LockOpen\",\n LockClosed: \"LockClosed\",\n ListBullet: \"ListBullet\",\n Link: \"Link\",\n LinkSlash: \"LinkSlash\",\n LightBulb: \"LightBulb\",\n Lifebuoy: \"Lifebuoy\",\n Language: \"Language\",\n Key: \"Key\",\n Italic: \"Italic\",\n InformationCircle: \"InformationCircle\",\n Inbox: \"Inbox\",\n InboxStack: \"InboxStack\",\n InboxArrowDown: \"InboxArrowDown\",\n Identification: \"Identification\",\n Home: \"Home\",\n HomeModern: \"HomeModern\",\n Heart: \"Heart\",\n Hashtag: \"Hashtag\",\n HandThumbUp: \"HandThumbUp\",\n HandThumbDown: \"HandThumbDown\",\n HandRaised: \"HandRaised\",\n H3: \"H3\",\n H2: \"H2\",\n H1: \"H1\",\n GlobeEuropeAfrica: \"GlobeEuropeAfrica\",\n GlobeAsiaAustralia: \"GlobeAsiaAustralia\",\n GlobeAmericas: \"GlobeAmericas\",\n GlobeAlt: \"GlobeAlt\",\n Gift: \"Gift\",\n GiftTop: \"GiftTop\",\n Gif: \"Gif\",\n Funnel: \"Funnel\",\n Forward: \"Forward\",\n Folder: \"Folder\",\n FolderPlus: \"FolderPlus\",\n FolderOpen: \"FolderOpen\",\n FolderMinus: \"FolderMinus\",\n FolderArrowDown: \"FolderArrowDown\",\n Flag: \"Flag\",\n Fire: \"Fire\",\n FingerPrint: \"FingerPrint\",\n Film: \"Film\",\n FaceSmile: \"FaceSmile\",\n FaceFrown: \"FaceFrown\",\n Eye: \"Eye\",\n EyeSlash: \"EyeSlash\",\n EyeDropper: \"EyeDropper\",\n ExclamationTriangle: \"ExclamationTriangle\",\n ExclamationCircle: \"ExclamationCircle\",\n Equals: \"Equals\",\n Envelope: \"Envelope\",\n EnvelopeOpen: \"EnvelopeOpen\",\n EllipsisVertical: \"EllipsisVertical\",\n EllipsisHorizontal: \"EllipsisHorizontal\",\n EllipsisHorizontalCircle: \"EllipsisHorizontalCircle\",\n Document: \"Document\",\n DocumentText: \"DocumentText\",\n DocumentPlus: \"DocumentPlus\",\n DocumentMinus: \"DocumentMinus\",\n DocumentMagnifyingGlass: \"DocumentMagnifyingGlass\",\n DocumentDuplicate: \"DocumentDuplicate\",\n DocumentCurrencyYen: \"DocumentCurrencyYen\",\n DocumentCurrencyRupee: \"DocumentCurrencyRupee\",\n DocumentCurrencyPound: \"DocumentCurrencyPound\",\n DocumentCurrencyEuro: \"DocumentCurrencyEuro\",\n DocumentCurrencyDollar: \"DocumentCurrencyDollar\",\n DocumentCurrencyBangladeshi: \"DocumentCurrencyBangladeshi\",\n DocumentCheck: \"DocumentCheck\",\n DocumentChartBar: \"DocumentChartBar\",\n DocumentArrowUp: \"DocumentArrowUp\",\n DocumentArrowDown: \"DocumentArrowDown\",\n Divide: \"Divide\",\n DeviceTablet: \"DeviceTablet\",\n DevicePhoneMobile: \"DevicePhoneMobile\",\n CursorArrowRipple: \"CursorArrowRipple\",\n CursorArrowRays: \"CursorArrowRays\",\n CurrencyYen: \"CurrencyYen\",\n CurrencyRupee: \"CurrencyRupee\",\n CurrencyPound: \"CurrencyPound\",\n CurrencyEuro: \"CurrencyEuro\",\n CurrencyDollar: \"CurrencyDollar\",\n CurrencyBangladeshi: \"CurrencyBangladeshi\",\n Cube: \"Cube\",\n CubeTransparent: \"CubeTransparent\",\n CreditCard: \"CreditCard\",\n CpuChip: \"CpuChip\",\n ComputerDesktop: \"ComputerDesktop\",\n CommandLine: \"CommandLine\",\n Cog: \"Cog\",\n Cog8Tooth: \"Cog8Tooth\",\n Cog6Tooth: \"Cog6Tooth\",\n CodeBracket: \"CodeBracket\",\n CodeBracketSquare: \"CodeBracketSquare\",\n Cloud: \"Cloud\",\n CloudArrowUp: \"CloudArrowUp\",\n CloudArrowDown: \"CloudArrowDown\",\n Clock: \"Clock\",\n Clipboard: \"Clipboard\",\n ClipboardDocument: \"ClipboardDocument\",\n ClipboardDocumentList: \"ClipboardDocumentList\",\n ClipboardDocumentCheck: \"ClipboardDocumentCheck\",\n CircleStack: \"CircleStack\",\n ChevronUp: \"ChevronUp\",\n ChevronUpDown: \"ChevronUpDown\",\n ChevronRight: \"ChevronRight\",\n ChevronLeft: \"ChevronLeft\",\n ChevronDown: \"ChevronDown\",\n ChevronDoubleUp: \"ChevronDoubleUp\",\n ChevronDoubleRight: \"ChevronDoubleRight\",\n ChevronDoubleLeft: \"ChevronDoubleLeft\",\n ChevronDoubleDown: \"ChevronDoubleDown\",\n Check: \"Check\",\n CheckCircle: \"CheckCircle\",\n CheckBadge: \"CheckBadge\",\n ChatBubbleOvalLeft: \"ChatBubbleOvalLeft\",\n ChatBubbleOvalLeftEllipsis: \"ChatBubbleOvalLeftEllipsis\",\n ChatBubbleLeft: \"ChatBubbleLeft\",\n ChatBubbleLeftRight: \"ChatBubbleLeftRight\",\n ChatBubbleLeftEllipsis: \"ChatBubbleLeftEllipsis\",\n ChatBubbleBottomCenter: \"ChatBubbleBottomCenter\",\n ChatBubbleBottomCenterText: \"ChatBubbleBottomCenterText\",\n ChartPie: \"ChartPie\",\n ChartBar: \"ChartBar\",\n ChartBarSquare: \"ChartBarSquare\",\n Camera: \"Camera\",\n Calendar: \"Calendar\",\n CalendarDays: \"CalendarDays\",\n CalendarDateRange: \"CalendarDateRange\",\n Calculator: \"Calculator\",\n Cake: \"Cake\",\n BuildingStorefront: \"BuildingStorefront\",\n BuildingOffice: \"BuildingOffice\",\n BuildingOffice2: \"BuildingOffice2\",\n BuildingLibrary: \"BuildingLibrary\",\n BugAnt: \"BugAnt\",\n Briefcase: \"Briefcase\",\n Bookmark: \"Bookmark\",\n BookmarkSquare: \"BookmarkSquare\",\n BookmarkSlash: \"BookmarkSlash\",\n BookOpen: \"BookOpen\",\n Bolt: \"Bolt\",\n BoltSlash: \"BoltSlash\",\n Bold: \"Bold\",\n Bell: \"Bell\",\n BellSnooze: \"BellSnooze\",\n BellSlash: \"BellSlash\",\n BellAlert: \"BellAlert\",\n Beaker: \"Beaker\",\n Battery50: \"Battery50\",\n Battery100: \"Battery100\",\n Battery0: \"Battery0\",\n BarsArrowUp: \"BarsArrowUp\",\n BarsArrowDown: \"BarsArrowDown\",\n Bars4: \"Bars4\",\n Bars3: \"Bars3\",\n Bars3CenterLeft: \"Bars3CenterLeft\",\n Bars3BottomRight: \"Bars3BottomRight\",\n Bars3BottomLeft: \"Bars3BottomLeft\",\n Bars2: \"Bars2\",\n Banknotes: \"Banknotes\",\n Backward: \"Backward\",\n Backspace: \"Backspace\",\n AtSymbol: \"AtSymbol\",\n ArrowsUpDown: \"ArrowsUpDown\",\n ArrowsRightLeft: \"ArrowsRightLeft\",\n ArrowsPointingOut: \"ArrowsPointingOut\",\n ArrowsPointingIn: \"ArrowsPointingIn\",\n ArrowUturnUp: \"ArrowUturnUp\",\n ArrowUturnRight: \"ArrowUturnRight\",\n ArrowUturnLeft: \"ArrowUturnLeft\",\n ArrowUturnDown: \"ArrowUturnDown\",\n ArrowUp: \"ArrowUp\",\n ArrowUpTray: \"ArrowUpTray\",\n ArrowUpRight: \"ArrowUpRight\",\n ArrowUpOnSquare: \"ArrowUpOnSquare\",\n ArrowUpOnSquareStack: \"ArrowUpOnSquareStack\",\n ArrowUpLeft: \"ArrowUpLeft\",\n ArrowUpCircle: \"ArrowUpCircle\",\n ArrowTurnUpRight: \"ArrowTurnUpRight\",\n ArrowTurnUpLeft: \"ArrowTurnUpLeft\",\n ArrowTurnRightUp: \"ArrowTurnRightUp\",\n ArrowTurnRightDown: \"ArrowTurnRightDown\",\n ArrowTurnLeftUp: \"ArrowTurnLeftUp\",\n ArrowTurnLeftDown: \"ArrowTurnLeftDown\",\n ArrowTurnDownRight: \"ArrowTurnDownRight\",\n ArrowTurnDownLeft: \"ArrowTurnDownLeft\",\n ArrowTrendingUp: \"ArrowTrendingUp\",\n ArrowTrendingDown: \"ArrowTrendingDown\",\n ArrowTopRightOnSquare: \"ArrowTopRightOnSquare\",\n ArrowRight: \"ArrowRight\",\n ArrowRightStartOnRectangle: \"ArrowRightStartOnRectangle\",\n ArrowRightEndOnRectangle: \"ArrowRightEndOnRectangle\",\n ArrowRightCircle: \"ArrowRightCircle\",\n ArrowPath: \"ArrowPath\",\n ArrowPathRoundedSquare: \"ArrowPathRoundedSquare\",\n ArrowLongUp: \"ArrowLongUp\",\n ArrowLongRight: \"ArrowLongRight\",\n ArrowLongLeft: \"ArrowLongLeft\",\n ArrowLongDown: \"ArrowLongDown\",\n ArrowLeft: \"ArrowLeft\",\n ArrowLeftStartOnRectangle: \"ArrowLeftStartOnRectangle\",\n ArrowLeftEndOnRectangle: \"ArrowLeftEndOnRectangle\",\n ArrowLeftCircle: \"ArrowLeftCircle\",\n ArrowDown: \"ArrowDown\",\n ArrowDownTray: \"ArrowDownTray\",\n ArrowDownRight: \"ArrowDownRight\",\n ArrowDownOnSquare: \"ArrowDownOnSquare\",\n ArrowDownOnSquareStack: \"ArrowDownOnSquareStack\",\n ArrowDownLeft: \"ArrowDownLeft\",\n ArrowDownCircle: \"ArrowDownCircle\",\n ArchiveBox: \"ArchiveBox\",\n ArchiveBoxXMark: \"ArchiveBoxXMark\",\n ArchiveBoxArrowDown: \"ArchiveBoxArrowDown\",\n AdjustmentsVertical: \"AdjustmentsVertical\",\n AdjustmentsHorizontal: \"AdjustmentsHorizontal\",\n AcademicCap: \"AcademicCap\",\n} as const;\nexport type IconName = keyof typeof iconNames;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppCspInput.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppCspInput.ts"],"names":[],"mappings":";;;AAAA,mDAA2E;AAE3E,MAAM,WAAW,GAAG;IAClB,yBAAyB;IACzB,4BAA4B;IAC5B,uBAAuB;IACvB,gCAAgC;IAChC,uBAAuB;IACvB,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,yBAAyB;IACzB,sBAAsB;CACvB,CAAC;AAIF;;;;;;GAMG;AACI,MAAM,eAAe,GAAG,CAC7B,YAA4B,EAC5B,SAAkC,EACV,EAAE;IAC1B,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,SAAS,CAAC;IACnB,CAAC;SAAM,IAAI,YAAY,EAAE,CAAC;QACxB,OAAO;YACL,YAAY,EAAE,YAAY;YAC1B,SAAS,EAAE,YAAY;YACvB,YAAY,EAAE,YAAY;YAC1B,aAAa,EAAE,YAAY;SAC5B,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,eAAe,mBAgB1B;AAEW,QAAA,iBAAiB,GAAG;IAC/B,aAAa,EAAE,CAAC,oBAAI,CAAC;IACrB,YAAY,EAAE,CAAC,oBAAI,CAAC;IACpB,SAAS,EAAE,CAAC,oBAAI,EAAE,mCAAmC,EAAE,iCAAiC,CAAC;IACzF,YAAY,EAAE,CAAC,oBAAI,CAAC;IACpB,WAAW,EAAE,CAAC,6BAAa,EAAE,8BAA8B,CAAC;IAC5D,aAAa,EAAE,CAAC,oBAAI,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,GAAG,WAAW,CAAC;IACjF,cAAc,EAAE,CAAC,oBAAI,CAAC;IACtB,YAAY,EAAE,CAAC,oBAAI,CAAC;IACpB,UAAU,EAAE,CAAC,oBAAI,EAAE,2BAA2B,CAAC;IAC/C,2BAA2B,EAAE,IAAI;CAClC,CAAC","sourcesContent":["import { CSPDirectives, NONE, SELF, UNSAFE_INLINE } from \"./cspDirectives\";\n\nconst BrandedUrls = [\n \"https://*.trackunit.com\",\n \"https://*.wackerneuson.com\",\n \"https://*.manitou.com\",\n \"https://*.niftylinkmanager.com\",\n \"https://*.skyjack.com\",\n \"https://*.ahernaccess.com\",\n \"https://*.magnith.com\",\n \"https://*.terberg.com\",\n \"https://*.mymecalac.com\",\n \"https://*.delille.be\",\n];\n\nexport type { CSPDirectives } from \"./cspDirectives\";\n\n/**\n * This function is used to generate the CSP input for the Iris Apps Csp Header\n *\n * @param validDomains input legacy validDomains from manifest\n * @param cspHeader input cspHeader from manifest\n * @returns {Partial<CSPDirectives>} the CSP input for the Iris Apps Csp Header\n */\nexport const irisAppCspInput = (\n validDomains?: Array<string>,\n cspHeader?: Partial<CSPDirectives>\n): Partial<CSPDirectives> => {\n if (cspHeader) {\n return cspHeader;\n } else if (validDomains) {\n return {\n \"script-src\": validDomains,\n \"img-src\": validDomains,\n \"worker-src\": validDomains,\n \"connect-src\": validDomains,\n };\n } else {\n return {};\n }\n};\n\nexport const irisAppDefaultCsp = {\n \"default-src\": [SELF],\n \"script-src\": [SELF],\n \"img-src\": [SELF, \"https://images.iris.trackunit.com\", \"https://*.awsapi.trackunit.com/\"],\n \"worker-src\": [SELF],\n \"style-src\": [UNSAFE_INLINE, \"https://fonts.googleapis.com\"],\n \"connect-src\": [SELF, \"https://*.sentry.io\", \"https://sentry.io\", ...BrandedUrls],\n \"manifest-src\": [NONE],\n \"object-src\": [NONE],\n \"font-src\": [SELF, \"https://fonts.gstatic.com\"],\n \"upgrade-insecure-requests\": true,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppCustomFields.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppCustomFields.ts"],"names":[],"mappings":";;;AAkBa,QAAA,SAAS,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IACtD;;OAEG;IACH,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAC3C,MAA6F,EACtD,EAAE;IACzC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC;AAwGW,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,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Ac;IAC5B,WAAW,EAAE,aAAa;IAC1B,gBAAgB,EAAE,kBAAkB;IACpC,wBAAwB,EAAE,0BAA0B;IACpD,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC","sourcesContent":["import { TranslationKey, TranslationLanguageKeys } from \"./irisAppExtensionManifest\";\n\nexport declare type CustomFieldDefinitionType =\n | \"STRING\"\n | \"STRING_LIST\"\n | \"NUMBER\"\n | \"DATE\"\n | \"BOOLEAN\"\n | \"DROPDOWN\"\n | \"EMAIL\"\n | \"PHONE_NUMBER\"\n | \"WEB_ADDRESS\"\n | \"JSON\"\n | \"MONETARY\"\n | \"FILE\";\n\nexport declare type EntityType = \"ASSET\" | \"ACCOUNT\" | \"SITE\" | \"GROUP\" | \"CUSTOMER\";\n\nexport const ScopeType = {\n /**\n * Values with account scope will be shared within a single account\n */\n ACCOUNT: \"ACCOUNT\",\n /**\n * Values will be shared within a single account (write) and visible to all accounts (read)\n */\n ACCOUNT_WRITE_GLOBAL_READ: \"ACCOUNT_WRITE_GLOBAL_READ\",\n /**\n * Values with global scope will be shared between all accounts with access to the entity.\n */\n GLOBAL: \"GLOBAL\",\n} as const;\nexport type ScopeTypeType = (typeof ScopeType)[keyof typeof ScopeType];\n\n/**\n * Test if the object is a CustomFieldTranslation array.\n */\nexport const isCustomFieldTranslationArray = (\n object: CustomFieldTranslationArray | { title: TranslationKey; description?: TranslationKey }\n): object is CustomFieldTranslationArray => {\n return Array.isArray(object);\n};\n\nexport interface CustomFieldTranslation {\n language: TranslationLanguageKeys;\n title: string;\n description?: string;\n}\n\nexport interface CustomFieldTranslationWithoutEnglish {\n language: Exclude<TranslationLanguageKeys, \"en\">;\n title: string;\n description?: string;\n}\n\nexport type CustomFieldTranslationArray = [\n { language: \"en\"; title: string; description?: string },\n ...Array<CustomFieldTranslationWithoutEnglish>,\n];\n\nexport interface AbstractCustomFieldDefinition {\n /**\n * The key is the name you use to get the custom field.\n */\n key: string;\n\n /**\n * The type of the entity to attach this custom field on.\n */\n entityType: EntityType;\n\n /**\n * Who can access the field value. Default is only within the users account.\n */\n scopeType?: ScopeTypeType;\n\n /**\n * The translations for the custom field definition.\n * For Arrays of translations, the list must contain the language \"en\" as the default.\n * Either a list of translations or a single translation object with\n * translation keys it will look for all available languages in src/locales/<languagecode>/translation.json\n */\n translations: CustomFieldTranslationArray | { title: TranslationKey; description?: TranslationKey };\n\n /**\n * Should this be visible in the generic UI in Manager.\n */\n uiVisible?: boolean;\n\n /**\n * Should this be editable in the generic UI in Manager. This does not mean you cannot change it inside a app.\n */\n uiEditable?: boolean;\n\n /**\n * The type of this custom field definition\n */\n type: CustomFieldDefinitionType;\n}\n\nexport interface StringFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"STRING\";\n minimumLength?: number;\n maximumLength?: number;\n pattern?: string;\n}\n\nexport interface StringListFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"STRING_LIST\";\n itemMinimumLength?: number;\n itemMaximumLength?: number;\n pattern?: string;\n maximumItems?: number;\n}\n\nexport interface EmailFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"EMAIL\";\n}\n\nexport interface WebAddressFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"WEB_ADDRESS\";\n}\n\nexport interface PhoneNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"PHONE_NUMBER\";\n}\nexport interface BooleanFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"BOOLEAN\";\n}\n\nexport interface DateFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"DATE\";\n}\n\nexport interface DropDownFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"DROPDOWN\";\n multiSelect?: boolean;\n allValues?: Array<string>;\n /**\n * Map from old values not in the allValues to new values. Used for updating existing data when changing\n * the drop down options.\n */\n valueReplacements?: Record<string, string>;\n}\n\nexport const UnitOfMeasurement = {\n NEWTON: \"NEWTON\",\n PASCAL: \"PASCAL\",\n KILOPASCAL: \"KILOPASCAL\",\n WATT: \"WATT\",\n BAR: \"BAR\",\n CENTIMETRE: \"CENTIMETRE\",\n MILLIMETRE: \"MILLIMETRE\",\n METRE: \"METRE\",\n KILOMETRE: \"KILOMETRE\",\n GRAM: \"GRAM\",\n KILOGRAM: \"KILOGRAM\",\n VOLT: \"VOLT\",\n AMPERE_HOUR: \"AMPERE_HOUR\",\n KILOWATT: \"KILOWATT\",\n KILOWATT_HOUR: \"KILOWATT_HOUR\",\n KILOGRAM_PER_HOUR: \"KILOGRAM_PER_HOUR\",\n KILOGRAM_PER_SECOND: \"KILOGRAM_PER_SECOND\",\n SQUARE_KILOMETRE: \"SQUARE_KILOMETRE\",\n KILOMETRE_PER_HOUR: \"KILOMETRE_PER_HOUR\",\n LITRE: \"LITRE\",\n SQUARE_METRE: \"SQUARE_METRE\",\n CUBIC_METRE: \"CUBIC_METRE\",\n METRE_PER_SECOND: \"METRE_PER_SECOND\",\n METRE_PER_SECOND_SQUARED: \"METRE_PER_SECOND_SQUARED\",\n METRIC_TON: \"METRIC_TON\",\n ARE: \"ARE\",\n HECTARE: \"HECTARE\",\n YEAR: \"YEAR\",\n MONTH: \"MONTH\",\n DAY: \"DAY\",\n HOUR: \"HOUR\",\n LITRES_PER_HOUR: \"LITRES_PER_HOUR\",\n REVOLUTIONS_PER_MINUTE: \"REVOLUTIONS_PER_MINUTE\",\n VOLT_AMPERE: \"VOLT_AMPERE\",\n G_FORCE: \"G_FORCE\",\n CELSIUS: \"CELSIUS\",\n PERCENT: \"PERCENT\",\n DEGREE_ANGLE: \"DEGREE_ANGLE\",\n MILLISECOND: \"MILLISECOND\",\n SECOND: \"SECOND\",\n MINUTE: \"MINUTE\",\n WEEK: \"WEEK\",\n AMPERE: \"AMPERE\",\n HERTZ: \"HERTZ\",\n ACRE: \"ACRE\",\n FOOT: \"FOOT\",\n SQUARE_FOOT: \"SQUARE_FOOT\",\n CUBIC_FOOT: \"CUBIC_FOOT\",\n GALLON_LIQUID: \"GALLON_LIQUID\",\n INCH: \"INCH\",\n POUND: \"POUND\",\n POUND_PER_HOUR: \"POUND_PER_HOUR\",\n POUND_PER_SECOND: \"POUND_PER_SECOND\",\n MILE: \"MILE\",\n MILE_PER_HOUR: \"MILE_PER_HOUR\",\n OUNCE: \"OUNCE\",\n US_TON: \"US_TON\",\n YARD: \"YARD\",\n POUND_PER_SQUARE_INCH: \"POUND_PER_SQUARE_INCH\",\n INCHES_OF_WATER: \"INCHES_OF_WATER\",\n GALLONS_PER_HOUR: \"GALLONS_PER_HOUR\",\n FAHRENHEIT: \"FAHRENHEIT\",\n} as const;\nexport type UnitOfMeasurementType = (typeof UnitOfMeasurement)[keyof typeof UnitOfMeasurement];\n\n/**\n * @deprecated Use UnitOfMeasurement instead\n */\nexport const UnitUs = {\n acre: \"ACRE\",\n foot: \"FOOT\",\n square_foot: \"SQUARE_FOOT\",\n cubic_foot: \"CUBIC_FOOT\",\n gallon_liquid: \"GALLON_LIQUID\",\n inch: \"INCH\",\n pound: \"POUND\",\n pound_per_hour: \"POUND_PER_HOUR\",\n pound_per_second: \"POUND_PER_SECOND\",\n mile: \"MILE\",\n mile_per_hour: \"MILE_PER_HOUR\",\n ounce: \"OUNCE\",\n ton_us: \"US_TON\",\n yard: \"YARD\",\n pound_per_square_inch: \"POUND_PER_SQUARE_INCH\",\n} as const;\n/**\n * @deprecated Use UnitOfMeasurementType instead\n */\nexport type UnitUsType = (typeof UnitUs)[keyof typeof UnitUs];\n\n/**\n * @deprecated Use UnitOfMeasurement instead\n */\nexport const UnitSi = {\n newton: \"NEWTON\",\n pascal: \"PASCAL\",\n kilopascal: \"KILOPASCAL\",\n amperehour: \"AMPERE_HOUR\",\n volt: \"VOLT\",\n watt: \"WATT\",\n bar: \"BAR\",\n centimetre: \"CENTIMETRE\",\n millimetre: \"MILLIMETRE\",\n metre: \"METRE\",\n kilometre: \"KILOMETRE\",\n gram: \"GRAM\",\n kilogram: \"KILOGRAM\",\n kilowatt: \"KILOWATT\",\n kilowatthour: \"KILOWATT_HOUR\",\n kilogram_per_hour: \"KILOGRAM_PER_HOUR\",\n kilogram_per_second: \"KILOGRAM_PER_SECOND\",\n square_kilometre: \"SQUARE_KILOMETRE\",\n kilometre_per_hour: \"KILOMETRE_PER_HOUR\",\n litre: \"LITRE\",\n square_metre: \"SQUARE_METRE\",\n cubic_metre: \"CUBIC_METRE\",\n metre_per_second: \"METRE_PER_SECOND\",\n metre_per_second_squared: \"METRE_PER_SECOND_SQUARED\",\n ton: \"TON\",\n hectare: \"HECTARE\",\n hour: \"HOUR\",\n} as const;\n/**\n * @deprecated Use UnitOfMeasurementType instead\n */\nexport type UnitSiType = (typeof UnitSi)[keyof typeof UnitSi];\n\nexport interface DecimalNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n unitSi?: UnitOfMeasurementType;\n unitUs?: UnitOfMeasurementType;\n\n isInteger: false;\n}\n\nexport interface IntegerNumberFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"NUMBER\";\n\n minimum?: number;\n maximum?: number;\n\n isInteger: true;\n}\n\nexport type JSONValue = string | number | boolean | null | { [x: string]: JSONValue } | Array<JSONValue>;\n\nexport interface JsonFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"JSON\";\n}\n\nexport interface MonetaryFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"MONETARY\";\n /**\n * The currency of the monetary field definition - ISO 4217 compliant.\n */\n currency: string;\n}\n\nexport interface FileFieldDefinition extends AbstractCustomFieldDefinition {\n type: \"FILE\";\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppExtensionManifest.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppExtensionManifest.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,kBAAkB;IAClB,6BAA6B;IAC7B,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,yBAAyB;IACzB,qBAAqB;IACrB,qBAAqB;IACrB,0BAA0B;CAClB,CAAC;AAIE,QAAA,mBAAmB,GAAgC;IAC9D,kBAAkB;IAClB,qBAAqB;IACrB,0BAA0B;CAC3B,CAAC;AAEW,QAAA,wBAAwB,GAAgC;IACnE,qBAAqB;IACrB,0BAA0B;CAC3B,CAAC;AA8DW,QAAA,YAAY,GAAG;IAC1B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACI,CAAC","sourcesContent":["export const irisAppExtensionTypes = [\n \"REPORT_EXTENSION\",\n \"IRIS_APP_SETTINGS_EXTENSION\",\n \"ADMIN_EXTENSION\",\n \"FLEET_EXTENSION\",\n \"WIDGET_EXTENSION\",\n \"ASSET_HOME_EXTENSION\",\n \"ASSET_EVENTS_ACTIONS_EXTENSION\",\n \"CUSTOMER_HOME_EXTENSION\",\n \"SITE_HOME_EXTENSION\",\n \"LIFECYCLE_EXTENSION\",\n \"SERVERSIDE_API_EXTENSION\",\n] as const;\n\nexport type IrisAppExtensionType = (typeof irisAppExtensionTypes)[number];\n\nexport const nonUiExtensionTypes: Array<IrisAppExtensionType> = [\n \"REPORT_EXTENSION\",\n \"LIFECYCLE_EXTENSION\",\n \"SERVERSIDE_API_EXTENSION\",\n];\n\nexport const serverSideExtensionTypes: Array<IrisAppExtensionType> = [\n \"LIFECYCLE_EXTENSION\",\n \"SERVERSIDE_API_EXTENSION\",\n];\n\nexport type RegExpType = {\n pattern: string | RegExp;\n};\n\n/**\n * Used to limit access to iris apps based on custom field value.\n */\nexport interface RequiredCustomField {\n /**\n * The custom field key to check for, only dropdown, string or boolean is supported.\n */\n customFieldKey: string;\n\n /**\n * The requiredValue that is required for the app extension to be visible.\n */\n requiredValue: string | Array<string> | boolean;\n}\n\nexport interface AbstractExtensionManifest {\n /** The id of the app extension, will be part of the URL in the manager */\n id: string;\n\n /**\n * The path to the main entry point for the extension.\n *\n * @default \"index.tsx\"\n */\n main?: string;\n\n /**\n * The relative path from the NX workspace to this projects source Root.\n */\n sourceRoot: string;\n\n /** The type of the app extension */\n type: IrisAppExtensionType;\n}\n\nexport interface Translations {\n en: string;\n da?: string;\n de?: string;\n cs?: string;\n nl?: string;\n fr?: string;\n fi?: string;\n hu?: string;\n it?: string;\n nb?: string;\n pl?: string;\n pt?: string;\n ru?: string;\n ro?: string;\n es?: string;\n sv?: string;\n ja?: string;\n th?: string;\n}\n\nexport const languageKeys = [\n \"en\",\n \"da\",\n \"de\",\n \"cs\",\n \"nl\",\n \"fr\",\n \"fi\",\n \"hu\",\n \"it\",\n \"nb\",\n \"pl\",\n \"pt\",\n \"ru\",\n \"ro\",\n \"es\",\n \"sv\",\n \"ja\",\n \"th\",\n] as const;\n\nexport type TranslationLanguageKeys = (typeof languageKeys)[number];\n\nexport interface TranslationKey {\n key: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppInstallationConfig.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppInstallationConfig.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG;IAChC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,2BAA2B,EAAE,6BAA6B;IAC1D,8BAA8B,EAAE,gCAAgC;CACxD,CAAC","sourcesContent":["import { SubscriptionPackage } from \"./subscriptionPackages\";\n\nexport const installationPolicy = {\n PERMANENT: \"PERMANENT\",\n PREINSTALLED: \"PREINSTALLED\",\n ON_DEMAND: \"ON_DEMAND\",\n ON_DEMAND_REQUIRES_APPROVAL: \"ON_DEMAND_REQUIRES_APPROVAL\",\n PREINSTALLED_REQUIRES_APPROVAL: \"PREINSTALLED_REQUIRES_APPROVAL\",\n} as const;\nexport type InstallationPolicy = (typeof installationPolicy)[keyof typeof installationPolicy];\n\n/**\n * @deprecated Use `InstallationConfig` instead.\n */\nexport interface InstallationConfigLegacy {\n /**\n * Installation policy for the app.\n *\n * - `PERMANENT`: Always installed and cannot be removed by the end customer.\n * - `PREINSTALLED`: Initially installed and can be removed by the end customer.\n * - `ON_DEMAND`: Available to be installed and removed by the end customer.\n * - `ON_DEMAND_REQUIRES_APPROVAL`: Requires approval by the Trackunit billing team before the end customer can install it. Behaves like 'ON_DEMAND' after receiving approval.\n * - `PREINSTALLED_REQUIRES_APPROVAL`: Requires approval by the Trackunit billing team and installs automatically once approved. Behaves like 'PREINSTALLED' after receiving approval.\n *\n * All policies will take into consideration both `accountIds` and `pricingPlans`.\n *\n * @deprecated Use `pricingPlanPolicy` instead.\n */\n policy: InstallationPolicy;\n /**\n * List of account IDs that can install this Iris App or `\"ALL_ACCOUNTS\"` if available for all customers.\n */\n accountIds: \"ALL_ACCOUNTS\" | Array<string>;\n /**\n * List of pricing plans the Iris App is available at or `\"ALL_PLANS\"` if available in all plans.\n *\n * @deprecated Use `pricingPlanPolicy` instead.\n */\n pricingPlans: \"ALL_PLANS\" | Array<SubscriptionPackage>;\n /**\n * Ensure that both cannot be set at the same time.\n */\n pricingPlanPolicy?: never;\n}\n\ninterface InstallationConfigBase {\n /**\n * Installation policy for the app per pricing plan.\n *\n * - `PERMANENT`: Always installed and cannot be removed by the end customer.\n * - `PREINSTALLED`: Initially installed and can be removed by the end customer.\n * - `ON_DEMAND`: Available to be installed and removed by the end customer.\n * - `ON_DEMAND_REQUIRES_APPROVAL`: Requires approval by the Trackunit billing team before the end customer can install it. Behaves like 'ON_DEMAND' after receiving approval.\n * - `PREINSTALLED_REQUIRES_APPROVAL`: Requires approval by the Trackunit billing team and installs automatically once approved. Behaves like 'PREINSTALLED' after receiving approval.\n *\n * All policies will also filter by `accountIds` if specified.\n *\n * If a pricing plan is not specified it means it will not be available for that plan.\n *\n */\n pricingPlanPolicy:\n | ({ [KeySubscriptionPackage in SubscriptionPackage]?: InstallationPolicy } & { ALL_PLANS?: never })\n | { ALL_PLANS: InstallationPolicy };\n\n /**\n * This field is optional and can be used to specify the identifiers of other Iris apps that are included within this bundle.\n * It helps in managing and organizing multiple apps that are packaged together.\n */\n irisAppsInsideBundle?: Array<string>;\n}\n\nexport interface InstallationConfig extends InstallationConfigBase {\n /**\n * List of account IDs that can install this Iris App or `\"ALL_ACCOUNTS\"` if available for all customers.\n */\n accountIds: \"ALL_ACCOUNTS\" | [string, ...Array<string>];\n}\n\nexport interface InstallationConfigExcludeAccountIds extends InstallationConfigBase {\n /**\n * List of account IDs that can install this Iris App or `\"ALL_ACCOUNTS\"` if available for all customers.\n */\n accountIds: \"ALL_ACCOUNTS\";\n /**\n * List of account IDs that can't install this Iris App. Available if accountIds is set to `\"ALL_ACCOUNTS\"`.\n */\n excludeAccountIds?: Array<string>;\n}\n\nexport interface InstallationConfigAllowOrganizationIds extends InstallationConfigBase {\n /**\n * List of organization IDs that are allowed to install this Iris App.\n */\n allowOrganizationIds: Array<string>;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppManifest.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppManifest.ts"],"names":[],"mappings":"","sourcesContent":["import { CSPDirectives } from \"./cspDirectives\";\nimport { AdminExtensionManifest } from \"./extensions/adminExtensionManifest\";\nimport { AssetEventsActionsExtensionManifest } from \"./extensions/assetEventsActionsExtensionManifest\";\nimport { AssetHomeExtensionManifest } from \"./extensions/assetHomeExtensionManifest\";\nimport { CustomerHomeExtensionManifest } from \"./extensions/customerHomeExtensionManifest\";\nimport { FleetExtensionManifest } from \"./extensions/fleetExtensionManifest\";\nimport { IrisAppSettingsExtensionManifest } from \"./extensions/irisAppSettingsExtensionManifest\";\nimport { LifecycleExtensionManifest } from \"./extensions/lifecycleExtensionManifest\";\nimport { ReportExtensionManifest } from \"./extensions/reportExtensionManifest\";\nimport { ServersideApiExtensionManifest } from \"./extensions/serversideApiExtensionManifest\";\nimport { SiteHomeExtensionManifest } from \"./extensions/siteHomeExtensionManifest\";\nimport { WidgetExtensionManifest } from \"./extensions/widgetExtensionManifest\";\nimport {\n BooleanFieldDefinition,\n DateFieldDefinition,\n DecimalNumberFieldDefinition,\n DropDownFieldDefinition,\n EmailFieldDefinition,\n FileFieldDefinition,\n IntegerNumberFieldDefinition,\n JsonFieldDefinition,\n MonetaryFieldDefinition,\n PhoneNumberFieldDefinition,\n StringFieldDefinition,\n StringListFieldDefinition,\n WebAddressFieldDefinition,\n} from \"./irisAppCustomFields\";\nimport {\n InstallationConfig,\n InstallationConfigAllowOrganizationIds,\n InstallationConfigExcludeAccountIds,\n InstallationConfigLegacy,\n} from \"./irisAppInstallationConfig\";\nimport { Marketplace, MarketplaceOneZero } from \"./irisAppMarketplace\";\nimport { PermissionsPolicy } from \"./permissionsPolicy\";\nimport { Scope } from \"./scopes\";\n\nexport interface IrisAppManifest\n extends Omit<\n IrisAppManifestVersionOneZero,\n \"specVersion\" | \"activationMode\" | \"marketplace\" | \"validForAccountIds\" | \"consentConfig\"\n > {\n /**\n * A spec version for the manifest.\n * This should not be changed manually.\n */\n specVersion: \"1.1\";\n\n /**\n * Which module format the app is built with.\n * If not set, it is assumed to be \"cjs\".\n */\n moduleFormat?: \"esm\" | \"cjs\";\n\n /**\n * Configuration for the installation of the app.\n *\n * Each parameter can be combined to create rules to target specific customers.\n * Each parameter works as a filter to decide if an app is available to a specific customer.\n */\n installation:\n | InstallationConfig\n | InstallationConfigExcludeAccountIds\n | InstallationConfigAllowOrganizationIds\n | InstallationConfigLegacy;\n\n /**\n * A configuration object for the Marketplace entry\n */\n marketplace: Marketplace;\n\n /**\n * Scopes needed in app tokens, these scopes are used from the token - when contacting Trackunits backend.\n */\n scopes?: RequiredOrOptionalScope | Array<RequiredOrOptionalScope>;\n\n /**\n * Configuration of callback to get credentials to call the API after app installation.\n */\n tokenCallback?: {\n url: string;\n };\n\n /**\n * Configuration of the Content Security Policy (CSP) header for the app.\n *\n * **Sandbox behavior**: Values specified in the `sandbox` property are merged with the following defaults:\n * `[\"allow-scripts\", \"allow-downloads\", \"allow-same-origin\", \"allow-forms\", \"allow-popups\"]`\n *\n * We support a subset of the CSP directives. The supported directives are:\n * - [child-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/child-src)\n * - [connect-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/connect-src)\n * - [font-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/font-src)\n * - [form-action](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/form-action)\n * - [frame-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-src)\n * - [img-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/img-src)\n * - [media-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/media-src)\n * - [script-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src)\n * - [script-src-attr](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src-attr)\n * - [script-src-elem](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src-elem)\n * - [style-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src)\n * - [style-src-attr](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src-attr)\n * - [style-src-elem](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src-elem)\n * - [worker-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/worker-src)\n * - [default-src](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src)\n *\n * More information about CSP can be found [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).\n */\n cspHeader?: Partial<CSPDirectives>;\n\n /**\n * Configuration of the Permissions policy of the app\n *\n * More information about Permissions policies can be found [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy).\n */\n permissionsPolicy?: PermissionsPolicy;\n}\n\nexport type RequiredOrOptionalScope = { scope: Scope; optional?: boolean };\n\nexport declare type IrisAppExtension =\n | AssetHomeExtensionManifest\n | IrisAppSettingsExtensionManifest\n | AdminExtensionManifest\n | FleetExtensionManifest\n | SiteHomeExtensionManifest\n | WidgetExtensionManifest\n | ReportExtensionManifest\n | CustomerHomeExtensionManifest\n | AssetEventsActionsExtensionManifest\n | LifecycleExtensionManifest\n | ServersideApiExtensionManifest;\n\nexport declare type CustomFieldDefinition =\n | BooleanFieldDefinition\n | DecimalNumberFieldDefinition\n | IntegerNumberFieldDefinition\n | DateFieldDefinition\n | DropDownFieldDefinition\n | StringFieldDefinition\n | StringListFieldDefinition\n | EmailFieldDefinition\n | PhoneNumberFieldDefinition\n | WebAddressFieldDefinition\n | JsonFieldDefinition\n | MonetaryFieldDefinition\n | FileFieldDefinition;\n\n/**\n * @deprecated\n */\nexport interface ConsentConfig {\n /**\n * The application type. Should be one of WEB or BROWSER.\n */\n applicationType: \"WEB\" | \"BROWSER\";\n /**\n * List of scopes required by the application.\n */\n scopes: Array<string>;\n /**\n * List of redirect URIs to be used when returning an authorization code.\n */\n redirectUris?: Array<string>;\n}\n\nexport interface Dependencies {\n [packageName: string]: string;\n}\n\nexport type PublicIrisAppManifest = Omit<IrisAppManifest, \"dependencies\" | \"devDependencies\" | \"installation\"> & {\n /**\n * Relative path for this iris app.\n *\n * @returns {string} the path to the iris app\n */\n irisAppPath: string;\n\n installation: Omit<InstallationConfig, \"accountIds\"> | Omit<InstallationConfigLegacy, \"accountIds\">;\n};\n\n/**\n * @deprecated\n */\nexport interface IrisAppManifestVersionOneZero {\n /**\n * A spec version for the manifest.\n * This should not be changed manually.\n */\n specVersion: \"1.0\";\n /**\n * The name of the exposed module from module federation build into the remoteEntry.js.\n * Basically the name of your app including workspace name, automatically parsed from your app-specific package.json.\n */\n moduleFederationName: string;\n\n /**\n * A configuration object for handling scoped token acquisition.\n *\n * @deprecated Use `scopes` instead.\n */\n consentConfig?: ConsentConfig | \"inherit\";\n\n /**\n * Controls the visibility of your app and how it is installed.\n * The different modes are:\n * - Enabled means its enabled on the subscription when this Iris app is approved.\n * - Visible means it will be visible to the customer to choose for them selves to enable/disable it.\n *\n * - FORCE_ENABLE then it can not be removed by the end customer, and will be installed based on the selected subscription package.\n * - DEFAULT_ENABLE means it will be enabled when a customer activates a new subscription package.\n * - ALWAYS_VISIBLE then it will always be visible for all customers.\n * - CONTROLLED_MANUAL_INSTALLATION then it will be controlled by the team that activates the subscription package for the customer, not activating the app.\n * - CONTROLLED_AUTOMATIC_INSTALLATION then it will be controlled by the team that activates the subscription package for the customer, also adding.\n *\n * All modes will take into consideration both { IrisAppManifestVersionOneZero.validForAccountIds} and { IrisAppManifestVersionOneZero.marketplace}.allowForPackage\n *\n * @deprecated Use `installation.policy` instead.\n */\n activationMode: ActivationMode;\n\n /**\n * A list of any external domains that the app needs to communicate with.\n * The list is audited in the approval step of the app and every external API call\n * must be listed here to get through the verification process.\n * Even if it goes through without being listed, your app will fail to call the endpoint.\n *\n * @deprecated Use `cspHeader` instead\n */\n validDomains?: Array<string>;\n /**\n * Put `ALL_ACCOUNTS` in if your app is available to all users.\n * If you want to only make it available to certain users, provide a list of account ID's as strings.\n */\n validForAccountIds: \"ALL_ACCOUNTS\" | Array<string>;\n /**\n * A configuration object for the Marketplace entry.\n * Holds all the settings associated with your apps listing on the marketplace.\n */\n marketplace: MarketplaceOneZero;\n /**\n * A full list of runtime dependencies for the App.\n * Used for performance optimization and security scans.\n * It is automatically parsed from the package.json in root.\n */\n dependencies: Dependencies;\n\n /**\n * A full list of dev dependencies for the App.\n * Used for security scans.\n */\n devDependencies: Dependencies;\n\n /**\n * A list of extensions to the UI that this app manifest exposes.\n * Extensions are automatically added when a new extension is generated.\n * The array contains an import of the extension manifest within the extension.\n * If an extension is required in multiple apps, the you must manually add it to the arrays of those apps.\n */\n extensions: Array<IrisAppExtension>;\n\n /**\n * A list of custom field definitions.\n */\n customFieldDefinitions?: Array<CustomFieldDefinition>;\n}\n\n/**\n * @deprecated\n */\nexport type ActivationMode =\n | \"FORCE_ENABLE\"\n | \"DEFAULT_ENABLE\"\n | \"ALWAYS_VISIBLE\"\n | \"CONTROLLED_MANUAL_INSTALLATION\"\n | \"CONTROLLED_AUTOMATIC_INSTALLATION\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppMarketplace.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/irisAppMarketplace.ts"],"names":[],"mappings":";;;AA6Ga,QAAA,cAAc,GAAG;IAC5B,kBAAkB;IAClB,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,eAAe;IACf,sBAAsB;IACtB,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,mBAAmB;IACnB,yBAAyB;IACzB,gBAAgB;IAChB,YAAY;CACJ,CAAC","sourcesContent":["import { SubscriptionPackage } from \"./subscriptionPackages\";\n\n/**\n * An image that should be shown in the marketplace for this app.\n */\nexport interface MarketplaceAssetImage {\n /**\n * The type of the Asset\n */\n type: \"IMAGE\";\n /**\n * A Path to an image in the assets folder of the app.\n * Example: typing \"MyImage.png\" here, will show the file \"apps/my-app/assets/MyImage.png\"\n */\n path: string;\n}\n\n/**\n * A video that should be shown in the marketplace for this app.\n */\nexport interface MarketplaceAssetVideo {\n /**\n * The type of the Asset\n */\n type: \"VIDEO\";\n /**\n * An url for a youtube video.\n */\n url: string;\n}\n\n/**\n * A video or image that should be shown in the marketplace for this app.\n */\nexport type MarketplaceAsset = MarketplaceAssetImage | MarketplaceAssetVideo;\n\n/**\n * An object of data used when the app is displayed in the marketplace\n */\nexport interface Marketplace extends Omit<MarketplaceOneZero, \"allowForPackage\"> {\n /**\n * Indicate if the app should be shown in the Trackunit Marketplace.\n */\n showInMarketplace: boolean;\n}\n\n/**\n * An object of data used when the app is displayed in the marketplace\n *\n * @deprecated\n */\nexport interface MarketplaceOneZero {\n /**\n * Name used for the marketplace.\n */\n name: string;\n\n /**\n * A short summary used for the card on marketplace.\n * For longer description add a description.md file in the /assets/ folder of the app, and set the fullDescriptionPath.\n */\n description: string;\n\n /**\n * The path to a markdown file that explains your app in more detail.\n * The file must be stored in the assets folder within the app directory to work.\n * The path is relative to that directory.\n * For a file apps/my-app/assets/description.md, this parameter should be: description.md\n */\n fullDescriptionPath: string;\n\n /**\n * Path to an image in the assets folder of the app.\n * The image will be shown in the marketplace.\n * Example: typing \"MyImage.png\" here, will show the file \"apps/my-app/assets/MyImage.png\"\n */\n logoPath?: string;\n /**\n * A list of relevant tags to make your app easier to find.\n */\n tags?: Array<string>;\n /**\n * Categories used for the app in the marketplace.\n */\n categories?: Array<Category>;\n /**\n * Assets (images and videos) used for the marketplace.\n */\n assets?: Array<MarketplaceAsset>;\n /**\n * Defines with which subscription packages your app is compatible.\n * Take great care when entering this, as your app might bug out (if it went through the approval phase in the first place)\n * if what is stated here does not match reality.\n */\n allowForPackage: \"ALL_PACKAGES\" | Array<SubscriptionPackage>;\n /**\n * Homepage of the company building the app for the marketplace.\n */\n homePageUrl?: string;\n /**\n * The direct support page for this app.\n */\n supportUrl?: string;\n /**\n * The url of the blueprint for the marketplace.\n */\n blueprintUrl?: string;\n}\n\nexport const CategoryValues = [\n \"ASSET_MANAGEMENT\",\n \"COMPLIANCE\",\n \"CONSULTANTS\",\n \"DATA_FEEDS\",\n \"DOCUMENTATION\",\n \"EFFECTIVE_OPERATIONS\",\n \"EQUIPMENT_PROTECTION\",\n \"OEM_PARTNER_SOLUTIONS\",\n \"OPTIMIZE_BUSINESS\",\n \"RENTAL_MANAGEMENT\",\n \"SERVICE_AND_MAINTENANCE\",\n \"SUSTAINABILITY\",\n \"BLUEPRINTS\",\n] as const;\n\nexport declare type Category = (typeof CategoryValues)[number];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadNxRootPackageJson.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/loadNxRootPackageJson.ts"],"names":[],"mappings":";;;AAOA;;;;;GAKG;AACI,MAAM,qBAAqB,GAAG,CAAC,YAAoB,EAAe,EAAE;IACzE,iEAAiE;IACjE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,iEAAiE;IACjE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAEtE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACb,6BAA6B,qBAAqB,8DAA8D,CACjH,CAAC;IACJ,CAAC;IAED,MAAM,WAAW,GAAgE,IAAI,CAAC,KAAK,CACzF,EAAE,CAAC,YAAY,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAChD,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,CAAC;QACvC,WAAW,CAAC,YAAY,GAAG,EAAE,CAAC;IAChC,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC;QAC1C,WAAW,CAAC,eAAe,GAAG,EAAE,CAAC;IACnC,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,WAAW,CAAC,IAAI,GAAG,cAAc,CAAC;IACpC,CAAC;IACD,8DAA8D;IAC9D,OAAO,WAAqC,CAAC;AAC/C,CAAC,CAAC;AA3BW,QAAA,qBAAqB,yBA2BhC","sourcesContent":["\ntype PackageJson = {\n name: string;\n dependencies: Record<string, string>;\n devDependencies: Record<string, string>;\n};\n\n/**\n * Get the package.json of the root of the NX workspace\n *\n * @param pathToNxRoot - The path to the root of the NX workspace\n * @returns {PackageJson} The package.json of the root of the NX workspace\n */\nexport const loadNxRootPackageJson = (pathToNxRoot: string): PackageJson => {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const fs = require(\"fs\");\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const path = require(\"path\");\n const pathToPackageJsonPath = path.join(pathToNxRoot, \"package.json\");\n\n if (!Boolean(fs.existsSync(pathToPackageJsonPath))) {\n throw new Error(\n `Package.json not found at ${pathToPackageJsonPath}, make sure to pass the path to the root of the NX workspace`\n );\n }\n\n const packageJson: Record<string, string | Record<string, string> | undefined> = JSON.parse(\n fs.readFileSync(pathToPackageJsonPath, \"utf-8\")\n );\n if (!Boolean(packageJson.dependencies)) {\n packageJson.dependencies = {};\n }\n if (!Boolean(packageJson.devDependencies)) {\n packageJson.devDependencies = {};\n }\n if (!Boolean(packageJson.name)) {\n packageJson.name = \"unknown-name\";\n }\n // eslint-disable-next-line @trackunit/no-typescript-assertion\n return packageJson as unknown as PackageJson;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modulefederation.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/modulefederation.ts"],"names":[],"mappings":";AAAA,sJAAsJ","sourcesContent":["// Source: https://github.com/webpack/webpack/blob/1c9b1b7a2136d4d9a27352fdbdf389490cca6460/declarations/plugins/container/ModuleFederationPlugin.d.ts\n\n/**\n * Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.\n */\nexport type Shared = Array<SharedItem | SharedObject> | SharedObject;\n\n/**\n * A module that should be shared in the share scope.\n */\nexport type SharedItem = string;\n\n/**\n * Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.\n */\nexport interface SharedObject {\n /**\n * Modules that should be shared in the share scope.\n */\n [k: string]: SharedConfig | SharedItem;\n}\n\n/**\n * Advanced configuration for modules that should be shared in the share scope.\n */\nexport interface SharedConfig {\n /**\n * Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.\n */\n eager?: boolean;\n /**\n * Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.\n */\n import?: false | SharedItem;\n /**\n * Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.\n */\n packageName?: string;\n /**\n * Version requirement from module in share scope.\n */\n requiredVersion?: false | string;\n /**\n * Module is looked up under this key from the share scope.\n */\n shareKey?: string;\n /**\n * Share scope name.\n */\n shareScope?: string;\n /**\n * Allow only a single version of the shared module in share scope (disabled by default).\n */\n singleton?: boolean;\n /**\n * Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).\n */\n strictVersion?: boolean;\n /**\n * Version of the provided module. Will replace lower matching versions, but not higher.\n */\n version?: false | string;\n}\n\n/**\n * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.\n */\nexport type Exposes = Array<ExposesItem | ExposesObject> | ExposesObject;\n/**\n * Module that should be exposed by this container.\n */\nexport type ExposesItem = string;\n/**\n * Modules that should be exposed by this container.\n */\nexport type ExposesItems = Array<ExposesItem>;\n\n/**\n * Modules that should be exposed by this container. Property names are used as public paths.\n */\nexport interface ExposesObject {\n /**\n * Modules that should be exposed by this container.\n */\n [k: string]: ExposesConfig | ExposesItem | ExposesItems;\n}\n/**\n * Advanced configuration for modules that should be exposed by this container.\n */\nexport interface ExposesConfig {\n /**\n * Request to a module that should be exposed by this container.\n */\n import: ExposesItem | ExposesItems;\n /**\n * Custom chunk name for the exposed module.\n */\n name?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissionsPolicy.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/permissionsPolicy.ts"],"names":[],"mappings":";;AA8CA,gEAOC;AAVD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,MAAyB;IAClE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;SAC1B,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE,CAC9B,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,SAAS,EAAE,CAC/F;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC","sourcesContent":["type AllowList = \"*\" | Array<\"src\" | \"self\" | `http://${string}` | `https://${string}`>;\n\n/*\n * Based on types from https://github.com/klnjs/basique/blob/master/packages/utils/headers/src/permissions-policy.ts and\n * adapted to our needs.\n */\nexport interface PermissionsPolicy {\n accelerometer?: AllowList;\n \"ambient-light-sensor\"?: AllowList;\n \"attribution-reporting\"?: AllowList;\n autoplay?: AllowList;\n bluetooth?: AllowList;\n camera?: AllowList;\n \"clipboard-read\"?: AllowList;\n \"clipboard-write\"?: AllowList;\n \"cross-origin-isolated\"?: AllowList;\n \"display-capture\"?: AllowList;\n \"document-domain\"?: AllowList;\n \"encrypted-media\"?: AllowList;\n \"execution-while-not-rendered\"?: AllowList;\n \"execution-while-out-of-viewport\"?: AllowList;\n fullscreen?: AllowList;\n geolocation?: AllowList;\n gyroscope?: AllowList;\n hid?: AllowList;\n \"idle-detection\"?: AllowList;\n \"interest-cohort\"?: AllowList;\n magnetometer?: AllowList;\n microphone?: AllowList;\n midi?: AllowList;\n \"navigation-override\"?: AllowList;\n payment?: AllowList;\n \"picture-in-picture\"?: AllowList;\n \"publickey-credentials-get\"?: AllowList;\n \"screen-wake-lock\"?: AllowList;\n serial?: AllowList;\n speaker?: AllowList;\n \"sync-xhr\"?: AllowList;\n usb?: AllowList;\n \"web-share\"?: AllowList;\n \"xr-spatial-tracking\"?: AllowList;\n}\n\n/**\n * Stringifies a PermissionsPolicy, so that it can be added to the `allow` property of an iframe element\n */\nexport function permissionsPolicyStringify(policy: PermissionsPolicy): string {\n return Object.entries(policy)\n .filter(([_, allowlist]) => !!allowlist)\n .map(([directive, allowlist]) =>\n Array.isArray(allowlist) ? `${directive} ${allowlist.join(\" \")}` : `${directive} ${allowlist}`\n )\n .join(\"; \");\n}\n"]}
|
package/src/types/scopes.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;IAC5F,sBAAsB,EAAE,wBAAwB;CACxC,CAAC;AAGE,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,YAAY;CAChB,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,SAAS,EAAE,WAAW;CACd,CAAC;AAKE,QAAA,SAAS,GAAG,EAAE,GAAG,oBAAY,EAAE,GAAG,kBAAU,EAAE,GAAG,iBAAS,EAAE,CAAC;AAE7D,QAAA,cAAc,GAAiB;IAC1C,oBAAY,CAAC,kBAAkB;IAC/B,oBAAY,CAAC,sBAAsB;IACnC,oBAAY,CAAC,yCAAyC;IACtD,oBAAY,CAAC,mBAAmB;IAChC,oBAAY,CAAC,uCAAuC;IACpD,oBAAY,CAAC,uDAAuD;IACpE,oBAAY,CAAC,4CAA4C;IACzD,oBAAY,CAAC,YAAY;IACzB,kBAAU,CAAC,UAAU;IACrB,iBAAS,CAAC,SAAS;IACnB,oBAAY,CAAC,gCAAgC,EAAE,iHAAiH;CACjK,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 ACCOUNT_SUPPORT_ACCESS: \"account.support-access\",\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 type Scope = AccountScope | AssetScope | SiteScope;\n\nexport const allScopes = { ...accountScope, ...assetScope, ...siteScope };\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 accountScope.ACCOUNT_ACCESS_MANAGEMENT_MANAGE, // Needed for operators read query. Adding here for now, but the read only query should have a lesser permission.\n];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serversideInterfaces.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/serversideInterfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface IrisAppLifecycleInterface {\n appInstalled?(appToken: string, accountId: string): Promise<unknown>;\n appUpdated?(appToken: string, accountId: string): Promise<unknown>;\n appUninstalled?(appToken: string, accountId: string): Promise<unknown>;\n}\n\nexport type IrisAppLifecycleAppInstalled = NonNullable<IrisAppLifecycleInterface[\"appInstalled\"]>;\nexport type IrisAppLifecycleAppUpdated = NonNullable<IrisAppLifecycleInterface[\"appUpdated\"]>;\nexport type IrisAppLifecycleAppUninstalled = NonNullable<IrisAppLifecycleInterface[\"appUninstalled\"]>;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionPackages.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/subscriptionPackages.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,eAAe,EAAE,iBAAiB;CAC1B,CAAC","sourcesContent":["export const subscriptionPackage = {\n VIEW: \"VIEW\",\n COLLECT: \"COLLECT\",\n INSIGHT: \"INSIGHT\",\n ENTRY: \"ENTRY\",\n EXPLORE: \"EXPLORE\",\n EVOLVE: \"EVOLVE\",\n EXPAND: \"EXPAND\",\n LINK: \"LINK\",\n LIFT: \"LIFT\",\n LEAP: \"LEAP\",\n CUSTOMER_PORTAL: \"CUSTOMER_PORTAL\",\n} as const;\nexport type SubscriptionPackage = (typeof subscriptionPackage)[keyof typeof subscriptionPackage];\n"]}
|