docs: updates in recipes (#9472)

Updates in recipes following release changes
This commit is contained in:
Shahed Nasser
2024-10-07 20:53:53 +03:00
committed by GitHub
parent f3c8f5efef
commit e23d2b9ed7
4 changed files with 9 additions and 8 deletions

View File

@@ -1444,7 +1444,7 @@ class DigitalProductFulfillmentService extends AbstractFulfillmentProviderServic
super()
}
async getFulfillmentOptions(): Promise<Record<string, unknown>[]> {
async getFulfillmentOptions(): Promise<FulfillmentOption[]> {
return [
{
id: "digital-fulfillment",

View File

@@ -2268,8 +2268,9 @@ import { Delivery } from "../models/delivery"
export type Delivery = InferTypeOf<typeof Delivery>
export type UpdateDelivery = Partial<Delivery> & {
export type UpdateDelivery = Partial<Omit<Delivery, "driver">> & {
id: string;
driver_id?: string
}
```

View File

@@ -1185,7 +1185,7 @@ const SubscriptionsPage = () => {
</Link>
</Table.Cell>
<Table.Cell>
<Link to={`/orders/${subscription.metadata.main_order_id}`}>
<Link to={`/orders/${subscription.metadata?.main_order_id}`}>
View Order
</Link>
</Table.Cell>
@@ -1363,7 +1363,7 @@ import {
} from "@medusajs/ui"
import { useEffect, useState } from "react"
import { useParams, Link } from "react-router-dom"
import { SubscriptionData } from "../../../types"
import { SubscriptionData } from "../../../types/index.js"
const SubscriptionPage = () => {
const { id } = useParams()
@@ -1394,7 +1394,7 @@ const SubscriptionPage = () => {
</Table.Row>
</Table.Header>
<Table.Body>
{subscription.orders.map((order) => (
{subscription.orders?.map((order) => (
<Table.Row key={order.id}>
<Table.Cell>{order.id}</Table.Cell>
<Table.Cell>{(new Date(order.created_at)).toDateString()}</Table.Cell>

View File

@@ -141,7 +141,7 @@ export const generatedEditDates = {
"app/nextjs-starter/page.mdx": "2024-07-01T10:21:19+03:00",
"app/recipes/b2b/page.mdx": "2024-10-03T13:07:44.153Z",
"app/recipes/commerce-automation/page.mdx": "2024-10-03T13:07:44.147Z",
"app/recipes/digital-products/examples/standard/page.mdx": "2024-10-03T13:07:44.153Z",
"app/recipes/digital-products/examples/standard/page.mdx": "2024-10-04T09:44:55.176Z",
"app/recipes/digital-products/page.mdx": "2024-10-03T13:07:44.147Z",
"app/recipes/ecommerce/page.mdx": "2024-06-09T15:18:43+02:00",
"app/recipes/integrate-ecommerce-stack/page.mdx": "2024-10-03T13:07:44.146Z",
@@ -152,7 +152,7 @@ export const generatedEditDates = {
"app/recipes/oms/page.mdx": "2024-07-01T10:21:19+03:00",
"app/recipes/personalized-products/page.mdx": "2024-10-03T13:07:44.153Z",
"app/recipes/pos/page.mdx": "2024-10-03T13:07:13.964Z",
"app/recipes/subscriptions/examples/standard/page.mdx": "2024-10-03T13:07:44.164Z",
"app/recipes/subscriptions/examples/standard/page.mdx": "2024-10-04T11:13:47.459Z",
"app/recipes/subscriptions/page.mdx": "2024-10-03T13:07:44.155Z",
"app/recipes/page.mdx": "2024-07-11T15:56:41+00:00",
"app/service-factory-reference/methods/create/page.mdx": "2024-07-31T17:01:33+03:00",
@@ -642,7 +642,7 @@ export const generatedEditDates = {
"app/medusa-cli/commands/start/page.mdx": "2024-08-28T10:44:19.952Z",
"app/medusa-cli/commands/telemtry/page.mdx": "2024-08-28T11:25:08.553Z",
"app/medusa-cli/commands/user/page.mdx": "2024-08-28T10:44:52.489Z",
"app/recipes/marketplace/examples/restaurant-delivery/page.mdx": "2024-10-03T13:07:44.153Z",
"app/recipes/marketplace/examples/restaurant-delivery/page.mdx": "2024-10-04T10:28:51.698Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateCustomerGroup/page.mdx": "2024-08-30T00:11:02.074Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateReservation/page.mdx": "2024-08-30T00:11:02.342Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCustomerGroup/page.mdx": "2024-10-03T00:11:52.871Z",