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

@heseya/store-core

Package Overview
Dependencies
Maintainers
3
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heseya/store-core - npm Package Compare versions

Comparing version 6.1.0-dev.3 to 7.0.0-beta.1

7

dist/src/interfaces/Attribute.d.ts

@@ -120,2 +120,9 @@ import { CreateMetadataFields, MetadataFields } from './Metadata';

export type ProductAttribute = ProductAttributeSingleOption | ProductAttributeMultiOption | ProductAttributeNumber | ProductAttributeDate;
export type OrderProductAttributeOption = Omit<AttributeOption, 'metadata' | 'metadata_private' | 'translations' | 'index'>;
export interface OrderProductAttribute {
id: UUID;
name: string;
slug: string;
selected_options: OrderProductAttributeOption[];
}
export {};

14

dist/src/interfaces/Order.d.ts

@@ -5,3 +5,3 @@ import { UUID } from './UUID';

import { CreateMetadataFields, MetadataFields } from './Metadata';
import { ShippingMethod } from './ShippingMethod';
import { OrderShippingMethod } from './ShippingMethod';
import { OrderStatus } from './OrderStatus';

@@ -15,3 +15,3 @@ import { OrderProduct } from './Product';

import { StrNumber } from './Number';
import { SalesChannel } from './SalesChannel';
import { OrderSalesChannel } from './SalesChannel';
export interface OrderListed extends MetadataFields {

@@ -33,7 +33,7 @@ id: UUID;

*/
shipping_method: ShippingMethod | null;
shipping_method: OrderShippingMethod | null;
/**
* Digital shipping method only exists if in order is any product with digital shipping type
*/
digital_shipping_method: ShippingMethod | null;
digital_shipping_method: OrderShippingMethod | null;
status: OrderStatus;

@@ -66,3 +66,3 @@ /**

documents: OrderDocument[];
sales_channel: SalesChannel;
sales_channel: OrderSalesChannel;
}

@@ -94,7 +94,7 @@ /**

*/
shipping_method: Omit<ShippingMethod, 'price'> | null;
shipping_method: OrderShippingMethod | null;
/**
* Digital shipping method only exists if in order is any product with digital shipping type
*/
digital_shipping_method: Omit<ShippingMethod, 'price'> | null;
digital_shipping_method: OrderShippingMethod | null;
created_at: string;

@@ -101,0 +101,0 @@ currency: string;

import { OrderSchema, Schema } from './Schema';
import { ProductSet, ProductSetListed } from './ProductSet';
import { OrderProductSet, ProductSet, ProductSetListed } from './ProductSet';
import { SeoMetadata } from './Seo';

@@ -7,3 +7,3 @@ import { UUID } from './UUID';

import { CdnMedia } from './CdnMedia';
import { ProductAttribute, ProductListedAttribute } from './Attribute';
import { OrderProductAttribute, ProductAttribute, ProductListedAttribute } from './Attribute';
import { CreateMetadataFields, MetadataFields } from './Metadata';

@@ -142,2 +142,11 @@ import { Tag } from './Tag';

}
export interface OrderProductDetails extends MetadataFields {
id: UUID;
slug: string;
name: string;
cover: CdnMedia | null;
gallery: CdnMedia[];
sets: OrderProductSet[];
attributes: OrderProductAttribute[];
}
export interface OrderProduct {

@@ -150,3 +159,3 @@ id: UUID;

discounts: OrderDiscount[];
product: Product;
product: OrderProductDetails;
schemas: OrderSchema[];

@@ -153,0 +162,0 @@ deposits: WarehouseDeposit[];

@@ -34,2 +34,7 @@ import { ProductSetAttribute } from './Attribute';

}
export interface OrderProductSet extends MetadataFields {
id: UUID;
name: string;
slug: string;
}
export interface ProductSetCreateDto extends CreateMetadataFields, PublishedTranslationsCreateDto, TranslationsCreateDto<ProductSetTranslatable> {

@@ -36,0 +41,0 @@ id?: UUID;

@@ -112,3 +112,3 @@ import { CreateMetadataFields, MetadataFields } from './Metadata';

id: UUID;
discount: SaleListed | CouponListed;
discount_id: UUID;
name: string;

@@ -115,0 +115,0 @@ code: string | null;

@@ -13,5 +13,7 @@ import { Currency } from './Currency';

}
export interface SalesChannel extends TranslatableSalesChannel, Translations<TranslatableSalesChannel>, PublishedTranslations {
export interface OrderSalesChannel extends TranslatableSalesChannel {
id: string;
slug: string;
}
export interface SalesChannel extends OrderSalesChannel, Translations<TranslatableSalesChannel>, PublishedTranslations {
status: SalesChannelStatus;

@@ -18,0 +20,0 @@ vat_rate: string;

@@ -27,6 +27,13 @@ import { Address } from './Address';

}
export interface ShippingMethod extends MetadataFields {
export interface OrderShippingMethod extends MetadataFields {
id: UUID;
name: string;
shipping_type: ShippingType;
/**
* If true, then this shipping method cannot have any `payment_methods`, because payment will be made on delivery
*/
payment_on_delivery: boolean;
integration_key?: string;
}
export interface ShippingMethod extends OrderShippingMethod {
payment_methods: PaymentMethod[];

@@ -56,9 +63,4 @@ public: boolean;

prices: Price[];
integration_key?: string;
shipping_points: Address[];
deletable: boolean;
/**
* If true, then this shipping method cannot have any `payment_methods`, because payment will be made on delivery
*/
payment_on_delivery: boolean;
}

@@ -65,0 +67,0 @@ export interface ShippingMethodCreateDto extends CreateMetadataFields {

{
"name": "@heseya/store-core",
"version": "6.1.0-dev.3",
"version": "7.0.0-beta.1",
"author": {

@@ -5,0 +5,0 @@ "name": "Heseya"

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc