docs: update imports and package names across docs (#9375)

* docs: update imports and package names across docs
+ reference configs

* generate files

* fix import

* change preview to rc
This commit is contained in:
Shahed Nasser
2024-10-01 12:03:42 +03:00
committed by GitHub
parent c726ed54f5
commit 2e16949979
196 changed files with 1379 additions and 1491 deletions

View File

@@ -20,12 +20,12 @@ Start by creating a new directory for your module. For example, `src/modules/my-
Create the file `src/modules/my-notification/service.ts` that holds the implementation of the notification service.
The Notification Provider Module's main service must extend the `AbstractNotificationProviderService` class imported from `@medusajs/utils`:
The Notification Provider Module's main service must extend the `AbstractNotificationProviderService` class imported from `@medusajs/framework/utils`:
```ts title="src/modules/my-notification/service.ts"
import {
AbstractNotificationProviderService
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
class MyNotificationProviderService extends AbstractNotificationProviderService {
// TODO add methods
@@ -44,8 +44,8 @@ If you're creating a client or establishing a connection with a third-party serv
#### Example
```ts
import { AbstractNotificationProviderService } from "@medusajs/utils"
import { Logger } from "@medusajs/types"
import { AbstractNotificationProviderService } from "@medusajs/framework/utils"
import { Logger } from "@medusajs/framework/types"
type InjectedDependencies = {
logger: Logger
@@ -103,7 +103,7 @@ This method is used to send a notification using the third-party provider or you
import {
ProviderSendNotificationDTO,
ProviderSendNotificationResultsDTO
} from "@medusajs/types"
} from "@medusajs/framework/types"
class MyNotificationProviderService extends AbstractNotificationProviderService {
// ...
@@ -159,7 +159,7 @@ The Notification Module accepts one provider per channel.
</Note>
```js title="medusa-config.js"
const { Modules } = require("@medusajs/utils")
const { Modules } = require("@medusajs/framework/utils")
// ...