Skip to content

Commit

Permalink
docs: updates in recipes (#9472)
Browse files Browse the repository at this point in the history
Updates in recipes following release changes
  • Loading branch information
shahednasser authored Oct 7, 2024
1 parent f3c8f5e commit e23d2b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ class DigitalProductFulfillmentService extends AbstractFulfillmentProviderServic
super()
}

async getFulfillmentOptions(): Promise<Record<string, unknown>[]> {
async getFulfillmentOptions(): Promise<FulfillmentOption[]> {
return [
{
id: "digital-fulfillment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions www/apps/resources/generated/edit-dates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit e23d2b9

Please sign in to comment.