@drax/identity-front 0.12.7 → 0.13.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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.12.7",
6
+ "version": "0.13.0",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -25,9 +25,9 @@
25
25
  "format": "prettier --write src/"
26
26
  },
27
27
  "dependencies": {
28
- "@drax/common-front": "^0.12.1",
29
- "@drax/crud-share": "^0.12.1",
30
- "@drax/identity-share": "^0.12.1"
28
+ "@drax/common-front": "^0.13.0",
29
+ "@drax/crud-share": "^0.13.0",
30
+ "@drax/identity-share": "^0.13.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@rushstack/eslint-patch": "^1.8.0",
@@ -49,5 +49,5 @@
49
49
  "vite-plugin-dts": "^3.9.1",
50
50
  "vitest": "^1.4.0"
51
51
  },
52
- "gitHead": "2a0174e7fff0e4778ff45b5e1f3752b06164e93a"
52
+ "gitHead": "ff7df3bb96303a056ad2e1ee70dc9dfa4a43ef9e"
53
53
  }
@@ -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=false, search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IRole>> {
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=false, search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<ITenant>> {
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=false, search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IUserApiKey>> {
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=false, search = ""}:IDraxPaginateOptions): Promise<IDraxPaginateResult<IUser>> {
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 "@/interfaces/IUserRegistration";
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=false, search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IUserApiKey>> {
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})
@@ -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 "@/interfaces/IUserRegistration";
4
+ import type {IUserRegistration} from "../interfaces/IUserRegistration";
5
5
 
6
6
  class AuthSystem implements IAuthProvider {
7
7