@atoms-studio/commercelayer-sdk
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -1040,2 +1040,3 @@ 'use strict'; | ||
'item_type', | ||
'bundle_code', | ||
], | ||
@@ -1487,2 +1488,76 @@ relationships: { | ||
const SkuListItemsConfig = { | ||
type: 'sku_lists', | ||
attributes: [ | ||
'position', | ||
'sku_code', | ||
'quantity', | ||
'created_at', | ||
'updated_at', | ||
'reference', | ||
'reference_origin', | ||
], | ||
relationships: { | ||
sku_list: 'sku_list', | ||
sku: 'sku', | ||
}, | ||
}; | ||
const SkuListItems = createResource(SkuListItemsConfig); | ||
const SkuListsConfig = { | ||
type: 'sku_lists', | ||
attributes: [ | ||
'name', | ||
'slug', | ||
'description', | ||
'image_url', | ||
'manual', | ||
'sku_code_regex', | ||
'created_at', | ||
'updated_at', | ||
'reference', | ||
'reference_origin', | ||
], | ||
relationships: { | ||
skus: 'shipping_categories', | ||
sku_list_items: 'prices', | ||
bundles: 'stock_items', | ||
attachments: 'attachments', | ||
}, | ||
}; | ||
const SkuLists = createResource(SkuListsConfig); | ||
const BundlesConfig = { | ||
type: 'bundles', | ||
attributes: [ | ||
'code', | ||
'name', | ||
'currency_code', | ||
'description', | ||
'image_url', | ||
'do_not_ship', | ||
'do_not_track', | ||
'price_amount_cents', | ||
'price_amount_float', | ||
'formatted_price_amount', | ||
'compare_at_amount_cents', | ||
'compare_at_amount_float', | ||
'formatted_compare_at_amount', | ||
'_compute_price_amount', | ||
'_compute_compare_at_amount', | ||
'skus_count', | ||
'created_at', | ||
'updated_at', | ||
'reference', | ||
'reference_origin', | ||
], | ||
relationships: { | ||
market: 'shipping_categories', | ||
sku_list: 'prices', | ||
skus: 'stock_items', | ||
attachments: 'attachments', | ||
}, | ||
}; | ||
const Bundles = createResource(BundlesConfig); | ||
exports.Addresses = Addresses; | ||
@@ -1492,2 +1567,3 @@ exports.Adjustments = Adjustments; | ||
exports.Auth = Auth; | ||
exports.Bundles = Bundles; | ||
exports.CustomerAddresses = CustomerAddresses; | ||
@@ -1515,2 +1591,4 @@ exports.CustomerGroups = CustomerGroups; | ||
exports.ShippingMethods = ShippingMethods; | ||
exports.SkuListItems = SkuListItems; | ||
exports.SkuLists = SkuLists; | ||
exports.Skus = Skus; | ||
@@ -1517,0 +1595,0 @@ exports.StockItems = StockItems; |
@@ -1032,2 +1032,3 @@ import axios from 'axios'; | ||
'item_type', | ||
'bundle_code', | ||
], | ||
@@ -1479,2 +1480,76 @@ relationships: { | ||
export { Addresses, Adjustments, Attachments, Auth, CustomerAddresses, CustomerGroups, CustomerPasswordResets, CustomerPaymentSources, Customers, DeliveryLeadTimes, GiftCards, LineItems, Markets, OrderCopies, OrderSubscriptions, Orders, PaymentGateways, PaymentMethods, PriceLists, Prices, Refunds, ResourceError, Returns, Shipments, ShippingCategories, ShippingMethods, Skus, StockItems, StockLocations, StripePayments, WireTransfers, getConfig, initConfig as init }; | ||
const SkuListItemsConfig = { | ||
type: 'sku_lists', | ||
attributes: [ | ||
'position', | ||
'sku_code', | ||
'quantity', | ||
'created_at', | ||
'updated_at', | ||
'reference', | ||
'reference_origin', | ||
], | ||
relationships: { | ||
sku_list: 'sku_list', | ||
sku: 'sku', | ||
}, | ||
}; | ||
const SkuListItems = createResource(SkuListItemsConfig); | ||
const SkuListsConfig = { | ||
type: 'sku_lists', | ||
attributes: [ | ||
'name', | ||
'slug', | ||
'description', | ||
'image_url', | ||
'manual', | ||
'sku_code_regex', | ||
'created_at', | ||
'updated_at', | ||
'reference', | ||
'reference_origin', | ||
], | ||
relationships: { | ||
skus: 'shipping_categories', | ||
sku_list_items: 'prices', | ||
bundles: 'stock_items', | ||
attachments: 'attachments', | ||
}, | ||
}; | ||
const SkuLists = createResource(SkuListsConfig); | ||
const BundlesConfig = { | ||
type: 'bundles', | ||
attributes: [ | ||
'code', | ||
'name', | ||
'currency_code', | ||
'description', | ||
'image_url', | ||
'do_not_ship', | ||
'do_not_track', | ||
'price_amount_cents', | ||
'price_amount_float', | ||
'formatted_price_amount', | ||
'compare_at_amount_cents', | ||
'compare_at_amount_float', | ||
'formatted_compare_at_amount', | ||
'_compute_price_amount', | ||
'_compute_compare_at_amount', | ||
'skus_count', | ||
'created_at', | ||
'updated_at', | ||
'reference', | ||
'reference_origin', | ||
], | ||
relationships: { | ||
market: 'shipping_categories', | ||
sku_list: 'prices', | ||
skus: 'stock_items', | ||
attachments: 'attachments', | ||
}, | ||
}; | ||
const Bundles = createResource(BundlesConfig); | ||
export { Addresses, Adjustments, Attachments, Auth, Bundles, CustomerAddresses, CustomerGroups, CustomerPasswordResets, CustomerPaymentSources, Customers, DeliveryLeadTimes, GiftCards, LineItems, Markets, OrderCopies, OrderSubscriptions, Orders, PaymentGateways, PaymentMethods, PriceLists, Prices, Refunds, ResourceError, Returns, Shipments, ShippingCategories, ShippingMethods, SkuListItems, SkuLists, Skus, StockItems, StockLocations, StripePayments, WireTransfers, getConfig, initConfig as init }; |
@@ -33,2 +33,5 @@ export { initConfig as init, getConfig } from './config'; | ||
export { CustomerGroups, CustomerGroupInstance, } from './resources/CustomerGroups'; | ||
export { SkuListItems, SkuListItemInstance } from './resources/SkuListItems'; | ||
export { SkuLists, SkuListInstance } from './resources/SkuLists'; | ||
export { Bundles, BundleInstance } from './resources/Bundles'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,2 +8,3 @@ import { ResourceConfig, ConcreteResourceInstance, Resource } from '../resource'; | ||
import { SkuInstance } from './Skus'; | ||
import { BundleInstance } from './Bundles'; | ||
export interface LineItemAttributes { | ||
@@ -36,6 +37,7 @@ sku_code: string; | ||
item_type: string; | ||
bundle_code: string; | ||
} | ||
export interface LineItemRelationships { | ||
order: OrderInstance; | ||
item: SkuInstance | ShipmentInstance | PaymentMethodInstance | AdjustmentInstance | GiftCardInstance; | ||
item: SkuInstance | ShipmentInstance | PaymentMethodInstance | AdjustmentInstance | GiftCardInstance | BundleInstance; | ||
line_item_options: any[]; | ||
@@ -42,0 +44,0 @@ shipment_line_items: LineItemInstance[]; |
{ | ||
"name": "@atoms-studio/commercelayer-sdk", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"repository": "git@github.com:atoms-studio/commercelayer-sdk.git", | ||
@@ -5,0 +5,0 @@ "author": "atoms.studio", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
204036
87
4210