@zauru-sdk/services 1.0.8 → 1.0.10

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.10](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.9...v1.0.10) (2024-03-17)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/services
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.9](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.8...v1.0.9) (2024-03-16)
15
+
16
+ **Note:** Version bump only for package @zauru-sdk/services
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.8](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.7...v1.0.8) (2024-03-16)
7
23
 
8
24
  **Note:** Version bump only for package @zauru-sdk/services
@@ -15,6 +15,7 @@ export declare function getSuggestedPrices(session: Session, config: {
15
15
  notNullPriceList?: boolean;
16
16
  withItems?: boolean;
17
17
  withItemCategories?: boolean;
18
+ onlyCurrent?: boolean;
18
19
  }): Promise<AxiosUtilsResponse<SuggestedPriceGraphQL[]>>;
19
20
  /**
20
21
  * createSuggestedPrice
@@ -23,13 +23,14 @@ export const getSuggestedPricesExportJSON = async (headers) => {
23
23
  */
24
24
  export async function getSuggestedPrices(session, config) {
25
25
  return handlePossibleAxiosErrors(async () => {
26
- const { notNullPriceList = false, withItems = false, withItemCategories = false, } = config;
26
+ const { notNullPriceList = false, withItems = false, withItemCategories = false, onlyCurrent = false, } = config;
27
27
  const headers = await getGraphQLAPIHeaders(session);
28
28
  const response = await httpGraphQLAPI.post("", {
29
29
  query: getSuggestedPricesStringQuery({
30
30
  notNullPriceList,
31
31
  withItems,
32
32
  withItemCategories,
33
+ onlyCurrent,
33
34
  }),
34
35
  }, { headers });
35
36
  if (response.data.errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,15 +19,15 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@remix-run/node": "^2.8.1",
22
- "@zauru-sdk/common": "^1.0.8",
22
+ "@zauru-sdk/common": "^1.0.10",
23
23
  "@zauru-sdk/config": "^1.0.4",
24
- "@zauru-sdk/graphql": "^1.0.7",
25
- "@zauru-sdk/types": "^1.0.8",
24
+ "@zauru-sdk/graphql": "^1.0.9",
25
+ "@zauru-sdk/types": "^1.0.10",
26
26
  "axios": "^1.6.7",
27
27
  "chalk": "5.3.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=18.0.0"
31
31
  },
32
- "gitHead": "60fc0a94174a359d300c7479bcb8278316857ed9"
32
+ "gitHead": "92bcefbeded758ac406e0436dc5c1894390a319d"
33
33
  }
@@ -41,6 +41,7 @@ export async function getSuggestedPrices(
41
41
  notNullPriceList?: boolean;
42
42
  withItems?: boolean;
43
43
  withItemCategories?: boolean;
44
+ onlyCurrent?: boolean;
44
45
  }
45
46
  ): Promise<AxiosUtilsResponse<SuggestedPriceGraphQL[]>> {
46
47
  return handlePossibleAxiosErrors(async () => {
@@ -48,6 +49,7 @@ export async function getSuggestedPrices(
48
49
  notNullPriceList = false,
49
50
  withItems = false,
50
51
  withItemCategories = false,
52
+ onlyCurrent = false,
51
53
  } = config;
52
54
  const headers = await getGraphQLAPIHeaders(session);
53
55
 
@@ -64,6 +66,7 @@ export async function getSuggestedPrices(
64
66
  notNullPriceList,
65
67
  withItems,
66
68
  withItemCategories,
69
+ onlyCurrent,
67
70
  }),
68
71
  },
69
72
  { headers }