@maioradv/cms-basic-lib 1.1.4 → 1.1.6

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/client.d.ts CHANGED
@@ -41,4 +41,5 @@ export declare class MaiorCmsApiClient implements ClientApiI {
41
41
  protected _initModules(): void;
42
42
  _setAccessToken(accessToken: string): void;
43
43
  auth(): Promise<AccessTokenDto>;
44
+ jwt(accessToken: string): Promise<AccessTokenDto>;
44
45
  }
package/dist/client.js CHANGED
@@ -61,5 +61,10 @@ class MaiorCmsApiClient {
61
61
  this.client.defaults.headers.common[types_1.ApiHeader.Authorization] = `${access.token_type} ${access.access_token}`;
62
62
  return access;
63
63
  }
64
+ async jwt(accessToken) {
65
+ const access = await this.authentication.jwt(accessToken);
66
+ this.client.defaults.headers.common[types_1.ApiHeader.Authorization] = `${access.token_type} ${access.access_token}`;
67
+ return access;
68
+ }
64
69
  }
65
70
  exports.MaiorCmsApiClient = MaiorCmsApiClient;
@@ -5,7 +5,7 @@ const model_1 = require("../model");
5
5
  const graphql_1 = require("./graphql");
6
6
  class ProductAttributeValues extends model_1.ApiModule {
7
7
  findAll(args = {}) {
8
- return this._call('get', '/product-attributes-values', (0, queryParams_1.queryParams)(args));
8
+ return this._call('get', '/product-attribute-values', (0, queryParams_1.queryParams)(args));
9
9
  }
10
10
  update(id, data) {
11
11
  return this._call('patch', `/product-attribute-values/${id}`, data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "JS lib for Maior CMS Basic Api",
5
5
  "repository": "https://github.com/maioradv/cms-basic-lib.git",
6
6
  "author": "Maior ADV Srl",