@medusajs/types
Advanced tools
Comparing version 1.11.8 to 1.11.9-next-20231213100322
export * as CacheTypes from "./cache"; | ||
export * as CommonTypes from "./common"; | ||
export * as CustomerTypes from "./customer"; | ||
export * as DAL from "./dal"; | ||
@@ -11,2 +12,3 @@ export * as EventBusTypes from "./event-bus"; | ||
export * as ProductTypes from "./product"; | ||
export * as RegionTypes from "./region"; | ||
export * as SalesChannelTypes from "./sales-channel"; | ||
@@ -13,0 +15,0 @@ export * as SearchTypes from "./search"; |
@@ -26,5 +26,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WorkflowTypes = exports.TransactionBaseTypes = exports.StockLocationTypes = exports.SearchTypes = exports.SalesChannelTypes = exports.ProductTypes = exports.PricingTypes = exports.ModulesSdkTypes = exports.LoggerTypes = exports.InventoryTypes = exports.FeatureFlagTypes = exports.EventBusTypes = exports.DAL = exports.CommonTypes = exports.CacheTypes = void 0; | ||
exports.WorkflowTypes = exports.TransactionBaseTypes = exports.StockLocationTypes = exports.SearchTypes = exports.SalesChannelTypes = exports.RegionTypes = exports.ProductTypes = exports.PricingTypes = exports.ModulesSdkTypes = exports.LoggerTypes = exports.InventoryTypes = exports.FeatureFlagTypes = exports.EventBusTypes = exports.DAL = exports.CustomerTypes = exports.CommonTypes = exports.CacheTypes = void 0; | ||
exports.CacheTypes = __importStar(require("./cache")); | ||
exports.CommonTypes = __importStar(require("./common")); | ||
exports.CustomerTypes = __importStar(require("./customer")); | ||
exports.DAL = __importStar(require("./dal")); | ||
@@ -38,2 +39,3 @@ exports.EventBusTypes = __importStar(require("./event-bus")); | ||
exports.ProductTypes = __importStar(require("./product")); | ||
exports.RegionTypes = __importStar(require("./region")); | ||
exports.SalesChannelTypes = __importStar(require("./sales-channel")); | ||
@@ -40,0 +42,0 @@ exports.SearchTypes = __importStar(require("./search")); |
@@ -6,1 +6,4 @@ import { AwilixContainer } from "awilix"; | ||
}; | ||
export type ContainerLike = { | ||
resolve<T = unknown>(key: string): T; | ||
}; |
@@ -6,2 +6,3 @@ export * from "./address"; | ||
export * from "./common"; | ||
export * from "./customer"; | ||
export * from "./dal"; | ||
@@ -19,2 +20,3 @@ export * from "./event-bus"; | ||
export * from "./product-category"; | ||
export * from "./region"; | ||
export * from "./sales-channel"; | ||
@@ -21,0 +23,0 @@ export * from "./search"; |
@@ -22,2 +22,3 @@ "use strict"; | ||
__exportStar(require("./common"), exports); | ||
__exportStar(require("./customer"), exports); | ||
__exportStar(require("./dal"), exports); | ||
@@ -35,2 +36,3 @@ __exportStar(require("./event-bus"), exports); | ||
__exportStar(require("./product-category"), exports); | ||
__exportStar(require("./region"), exports); | ||
__exportStar(require("./sales-channel"), exports); | ||
@@ -37,0 +39,0 @@ __exportStar(require("./search"), exports); |
@@ -64,3 +64,3 @@ import { CreateMoneyAmountDTO, MoneyAmountDTO } from "./money-amount"; | ||
*/ | ||
number_rules?: number; | ||
rules_count?: number; | ||
/** | ||
@@ -110,2 +110,6 @@ * The associated price set money amounts. | ||
price_set_id: string; | ||
/** | ||
* The rules to add to the price. The object's keys are rule types' `rule_attribute` attribute, and values are the value of that rule associated with this price. | ||
*/ | ||
rules?: CreatePriceSetPriceRules; | ||
} | ||
@@ -115,2 +119,12 @@ /** | ||
* | ||
* The price rules to be set for each price in the price set. | ||
* | ||
* Each key of the object is a rule type's `rule_attribute`, and its value | ||
* is the values of the rule. | ||
*/ | ||
export interface CreatePriceSetPriceRules extends Record<string, string> { | ||
} | ||
/** | ||
* @interface | ||
* | ||
* The price list's rules to be set. Each key of the object is a rule type's `rule_attribute`, and its value | ||
@@ -154,3 +168,3 @@ * is the values of the rule. | ||
*/ | ||
number_rules?: number; | ||
rules_count?: number; | ||
/** | ||
@@ -194,3 +208,3 @@ * The rules to be created and associated with the price list. | ||
*/ | ||
number_rules?: number; | ||
rules_count?: number; | ||
/** | ||
@@ -202,3 +216,3 @@ * The rules to be created and associated with the price list. | ||
/** | ||
* @inteface | ||
* @interface | ||
* | ||
@@ -227,3 +241,3 @@ * Filters to apply on price lists. | ||
*/ | ||
number_rules?: number[]; | ||
rules_count?: number[]; | ||
} | ||
@@ -230,0 +244,0 @@ /** |
import { BaseFilterable } from "../../dal"; | ||
import { PriceSetDTO } from "./price-set"; | ||
import { PriceSetMoneyAmountDTO } from "./price-set-money-amount"; | ||
import { RuleTypeDTO } from "./rule-type"; | ||
@@ -58,19 +59,33 @@ /** | ||
/** | ||
* The ID of the price rule. | ||
* The ID of the associated price set. | ||
*/ | ||
id: string; | ||
price_set_id?: string; | ||
/** | ||
* The ID of the associated price set. | ||
* The ID or object of the associated price set. | ||
*/ | ||
price_set_id: string; | ||
price_set?: string | PriceSetDTO; | ||
/** | ||
* The ID of the associated rule type. | ||
*/ | ||
rule_type_id: string; | ||
rule_type_id?: string; | ||
/** | ||
* The ID of the associated rule type. | ||
*/ | ||
rule_type?: string | RuleTypeDTO; | ||
/** | ||
* The value of the price rule. | ||
*/ | ||
value: string; | ||
/** | ||
* The priority of the price rule in comparison to other applicable price rules. | ||
*/ | ||
priority?: number; | ||
price_set_money_amount_id: string; | ||
/** | ||
* The ID of the associated price set money amount. | ||
*/ | ||
price_set_money_amount_id?: string; | ||
/** | ||
* The ID or object of the associated price set money amount. | ||
*/ | ||
price_set_money_amount?: string | PriceSetMoneyAmountDTO; | ||
} | ||
@@ -77,0 +92,0 @@ /** |
@@ -60,2 +60,3 @@ import { BaseFilterable } from "../../dal"; | ||
money_amount?: MoneyAmountDTO | string; | ||
rules_count?: number; | ||
} | ||
@@ -62,0 +63,0 @@ /** |
import { BaseFilterable } from "../../dal"; | ||
import { CreateMoneyAmountDTO, FilterableMoneyAmountProps, MoneyAmountDTO } from "./money-amount"; | ||
import { RuleTypeDTO } from "./rule-type"; | ||
import { CreatePriceSetPriceRules } from "./price-list"; | ||
/** | ||
@@ -201,3 +202,3 @@ * @interface | ||
*/ | ||
rules: Record<string, string>; | ||
rules?: CreatePriceSetPriceRules; | ||
} | ||
@@ -204,0 +205,0 @@ /** |
@@ -6,3 +6,3 @@ import { CreatePriceListRules, PriceListRuleDTO, PriceListStatus } from "../../pricing"; | ||
status?: PriceListStatus; | ||
number_rules?: number; | ||
rules_count?: number; | ||
rules?: PriceListRuleDTO[]; | ||
@@ -55,3 +55,3 @@ prices?: { | ||
status?: PriceListStatus; | ||
number_rules?: number; | ||
rules_count?: number; | ||
prices: InputPrice[]; | ||
@@ -58,0 +58,0 @@ rules?: CreatePriceListRules; |
{ | ||
"name": "@medusajs/types", | ||
"version": "1.11.8", | ||
"version": "1.11.9-next-20231213100322", | ||
"description": "Medusa Types definition", | ||
@@ -12,2 +12,5 @@ "main": "dist/index.js", | ||
}, | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"publishConfig": { | ||
@@ -14,0 +17,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
447433
235
12628
2