@acontplus/core 1.0.13 → 1.0.15

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/README.md CHANGED
@@ -60,7 +60,7 @@ const environment: Environment = {
60
60
  tokenKey: 'auth_token',
61
61
  refreshTokenKey: 'refresh_token',
62
62
  clientId: 'your-client-id',
63
- loginRoute: '/login'
63
+ loginRoute: '/login',
64
64
  };
65
65
  ```
66
66
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@acontplus/core",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Core library for Acontplus projects, providing essential utilities and functionalities.",
5
5
  "dependencies": {
6
- "@acontplus/utils": "^1.0.6",
6
+ "@acontplus/utils": "^1.0.7",
7
7
  "tslib": "^2.8.1",
8
8
  "uuid": "^13.0.0"
9
9
  },
package/src/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export * from './lib/models';
5
5
  export * from './lib/ports';
6
6
  export * from './lib/pricing';
7
7
  export * from './lib/types';
8
+ export * from './lib/use-cases';
8
9
  export * from './lib/value-objects';
package/src/index.js CHANGED
@@ -5,5 +5,6 @@ export * from './lib/models';
5
5
  export * from './lib/ports';
6
6
  export * from './lib/pricing';
7
7
  export * from './lib/types';
8
+ export * from './lib/use-cases';
8
9
  export * from './lib/value-objects';
9
10
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export * from './api-response';
2
- export * from './auth';
2
+ export * from './jwt';
3
3
  export * from './base-entity';
4
4
  export * from './paginated-result';
5
5
  export * from './pagination-params';
@@ -1,5 +1,5 @@
1
1
  export * from './api-response';
2
- export * from './auth';
2
+ export * from './jwt';
3
3
  export * from './base-entity';
4
4
  export * from './paginated-result';
5
5
  export * from './pagination-params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,14 @@
1
+ export interface DecodedToken {
2
+ exp: number;
3
+ iat: number;
4
+ sub: string;
5
+ iss?: string;
6
+ aud?: string;
7
+ email: string;
8
+ name: string;
9
+ displayName?: string;
10
+ roles?: string[];
11
+ permissions?: string[];
12
+ tenantId?: string;
13
+ companyId?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=jwt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/models/jwt.ts"],"names":[],"mappings":""}
@@ -1,4 +1,12 @@
1
1
  export interface UserData {
2
2
  email: string;
3
3
  displayName: string;
4
+ name?: string;
5
+ roles?: string[];
6
+ permissions?: string[];
7
+ tenantId?: string;
8
+ companyId?: string;
9
+ avatarUrl?: string;
10
+ locale?: string;
11
+ timezone?: string;
4
12
  }
@@ -0,0 +1 @@
1
+ export * from './use-case';
@@ -0,0 +1,2 @@
1
+ export * from './use-case';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/use-cases/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface UseCase<TRequest = void, TResponse = void> {
2
+ execute(request: TRequest): TResponse | Promise<TResponse>;
3
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=use-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-case.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/use-cases/use-case.ts"],"names":[],"mappings":""}