From 958b003a11f304cd4b2e33301e4f31edf414ddd7 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 Oct 2025 11:24:51 +0300 Subject: [PATCH] chore: add since tags for latest release (#13739) --- packages/core/js-sdk/src/admin/refund-reasons.ts | 8 ++++++++ .../modules/promotion/src/models/campaign-budget-usage.ts | 3 +++ packages/modules/promotion/src/models/campaign-budget.ts | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/packages/core/js-sdk/src/admin/refund-reasons.ts b/packages/core/js-sdk/src/admin/refund-reasons.ts index 92b1c63f5f..746329ff21 100644 --- a/packages/core/js-sdk/src/admin/refund-reasons.ts +++ b/packages/core/js-sdk/src/admin/refund-reasons.ts @@ -80,6 +80,8 @@ export class RefundReason { * [Get Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_getrefundreasonsid) * API route. * + * @since 2.11.0 + * * @param id - The refund reason's ID. * @param query - Configure the fields and relations to retrieve in the refund reason. * @param headers - Headers to pass in the request. @@ -127,6 +129,8 @@ export class RefundReason { * [Create Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_postrefundreasons) * API route. * + * @since 2.11.0 + * * @param body - The details of the refund reason to create. * @param query - Configure the fields and relations to retrieve in the refund reason. * @param headers - Headers to pass in the request. @@ -162,6 +166,8 @@ export class RefundReason { * [Update Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_postrefundreasonsid) * API route. * + * @since 2.11.0 + * * @param id - The refund reason's ID. * @param body - The details of the refund reason to update. * @param query - Configure the fields and relations to retrieve in the refund reason. @@ -199,6 +205,8 @@ export class RefundReason { * [Delete Refund Reason](https://docs.medusajs.com/api/admin#refund-reasons_deleterefundreasonsid) * API route. * + * @since 2.11.0 + * * @param id - The refund reason's ID. * @param query - Query parameters to pass to the request. * @param headers - Headers to pass in the request. diff --git a/packages/modules/promotion/src/models/campaign-budget-usage.ts b/packages/modules/promotion/src/models/campaign-budget-usage.ts index 9d3d2cccf1..9e838c67e9 100644 --- a/packages/modules/promotion/src/models/campaign-budget-usage.ts +++ b/packages/modules/promotion/src/models/campaign-budget-usage.ts @@ -1,6 +1,9 @@ import { model } from "@medusajs/framework/utils" import CampaignBudget from "./campaign-budget" +/** + * @since 2.11.0 + */ const CampaignBudgetUsage = model .define( { diff --git a/packages/modules/promotion/src/models/campaign-budget.ts b/packages/modules/promotion/src/models/campaign-budget.ts index 0c43c95d70..83d302ba18 100644 --- a/packages/modules/promotion/src/models/campaign-budget.ts +++ b/packages/modules/promotion/src/models/campaign-budget.ts @@ -17,9 +17,15 @@ const CampaignBudget = model mappedBy: "budget", }), + /** + * @since 2.11.0 + */ attribute: model.text().nullable(), // e.g. "customer_id", "customer_email" // usages when budget type is "limit/use by attribute" + /** + * @since 2.11.0 + */ usages: model.hasMany(() => CampaignBudgetUsage, { mappedBy: "budget", }),