New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@medusajs/types

Package Overview
Dependencies
Maintainers
2
Versions
3502
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@medusajs/types - npm Package Compare versions

Comparing version

to
1.11.9-snapshot-20231128140411

4

dist/pricing/common/price-list.d.ts

@@ -109,2 +109,6 @@ import { CreateMoneyAmountDTO, MoneyAmountDTO } from "./money-amount";

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?: Record<string, string>;
}

@@ -111,0 +115,0 @@ /**

16

dist/pricing/common/price-rule.d.ts
import { BaseFilterable } from "../../dal";
import { PriceSetDTO } from "./price-set";
import { PriceSetMoneyAmountDTO } from "./price-set-money-amount";
import { RuleTypeDTO } from "./rule-type";

@@ -58,14 +59,18 @@ /**

/**
* 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.
*/
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.

@@ -75,3 +80,4 @@ */

priority?: number;
price_set_money_amount_id: string;
price_set_money_amount_id?: string;
price_set_money_amount?: string | PriceSetMoneyAmountDTO;
}

@@ -78,0 +84,0 @@ /**

@@ -60,2 +60,3 @@ import { BaseFilterable } from "../../dal";

money_amount?: MoneyAmountDTO | string;
number_rules?: number;
}

@@ -62,0 +63,0 @@ /**

{
"name": "@medusajs/types",
"version": "1.11.8",
"version": "1.11.9-snapshot-20231128140411",
"description": "Medusa Types definition",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display