@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.
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * mime-db
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * MIT Licensed
5
+ */
6
+
7
+ /*!
8
+ * mime-types
9
+ * Copyright(c) 2014 Jonathan Ong
10
+ * Copyright(c) 2015 Douglas Christopher Wilson
11
+ * MIT Licensed
12
+ */
@@ -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
- export interface FetchOptions<T = Record<string, any>> {
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.22.0",
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": "27.4.1",
59
+ "@types/jest": "28.1.8",
60
60
  "@types/json-stringify-safe": "5.0.0",
61
- "@types/lodash": "4.14.181",
62
- "@types/lodash.clonedeep": "4.5.6",
63
- "@types/node": "17.0.24",
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.19.0",
68
- "@typescript-eslint/parser": "5.19.0",
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.4",
70
+ "commitizen": "4.2.5",
71
71
  "cz-conventional-changelog": "3.3.0",
72
- "eslint": "8.13.0",
72
+ "eslint": "8.23.0",
73
73
  "eslint-config-prettier": "8.5.0",
74
74
  "husky": "7.0.4",
75
- "jest": "27.5.1",
75
+ "jest": "28.1.3",
76
76
  "jest-matcher-specific-error": "1.0.0",
77
- "jest-mock": "27.5.1",
78
- "nock": "13.2.4",
79
- "prettier": "2.6.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.2",
82
- "ts-jest": "27.1.4",
83
- "ts-node": "10.7.0",
84
- "typedoc": "0.22.15",
85
- "typescript": "~4.6.3",
86
- "webpack": "5.72.0",
87
- "webpack-cli": "4.9.2"
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.26.1",
91
+ "axios": "0.27.2",
92
92
  "json-stringify-safe": "5.0.1",
93
93
  "lodash.clonedeep": "4.5.0",
94
- "qs": "6.10.3",
94
+ "qs": "6.11.0",
95
95
  "traverse": "0.6.6"
96
96
  },
97
97
  "config": {