b2m-utils 0.0.57 → 0.0.59

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.
@@ -0,0 +1,9 @@
1
+ import Dates from "../Dates";
2
+ import UserPermission from "../UserPermission";
3
+ export type Permission = {
4
+ id: number;
5
+ name: string;
6
+ description?: string;
7
+ UserPermission?: UserPermission[];
8
+ } & Dates;
9
+ export default Permission;
@@ -1,5 +1,6 @@
1
1
  import Dates from "../Dates";
2
2
  import DomainUser from "../DomainUser";
3
+ import UserPermission from "../UserPermission";
3
4
  export type User = {
4
5
  id?: number;
5
6
  email: string;
@@ -8,5 +9,6 @@ export type User = {
8
9
  phone?: string;
9
10
  photo?: string;
10
11
  DomainUser?: DomainUser[];
12
+ UserPermission?: UserPermission[];
11
13
  } & Dates;
12
14
  export default User;
@@ -0,0 +1,11 @@
1
+ import Dates from "../Dates";
2
+ import Permission from "../Permission";
3
+ import User from "../User";
4
+ export type UserPermission = {
5
+ id: number;
6
+ userId: number;
7
+ permissionId: number;
8
+ permission?: Permission;
9
+ user?: User;
10
+ } & Dates;
11
+ export default UserPermission;
@@ -50,6 +50,8 @@ export * from './Notification';
50
50
  export { default as Notification } from './Notification';
51
51
  export * from './NotificationType';
52
52
  export { default as NotificationType } from './NotificationType';
53
+ export * from './Permission';
54
+ export { default as Permission } from './Permission';
53
55
  export * from './ProcessFreightForwarder';
54
56
  export { default as ProcessFreightForwarder } from './ProcessFreightForwarder';
55
57
  export * from './ShipmentType';
@@ -80,3 +82,5 @@ export * from './TrackProcessTransport';
80
82
  export { default as TrackProcessTransport } from './TrackProcessTransport';
81
83
  export * from './User';
82
84
  export { default as User } from './User';
85
+ export * from './UserPermission';
86
+ export { default as UserPermission } from './UserPermission';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b2m-utils",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "description": "B2M Utils",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.esm.js",