@acorex-platform/module-subscription-management-client 0.0.32 → 0.0.37

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 (26) hide show
  1. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.mjs +293 -0
  2. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.mjs +279 -0
  4. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription.mjs +462 -0
  6. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-acorex-platform-module-subscription-management-client-contracts-entity-catalog-N9RWLoZU.mjs +66 -0
  8. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-acorex-platform-module-subscription-management-client-contracts-entity-catalog-N9RWLoZU.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan-item.entity-D_NJNqjW.mjs +248 -0
  10. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan-item.entity-D_NJNqjW.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan.entity-DxT6zC3W.mjs +234 -0
  12. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan.entity-DxT6zC3W.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription.entity-Crl7HVX2.mjs +417 -0
  14. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription.entity-Crl7HVX2.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog.mjs +2 -0
  16. package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-subscription-management-client-contracts.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-module-subscription-management-client-local-entities.mjs +31 -0
  19. package/fesm2022/acorex-platform-module-subscription-management-client-local-entities.mjs.map +1 -0
  20. package/fesm2022/acorex-platform-module-subscription-management-client.mjs.map +1 -1
  21. package/package.json +21 -1
  22. package/types/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.d.ts +5 -0
  23. package/types/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.d.ts +5 -0
  24. package/types/acorex-platform-module-subscription-management-client-contracts-entities-subscription.d.ts +5 -0
  25. package/types/acorex-platform-module-subscription-management-client-contracts-entity-catalog.d.ts +10 -0
  26. package/types/acorex-platform-module-subscription-management-client-local-entities.d.ts +12 -0
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-subscription-management-client.mjs","sources":["../../../../libs/modules/subscription-management/client/src/lib/manifest.ts","../../../../libs/modules/subscription-management/client/src/lib/features/subscription-status.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/feature-definition.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/menu.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/search-command.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/subscription-management.module.ts","../../../../libs/modules/subscription-management/client/src/acorex-platform-module-subscription-management-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Subscription Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const SubscriptionManagementManifest: 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: 'platform',\n domain: 'platform',\n required: true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXPStatusProvider, AXPStatusTransition, AXPSystemStatusType, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';\n\n//#endregion\n\n//#region ---- Subscription Status Provider ----\n\n/**\n * Subscription status provider defining lifecycle states: Active, Expired, Cancelled, Suspended.\n * Used by the status plugin to manage subscription status transitions and metadata.\n */\nexport class AXMSubscriptionStatusProvider extends AXPStatusProvider {\n readonly key = 'subscription-management.status.subscription';\n\n readonly defaultStatus = AXPSystemStatusType.Active;\n\n readonly statuses = [\n systemStatusToDefinition(AXPSystemStatusType.Active, {\n title: '@subscription-management:subscriptions.states.active',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Expired, {\n title: '@subscription-management:subscriptions.states.expired',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Cancelled, {\n title: '@subscription-management:subscriptions.states.cancelled',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Suspended, {\n title: '@subscription-management:subscriptions.states.suspended',\n generateView: true,\n }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Expired,\n title: '@subscription-management:subscriptions.transitions.expire',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Cancelled,\n title: '@subscription-management:subscriptions.transitions.cancel',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Suspended,\n title: '@subscription-management:subscriptions.transitions.suspend',\n },\n {\n from: AXPSystemStatusType.Suspended,\n to: AXPSystemStatusType.Active,\n title: '@subscription-management:subscriptions.transitions.activate',\n },\n {\n from: AXPSystemStatusType.Expired,\n to: AXPSystemStatusType.Active,\n title: '@subscription-management:subscriptions.transitions.renew',\n },\n ];\n}\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport {\n AXPFeatureDefinitionProvider,\n AXPFeatureDefinitionProviderContext,\n} from '@acorex-platform/framework-client/core';\nimport {\n AXMSubscriptionManagementFeatureKeys,\n RootConfig,\n} from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Feature Definition Provider ----\n\n/**\n * Subscription Management Feature Definition Provider.\n * Provides feature definitions for the Subscription Management module.\n */\nexport class AXMSubscriptionManagementFeatureDefinitionProvider implements AXPFeatureDefinitionProvider {\n async provide(context: AXPFeatureDefinitionProviderContext): Promise<void> {\n const i18n = RootConfig.config.i18n;\n\n context.addFeature(AXMSubscriptionManagementFeatureKeys.ManageSubscriptions, {\n title: `@${i18n}:features.manage-subscriptions.title`,\n description: `@${i18n}:features.manage-subscriptions.description`,\n defaultValue: false,\n type: 'boolean',\n });\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPSalesCustomersPermissionKeys } from '@acorex-platform/module-subscription-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers subscription capabilities under Sales & Customers → Subscriptions.\n */\n@Injectable()\nexport class AXMSubscriptionManagementPermissionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPSalesCustomersPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:sales-customers.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(\n groups.SalesCustomers.Root,\n `${G}.sales-and-customers.title`,\n `${G}.sales-and-customers.description`,\n { order: 50 },\n );\n\n context\n .addGroup(\n groups.SalesCustomers.Subscriptions,\n `${G}.sales-and-customers-subscriptions.title`,\n `${G}.sales-and-customers-subscriptions.description`,\n { parent: groups.SalesCustomers.Root, order: 40 },\n )\n .addPermission(\n keys.MaintainSubscriptions,\n `${P}.maintain-subscriptions.title`,\n `${P}.maintain-subscriptions.description`,\n )\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPSalesCustomersPermissionKeys,\n AXMSubscriptionManagementFeatureKeys,\n AXMSubscriptionManagementMenuKeys,\n} from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMSubscriptionManagementMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPSalesCustomersPermissionKeys;\n const features = AXMSubscriptionManagementFeatureKeys;\n\n context.find(AXPCommonMenuKeys.Platform).addItems([\n {\n name: AXMSubscriptionManagementMenuKeys.Subscriptions,\n text: `@${RootConfig.config.i18n}:subscriptions.entities.subscription.plural`,\n path: this.entityService.createPath(module.name, RootConfig.entities.subscription.name),\n icon: RootConfig.entities.subscription.icon,\n priority: 6,\n policy: {\n // Platform Console edition only — tenants use lookups / joins, not this menu\n features: [features.ManageSubscriptions],\n permissions: [keys.MaintainSubscriptions],\n },\n },\n {\n name: AXMSubscriptionManagementMenuKeys.SubscriptionPlans,\n text: `@${RootConfig.config.i18n}:subscriptions.entities.subscription-plan.plural`,\n path: this.entityService.createPath(module.name, RootConfig.entities.subscriptionPlan.name),\n icon: RootConfig.entities.subscriptionPlan.icon,\n priority: 7,\n policy: {\n features: [features.ManageSubscriptions],\n permissions: [keys.MaintainSubscriptions],\n },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPSearchCommandProvider, createEntitySearchCommand } from '@acorex-platform/framework-client/common';\nimport { RootConfig } from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Search Command Provider ----\n\nexport class AXMSubscriptionManagementSearchProvider extends AXPSearchCommandProvider {\n commands = [\n createEntitySearchCommand({\n id: 'create-subscription',\n entityKey: `${RootConfig.module.name}.${RootConfig.entities.subscription.name}`,\n entityInfo: { name: RootConfig.entities.subscription.name, module: RootConfig.module.name, title: RootConfig.entities.subscription.title },\n titleKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription.title`,\n descriptionKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription.description`,\n icon: RootConfig.entities.subscription.icon,\n }),\n createEntitySearchCommand({\n id: 'create-subscription-plan',\n entityKey: `${RootConfig.module.name}.${RootConfig.entities.subscriptionPlan.name}`,\n entityInfo: { name: RootConfig.entities.subscriptionPlan.name, module: RootConfig.module.name, title: RootConfig.entities.subscriptionPlan.title },\n titleKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription-plan.title`,\n descriptionKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription-plan.description`,\n icon: RootConfig.entities.subscriptionPlan.icon,\n }),\n ];\n}\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { SubscriptionManagementManifest } from './manifest';\nimport { AXP_STATUS_PROVIDERS, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { NgModule } from '@angular/core';\nimport { AXMSubscriptionStatusProvider } from './features/subscription-status.provider';\nimport { AXMSubscriptionManagementFeatureDefinitionProvider } from './feature-definition.provider';\nimport { AXMSubscriptionManagementPermissionProvider } from './permission-definition.provider';\nimport { AXMSubscriptionManagementMenuProvider } from './menu.provider';\n\nimport { AXMSubscriptionManagementSearchProvider } from './search-command.provider';\n\n//#endregion\n\n//#region ---- Subscription Management Module ----\n\n@NgModule({\n providers: [\n // Module-specific providers (not part of manifest system)\n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMSubscriptionStatusProvider,\n multi: true,\n },\n\n // Module Manifest Provider\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: SubscriptionManagementManifest,\n multi: true,\n },\n // Provider references (now using tokens)\n {\n provide: AXP_FEATURE_DEFINITION_PROVIDER,\n useClass: AXMSubscriptionManagementFeatureDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMSubscriptionManagementPermissionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMSubscriptionManagementMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXMSubscriptionManagementSearchProvider,\n multi: true,\n },\n ],\n})\nexport class AXMSubscriptionManagementModule {\n constructor() { }\n}\n\n//#endregion\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AAKA;AAEA;AAEA;;;AAGG;AACI,MAAM,8BAA8B,GAAsB;AAC/D,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,QAAQ,EAAE,IAAI;;CAGf;AAED;;AC1BA;AAIA;AAEA;AAEA;;;AAGG;AACG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Q,EAAE,8BAA8B;AACxC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,+BAA+B;AACxC,4BAAA,QAAQ,EAAE,kDAAkD;AAC5D,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,kCAAkC;AAC3C,4BAAA,QAAQ,EAAE,2CAA2C;AACrD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,qCAAqC;AAC/C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,mBAAmB;AAC5B,4BAAA,QAAQ,EAAE,uCAAuC;AACjD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACxDD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-subscription-management-client.mjs","sources":["../../../../libs/modules/subscription-management/client/src/lib/manifest.ts","../../../../libs/modules/subscription-management/client/src/lib/features/subscription-status.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/feature-definition.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/menu.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/search-command.provider.ts","../../../../libs/modules/subscription-management/client/src/lib/subscription-management.module.ts","../../../../libs/modules/subscription-management/client/src/acorex-platform-module-subscription-management-client.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Subscription Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const SubscriptionManagementManifest: 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: 'platform',\n domain: 'platform',\n required: true,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXPStatusProvider, AXPStatusTransition, AXPSystemStatusType, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';\n\n//#endregion\n\n//#region ---- Subscription Status Provider ----\n\n/**\n * Subscription status provider defining lifecycle states: Active, Expired, Cancelled, Suspended.\n * Used by the status plugin to manage subscription status transitions and metadata.\n */\nexport class AXMSubscriptionStatusProvider extends AXPStatusProvider {\n readonly key = 'subscription-management.status.subscription';\n\n readonly defaultStatus = AXPSystemStatusType.Active;\n\n readonly statuses = [\n systemStatusToDefinition(AXPSystemStatusType.Active, {\n title: '@subscription-management:subscriptions.states.active',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Expired, {\n title: '@subscription-management:subscriptions.states.expired',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Cancelled, {\n title: '@subscription-management:subscriptions.states.cancelled',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Suspended, {\n title: '@subscription-management:subscriptions.states.suspended',\n generateView: true,\n }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Expired,\n title: '@subscription-management:subscriptions.transitions.expire',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Cancelled,\n title: '@subscription-management:subscriptions.transitions.cancel',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Suspended,\n title: '@subscription-management:subscriptions.transitions.suspend',\n },\n {\n from: AXPSystemStatusType.Suspended,\n to: AXPSystemStatusType.Active,\n title: '@subscription-management:subscriptions.transitions.activate',\n },\n {\n from: AXPSystemStatusType.Expired,\n to: AXPSystemStatusType.Active,\n title: '@subscription-management:subscriptions.transitions.renew',\n },\n ];\n}\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport {\n AXPFeatureDefinitionProvider,\n AXPFeatureDefinitionProviderContext,\n} from '@acorex-platform/framework-client/core';\nimport {\n AXMSubscriptionManagementFeatureKeys,\n RootConfig,\n} from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Feature Definition Provider ----\n\n/**\n * Subscription Management Feature Definition Provider.\n * Provides feature definitions for the Subscription Management module.\n */\nexport class AXMSubscriptionManagementFeatureDefinitionProvider implements AXPFeatureDefinitionProvider {\n async provide(context: AXPFeatureDefinitionProviderContext): Promise<void> {\n const i18n = RootConfig.config.i18n;\n\n context.addFeature(AXMSubscriptionManagementFeatureKeys.ManageSubscriptions, {\n title: `@${i18n}:features.manage-subscriptions.title`,\n description: `@${i18n}:features.manage-subscriptions.description`,\n defaultValue: false,\n type: 'boolean',\n });\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPSalesCustomersPermissionKeys } from '@acorex-platform/module-subscription-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers subscription capabilities under Sales & Customers → Subscriptions.\n */\n@Injectable()\nexport class AXMSubscriptionManagementPermissionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPSalesCustomersPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:sales-customers.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(\n groups.SalesCustomers.Root,\n `${G}.sales-and-customers.title`,\n `${G}.sales-and-customers.description`,\n { order: 50 },\n );\n\n context\n .addGroup(\n groups.SalesCustomers.Subscriptions,\n `${G}.sales-and-customers-subscriptions.title`,\n `${G}.sales-and-customers-subscriptions.description`,\n { parent: groups.SalesCustomers.Root, order: 40 },\n )\n .addPermission(\n keys.MaintainSubscriptions,\n `${P}.maintain-subscriptions.title`,\n `${P}.maintain-subscriptions.description`,\n )\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\n\nimport { inject } from '@angular/core';\nimport {\n RootConfig,\n AXPSalesCustomersPermissionKeys,\n AXMSubscriptionManagementFeatureKeys,\n AXMSubscriptionManagementMenuKeys,\n} from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Menu Provider ----\n\nexport class AXMSubscriptionManagementMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n const keys = AXPSalesCustomersPermissionKeys;\n const features = AXMSubscriptionManagementFeatureKeys;\n\n context.find(AXPCommonMenuKeys.Platform).addItems([\n {\n name: AXMSubscriptionManagementMenuKeys.Subscriptions,\n text: `@${RootConfig.config.i18n}:subscriptions.entities.subscription.plural`,\n path: this.entityService.createPath(module.name, RootConfig.entities.subscription.name),\n icon: RootConfig.entities.subscription.icon,\n priority: 6,\n policy: {\n // Platform Console edition only — tenants use lookups / joins, not this menu\n features: [features.ManageSubscriptions],\n permissions: [keys.MaintainSubscriptions],\n },\n },\n {\n name: AXMSubscriptionManagementMenuKeys.SubscriptionPlans,\n text: `@${RootConfig.config.i18n}:subscriptions.entities.subscription-plan.plural`,\n path: this.entityService.createPath(module.name, RootConfig.entities.subscriptionPlan.name),\n icon: RootConfig.entities.subscriptionPlan.icon,\n priority: 7,\n policy: {\n features: [features.ManageSubscriptions],\n permissions: [keys.MaintainSubscriptions],\n },\n },\n ]);\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPSearchCommandProvider, createEntitySearchCommand } from '@acorex-platform/framework-client/common';\nimport { RootConfig } from '@acorex-platform/module-subscription-management-client/contracts';\n\n//#endregion\n\n//#region ---- Search Command Provider ----\n\nexport class AXMSubscriptionManagementSearchProvider extends AXPSearchCommandProvider {\n commands = [\n createEntitySearchCommand({\n id: 'create-subscription',\n entityKey: `${RootConfig.module.name}.${RootConfig.entities.subscription.name}`,\n entityInfo: { name: RootConfig.entities.subscription.name, module: RootConfig.module.name, title: RootConfig.entities.subscription.title },\n titleKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription.title`,\n descriptionKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription.description`,\n icon: RootConfig.entities.subscription.icon,\n }),\n createEntitySearchCommand({\n id: 'create-subscription-plan',\n entityKey: `${RootConfig.module.name}.${RootConfig.entities.subscriptionPlan.name}`,\n entityInfo: { name: RootConfig.entities.subscriptionPlan.name, module: RootConfig.module.name, title: RootConfig.entities.subscriptionPlan.title },\n titleKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription-plan.title`,\n descriptionKey: `@${RootConfig.config.i18n}:subscriptions.actions.create-subscription-plan.description`,\n icon: RootConfig.entities.subscriptionPlan.icon,\n }),\n ];\n}\n\n//#endregion\n\n","//#region ---- Imports ----\n\nimport { AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { SubscriptionManagementManifest } from './manifest';\nimport { AXP_STATUS_PROVIDERS, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { NgModule } from '@angular/core';\nimport { AXMSubscriptionStatusProvider } from './features/subscription-status.provider';\nimport { AXMSubscriptionManagementFeatureDefinitionProvider } from './feature-definition.provider';\nimport { AXMSubscriptionManagementPermissionProvider } from './permission-definition.provider';\nimport { AXMSubscriptionManagementMenuProvider } from './menu.provider';\n\nimport { AXMSubscriptionManagementSearchProvider } from './search-command.provider';\n\n//#endregion\n\n//#region ---- Subscription Management Module ----\n\n@NgModule({\n providers: [\n // Module-specific providers (not part of manifest system)\n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMSubscriptionStatusProvider,\n multi: true,\n },\n\n // Module Manifest Provider\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: SubscriptionManagementManifest,\n multi: true,\n },\n // Provider references (now using tokens)\n {\n provide: AXP_FEATURE_DEFINITION_PROVIDER,\n useClass: AXMSubscriptionManagementFeatureDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMSubscriptionManagementPermissionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMSubscriptionManagementMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXMSubscriptionManagementSearchProvider,\n multi: true,\n },\n ],\n})\nexport class AXMSubscriptionManagementModule {\n constructor() { }\n}\n\n//#endregion\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AAKA;AAEA;AAEA;;;AAGG;AACI,MAAM,8BAA8B,GAAsB;AAC/D,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,QAAQ,EAAE,IAAI;;CAGf;AAED;;AC1BA;AAIA;AAEA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B;AACrC,4BAAA,QAAQ,EAAE,8BAA8B;AACxC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,+BAA+B;AACxC,4BAAA,QAAQ,EAAE,kDAAkD;AAC5D,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,kCAAkC;AAC3C,4BAAA,QAAQ,EAAE,2CAA2C;AACrD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACD,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,QAAQ,EAAE,qCAAqC;AAC/C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AAED,wBAAA;AACE,4BAAA,OAAO,EAAE,mBAAmB;AAC5B,4BAAA,QAAQ,EAAE,uCAAuC;AACjD,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA;;;ACxDD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-subscription-management-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.37",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",
@@ -22,6 +22,26 @@
22
22
  "./contracts": {
23
23
  "types": "./types/acorex-platform-module-subscription-management-client-contracts.d.ts",
24
24
  "default": "./fesm2022/acorex-platform-module-subscription-management-client-contracts.mjs"
25
+ },
26
+ "./contracts/entities/subscription": {
27
+ "types": "./types/acorex-platform-module-subscription-management-client-contracts-entities-subscription.d.ts",
28
+ "default": "./fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription.mjs"
29
+ },
30
+ "./contracts/entities/subscription-plan": {
31
+ "types": "./types/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.d.ts",
32
+ "default": "./fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.mjs"
33
+ },
34
+ "./contracts/entities/subscription-plan-item": {
35
+ "types": "./types/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.d.ts",
36
+ "default": "./fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.mjs"
37
+ },
38
+ "./contracts/entity-catalog": {
39
+ "types": "./types/acorex-platform-module-subscription-management-client-contracts-entity-catalog.d.ts",
40
+ "default": "./fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog.mjs"
41
+ },
42
+ "./local-entities": {
43
+ "types": "./types/acorex-platform-module-subscription-management-client-local-entities.d.ts",
44
+ "default": "./fesm2022/acorex-platform-module-subscription-management-client-local-entities.mjs"
25
45
  }
26
46
  },
27
47
  "type": "module"
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function subscriptionPlanItemEntityFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { subscriptionPlanItemEntityFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function subscriptionPlanEntityFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { subscriptionPlanEntityFactory };
@@ -0,0 +1,5 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+
3
+ declare function subscriptionEntityFactory(): Promise<AXPEntity | null>;
4
+
5
+ export { subscriptionEntityFactory };
@@ -0,0 +1,10 @@
1
+ import { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';
2
+
3
+ /**
4
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
5
+ * so RootConfig imports stay light. Server seed and client `local-entities`
6
+ * consume this catalog explicitly.
7
+ */
8
+ declare const subscriptionManagementLocalEntityCatalog: AXPLocalEntityCatalog;
9
+
10
+ export { subscriptionManagementLocalEntityCatalog };
@@ -0,0 +1,12 @@
1
+ import * as _angular_core from '@angular/core';
2
+ export { subscriptionManagementLocalEntityCatalog } from '@acorex-platform/module-subscription-management-client/contracts/entity-catalog';
3
+
4
+ /**
5
+ * Registers subscription-management layouts on the client from packaged factories.
6
+ * Each `import()` targets a secondary entry so unused entities stay out of the
7
+ * bundle. Do not add this to the demo app; demo continues to load layouts via
8
+ * `Domain:GetEntityLayout`.
9
+ */
10
+ declare function provideSubscriptionManagementLocalEntities(): _angular_core.EnvironmentProviders;
11
+
12
+ export { provideSubscriptionManagementLocalEntities };