@explorins/pers-shared 2.1.31 → 2.1.33

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.
Files changed (33) hide show
  1. package/dist/cjs/shared-lib/dto/auth.dto.d.ts +4 -3
  2. package/dist/cjs/shared-lib/dto/auth.dto.d.ts.map +1 -1
  3. package/dist/cjs/shared-lib/dto/auth.dto.js +26 -14
  4. package/dist/cjs/shared-lib/dto/auth.dto.js.map +1 -1
  5. package/dist/cjs/shared-lib/types-interfaces/dto-interfaces.d.ts +128 -0
  6. package/dist/cjs/shared-lib/types-interfaces/dto-interfaces.d.ts.map +1 -0
  7. package/dist/cjs/shared-lib/types-interfaces/dto-interfaces.js +8 -0
  8. package/dist/cjs/shared-lib/types-interfaces/dto-interfaces.js.map +1 -0
  9. package/dist/cjs/shared-lib/types-interfaces/error-interfaces.d.ts +84 -0
  10. package/dist/cjs/shared-lib/types-interfaces/error-interfaces.d.ts.map +1 -0
  11. package/dist/cjs/shared-lib/types-interfaces/error-interfaces.js +8 -0
  12. package/dist/cjs/shared-lib/types-interfaces/error-interfaces.js.map +1 -0
  13. package/dist/cjs/shared-lib/types-interfaces/index.d.ts +7 -0
  14. package/dist/cjs/shared-lib/types-interfaces/index.d.ts.map +1 -0
  15. package/dist/cjs/shared-lib/types-interfaces/index.js +23 -0
  16. package/dist/cjs/shared-lib/types-interfaces/index.js.map +1 -0
  17. package/dist/esm/shared-lib/dto/auth.dto.d.ts +4 -3
  18. package/dist/esm/shared-lib/dto/auth.dto.d.ts.map +1 -1
  19. package/dist/esm/shared-lib/dto/auth.dto.js +20 -10
  20. package/dist/esm/shared-lib/dto/auth.dto.js.map +1 -1
  21. package/dist/esm/shared-lib/types-interfaces/dto-interfaces.d.ts +128 -0
  22. package/dist/esm/shared-lib/types-interfaces/dto-interfaces.d.ts.map +1 -0
  23. package/dist/esm/shared-lib/types-interfaces/dto-interfaces.js +7 -0
  24. package/dist/esm/shared-lib/types-interfaces/dto-interfaces.js.map +1 -0
  25. package/dist/esm/shared-lib/types-interfaces/error-interfaces.d.ts +84 -0
  26. package/dist/esm/shared-lib/types-interfaces/error-interfaces.d.ts.map +1 -0
  27. package/dist/esm/shared-lib/types-interfaces/error-interfaces.js +7 -0
  28. package/dist/esm/shared-lib/types-interfaces/error-interfaces.js.map +1 -0
  29. package/dist/esm/shared-lib/types-interfaces/index.d.ts +7 -0
  30. package/dist/esm/shared-lib/types-interfaces/index.d.ts.map +1 -0
  31. package/dist/esm/shared-lib/types-interfaces/index.js +7 -0
  32. package/dist/esm/shared-lib/types-interfaces/index.js.map +1 -0
  33. package/package.json +1 -1
@@ -2,20 +2,21 @@ import { UserDTO } from "./user.dto";
2
2
  import { BusinessDTO } from "./business";
3
3
  import { AccountOwnerType } from "../enum";
4
4
  import { AdminDTO } from "./admin";
5
- export declare class AuthRequestDTO {
5
+ export declare class SessionAuthRequestDTO {
6
6
  authToken: string;
7
7
  authType?: AccountOwnerType;
8
8
  }
9
9
  export declare class RefreshTokenRequestDTO {
10
10
  refreshToken: string;
11
11
  }
12
- export declare class AuthTokenResponseDTO {
12
+ export declare class SessionAuthResponseDTO {
13
13
  accessToken: string;
14
14
  refreshToken: string;
15
15
  }
16
- export declare class SessionAuthResponseDTO extends AuthTokenResponseDTO {
16
+ export declare class SessionAuthContextResponseDTO extends SessionAuthResponseDTO {
17
17
  admin?: AdminDTO;
18
18
  user?: UserDTO;
19
19
  business?: BusinessDTO;
20
+ authType: AccountOwnerType;
20
21
  }
21
22
  //# sourceMappingURL=auth.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.dto.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/dto/auth.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAG,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OA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k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SessionAuthResponseDTO = exports.AuthTokenResponseDTO = exports.RefreshTokenRequestDTO = exports.AuthRequestDTO = void 0;
12
+ exports.SessionAuthContextResponseDTO = exports.SessionAuthResponseDTO = exports.RefreshTokenRequestDTO = exports.SessionAuthRequestDTO = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const user_dto_1 = require("./user.dto");
16
16
  const business_1 = require("./business");
17
17
  const enum_1 = require("../enum");
18
18
  const admin_1 = require("./admin");
19
- class AuthRequestDTO {
19
+ class SessionAuthRequestDTO {
20
20
  authToken = '';
21
21
  // @IsEnum(AccountOwnerType)
22
22
  authType = enum_1.AccountOwnerType.USER;
23
23
  }
24
- exports.AuthRequestDTO = AuthRequestDTO;
24
+ exports.SessionAuthRequestDTO = SessionAuthRequestDTO;
25
25
  __decorate([
26
26
  (0, swagger_1.ApiProperty)({
27
27
  description: 'Authentication token from WebAuthn provider (e.g., PERS Signer API)',
@@ -31,7 +31,7 @@ __decorate([
31
31
  (0, class_validator_1.IsNotEmpty)(),
32
32
  (0, class_validator_1.IsString)(),
33
33
  __metadata("design:type", String)
34
- ], AuthRequestDTO.prototype, "authToken", void 0);
34
+ ], SessionAuthRequestDTO.prototype, "authToken", void 0);
35
35
  __decorate([
36
36
  (0, swagger_1.ApiPropertyOptional)({
37
37
  description: 'Authentication context type - explicitly declares intent for admin vs user auth',
@@ -41,7 +41,7 @@ __decorate([
41
41
  // @IsEnum(AccountOwnerType)
42
42
  ,
43
43
  __metadata("design:type", String)
44
- ], AuthRequestDTO.prototype, "authType", void 0);
44
+ ], SessionAuthRequestDTO.prototype, "authType", void 0);
45
45
  class RefreshTokenRequestDTO {
46
46
  refreshToken = '';
47
47
  }
@@ -55,11 +55,11 @@ __decorate([
55
55
  (0, class_validator_1.IsString)(),
56
56
  __metadata("design:type", String)
57
57
  ], RefreshTokenRequestDTO.prototype, "refreshToken", void 0);
58
- class AuthTokenResponseDTO {
58
+ class SessionAuthResponseDTO {
59
59
  accessToken = '';
60
60
  refreshToken = '';
61
61
  }
62
- exports.AuthTokenResponseDTO = AuthTokenResponseDTO;
62
+ exports.SessionAuthResponseDTO = SessionAuthResponseDTO;
63
63
  __decorate([
64
64
  (0, swagger_1.ApiProperty)({
65
65
  description: 'JWT access token this token is used to authenticate the user, by default it expires in 15 minutes, and it should be sent in the Authorization header as Bearer token.',
@@ -67,7 +67,7 @@ __decorate([
67
67
  (0, class_validator_1.IsNotEmpty)(),
68
68
  (0, class_validator_1.IsString)(),
69
69
  __metadata("design:type", String)
70
- ], AuthTokenResponseDTO.prototype, "accessToken", void 0);
70
+ ], SessionAuthResponseDTO.prototype, "accessToken", void 0);
71
71
  __decorate([
72
72
  (0, swagger_1.ApiProperty)({
73
73
  description: 'JWT refresh token this token is used to get a new access token when the current one expires. It is valid for 1 day.',
@@ -75,32 +75,44 @@ __decorate([
75
75
  (0, class_validator_1.IsNotEmpty)(),
76
76
  (0, class_validator_1.IsString)(),
77
77
  __metadata("design:type", String)
78
- ], AuthTokenResponseDTO.prototype, "refreshToken", void 0);
79
- class SessionAuthResponseDTO extends AuthTokenResponseDTO {
78
+ ], SessionAuthResponseDTO.prototype, "refreshToken", void 0);
79
+ class SessionAuthContextResponseDTO extends SessionAuthResponseDTO {
80
80
  admin;
81
81
  user;
82
82
  business;
83
+ // @IsEnum(AccountOwnerType)
84
+ authType = enum_1.AccountOwnerType.USER;
83
85
  }
84
- exports.SessionAuthResponseDTO = SessionAuthResponseDTO;
86
+ exports.SessionAuthContextResponseDTO = SessionAuthContextResponseDTO;
85
87
  __decorate([
86
88
  (0, swagger_1.ApiPropertyOptional)({
87
89
  description: 'Admin (present if admin authentication)',
88
90
  type: () => admin_1.AdminDTO
89
91
  }),
90
92
  __metadata("design:type", admin_1.AdminDTO)
91
- ], SessionAuthResponseDTO.prototype, "admin", void 0);
93
+ ], SessionAuthContextResponseDTO.prototype, "admin", void 0);
92
94
  __decorate([
93
95
  (0, swagger_1.ApiPropertyOptional)({
94
96
  description: 'User (present if user authentication)',
95
97
  type: () => user_dto_1.UserDTO
96
98
  }),
97
99
  __metadata("design:type", user_dto_1.UserDTO)
98
- ], SessionAuthResponseDTO.prototype, "user", void 0);
100
+ ], SessionAuthContextResponseDTO.prototype, "user", void 0);
99
101
  __decorate([
100
102
  (0, swagger_1.ApiPropertyOptional)({
101
103
  description: 'Business (present if business authentication)',
102
104
  type: () => business_1.BusinessDTO
103
105
  }),
104
106
  __metadata("design:type", business_1.BusinessDTO)
105
- ], SessionAuthResponseDTO.prototype, "business", void 0);
107
+ ], SessionAuthContextResponseDTO.prototype, "business", void 0);
108
+ __decorate([
109
+ (0, swagger_1.ApiProperty)({
110
+ description: 'Authentication context type - explicitly declares intent for admin vs user auth',
111
+ // type: AccountOwnerType,
112
+ enum: enum_1.AccountOwnerType,
113
+ })
114
+ // @IsEnum(AccountOwnerType)
115
+ ,
116
+ __metadata("design:type", String)
117
+ ], SessionAuthContextResponseDTO.prototype, "authType", void 0);
106
118
  //# sourceMappingURL=auth.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../../../src/shared-lib/dto/auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAuD;AACvD,yCAAqC;AACrC,yCAA0C;AAC1C,kCAA2C;AAC3C,mCAAmC;AAEnC,MAAa,cAAc;IAQvB,SAAS,GAAW,EAAE,CAAC;IAQvB,AADA,4BAA4B;IAC5B,QAAQ,GAAsB,uBAAgB,CAAC,IAAI,CAAC;CACvD;AAjBD,wCAiBC;AATG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qEAAqE;QAClF,OAAO,EAAE,yCAAyC;QAClD,IAAI,EAAE,MAAM;KACf,CAAC;IACD,IA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C;IACD,IAAA,4BAAU,GAAE;IAChB,IAAA,0BAAQ,GAAE;;4DACe;AAI9B,MAAa,6BAA8B,SAAQ,sBAAsB;IAKrE,KAAK,CAAY;IAMjB,IAAI,CAAW;IAMf,QAAQ,CAAe;IAQvB,AADA,4BAA4B;IAC5B,QAAQ,GAAqB,uBAAgB,CAAC,IAAI,CAAC;CACtD;AA1BD,sEA0BC;AArBG;IAJC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,GAAG,EAAE,CAAC,gBAAQ;KACvB,CAAC;8BACM,gBAAQ;4DAAC;AAMjB;IAJC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAO;KACtB,CAAC;8BACK,kBAAO;2DAAC;AAMf;IAJC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAW;KAC1B,CAAC;8BACS,sBAAW;+DAAC;AAQvB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,iFAAiF;QAC9F,0BAA0B;QAC1B,IAAI,EAAE,uBAAgB;KACzB,CAAC;IACF,4BAA4B;;;+DACuB"}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Pure TypeScript interfaces for DTOs
3
+ * These interfaces match the structure of the DTO classes but without decorators
4
+ * Safe for frontend consumption without NestJS dependencies
5
+ */
6
+ import { Web3TransactionType } from "../enum/transaction-type.enum";
7
+ import { TransactionStatus } from "../enum/transaction-status.enum";
8
+ import { TransactionTriggerProcessType } from "../enum/transaction-trigger-process-type.enum";
9
+ import type { NativeTokenType } from "../types/native-token.type";
10
+ import { AccountOwnerType } from "../enum";
11
+ import { TransactionCompleteFields } from "../interfaces/transaction.interface";
12
+ export interface ITransactionDTO extends TransactionCompleteFields {
13
+ amount: number;
14
+ id: string;
15
+ tokenAddress: string;
16
+ contractTokenId: string | null;
17
+ tokenType: NativeTokenType;
18
+ transactionType: Web3TransactionType;
19
+ senderAddress: string;
20
+ recipientAddress: string;
21
+ transactionHash: string;
22
+ transactionStatus: TransactionStatus;
23
+ transactionTriggerProcessType: TransactionTriggerProcessType;
24
+ tokenDecimals: number;
25
+ tokenSymbol: string;
26
+ createDate: Date;
27
+ updateDate: Date;
28
+ tenantId: string;
29
+ chainId: number;
30
+ balance?: number;
31
+ ownerId: string;
32
+ ownerType: AccountOwnerType;
33
+ fee?: number;
34
+ }
35
+ export interface ITransactionRequestDTO {
36
+ amount: number;
37
+ tokenAddress: string;
38
+ senderAddress?: string;
39
+ recipientAddress?: string;
40
+ transactionType: Web3TransactionType;
41
+ transactionTriggerProcessType: TransactionTriggerProcessType;
42
+ tokenDecimals: number;
43
+ tokenSymbol: string;
44
+ signedTransactionData: string;
45
+ encryptedNote?: string;
46
+ encryptedTransactionDescription?: string;
47
+ encryptedRecipientNote?: string;
48
+ chainId: number;
49
+ }
50
+ export interface ITransactionPaginationRequestDTO {
51
+ userId?: string;
52
+ walletAddress?: string;
53
+ transactionType?: Web3TransactionType;
54
+ tokenAddress?: string;
55
+ senderAddress?: string;
56
+ recipientAddress?: string;
57
+ transactionStatus?: TransactionStatus;
58
+ fromAmount?: number;
59
+ toAmount?: number;
60
+ page?: number;
61
+ limit?: number;
62
+ sortBy?: string;
63
+ sortDirection?: 'asc' | 'desc';
64
+ }
65
+ export interface IPaginationResponseDTO<T> {
66
+ data: T[];
67
+ metadata: {
68
+ page: number;
69
+ limit: number;
70
+ total: number;
71
+ totalPages: number;
72
+ hasNextPage: boolean;
73
+ hasPreviousPage: boolean;
74
+ };
75
+ }
76
+ export interface IAuthRequestDTO {
77
+ firebaseToken: string;
78
+ walletAddress?: string;
79
+ }
80
+ export interface IAuthResponseDTO {
81
+ accessToken: string;
82
+ refreshToken: string;
83
+ expiresIn: number;
84
+ tokenType: string;
85
+ user?: {
86
+ id: string;
87
+ email?: string;
88
+ walletAddress?: string;
89
+ };
90
+ }
91
+ export interface IUserDTO {
92
+ id: string;
93
+ email?: string;
94
+ walletAddress: string;
95
+ createDate: Date;
96
+ updateDate: Date;
97
+ tenantId: string;
98
+ }
99
+ export interface IAdminDTO {
100
+ id: string;
101
+ email: string;
102
+ createDate: Date;
103
+ updateDate: Date;
104
+ tenantId?: string;
105
+ }
106
+ export interface IAdminCreateRequestDTO {
107
+ email: string;
108
+ password?: string;
109
+ tenantId: string;
110
+ }
111
+ export interface IErrorResponseDTO {
112
+ error: string;
113
+ message: string;
114
+ statusCode: number;
115
+ timestamp: string;
116
+ path: string;
117
+ correlationId?: string;
118
+ details?: any;
119
+ classification?: string;
120
+ userMessage?: string;
121
+ metadata?: {
122
+ domain?: string;
123
+ operation?: string;
124
+ resource?: string;
125
+ [key: string]: any;
126
+ };
127
+ }
128
+ //# sourceMappingURL=dto-interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto-interfaces.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/dto-interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAGhF,MAAM,WAAW,eAAgB,SAAQ,yBAAyB;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,mBAAmB,CAAC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U,EAAE,IAAI,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;CACL"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Pure TypeScript interfaces for DTOs
4
+ * These interfaces match the structure of the DTO classes but without decorators
5
+ * Safe for frontend consumption without NestJS dependencies
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=dto-interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto-interfaces.js","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/dto-interfaces.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Pure TypeScript interfaces for Error classes
3
+ * These interfaces match the structure of the error classes but without decorators
4
+ * Safe for frontend consumption without NestJS dependencies
5
+ */
6
+ export interface IBusinessLogicError {
7
+ name: string;
8
+ message: string;
9
+ errorCode: string;
10
+ statusCode: number;
11
+ details?: any;
12
+ correlationId?: string;
13
+ timestamp: Date;
14
+ classification: 'PUBLIC' | 'INTERNAL' | 'SENSITIVE';
15
+ domain: string;
16
+ operation?: string;
17
+ resource?: string;
18
+ userMessage: string;
19
+ metadata?: Record<string, any>;
20
+ }
21
+ export interface IAuthenticationError extends IBusinessLogicError {
22
+ domain: 'AUTHENTICATION';
23
+ }
24
+ export interface ITokenExpiredError extends IAuthenticationError {
25
+ errorCode: 'TOKEN_EXPIRED';
26
+ userMessage: 'Your session has expired. Please sign in again.';
27
+ }
28
+ export interface IInvalidTokenError extends IAuthenticationError {
29
+ errorCode: 'INVALID_TOKEN';
30
+ userMessage: 'Invalid authentication token. Please sign in again.';
31
+ }
32
+ export interface IJWTValidationError extends IAuthenticationError {
33
+ errorCode: 'JWT_VALIDATION_FAILED';
34
+ userMessage: 'Authentication failed. Please sign in again.';
35
+ }
36
+ export interface IFirebaseTokenExpiredError extends IAuthenticationError {
37
+ errorCode: 'FIREBASE_TOKEN_EXPIRED';
38
+ userMessage: 'Your Firebase token has expired. Please sign in again.';
39
+ }
40
+ export interface IFirebaseInvalidTokenError extends IAuthenticationError {
41
+ errorCode: 'FIREBASE_INVALID_TOKEN';
42
+ userMessage: 'Invalid Firebase token. Please sign in again.';
43
+ }
44
+ export interface IUserError extends IBusinessLogicError {
45
+ domain: 'USER';
46
+ }
47
+ export interface IUserNotFoundError extends IUserError {
48
+ errorCode: 'USER_NOT_FOUND';
49
+ userMessage: 'User not found.';
50
+ }
51
+ export interface IUserValidationError extends IUserError {
52
+ errorCode: 'USER_VALIDATION_FAILED';
53
+ userMessage: 'User data validation failed.';
54
+ }
55
+ export interface ITransactionError extends IBusinessLogicError {
56
+ domain: 'TRANSACTION';
57
+ }
58
+ export interface ITransactionNotFoundError extends ITransactionError {
59
+ errorCode: 'TRANSACTION_NOT_FOUND';
60
+ userMessage: 'Transaction not found.';
61
+ }
62
+ export interface ITransactionValidationError extends ITransactionError {
63
+ errorCode: 'TRANSACTION_VALIDATION_FAILED';
64
+ userMessage: 'Transaction data validation failed.';
65
+ }
66
+ export interface IValidationError extends IBusinessLogicError {
67
+ domain: 'VALIDATION';
68
+ }
69
+ export interface IInputValidationError extends IValidationError {
70
+ errorCode: 'INPUT_VALIDATION_FAILED';
71
+ userMessage: 'Invalid input data provided.';
72
+ }
73
+ export interface ITechnicalError extends IBusinessLogicError {
74
+ domain: 'TECHNICAL';
75
+ }
76
+ export interface IDatabaseConnectionError extends ITechnicalError {
77
+ errorCode: 'DATABASE_CONNECTION_FAILED';
78
+ userMessage: 'A technical error occurred. Please try again later.';
79
+ }
80
+ export interface IExternalServiceError extends ITechnicalError {
81
+ errorCode: 'EXTERNAL_SERVICE_UNAVAILABLE';
82
+ userMessage: 'External service is temporarily unavailable. Please try again later.';
83
+ }
84
+ //# sourceMappingURL=error-interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-interfaces.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/error-interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAGD,MAAM,WAAW,oBAAqB,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WAAW,gBAAiB,SAAQ,mBAAmB;IACzD,MAAM,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC3D,SAAS,EAAE,yBAAyB,CAAC;IACrC,WAAW,EAAE,8BAA8B,CAAC;CAC/C;AAGD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,MAAM,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC7D,SAAS,EAAE,4BAA4B,CAAC;IACxC,WAAW,EAAE,qDAAqD,CAAC;CACtE;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D,SAAS,EAAE,8BAA8B,CAAC;IAC1C,WAAW,EAAE,sEAAsE,CAAC;CACvF"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Pure TypeScript interfaces for Error classes
4
+ * These interfaces match the structure of the error classes but without decorators
5
+ * Safe for frontend consumption without NestJS dependencies
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=error-interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-interfaces.js","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/error-interfaces.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Pure TypeScript interfaces entry point
3
+ * Exports decorator-free interfaces that match DTO/Error class structures
4
+ */
5
+ export * from './dto-interfaces';
6
+ export * from './error-interfaces';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /**
3
+ * Pure TypeScript interfaces entry point
4
+ * Exports decorator-free interfaces that match DTO/Error class structures
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ __exportStar(require("./dto-interfaces"), exports);
22
+ __exportStar(require("./error-interfaces"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,qDAAmC"}
@@ -2,20 +2,21 @@ import { UserDTO } from "./user.dto";
2
2
  import { BusinessDTO } from "./business";
3
3
  import { AccountOwnerType } from "../enum";
4
4
  import { AdminDTO } from "./admin";
5
- export declare class AuthRequestDTO {
5
+ export declare class SessionAuthRequestDTO {
6
6
  authToken: string;
7
7
  authType?: AccountOwnerType;
8
8
  }
9
9
  export declare class RefreshTokenRequestDTO {
10
10
  refreshToken: string;
11
11
  }
12
- export declare class AuthTokenResponseDTO {
12
+ export declare class SessionAuthResponseDTO {
13
13
  accessToken: string;
14
14
  refreshToken: string;
15
15
  }
16
- export declare class SessionAuthResponseDTO extends AuthTokenResponseDTO {
16
+ export declare class SessionAuthContextResponseDTO extends SessionAuthResponseDTO {
17
17
  admin?: AdminDTO;
18
18
  user?: UserDTO;
19
19
  business?: BusinessDTO;
20
+ authType: AccountOwnerType;
20
21
  }
21
22
  //# sourceMappingURL=auth.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.dto.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/dto/auth.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAG,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,qBAAa,cAAc;IAQvB,SAAS,EAAE,MAAM,CAAM;IAQvB,QAAQ,CAAC,EAAE,gBAAgB,CAAyB;CACvD;AAGD,qBAAa,sBAAsB;IAO/B,YAAY,EAAE,MAAM,CAAM;CAC7B;AAED,qBAAa,oBAAoB;IAQ7B,WAAW,EAAE,MAAM,CAAM;IAQzB,YAAY,EAAE,MAAM,CAAM;CAG7B;AAED,qBAAa,sBAAuB,SAAQ,oBAAoB;IAK5D,KAAK,CAAC,EAAE,QAAQ,CAAC;IAMjB,IAAI,CAAC,EAAE,OAAO,CAAC;IAMf,QAAQ,CAAC,EAAE,WAAW,CAAC;CAC1B"}
1
+ {"version":3,"file":"auth.dto.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/dto/auth.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAG,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,qBAAa,qBAAqB;IAQ9B,SAAS,EAAE,MAAM,CAAM;IAQvB,QAAQ,CAAC,EAAE,gBAAgB,CAAyB;CACvD;AAGD,qBAAa,sBAAsB;IAO/B,YAAY,EAAE,MAAM,CAAM;CAC7B;AAGD,qBAAa,sBAAsB;IAQ/B,WAAW,EAAE,MAAM,CAAM;IAQzB,YAAY,EAAE,MAAM,CAAM;CAEzB;AAEL,qBAAa,6BAA8B,SAAQ,sBAAsB;IAKrE,KAAK,CAAC,EAAE,QAAQ,CAAC;IAMjB,IAAI,CAAC,EAAE,OAAO,CAAC;IAMf,QAAQ,CAAC,EAAE,WAAW,CAAC;IAQvB,QAAQ,EAAE,gBAAgB,CAAyB;CACtD"}
@@ -10,7 +10,7 @@ import { UserDTO } from "./user.dto";
10
10
  import { BusinessDTO } from "./business";
11
11
  import { AccountOwnerType } from "../enum";
12
12
  import { AdminDTO } from "./admin";
13
- export class AuthRequestDTO {
13
+ export class SessionAuthRequestDTO {
14
14
  authToken = '';
15
15
  // @IsEnum(AccountOwnerType)
16
16
  authType = AccountOwnerType.USER;
@@ -23,7 +23,7 @@ __decorate([
23
23
  }),
24
24
  IsNotEmpty(),
25
25
  IsString()
26
- ], AuthRequestDTO.prototype, "authToken", void 0);
26
+ ], SessionAuthRequestDTO.prototype, "authToken", void 0);
27
27
  __decorate([
28
28
  ApiPropertyOptional({
29
29
  description: 'Authentication context type - explicitly declares intent for admin vs user auth',
@@ -31,7 +31,7 @@ __decorate([
31
31
  enum: AccountOwnerType,
32
32
  })
33
33
  // @IsEnum(AccountOwnerType)
34
- ], AuthRequestDTO.prototype, "authType", void 0);
34
+ ], SessionAuthRequestDTO.prototype, "authType", void 0);
35
35
  export class RefreshTokenRequestDTO {
36
36
  refreshToken = '';
37
37
  }
@@ -43,7 +43,7 @@ __decorate([
43
43
  IsNotEmpty(),
44
44
  IsString()
45
45
  ], RefreshTokenRequestDTO.prototype, "refreshToken", void 0);
46
- export class AuthTokenResponseDTO {
46
+ export class SessionAuthResponseDTO {
47
47
  accessToken = '';
48
48
  refreshToken = '';
49
49
  }
@@ -53,35 +53,45 @@ __decorate([
53
53
  }),
54
54
  IsNotEmpty(),
55
55
  IsString()
56
- ], AuthTokenResponseDTO.prototype, "accessToken", void 0);
56
+ ], SessionAuthResponseDTO.prototype, "accessToken", void 0);
57
57
  __decorate([
58
58
  ApiProperty({
59
59
  description: 'JWT refresh token this token is used to get a new access token when the current one expires. It is valid for 1 day.',
60
60
  }),
61
61
  IsNotEmpty(),
62
62
  IsString()
63
- ], AuthTokenResponseDTO.prototype, "refreshToken", void 0);
64
- export class SessionAuthResponseDTO extends AuthTokenResponseDTO {
63
+ ], SessionAuthResponseDTO.prototype, "refreshToken", void 0);
64
+ export class SessionAuthContextResponseDTO extends SessionAuthResponseDTO {
65
65
  admin;
66
66
  user;
67
67
  business;
68
+ // @IsEnum(AccountOwnerType)
69
+ authType = AccountOwnerType.USER;
68
70
  }
69
71
  __decorate([
70
72
  ApiPropertyOptional({
71
73
  description: 'Admin (present if admin authentication)',
72
74
  type: () => AdminDTO
73
75
  })
74
- ], SessionAuthResponseDTO.prototype, "admin", void 0);
76
+ ], SessionAuthContextResponseDTO.prototype, "admin", void 0);
75
77
  __decorate([
76
78
  ApiPropertyOptional({
77
79
  description: 'User (present if user authentication)',
78
80
  type: () => UserDTO
79
81
  })
80
- ], SessionAuthResponseDTO.prototype, "user", void 0);
82
+ ], SessionAuthContextResponseDTO.prototype, "user", void 0);
81
83
  __decorate([
82
84
  ApiPropertyOptional({
83
85
  description: 'Business (present if business authentication)',
84
86
  type: () => BusinessDTO
85
87
  })
86
- ], SessionAuthResponseDTO.prototype, "business", void 0);
88
+ ], SessionAuthContextResponseDTO.prototype, "business", void 0);
89
+ __decorate([
90
+ ApiProperty({
91
+ description: 'Authentication context type - explicitly declares intent for admin vs user auth',
92
+ // type: AccountOwnerType,
93
+ enum: AccountOwnerType,
94
+ })
95
+ // @IsEnum(AccountOwnerType)
96
+ ], SessionAuthContextResponseDTO.prototype, "authType", void 0);
87
97
  //# sourceMappingURL=auth.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.dto.js","sourceRoot":"","sources":["../../../../src/shared-lib/dto/auth.dto.ts"],"names":[],"mappings":";;;;;;A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
2
+ * Pure TypeScript interfaces for DTOs
3
+ * These interfaces match the structure of the DTO classes but without decorators
4
+ * Safe for frontend consumption without NestJS dependencies
5
+ */
6
+ import { Web3TransactionType } from "../enum/transaction-type.enum";
7
+ import { TransactionStatus } from "../enum/transaction-status.enum";
8
+ import { TransactionTriggerProcessType } from "../enum/transaction-trigger-process-type.enum";
9
+ import type { NativeTokenType } from "../types/native-token.type";
10
+ import { AccountOwnerType } from "../enum";
11
+ import { TransactionCompleteFields } from "../interfaces/transaction.interface";
12
+ export interface ITransactionDTO extends TransactionCompleteFields {
13
+ amount: number;
14
+ id: string;
15
+ tokenAddress: string;
16
+ contractTokenId: string | null;
17
+ tokenType: NativeTokenType;
18
+ transactionType: Web3TransactionType;
19
+ senderAddress: string;
20
+ recipientAddress: string;
21
+ transactionHash: string;
22
+ transactionStatus: TransactionStatus;
23
+ transactionTriggerProcessType: TransactionTriggerProcessType;
24
+ tokenDecimals: number;
25
+ tokenSymbol: string;
26
+ createDate: Date;
27
+ updateDate: Date;
28
+ tenantId: string;
29
+ chainId: number;
30
+ balance?: number;
31
+ ownerId: string;
32
+ ownerType: AccountOwnerType;
33
+ fee?: number;
34
+ }
35
+ export interface ITransactionRequestDTO {
36
+ amount: number;
37
+ tokenAddress: string;
38
+ senderAddress?: string;
39
+ recipientAddress?: string;
40
+ transactionType: Web3TransactionType;
41
+ transactionTriggerProcessType: TransactionTriggerProcessType;
42
+ tokenDecimals: number;
43
+ tokenSymbol: string;
44
+ signedTransactionData: string;
45
+ encryptedNote?: string;
46
+ encryptedTransactionDescription?: string;
47
+ encryptedRecipientNote?: string;
48
+ chainId: number;
49
+ }
50
+ export interface ITransactionPaginationRequestDTO {
51
+ userId?: string;
52
+ walletAddress?: string;
53
+ transactionType?: Web3TransactionType;
54
+ tokenAddress?: string;
55
+ senderAddress?: string;
56
+ recipientAddress?: string;
57
+ transactionStatus?: TransactionStatus;
58
+ fromAmount?: number;
59
+ toAmount?: number;
60
+ page?: number;
61
+ limit?: number;
62
+ sortBy?: string;
63
+ sortDirection?: 'asc' | 'desc';
64
+ }
65
+ export interface IPaginationResponseDTO<T> {
66
+ data: T[];
67
+ metadata: {
68
+ page: number;
69
+ limit: number;
70
+ total: number;
71
+ totalPages: number;
72
+ hasNextPage: boolean;
73
+ hasPreviousPage: boolean;
74
+ };
75
+ }
76
+ export interface IAuthRequestDTO {
77
+ firebaseToken: string;
78
+ walletAddress?: string;
79
+ }
80
+ export interface IAuthResponseDTO {
81
+ accessToken: string;
82
+ refreshToken: string;
83
+ expiresIn: number;
84
+ tokenType: string;
85
+ user?: {
86
+ id: string;
87
+ email?: string;
88
+ walletAddress?: string;
89
+ };
90
+ }
91
+ export interface IUserDTO {
92
+ id: string;
93
+ email?: string;
94
+ walletAddress: string;
95
+ createDate: Date;
96
+ updateDate: Date;
97
+ tenantId: string;
98
+ }
99
+ export interface IAdminDTO {
100
+ id: string;
101
+ email: string;
102
+ createDate: Date;
103
+ updateDate: Date;
104
+ tenantId?: string;
105
+ }
106
+ export interface IAdminCreateRequestDTO {
107
+ email: string;
108
+ password?: string;
109
+ tenantId: string;
110
+ }
111
+ export interface IErrorResponseDTO {
112
+ error: string;
113
+ message: string;
114
+ statusCode: number;
115
+ timestamp: string;
116
+ path: string;
117
+ correlationId?: string;
118
+ details?: any;
119
+ classification?: string;
120
+ userMessage?: string;
121
+ metadata?: {
122
+ domain?: string;
123
+ operation?: string;
124
+ resource?: string;
125
+ [key: string]: any;
126
+ };
127
+ }
128
+ //# sourceMappingURL=dto-interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto-interfaces.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/dto-interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,+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O classes but without decorators
4
+ * Safe for frontend consumption without NestJS dependencies
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=dto-interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto-interfaces.js","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/dto-interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Pure TypeScript interfaces for Error classes
3
+ * These interfaces match the structure of the error classes but without decorators
4
+ * Safe for frontend consumption without NestJS dependencies
5
+ */
6
+ export interface IBusinessLogicError {
7
+ name: string;
8
+ message: string;
9
+ errorCode: string;
10
+ statusCode: number;
11
+ details?: any;
12
+ correlationId?: string;
13
+ timestamp: Date;
14
+ classification: 'PUBLIC' | 'INTERNAL' | 'SENSITIVE';
15
+ domain: string;
16
+ operation?: string;
17
+ resource?: string;
18
+ userMessage: string;
19
+ metadata?: Record<string, any>;
20
+ }
21
+ export interface IAuthenticationError extends IBusinessLogicError {
22
+ domain: 'AUTHENTICATION';
23
+ }
24
+ export interface ITokenExpiredError extends IAuthenticationError {
25
+ errorCode: 'TOKEN_EXPIRED';
26
+ userMessage: 'Your session has expired. Please sign in again.';
27
+ }
28
+ export interface IInvalidTokenError extends IAuthenticationError {
29
+ errorCode: 'INVALID_TOKEN';
30
+ userMessage: 'Invalid authentication token. Please sign in again.';
31
+ }
32
+ export interface IJWTValidationError extends IAuthenticationError {
33
+ errorCode: 'JWT_VALIDATION_FAILED';
34
+ userMessage: 'Authentication failed. Please sign in again.';
35
+ }
36
+ export interface IFirebaseTokenExpiredError extends IAuthenticationError {
37
+ errorCode: 'FIREBASE_TOKEN_EXPIRED';
38
+ userMessage: 'Your Firebase token has expired. Please sign in again.';
39
+ }
40
+ export interface IFirebaseInvalidTokenError extends IAuthenticationError {
41
+ errorCode: 'FIREBASE_INVALID_TOKEN';
42
+ userMessage: 'Invalid Firebase token. Please sign in again.';
43
+ }
44
+ export interface IUserError extends IBusinessLogicError {
45
+ domain: 'USER';
46
+ }
47
+ export interface IUserNotFoundError extends IUserError {
48
+ errorCode: 'USER_NOT_FOUND';
49
+ userMessage: 'User not found.';
50
+ }
51
+ export interface IUserValidationError extends IUserError {
52
+ errorCode: 'USER_VALIDATION_FAILED';
53
+ userMessage: 'User data validation failed.';
54
+ }
55
+ export interface ITransactionError extends IBusinessLogicError {
56
+ domain: 'TRANSACTION';
57
+ }
58
+ export interface ITransactionNotFoundError extends ITransactionError {
59
+ errorCode: 'TRANSACTION_NOT_FOUND';
60
+ userMessage: 'Transaction not found.';
61
+ }
62
+ export interface ITransactionValidationError extends ITransactionError {
63
+ errorCode: 'TRANSACTION_VALIDATION_FAILED';
64
+ userMessage: 'Transaction data validation failed.';
65
+ }
66
+ export interface IValidationError extends IBusinessLogicError {
67
+ domain: 'VALIDATION';
68
+ }
69
+ export interface IInputValidationError extends IValidationError {
70
+ errorCode: 'INPUT_VALIDATION_FAILED';
71
+ userMessage: 'Invalid input data provided.';
72
+ }
73
+ export interface ITechnicalError extends IBusinessLogicError {
74
+ domain: 'TECHNICAL';
75
+ }
76
+ export interface IDatabaseConnectionError extends ITechnicalError {
77
+ errorCode: 'DATABASE_CONNECTION_FAILED';
78
+ userMessage: 'A technical error occurred. Please try again later.';
79
+ }
80
+ export interface IExternalServiceError extends ITechnicalError {
81
+ errorCode: 'EXTERNAL_SERVICE_UNAVAILABLE';
82
+ userMessage: 'External service is temporarily unavailable. Please try again later.';
83
+ }
84
+ //# sourceMappingURL=error-interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-interfaces.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/error-interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,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EAAE,wBAAwB,CAAC;IACpC,WAAW,EAAE,8BAA8B,CAAC;CAC/C;AAGD,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC1D,MAAM,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAChE,SAAS,EAAE,uBAAuB,CAAC;IACnC,WAAW,EAAE,wBAAwB,CAAC;CACzC;AAED,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;IAClE,SAAS,EAAE,+BAA+B,CAAC;IAC3C,WAAW,EAAE,qCAAqC,CAAC;CACtD;AAGD,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IACzD,MAAM,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC3D,SAAS,EAAE,yBAAyB,CAAC;IACrC,WAAW,EAAE,8BAA8B,CAAC;CAC/C;AAGD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,MAAM,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC7D,SAAS,EAAE,4BAA4B,CAAC;IACxC,WAAW,EAAE,qDAAqD,CAAC;CACtE;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D,SAAS,EAAE,8BAA8B,CAAC;IAC1C,WAAW,EAAE,sEAAsE,CAAC;CACvF"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Pure TypeScript interfaces for Error classes
3
+ * These interfaces match the structure of the error classes but without decorators
4
+ * Safe for frontend consumption without NestJS dependencies
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=error-interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-interfaces.js","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/error-interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Pure TypeScript interfaces entry point
3
+ * Exports decorator-free interfaces that match DTO/Error class structures
4
+ */
5
+ export * from './dto-interfaces';
6
+ export * from './error-interfaces';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Pure TypeScript interfaces entry point
3
+ * Exports decorator-free interfaces that match DTO/Error class structures
4
+ */
5
+ export * from './dto-interfaces';
6
+ export * from './error-interfaces';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/types-interfaces/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorins/pers-shared",
3
- "version": "2.1.31",
3
+ "version": "2.1.33",
4
4
  "scripts": {
5
5
  "clean": "find dist -type f -delete 2>/dev/null || true",
6
6
  "build:esm": "tsc -p tsconfig.esm.json",