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:
@@ -10,11 +10,11 @@ In this document, you’ll learn how to create a search service in the Medusa ba
|
||||
|
||||
## Prerequisites
|
||||
|
||||
A search service must extend the `AbstractSearchService` class imported from the `@medusajs/utils` package. If you don’t already have the package
|
||||
A search service must extend the `AbstractSearchService` class imported from the `@medusajs/framework/utils` package. If you don’t already have the package
|
||||
installed, run the following command to install it within your project:
|
||||
|
||||
```bash npm2yarn
|
||||
npm install @medusajs/utils
|
||||
npm install @medusajs/framework/utils
|
||||
```
|
||||
|
||||
---
|
||||
@@ -22,7 +22,7 @@ npm install @medusajs/utils
|
||||
## Overview
|
||||
|
||||
A search service class is in a TypeScript or JavaScript file created in the `src/services` directory. The class must extend the `AbstractSearchService` class imported
|
||||
from the `@medusajs/utils` package.
|
||||
from the `@medusajs/framework/utils` package.
|
||||
|
||||
Based on services’ naming conventions, the file’s name should be the slug version of the search service’s name without `service`, and the class’s name should be the
|
||||
pascal case of the search service’s name following by `Service`.
|
||||
@@ -30,7 +30,7 @@ pascal case of the search service’s name following by `Service`.
|
||||
For example, create the `MySearchService` class in the file `src/services/my-search.ts`:
|
||||
|
||||
```ts title="src/services/my-search.ts"
|
||||
import { AbstractSearchService } from "@medusajs/utils"
|
||||
import { AbstractSearchService } from "@medusajs/framework/utils"
|
||||
|
||||
class MySearchService extends AbstractSearchService {
|
||||
isDefault = false
|
||||
|
||||
Reference in New Issue
Block a user