@drax/identity-front 0.4.0 → 0.5.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/package.json +5 -5
- package/src/interfaces/IRoleProvider.ts +1 -1
- package/src/interfaces/ITenantProvider.ts +1 -1
- package/src/interfaces/IUserApiKeyProvider.ts +1 -1
- package/src/interfaces/IUserProvider.ts +1 -1
- 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/RoleRestProvider.ts +1 -1
- package/src/providers/rest/TenantRestProvider.ts +1 -1
- package/src/providers/rest/UserApiKeyRestProvider.ts +1 -1
- package/src/providers/rest/UserRestProvider.ts +1 -1
- package/src/system/RoleSystem.ts +2 -2
- package/src/system/TenantSystem.ts +1 -1
- package/src/system/UserApiKeySystem.ts +1 -1
- package/src/system/UserSystem.ts +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^0.
|
|
28
|
-
"@drax/
|
|
29
|
-
"@drax/identity-share": "^0.
|
|
27
|
+
"@drax/common-front": "^0.5.1",
|
|
28
|
+
"@drax/crud-share": "^0.5.1",
|
|
29
|
+
"@drax/identity-share": "^0.5.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"vite-plugin-dts": "^3.9.1",
|
|
49
49
|
"vitest": "^1.4.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "6f507c8b52e134f10839fd7698c2466ff65a3d08"
|
|
52
52
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {IRole, IRoleBase} from "@drax/identity-share";
|
|
2
|
-
import type {IDraxCrud} from "@drax/
|
|
2
|
+
import type {IDraxCrud} from "@drax/crud-share";
|
|
3
3
|
|
|
4
4
|
interface IRoleProvider extends IDraxCrud<IRole, IRoleBase, IRoleBase>{
|
|
5
5
|
fetchRole(): Promise<IRole[]>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {ITenant, ITenantBase} from "@drax/identity-share";
|
|
2
|
-
import type {IDraxCrud} from "@drax/
|
|
2
|
+
import type {IDraxCrud} from "@drax/crud-share";
|
|
3
3
|
|
|
4
4
|
interface ITenantProvider extends IDraxCrud<ITenant, ITenantBase, ITenantBase> {
|
|
5
5
|
fetchTenant(): Promise<ITenant[]>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {IUserApiKey, IUserApiKeyBase} from "@drax/identity-share";
|
|
2
|
-
import type {IDraxCrud} from "@drax/
|
|
2
|
+
import type {IDraxCrud} from "@drax/crud-share";
|
|
3
3
|
|
|
4
4
|
interface IUserApiKeyProvider extends IDraxCrud<IUserApiKey, IUserApiKeyBase, IUserApiKeyBase> {
|
|
5
5
|
//findBySecret(): Promise<IUserApiKey[]>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IGqlClient} from '@drax/common-front'
|
|
2
2
|
import type {IRoleProvider} from "../../interfaces/IRoleProvider";
|
|
3
3
|
import type {IRole, IRoleBase} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class RoleGqlProvider implements IRoleProvider {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IGqlClient} from '@drax/common-front'
|
|
2
2
|
import type {ITenantProvider} from "../../interfaces/ITenantProvider";
|
|
3
3
|
import type {ITenant, ITenantBase} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class TenantGqlProvider implements ITenantProvider {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IGqlClient} from '@drax/common-front'
|
|
2
2
|
import type {IUserApiKeyProvider} from "../../interfaces/IUserApiKeyProvider";
|
|
3
3
|
import type {IUserApiKey, IUserApiKeyBase} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
class UserApiKeyGqlProvider implements IUserApiKeyProvider {
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IGqlClient} from '@drax/common-front'
|
|
2
2
|
import type {IUserProvider} from "../../interfaces/IUserProvider";
|
|
3
3
|
import type {IUser, IUserCreate, IUserUpdate} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
class UserGqlProvider implements IUserProvider {
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IHttpClient} from '@drax/common-front'
|
|
2
2
|
import type {IRoleProvider} from "../../interfaces/IRoleProvider.ts";
|
|
3
3
|
import type {IRole, IRoleBase} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
class RoleRestProvider implements IRoleProvider {
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IHttpClient} from '@drax/common-front'
|
|
2
2
|
import type {ITenantProvider} from "../../interfaces/ITenantProvider.ts";
|
|
3
3
|
import type {ITenant, ITenantBase} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
class TenantRestProvider implements ITenantProvider {
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IHttpClient} from '@drax/common-front'
|
|
2
2
|
import type {IUserApiKeyProvider} from "../../interfaces/IUserApiKeyProvider";
|
|
3
3
|
import type {IUserApiKey, IUserApiKeyBase} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class UserApiKeyRestProvider implements IUserApiKeyProvider {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {IHttpClient} from '@drax/common-front'
|
|
2
2
|
import type {IUserProvider} from "../../interfaces/IUserProvider.ts";
|
|
3
3
|
import type {IUser, IUserCreate, IUserUpdate} from "@drax/identity-share";
|
|
4
|
-
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/
|
|
4
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class UserRestProvider implements IUserProvider {
|
package/src/system/RoleSystem.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {IRoleProvider} from "../interfaces/IRoleProvider";
|
|
2
2
|
import type {IRole, IRoleBase} from "@drax/identity-share";
|
|
3
|
-
import type {IDraxPaginateResult} from "@drax/
|
|
3
|
+
import type {IDraxPaginateOptions, IDraxPaginateResult} from "@drax/crud-share";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class RoleSystem implements IRoleProvider {
|
|
@@ -21,7 +21,7 @@ class RoleSystem implements IRoleProvider {
|
|
|
21
21
|
return this._provider.fetchPermissions()
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
async paginate({page= 1, limit= 5, orderBy="", order=false, search = ""}): Promise<IDraxPaginateResult<IRole>> {
|
|
24
|
+
async paginate({page= 1, limit= 5, orderBy="", order=false, search = ""}: IDraxPaginateOptions): Promise<IDraxPaginateResult<IRole>> {
|
|
25
25
|
return this._provider.paginate({page, limit, orderBy, order, search})
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {ITenantProvider} from "../interfaces/ITenantProvider";
|
|
2
2
|
import type {ITenant, ITenantBase} from "@drax/identity-share";
|
|
3
|
-
import type {IDraxPaginateResult} from "@drax/
|
|
3
|
+
import type {IDraxPaginateResult} from "@drax/crud-share";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TenantSystem {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {IUserApiKeyProvider} from "../interfaces/IUserApiKeyProvider";
|
|
2
2
|
import type {IUserApiKey, IUserApiKeyBase} from "@drax/identity-share";
|
|
3
|
-
import type {IDraxPaginateResult} from "@drax/
|
|
3
|
+
import type {IDraxPaginateResult} from "@drax/crud-share";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class UserApiKeySystem {
|
package/src/system/UserSystem.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {IUserProvider} from "../interfaces/IUserProvider";
|
|
2
2
|
import type {IUser, IUserCreate, IUserUpdate} from "@drax/identity-share";
|
|
3
|
-
import type {IDraxPaginateResult} from "@drax/
|
|
3
|
+
import type {IDraxPaginateResult} from "@drax/crud-share";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class UserSystem {
|