diff --git a/blueprint.json b/blueprint.json index b79909dc..ec3cb213 100644 --- a/blueprint.json +++ b/blueprint.json @@ -141,7 +141,8 @@ ["Name", "Alias", "Description"], ["`--run`", "`-r`", "Run migrations up method."], ["`--revert`", "`-u`", "Revert the last migrations."], - ["`--show`", "`-s`", "Show all applied and non applied migrations."] + ["`--show`", "`-s`", "Show all applied and non applied migrations."], + ["`--tenant_codes [codes]`", "`-t`", "Specify on which tenant to run the command for. It can be composed of a mix of string or regexp that are comma separated (e.g \"tenant1,/specialTenant.*/\")."] ], "cliGenerateOptionsSchematics": [ ["Name", "Alias", "Description"], @@ -154,6 +155,6 @@ ["`--repository`", "`-re`", "Generate a new repository."], ["`--migration`", "`-mi`", "Generate a new migration."], ["`--validator`", "`-va`", "Generate a new validator."], - ["`--path`", "`-p`", "specify the path where the component must be generated (by default the component will be generated at [`src/modules//..ts`]."] + ["`--path `", "`-p`", "specify the path where the component must be generated (by default the component will be generated at [`src/modules//..ts`]."] ] } \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index 7836dfba..6f70781d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -231,18 +231,18 @@ that newly created component and add it to the `imports` list automatically. #### Options -| Name | Alias | Description | -|----------------|-------|--------------------------------------------------| -| `` | | Component name to generate | -| `--module` | `-m` | Generate a new module. | -| `--middleware` | `-mi` | Generate a new middleware. | -| `--service` | `-s` | Generate a new service. | -| `--router` | `-r` | Generate a new router. | -| `--entity` | `-e` | Generate a new entity. | -| `--repository` | `-re` | Generate a new repository. | -| `--migration` | `-mi` | Generate a new migration. | -| `--validator` | `-va` | Generate a new validator. | -| `--path` | `-p` | specify the path where the component must be generated (by default the component will be generated at [`src/modules//..ts`]. | +| Name | Alias | Description | +|-----------------|-------|--------------------------------------------------| +| `` | | Component name to generate | +| `--module` | `-m` | Generate a new module. | +| `--middleware` | `-mi` | Generate a new middleware. | +| `--service` | `-s` | Generate a new service. | +| `--router` | `-r` | Generate a new router. | +| `--entity` | `-e` | Generate a new entity. | +| `--repository` | `-re` | Generate a new repository. | +| `--migration` | `-mi` | Generate a new migration. | +| `--validator` | `-va` | Generate a new validator. | +| `--path ` | `-p` | specify the path where the component must be generated (by default the component will be generated at [`src/modules//..ts`]. | #### Examples @@ -296,11 +296,12 @@ modules.exports = { #### Options -| Name | Alias | Description | -|------------|-------|----------------------------------------------| -| `--run` | `-r` | Run migrations up method. | -| `--revert` | `-u` | Revert the last migrations. | -| `--show` | `-s` | Show all applied and non applied migrations. | +| Name | Alias | Description | +|--------------------------|-------|--------------------------------------------------| +| `--run` | `-r` | Run migrations up method. | +| `--revert` | `-u` | Revert the last migrations. | +| `--show` | `-s` | Show all applied and non applied migrations. | +| `--tenant_codes [codes]` | `-t` | Specify on which tenant to run the command for. It can be composed of a mix of string or regexp that are comma separated (e.g "tenant1,/specialTenant.*/"). | [![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/cloudy.png)](#full-code-api-mag) diff --git a/docs/classes/Medusa.Medusa-1.md b/docs/classes/Medusa.Medusa-1.md index c6dbf428..d254013f 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/f27eb84/src/Medusa.ts#L39) +[src/Medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/Medusa.ts#L32) +[src/Medusa.ts:32](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/Medusa.ts#L32) ___ @@ -56,7 +56,7 @@ ___ #### Defined in -[src/Medusa.ts:33](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/Medusa.ts#L33) +[src/Medusa.ts:33](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/Medusa.ts#L33) ## Methods @@ -76,4 +76,4 @@ ___ #### Defined in -[src/Medusa.ts:47](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/Medusa.ts#L47) +[src/Medusa.ts:47](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/Medusa.ts#L47) diff --git a/docs/classes/core_componentMap.ComponentMap.md b/docs/classes/core_componentMap.ComponentMap.md index 0f35a77e..68ac4792 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/f27eb84/src/core/componentMap.ts#L4) +[src/core/componentMap.ts:4](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 b2518136..84b571ac 100644 --- a/docs/classes/core_event_emmiter.Internals.CustomEventEmmiter.md +++ b/docs/classes/core_event_emmiter.Internals.CustomEventEmmiter.md @@ -40,7 +40,7 @@ EventEmitter.constructor #### Defined in -[src/core/event-emmiter.ts:22](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/event-emmiter.ts#L22) +[src/core/event-emmiter.ts:22](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L22) ## Properties @@ -50,7 +50,7 @@ EventEmitter.constructor #### Defined in -[src/core/event-emmiter.ts:20](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/event-emmiter.ts#L20) +[src/core/event-emmiter.ts:20](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L20) ## Methods @@ -79,7 +79,7 @@ Emit an asynchrone event entity based and wait for the result. #### Defined in -[src/core/event-emmiter.ts:74](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/event-emmiter.ts#L74) +[src/core/event-emmiter.ts:79](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L79) ___ @@ -109,7 +109,7 @@ Register a new event handler. #### Defined in -[src/core/event-emmiter.ts:32](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/event-emmiter.ts#L32) +[src/core/event-emmiter.ts:32](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L32) ___ @@ -132,4 +132,18 @@ Only unregister and register again non singleton based event listeners #### Defined in -[src/core/event-emmiter.ts:45](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/event-emmiter.ts#L45) +[src/core/event-emmiter.ts:44](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L44) + +___ + +### unregisterListeners + +▸ **unregisterListeners**(): `void` + +#### Returns + +`void` + +#### Defined in + +[src/core/event-emmiter.ts:67](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L67) diff --git a/docs/classes/core_logger.Logger.md b/docs/classes/core_logger.Logger.md index 86b2742d..7fd9243e 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/f27eb84/src/core/logger.ts#L20) +[src/core/logger.ts:20](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L10) +[src/core/logger.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/logger.ts#L10) ___ @@ -69,7 +69,7 @@ ___ #### Defined in -[src/core/logger.ts:9](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/logger.ts#L9) +[src/core/logger.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/logger.ts#L9) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[src/core/logger.ts:8](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/logger.ts#L8) +[src/core/logger.ts:8](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/logger.ts#L8) ## Accessors @@ -93,7 +93,7 @@ ___ #### Defined in -[src/core/logger.ts:16](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/logger.ts#L16) +[src/core/logger.ts:16](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/logger.ts#L16) ___ @@ -107,7 +107,7 @@ ___ #### Defined in -[src/core/logger.ts:12](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/logger.ts#L12) +[src/core/logger.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L89) +[src/core/logger.ts:89](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L66) +[src/core/logger.ts:66](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L73) +[src/core/logger.ts:73](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L48) +[src/core/logger.ts:48](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L34) +[src/core/logger.ts:34](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/logger.ts#L57) +[src/core/logger.ts:57](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/logger.ts#L57) ___ @@ -260,4 +260,4 @@ ___ #### Defined in -[src/core/logger.ts:25](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/logger.ts#L25) +[src/core/logger.ts:25](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/logger.ts#L25) diff --git a/docs/classes/decorators_onMedusaEntityEvent_decorator.OnMedusaEntityEvent.md b/docs/classes/decorators_onMedusaEntityEvent_decorator.OnMedusaEntityEvent.md index cad23299..908eee3e 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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L41) +[src/decorators/onMedusaEntityEvent.decorator.ts:41](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L39) +[src/decorators/onMedusaEntityEvent.decorator.ts:39](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L38) +[src/decorators/onMedusaEntityEvent.decorator.ts:38](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L49) +[src/decorators/onMedusaEntityEvent.decorator.ts:49](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L45) +[src/decorators/onMedusaEntityEvent.decorator.ts:45](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L69) +[src/decorators/onMedusaEntityEvent.decorator.ts:69](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L57) +[src/decorators/onMedusaEntityEvent.decorator.ts:57](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L83) +[src/decorators/onMedusaEntityEvent.decorator.ts:83](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L65) +[src/decorators/onMedusaEntityEvent.decorator.ts:65](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L76) +[src/decorators/onMedusaEntityEvent.decorator.ts:76](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L61) +[src/decorators/onMedusaEntityEvent.decorator.ts:61](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L90) +[src/decorators/onMedusaEntityEvent.decorator.ts:90](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L53) +[src/decorators/onMedusaEntityEvent.decorator.ts:53](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 bf888c4c..302e85a9 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/f27eb84/src/modules/multi-tenancy/tenant.middleware.ts#L12) +[src/modules/multi-tenancy/tenant.middleware.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 856f8095..7a55c89d 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/f27eb84/src/modules/multi-tenancy/tenant.module.ts#L9) +[src/modules/multi-tenancy/tenant.module.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 2af4b328..00381093 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/f27eb84/src/modules/multi-tenancy/tenant.service.ts#L11) +[src/modules/multi-tenancy/tenant.service.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/modules/multi-tenancy/tenant.service.ts#L9) +[src/modules/multi-tenancy/tenant.service.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/modules/multi-tenancy/tenant.service.ts#L18) +[src/modules/multi-tenancy/tenant.service.ts:18](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 2e4198b3..d547831b 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/f27eb84/src/core/types.ts#L189) +[src/core/types.ts:189](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/types.ts#L189) diff --git a/docs/interfaces/core_types.MedusaMiddleware.md b/docs/interfaces/core_types.MedusaMiddleware.md index c4fe2845..db194100 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/f27eb84/src/core/types.ts#L181) +[src/core/types.ts:181](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/types.ts#L181) diff --git a/docs/interfaces/core_types.Type.md b/docs/interfaces/core_types.Type.md index 2a9d8639..77c69bde 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/f27eb84/src/core/types.ts#L10) +[src/core/types.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/types.ts#L10) diff --git a/docs/interfaces/modules_monitoring.MonitoringOptions.md b/docs/interfaces/modules_monitoring.MonitoringOptions.md index 72b03043..7d3bd597 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/f27eb84/src/modules/monitoring.ts#L15) +[src/modules/monitoring.ts:15](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L15) ___ @@ -45,7 +45,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:17](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L17) +[src/modules/monitoring.ts:17](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L17) ___ @@ -55,7 +55,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:12](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L12) +[src/modules/monitoring.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L12) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:19](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L19) +[src/modules/monitoring.ts:19](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L19) ___ @@ -75,7 +75,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:7](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L7) +[src/modules/monitoring.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L7) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:8](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L8) +[src/modules/monitoring.ts:8](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L8) ___ @@ -95,7 +95,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:13](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L13) +[src/modules/monitoring.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L13) ___ @@ -105,7 +105,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:14](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L14) +[src/modules/monitoring.ts:14](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L14) ___ @@ -115,7 +115,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:18](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L18) +[src/modules/monitoring.ts:18](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L18) ___ @@ -125,7 +125,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:10](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L10) +[src/modules/monitoring.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L10) ___ @@ -135,7 +135,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:9](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L9) +[src/modules/monitoring.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L9) ___ @@ -145,7 +145,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:11](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L11) +[src/modules/monitoring.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L11) ___ @@ -155,7 +155,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:6](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L6) +[src/modules/monitoring.ts:6](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L6) ## Methods @@ -177,7 +177,7 @@ ___ #### Defined in -[src/modules/monitoring.ts:20](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L20) +[src/modules/monitoring.ts:20](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L20) ___ @@ -199,4 +199,4 @@ ___ #### Defined in -[src/modules/monitoring.ts:16](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/modules/monitoring.ts#L16) +[src/modules/monitoring.ts:16](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 0df0c974..34e2c23b 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/f27eb84/src/modules/multi-tenancy/types.ts#L10) +[src/modules/multi-tenancy/types.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/modules/multi-tenancy/types.ts#L12) +[src/modules/multi-tenancy/types.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/modules/multi-tenancy/types.ts#L11) +[src/modules/multi-tenancy/types.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 ffd63340..62dfa078 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/f27eb84/src/cli/commands/generate-component.ts#L21) +[src/cli/commands/generate-component.ts:21](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/cli/commands/generate-component.ts#L113) +[src/cli/commands/generate-component.ts:113](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/cli/commands/generate-component.ts#L48) +[src/cli/commands/generate-component.ts:48](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/cli/commands/generate-component.ts#L140) +[src/cli/commands/generate-component.ts:140](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/cli/commands/generate-component.ts#L140) diff --git a/docs/modules/cli_commands_init.md b/docs/modules/cli_commands_init.md index b340899a..1bca6954 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/f27eb84/src/cli/commands/init.ts#L13) +[src/cli/commands/init.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/cli/commands/init.ts#L13) diff --git a/docs/modules/cli_commands_migrate.Internals.md b/docs/modules/cli_commands_migrate.Internals.md index 62f22b16..06b68f49 100644 --- a/docs/modules/cli_commands_migrate.Internals.md +++ b/docs/modules/cli_commands_migrate.Internals.md @@ -23,8 +23,8 @@ | `revert` | `boolean` | | `run` | `boolean` | | `show` | `boolean` | -| `tenants` | `string` | +| `tenant_codes` | `string` \| ``null`` | #### Defined in -[src/cli/commands/migrate.ts:25](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/cli/commands/migrate.ts#L25) +[src/cli/commands/migrate.ts:25](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/cli/commands/migrate.ts#L25) diff --git a/docs/modules/cli_commands_migrate.md b/docs/modules/cli_commands_migrate.md index 83b1ef12..b47d4474 100644 --- a/docs/modules/cli_commands_migrate.md +++ b/docs/modules/cli_commands_migrate.md @@ -32,4 +32,4 @@ Run the migrations using the medusa-config.js config. #### Defined in -[src/cli/commands/migrate.ts:34](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/cli/commands/migrate.ts#L34) +[src/cli/commands/migrate.ts:34](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/cli/commands/migrate.ts#L34) diff --git a/docs/modules/cli_templates_entity_template.md b/docs/modules/cli_templates_entity_template.md index 007ef5f4..221ee389 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/f27eb84/src/cli/templates/entity-template.ts#L7) +[src/cli/templates/entity-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 4905c82c..99c7c375 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/f27eb84/src/cli/templates/main-template.ts#L6) +[src/cli/templates/main-template.ts:6](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 fe535a5c..e70371e5 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/f27eb84/src/cli/templates/middleware-template.ts#L7) +[src/cli/templates/middleware-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 c329e9c8..728ef9db 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/f27eb84/src/cli/templates/migration-template.ts#L8) +[src/cli/templates/migration-template.ts:8](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 a0495aa8..30c5f15f 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/f27eb84/src/cli/templates/module-template.ts#L7) +[src/cli/templates/module-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 db893945..2095bf80 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/f27eb84/src/cli/templates/repository-template.ts#L7) +[src/cli/templates/repository-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 d252e074..5ee8abbe 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/f27eb84/src/cli/templates/router-template.ts#L7) +[src/cli/templates/router-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 be3f5b13..c069c687 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/f27eb84/src/cli/templates/service-template.ts#L8) +[src/cli/templates/service-template.ts:8](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 bf498952..606e6ffd 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/f27eb84/src/cli/templates/validator-template.ts#L7) +[src/cli/templates/validator-template.ts:7](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 3a0eb3a0..65601496 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/f27eb84/src/cli/utils/create-directory.ts#L10) +[src/cli/utils/create-directory.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 ce9c0dec..277dbe97 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/f27eb84/src/cli/utils/lookup-closest-module.ts#L12) +[src/cli/utils/lookup-closest-module.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 9c415c37..b7ec9135 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/f27eb84/src/cli/utils/parse-component-value.ts#L11) +[src/cli/utils/parse-component-value.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 2e080890..9d960c27 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/f27eb84/src/cli/utils/slash.ts#L1) +[src/cli/utils/slash.ts:1](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/cli/utils/slash.ts#L1) diff --git a/docs/modules/core_constants.md b/docs/modules/core_constants.md index 22778ee1..c20f4395 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/f27eb84/src/core/constants.ts#L9) +[src/core/constants.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/constants.ts#L14) +[src/core/constants.ts:14](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/constants.ts#L4) +[src/core/constants.ts:4](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/constants.ts#L4) diff --git a/docs/modules/core_event_emmiter.Internals.md b/docs/modules/core_event_emmiter.Internals.md index 3394e5e3..3adc2c8a 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/f27eb84/src/core/event-emmiter.ts#L10) +[src/core/event-emmiter.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L10) diff --git a/docs/modules/core_event_emmiter.md b/docs/modules/core_event_emmiter.md index b32b4079..58e36a6c 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:96](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/event-emmiter.ts#L96) +[src/core/event-emmiter.ts:101](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/event-emmiter.ts#L101) diff --git a/docs/modules/core_metadata_reader.md b/docs/modules/core_metadata_reader.md index 10ed4bd1..d5aa5d73 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/f27eb84/src/core/metadata-reader.ts#L44) +[src/core/metadata-reader.ts:44](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/metadata-reader.ts#L11) +[src/core/metadata-reader.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/metadata-reader.ts#L11) diff --git a/docs/modules/core_package_loader.md b/docs/modules/core_package_loader.md index fc0929d4..71e0aad3 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/f27eb84/src/core/package-loader.ts#L52) +[src/core/package-loader.ts:52](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/package-loader.ts#L12) +[src/core/package-loader.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/package-loader.ts#L12) diff --git a/docs/modules/core_types.md b/docs/modules/core_types.md index 02222f1e..8ace1a0d 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/f27eb84/src/core/types.ts#L13) +[src/core/types.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L31) +[src/core/types.ts:31](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L120) +[src/core/types.ts:120](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L145) +[src/core/types.ts:145](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L18) +[src/core/types.ts:18](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L109) +[src/core/types.ts:109](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L159) +[src/core/types.ts:159](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/types.ts#L159) ___ @@ -170,7 +170,7 @@ ___ #### Defined in -[src/core/types.ts:5](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/types.ts#L5) +[src/core/types.ts:5](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L151) +[src/core/types.ts:151](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/types.ts#L151) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[src/core/types.ts:166](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/types.ts#L166) +[src/core/types.ts:166](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L171) +[src/core/types.ts:171](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L82) +[src/core/types.ts:82](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L195) +[src/core/types.ts:195](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L102) +[src/core/types.ts:102](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L54) +[src/core/types.ts:54](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L75) +[src/core/types.ts:75](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L65) +[src/core/types.ts:65](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L42) +[src/core/types.ts:42](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L97) +[src/core/types.ts:97](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/core/types.ts#L90) +[src/core/types.ts:90](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/types.ts#L90) diff --git a/docs/modules/core_utils.md b/docs/modules/core_utils.md index 1a47325c..3e51e944 100644 --- a/docs/modules/core_utils.md +++ b/docs/modules/core_utils.md @@ -43,7 +43,7 @@ Allow to omit some property from a class. #### Defined in -[src/core/utils.ts:52](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/utils.ts#L52) +[src/core/utils.ts:52](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/utils.ts#L52) ___ @@ -73,7 +73,7 @@ Attach a new subscriber to a specific entities. #### Defined in -[src/core/utils.ts:29](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/utils.ts#L29) +[src/core/utils.ts:29](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/utils.ts#L29) ___ @@ -93,7 +93,7 @@ ___ #### Defined in -[src/core/utils.ts:71](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/utils.ts#L71) +[src/core/utils.ts:71](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/utils.ts#L71) ___ @@ -115,7 +115,7 @@ Lower case the first character of the input string. #### Defined in -[src/core/utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/utils.ts#L59) +[src/core/utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/utils.ts#L59) ___ @@ -145,7 +145,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/f27eb84/src/core/utils.ts#L9) +[src/core/utils.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/utils.ts#L9) ___ @@ -167,4 +167,4 @@ Upper case the first character of the input string. #### Defined in -[src/core/utils.ts:67](https://github.com/adrien2p/medusa-extender/blob/f27eb84/src/core/utils.ts#L67) +[src/core/utils.ts:67](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/core/utils.ts#L67) diff --git a/docs/modules/decorators_components_decorator.md b/docs/modules/decorators_components_decorator.md index 5b5ee625..9473d588 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/f27eb84/src/decorators/components.decorator.ts#L16) +[src/decorators/components.decorator.ts:16](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L43) +[src/decorators/components.decorator.ts:43](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L51) +[src/decorators/components.decorator.ts:51](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L34) +[src/decorators/components.decorator.ts:34](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L60) +[src/decorators/components.decorator.ts:60](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L25) +[src/decorators/components.decorator.ts:25](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L77) +[src/decorators/components.decorator.ts:77](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/components.decorator.ts#L69) +[src/decorators/components.decorator.ts:69](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 be58012c..7e416ef0 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/f27eb84/src/decorators/helpers/build-component-decorator.ts#L4) +[src/decorators/helpers/build-component-decorator.ts:4](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 ff7ab839..16e17c36 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/f27eb84/src/decorators/module.decorator.ts#L9) +[src/decorators/module.decorator.ts:9](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/decorators/module.decorator.ts#L9) diff --git a/docs/modules/decorators_onMedusaEntityEvent_decorator.md b/docs/modules/decorators_onMedusaEntityEvent_decorator.md index d41f2dca..b5e2a9fc 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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L10) +[src/decorators/onMedusaEntityEvent.decorator.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L5) +[src/decorators/onMedusaEntityEvent.decorator.ts:5](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L15) +[src/decorators/onMedusaEntityEvent.decorator.ts:15](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L24) +[src/decorators/onMedusaEntityEvent.decorator.ts:24](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/decorators/onMedusaEntityEvent.decorator.ts#L32) +[src/decorators/onMedusaEntityEvent.decorator.ts:32](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 0733d6a2..e90ace6c 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/f27eb84/src/loaders/admin-api.loader.ts#L13) +[src/loaders/admin-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 7f652938..e6964c36 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/f27eb84/src/loaders/custom-api.loader.ts#L13) +[src/loaders/custom-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/custom-api.loader.ts#L13) diff --git a/docs/modules/loaders_database_loader.md b/docs/modules/loaders_database_loader.md index 6bc17f4b..dc46b7f0 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/f27eb84/src/loaders/database.loader.ts#L5) +[src/loaders/database.loader.ts:5](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/database.loader.ts#L5) diff --git a/docs/modules/loaders_entities_loader.md b/docs/modules/loaders_entities_loader.md index 1a26af9d..215b1926 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/f27eb84/src/loaders/entities.loader.ts#L13) +[src/loaders/entities.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/entities.loader.ts#L36) +[src/loaders/entities.loader.ts:36](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/entities.loader.ts#L63) +[src/loaders/entities.loader.ts:63](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/entities.loader.ts#L51) +[src/loaders/entities.loader.ts:51](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 ab85886c..e3afbba2 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/f27eb84/src/loaders/helpers/apply-middlewares.ts#L34) +[src/loaders/helpers/apply-middlewares.ts:34](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/helpers/apply-middlewares.ts#L12) +[src/loaders/helpers/apply-middlewares.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 83659ac7..e0a4495a 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/f27eb84/src/loaders/helpers/apply-routers.ts#L26) +[src/loaders/helpers/apply-routers.ts:26](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/helpers/apply-routers.ts#L10) +[src/loaders/helpers/apply-routers.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/helpers/apply-routers.ts#L10) diff --git a/docs/modules/loaders_migrations_loader.md b/docs/modules/loaders_migrations_loader.md index fe72cd94..81e25798 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/f27eb84/src/loaders/migrations.loader.ts#L13) +[src/loaders/migrations.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/migrations.loader.ts#L13) diff --git a/docs/modules/loaders_modules_loader.md b/docs/modules/loaders_modules_loader.md index 289f1241..194a8a6f 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/f27eb84/src/loaders/modules.loader.ts#L5) +[src/loaders/modules.loader.ts:5](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/modules.loader.ts#L5) diff --git a/docs/modules/loaders_plugins_loader.md b/docs/modules/loaders_plugins_loader.md index 10d21f1b..1eb15282 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/f27eb84/src/loaders/plugins.loader.ts#L10) +[src/loaders/plugins.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/plugins.loader.ts#L10) diff --git a/docs/modules/loaders_repository_loader.md b/docs/modules/loaders_repository_loader.md index 0aa7a619..403f59ad 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/f27eb84/src/loaders/repository.loader.ts#L37) +[src/loaders/repository.loader.ts:37](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/repository.loader.ts#L14) +[src/loaders/repository.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/repository.loader.ts#L14) diff --git a/docs/modules/loaders_services_loader.md b/docs/modules/loaders_services_loader.md index 45389283..b620bf6b 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/f27eb84/src/loaders/services.loader.ts#L52) +[src/loaders/services.loader.ts:52](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/services.loader.ts#L40) +[src/loaders/services.loader.ts:40](https://github.com/adrien2p/medusa-extender/blob/19c4679/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/f27eb84/src/loaders/services.loader.ts#L12) +[src/loaders/services.loader.ts:12](https://github.com/adrien2p/medusa-extender/blob/19c4679/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 a661b918..e4f3cc4c 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/f27eb84/src/loaders/store-api.loader.ts#L13) +[src/loaders/store-api.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/store-api.loader.ts#L13) diff --git a/docs/modules/loaders_subscribers_loader.md b/docs/modules/loaders_subscribers_loader.md index 8c156861..6504f965 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/f27eb84/src/loaders/subscribers.loader.ts#L11) +[src/loaders/subscribers.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/subscribers.loader.ts#L11) diff --git a/docs/modules/loaders_validators_loader.md b/docs/modules/loaders_validators_loader.md index 191cf4d9..6fc91b5f 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/f27eb84/src/loaders/validators.loader.ts#L11) +[src/loaders/validators.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/loaders/validators.loader.ts#L11) diff --git a/docs/modules/modules_monitoring.md b/docs/modules/modules_monitoring.md index 7a506fd5..2cf306d9 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/f27eb84/src/modules/monitoring.ts#L25) +[src/modules/monitoring.ts:25](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/monitoring.ts#L25) diff --git a/docs/modules/modules_multi_tenancy_types.md b/docs/modules/modules_multi_tenancy_types.md index 666cc7cc..df00c06c 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/f27eb84/src/modules/multi-tenancy/types.ts#L4) +[src/modules/multi-tenancy/types.ts:4](https://github.com/adrien2p/medusa-extender/blob/19c4679/src/modules/multi-tenancy/types.ts#L4) diff --git a/documentation/_README_BUILT.md b/documentation/_README_BUILT.md index 7836dfba..6f70781d 100644 --- a/documentation/_README_BUILT.md +++ b/documentation/_README_BUILT.md @@ -231,18 +231,18 @@ that newly created component and add it to the `imports` list automatically. #### Options -| Name | Alias | Description | -|----------------|-------|--------------------------------------------------| -| `` | | Component name to generate | -| `--module` | `-m` | Generate a new module. | -| `--middleware` | `-mi` | Generate a new middleware. | -| `--service` | `-s` | Generate a new service. | -| `--router` | `-r` | Generate a new router. | -| `--entity` | `-e` | Generate a new entity. | -| `--repository` | `-re` | Generate a new repository. | -| `--migration` | `-mi` | Generate a new migration. | -| `--validator` | `-va` | Generate a new validator. | -| `--path` | `-p` | specify the path where the component must be generated (by default the component will be generated at [`src/modules//..ts`]. | +| Name | Alias | Description | +|-----------------|-------|--------------------------------------------------| +| `` | | Component name to generate | +| `--module` | `-m` | Generate a new module. | +| `--middleware` | `-mi` | Generate a new middleware. | +| `--service` | `-s` | Generate a new service. | +| `--router` | `-r` | Generate a new router. | +| `--entity` | `-e` | Generate a new entity. | +| `--repository` | `-re` | Generate a new repository. | +| `--migration` | `-mi` | Generate a new migration. | +| `--validator` | `-va` | Generate a new validator. | +| `--path ` | `-p` | specify the path where the component must be generated (by default the component will be generated at [`src/modules//..ts`]. | #### Examples @@ -296,11 +296,12 @@ modules.exports = { #### Options -| Name | Alias | Description | -|------------|-------|----------------------------------------------| -| `--run` | `-r` | Run migrations up method. | -| `--revert` | `-u` | Revert the last migrations. | -| `--show` | `-s` | Show all applied and non applied migrations. | +| Name | Alias | Description | +|--------------------------|-------|--------------------------------------------------| +| `--run` | `-r` | Run migrations up method. | +| `--revert` | `-u` | Revert the last migrations. | +| `--show` | `-s` | Show all applied and non applied migrations. | +| `--tenant_codes [codes]` | `-t` | Specify on which tenant to run the command for. It can be composed of a mix of string or regexp that are comma separated (e.g "tenant1,/specialTenant.*/"). | [![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/cloudy.png)](#full-code-api-mag) diff --git a/src/cli/commands/migrate.ts b/src/cli/commands/migrate.ts index 80e80d24..781dcdea 100644 --- a/src/cli/commands/migrate.ts +++ b/src/cli/commands/migrate.ts @@ -22,19 +22,19 @@ type ConfigModule = { const logger = Logger.contextualize('Migrate command', 'MEDEX-CLI'); -type Options = { run: boolean; revert: boolean; show: boolean; tenants: string }; +type Options = { run: boolean; revert: boolean; show: boolean; tenant_codes: string | null }; /** * Run the migrations using the medusa-config.js config. * @param run * @param revert * @param show - * @param tenants + * @param tenant_codes */ -export async function migrate({ run, revert, show, tenants }: Options): Promise { +export async function migrate({ run, revert, show, tenant_codes }: Options): Promise { const { configModule } = getConfigFile(process.cwd(), `medusa-config`) as { configModule: ConfigModule }; const configMigrationsDirs = - configModule.projectConfig.cli_migration_dirs ?? configModule.projectConfig.cliMigrationsDirs; + configModule?.projectConfig?.cli_migration_dirs ?? configModule?.projectConfig?.cliMigrationsDirs; let uniqMigrationDirs = new Set(); if (configMigrationsDirs?.length) { @@ -56,8 +56,8 @@ export async function migrate({ run, revert, show, tenants }: Options): Promise< }), ]; - if (configModule.multi_tenancy?.enable && !!tenants) { - const tenantConnections = await buildTenantsConnections(tenants, migrationDirs, configModule); + if (configModule.multi_tenancy?.enable && !!tenant_codes) { + const tenantConnections = await buildTenantsConnections(tenant_codes, migrationDirs, configModule); connections.push(...tenantConnections); } diff --git a/src/cli/index.ts b/src/cli/index.ts index aa7014a6..8e877285 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -17,16 +17,27 @@ program .option('-r, --run', 'Run migrations up method') .option('-u, --revert', 'Revert the last migrations') .option('-s, --show', 'Show all applied and non applied migrations') - .argument( - '', + .option( + '-t, --tenant_codes [codes]', 'Specify on which tenant to run the command for. It can be composed of a mix of string or regexp that are comma separated (e.g "tenant1,/specialTenant.*/")' ) - .action(async (tenant_codes, options, program) => { + .action(async (options, program) => { console.time(green('Migration command')); - if (Object.values(options).every((value) => !value)) { - return program.showHelpAfterError(true).error('You must specify one of the options.'); + const { tenant_codes, ...restOptions } = options; + const optionNotValid = Object.values(restOptions).every((value) => !value); + if (optionNotValid) { + return program + .showHelpAfterError(true) + .error( + `You must specify one of the options.${ + tenant_codes ? ' --tenant_codes only is not sufficient.' : '' + }` + ); + } + if (tenant_codes && typeof tenant_codes !== 'string') { + return program.showHelpAfterError(true).error('You must specify a value for --tenant_codes.'); } - await migrate({ ...options, tenants: tenant_codes }); + await migrate(options); console.timeEnd(green('Migration command')); }); diff --git a/src/cli/tests/cli.spec.ts b/src/cli/tests/cli.spec.ts index 4ca7bcb8..80e722e9 100644 --- a/src/cli/tests/cli.spec.ts +++ b/src/cli/tests/cli.spec.ts @@ -34,7 +34,7 @@ describe('CLI', () => { -h, --help display help for command Commands: - migrate|m [options] Migrate all migrations found in the specified directories in the configuration + migrate|m [options] Migrate all migrations found in the specified directories in the configuration generate|g [options] Generate a new component init|-i Update your existing medusa project to include the necessary configuration to use the medusa-extender package help [command] display help for command @@ -84,18 +84,16 @@ describe('CLI', () => { normalizeString(` You must specify one of the options. - Usage: medex migrate|m [options] + Usage: medex migrate|m [options] Migrate all migrations found in the specified directories in the configuration - Arguments: - tenant_codes Specify on which tenant to run the command for. It can be composed of a mix of string or regexp that are comma separated (e.g "tenant1,/specialTenant.*/") - Options: - -r, --run Run migrations up method - -u, --revert Revert the last migrations - -s, --show Show all applied and non applied migrations - -h, --help display help for command + -r, --run Run migrations up method + -u, --revert Revert the last migrations + -s, --show Show all applied and non applied migrations + -t, --tenant_codes [codes] Specify on which tenant to run the command for. It can be composed of a mix of string or regexp that are comma separated (e.g "tenant1,/specialTenant.*/") + -h, --help display help for command `) ); }); diff --git a/starters/server/medusa-config.js b/starters/server/medusa-config.js index 8c702e7c..3e1e6a47 100644 --- a/starters/server/medusa-config.js +++ b/starters/server/medusa-config.js @@ -45,5 +45,11 @@ module.exports = { monitoring: { uriPath: '/monitoring' }, + multi_tenancy: { + enable: true, + tenants: [{ + code: "test" + }] + }, plugins, };