@maioradv/cms-basic-lib 1.5.8 → 1.6.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.
@@ -1,7 +1,7 @@
1
1
  import { ApiModule } from "../model";
2
2
  import { AccessTokenDto, Jwt } from "./types";
3
3
  export default class Auth extends ApiModule {
4
- jwt(accessToken: string): Promise<AccessTokenDto>;
5
- token(apiToken: string): Promise<AccessTokenDto>;
4
+ jwt(token: string): Promise<AccessTokenDto>;
5
+ token(token: string): Promise<AccessTokenDto>;
6
6
  me(): Promise<Jwt>;
7
7
  }
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const model_1 = require("../model");
4
4
  class Auth extends model_1.ApiModule {
5
- jwt(accessToken) {
6
- return this._call('post', `/auth/jwt/${accessToken}`);
5
+ jwt(token) {
6
+ return this._call('post', `/auth/jwt`, { token });
7
7
  }
8
- token(apiToken) {
9
- return this._call('post', `/auth/token/${apiToken}`);
8
+ token(token) {
9
+ return this._call('post', `/auth/token`, { token });
10
10
  }
11
11
  me() {
12
12
  return this._call('get', `/auth/me`);
@@ -4,6 +4,7 @@ import { QueryParamsDto } from "../core/utils/queryParams";
4
4
  import { CreateImageDto, Image } from "../images/types";
5
5
  import { Metafield, OmitRequire, Translation, WithRelation, WithRelations } from "../types";
6
6
  export declare enum PopupTarget {
7
+ all = "all",
7
8
  menu = "menu",
8
9
  menuDetail = "menuDetail",
9
10
  collectionDetail = "collectionDetail"
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PopupTriggerRule = exports.PopupModal = exports.PopupTarget = void 0;
4
4
  var PopupTarget;
5
5
  (function (PopupTarget) {
6
+ PopupTarget["all"] = "all";
6
7
  PopupTarget["menu"] = "menu";
7
8
  PopupTarget["menuDetail"] = "menuDetail";
8
9
  PopupTarget["collectionDetail"] = "collectionDetail";
package/dist/types.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  export declare enum ApiVersion {
2
2
  July24 = "2024-07",
3
+ October25 = "2025-10",
3
4
  Unstable = "unstable"
4
5
  }
5
- export declare const LATEST_API_VERSION = ApiVersion.July24;
6
+ export declare const LATEST_API_VERSION = ApiVersion.October25;
6
7
  export declare const SUPPORTED_API_VERSIONS: ApiVersion[];
7
8
  export declare enum ApiHeader {
8
9
  Authorization = "Authorization",
package/dist/types.js CHANGED
@@ -4,9 +4,10 @@ exports.ApiHeader = exports.SUPPORTED_API_VERSIONS = exports.LATEST_API_VERSION
4
4
  var ApiVersion;
5
5
  (function (ApiVersion) {
6
6
  ApiVersion["July24"] = "2024-07";
7
+ ApiVersion["October25"] = "2025-10";
7
8
  ApiVersion["Unstable"] = "unstable";
8
9
  })(ApiVersion || (exports.ApiVersion = ApiVersion = {}));
9
- exports.LATEST_API_VERSION = ApiVersion.July24;
10
+ exports.LATEST_API_VERSION = ApiVersion.October25;
10
11
  exports.SUPPORTED_API_VERSIONS = [
11
12
  exports.LATEST_API_VERSION,
12
13
  ApiVersion.Unstable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/cms-basic-lib",
3
- "version": "1.5.8",
3
+ "version": "1.6.0",
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",