@gradientedge/commercetools-utils 5.6.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ge-commercetools-utils-browser.cjs.js +1 -1
- package/dist/ge-commercetools-utils-browser.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js +1 -1
- package/dist/ge-commercetools-utils-browser.esm.js.map +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js +1 -1
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-node.esm.js +1 -1
- package/dist/typings/api/CommercetoolsApi.d.ts +33 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommercetoolsApiConfig, CommercetoolsRetryConfig } from './types';
|
|
2
2
|
import { CommercetoolsAuth, PaymentDraft, ProductTypePagedQueryResponse, TypePagedQueryResponse } from '../';
|
|
3
3
|
import { CommercetoolsRequest, RegionEndpoints } from '../types';
|
|
4
|
-
import type { Cart, CartDiscount, CartDiscountPagedQueryResponse, CartDraft, CartPagedQueryResponse, CartUpdateAction, Category, CategoryDraft, CategoryPagedQueryResponse, CategoryUpdate, Channel, ChannelPagedQueryResponse, Customer, CustomerCreatePasswordResetToken, CustomerDraft, CustomerGroup, CustomerGroupDraft, CustomerGroupPagedQueryResponse, CustomerGroupUpdate, CustomerPagedQueryResponse, CustomerResetPassword, CustomerSignin, CustomerSignInResult, CustomerToken, CustomerUpdate, CustomObject, CustomObjectDraft, DiscountCode, GraphQLRequest, GraphQLResponse, MyCartDraft, MyCartUpdateAction, MyCustomerDraft, MyPayment, MyPaymentDraft, MyPaymentPagedQueryResponse, MyPaymentUpdate, Order, OrderImportDraft, OrderPagedQueryResponse, OrderUpdate, Payment, PaymentPagedQueryResponse, PaymentUpdate, Product, ProductDraft, ProductProjection, ProductProjectionPagedQueryResponse, ProductSelection, ProductSelectionDraft, ProductSelectionPagedQueryResponse, ProductSelectionUpdateAction, ProductsInStorePagedQueryResponse, ProductType, ProductUpdate, ShippingMethod, ShippingMethodPagedQueryResponse, StandalonePrice, StandalonePriceDraft, StandalonePricePagedQueryResponse, StandalonePriceUpdate, State, StatePagedQueryResponse, Store, StoreDraft, StorePagedQueryResponse, StoreUpdate, Type } from '../models';
|
|
4
|
+
import type { Cart, CartDiscount, CartDiscountPagedQueryResponse, CartDraft, CartPagedQueryResponse, CartUpdateAction, Category, CategoryDraft, CategoryPagedQueryResponse, CategoryUpdate, Channel, ChannelPagedQueryResponse, Customer, CustomerCreatePasswordResetToken, CustomerDraft, CustomerGroup, CustomerGroupDraft, CustomerGroupPagedQueryResponse, CustomerGroupUpdate, CustomerPagedQueryResponse, CustomerResetPassword, CustomerSignin, CustomerSignInResult, CustomerToken, CustomerUpdate, CustomObject, CustomObjectDraft, DiscountCode, GraphQLRequest, GraphQLResponse, InventoryEntry, InventoryEntryDraft, InventoryEntryUpdateAction, InventoryPagedQueryResponse, MyCartDraft, MyCartUpdateAction, MyCustomerDraft, MyPayment, MyPaymentDraft, MyPaymentPagedQueryResponse, MyPaymentUpdate, Order, OrderImportDraft, OrderPagedQueryResponse, OrderUpdate, Payment, PaymentPagedQueryResponse, PaymentUpdate, Product, ProductDraft, ProductProjection, ProductProjectionPagedQueryResponse, ProductSelection, ProductSelectionDraft, ProductSelectionPagedQueryResponse, ProductSelectionUpdateAction, ProductsInStorePagedQueryResponse, ProductType, ProductUpdate, ShippingMethod, ShippingMethodPagedQueryResponse, StandalonePrice, StandalonePriceDraft, StandalonePricePagedQueryResponse, StandalonePriceUpdate, State, StatePagedQueryResponse, Store, StoreDraft, StorePagedQueryResponse, StoreUpdate, Type } from '../models';
|
|
5
5
|
export interface FetchOptions<T = any> {
|
|
6
6
|
path: string;
|
|
7
7
|
headers?: Record<string, string>;
|
|
@@ -121,6 +121,38 @@ export declare class CommercetoolsApi {
|
|
|
121
121
|
version: number;
|
|
122
122
|
}): Promise<ProductSelection>;
|
|
123
123
|
queryProductsInStore(options: CommonStoreEnabledRequestOptions): Promise<ProductsInStorePagedQueryResponse>;
|
|
124
|
+
getInventoryEntryById(options: CommonRequestOptions & {
|
|
125
|
+
id: string;
|
|
126
|
+
}): Promise<InventoryEntry>;
|
|
127
|
+
getInventoryEntryByKey(options: CommonRequestOptions & {
|
|
128
|
+
key: string;
|
|
129
|
+
}): Promise<InventoryEntry>;
|
|
130
|
+
queryInventory(options?: CommonRequestOptions): Promise<InventoryPagedQueryResponse>;
|
|
131
|
+
createInventoryEntry(options: CommonRequestOptions & {
|
|
132
|
+
data: InventoryEntryDraft;
|
|
133
|
+
}): Promise<InventoryEntry>;
|
|
134
|
+
updateInventoryEntryById(options: CommonRequestOptions & {
|
|
135
|
+
id: string;
|
|
136
|
+
data: {
|
|
137
|
+
version: number;
|
|
138
|
+
actions: InventoryEntryUpdateAction[];
|
|
139
|
+
};
|
|
140
|
+
}): Promise<InventoryEntry>;
|
|
141
|
+
updateInventoryEntryByKey(options: CommonRequestOptions & {
|
|
142
|
+
key: string;
|
|
143
|
+
data: {
|
|
144
|
+
version: number;
|
|
145
|
+
actions: InventoryEntryUpdateAction[];
|
|
146
|
+
};
|
|
147
|
+
}): Promise<InventoryEntry>;
|
|
148
|
+
deleteInventoryEntryById(options: CommonRequestOptions & {
|
|
149
|
+
id: string;
|
|
150
|
+
version: number;
|
|
151
|
+
}): Promise<InventoryEntry>;
|
|
152
|
+
deleteInventoryEntryByKey(options: CommonRequestOptions & {
|
|
153
|
+
key: string;
|
|
154
|
+
version: number;
|
|
155
|
+
}): Promise<InventoryEntry>;
|
|
124
156
|
getCartById(options: CommonStoreEnabledRequestOptions & {
|
|
125
157
|
id: string;
|
|
126
158
|
}): Promise<Cart>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/commercetools-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "Provide utility classes and functions for interacting with the commercetools API",
|
|
5
5
|
"main": "./dist/ge-commercetools-utils-node.cjs.js",
|
|
6
6
|
"module": "./dist/ge-commercetools-utils-node.esm.js",
|