@gradientedge/commercetools-utils 4.22.0 → 4.23.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 +2 -1
- package/dist/ge-commercetools-utils-node.cjs.js.LICENSE.txt +12 -0
- package/dist/ge-commercetools-utils-node.cjs.js.map +1 -1
- package/dist/ge-commercetools-utils-node.esm.js +2 -1
- package/dist/ge-commercetools-utils-node.esm.js.LICENSE.txt +12 -0
- package/dist/typings/api/CommercetoolsApi.d.ts +28 -1
- package/package.json +22 -22
|
@@ -3,7 +3,8 @@ import { CommercetoolsApiConfig, CommercetoolsRetryConfig } from './types';
|
|
|
3
3
|
import { CommercetoolsAuth, PaymentDraft } from '../';
|
|
4
4
|
import { RegionEndpoints } from '../types';
|
|
5
5
|
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, ProductsInStorePagedQueryResponse, ProductSelection, ProductSelectionDraft, ProductSelectionPagedQueryResponse, ProductSelectionUpdateAction, ProductType, ProductUpdate, ShippingMethod, ShippingMethodPagedQueryResponse, State, StatePagedQueryResponse, Store, StoreDraft, StorePagedQueryResponse, StoreUpdate, Type } from '../models';
|
|
6
|
-
|
|
6
|
+
import { StandalonePrice, StandalonePriceDraft, StandalonePricePagedQueryResponse, StandalonePriceUpdate } from '../models/standalone-price';
|
|
7
|
+
export interface FetchOptions<T = any> {
|
|
7
8
|
path: string;
|
|
8
9
|
headers?: Record<string, string>;
|
|
9
10
|
method: 'GET' | 'POST' | 'DELETE' | 'HEAD';
|
|
@@ -435,6 +436,32 @@ export declare class CommercetoolsApi {
|
|
|
435
436
|
key: string;
|
|
436
437
|
}): Promise<State>;
|
|
437
438
|
queryStates(options?: CommonRequestOptions): Promise<StatePagedQueryResponse>;
|
|
439
|
+
getStandalonePriceById(options: CommonRequestOptions & {
|
|
440
|
+
id: string;
|
|
441
|
+
}): Promise<StandalonePrice>;
|
|
442
|
+
getStandalonePriceByKey(options: CommonRequestOptions & {
|
|
443
|
+
key: string;
|
|
444
|
+
}): Promise<StandalonePrice>;
|
|
445
|
+
queryStandalonePrices(options?: CommonRequestOptions): Promise<StandalonePricePagedQueryResponse>;
|
|
446
|
+
createStandalonePrice(options: CommonRequestOptions & {
|
|
447
|
+
data: StandalonePriceDraft;
|
|
448
|
+
}): Promise<StandalonePrice>;
|
|
449
|
+
updateStandalonePriceById(options: CommonRequestOptions & {
|
|
450
|
+
id: string;
|
|
451
|
+
data: StandalonePriceUpdate;
|
|
452
|
+
}): Promise<StandalonePrice>;
|
|
453
|
+
updateStandalonePriceByKey(options: CommonRequestOptions & {
|
|
454
|
+
key: string;
|
|
455
|
+
data: StandalonePriceUpdate;
|
|
456
|
+
}): Promise<StandalonePrice>;
|
|
457
|
+
deleteStandalonePriceById(options: CommonRequestOptions & {
|
|
458
|
+
id: string;
|
|
459
|
+
version: number;
|
|
460
|
+
}): Promise<StandalonePrice>;
|
|
461
|
+
deleteStandalonePriceByKey(options: CommonRequestOptions & {
|
|
462
|
+
key: string;
|
|
463
|
+
version: number;
|
|
464
|
+
}): Promise<StandalonePrice>;
|
|
438
465
|
graphql(options: CommonRequestOptions & {
|
|
439
466
|
accessToken?: string;
|
|
440
467
|
data: GraphQLRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/commercetools-utils",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.23.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",
|
|
@@ -56,42 +56,42 @@
|
|
|
56
56
|
"homepage": "https://github.com/gradientedge/commercetools-utils#readme",
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@sinonjs/fake-timers": "9.1.2",
|
|
59
|
-
"@types/jest": "
|
|
59
|
+
"@types/jest": "28.1.8",
|
|
60
60
|
"@types/json-stringify-safe": "5.0.0",
|
|
61
|
-
"@types/lodash": "4.14.
|
|
62
|
-
"@types/lodash.clonedeep": "4.5.
|
|
63
|
-
"@types/node": "
|
|
61
|
+
"@types/lodash": "4.14.184",
|
|
62
|
+
"@types/lodash.clonedeep": "4.5.7",
|
|
63
|
+
"@types/node": "18.7.15",
|
|
64
64
|
"@types/qs": "6.9.7",
|
|
65
65
|
"@types/sinonjs__fake-timers": "8.1.2",
|
|
66
66
|
"@types/traverse": "0.6.32",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
68
|
-
"@typescript-eslint/parser": "5.
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "5.36.2",
|
|
68
|
+
"@typescript-eslint/parser": "5.36.2",
|
|
69
69
|
"codecov": "3.8.3",
|
|
70
|
-
"commitizen": "4.2.
|
|
70
|
+
"commitizen": "4.2.5",
|
|
71
71
|
"cz-conventional-changelog": "3.3.0",
|
|
72
|
-
"eslint": "8.
|
|
72
|
+
"eslint": "8.23.0",
|
|
73
73
|
"eslint-config-prettier": "8.5.0",
|
|
74
74
|
"husky": "7.0.4",
|
|
75
|
-
"jest": "
|
|
75
|
+
"jest": "28.1.3",
|
|
76
76
|
"jest-matcher-specific-error": "1.0.0",
|
|
77
|
-
"jest-mock": "
|
|
78
|
-
"nock": "13.2.
|
|
79
|
-
"prettier": "2.
|
|
77
|
+
"jest-mock": "28.1.3",
|
|
78
|
+
"nock": "13.2.9",
|
|
79
|
+
"prettier": "2.7.1",
|
|
80
80
|
"rimraf": "3.0.2",
|
|
81
|
-
"semantic-release": "19.0.
|
|
82
|
-
"ts-jest": "
|
|
83
|
-
"ts-node": "10.
|
|
84
|
-
"typedoc": "0.
|
|
85
|
-
"typescript": "~4.
|
|
86
|
-
"webpack": "5.
|
|
87
|
-
"webpack-cli": "4.
|
|
81
|
+
"semantic-release": "19.0.5",
|
|
82
|
+
"ts-jest": "28.0.8",
|
|
83
|
+
"ts-node": "10.9.1",
|
|
84
|
+
"typedoc": "0.23.14",
|
|
85
|
+
"typescript": "~4.8.2",
|
|
86
|
+
"webpack": "5.74.0",
|
|
87
|
+
"webpack-cli": "4.10.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@tshttp/status": "^2.0.0",
|
|
91
|
-
"axios": "0.
|
|
91
|
+
"axios": "0.27.2",
|
|
92
92
|
"json-stringify-safe": "5.0.1",
|
|
93
93
|
"lodash.clonedeep": "4.5.0",
|
|
94
|
-
"qs": "6.
|
|
94
|
+
"qs": "6.11.0",
|
|
95
95
|
"traverse": "0.6.6"
|
|
96
96
|
},
|
|
97
97
|
"config": {
|