@maioradv/cms-basic-lib 1.5.9 → 1.6.1
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/apitokens/types.d.ts +2 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +4 -4
- package/dist/roles/types.d.ts +2 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.js +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Permission } from "../auth/types";
|
|
2
|
-
import { StringClause, WhereClausesDto } from "../core/dto/clauses";
|
|
2
|
+
import { BooleanClause, StringClause, WhereClausesDto } from "../core/dto/clauses";
|
|
3
3
|
import { Sorting, SortingParamsDto } from "../core/dto/sorting";
|
|
4
4
|
import { QueryParamsDto } from "../core/utils/queryParams";
|
|
5
5
|
export type ApiToken = {
|
|
@@ -18,5 +18,6 @@ export type SortingApiTokenDto = SortingParamsDto<{
|
|
|
18
18
|
}>;
|
|
19
19
|
export type ClausesApiTokenDto = WhereClausesDto<{
|
|
20
20
|
name?: StringClause;
|
|
21
|
+
readOnly?: BooleanClause;
|
|
21
22
|
}>;
|
|
22
23
|
export type QueryApiTokenDto = QueryParamsDto<SortingApiTokenDto, ClausesApiTokenDto>;
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -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(
|
|
5
|
-
token(
|
|
4
|
+
jwt(token: string): Promise<AccessTokenDto>;
|
|
5
|
+
token(token: string): Promise<AccessTokenDto>;
|
|
6
6
|
me(): Promise<Jwt>;
|
|
7
7
|
}
|
package/dist/auth/index.js
CHANGED
|
@@ -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(
|
|
6
|
-
return this._call('post', `/auth/jwt
|
|
5
|
+
jwt(token) {
|
|
6
|
+
return this._call('post', `/auth/jwt`, { token });
|
|
7
7
|
}
|
|
8
|
-
token(
|
|
9
|
-
return this._call('post', `/auth/token
|
|
8
|
+
token(token) {
|
|
9
|
+
return this._call('post', `/auth/token`, { token });
|
|
10
10
|
}
|
|
11
11
|
me() {
|
|
12
12
|
return this._call('get', `/auth/me`);
|
package/dist/roles/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Permission } from "../auth/types";
|
|
2
|
-
import { StringClause, WhereClausesDto } from "../core/dto/clauses";
|
|
2
|
+
import { BooleanClause, StringClause, WhereClausesDto } from "../core/dto/clauses";
|
|
3
3
|
import { Sorting, SortingParamsDto } from "../core/dto/sorting";
|
|
4
4
|
import { QueryParamsDto } from "../core/utils/queryParams";
|
|
5
5
|
import { OmitRequire, Translation } from "../types";
|
|
@@ -21,5 +21,6 @@ export type SortingRoleDto = SortingParamsDto<{
|
|
|
21
21
|
export type ClausesRoleDto = WhereClausesDto<{
|
|
22
22
|
name?: StringClause;
|
|
23
23
|
description?: StringClause;
|
|
24
|
+
readOnly?: BooleanClause;
|
|
24
25
|
}>;
|
|
25
26
|
export type QueryRoleDto = QueryParamsDto<SortingRoleDto, ClausesRoleDto>;
|
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.
|
|
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.
|
|
10
|
+
exports.LATEST_API_VERSION = ApiVersion.October25;
|
|
10
11
|
exports.SUPPORTED_API_VERSIONS = [
|
|
11
12
|
exports.LATEST_API_VERSION,
|
|
12
13
|
ApiVersion.Unstable
|