Skip to content

Commit

Permalink
docs: add additional data description in generated references (medusa…
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Jan 13, 2025
1 parent 1b86c17 commit 2a2b387
Show file tree
Hide file tree
Showing 917 changed files with 13,492 additions and 12,843 deletions.
1,828 changes: 914 additions & 914 deletions www/apps/resources/generated/edit-dates.mjs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const myWorkflow = createWorkflow(
() => {
const data = createApiKeysStep({
"api_keys": [{
"title": "taedium",
"type": "publishable",
"created_by": "user_9GIqV2ijVCcadE"
"title": "acervus",
"type": "secret",
"created_by": "user_VvjemccZRm1P9fT0"
}]
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const myWorkflow = createWorkflow(
"my-workflow",
() => {
const data = linkSalesChannelsToApiKeyStep({
"id": "id_gs4SG6qHNzu7i7vl"
"id": "id_lIAGOo3vxm"
})
}
)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This documentation provides a reference to the `createApiKeysWorkflow`. It belon

This workflow creates one or more API keys.

<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1758bfb8d042fa9fc82f23c36ccd61e4a439448e/packages/core/core-flows/src/api-key/workflows/create-api-keys.ts#L15" />
<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1b86c17b7293f3b810c062d78ec6ef563f968366/packages/core/core-flows/src/api-key/workflows/create-api-keys.ts#L15" />

<CodeTabs group="workflow-exection">
<CodeTab label="Another Workflow" value="another-workflow">
Expand All @@ -30,9 +30,9 @@ const myWorkflow = createWorkflow(
.runAsStep({
input: {
"api_keys": [{
"title": "pecto",
"type": "secret",
"created_by": "user_ZZyesoXDHhRHvJy"
"title": "subvenio",
"type": "publishable",
"created_by": "user_lFoawrDa6j3BQZPV"
}]
}
})
Expand All @@ -58,9 +58,9 @@ export async function POST(
.run({
input: {
"api_keys": [{
"title": "pecto",
"type": "secret",
"created_by": "user_ZZyesoXDHhRHvJy"
"title": "subvenio",
"type": "publishable",
"created_by": "user_lFoawrDa6j3BQZPV"
}]
}
})
Expand All @@ -87,9 +87,9 @@ export default async function handleOrderPlaced({
.run({
input: {
"api_keys": [{
"title": "pecto",
"type": "secret",
"created_by": "user_ZZyesoXDHhRHvJy"
"title": "subvenio",
"type": "publishable",
"created_by": "user_lFoawrDa6j3BQZPV"
}]
}
})
Expand All @@ -116,9 +116,9 @@ export default async function myCustomJob(
.run({
input: {
"api_keys": [{
"title": "pecto",
"type": "secret",
"created_by": "user_ZZyesoXDHhRHvJy"
"title": "subvenio",
"type": "publishable",
"created_by": "user_lFoawrDa6j3BQZPV"
}]
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This documentation provides a reference to the `deleteApiKeysWorkflow`. It belon

This workflow deletes one or more API keys.

<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1758bfb8d042fa9fc82f23c36ccd61e4a439448e/packages/core/core-flows/src/api-key/workflows/delete-api-keys.ts#L12" />
<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1b86c17b7293f3b810c062d78ec6ef563f968366/packages/core/core-flows/src/api-key/workflows/delete-api-keys.ts#L12" />

<CodeTabs group="workflow-exection">
<CodeTab label="Another Workflow" value="another-workflow">
Expand All @@ -31,7 +31,7 @@ const myWorkflow = createWorkflow(
.runAsStep({
input: {
"ids": [
"id_JpTj1834b6"
"id_oAdfP14QUoqh"
]
}
})
Expand All @@ -57,7 +57,7 @@ export async function POST(
.run({
input: {
"ids": [
"id_JpTj1834b6"
"id_oAdfP14QUoqh"
]
}
})
Expand All @@ -84,7 +84,7 @@ export default async function handleOrderPlaced({
.run({
input: {
"ids": [
"id_JpTj1834b6"
"id_oAdfP14QUoqh"
]
}
})
Expand All @@ -111,7 +111,7 @@ export default async function myCustomJob(
.run({
input: {
"ids": [
"id_JpTj1834b6"
"id_oAdfP14QUoqh"
]
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This documentation provides a reference to the `linkSalesChannelsToApiKeyWorkflo

This workflow links sales channels to API keys.

<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1758bfb8d042fa9fc82f23c36ccd61e4a439448e/packages/core/core-flows/src/api-key/workflows/link-sales-channels-to-publishable-key.ts#L13" />
<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1b86c17b7293f3b810c062d78ec6ef563f968366/packages/core/core-flows/src/api-key/workflows/link-sales-channels-to-publishable-key.ts#L13" />

<CodeTabs group="workflow-exection">
<CodeTab label="Another Workflow" value="another-workflow">
Expand All @@ -30,7 +30,7 @@ const myWorkflow = createWorkflow(
const result = linkSalesChannelsToApiKeyWorkflow
.runAsStep({
input: {
"id": "id_mVzQuMhmHQ8q1iF"
"id": "id_fzIS54SNGIfmYj8Ad"
}
})
}
Expand All @@ -54,7 +54,7 @@ export async function POST(
const { result } = await linkSalesChannelsToApiKeyWorkflow(req.scope)
.run({
input: {
"id": "id_mVzQuMhmHQ8q1iF"
"id": "id_fzIS54SNGIfmYj8Ad"
}
})

Expand All @@ -79,7 +79,7 @@ export default async function handleOrderPlaced({
const { result } = await linkSalesChannelsToApiKeyWorkflow(container)
.run({
input: {
"id": "id_mVzQuMhmHQ8q1iF"
"id": "id_fzIS54SNGIfmYj8Ad"
}
})

Expand All @@ -104,7 +104,7 @@ export default async function myCustomJob(
const { result } = await linkSalesChannelsToApiKeyWorkflow(container)
.run({
input: {
"id": "id_mVzQuMhmHQ8q1iF"
"id": "id_fzIS54SNGIfmYj8Ad"
}
})

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { TypeList, WorkflowDiagram } from "docs-ui"

This documentation provides a reference to the `generateResetPasswordTokenWorkflow`. It belongs to the `@medusajs/medusa/core-flows` package.

<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1758bfb8d042fa9fc82f23c36ccd61e4a439448e/packages/core/core-flows/src/auth/workflows/generate-reset-password-token.ts#L13" />
<SourceCodeLink link="https://github.com/medusajs/medusa/blob/1b86c17b7293f3b810c062d78ec6ef563f968366/packages/core/core-flows/src/auth/workflows/generate-reset-password-token.ts#L13" />

<CodeTabs group="workflow-exection">
<CodeTab label="Another Workflow" value="another-workflow">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const myWorkflow = createWorkflow(
() => {
const data = addShippingMethodToCartStep({
"shipping_methods": [{
"name": "Napoleon",
"name": "Emory",
"cart_id": "{value}",
"amount": 8
"amount": 46
}]
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const myWorkflow = createWorkflow(
const data = confirmInventoryStep({
"items": [{
"inventory_item_id": "{value}",
"required_quantity": 23,
"required_quantity": 48,
"allow_backorder": true,
"quantity": 37,
"quantity": 33,
"location_ids": [
"{value}"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const myWorkflow = createWorkflow(
const data = createLineItemAdjustmentsStep({
"lineItemAdjustmentsToCreate": [{
"code": "{value}",
"amount": 10,
"amount": 27,
"item_id": "{value}"
}]
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const myWorkflow = createWorkflow(
"my-workflow",
() => {
const data = createLineItemsStep({
"id": "id_iQU9pzB53YHRh",
"id": "id_Qz07MRX126D4QhT",
"items": [{
"title": "vulgivagus",
"quantity": 33,
"unit_price": 12,
"title": "bardus",
"quantity": 11,
"unit_price": 8,
"cart_id": "{value}"
}]
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const myWorkflow = createWorkflow(
const data = createPaymentCollectionsStep([{
"region_id": "{value}",
"currency_code": "{value}",
"amount": 8
"amount": 44
}])
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const myWorkflow = createWorkflow(
"shippingMethodAdjustmentsToCreate": [{
"shipping_method_id": "{value}",
"code": "{value}",
"amount": 13
"amount": 34
}]
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,73 +24,73 @@ const myWorkflow = createWorkflow(
() => {
const data = getActionsToComputeFromPromotionsStep({
"cart": {
"id": "id_zptDVH0xHA9lBDu",
"id": "id_QqBWCiL5Mq0aqsfLRiM",
"currency_code": "{value}",
"original_item_total": {
"numeric": 50
"numeric": 41
},
"original_item_subtotal": {
"numeric": 36
"numeric": 3
},
"original_item_tax_total": {
"numeric": 36
"numeric": 45
},
"item_total": {
"numeric": 43
"numeric": 37
},
"item_subtotal": {
"numeric": 49
"numeric": 41
},
"item_tax_total": {
"numeric": 38
"numeric": 19
},
"original_total": {
"numeric": 0
"numeric": 30
},
"original_subtotal": {
"numeric": 12
"numeric": 15
},
"original_tax_total": {
"numeric": 11
"numeric": 35
},
"total": {
"numeric": 47
"numeric": 1
},
"subtotal": {
"numeric": 28
"numeric": 27
},
"tax_total": {
"numeric": 15
"numeric": 29
},
"discount_total": {
"numeric": 26
"numeric": 27
},
"discount_tax_total": {
"numeric": 43
"numeric": 21
},
"gift_card_total": {
"numeric": 12
"numeric": 23
},
"gift_card_tax_total": {
"numeric": 44
"numeric": 25
},
"shipping_total": {
"numeric": 46
"numeric": 19
},
"shipping_subtotal": {
"numeric": 14
"numeric": 34
},
"shipping_tax_total": {
"numeric": 29
"numeric": 1
},
"original_shipping_total": {
"numeric": 43
"numeric": 41
},
"original_shipping_subtotal": {
"numeric": 26
"numeric": 43
},
"original_shipping_tax_total": {
"numeric": 33
"numeric": 21
},
"raw_original_item_total": {
"value": "{value}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ const myWorkflow = createWorkflow(
"my-workflow",
() => {
const data = getLineItemActionsStep({
"id": "id_9KdI6QFsw5",
"id": "id_DVg8cS9mkh8GBzj",
"items": [{
"title": "tactus",
"quantity": 49,
"unit_price": 8,
"title": "quidem",
"quantity": 33,
"unit_price": 36,
"cart_id": "{value}"
}]
})
Expand Down
Loading

0 comments on commit 2a2b387

Please sign in to comment.