docs: add line highlight validation (#14380)
* docs: add line highlight validation * add to all projects * fixes * fixes * fix * fixes
This commit is contained in:
@@ -722,10 +722,14 @@ The compensation function receives the subscription as a parameter. It cancels t
|
||||
Create the file `src/workflows/create-subscription/index.ts` with the following content:
|
||||
|
||||
export const createSubscriptionWorkflowHighlights = [
|
||||
["26", "completeCartWorkflow", "Complete the cart and create the order."],
|
||||
["32", "useQueryGraphStep", "Retrieve the order's details."],
|
||||
["87", "createSubscriptionStep", "Create the subscription."],
|
||||
["94", "createRemoteLinkStep", "Create the links returned by the previous step."]
|
||||
["29", "acquireLockStep", "Acquire a lock on the cart to prevent race conditions."],
|
||||
["34", "completeCartWorkflow", "Complete the cart and create the order."],
|
||||
["40", "useQueryGraphStep", "Retrieve the order's details."],
|
||||
["95", "useQueryGraphStep", "Retrieve any existing subscription links for the order."],
|
||||
["101", "when", "Check if a subscription already exists for the order."],
|
||||
["108", "createSubscriptionStep", "Create the subscription."],
|
||||
["115", "createRemoteLinkStep", "Create the links returned by the previous step."],
|
||||
["120", "releaseLockStep", "Release the lock on the cart."]
|
||||
]
|
||||
|
||||
```ts title="src/workflows/create-subscription/index.ts" highlights={createSubscriptionWorkflowHighlights} collapsibleLines="1-13" expandMoreLabel="Show Imports"
|
||||
|
||||
Reference in New Issue
Block a user