Skip to content

Commit 522fc12

Browse files
authored
docs: change from detecting version to since tag (medusajs#13127)
* update everything from version to since * update events * regenerate oas
1 parent 57ad8fc commit 522fc12

36 files changed

+94
-101
lines changed

www/apps/api-reference/components/Tags/Operation/DescriptionSection/Events/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ const TagsOperationDescriptionSectionEvent = ({
108108
) : (
109109
<Badge variant="orange">Deprecated</Badge>
110110
))}
111-
{event.version && (
112-
<Tooltip text={`This event is emitted since v${event.version}`}>
113-
<Badge variant="blue">v{event.version}</Badge>
111+
{event.since && (
112+
<Tooltip text={`This event is emitted since v${event.since}`}>
113+
<Badge variant="blue">v{event.since}</Badge>
114114
</Tooltip>
115115
)}
116116
</div>

www/apps/api-reference/components/Tags/Operation/DescriptionSection/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ const TagsOperationDescriptionSection = ({
7878
badgeClassName="ml-0.5"
7979
/>
8080
)}
81-
{operation["x-version"] && (
81+
{operation["x-since"] && (
8282
<Tooltip
83-
text={`This API route is available since v${operation["x-version"]}`}
83+
text={`This API route is available since v${operation["x-since"]}`}
8484
>
8585
<Badge variant="blue" className="ml-0.5">
86-
v{operation["x-version"]}
86+
v{operation["x-since"]}
8787
</Badge>
8888
</Tooltip>
8989
)}

www/apps/api-reference/specs/admin/openapi.full.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15024,7 +15024,7 @@ paths:
1502415024
$ref: '#/components/responses/500_error'
1502515025
x-workflow: deleteDraftOrdersWorkflow
1502615026
x-events: []
15027-
x-version: 2.8.4
15027+
x-since: 2.8.4
1502815028
/admin/draft-orders/{id}/convert-to-order:
1502915029
post:
1503015030
operationId: PostDraftOrdersIdConvertToOrder
@@ -22738,7 +22738,7 @@ paths:
2273822738
```
2273922739
description: Emitted when an order edit request is canceled.
2274022740
deprecated: false
22741-
version: 2.8.0
22741+
since: 2.8.0
2274222742
/admin/order-edits/{id}/confirm:
2274322743
post:
2274422744
operationId: PostOrderEditsIdConfirm
@@ -22812,7 +22812,7 @@ paths:
2281222812
```
2281322813
description: Emitted when an order edit request is confirmed.
2281422814
deprecated: false
22815-
version: 2.8.0
22815+
since: 2.8.0
2281622816
/admin/order-edits/{id}/items:
2281722817
post:
2281822818
operationId: PostOrderEditsIdItems
@@ -23208,7 +23208,7 @@ paths:
2320823208
```
2320923209
description: Emitted when an order edit is requested.
2321023210
deprecated: false
23211-
version: 2.8.0
23211+
since: 2.8.0
2321223212
/admin/order-edits/{id}/shipping-method:
2321323213
post:
2321423214
operationId: PostOrderEditsIdShippingMethod
@@ -33277,7 +33277,7 @@ paths:
3327733277
$ref: '#/components/responses/500_error'
3327833278
x-workflow: importProductsAsChunksWorkflow
3327933279
x-events: []
33280-
x-version: 2.8.5
33280+
x-since: 2.8.5
3328133281
/admin/products/imports/{transaction_id}/confirm:
3328233282
post:
3328333283
operationId: PostProductsImportsTransaction_idConfirm
@@ -33335,7 +33335,7 @@ paths:
3333533335
$ref: '#/components/responses/invalid_request_error'
3333633336
'500':
3333733337
$ref: '#/components/responses/500_error'
33338-
x-version: 2.8.5
33338+
x-since: 2.8.5
3333933339
/admin/products/{id}:
3334033340
get:
3334133341
operationId: GetProductsId
@@ -48956,7 +48956,7 @@ paths:
4895648956
$ref: '#/components/responses/invalid_request_error'
4895748957
'500':
4895848958
$ref: '#/components/responses/500_error'
48959-
x-version: 2.8.0
48959+
x-since: 2.8.0
4896048960
/admin/tax-rates:
4896148961
get:
4896248962
operationId: GetTaxRates

www/apps/api-reference/specs/admin/paths/admin_draft-orders_{id}.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ delete:
199199
$ref: ../components/responses/500_error.yaml
200200
x-workflow: deleteDraftOrdersWorkflow
201201
x-events: []
202-
x-version: 2.8.4
202+
x-since: 2.8.4

www/apps/api-reference/specs/admin/paths/admin_order-edits_{id}.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ delete:
7575
```
7676
description: Emitted when an order edit request is canceled.
7777
deprecated: false
78-
version: 2.8.0
78+
since: 2.8.0

www/apps/api-reference/specs/admin/paths/admin_order-edits_{id}_confirm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ post:
5656
```
5757
description: Emitted when an order edit request is confirmed.
5858
deprecated: false
59-
version: 2.8.0
59+
since: 2.8.0

www/apps/api-reference/specs/admin/paths/admin_order-edits_{id}_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ post:
5656
```
5757
description: Emitted when an order edit is requested.
5858
deprecated: false
59-
version: 2.8.0
59+
since: 2.8.0

www/apps/api-reference/specs/admin/paths/admin_products_imports.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ post:
4747
$ref: ../components/responses/500_error.yaml
4848
x-workflow: importProductsAsChunksWorkflow
4949
x-events: []
50-
x-version: 2.8.5
50+
x-since: 2.8.5

www/apps/api-reference/specs/admin/paths/admin_products_imports_{transaction_id}_confirm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ post:
4444
$ref: ../components/responses/invalid_request_error.yaml
4545
'500':
4646
$ref: ../components/responses/500_error.yaml
47-
x-version: 2.8.5
47+
x-since: 2.8.5

www/apps/api-reference/specs/admin/paths/admin_tax-providers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ get:
192192
$ref: ../components/responses/invalid_request_error.yaml
193193
'500':
194194
$ref: ../components/responses/500_error.yaml
195-
x-version: 2.8.0
195+
x-since: 2.8.0

0 commit comments

Comments
 (0)