@medusajs/types
Advanced tools
Comparing version 1.11.2-snapshot-20230928211733 to 1.11.2
@@ -14,3 +14,2 @@ export * from "./address"; | ||
export * from "./logger"; | ||
export * from "./line-item"; | ||
export * from "./modules-sdk"; | ||
@@ -17,0 +16,0 @@ export * from "./pricing"; |
@@ -30,3 +30,2 @@ "use strict"; | ||
__exportStar(require("./logger"), exports); | ||
__exportStar(require("./line-item"), exports); | ||
__exportStar(require("./modules-sdk"), exports); | ||
@@ -33,0 +32,0 @@ __exportStar(require("./pricing"), exports); |
export * from "./currency"; | ||
export * from "./money-amount"; | ||
export * from "./price-set"; | ||
export * from "./price-set-money-amount"; | ||
export * from "./price-set-money-amount-rules"; | ||
export * from "./rule-type"; | ||
export * from './price-rule'; |
@@ -20,4 +20,6 @@ "use strict"; | ||
__exportStar(require("./price-set"), exports); | ||
__exportStar(require("./price-set-money-amount"), exports); | ||
__exportStar(require("./price-set-money-amount-rules"), exports); | ||
__exportStar(require("./rule-type"), exports); | ||
__exportStar(require("./price-rule"), exports); | ||
//# sourceMappingURL=index.js.map |
import { BaseFilterable } from "../../dal"; | ||
import { FilterableMoneyAmountProps, MoneyAmountDTO } from "./money-amount"; | ||
export interface PricingContext { | ||
context?: { | ||
currency_code?: string; | ||
}; | ||
context?: Record<string, string | number>; | ||
} | ||
@@ -8,0 +6,0 @@ export interface PricingFilters { |
@@ -1,5 +0,5 @@ | ||
import { CalculatedPriceSetDTO, CreateCurrencyDTO, CreateMoneyAmountDTO, CreatePriceRuleDTO, CreatePriceSetDTO, CreateRuleTypeDTO, CurrencyDTO, FilterableCurrencyProps, FilterableMoneyAmountProps, FilterablePriceRuleProps, FilterablePriceSetProps, FilterableRuleTypeProps, MoneyAmountDTO, PriceRuleDTO, PriceSetDTO, PricingContext, PricingFilters, RuleTypeDTO, UpdateCurrencyDTO, UpdateMoneyAmountDTO, UpdatePriceRuleDTO, UpdatePriceSetDTO, UpdateRuleTypeDTO } from "./common"; | ||
import { Context } from "../shared-context"; | ||
import { CalculatedPriceSetDTO, CreateCurrencyDTO, CreateMoneyAmountDTO, CreatePriceRuleDTO, CreatePriceSetDTO, CreatePriceSetMoneyAmountRulesDTO, CreateRuleTypeDTO, CurrencyDTO, FilterableCurrencyProps, FilterableMoneyAmountProps, FilterablePriceRuleProps, FilterablePriceSetMoneyAmountRulesProps, FilterablePriceSetProps, FilterableRuleTypeProps, MoneyAmountDTO, PriceRuleDTO, PriceSetDTO, PriceSetMoneyAmountRulesDTO, PricingContext, PricingFilters, RuleTypeDTO, UpdateCurrencyDTO, UpdateMoneyAmountDTO, UpdatePriceRuleDTO, UpdatePriceSetDTO, UpdatePriceSetMoneyAmountRulesDTO, UpdateRuleTypeDTO } from "./common"; | ||
import { FindConfig } from "../common"; | ||
import { ModuleJoinerConfig } from "../modules-sdk"; | ||
import { Context } from "../shared-context"; | ||
export interface IPricingModuleService { | ||
@@ -32,2 +32,8 @@ __joinerConfig(): ModuleJoinerConfig; | ||
deleteRuleTypes(ruleTypeIds: string[], sharedContext?: Context): Promise<void>; | ||
retrievePriceSetMoneyAmountRules(id: string, config?: FindConfig<PriceSetMoneyAmountRulesDTO>, sharedContext?: Context): Promise<PriceSetMoneyAmountRulesDTO>; | ||
listPriceSetMoneyAmountRules(filters?: FilterablePriceSetMoneyAmountRulesProps, config?: FindConfig<PriceSetMoneyAmountRulesDTO>, sharedContext?: Context): Promise<PriceSetMoneyAmountRulesDTO[]>; | ||
listAndCountPriceSetMoneyAmountRules(filters?: FilterablePriceSetMoneyAmountRulesProps, config?: FindConfig<PriceSetMoneyAmountRulesDTO>, sharedContext?: Context): Promise<[PriceSetMoneyAmountRulesDTO[], number]>; | ||
createPriceSetMoneyAmountRules(data: CreatePriceSetMoneyAmountRulesDTO[], sharedContext?: Context): Promise<PriceSetMoneyAmountRulesDTO[]>; | ||
updatePriceSetMoneyAmountRules(data: UpdatePriceSetMoneyAmountRulesDTO[], sharedContext?: Context): Promise<PriceSetMoneyAmountRulesDTO[]>; | ||
deletePriceSetMoneyAmountRules(ids: string[], sharedContext?: Context): Promise<void>; | ||
retrievePriceRule(id: string, config?: FindConfig<PriceRuleDTO>, sharedContext?: Context): Promise<PriceRuleDTO>; | ||
@@ -34,0 +40,0 @@ listPriceRules(filters?: FilterablePriceRuleProps, config?: FindConfig<PriceRuleDTO>, sharedContext?: Context): Promise<PriceRuleDTO[]>; |
{ | ||
"name": "@medusajs/types", | ||
"version": "1.11.2-snapshot-20230928211733", | ||
"version": "1.11.2", | ||
"description": "Medusa Types definition", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
123912
1
2924