From c299896867a448094d71cc01bb6f0ae646ed95f1 Mon Sep 17 00:00:00 2001 From: adrien2p Date: Wed, 27 Jul 2022 11:28:16 +0200 Subject: [PATCH] docs: Update documentation --- docs/README.md | 26 +++++++++++- docs/classes/Medusa.Medusa-1.md | 8 ++-- .../classes/core_componentMap.ComponentMap.md | 2 +- ...nt_emmiter.Internals.CustomEventEmmiter.md | 12 +++--- docs/classes/core_logger.Logger.md | 26 ++++++------ ...tityEvent_decorator.OnMedusaEntityEvent.md | 26 ++++++------ ...ancy_tenant_middleware.TenantMiddleware.md | 2 +- ...ulti_tenancy_tenant_module.TenantModule.md | 2 +- ...ti_tenancy_tenant_service.TenantService.md | 6 +-- .../core_types.MedusaDynamicModule.md | 2 +- .../interfaces/core_types.MedusaMiddleware.md | 2 +- docs/interfaces/core_types.Type.md | 2 +- .../modules_monitoring.MonitoringOptions.md | 30 +++++++------- ...multi_tenancy_types.MultiTenancyOptions.md | 6 +-- .../cli_commands_generate_component.md | 8 ++-- docs/modules/cli_commands_init.md | 2 +- docs/modules/cli_commands_migrate.md | 2 +- docs/modules/cli_templates_entity_template.md | 2 +- docs/modules/cli_templates_main_template.md | 2 +- .../cli_templates_middleware_template.md | 2 +- .../cli_templates_migration_template.md | 2 +- docs/modules/cli_templates_module_template.md | 2 +- .../cli_templates_repository_template.md | 2 +- docs/modules/cli_templates_router_template.md | 2 +- .../modules/cli_templates_service_template.md | 2 +- .../cli_templates_validator_template.md | 2 +- docs/modules/cli_utils_create_directory.md | 2 +- .../cli_utils_lookup_closest_module.md | 2 +- .../cli_utils_parse_component_value.md | 2 +- docs/modules/cli_utils_slash.md | 2 +- docs/modules/core_constants.md | 6 +-- docs/modules/core_event_emmiter.Internals.md | 2 +- docs/modules/core_event_emmiter.md | 2 +- docs/modules/core_metadata_reader.md | 4 +- docs/modules/core_package_loader.md | 4 +- docs/modules/core_types.md | 40 +++++++++---------- docs/modules/core_utils.md | 10 ++--- .../decorators_components_decorator.md | 16 ++++---- ...ators_helpers_build_component_decorator.md | 2 +- docs/modules/decorators_module_decorator.md | 2 +- ...ecorators_onMedusaEntityEvent_decorator.md | 10 ++--- docs/modules/loaders_admin_api_loader.md | 2 +- docs/modules/loaders_custom_api_loader.md | 2 +- docs/modules/loaders_database_loader.md | 2 +- docs/modules/loaders_entities_loader.md | 8 ++-- .../loaders_helpers_apply_middlewares.md | 4 +- docs/modules/loaders_helpers_apply_routers.md | 4 +- docs/modules/loaders_migrations_loader.md | 2 +- docs/modules/loaders_modules_loader.md | 2 +- docs/modules/loaders_plugins_loader.md | 2 +- docs/modules/loaders_repository_loader.md | 4 +- docs/modules/loaders_services_loader.md | 6 +-- docs/modules/loaders_store_api_loader.md | 2 +- docs/modules/loaders_subscribers_loader.md | 2 +- docs/modules/loaders_validators_loader.md | 2 +- docs/modules/modules_monitoring.md | 2 +- docs/modules/modules_multi_tenancy_types.md | 2 +- documentation/_README_BUILT.md | 26 +++++++++++- 58 files changed, 205 insertions(+), 157 deletions(-) diff --git a/docs/README.md b/docs/README.md index 9ccd349b..51f1ac64 100644 --- a/docs/README.md +++ b/docs/README.md @@ -114,7 +114,7 @@ Depending on your situation, pick the right getting started section. In that case, you must already have scaffold a new medusa store project. If that's not the case you can [follow the tutorial here](https://docs.medusajs.com/quickstart/quick-start). -Run the following command in your terminal (The last version is 1.7.1) +Run the following command in your terminal (The last version is 1.7.3) ```bash npm install medusa-extender @@ -394,6 +394,30 @@ export class Product extends MedusaProduct { > The `override` parameter of the `@MedusaEntity` decorator allow to specify which entity > from the core must be overridden. +To make your project aware of your customisation +at the medusa core level, you can use the [module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) +approach. + +here is an example + +```ts +// src/modules/your_modules/index.d.ts + +import { User as ExtendedUser } from '@modules/user/user.entity'; +import { default as ExtendedUserRepository } from '@modules/user/user.repository'; + +declare module '@medusajs/medusa/dist/models/user' { + export declare class User extends ExtendedUser {} +} + +declare module '@medusajs/medusa' { + export declare class UserRepository extends ExtendedUserRepository {} +} + +``` + +To see a live example, you can look at the starters, they include the module augmentation approach. + ### @Repository This decorator gives you the ability to either create a new custom repository that will diff --git a/docs/classes/Medusa.Medusa-1.md b/docs/classes/Medusa.Medusa-1.md index 6ebbd46c..663039d2 100644 --- a/docs/classes/Medusa.Medusa-1.md +++ b/docs/classes/Medusa.Medusa-1.md @@ -36,7 +36,7 @@ Load medusa and apply all components #### Defined in -[src/Medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/Medusa.ts#L39) +[src/Medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/Medusa.ts#L39) ## Properties @@ -46,7 +46,7 @@ Load medusa and apply all components #### Defined in -[src/Medusa.ts:32](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/Medusa.ts#L32) +[src/Medusa.ts:32](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/Medusa.ts#L32) ___ @@ -56,7 +56,7 @@ ___ #### Defined in -[src/Medusa.ts:33](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/Medusa.ts#L33) +[src/Medusa.ts:33](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/Medusa.ts#L33) ## Methods @@ -76,4 +76,4 @@ ___ #### Defined in -[src/Medusa.ts:47](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/Medusa.ts#L47) +[src/Medusa.ts:47](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/Medusa.ts#L47) diff --git a/docs/classes/core_componentMap.ComponentMap.md b/docs/classes/core_componentMap.ComponentMap.md index d282deb6..ced3a0bc 100644 --- a/docs/classes/core_componentMap.ComponentMap.md +++ b/docs/classes/core_componentMap.ComponentMap.md @@ -84,4 +84,4 @@ Map.get #### Defined in -[src/core/componentMap.ts:4](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/componentMap.ts#L4) +[src/core/componentMap.ts:4](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/componentMap.ts#L4) diff --git a/docs/classes/core_event_emmiter.Internals.CustomEventEmmiter.md b/docs/classes/core_event_emmiter.Internals.CustomEventEmmiter.md index b21ee026..1956165a 100644 --- a/docs/classes/core_event_emmiter.Internals.CustomEventEmmiter.md +++ b/docs/classes/core_event_emmiter.Internals.CustomEventEmmiter.md @@ -41,7 +41,7 @@ EventEmitter.constructor #### Defined in -[src/core/event-emmiter.ts:22](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L22) +[src/core/event-emmiter.ts:22](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L22) ## Properties @@ -51,7 +51,7 @@ EventEmitter.constructor #### Defined in -[src/core/event-emmiter.ts:20](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L20) +[src/core/event-emmiter.ts:20](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L20) ## Methods @@ -80,7 +80,7 @@ Emit an asynchrone event entity based and wait for the result. #### Defined in -[src/core/event-emmiter.ts:79](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L79) +[src/core/event-emmiter.ts:79](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L79) ___ @@ -110,7 +110,7 @@ Register a new event handler. #### Defined in -[src/core/event-emmiter.ts:32](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L32) +[src/core/event-emmiter.ts:32](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L32) ___ @@ -132,7 +132,7 @@ Apply all event handlers hold by the `listenerDescriptor`. #### Defined in -[src/core/event-emmiter.ts:44](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L44) +[src/core/event-emmiter.ts:44](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L44) ___ @@ -146,4 +146,4 @@ ___ #### Defined in -[src/core/event-emmiter.ts:67](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L67) +[src/core/event-emmiter.ts:67](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L67) diff --git a/docs/classes/core_logger.Logger.md b/docs/classes/core_logger.Logger.md index e9607436..2e9da7c3 100644 --- a/docs/classes/core_logger.Logger.md +++ b/docs/classes/core_logger.Logger.md @@ -49,7 +49,7 @@ Internal logger to display information about the build. #### Defined in -[src/core/logger.ts:20](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L20) +[src/core/logger.ts:20](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L20) ## Properties @@ -59,7 +59,7 @@ Internal logger to display information about the build. #### Defined in -[src/core/logger.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L10) +[src/core/logger.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L10) ___ @@ -69,7 +69,7 @@ ___ #### Defined in -[src/core/logger.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L9) +[src/core/logger.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L9) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[src/core/logger.ts:8](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L8) +[src/core/logger.ts:8](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L8) ## Accessors @@ -93,7 +93,7 @@ ___ #### Defined in -[src/core/logger.ts:16](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L16) +[src/core/logger.ts:16](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L16) ___ @@ -107,7 +107,7 @@ ___ #### Defined in -[src/core/logger.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L12) +[src/core/logger.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L12) ## Methods @@ -131,7 +131,7 @@ Build logs taking in count the level color #### Defined in -[src/core/logger.ts:89](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L89) +[src/core/logger.ts:89](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L89) ___ @@ -154,7 +154,7 @@ Display error logs in red immediately #### Defined in -[src/core/logger.ts:66](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L66) +[src/core/logger.ts:66](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L66) ___ @@ -170,7 +170,7 @@ display all queues logs and then reset the queue. #### Defined in -[src/core/logger.ts:73](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L73) +[src/core/logger.ts:73](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L73) ___ @@ -193,7 +193,7 @@ Display log immediately. #### Defined in -[src/core/logger.ts:48](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L48) +[src/core/logger.ts:48](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L48) ___ @@ -216,7 +216,7 @@ Push new logs to queue and then show them later on. #### Defined in -[src/core/logger.ts:34](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L34) +[src/core/logger.ts:34](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L34) ___ @@ -239,7 +239,7 @@ Display warning immediately. #### Defined in -[src/core/logger.ts:57](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L57) +[src/core/logger.ts:57](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L57) ___ @@ -260,4 +260,4 @@ ___ #### Defined in -[src/core/logger.ts:25](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/logger.ts#L25) +[src/core/logger.ts:25](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/logger.ts#L25) diff --git a/docs/classes/decorators_onMedusaEntityEvent_decorator.OnMedusaEntityEvent.md b/docs/classes/decorators_onMedusaEntityEvent_decorator.OnMedusaEntityEvent.md index 29fd7a95..6e943bd8 100644 --- a/docs/classes/decorators_onMedusaEntityEvent_decorator.OnMedusaEntityEvent.md +++ b/docs/classes/decorators_onMedusaEntityEvent_decorator.OnMedusaEntityEvent.md @@ -45,7 +45,7 @@ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:41](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L41) +[src/decorators/onMedusaEntityEvent.decorator.ts:41](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L41) ## Properties @@ -55,7 +55,7 @@ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:39](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L39) +[src/decorators/onMedusaEntityEvent.decorator.ts:39](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L39) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:38](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L38) +[src/decorators/onMedusaEntityEvent.decorator.ts:38](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L38) ## Accessors @@ -79,7 +79,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:49](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L49) +[src/decorators/onMedusaEntityEvent.decorator.ts:49](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L49) ___ @@ -93,7 +93,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:45](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L45) +[src/decorators/onMedusaEntityEvent.decorator.ts:45](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L45) ## Methods @@ -120,7 +120,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:69](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L69) +[src/decorators/onMedusaEntityEvent.decorator.ts:69](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L69) ___ @@ -146,7 +146,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:57](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L57) +[src/decorators/onMedusaEntityEvent.decorator.ts:57](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L57) ___ @@ -173,7 +173,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:83](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L83) +[src/decorators/onMedusaEntityEvent.decorator.ts:83](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L83) ___ @@ -199,7 +199,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:65](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L65) +[src/decorators/onMedusaEntityEvent.decorator.ts:65](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L65) ___ @@ -226,7 +226,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:76](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L76) +[src/decorators/onMedusaEntityEvent.decorator.ts:76](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L76) ___ @@ -252,7 +252,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:61](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L61) +[src/decorators/onMedusaEntityEvent.decorator.ts:61](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L61) ___ @@ -280,7 +280,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:90](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L90) +[src/decorators/onMedusaEntityEvent.decorator.ts:90](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L90) ___ @@ -300,4 +300,4 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:53](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L53) +[src/decorators/onMedusaEntityEvent.decorator.ts:53](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L53) diff --git a/docs/classes/modules_multi_tenancy_tenant_middleware.TenantMiddleware.md b/docs/classes/modules_multi_tenancy_tenant_middleware.TenantMiddleware.md index ea631fb8..b1dc33e7 100644 --- a/docs/classes/modules_multi_tenancy_tenant_middleware.TenantMiddleware.md +++ b/docs/classes/modules_multi_tenancy_tenant_middleware.TenantMiddleware.md @@ -48,4 +48,4 @@ #### Defined in -[src/modules/multi-tenancy/tenant.middleware.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/tenant.middleware.ts#L12) +[src/modules/multi-tenancy/tenant.middleware.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/tenant.middleware.ts#L12) diff --git a/docs/classes/modules_multi_tenancy_tenant_module.TenantModule.md b/docs/classes/modules_multi_tenancy_tenant_module.TenantModule.md index 8b4bd7a7..ee5a341b 100644 --- a/docs/classes/modules_multi_tenancy_tenant_module.TenantModule.md +++ b/docs/classes/modules_multi_tenancy_tenant_module.TenantModule.md @@ -46,4 +46,4 @@ #### Defined in -[src/modules/multi-tenancy/tenant.module.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/tenant.module.ts#L9) +[src/modules/multi-tenancy/tenant.module.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/tenant.module.ts#L9) diff --git a/docs/classes/modules_multi_tenancy_tenant_service.TenantService.md b/docs/classes/modules_multi_tenancy_tenant_service.TenantService.md index b2db6cab..86f7a459 100644 --- a/docs/classes/modules_multi_tenancy_tenant_service.TenantService.md +++ b/docs/classes/modules_multi_tenancy_tenant_service.TenantService.md @@ -33,7 +33,7 @@ #### Defined in -[src/modules/multi-tenancy/tenant.service.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/tenant.service.ts#L11) +[src/modules/multi-tenancy/tenant.service.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/tenant.service.ts#L11) ## Properties @@ -43,7 +43,7 @@ #### Defined in -[src/modules/multi-tenancy/tenant.service.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/tenant.service.ts#L9) +[src/modules/multi-tenancy/tenant.service.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/tenant.service.ts#L9) ## Methods @@ -66,4 +66,4 @@ Provide a way to switch between database connections depending on the request pr #### Defined in -[src/modules/multi-tenancy/tenant.service.ts:18](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/tenant.service.ts#L18) +[src/modules/multi-tenancy/tenant.service.ts:18](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/tenant.service.ts#L18) diff --git a/docs/interfaces/core_types.MedusaDynamicModule.md b/docs/interfaces/core_types.MedusaDynamicModule.md index 77ec3ee1..e255dbcd 100644 --- a/docs/interfaces/core_types.MedusaDynamicModule.md +++ b/docs/interfaces/core_types.MedusaDynamicModule.md @@ -41,4 +41,4 @@ Describe a dynamic module which resolve its import dynamically. #### Defined in -[src/core/types.ts:189](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L189) +[src/core/types.ts:189](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L189) diff --git a/docs/interfaces/core_types.MedusaMiddleware.md b/docs/interfaces/core_types.MedusaMiddleware.md index 6f71f528..de7954ea 100644 --- a/docs/interfaces/core_types.MedusaMiddleware.md +++ b/docs/interfaces/core_types.MedusaMiddleware.md @@ -37,4 +37,4 @@ Describe a custom middleware instance. #### Defined in -[src/core/types.ts:181](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L181) +[src/core/types.ts:181](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L181) diff --git a/docs/interfaces/core_types.Type.md b/docs/interfaces/core_types.Type.md index 1226c51a..05c9eead 100644 --- a/docs/interfaces/core_types.Type.md +++ b/docs/interfaces/core_types.Type.md @@ -40,4 +40,4 @@ Function.constructor #### Defined in -[src/core/types.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L10) +[src/core/types.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L10) diff --git a/docs/interfaces/modules_monitoring.MonitoringOptions.md b/docs/interfaces/modules_monitoring.MonitoringOptions.md index 772dd7a0..f9e1f7fd 100644 --- a/docs/interfaces/modules_monitoring.MonitoringOptions.md +++ b/docs/interfaces/modules_monitoring.MonitoringOptions.md @@ -35,7 +35,7 @@ #### Defined in -[src/modules/monitoring.ts:15](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L15) +[src/modules/monitoring.ts:15](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L15) ___ @@ -45,7 +45,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:17](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L17) +[src/modules/monitoring.ts:17](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L17) ___ @@ -55,7 +55,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L12) +[src/modules/monitoring.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L12) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:19](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L19) +[src/modules/monitoring.ts:19](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L19) ___ @@ -75,7 +75,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L7) +[src/modules/monitoring.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L7) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:8](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L8) +[src/modules/monitoring.ts:8](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L8) ___ @@ -95,7 +95,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L13) +[src/modules/monitoring.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L13) ___ @@ -105,7 +105,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:14](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L14) +[src/modules/monitoring.ts:14](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L14) ___ @@ -115,7 +115,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:18](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L18) +[src/modules/monitoring.ts:18](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L18) ___ @@ -125,7 +125,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L10) +[src/modules/monitoring.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L10) ___ @@ -135,7 +135,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L9) +[src/modules/monitoring.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L9) ___ @@ -145,7 +145,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L11) +[src/modules/monitoring.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L11) ___ @@ -155,7 +155,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:6](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L6) +[src/modules/monitoring.ts:6](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L6) ## Methods @@ -177,7 +177,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:20](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L20) +[src/modules/monitoring.ts:20](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L20) ___ @@ -199,4 +199,4 @@ ___ #### Defined in -[src/modules/monitoring.ts:16](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L16) +[src/modules/monitoring.ts:16](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L16) diff --git a/docs/interfaces/modules_multi_tenancy_types.MultiTenancyOptions.md b/docs/interfaces/modules_multi_tenancy_types.MultiTenancyOptions.md index ce4feb8e..aaffa56e 100644 --- a/docs/interfaces/modules_multi_tenancy_types.MultiTenancyOptions.md +++ b/docs/interfaces/modules_multi_tenancy_types.MultiTenancyOptions.md @@ -23,7 +23,7 @@ #### Defined in -[src/modules/multi-tenancy/types.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/types.ts#L10) +[src/modules/multi-tenancy/types.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/types.ts#L10) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/modules/multi-tenancy/types.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/types.ts#L12) +[src/modules/multi-tenancy/types.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/types.ts#L12) ## Methods @@ -53,4 +53,4 @@ ___ #### Defined in -[src/modules/multi-tenancy/types.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/types.ts#L11) +[src/modules/multi-tenancy/types.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/types.ts#L11) diff --git a/docs/modules/cli_commands_generate_component.md b/docs/modules/cli_commands_generate_component.md index 92ca00a3..38a12264 100644 --- a/docs/modules/cli_commands_generate_component.md +++ b/docs/modules/cli_commands_generate_component.md @@ -36,7 +36,7 @@ #### Defined in -[src/cli/commands/generate-component.ts:21](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/commands/generate-component.ts#L21) +[src/cli/commands/generate-component.ts:21](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/commands/generate-component.ts#L21) ## Functions @@ -62,7 +62,7 @@ Create the component file and fill it with the template content. #### Defined in -[src/cli/commands/generate-component.ts:113](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/commands/generate-component.ts#L113) +[src/cli/commands/generate-component.ts:113](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/commands/generate-component.ts#L113) ___ @@ -85,7 +85,7 @@ Generate the required components from the user command. #### Defined in -[src/cli/commands/generate-component.ts:48](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/commands/generate-component.ts#L48) +[src/cli/commands/generate-component.ts:48](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/commands/generate-component.ts#L48) ___ @@ -107,4 +107,4 @@ Lookup for the closest module from the component and update its imports. #### Defined in -[src/cli/commands/generate-component.ts:140](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/commands/generate-component.ts#L140) +[src/cli/commands/generate-component.ts:140](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/commands/generate-component.ts#L140) diff --git a/docs/modules/cli_commands_init.md b/docs/modules/cli_commands_init.md index 692419d9..96e83262 100644 --- a/docs/modules/cli_commands_init.md +++ b/docs/modules/cli_commands_init.md @@ -22,4 +22,4 @@ Update or create everything related to medusa-extender in an existing medusa pro #### Defined in -[src/cli/commands/init.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/commands/init.ts#L13) +[src/cli/commands/init.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/commands/init.ts#L13) diff --git a/docs/modules/cli_commands_migrate.md b/docs/modules/cli_commands_migrate.md index 6bbc3d68..b7973152 100644 --- a/docs/modules/cli_commands_migrate.md +++ b/docs/modules/cli_commands_migrate.md @@ -28,4 +28,4 @@ Run the migrations using the medusa-config.js config. #### Defined in -[src/cli/commands/migrate.ts:25](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/commands/migrate.ts#L25) +[src/cli/commands/migrate.ts:25](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/commands/migrate.ts#L25) diff --git a/docs/modules/cli_templates_entity_template.md b/docs/modules/cli_templates_entity_template.md index 68e2bcd8..9ea64da7 100644 --- a/docs/modules/cli_templates_entity_template.md +++ b/docs/modules/cli_templates_entity_template.md @@ -28,4 +28,4 @@ Provide a basic template for the entity component generation. #### Defined in -[src/cli/templates/entity-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/entity-template.ts#L7) +[src/cli/templates/entity-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/entity-template.ts#L7) diff --git a/docs/modules/cli_templates_main_template.md b/docs/modules/cli_templates_main_template.md index eb2aa38c..473b071e 100644 --- a/docs/modules/cli_templates_main_template.md +++ b/docs/modules/cli_templates_main_template.md @@ -22,4 +22,4 @@ Provide a basic template for the main entry point file generation. #### Defined in -[src/cli/templates/main-template.ts:6](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/main-template.ts#L6) +[src/cli/templates/main-template.ts:6](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/main-template.ts#L6) diff --git a/docs/modules/cli_templates_middleware_template.md b/docs/modules/cli_templates_middleware_template.md index f444b41e..5276c83a 100644 --- a/docs/modules/cli_templates_middleware_template.md +++ b/docs/modules/cli_templates_middleware_template.md @@ -28,4 +28,4 @@ Provide a basic template for the middleware component generation. #### Defined in -[src/cli/templates/middleware-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/middleware-template.ts#L7) +[src/cli/templates/middleware-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/middleware-template.ts#L7) diff --git a/docs/modules/cli_templates_migration_template.md b/docs/modules/cli_templates_migration_template.md index 6b5f88a9..294dc344 100644 --- a/docs/modules/cli_templates_migration_template.md +++ b/docs/modules/cli_templates_migration_template.md @@ -29,4 +29,4 @@ Provide a basic template for the migration component generation. #### Defined in -[src/cli/templates/migration-template.ts:8](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/migration-template.ts#L8) +[src/cli/templates/migration-template.ts:8](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/migration-template.ts#L8) diff --git a/docs/modules/cli_templates_module_template.md b/docs/modules/cli_templates_module_template.md index 70093e48..93ffd2fc 100644 --- a/docs/modules/cli_templates_module_template.md +++ b/docs/modules/cli_templates_module_template.md @@ -28,4 +28,4 @@ Provide a basic template for the module component generation. #### Defined in -[src/cli/templates/module-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/module-template.ts#L7) +[src/cli/templates/module-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/module-template.ts#L7) diff --git a/docs/modules/cli_templates_repository_template.md b/docs/modules/cli_templates_repository_template.md index ab702864..559c1b8d 100644 --- a/docs/modules/cli_templates_repository_template.md +++ b/docs/modules/cli_templates_repository_template.md @@ -28,4 +28,4 @@ Provide a basic template for the repository component generation. #### Defined in -[src/cli/templates/repository-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/repository-template.ts#L7) +[src/cli/templates/repository-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/repository-template.ts#L7) diff --git a/docs/modules/cli_templates_router_template.md b/docs/modules/cli_templates_router_template.md index 7f5edce6..93788916 100644 --- a/docs/modules/cli_templates_router_template.md +++ b/docs/modules/cli_templates_router_template.md @@ -28,4 +28,4 @@ Provide a basic template for the router component generation. #### Defined in -[src/cli/templates/router-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/router-template.ts#L7) +[src/cli/templates/router-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/router-template.ts#L7) diff --git a/docs/modules/cli_templates_service_template.md b/docs/modules/cli_templates_service_template.md index 64766b26..487977a9 100644 --- a/docs/modules/cli_templates_service_template.md +++ b/docs/modules/cli_templates_service_template.md @@ -28,4 +28,4 @@ Provide a basic template for the service component generation. #### Defined in -[src/cli/templates/service-template.ts:8](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/service-template.ts#L8) +[src/cli/templates/service-template.ts:8](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/service-template.ts#L8) diff --git a/docs/modules/cli_templates_validator_template.md b/docs/modules/cli_templates_validator_template.md index a960b3f3..91eb5a6b 100644 --- a/docs/modules/cli_templates_validator_template.md +++ b/docs/modules/cli_templates_validator_template.md @@ -28,4 +28,4 @@ Provide a basic template for the validator component generation. #### Defined in -[src/cli/templates/validator-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/templates/validator-template.ts#L7) +[src/cli/templates/validator-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/templates/validator-template.ts#L7) diff --git a/docs/modules/cli_utils_create_directory.md b/docs/modules/cli_utils_create_directory.md index dca11e79..43154ab9 100644 --- a/docs/modules/cli_utils_create_directory.md +++ b/docs/modules/cli_utils_create_directory.md @@ -30,4 +30,4 @@ Create the new directory, if necessary, that will receive the components. #### Defined in -[src/cli/utils/create-directory.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/utils/create-directory.ts#L10) +[src/cli/utils/create-directory.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/utils/create-directory.ts#L10) diff --git a/docs/modules/cli_utils_lookup_closest_module.md b/docs/modules/cli_utils_lookup_closest_module.md index 5948a52e..bcb6ef1f 100644 --- a/docs/modules/cli_utils_lookup_closest_module.md +++ b/docs/modules/cli_utils_lookup_closest_module.md @@ -29,4 +29,4 @@ Lookup for the closest module component from the destination path. #### Defined in -[src/cli/utils/lookup-closest-module.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/utils/lookup-closest-module.ts#L12) +[src/cli/utils/lookup-closest-module.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/utils/lookup-closest-module.ts#L12) diff --git a/docs/modules/cli_utils_parse_component_value.md b/docs/modules/cli_utils_parse_component_value.md index 3e4a037e..725706d2 100644 --- a/docs/modules/cli_utils_parse_component_value.md +++ b/docs/modules/cli_utils_parse_component_value.md @@ -38,4 +38,4 @@ Parse the component information to create a kind of descriptor. #### Defined in -[src/cli/utils/parse-component-value.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/utils/parse-component-value.ts#L11) +[src/cli/utils/parse-component-value.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/utils/parse-component-value.ts#L11) diff --git a/docs/modules/cli_utils_slash.md b/docs/modules/cli_utils_slash.md index 6a088e77..cbc2d3e1 100644 --- a/docs/modules/cli_utils_slash.md +++ b/docs/modules/cli_utils_slash.md @@ -20,4 +20,4 @@ #### Defined in -[src/cli/utils/slash.ts:1](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/cli/utils/slash.ts#L1) +[src/cli/utils/slash.ts:1](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/cli/utils/slash.ts#L1) diff --git a/docs/modules/core_constants.md b/docs/modules/core_constants.md index b7024ed6..20cbfb95 100644 --- a/docs/modules/core_constants.md +++ b/docs/modules/core_constants.md @@ -20,7 +20,7 @@ Metadata key to store config from decorated injectables. #### Defined in -[src/core/constants.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/constants.ts#L9) +[src/core/constants.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/constants.ts#L9) ___ @@ -66,7 +66,7 @@ Hold the name of the medusa services registered into the container for later on #### Defined in -[src/core/constants.ts:14](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/constants.ts#L14) +[src/core/constants.ts:14](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/constants.ts#L14) ___ @@ -78,4 +78,4 @@ Metadata key to store config from decorated injectables. #### Defined in -[src/core/constants.ts:4](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/constants.ts#L4) +[src/core/constants.ts:4](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/constants.ts#L4) diff --git a/docs/modules/core_event_emmiter.Internals.md b/docs/modules/core_event_emmiter.Internals.md index 950350d4..1e0c03f2 100644 --- a/docs/modules/core_event_emmiter.Internals.md +++ b/docs/modules/core_event_emmiter.Internals.md @@ -38,4 +38,4 @@ A listener descriptor. #### Defined in -[src/core/event-emmiter.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L10) +[src/core/event-emmiter.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L10) diff --git a/docs/modules/core_event_emmiter.md b/docs/modules/core_event_emmiter.md index 9b320f7f..7d510ab8 100644 --- a/docs/modules/core_event_emmiter.md +++ b/docs/modules/core_event_emmiter.md @@ -23,4 +23,4 @@ Export the instance of the event emmiter. #### Defined in -[src/core/event-emmiter.ts:101](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/event-emmiter.ts#L101) +[src/core/event-emmiter.ts:101](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/event-emmiter.ts#L101) diff --git a/docs/modules/core_metadata_reader.md b/docs/modules/core_metadata_reader.md index c83e76ef..2866f712 100644 --- a/docs/modules/core_metadata_reader.md +++ b/docs/modules/core_metadata_reader.md @@ -37,7 +37,7 @@ Return the options from components. #### Defined in -[src/core/metadata-reader.ts:44](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/metadata-reader.ts#L44) +[src/core/metadata-reader.ts:44](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/metadata-reader.ts#L44) ___ @@ -61,4 +61,4 @@ Read all metadata from the imported modules and extract components that will be #### Defined in -[src/core/metadata-reader.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/metadata-reader.ts#L11) +[src/core/metadata-reader.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/metadata-reader.ts#L11) diff --git a/docs/modules/core_package_loader.md b/docs/modules/core_package_loader.md index 8c4e2cf1..73c1708a 100644 --- a/docs/modules/core_package_loader.md +++ b/docs/modules/core_package_loader.md @@ -24,7 +24,7 @@ Return the install command from the user package manager. #### Defined in -[src/core/package-loader.ts:52](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/package-loader.ts#L52) +[src/core/package-loader.ts:52](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/package-loader.ts#L52) ___ @@ -48,4 +48,4 @@ Load packages at run time. #### Defined in -[src/core/package-loader.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/package-loader.ts#L12) +[src/core/package-loader.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/package-loader.ts#L12) diff --git a/docs/modules/core_types.md b/docs/modules/core_types.md index 344cb784..f2fd8e89 100644 --- a/docs/modules/core_types.md +++ b/docs/modules/core_types.md @@ -57,7 +57,7 @@ #### Defined in -[src/core/types.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L13) +[src/core/types.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L13) ___ @@ -82,7 +82,7 @@ Defines the injection options for entities. #### Defined in -[src/core/types.ts:31](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L31) +[src/core/types.ts:31](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L31) ___ @@ -100,7 +100,7 @@ Determine which options type it actually is depending on the component type. #### Defined in -[src/core/types.ts:120](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L120) +[src/core/types.ts:120](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L120) ___ @@ -118,7 +118,7 @@ Determine which options type it actually is depending on the component type. #### Defined in -[src/core/types.ts:145](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L145) +[src/core/types.ts:145](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L145) ___ @@ -130,7 +130,7 @@ Components that does not required any other options that Type. #### Defined in -[src/core/types.ts:18](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L18) +[src/core/types.ts:18](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L18) ___ @@ -148,7 +148,7 @@ Union of all options type possible for injectable. #### Defined in -[src/core/types.ts:109](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L109) +[src/core/types.ts:109](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L109) ___ @@ -160,7 +160,7 @@ Describe the expected request from a middleware [MedusaMiddleware](../interfaces #### Defined in -[src/core/types.ts:159](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L159) +[src/core/types.ts:159](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L159) ___ @@ -170,7 +170,7 @@ ___ #### Defined in -[src/core/types.ts:5](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L5) +[src/core/types.ts:5](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L5) ___ @@ -182,7 +182,7 @@ Medusa request extended. #### Defined in -[src/core/types.ts:151](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L151) +[src/core/types.ts:151](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L151) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[src/core/types.ts:166](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L166) +[src/core/types.ts:166](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L166) ___ @@ -211,7 +211,7 @@ Describe all the available options for the Route [MedusaMiddleware](../interface #### Defined in -[src/core/types.ts:171](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L171) +[src/core/types.ts:171](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L171) ___ @@ -230,7 +230,7 @@ Defines the injection options for middlewares. #### Defined in -[src/core/types.ts:82](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L82) +[src/core/types.ts:82](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L82) ___ @@ -249,7 +249,7 @@ Mix the return type of two objects. #### Defined in -[src/core/types.ts:195](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L195) +[src/core/types.ts:195](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L195) ___ @@ -273,7 +273,7 @@ Defines the injection options for routes. #### Defined in -[src/core/types.ts:102](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L102) +[src/core/types.ts:102](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L102) ___ @@ -298,7 +298,7 @@ Defines the injection options for services, entities, repositories. #### Defined in -[src/core/types.ts:54](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L54) +[src/core/types.ts:54](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L54) ___ @@ -316,7 +316,7 @@ Defines the injection options for routes. #### Defined in -[src/core/types.ts:75](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L75) +[src/core/types.ts:75](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L75) ___ @@ -337,7 +337,7 @@ Define a router and its configuration. #### Defined in -[src/core/types.ts:65](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L65) +[src/core/types.ts:65](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L65) ___ @@ -363,7 +363,7 @@ Defines the injection options for service. #### Defined in -[src/core/types.ts:42](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L42) +[src/core/types.ts:42](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L42) ___ @@ -375,7 +375,7 @@ Defines the injection options for subscribers. #### Defined in -[src/core/types.ts:97](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L97) +[src/core/types.ts:97](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L97) ___ @@ -399,4 +399,4 @@ Defines the injection options for routes. #### Defined in -[src/core/types.ts:90](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/types.ts#L90) +[src/core/types.ts:90](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/types.ts#L90) diff --git a/docs/modules/core_utils.md b/docs/modules/core_utils.md index 2381733b..d16392f3 100644 --- a/docs/modules/core_utils.md +++ b/docs/modules/core_utils.md @@ -42,7 +42,7 @@ Allow to omit some property from a class. #### Defined in -[src/core/utils.ts:52](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/utils.ts#L52) +[src/core/utils.ts:52](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/utils.ts#L52) ___ @@ -72,7 +72,7 @@ Attach a new subscriber to a specific entities. #### Defined in -[src/core/utils.ts:29](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/utils.ts#L29) +[src/core/utils.ts:29](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/utils.ts#L29) ___ @@ -94,7 +94,7 @@ Lower case the first character of the input string. #### Defined in -[src/core/utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/utils.ts#L59) +[src/core/utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/utils.ts#L59) ___ @@ -124,7 +124,7 @@ Since it is not possible to use multiple extend, you can use that utilities to a #### Defined in -[src/core/utils.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/utils.ts#L9) +[src/core/utils.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/utils.ts#L9) ___ @@ -146,4 +146,4 @@ Upper case the first character of the input string. #### Defined in -[src/core/utils.ts:67](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/core/utils.ts#L67) +[src/core/utils.ts:67](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/core/utils.ts#L67) diff --git a/docs/modules/decorators_components_decorator.md b/docs/modules/decorators_components_decorator.md index dcb0abf8..19e0cb6d 100644 --- a/docs/modules/decorators_components_decorator.md +++ b/docs/modules/decorators_components_decorator.md @@ -41,7 +41,7 @@ Mark a class as an entity to be used by the loader. #### Defined in -[src/decorators/components.decorator.ts:16](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L16) +[src/decorators/components.decorator.ts:16](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L16) ___ @@ -63,7 +63,7 @@ Mark a class as a middleware to be used by the loader. #### Defined in -[src/decorators/components.decorator.ts:43](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L43) +[src/decorators/components.decorator.ts:43](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L43) ___ @@ -79,7 +79,7 @@ Mark a class as a migration to be used by the loader. #### Defined in -[src/decorators/components.decorator.ts:51](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L51) +[src/decorators/components.decorator.ts:51](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L51) ___ @@ -107,7 +107,7 @@ Mark a class as a repository to be used by the loader. #### Defined in -[src/decorators/components.decorator.ts:34](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L34) +[src/decorators/components.decorator.ts:34](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L34) ___ @@ -129,7 +129,7 @@ Mark a class as a router to be used by the loader. #### Defined in -[src/decorators/components.decorator.ts:60](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L60) +[src/decorators/components.decorator.ts:60](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L60) ___ @@ -157,7 +157,7 @@ Mark a class as a service to be used by the loader. #### Defined in -[src/decorators/components.decorator.ts:25](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L25) +[src/decorators/components.decorator.ts:25](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L25) ___ @@ -173,7 +173,7 @@ Mark a class as a subscriber. #### Defined in -[src/decorators/components.decorator.ts:77](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L77) +[src/decorators/components.decorator.ts:77](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L77) ___ @@ -195,4 +195,4 @@ Mark a class as a validator to be used by the validator utility. #### Defined in -[src/decorators/components.decorator.ts:69](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/components.decorator.ts#L69) +[src/decorators/components.decorator.ts:69](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/components.decorator.ts#L69) diff --git a/docs/modules/decorators_helpers_build_component_decorator.md b/docs/modules/decorators_helpers_build_component_decorator.md index ee0bf07e..9942f477 100644 --- a/docs/modules/decorators_helpers_build_component_decorator.md +++ b/docs/modules/decorators_helpers_build_component_decorator.md @@ -32,4 +32,4 @@ #### Defined in -[src/decorators/helpers/build-component-decorator.ts:4](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/helpers/build-component-decorator.ts#L4) +[src/decorators/helpers/build-component-decorator.ts:4](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/helpers/build-component-decorator.ts#L4) diff --git a/docs/modules/decorators_module_decorator.md b/docs/modules/decorators_module_decorator.md index ec350e9a..d632506a 100644 --- a/docs/modules/decorators_module_decorator.md +++ b/docs/modules/decorators_module_decorator.md @@ -28,4 +28,4 @@ Mark a class as aa module and store all injectable on it. #### Defined in -[src/decorators/module.decorator.ts:9](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/module.decorator.ts#L9) +[src/decorators/module.decorator.ts:9](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/module.decorator.ts#L9) diff --git a/docs/modules/decorators_onMedusaEntityEvent_decorator.md b/docs/modules/decorators_onMedusaEntityEvent_decorator.md index a5925078..7044ec3d 100644 --- a/docs/modules/decorators_onMedusaEntityEvent_decorator.md +++ b/docs/modules/decorators_onMedusaEntityEvent_decorator.md @@ -24,7 +24,7 @@ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L10) +[src/decorators/onMedusaEntityEvent.decorator.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L10) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:5](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L5) +[src/decorators/onMedusaEntityEvent.decorator.ts:5](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L5) ___ @@ -60,7 +60,7 @@ Event types that can be emitted. #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:15](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L15) +[src/decorators/onMedusaEntityEvent.decorator.ts:15](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L15) ___ @@ -86,7 +86,7 @@ The arguments expected by the [OnMedusaEntityEvent](../classes/decorators_onMedu #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:24](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L24) +[src/decorators/onMedusaEntityEvent.decorator.ts:24](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L24) ___ @@ -112,4 +112,4 @@ The arguments expected by the event handler. #### Defined in -[src/decorators/onMedusaEntityEvent.decorator.ts:32](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/decorators/onMedusaEntityEvent.decorator.ts#L32) +[src/decorators/onMedusaEntityEvent.decorator.ts:32](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/decorators/onMedusaEntityEvent.decorator.ts#L32) diff --git a/docs/modules/loaders_admin_api_loader.md b/docs/modules/loaders_admin_api_loader.md index 4b813c60..1c56d7f8 100644 --- a/docs/modules/loaders_admin_api_loader.md +++ b/docs/modules/loaders_admin_api_loader.md @@ -31,4 +31,4 @@ Apply middlewares and routes on the underlying @medusajs admin API. #### Defined in -[src/loaders/admin-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/admin-api.loader.ts#L13) +[src/loaders/admin-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/admin-api.loader.ts#L13) diff --git a/docs/modules/loaders_custom_api_loader.md b/docs/modules/loaders_custom_api_loader.md index 5bd92a5b..07f43d4f 100644 --- a/docs/modules/loaders_custom_api_loader.md +++ b/docs/modules/loaders_custom_api_loader.md @@ -31,4 +31,4 @@ Apply middlewares and routes on the underlying @medusajs top API. #### Defined in -[src/loaders/custom-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/custom-api.loader.ts#L13) +[src/loaders/custom-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/custom-api.loader.ts#L13) diff --git a/docs/modules/loaders_database_loader.md b/docs/modules/loaders_database_loader.md index acb24fb5..8209ce30 100644 --- a/docs/modules/loaders_database_loader.md +++ b/docs/modules/loaders_database_loader.md @@ -28,4 +28,4 @@ #### Defined in -[src/loaders/database.loader.ts:5](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/database.loader.ts#L5) +[src/loaders/database.loader.ts:5](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/database.loader.ts#L5) diff --git a/docs/modules/loaders_entities_loader.md b/docs/modules/loaders_entities_loader.md index 11d6a397..ce46e245 100644 --- a/docs/modules/loaders_entities_loader.md +++ b/docs/modules/loaders_entities_loader.md @@ -33,7 +33,7 @@ Load all custom entities into the underlying @medusajs instance. #### Defined in -[src/loaders/entities.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/entities.loader.ts#L13) +[src/loaders/entities.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/entities.loader.ts#L13) ___ @@ -56,7 +56,7 @@ Load all custom entities that override @medusajs instance entities. #### Defined in -[src/loaders/entities.loader.ts:36](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/entities.loader.ts#L36) +[src/loaders/entities.loader.ts:36](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/entities.loader.ts#L36) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[src/loaders/entities.loader.ts:63](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/entities.loader.ts#L63) +[src/loaders/entities.loader.ts:63](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/entities.loader.ts#L63) ___ @@ -97,4 +97,4 @@ ___ #### Defined in -[src/loaders/entities.loader.ts:51](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/entities.loader.ts#L51) +[src/loaders/entities.loader.ts:51](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/entities.loader.ts#L51) diff --git a/docs/modules/loaders_helpers_apply_middlewares.md b/docs/modules/loaders_helpers_apply_middlewares.md index d037bbc2..6ab50429 100644 --- a/docs/modules/loaders_helpers_apply_middlewares.md +++ b/docs/modules/loaders_helpers_apply_middlewares.md @@ -31,7 +31,7 @@ Apply all middlewares on the app that must be applied after the @medusajs authen #### Defined in -[src/loaders/helpers/apply-middlewares.ts:34](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/helpers/apply-middlewares.ts#L34) +[src/loaders/helpers/apply-middlewares.ts:34](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/helpers/apply-middlewares.ts#L34) ___ @@ -55,4 +55,4 @@ Apply all middlewares on the app that must be applied before the @medusajs authe #### Defined in -[src/loaders/helpers/apply-middlewares.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/helpers/apply-middlewares.ts#L12) +[src/loaders/helpers/apply-middlewares.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/helpers/apply-middlewares.ts#L12) diff --git a/docs/modules/loaders_helpers_apply_routers.md b/docs/modules/loaders_helpers_apply_routers.md index cedfe519..43fcf3f7 100644 --- a/docs/modules/loaders_helpers_apply_routers.md +++ b/docs/modules/loaders_helpers_apply_routers.md @@ -31,7 +31,7 @@ Apply all routes on the app that must be applied after the @medusajs authenticat #### Defined in -[src/loaders/helpers/apply-routers.ts:26](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/helpers/apply-routers.ts#L26) +[src/loaders/helpers/apply-routers.ts:26](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/helpers/apply-routers.ts#L26) ___ @@ -55,4 +55,4 @@ Apply all routes on the app that must be applied before the @medusajs authentica #### Defined in -[src/loaders/helpers/apply-routers.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/helpers/apply-routers.ts#L10) +[src/loaders/helpers/apply-routers.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/helpers/apply-routers.ts#L10) diff --git a/docs/modules/loaders_migrations_loader.md b/docs/modules/loaders_migrations_loader.md index ddcdaefb..f7182050 100644 --- a/docs/modules/loaders_migrations_loader.md +++ b/docs/modules/loaders_migrations_loader.md @@ -30,4 +30,4 @@ Run custom migrations that are find from the provided directory and stored in a #### Defined in -[src/loaders/migrations.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/migrations.loader.ts#L13) +[src/loaders/migrations.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/migrations.loader.ts#L13) diff --git a/docs/modules/loaders_modules_loader.md b/docs/modules/loaders_modules_loader.md index 4b97627a..0f5aa144 100644 --- a/docs/modules/loaders_modules_loader.md +++ b/docs/modules/loaders_modules_loader.md @@ -28,4 +28,4 @@ #### Defined in -[src/loaders/modules.loader.ts:5](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/modules.loader.ts#L5) +[src/loaders/modules.loader.ts:5](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/modules.loader.ts#L5) diff --git a/docs/modules/loaders_plugins_loader.md b/docs/modules/loaders_plugins_loader.md index cfb59a59..b7978ffb 100644 --- a/docs/modules/loaders_plugins_loader.md +++ b/docs/modules/loaders_plugins_loader.md @@ -29,4 +29,4 @@ Register all listeners before the plugins are loaded to be sure that the scope m #### Defined in -[src/loaders/plugins.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/plugins.loader.ts#L10) +[src/loaders/plugins.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/plugins.loader.ts#L10) diff --git a/docs/modules/loaders_repository_loader.md b/docs/modules/loaders_repository_loader.md index 2e3abf5b..d2d320c4 100644 --- a/docs/modules/loaders_repository_loader.md +++ b/docs/modules/loaders_repository_loader.md @@ -30,7 +30,7 @@ Load all custom repositories that override @medusajs instance entities. #### Defined in -[src/loaders/repository.loader.ts:37](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/repository.loader.ts#L37) +[src/loaders/repository.loader.ts:37](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/repository.loader.ts#L37) ___ @@ -54,4 +54,4 @@ Load all custom repositories into the underlying @medusajs instance. #### Defined in -[src/loaders/repository.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/repository.loader.ts#L14) +[src/loaders/repository.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/repository.loader.ts#L14) diff --git a/docs/modules/loaders_services_loader.md b/docs/modules/loaders_services_loader.md index dd59fb04..6c0e84a4 100644 --- a/docs/modules/loaders_services_loader.md +++ b/docs/modules/loaders_services_loader.md @@ -30,7 +30,7 @@ #### Defined in -[src/loaders/services.loader.ts:52](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/services.loader.ts#L52) +[src/loaders/services.loader.ts:52](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/services.loader.ts#L52) ___ @@ -52,7 +52,7 @@ ___ #### Defined in -[src/loaders/services.loader.ts:40](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/services.loader.ts#L40) +[src/loaders/services.loader.ts:40](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/services.loader.ts#L40) ___ @@ -75,4 +75,4 @@ Load all custom services and overridden services into the underlying @medusajs i #### Defined in -[src/loaders/services.loader.ts:12](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/services.loader.ts#L12) +[src/loaders/services.loader.ts:12](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/services.loader.ts#L12) diff --git a/docs/modules/loaders_store_api_loader.md b/docs/modules/loaders_store_api_loader.md index 983591a4..0412e33d 100644 --- a/docs/modules/loaders_store_api_loader.md +++ b/docs/modules/loaders_store_api_loader.md @@ -31,4 +31,4 @@ Apply middlewares and routes on store API. #### Defined in -[src/loaders/store-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/store-api.loader.ts#L13) +[src/loaders/store-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/store-api.loader.ts#L13) diff --git a/docs/modules/loaders_subscribers_loader.md b/docs/modules/loaders_subscribers_loader.md index b80b1ec6..856dcb87 100644 --- a/docs/modules/loaders_subscribers_loader.md +++ b/docs/modules/loaders_subscribers_loader.md @@ -29,4 +29,4 @@ Load all custom extended validators into the underlying @medusajs instance. #### Defined in -[src/loaders/subscribers.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/subscribers.loader.ts#L11) +[src/loaders/subscribers.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/subscribers.loader.ts#L11) diff --git a/docs/modules/loaders_validators_loader.md b/docs/modules/loaders_validators_loader.md index 43810459..8b86eefb 100644 --- a/docs/modules/loaders_validators_loader.md +++ b/docs/modules/loaders_validators_loader.md @@ -29,4 +29,4 @@ Load all custom extended validators into the underlying @medusajs instance. #### Defined in -[src/loaders/validators.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/loaders/validators.loader.ts#L11) +[src/loaders/validators.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/loaders/validators.loader.ts#L11) diff --git a/docs/modules/modules_monitoring.md b/docs/modules/modules_monitoring.md index 3a737699..eceb9b09 100644 --- a/docs/modules/modules_monitoring.md +++ b/docs/modules/modules_monitoring.md @@ -33,4 +33,4 @@ #### Defined in -[src/modules/monitoring.ts:25](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/monitoring.ts#L25) +[src/modules/monitoring.ts:25](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/monitoring.ts#L25) diff --git a/docs/modules/modules_multi_tenancy_types.md b/docs/modules/modules_multi_tenancy_types.md index 0c8b3a70..5ed3c198 100644 --- a/docs/modules/modules_multi_tenancy_types.md +++ b/docs/modules/modules_multi_tenancy_types.md @@ -20,4 +20,4 @@ #### Defined in -[src/modules/multi-tenancy/types.ts:4](https://github.com/adrien2p/medusa-extender/blob/624a76f/src/modules/multi-tenancy/types.ts#L4) +[src/modules/multi-tenancy/types.ts:4](https://github.com/adrien2p/medusa-extender/blob/17915cd/src/modules/multi-tenancy/types.ts#L4) diff --git a/documentation/_README_BUILT.md b/documentation/_README_BUILT.md index 9ccd349b..51f1ac64 100644 --- a/documentation/_README_BUILT.md +++ b/documentation/_README_BUILT.md @@ -114,7 +114,7 @@ Depending on your situation, pick the right getting started section. In that case, you must already have scaffold a new medusa store project. If that's not the case you can [follow the tutorial here](https://docs.medusajs.com/quickstart/quick-start). -Run the following command in your terminal (The last version is 1.7.1) +Run the following command in your terminal (The last version is 1.7.3) ```bash npm install medusa-extender @@ -394,6 +394,30 @@ export class Product extends MedusaProduct { > The `override` parameter of the `@MedusaEntity` decorator allow to specify which entity > from the core must be overridden. +To make your project aware of your customisation +at the medusa core level, you can use the [module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) +approach. + +here is an example + +```ts +// src/modules/your_modules/index.d.ts + +import { User as ExtendedUser } from '@modules/user/user.entity'; +import { default as ExtendedUserRepository } from '@modules/user/user.repository'; + +declare module '@medusajs/medusa/dist/models/user' { + export declare class User extends ExtendedUser {} +} + +declare module '@medusajs/medusa' { + export declare class UserRepository extends ExtendedUserRepository {} +} + +``` + +To see a live example, you can look at the starters, they include the module augmentation approach. + ### @Repository This decorator gives you the ability to either create a new custom repository that will