@acorex-platform/module-asset-management-client 0.0.54 → 0.0.57

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.
Files changed (44) hide show
  1. package/fesm2022/acorex-platform-module-asset-management-client-acorex-platform-module-asset-management-client-B7YXKaeh.mjs +2789 -0
  2. package/fesm2022/acorex-platform-module-asset-management-client-acorex-platform-module-asset-management-client-B7YXKaeh.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-asset-management-client-asset-usage-values-widget-edit.component-qauvpIMv.mjs +276 -0
  4. package/fesm2022/acorex-platform-module-asset-management-client-asset-usage-values-widget-edit.component-qauvpIMv.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-asset-management-client-asset-usage-values-widget-view.component-5psJebph.mjs +55 -0
  6. package/fesm2022/acorex-platform-module-asset-management-client-asset-usage-values-widget-view.component-5psJebph.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs +105 -1
  8. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset-type.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs +291 -6
  10. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entities-asset.mjs.map +1 -1
  11. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-BqTxF2sX.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-CnuEulTO.mjs} +9 -9
  12. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-BqTxF2sX.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-acorex-platform-module-asset-management-client-contracts-entity-catalog-CnuEulTO.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-M-klzvLG.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-Cy6qssiv.mjs} +2 -2
  14. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-M-klzvLG.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-rental-history.entity-Cy6qssiv.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-Bl7tfdX2.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-BvXjVaqK.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-Bl7tfdX2.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-assignment.entity-BvXjVaqK.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-Vzxm-Xkl.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-DanmgSHH.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-Vzxm-Xkl.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system-type.entity-DanmgSHH.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BPM49QqC.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BO2GQu2_.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BPM49QqC.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-system.entity-BO2GQu2_.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-Bz8SwpFk.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-DumWQV-O.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-Bz8SwpFk.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section-component.entity-DumWQV-O.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-j34Of0mA.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-B5Z8s8_4.mjs} +2 -2
  24. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-j34Of0mA.mjs.map → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type-section.entity-B5Z8s8_4.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-DWL3Sh0E.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-BO3otOO_.mjs} +65 -3
  26. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-BO3otOO_.mjs.map +1 -0
  27. package/fesm2022/{acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-CTfucn7k.mjs → acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-CvCBkNVZ.mjs} +251 -8
  28. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-CvCBkNVZ.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.interval-kind-nMKvWqpx.mjs +45 -0
  30. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.interval-kind-nMKvWqpx.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog.mjs +1 -1
  32. package/fesm2022/acorex-platform-module-asset-management-client-contracts.mjs +241 -1
  33. package/fesm2022/acorex-platform-module-asset-management-client-contracts.mjs.map +1 -1
  34. package/fesm2022/{acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-ueTauO_k.mjs → acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-RGXS9fI1.mjs} +2 -2
  35. package/fesm2022/{acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-ueTauO_k.mjs.map → acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-RGXS9fI1.mjs.map} +1 -1
  36. package/fesm2022/acorex-platform-module-asset-management-client.mjs +1 -2496
  37. package/fesm2022/acorex-platform-module-asset-management-client.mjs.map +1 -1
  38. package/i18n/en-AU/asset-management.json +856 -0
  39. package/i18n/en-US/asset-management.json +856 -0
  40. package/i18n/fa-IR/asset-management.json +1277 -0
  41. package/package.json +2 -2
  42. package/types/acorex-platform-module-asset-management-client-contracts.d.ts +72 -2
  43. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset-type.entity-DWL3Sh0E.mjs.map +0 -1
  44. package/fesm2022/acorex-platform-module-asset-management-client-contracts-entity-catalog-asset.entity-CTfucn7k.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-asset-management-client-contracts.mjs","sources":["../../../../libs/modules/asset-management/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/asset-management/contracts/src/commands.keys.ts","../../../../libs/modules/asset-management/contracts/src/features.keys.ts","../../../../libs/modules/asset-management/contracts/src/menu.keys.ts","../../../../libs/modules/asset-management/contracts/src/permission.keys.ts","../../../../libs/modules/asset-management/contracts/src/ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/asset-management/contracts/src/AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY.ts","../../../../libs/modules/asset-management/contracts/src/AXM_ASSET_STATUS_DEFINITION_KEY.ts","../../../../libs/modules/asset-management/contracts/src/asset-rental-history.actions.ts","../../../../libs/modules/asset-management/contracts/src/asset-rental-history.status.ts","../../../../libs/modules/asset-management/contracts/src/asset-type-section-builder.types.ts","../../../../libs/modules/asset-management/contracts/src/asset.status.ts","../../../../libs/modules/asset-management/contracts/src/asset.lifecycle.ts","../../../../libs/modules/asset-management/contracts/src/root-config.ts","../../../../libs/modules/asset-management/contracts/src/manifest.ts","../../../../libs/modules/asset-management/contracts/src/index.ts","../../../../libs/modules/asset-management/contracts/src/acorex-platform-module-asset-management-client-contracts.ts"],"sourcesContent":["/** Asset booking catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const ASSET_CATALOG_SCOPE_BOOKING = 'asset-management.booking';\n","//#region ---- Command keys ----\n\nexport const AXMAssetManagementCommandKeys = {\n AssetRentalHistory: {\n RentFrom: 'AssetManagement.AssetRentalHistory:RentFrom',\n RentTo: 'AssetManagement.AssetRentalHistory:RentTo',\n },\n WorkflowActivity: {\n RecalculateOperationalStatus: 'workflow-activity:recalculate-asset-operational-status',\n },\n} as const;\n\n//#endregion\n","export const AXMAssetManagementFeatureKeys = {\n AssetManagement: 'AssetManagement:Feature:Management',\n AdvancedMaintenance: 'AssetManagement:Feature:Advanced.Maintenance',\n MaintenanceScheduling: 'AssetManagement:Feature:Maintenance.Scheduling',\n InspectionWorkflow: 'AssetManagement:Feature:Inspection.Workflow',\n} as const;\n","export const AXMAssetManagementMenuKeys = {\n Root: 'AssetManagement:Menu',\n MainPlanEquipmentAssetsMaintenanceDivider: 'AssetManagement:Menu:MainPlanEquipment:AssetsMaintenanceDivider',\n PlanEquipmentAssets: 'AssetManagement:Menu:PlantEquipment:Assets',\n PlanEquipmentAssetsMaintenanceDivider: 'AssetManagement:Menu:PlantEquipment:AssetsMaintenanceDivider',\n Assets: 'AssetManagement:Menu:Assets',\n AssetSystems: 'AssetManagement:Menu:AssetSystems',\n AssetTypes: 'AssetManagement:Menu:AssetTypes',\n AssetSystemTypes: 'AssetManagement:Menu:AssetSystemTypes',\n AssetTypeSections: 'AssetManagement:Menu:AssetTypeSections',\n} as const;\n","/**\n * Assets & Maintenance capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPAssetsMaintenancePermissionKeys = {\n Access: 'AssetsMaintenance:Permission:Access',\n MaintainAssets: 'AssetsMaintenance:Permission:MaintainAssets',\n MaintainMaintenance: 'AssetsMaintenance:Permission:MaintainMaintenance',\n Setup: 'AssetsMaintenance:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPAssetsMaintenancePermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMAssetManagementPermissionKeys = {\n AssetManagement: {\n Management: AXPAssetsMaintenancePermissionKeys.Access,\n Asset: {\n Management: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n View: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n Create: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n Update: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n Delete: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n },\n },\n} as const;\n","/** Registry key for the asset type Components custom page tab. */\nexport const ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY = 'asset-type-components-page';\n","/** Status provider key for `lifecycleStatusId` on AssetManagement.Asset (lifecycle status). */\nexport const AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY = 'asset-management.status.asset-lifecycle';\n","/** Status provider key for `statusId` on AssetManagement.Asset (operational status). */\nexport const AXM_ASSET_STATUS_DEFINITION_KEY = 'asset-management.status.asset';\n","import { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityAction, AXPEntityCommandScope, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\n\nimport { AXMAssetManagementCommandKeys } from './commands.keys';\n\n//#region ---- Rent list actions ----\n\n/** Type-level create actions for rent-from / rent-to (list and asset related-entity). */\nexport const assetRentalHistoryRentActions: AXPEntityAction[] = [\n {\n name: 'rent-from',\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.actions.rent-from.title',\n command: {\n name: AXMAssetManagementCommandKeys.AssetRentalHistory.RentFrom,\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: { assetId: '{{context.eval(\"id\")}}' },\n },\n },\n },\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'rent-to',\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.actions.rent-to.title',\n command: {\n name: AXMAssetManagementCommandKeys.AssetRentalHistory.RentTo,\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: { assetId: '{{context.eval(\"id\")}}' },\n },\n },\n },\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ...entityMasterCrudActions({ create: false, view: false }),\n];\n\n//#endregion\n","//#region ---- Status enum ----\n\nexport enum AXMAssetRentalHistoryStatus {\n Draft = 'draft',\n Active = 'active',\n Returned = 'returned',\n Overdue = 'overdue',\n Cancelled = 'cancelled',\n}\n\n//#endregion\n","import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Asset type section builder value types ----\n\nexport interface AXMAssetTypeSectionBuilderItemValue {\n id: string;\n assetTypeSectionId: string;\n /**\n * Original source component id when a section item is expanded to multiple\n * assignment slots (based on count) in asset-link mode.\n */\n assetTypeSectionComponentId?: string;\n assetTypeId: string;\n assetTypeSection?: {\n id: string;\n code: number;\n title: string;\n description?: string;\n };\n assetType: {\n id: string;\n name: string | AXPMultiLanguageString;\n };\n count: number;\n roleName: string | AXPMultiLanguageString;\n hasMaintenance: boolean;\n /**\n * Selected asset link for this slot in asset-link mode.\n */\n assetId?: string;\n asset?: {\n id: string;\n code?: string;\n title?: string | AXPMultiLanguageString;\n };\n}\n\nexport interface AXMAssetTypeSectionBuilderSectionValue {\n id: string;\n code: number;\n title: string | AXPMultiLanguageString;\n assetTypeId: string;\n description?: string | AXPMultiLanguageString;\n items: AXMAssetTypeSectionBuilderItemValue[];\n}\n\nexport interface AXMAssetTypeSectionBuilderValue {\n sections: AXMAssetTypeSectionBuilderSectionValue[];\n}\n\n//#endregion\n","//#region ---- Status enum ----\n\nexport enum AXMAssetStatus {\n Available = 'available',\n Assigned = 'assigned',\n UnderMaintenanceInspection = 'underMaintenanceInspection',\n OutOfService = 'outOfService',\n Lost = 'lost',\n}\n\n//#endregion\n","//#region ---- Status enum ----\n\nexport enum AXMAssetLifecycleStatus {\n Created = 'created',\n Active = 'active',\n Retired = 'retired',\n Disposed = 'disposed',\n}\n","//#region ---- Root Configuration ----\n\nconst config = {\n i18n: 'asset-management',\n module: 'AssetManagement',\n route: 'asset-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: config.route,\n name: config.module,\n title: '@asset-management:module.title',\n icon: 'fa-light fa-industry',\n },\n entities: {\n assetRentalHistory: {\n name: 'AssetRentalHistory',\n source: `${config.module}.AssetRentalHistory`,\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.title',\n titlePlural: '@asset-management:assetRentalHistories.entities.assetRentalHistory.plural',\n icon: 'fa-light fa-file-contract',\n },\n assetSystemAssignment: {\n name: 'AssetSystemAssignment',\n source: `${config.module}.AssetSystemAssignment`,\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.title',\n titlePlural: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.plural',\n icon: 'fa-light fa-link',\n },\n asset: {\n name: 'Asset',\n source: `${config.module}.Asset`,\n title: '@asset-management:assets.entities.asset.title',\n titlePlural: '@asset-management:assets.entities.asset.plural',\n icon: 'fa-light fa-box',\n },\n assetType: {\n name: 'AssetType',\n source: `${config.module}.AssetType`,\n title: '@asset-management:assetTypes.entities.assetType.title',\n titlePlural: '@asset-management:assetTypes.entities.assetType.plural',\n icon: 'fa-light fa-cubes',\n },\n assetTypeSection: {\n name: 'AssetTypeSection',\n source: `${config.module}.AssetTypeSection`,\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.title',\n titlePlural: '@asset-management:assetTypeSections.entities.assetTypeSection.plural',\n icon: 'fa-light fa-layer-group',\n },\n assetTypeSectionComponent: {\n name: 'AssetTypeSectionComponent',\n source: `${config.module}.AssetTypeSectionComponent`,\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.title',\n titlePlural: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n assetSystemType: {\n name: 'AssetSystemType',\n source: `${config.module}.AssetSystemType`,\n title: '@asset-management:assetSystemTypes.entities.assetSystemType.title',\n titlePlural: '@asset-management:assetSystemTypes.entities.assetSystemType.plural',\n icon: 'fa-light fa-diagram-subtask',\n },\n assetSystem: {\n name: 'AssetSystem',\n source: `${config.module}.AssetSystem`,\n title: 'Asset System',\n titlePlural: 'Asset Systems',\n icon: 'fa-light fa-diagram-project',\n },\n manualAssetCategory: {\n name: 'ManualAssetCategory',\n source: `${config.module}.ManualAssetCategory`,\n title: '@asset-management:asset-categories.entities.asset-category.title',\n titlePlural: '@asset-management:asset-categories.entities.asset-category.plural',\n icon: 'fa-light fa-tags',\n },\n // inspection: {\n // name: 'Inspection',\n // source: `${config.module}.Inspection`,\n // title: '@asset-management:inspections.entities.inspection.title',\n // titlePlural: '@asset-management:inspections.entities.inspection.plural',\n // icon: 'fa-light fa-clipboard-check',\n // },\n // assetStatus: {\n // name: 'AssetStatus',\n // source: `${config.module}.AssetStatus`,\n // title: '@asset-management:asset-statuses.entities.asset-status.title',\n // titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',\n // icon: 'fa-light fa-signal',\n // },\n },\n queries: {\n reports: {\n getAssetsByStatus: `${config.module}:Reports:GetAssetsByStatus`,\n getRentalUtilization: `${config.module}:Reports:GetRentalUtilization`,\n },\n },\n} as const;\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Asset Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const AssetManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'domain',\n domain: 'asset-maintenance',\n required: false,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\n\nexport * from './ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY';\nexport * from './AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY';\nexport * from './AXM_ASSET_STATUS_DEFINITION_KEY';\nexport * from './asset-rental-history.actions';\nexport * from './asset-rental-history.status';\nexport * from './asset-type-section-builder.types';\nexport * from './asset.status';\nexport * from './asset.lifecycle';\n\nexport * from './root-config';\nexport * from './manifest';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACO,MAAM,2BAA2B,GAAG;;ACD3C;AAEO,MAAM,6BAA6B,GAAG;AAC3C,IAAA,kBAAkB,EAAE;AAClB,QAAA,QAAQ,EAAE,6CAA6C;AACvD,QAAA,MAAM,EAAE,2CAA2C;AACpD,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA,4BAA4B,EAAE,wDAAwD;AACvF,KAAA;;AAGH;;ACZO,MAAM,6BAA6B,GAAG;AAC3C,IAAA,eAAe,EAAE,oCAAoC;AACrD,IAAA,mBAAmB,EAAE,8CAA8C;AACnE,IAAA,qBAAqB,EAAE,gDAAgD;AACvE,IAAA,kBAAkB,EAAE,6CAA6C;;;ACJ5D,MAAM,0BAA0B,GAAG;AACxC,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,yCAAyC,EAAE,iEAAiE;AAC5G,IAAA,mBAAmB,EAAE,4CAA4C;AACjE,IAAA,qCAAqC,EAAE,8DAA8D;AACrG,IAAA,MAAM,EAA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3,"file":"acorex-platform-module-asset-management-client-contracts.mjs","sources":["../../../../libs/modules/asset-management/contracts/src/catalog-scope.keys.ts","../../../../libs/modules/asset-management/contracts/src/commands.keys.ts","../../../../libs/modules/asset-management/contracts/src/features.keys.ts","../../../../libs/modules/asset-management/contracts/src/menu.keys.ts","../../../../libs/modules/asset-management/contracts/src/permission.keys.ts","../../../../libs/modules/asset-management/contracts/src/ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/asset-management/contracts/src/AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY.ts","../../../../libs/modules/asset-management/contracts/src/AXM_ASSET_STATUS_DEFINITION_KEY.ts","../../../../libs/modules/asset-management/contracts/src/asset-rental-history.actions.ts","../../../../libs/modules/asset-management/contracts/src/asset-rental-history.status.ts","../../../../libs/modules/asset-management/contracts/src/asset-type-section-builder.types.ts","../../../../libs/modules/asset-management/contracts/src/asset.status.ts","../../../../libs/modules/asset-management/contracts/src/asset.lifecycle.ts","../../../../libs/modules/asset-management/contracts/src/asset.interval-kind.ts","../../../../libs/modules/asset-management/contracts/src/asset.interval-unit.ts","../../../../libs/modules/asset-management/contracts/src/asset.usage-value.ts","../../../../libs/modules/asset-management/contracts/src/root-config.ts","../../../../libs/modules/asset-management/contracts/src/manifest.ts","../../../../libs/modules/asset-management/contracts/src/index.ts","../../../../libs/modules/asset-management/contracts/src/acorex-platform-module-asset-management-client-contracts.ts"],"sourcesContent":["/** Asset booking catalog scope for questionnaires, question bank items, and workflow definitions. */\nexport const ASSET_CATALOG_SCOPE_BOOKING = 'asset-management.booking';\n","//#region ---- Command keys ----\n\nexport const AXMAssetManagementCommandKeys = {\n AssetRentalHistory: {\n RentFrom: 'AssetManagement.AssetRentalHistory:RentFrom',\n RentTo: 'AssetManagement.AssetRentalHistory:RentTo',\n },\n WorkflowActivity: {\n RecalculateOperationalStatus: 'workflow-activity:recalculate-asset-operational-status',\n },\n} as const;\n\n//#endregion\n","export const AXMAssetManagementFeatureKeys = {\n AssetManagement: 'AssetManagement:Feature:Management',\n AdvancedMaintenance: 'AssetManagement:Feature:Advanced.Maintenance',\n MaintenanceScheduling: 'AssetManagement:Feature:Maintenance.Scheduling',\n InspectionWorkflow: 'AssetManagement:Feature:Inspection.Workflow',\n} as const;\n","export const AXMAssetManagementMenuKeys = {\n Root: 'AssetManagement:Menu',\n MainPlanEquipmentAssetsMaintenanceDivider: 'AssetManagement:Menu:MainPlanEquipment:AssetsMaintenanceDivider',\n PlanEquipmentAssets: 'AssetManagement:Menu:PlantEquipment:Assets',\n PlanEquipmentAssetsMaintenanceDivider: 'AssetManagement:Menu:PlantEquipment:AssetsMaintenanceDivider',\n Assets: 'AssetManagement:Menu:Assets',\n AssetSystems: 'AssetManagement:Menu:AssetSystems',\n AssetTypes: 'AssetManagement:Menu:AssetTypes',\n AssetSystemTypes: 'AssetManagement:Menu:AssetSystemTypes',\n AssetTypeSections: 'AssetManagement:Menu:AssetTypeSections',\n} as const;\n","/**\n * Assets & Maintenance capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPAssetsMaintenancePermissionKeys = {\n Access: 'AssetsMaintenance:Permission:Access',\n MaintainAssets: 'AssetsMaintenance:Permission:MaintainAssets',\n MaintainMaintenance: 'AssetsMaintenance:Permission:MaintainMaintenance',\n Setup: 'AssetsMaintenance:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPAssetsMaintenancePermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMAssetManagementPermissionKeys = {\n AssetManagement: {\n Management: AXPAssetsMaintenancePermissionKeys.Access,\n Asset: {\n Management: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n View: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n Create: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n Update: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n Delete: AXPAssetsMaintenancePermissionKeys.MaintainAssets,\n },\n },\n} as const;\n","/** Registry key for the asset type Components custom page tab. */\nexport const ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY = 'asset-type-components-page';\n","/** Status provider key for `lifecycleStatusId` on AssetManagement.Asset (lifecycle status). */\nexport const AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY = 'asset-management.status.asset-lifecycle';\n","/** Status provider key for `statusId` on AssetManagement.Asset (operational status). */\nexport const AXM_ASSET_STATUS_DEFINITION_KEY = 'asset-management.status.asset';\n","import { AXPSystemActionType } from '@acorex-platform/framework-shared/core';\nimport { AXPEntityAction, AXPEntityCommandScope, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';\n\nimport { AXMAssetManagementCommandKeys } from './commands.keys';\n\n//#region ---- Rent list actions ----\n\n/** Type-level create actions for rent-from / rent-to (list and asset related-entity). */\nexport const assetRentalHistoryRentActions: AXPEntityAction[] = [\n {\n name: 'rent-from',\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.actions.rent-from.title',\n command: {\n name: AXMAssetManagementCommandKeys.AssetRentalHistory.RentFrom,\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: { assetId: '{{context.eval(\"id\")}}' },\n },\n },\n },\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n {\n name: 'rent-to',\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.actions.rent-to.title',\n command: {\n name: AXMAssetManagementCommandKeys.AssetRentalHistory.RentTo,\n options: {\n process: {\n redirect: false,\n canCreateNewOne: true,\n data: { assetId: '{{context.eval(\"id\")}}' },\n },\n },\n },\n priority: 'primary',\n type: AXPSystemActionType.Create,\n scope: AXPEntityCommandScope.TypeLevel,\n },\n ...entityMasterCrudActions({ create: false, view: false }),\n];\n\n//#endregion\n","//#region ---- Status enum ----\n\nexport enum AXMAssetRentalHistoryStatus {\n Draft = 'draft',\n Active = 'active',\n Returned = 'returned',\n Overdue = 'overdue',\n Cancelled = 'cancelled',\n}\n\n//#endregion\n","import type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Asset type section builder value types ----\n\nexport interface AXMAssetTypeSectionBuilderItemValue {\n id: string;\n assetTypeSectionId: string;\n /**\n * Original source component id when a section item is expanded to multiple\n * assignment slots (based on count) in asset-link mode.\n */\n assetTypeSectionComponentId?: string;\n assetTypeId: string;\n assetTypeSection?: {\n id: string;\n code: number;\n title: string;\n description?: string;\n };\n assetType: {\n id: string;\n name: string | AXPMultiLanguageString;\n };\n count: number;\n roleName: string | AXPMultiLanguageString;\n hasMaintenance: boolean;\n /**\n * Selected asset link for this slot in asset-link mode.\n */\n assetId?: string;\n asset?: {\n id: string;\n code?: string;\n title?: string | AXPMultiLanguageString;\n };\n}\n\nexport interface AXMAssetTypeSectionBuilderSectionValue {\n id: string;\n code: number;\n title: string | AXPMultiLanguageString;\n assetTypeId: string;\n description?: string | AXPMultiLanguageString;\n items: AXMAssetTypeSectionBuilderItemValue[];\n}\n\nexport interface AXMAssetTypeSectionBuilderValue {\n sections: AXMAssetTypeSectionBuilderSectionValue[];\n}\n\n//#endregion\n","//#region ---- Status enum ----\n\nexport enum AXMAssetStatus {\n Available = 'available',\n Assigned = 'assigned',\n UnderMaintenanceInspection = 'underMaintenanceInspection',\n OutOfService = 'outOfService',\n Lost = 'lost',\n}\n\n//#endregion\n","//#region ---- Status enum ----\n\nexport enum AXMAssetLifecycleStatus {\n Created = 'created',\n Active = 'active',\n Retired = 'retired',\n Disposed = 'disposed',\n}\n","//#region ---- Interval kind ----\n\n/** Measurement capabilities an asset type can use for maintenance intervals. Combinations are multiple values, not extra enum members. */\nexport enum AXMAssetIntervalKind {\n Date = 'date',\n Distance = 'distance',\n OperatingHours = 'operating-hours',\n OperationCount = 'operation-count',\n}\n\nconst ASSET_INTERVAL_KINDS = new Set<string>(Object.values(AXMAssetIntervalKind));\n\nexport function isAXMAssetIntervalKind(value: string): value is AXMAssetIntervalKind {\n return ASSET_INTERVAL_KINDS.has(value);\n}\n\n/**\n * Reads `supportedIntervalKinds` from a stored row or a select-editor value.\n * Missing or empty input is `[]`. A non-array, or any item that is not a known kind, is invalid.\n * Select rows `{ id }` are accepted and reduced to the id.\n */\nexport function resolveSupportedIntervalKinds(value: unknown): {\n kinds: AXMAssetIntervalKind[];\n invalid: boolean;\n} {\n if (value == null || value === '') {\n return { kinds: [], invalid: false };\n }\n\n if (!Array.isArray(value)) {\n return { kinds: [], invalid: true };\n }\n\n const kinds: AXMAssetIntervalKind[] = [];\n for (const item of value) {\n const raw =\n typeof item === 'string'\n ? item\n : item && typeof item === 'object' && 'id' in item && typeof (item as { id: unknown }).id === 'string'\n ? (item as { id: string }).id\n : '';\n\n if (!isAXMAssetIntervalKind(raw)) {\n return { kinds: [], invalid: true };\n }\n\n if (!kinds.includes(raw)) {\n kinds.push(raw);\n }\n }\n\n return { kinds, invalid: false };\n}\n\n//#endregion\n","//#region ----- Interval unit -----\n\n/** Unit stored on an asset usage reading. Same stored strings as maintenance interval units. */\nexport enum AXMAssetIntervalUnit {\n Kilometer = 'kilometer',\n Mile = 'mile',\n Hour = 'hour',\n Operation = 'operation',\n}\n\nconst ASSET_INTERVAL_UNITS = new Set<string>(Object.values(AXMAssetIntervalUnit));\n\nexport function isAXMAssetIntervalUnit(value: string): value is AXMAssetIntervalUnit {\n return ASSET_INTERVAL_UNITS.has(value);\n}\n\n//#endregion\n","import { AXMAssetIntervalKind } from './asset.interval-kind';\nimport { AXMAssetIntervalUnit, isAXMAssetIntervalUnit } from './asset.interval-unit';\n\n//#region ----- Types -----\n\n/** Meter kinds that can store a current cumulative reading. Date is calendar-only. */\nexport type AXMAssetUsageKind =\n | AXMAssetIntervalKind.Distance\n | AXMAssetIntervalKind.OperatingHours\n | AXMAssetIntervalKind.OperationCount;\n\nexport interface AXMAssetUsageValue {\n kind: AXMAssetUsageKind;\n currentValue: number;\n unit: AXMAssetIntervalUnit;\n /** ISO timestamp of the reading. */\n lastReadingAt?: string;\n}\n\nexport type AXMAssetUsageWriteIssue =\n | 'invalid'\n | 'date-kind'\n | 'negative'\n | 'not-integer'\n | 'unit'\n | 'unsupported-kind'\n | 'decreased'\n | 'unit-changed'\n | 'invalid-reading-at';\n\nexport interface AXMAssetUsageWriteResult {\n values: AXMAssetUsageValue[];\n issue: AXMAssetUsageWriteIssue | null;\n}\n\n//#endregion\n\n//#region ----- Constants -----\n\n/** Entity widget that edits and displays `usageValues`. */\nexport const AXM_ASSET_USAGE_VALUES_WIDGET = 'asset-usage-values-editor';\n\nconst I18N = '@asset-management:assets.entities.asset.fields.usage-values.validation';\n\nexport const AXM_ASSET_USAGE_WRITE_ERRORS: Record<AXMAssetUsageWriteIssue, { message: string; code: string }> = {\n invalid: { message: `${I18N}.invalid`, code: 'ASSET_USAGE_VALUE_INVALID' },\n 'date-kind': { message: `${I18N}.date-kind`, code: 'ASSET_USAGE_VALUE_DATE_KIND' },\n negative: { message: `${I18N}.negative`, code: 'ASSET_USAGE_VALUE_NEGATIVE' },\n 'not-integer': { message: `${I18N}.not-integer`, code: 'ASSET_USAGE_VALUE_NOT_INTEGER' },\n unit: { message: `${I18N}.unit`, code: 'ASSET_USAGE_VALUE_UNIT' },\n 'unsupported-kind': { message: `${I18N}.unsupported-kind`, code: 'ASSET_USAGE_VALUE_UNSUPPORTED_KIND' },\n decreased: { message: `${I18N}.decreased`, code: 'ASSET_USAGE_VALUE_DECREASED' },\n 'unit-changed': { message: `${I18N}.unit-changed`, code: 'ASSET_USAGE_VALUE_UNIT_CHANGED' },\n 'invalid-reading-at': { message: `${I18N}.invalid-reading-at`, code: 'ASSET_USAGE_VALUE_READING_AT' },\n};\n\n//#endregion\n\n//#region ----- Kind and unit -----\n\nexport function isAXMAssetUsageKind(value: string): value is AXMAssetUsageKind {\n return (\n value === AXMAssetIntervalKind.Distance ||\n value === AXMAssetIntervalKind.OperatingHours ||\n value === AXMAssetIntervalKind.OperationCount\n );\n}\n\nexport function isAXMAssetUsageUnitForKind(kind: AXMAssetUsageKind, unit: AXMAssetIntervalUnit): boolean {\n switch (kind) {\n case AXMAssetIntervalKind.Distance:\n return unit === AXMAssetIntervalUnit.Kilometer || unit === AXMAssetIntervalUnit.Mile;\n case AXMAssetIntervalKind.OperatingHours:\n return unit === AXMAssetIntervalUnit.Hour;\n case AXMAssetIntervalKind.OperationCount:\n return unit === AXMAssetIntervalUnit.Operation;\n }\n}\n\nfunction supportedUsageKinds(kinds: readonly string[]): Set<AXMAssetUsageKind> {\n const set = new Set<AXMAssetUsageKind>();\n for (const kind of kinds) {\n if (isAXMAssetUsageKind(kind)) {\n set.add(kind);\n }\n }\n return set;\n}\n\n//#endregion\n\n//#region ----- Read -----\n\nfunction toIsoTimestamp(value: unknown): string | null {\n if (value instanceof Date) {\n return Number.isNaN(value.getTime()) ? null : value.toISOString();\n }\n if (typeof value !== 'string' || value.trim().length === 0) {\n return null;\n }\n const parsed = new Date(value);\n return Number.isNaN(parsed.getTime()) ? null : parsed.toISOString();\n}\n\nfunction readOne(item: unknown): AXMAssetUsageValue | null {\n if (!item || typeof item !== 'object' || Array.isArray(item)) {\n return null;\n }\n const record = item as Record<string, unknown>;\n const kind = record['kind'];\n if (typeof kind !== 'string' || !isAXMAssetUsageKind(kind)) {\n return null;\n }\n const currentValue = record['currentValue'];\n if (typeof currentValue !== 'number' || !Number.isFinite(currentValue) || currentValue < 0) {\n return null;\n }\n if (kind === AXMAssetIntervalKind.OperationCount && !Number.isInteger(currentValue)) {\n return null;\n }\n const unit = record['unit'];\n if (typeof unit !== 'string' || !isAXMAssetIntervalUnit(unit) || !isAXMAssetUsageUnitForKind(kind, unit)) {\n return null;\n }\n const value: AXMAssetUsageValue = { kind, currentValue, unit };\n if (record['lastReadingAt'] != null) {\n const lastReadingAt = toIsoTimestamp(record['lastReadingAt']);\n if (!lastReadingAt) {\n return null;\n }\n value.lastReadingAt = lastReadingAt;\n }\n return value;\n}\n\n/** Missing, invalid, or date readings become `[]` or are dropped. The last item of a kind wins. */\nexport function readAssetUsageValues(value: unknown): AXMAssetUsageValue[] {\n if (!Array.isArray(value)) {\n return [];\n }\n const byKind = new Map<AXMAssetUsageKind, AXMAssetUsageValue>();\n for (const item of value) {\n const reading = readOne(item);\n if (reading) {\n byKind.set(reading.kind, reading);\n }\n }\n return [...byKind.values()];\n}\n\n//#endregion\n\n//#region ----- Write -----\n\nfunction parseOne(item: unknown): { value: AXMAssetUsageValue } | { issue: AXMAssetUsageWriteIssue } {\n if (!item || typeof item !== 'object' || Array.isArray(item)) {\n return { issue: 'invalid' };\n }\n const record = item as Record<string, unknown>;\n const kind = record['kind'];\n if (kind === AXMAssetIntervalKind.Date) {\n return { issue: 'date-kind' };\n }\n if (typeof kind !== 'string' || !isAXMAssetUsageKind(kind)) {\n return { issue: 'invalid' };\n }\n const currentValue = record['currentValue'];\n if (typeof currentValue !== 'number' || !Number.isFinite(currentValue)) {\n return { issue: 'invalid' };\n }\n if (currentValue < 0) {\n return { issue: 'negative' };\n }\n if (kind === AXMAssetIntervalKind.OperationCount && !Number.isInteger(currentValue)) {\n return { issue: 'not-integer' };\n }\n const unit = record['unit'];\n if (typeof unit !== 'string' || !isAXMAssetIntervalUnit(unit) || !isAXMAssetUsageUnitForKind(kind, unit)) {\n return { issue: 'unit' };\n }\n const value: AXMAssetUsageValue = { kind, currentValue, unit };\n if (record['lastReadingAt'] != null) {\n const lastReadingAt = toIsoTimestamp(record['lastReadingAt']);\n if (!lastReadingAt) {\n return { issue: 'invalid-reading-at' };\n }\n value.lastReadingAt = lastReadingAt;\n }\n return { value };\n}\n\n/**\n * Normalizes a create/update payload.\n * One item per kind; a later item replaces the earlier one.\n * On update, kinds omitted from the payload stay. A lower value or a unit change is rejected.\n */\nexport function resolveAssetUsageWrite(\n value: unknown,\n options: {\n supportedKinds: readonly string[];\n previous?: unknown;\n mergeWithPrevious: boolean;\n },\n): AXMAssetUsageWriteResult {\n const previous = options.mergeWithPrevious ? readAssetUsageValues(options.previous) : [];\n const previousByKind = new Map(previous.map((item) => [item.kind, item]));\n\n if (value == null) {\n return { values: previous, issue: null };\n }\n if (!Array.isArray(value)) {\n return { values: [], issue: 'invalid' };\n }\n\n const incoming = new Map<AXMAssetUsageKind, AXMAssetUsageValue>();\n for (const item of value) {\n const parsed = parseOne(item);\n if ('issue' in parsed) {\n return { values: [], issue: parsed.issue };\n }\n incoming.set(parsed.value.kind, parsed.value);\n }\n\n const supported = supportedUsageKinds(options.supportedKinds);\n for (const reading of incoming.values()) {\n if (!supported.has(reading.kind)) {\n return { values: [], issue: 'unsupported-kind' };\n }\n const stored = previousByKind.get(reading.kind);\n if (!stored) {\n continue;\n }\n if (stored.unit !== reading.unit) {\n return { values: [], issue: 'unit-changed' };\n }\n if (reading.currentValue < stored.currentValue) {\n return { values: [], issue: 'decreased' };\n }\n }\n\n const merged = new Map(previousByKind);\n for (const [kind, reading] of incoming) {\n merged.set(kind, reading);\n }\n\n return { values: [...merged.values()], issue: null };\n}\n\n//#endregion\n","//#region ---- Root Configuration ----\n\nconst config = {\n i18n: 'asset-management',\n module: 'AssetManagement',\n route: 'asset-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: config.route,\n name: config.module,\n title: '@asset-management:module.title',\n icon: 'fa-light fa-industry',\n },\n entities: {\n assetRentalHistory: {\n name: 'AssetRentalHistory',\n source: `${config.module}.AssetRentalHistory`,\n title: '@asset-management:assetRentalHistories.entities.assetRentalHistory.title',\n titlePlural: '@asset-management:assetRentalHistories.entities.assetRentalHistory.plural',\n icon: 'fa-light fa-file-contract',\n },\n assetSystemAssignment: {\n name: 'AssetSystemAssignment',\n source: `${config.module}.AssetSystemAssignment`,\n title: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.title',\n titlePlural: '@asset-management:assetSystemAssignments.entities.assetSystemAssignment.plural',\n icon: 'fa-light fa-link',\n },\n asset: {\n name: 'Asset',\n source: `${config.module}.Asset`,\n title: '@asset-management:assets.entities.asset.title',\n titlePlural: '@asset-management:assets.entities.asset.plural',\n icon: 'fa-light fa-box',\n },\n assetType: {\n name: 'AssetType',\n source: `${config.module}.AssetType`,\n title: '@asset-management:assetTypes.entities.assetType.title',\n titlePlural: '@asset-management:assetTypes.entities.assetType.plural',\n icon: 'fa-light fa-cubes',\n },\n assetTypeSection: {\n name: 'AssetTypeSection',\n source: `${config.module}.AssetTypeSection`,\n title: '@asset-management:assetTypeSections.entities.assetTypeSection.title',\n titlePlural: '@asset-management:assetTypeSections.entities.assetTypeSection.plural',\n icon: 'fa-light fa-layer-group',\n },\n assetTypeSectionComponent: {\n name: 'AssetTypeSectionComponent',\n source: `${config.module}.AssetTypeSectionComponent`,\n title: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.title',\n titlePlural: '@asset-management:assetTypeSectionComponents.entities.assetTypeSectionComponent.plural',\n icon: 'fa-light fa-puzzle-piece',\n },\n assetSystemType: {\n name: 'AssetSystemType',\n source: `${config.module}.AssetSystemType`,\n title: '@asset-management:assetSystemTypes.entities.assetSystemType.title',\n titlePlural: '@asset-management:assetSystemTypes.entities.assetSystemType.plural',\n icon: 'fa-light fa-diagram-subtask',\n },\n assetSystem: {\n name: 'AssetSystem',\n source: `${config.module}.AssetSystem`,\n title: 'Asset System',\n titlePlural: 'Asset Systems',\n icon: 'fa-light fa-diagram-project',\n },\n manualAssetCategory: {\n name: 'ManualAssetCategory',\n source: `${config.module}.ManualAssetCategory`,\n title: '@asset-management:asset-categories.entities.asset-category.title',\n titlePlural: '@asset-management:asset-categories.entities.asset-category.plural',\n icon: 'fa-light fa-tags',\n },\n // inspection: {\n // name: 'Inspection',\n // source: `${config.module}.Inspection`,\n // title: '@asset-management:inspections.entities.inspection.title',\n // titlePlural: '@asset-management:inspections.entities.inspection.plural',\n // icon: 'fa-light fa-clipboard-check',\n // },\n // assetStatus: {\n // name: 'AssetStatus',\n // source: `${config.module}.AssetStatus`,\n // title: '@asset-management:asset-statuses.entities.asset-status.title',\n // titlePlural: '@asset-management:asset-statuses.entities.asset-status.plural',\n // icon: 'fa-light fa-signal',\n // },\n },\n queries: {\n reports: {\n getAssetsByStatus: `${config.module}:Reports:GetAssetsByStatus`,\n getRentalUtilization: `${config.module}:Reports:GetRentalUtilization`,\n },\n },\n} as const;\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Asset Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const AssetManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'domain',\n domain: 'asset-maintenance',\n required: false,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Contracts barrel ----\n\nexport * from './catalog-scope.keys';\nexport * from './commands.keys';\nexport * from './features.keys';\nexport * from './menu.keys';\nexport * from './permission.keys';\n\nexport * from './ASSET_TYPE_COMPONENTS_PAGE_COMPONENT_KEY';\nexport * from './AXM_ASSET_LIFECYCLE_STATUS_DEFINITION_KEY';\nexport * from './AXM_ASSET_STATUS_DEFINITION_KEY';\nexport * from './asset-rental-history.actions';\nexport * from './asset-rental-history.status';\nexport * from './asset-type-section-builder.types';\nexport * from './asset.status';\nexport * from './asset.lifecycle';\nexport * from './asset.interval-kind';\nexport * from './asset.interval-unit';\nexport * from './asset.usage-value';\n\nexport * from './root-config';\nexport * from './manifest';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACO,MAAM,2BAA2B,GAAG;;ACD3C;AAEO,MAAM,6BAA6B,GAAG;AAC3C,IAAA,kBAAkB,EAAE;AAClB,QAAA,QAAQ,EAAE,6CAA6C;AACvD,QAAA,MAAM,EAAE,2CAA2C;AACpD,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,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AAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,mBAAmB;AAC3B,IAAA,QAAQ,EAAE,KAAK;;;AAKjB;;AC1BA;;ACAA;;AAEG;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, Injectable } from '@angular/core';
3
3
  import { isString } from 'lodash';
4
- import { AXMAssetOperationalStatusService } from './acorex-platform-module-asset-management-client.mjs';
4
+ import { A as AXMAssetOperationalStatusService } from './acorex-platform-module-asset-management-client-acorex-platform-module-asset-management-client-B7YXKaeh.mjs';
5
5
 
6
6
  //#endregion
7
7
  /**
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
59
59
  }] });
60
60
 
61
61
  export { RecalculateAssetOperationalStatusActivity };
62
- //# sourceMappingURL=acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-ueTauO_k.mjs.map
62
+ //# sourceMappingURL=acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-RGXS9fI1.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-ueTauO_k.mjs","sources":["../../../../libs/modules/asset-management/client/src/lib/features/workflows/recalculate-asset-operational-status.activity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { inject, Injectable } from '@angular/core';\nimport { isString } from 'lodash';\n\nimport { AXMAssetOperationalStatusService } from '../../services/asset-operational-status.service';\nimport type {\n AXMAssetOperationalStatusRecalculateResult,\n AXMAssetOperationalStatusTrigger,\n} from '../../services/asset-operational-status.types';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface RecalculateAssetOperationalStatusInput {\n assetId: string;\n trigger: AXMAssetOperationalStatusTrigger;\n workOrderId?: string;\n maintenanceTypeId?: string;\n}\n\n//#endregion\n\n/**\n * Workflow activity wrapper for {@link AXMAssetOperationalStatusService.recalculate}.\n */\n@Injectable({ providedIn: 'root' })\nexport class RecalculateAssetOperationalStatusActivity\n implements AXPCommand<RecalculateAssetOperationalStatusInput, AXMAssetOperationalStatusRecalculateResult>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly assetOperationalStatusService = inject(AXMAssetOperationalStatusService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(\n input: RecalculateAssetOperationalStatusInput,\n ): AXPCommandExecuteResultPromise<AXMAssetOperationalStatusRecalculateResult> {\n const assetId = input?.assetId?.trim();\n const trigger = input?.trigger;\n\n if (!assetId) {\n return {\n success: false,\n message: { text: 'assetId is required' },\n metadata: { outcome: 'Failed' },\n };\n }\n\n if (trigger !== 'work-started' && trigger !== 'work-completed' && trigger !== 'work-signed-off') {\n return {\n success: false,\n message: { text: 'trigger must be work-started, work-completed, or work-signed-off' },\n metadata: { outcome: 'Failed' },\n };\n }\n\n try {\n const result = await this.assetOperationalStatusService.recalculate(assetId, trigger, {\n workOrderId: isString(input.workOrderId) ? input.workOrderId.trim() : undefined,\n maintenanceTypeId: isString(input.maintenanceTypeId) ? input.maintenanceTypeId.trim() : undefined,\n });\n\n return { success: true, kind: 'object',\n data: result,\n metadata: { outcome: 'Done' },\n };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Recalculate failed';\n return {\n success: false,\n message: { text: message },\n metadata: { outcome: 'Failed' },\n };\n }\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;AAwBA;AAEA;;AAEG;MAEU,yCAAyC,CAAA;AADtD,IAAA,WAAA,GAAA;;AAMmB,QAAA,IAAA,CAAA,6BAA6B,GAAG,MAAM,CAAC,gCAAgC,CAAC;AAiD1F,IAAA;;;IA3CC,MAAM,OAAO,CACX,KAA6C,EAAA;QAE7C,MAAM,OAAO,GAAG,KAAK,EAAE,O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d,gBAAA,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AAC1B,gBAAA,QAAQ,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAChC;QACH;IACF;8GAnDW,yCAAyC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yCAAyC,cAD5B,MAAM,EAAA,CAAA,CAAA;;2FACnB,yCAAyC,EAAA,UAAA,EAAA,CAAA;kBADrD,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
1
+ {"version":3,"file":"acorex-platform-module-asset-management-client-recalculate-asset-operational-status.activity-RGXS9fI1.mjs","sources":["../../../../libs/modules/asset-management/client/src/lib/features/workflows/recalculate-asset-operational-status.activity.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { inject, Injectable } from '@angular/core';\nimport { isString } from 'lodash';\n\nimport { AXMAssetOperationalStatusService } from '../../services/asset-operational-status.service';\nimport type {\n AXMAssetOperationalStatusRecalculateResult,\n AXMAssetOperationalStatusTrigger,\n} from '../../services/asset-operational-status.types';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface RecalculateAssetOperationalStatusInput {\n assetId: string;\n trigger: AXMAssetOperationalStatusTrigger;\n workOrderId?: string;\n maintenanceTypeId?: string;\n}\n\n//#endregion\n\n/**\n * Workflow activity wrapper for {@link AXMAssetOperationalStatusService.recalculate}.\n */\n@Injectable({ providedIn: 'root' })\nexport class RecalculateAssetOperationalStatusActivity\n implements AXPCommand<RecalculateAssetOperationalStatusInput, AXMAssetOperationalStatusRecalculateResult>\n{\n //#region ---- Services & Dependencies ----\n\n private readonly assetOperationalStatusService = inject(AXMAssetOperationalStatusService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(\n input: RecalculateAssetOperationalStatusInput,\n ): AXPCommandExecuteResultPromise<AXMAssetOperationalStatusRecalculateResult> {\n const assetId = input?.assetId?.trim();\n const trigger = input?.trigger;\n\n if (!assetId) {\n return {\n success: false,\n message: { text: 'assetId is required' },\n metadata: { outcome: 'Failed' },\n };\n }\n\n if (trigger !== 'work-started' && trigger !== 'work-completed' && trigger !== 'work-signed-off') {\n return {\n success: false,\n message: { text: 'trigger must be work-started, work-completed, or work-signed-off' },\n metadata: { outcome: 'Failed' },\n };\n }\n\n try {\n const result = await this.assetOperationalStatusService.recalculate(assetId, trigger, {\n workOrderId: isString(input.workOrderId) ? input.workOrderId.trim() : undefined,\n maintenanceTypeId: isString(input.maintenanceTypeId) ? input.maintenanceTypeId.trim() : undefined,\n });\n\n return { success: true, kind: 'object',\n data: result,\n metadata: { outcome: 'Done' },\n };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Recalculate failed';\n return {\n success: false,\n message: { text: message },\n metadata: { outcome: 'Failed' },\n };\n }\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;AAwBA;AAEA;;AAEG;MAEU,yCAAyC,CAAA;AADtD,IAAA,WAAA,GAAA;;AAMmB,QAAA,IAAA,CAAA,6BAA6B,GAAG,MAAM,CAAC,gCAAgC,CAAC;AAiD1F,IAAA;;;IA3CC,MAAM,OAAO,CACX,KAA6C,EAAA;QAE7C,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE;AACtC,QAAA,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO;QAE9B,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE,EAAE,IAAI,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