Skip to content

Commit cc84b9a

Browse files
authored
chore: improvements of TSDocs of link steps (#14261)
1 parent 0084460 commit cc84b9a

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

packages/core/core-flows/src/common/steps/create-remote-links.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"
55

66
export const createLinksStepId = "create-remote-links"
77
/**
8-
* This step creates remote links between two records of linked data models.
8+
* This step creates links between two records of linked data models.
99
*
10-
* Learn more in the [Remote Link documentation.](https://docs.medusajs.com/learn/fundamentals/module-links/remote-link#create-link).
10+
* Learn more in the [Link documentation.](https://docs.medusajs.com/learn/fundamentals/module-links/link#create-link).
1111
*
1212
* @example
1313
* createRemoteLinkStep([{
1414
* [Modules.PRODUCT]: {
1515
* product_id: "prod_123",
1616
* },
17-
* "helloModuleService": {
18-
* my_custom_id: "mc_123",
17+
* blog: {
18+
* post_id: "post_123",
1919
* },
2020
* }])
2121
*/

packages/core/core-flows/src/common/steps/dismiss-remote-links.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ export type DismissRemoteLinksStepInput = LinkDefinition | LinkDefinition[]
99
// TODO: add ability for this step to restore links from only foreign keys
1010
export const dismissRemoteLinkStepId = "dismiss-remote-links"
1111
/**
12-
* This step removes remote links between two records of linked data models.
12+
* This step removes links between two records of linked data models.
1313
*
14-
* Learn more in the [Remote Link documentation.](https://docs.medusajs.com/learn/fundamentals/module-links/remote-link#dismiss-link).
14+
* Learn more in the [Link documentation.](https://docs.medusajs.com/learn/fundamentals/module-links/link#dismiss-link).
1515
*
1616
* @example
1717
* dismissRemoteLinkStep([{
1818
* [Modules.PRODUCT]: {
1919
* product_id: "prod_123",
2020
* },
21-
* "helloModuleService": {
22-
* my_custom_id: "mc_123",
21+
* blog: {
22+
* post_id: "post_123",
2323
* },
2424
* }])
2525
*/

packages/core/core-flows/src/common/steps/remove-remote-links.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ type RemoveRemoteLinksStepInput = DeleteEntityInput | DeleteEntityInput[]
77

88
export const removeRemoteLinkStepId = "remove-remote-links"
99
/**
10-
* This step deletes linked records of a record.
10+
* This step deletes linked records of a record if cascade deletion is enabled.
1111
*
12-
* Learn more in the [Remote Link documentation](https://docs.medusajs.com/learn/fundamentals/module-links/remote-link#cascade-delete-linked-records)
12+
* Learn more in the [Link documentation](https://docs.medusajs.com/learn/fundamentals/module-links/link#cascade-delete-linked-records)
1313
*
1414
* @example
1515
* removeRemoteLinkStep([{

packages/core/core-flows/src/common/steps/update-remote-links.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ import { StepResponse, createStep } from "@medusajs/framework/workflows-sdk"
88

99
export const updateRemoteLinksStepId = "update-remote-links-step"
1010
/**
11-
* This step updates remote links between two records of linked data models.
11+
* This step updates links between two records of linked data models. This is useful to update
12+
* links with additional data such as metadata.
1213
*
13-
* Learn more in the [Remote Link documentation.](https://docs.medusajs.com/learn/fundamentals/module-links/remote-link#create-link).
14+
* Learn more in the [Link documentation.](https://docs.medusajs.com/learn/fundamentals/module-links/link#update-links).
1415
*
1516
* @example
1617
* const data = updateRemoteLinksStep([
1718
* {
1819
* [Modules.PRODUCT]: {
1920
* product_id: "prod_321",
2021
* },
21-
* "helloModuleService": {
22-
* my_custom_id: "mc_321",
22+
* blog: {
23+
* post_id: "post_321",
2324
* },
2425
* data: {
2526
* metadata: {

0 commit comments

Comments
 (0)