@drax/identity-front 0.12.1 → 0.12.8
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/package.json +2 -2
- package/src/i18n/identity-userApiKey-i18n.ts +2 -2
- package/src/providers/gql/RoleGqlProvider.ts +1 -1
- package/src/providers/gql/TenantGqlProvider.ts +1 -1
- package/src/providers/gql/UserApiKeyGqlProvider.ts +1 -1
- package/src/providers/gql/UserGqlProvider.ts +1 -1
- package/src/providers/rest/AuthRestProvider.ts +1 -1
- package/src/providers/rest/UserApiKeyRestProvider.ts +1 -1
- package/src/system/AuthSystem.ts +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.12.
|
|
6
|
+
"version": "0.12.8",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"vite-plugin-dts": "^3.9.1",
|
|
50
50
|
"vitest": "^1.4.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "54ceaf876ec121b9bc604160dceb0d2ce1b8c78b"
|
|
53
53
|
}
|
|
@@ -2,7 +2,7 @@ const messages = {
|
|
|
2
2
|
en: {
|
|
3
3
|
userapikey: {
|
|
4
4
|
entity: 'ApiKey',
|
|
5
|
-
menu: '
|
|
5
|
+
menu: 'ApiKeys',
|
|
6
6
|
crud: 'Manage UserApiKey',
|
|
7
7
|
field:{
|
|
8
8
|
name: "Reference Name",
|
|
@@ -21,7 +21,7 @@ const messages = {
|
|
|
21
21
|
es: {
|
|
22
22
|
userapikey:{
|
|
23
23
|
entity: 'ApiKey',
|
|
24
|
-
menu: '
|
|
24
|
+
menu: 'ApiKeys',
|
|
25
25
|
crud: 'Gestionar ApiKey',
|
|
26
26
|
field:{
|
|
27
27
|
name: "Nombre de referencia",
|
|
@@ -71,7 +71,7 @@ class RoleGqlProvider implements IRoleProvider {
|
|
|
71
71
|
return data.deleteRole
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
async paginate({page= 1, limit= 5, orderBy="", order=
|
|
74
|
+
async paginate({page= 1, limit= 5, orderBy="", order='asc', search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IRole>> {
|
|
75
75
|
const query: string = `query paginateRole($options: PaginateOptions) {
|
|
76
76
|
paginateRole(options: $options) {
|
|
77
77
|
total, page, limit, items{ ${this.gqlFields} }
|
|
@@ -63,7 +63,7 @@ class TenantGqlProvider implements ITenantProvider {
|
|
|
63
63
|
return data.deleteTenant
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
async paginate({page= 1, limit= 5, orderBy="", order=
|
|
66
|
+
async paginate({page= 1, limit= 5, orderBy="", order='asc', search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<ITenant>> {
|
|
67
67
|
const query: string = `query paginateTenant($options: PaginateOptions) {
|
|
68
68
|
paginateTenant(options: $options) {
|
|
69
69
|
total page limit items{ ${this.gqlFields} }
|
|
@@ -59,7 +59,7 @@ class UserApiKeyGqlProvider implements IUserApiKeyProvider {
|
|
|
59
59
|
return data.deleteUserApiKey
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
async paginate({page= 1, limit= 5, orderBy="", order=
|
|
62
|
+
async paginate({page= 1, limit= 5, orderBy="", order='asc', search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IUserApiKey>> {
|
|
63
63
|
const query: string = `query paginateUserApiKey($options: PaginateOptions) {
|
|
64
64
|
paginateUserApiKey(options: $options) {
|
|
65
65
|
total page limit items{ ${this.gqlFields} }
|
|
@@ -60,7 +60,7 @@ class UserGqlProvider implements IUserProvider {
|
|
|
60
60
|
return data.deleteUser
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
async paginate({page= 1, limit= 5, orderBy="", order=
|
|
63
|
+
async paginate({page= 1, limit= 5, orderBy="", order='asc', search = ""}:IDraxPaginateOptions): Promise<IDraxPaginateResult<IUser>> {
|
|
64
64
|
const query: string = `query paginateUser($options: PaginateOptions) {
|
|
65
65
|
paginateUser(options: $options) {
|
|
66
66
|
total page limit items{ ${this.gqlFields} createdAt updatedAt }
|
|
@@ -3,7 +3,7 @@ import type {IHttpClient} from '@drax/common-front'
|
|
|
3
3
|
import type {IAuthProvider} from "../../interfaces/IAuthProvider";
|
|
4
4
|
import type {IAuthUser} from "../../interfaces/IAuthUser";
|
|
5
5
|
import type {ILoginResponse} from "../../interfaces/ILoginResponse";
|
|
6
|
-
import type {IUserRegistration} from "
|
|
6
|
+
import type {IUserRegistration} from "../../interfaces/IUserRegistration";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class AuthRestProvider implements IAuthProvider {
|
|
@@ -31,7 +31,7 @@ class UserApiKeyRestProvider implements IUserApiKeyProvider {
|
|
|
31
31
|
return result
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
async paginate({page= 1, limit= 5, orderBy="", order=
|
|
34
|
+
async paginate({page= 1, limit= 5, orderBy="", order="asc", search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IUserApiKey>> {
|
|
35
35
|
const url = '/api/user-api-keys'
|
|
36
36
|
const params = {page, limit, orderBy, order, search}
|
|
37
37
|
let paginatedUserApiKeys = await this.httpClient.get(url, {params})
|
package/src/system/AuthSystem.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IAuthProvider} from "../interfaces/IAuthProvider";
|
|
2
2
|
import type {IAuthUser} from "../interfaces/IAuthUser";
|
|
3
3
|
import type {ILoginResponse} from "../interfaces/ILoginResponse";
|
|
4
|
-
import type {IUserRegistration} from "
|
|
4
|
+
import type {IUserRegistration} from "../interfaces/IUserRegistration";
|
|
5
5
|
|
|
6
6
|
class AuthSystem implements IAuthProvider {
|
|
7
7
|
|