From 31c396ff7053ffdce40113057f204369a748cf29 Mon Sep 17 00:00:00 2001 From: adrien2p Date: Sun, 23 Jan 2022 15:05:00 +0100 Subject: [PATCH] Feat() Update readme and doc --- README.md | 48 +++++++++++++++++-- docs/README.md | 48 +++++++++++++++++-- docs/classes/medusa.Medusa.md | 22 ++++----- ...nt_emitter.Internals.MedusaEventEmitter.md | 12 ++--- docs/classes/medusa_loader.MedusaLoader.md | 8 ++-- ...e_repository.MedusaMiddlewareRepository.md | 6 +-- docs/classes/medusa_utils.Utils.md | 12 ++--- docs/interfaces/types.MedusaEntityStatic.md | 6 +-- .../types.MedusaEntitySubscriberStatic.md | 2 +- .../types.MedusaMiddlewareInstance.md | 2 +- .../types.MedusaMiddlewareStatic.md | 8 ++-- .../types.MedusaRepositoryStatic.md | 6 +-- docs/interfaces/types.MedusaServiceStatic.md | 10 ++-- docs/interfaces/types.Type.md | 2 +- docs/modules/index.md | 2 +- docs/modules/loaders_api_loader.md | 2 +- docs/modules/loaders_database_loader.md | 2 +- docs/modules/loaders_entities_loader.md | 4 +- docs/modules/loaders_middlewares_loader.md | 2 +- docs/modules/loaders_repository_loader.md | 4 +- docs/modules/loaders_routes_loader.md | 4 +- docs/modules/loaders_services_loader.md | 2 +- docs/modules/medusa.Internals.md | 4 +- .../modules/medusa_event_emitter.Internals.md | 2 +- docs/modules/medusa_event_emitter.md | 2 +- docs/modules/medusa_loader.Internals.md | 2 +- docs/modules/medusa_middleware_repository.md | 2 +- docs/modules/medusa_scanner.Internals.md | 2 +- docs/modules/medusa_scanner.md | 2 +- docs/modules/types.md | 30 ++++++------ 30 files changed, 172 insertions(+), 88 deletions(-) diff --git a/README.md b/README.md index cab70c9c..e749c4fe 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,8 @@ This packages exports the necessary bits and pieces to extend [medusajs](https:/ > `Medusa` is the entry point from `medusa-extender` and does not correspond to `medusa` itself -This is the main entry point that will allow to start your medusa server, including your custom extensions. +This is the main entry point that will allow to start your medusa server, +including your custom extensions. Here is an example of how it works @@ -121,7 +122,7 @@ The main purpuse of it is to be able to intercept entity event and add custom lo ### Usage -For that purpose an utility is provided that allow multiple to attach a new subscriver on the active connection +For that purpose an utility is provided that allow multiple to attach a new subscriber on the active connection handled by the medusa container. Here is an example @@ -162,9 +163,50 @@ export default class StoreSubscriber } } ``` -Those events will be attached attached/removed for each request to be sure that if any + +Those events will be subscribed/unsubscribed for each request to be sure that if any services are request scoped that you can access the actual cradle. +Here is an example of extended services that listen to an event + +```typescript +interface ConstructorParams { + loggedInUser: User; + manager: EntityManager; + productRepository: ObjectType; + productVariantRepository: ObjectType; + productOptionRepository: ObjectType; + eventBusService: EventBusService; + productVariantService: ProductVariantService; + productCollectionService: ProductCollectionService; + productTypeRepository: ObjectType; + productTagRepository: ObjectType; + imageRepository: ObjectType; + searchService: TSearchService; +} + +export default class ProductService extends MedusaProductService implements MedusaService { + public static overriddenType = MedusaProductService; + public static isHandledByMedusa = true; + public static scope = Lifetime.SCOPED; + + readonly #manager: EntityManager; + + constructor(private readonly container: ConstructorParams) { + super(container); + this.#manager = container.manager; + } + + @OnMedusaEvent.Before.Insert(Product, { async: true }) + public async attachStoreToProduct( + params: MedusaEventHandlerParams + ): Promise> { + // Your custom implementation + return event; + } +} +``` + ## Types [Read more about it](./docs/modules/types.md) diff --git a/docs/README.md b/docs/README.md index 1a4f85cf..48717d57 100644 --- a/docs/README.md +++ b/docs/README.md @@ -41,7 +41,8 @@ This packages exports the necessary bits and pieces to extend [medusajs](https:/ > `Medusa` is the entry point from `medusa-extender` and does not correspond to `medusa` itself -This is the main entry point that will allow to start your medusa server, including your custom extensions. +This is the main entry point that will allow to start your medusa server, +including your custom extensions. Here is an example of how it works @@ -121,7 +122,7 @@ The main purpuse of it is to be able to intercept entity event and add custom lo ### Usage -For that purpose an utility is provided that allow multiple to attach a new subscriver on the active connection +For that purpose an utility is provided that allow multiple to attach a new subscriber on the active connection handled by the medusa container. Here is an example @@ -162,9 +163,50 @@ export default class StoreSubscriber } } ``` -Those events will be attached attached/removed for each request to be sure that if any + +Those events will be subscribed/unsubscribed for each request to be sure that if any services are request scoped that you can access the actual cradle. +Here is an example of extended services that listen to an event + +```typescript +interface ConstructorParams { + loggedInUser: User; + manager: EntityManager; + productRepository: ObjectType; + productVariantRepository: ObjectType; + productOptionRepository: ObjectType; + eventBusService: EventBusService; + productVariantService: ProductVariantService; + productCollectionService: ProductCollectionService; + productTypeRepository: ObjectType; + productTagRepository: ObjectType; + imageRepository: ObjectType; + searchService: TSearchService; +} + +export default class ProductService extends MedusaProductService implements MedusaService { + public static overriddenType = MedusaProductService; + public static isHandledByMedusa = true; + public static scope = Lifetime.SCOPED; + + readonly #manager: EntityManager; + + constructor(private readonly container: ConstructorParams) { + super(container); + this.#manager = container.manager; + } + + @OnMedusaEvent.Before.Insert(Product, { async: true }) + public async attachStoreToProduct( + params: MedusaEventHandlerParams + ): Promise> { + // Your custom implementation + return event; + } +} +``` + ## Types [Read more about it](./docs/modules/types.md) diff --git a/docs/classes/medusa.Medusa.md b/docs/classes/medusa.Medusa.md index b3898822..fd36913b 100644 --- a/docs/classes/medusa.Medusa.md +++ b/docs/classes/medusa.Medusa.md @@ -43,7 +43,7 @@ Register steps that must be executed before/after medusa is load. #### Defined in -[medusa.ts:30](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L30) +[medusa.ts:30](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L30) ## Properties @@ -53,7 +53,7 @@ Register steps that must be executed before/after medusa is load. #### Defined in -[medusa.ts:24](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L24) +[medusa.ts:24](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L24) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[medusa.ts:23](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L23) +[medusa.ts:23](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L23) ___ @@ -73,7 +73,7 @@ ___ #### Defined in -[medusa.ts:20](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L20) +[medusa.ts:20](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L20) ___ @@ -83,7 +83,7 @@ ___ #### Defined in -[medusa.ts:21](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L21) +[medusa.ts:21](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L21) ___ @@ -93,7 +93,7 @@ ___ #### Defined in -[medusa.ts:22](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L22) +[medusa.ts:22](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L22) ## Methods @@ -115,7 +115,7 @@ Register middlewares to be apply before/after auth middleware. #### Defined in -[medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L39) +[medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L39) ___ @@ -131,7 +131,7 @@ Launch all the steps before/after medusa according to the `stepOptions`. #### Defined in -[medusa.ts:76](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L76) +[medusa.ts:76](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L76) ___ @@ -153,7 +153,7 @@ Register a step that must be executed after medusa is loaded. #### Defined in -[medusa.ts:67](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L67) +[medusa.ts:67](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L67) ___ @@ -175,7 +175,7 @@ Register a step that must be executed before medusa is loaded. #### Defined in -[medusa.ts:57](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L57) +[medusa.ts:57](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L57) ___ @@ -197,4 +197,4 @@ Promise #### Defined in -[medusa.ts:99](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L99) +[medusa.ts:99](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa.ts#L99) diff --git a/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md b/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md index 42ff4e66..e607a909 100644 --- a/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md +++ b/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md @@ -41,7 +41,7 @@ EventEmitter.constructor #### Defined in -[medusa-event-emitter.ts:20](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L20) +[medusa-event-emitter.ts:20](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-event-emitter.ts#L20) ## Properties @@ -51,7 +51,7 @@ EventEmitter.constructor #### Defined in -[medusa-event-emitter.ts:18](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L18) +[medusa-event-emitter.ts:18](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-event-emitter.ts#L18) ## Methods @@ -74,7 +74,7 @@ Emit an asynchrone event entity based and wait for the result. #### Defined in -[medusa-event-emitter.ts:69](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L69) +[medusa-event-emitter.ts:69](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-event-emitter.ts#L69) ___ @@ -104,7 +104,7 @@ Register a new event handler. #### Defined in -[medusa-event-emitter.ts:30](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L30) +[medusa-event-emitter.ts:30](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-event-emitter.ts#L30) ___ @@ -126,7 +126,7 @@ Apply all event handlers hold by the `listenerDescriptor`. #### Defined in -[medusa-event-emitter.ts:42](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L42) +[medusa-event-emitter.ts:42](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-event-emitter.ts#L42) ___ @@ -140,4 +140,4 @@ ___ #### Defined in -[medusa-event-emitter.ts:57](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L57) +[medusa-event-emitter.ts:57](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-event-emitter.ts#L57) diff --git a/docs/classes/medusa_loader.MedusaLoader.md b/docs/classes/medusa_loader.MedusaLoader.md index fbcc6687..48ec64d4 100644 --- a/docs/classes/medusa_loader.MedusaLoader.md +++ b/docs/classes/medusa_loader.MedusaLoader.md @@ -46,7 +46,7 @@ internal container and database connection. #### Defined in -[medusa-loader.ts:68](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L68) +[medusa-loader.ts:68](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-loader.ts#L68) ___ @@ -68,7 +68,7 @@ Register all listeners before the plugins are loaded to be sure that the scope m #### Defined in -[medusa-loader.ts:104](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L104) +[medusa-loader.ts:104](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-loader.ts#L104) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[medusa-loader.ts:149](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L149) +[medusa-loader.ts:149](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-loader.ts#L149) ___ @@ -110,4 +110,4 @@ ___ #### Defined in -[medusa-loader.ts:134](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L134) +[medusa-loader.ts:134](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-loader.ts#L134) diff --git a/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md b/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md index bdb39d7c..939c1352 100644 --- a/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md +++ b/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md @@ -51,7 +51,7 @@ Map< #### Defined in -[medusa-middleware.repository.ts:14](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L14) +[medusa-middleware.repository.ts:14](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-middleware.repository.ts#L14) ## Methods @@ -73,7 +73,7 @@ Register a new middleware that must applied after auth. #### Defined in -[medusa-middleware.repository.ts:36](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L36) +[medusa-middleware.repository.ts:36](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-middleware.repository.ts#L36) ___ @@ -95,4 +95,4 @@ Register a new middleware that must applied before auth. #### Defined in -[medusa-middleware.repository.ts:24](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L24) +[medusa-middleware.repository.ts:24](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-middleware.repository.ts#L24) diff --git a/docs/classes/medusa_utils.Utils.md b/docs/classes/medusa_utils.Utils.md index 2402168b..5956282f 100644 --- a/docs/classes/medusa_utils.Utils.md +++ b/docs/classes/medusa_utils.Utils.md @@ -56,7 +56,7 @@ Attach a new subscriber to a specific entities. #### Defined in -[medusa-utils.ts:38](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L38) +[medusa-utils.ts:38](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-utils.ts#L38) ___ @@ -78,7 +78,7 @@ Log all the routes from the express instance. #### Defined in -[medusa-utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L59) +[medusa-utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-utils.ts#L59) ___ @@ -101,7 +101,7 @@ Prepare the log to be shown to be consistent everywhere. #### Defined in -[medusa-utils.ts:68](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L68) +[medusa-utils.ts:68](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-utils.ts#L68) ___ @@ -122,7 +122,7 @@ ___ #### Defined in -[medusa-utils.ts:81](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L81) +[medusa-utils.ts:81](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-utils.ts#L81) ___ @@ -153,7 +153,7 @@ Since it is not possible to use multiple extend, you can use that utilities to a #### Defined in -[medusa-utils.ts:17](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L17) +[medusa-utils.ts:17](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-utils.ts#L17) ___ @@ -173,4 +173,4 @@ ___ #### Defined in -[medusa-utils.ts:101](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L101) +[medusa-utils.ts:101](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/medusa-utils.ts#L101) diff --git a/docs/interfaces/types.MedusaEntityStatic.md b/docs/interfaces/types.MedusaEntityStatic.md index 5315f8fc..505ba4eb 100644 --- a/docs/interfaces/types.MedusaEntityStatic.md +++ b/docs/interfaces/types.MedusaEntityStatic.md @@ -32,7 +32,7 @@ Describe a custom entity constructor. #### Defined in -[types.ts:148](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L148) +[types.ts:148](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L148) ## Properties @@ -42,7 +42,7 @@ Describe a custom entity constructor. #### Defined in -[types.ts:146](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L146) +[types.ts:146](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L146) ___ @@ -52,4 +52,4 @@ ___ #### Defined in -[types.ts:145](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L145) +[types.ts:145](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L145) diff --git a/docs/interfaces/types.MedusaEntitySubscriberStatic.md b/docs/interfaces/types.MedusaEntitySubscriberStatic.md index afa50bc5..65a8b5f9 100644 --- a/docs/interfaces/types.MedusaEntitySubscriberStatic.md +++ b/docs/interfaces/types.MedusaEntitySubscriberStatic.md @@ -27,4 +27,4 @@ Describe a custom subscriber constructor. #### Defined in -[types.ts:195](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L195) +[types.ts:195](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L195) diff --git a/docs/interfaces/types.MedusaMiddlewareInstance.md b/docs/interfaces/types.MedusaMiddlewareInstance.md index 17f80749..c49718ad 100644 --- a/docs/interfaces/types.MedusaMiddlewareInstance.md +++ b/docs/interfaces/types.MedusaMiddlewareInstance.md @@ -45,4 +45,4 @@ Describe a custom middleware instance. #### Defined in -[types.ts:81](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L81) +[types.ts:81](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L81) diff --git a/docs/interfaces/types.MedusaMiddlewareStatic.md b/docs/interfaces/types.MedusaMiddlewareStatic.md index 8f856817..04f45c69 100644 --- a/docs/interfaces/types.MedusaMiddlewareStatic.md +++ b/docs/interfaces/types.MedusaMiddlewareStatic.md @@ -27,7 +27,7 @@ Describe a custom middleware constructor. #### Defined in -[types.ts:95](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L95) +[types.ts:95](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L95) ## Properties @@ -37,7 +37,7 @@ Describe a custom middleware constructor. #### Defined in -[types.ts:92](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L92) +[types.ts:92](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L92) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[types.ts:91](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L91) +[types.ts:91](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L91) ___ @@ -57,4 +57,4 @@ ___ #### Defined in -[types.ts:93](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L93) +[types.ts:93](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L93) diff --git a/docs/interfaces/types.MedusaRepositoryStatic.md b/docs/interfaces/types.MedusaRepositoryStatic.md index b4266030..fd5be19e 100644 --- a/docs/interfaces/types.MedusaRepositoryStatic.md +++ b/docs/interfaces/types.MedusaRepositoryStatic.md @@ -32,7 +32,7 @@ Describe a custom entity repository constructor. #### Defined in -[types.ts:173](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L173) +[types.ts:173](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L173) ## Properties @@ -42,7 +42,7 @@ Describe a custom entity repository constructor. #### Defined in -[types.ts:171](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L171) +[types.ts:171](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L171) ___ @@ -52,4 +52,4 @@ ___ #### Defined in -[types.ts:170](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L170) +[types.ts:170](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L170) diff --git a/docs/interfaces/types.MedusaServiceStatic.md b/docs/interfaces/types.MedusaServiceStatic.md index b3494edc..8f2f0c21 100644 --- a/docs/interfaces/types.MedusaServiceStatic.md +++ b/docs/interfaces/types.MedusaServiceStatic.md @@ -40,7 +40,7 @@ Describe a custom service constructor. #### Defined in -[types.ts:123](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L123) +[types.ts:123](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L123) ## Properties @@ -50,7 +50,7 @@ Describe a custom service constructor. #### Defined in -[types.ts:115](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L115) +[types.ts:115](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L115) ___ @@ -60,7 +60,7 @@ ___ #### Defined in -[types.ts:114](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L114) +[types.ts:114](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L114) ___ @@ -72,7 +72,7 @@ Only required if there is no overriddenType #### Defined in -[types.ts:121](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L121) +[types.ts:121](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L121) ___ @@ -82,4 +82,4 @@ ___ #### Defined in -[types.ts:116](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L116) +[types.ts:116](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L116) diff --git a/docs/interfaces/types.Type.md b/docs/interfaces/types.Type.md index c9ff325e..b75cee65 100644 --- a/docs/interfaces/types.Type.md +++ b/docs/interfaces/types.Type.md @@ -40,4 +40,4 @@ Function.constructor #### Defined in -[types.ts:5](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L5) +[types.ts:5](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/types.ts#L5) diff --git a/docs/modules/index.md b/docs/modules/index.md index 6329e22f..8e54aab3 100644 --- a/docs/modules/index.md +++ b/docs/modules/index.md @@ -222,4 +222,4 @@ Re-exports [medusaEventEmitter](medusa_event_emitter.md#medusaeventemitter) #### Defined in -[index.ts:6](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/index.ts#L6) +[index.ts:6](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/index.ts#L6) diff --git a/docs/modules/loaders_api_loader.md b/docs/modules/loaders_api_loader.md index 027df14e..69341afc 100644 --- a/docs/modules/loaders_api_loader.md +++ b/docs/modules/loaders_api_loader.md @@ -29,4 +29,4 @@ Decorate the original api loader to apply our custom middleware first. #### Defined in -[loaders/api.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/api.loader.ts#L10) +[loaders/api.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/api.loader.ts#L10) diff --git a/docs/modules/loaders_database_loader.md b/docs/modules/loaders_database_loader.md index 19d34cd1..9ea126d0 100644 --- a/docs/modules/loaders_database_loader.md +++ b/docs/modules/loaders_database_loader.md @@ -30,4 +30,4 @@ decorate the original database loader to register our custom entities and reposi #### Defined in -[loaders/database.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/database.loader.ts#L11) +[loaders/database.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/database.loader.ts#L11) diff --git a/docs/modules/loaders_entities_loader.md b/docs/modules/loaders_entities_loader.md index 3261b8aa..264dadbd 100644 --- a/docs/modules/loaders_entities_loader.md +++ b/docs/modules/loaders_entities_loader.md @@ -28,7 +28,7 @@ #### Defined in -[loaders/entities.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/entities.loader.ts#L14) +[loaders/entities.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/entities.loader.ts#L14) ___ @@ -51,4 +51,4 @@ Load custom entities that must override the existing entities from the rootDir. #### Defined in -[loaders/entities.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/entities.loader.ts#L10) +[loaders/entities.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/entities.loader.ts#L10) diff --git a/docs/modules/loaders_middlewares_loader.md b/docs/modules/loaders_middlewares_loader.md index fe6608d3..a715e6eb 100644 --- a/docs/modules/loaders_middlewares_loader.md +++ b/docs/modules/loaders_middlewares_loader.md @@ -30,4 +30,4 @@ Register custom middlewares into the middlewareRegistery. #### Defined in -[loaders/middlewares.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/middlewares.loader.ts#L13) +[loaders/middlewares.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/middlewares.loader.ts#L13) diff --git a/docs/modules/loaders_repository_loader.md b/docs/modules/loaders_repository_loader.md index be784710..be7ae1a9 100644 --- a/docs/modules/loaders_repository_loader.md +++ b/docs/modules/loaders_repository_loader.md @@ -30,7 +30,7 @@ Load custom repositories that must override the existing repositories from the r #### Defined in -[loaders/repository.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/repository.loader.ts#L10) +[loaders/repository.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/repository.loader.ts#L10) ___ @@ -54,4 +54,4 @@ Load custom repositories that must be added to the existing container from the r #### Defined in -[loaders/repository.loader.ts:20](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/repository.loader.ts#L20) +[loaders/repository.loader.ts:20](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/repository.loader.ts#L20) diff --git a/docs/modules/loaders_routes_loader.md b/docs/modules/loaders_routes_loader.md index 5fbc2ba3..b872d9c9 100644 --- a/docs/modules/loaders_routes_loader.md +++ b/docs/modules/loaders_routes_loader.md @@ -28,7 +28,7 @@ #### Defined in -[loaders/routes.loader.ts:4](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/routes.loader.ts#L4) +[loaders/routes.loader.ts:4](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/routes.loader.ts#L4) ___ @@ -49,4 +49,4 @@ ___ #### Defined in -[loaders/routes.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/routes.loader.ts#L14) +[loaders/routes.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/routes.loader.ts#L14) diff --git a/docs/modules/loaders_services_loader.md b/docs/modules/loaders_services_loader.md index c10ee138..dd129a36 100644 --- a/docs/modules/loaders_services_loader.md +++ b/docs/modules/loaders_services_loader.md @@ -30,4 +30,4 @@ Load custom services from the rootDir. #### Defined in -[loaders/services.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/services.loader.ts#L11) +[loaders/services.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/badcc5e/src/loaders/services.loader.ts#L11) diff --git a/docs/modules/medusa.Internals.md b/docs/modules/medusa.Internals.md index 8f86ed6f..e6442b6f 100644 --- a/docs/modules/medusa.Internals.md +++ b/docs/modules/medusa.Internals.md @@ -35,7 +35,7 @@ Step type of type function that take in express instance and return Promise