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 11:03:42 +02:00
committed by GitHub
parent c726ed54f5
commit 2e16949979
196 changed files with 1379 additions and 1491 deletions
@@ -10,11 +10,11 @@ In this document, youll 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 dont already have the package
A search service must extend the `AbstractSearchService` class imported from the `@medusajs/framework/utils` package. If you dont 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 files name should be the slug version of the search services name without `service`, and the classs name should be the
pascal case of the search services name following by `Service`.
@@ -30,7 +30,7 @@ pascal case of the search services 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