@explorins/pers-shared 2.1.25 → 2.1.27
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/dist/cjs/shared-lib/dto/redemption/index.d.ts +0 -1
- package/dist/cjs/shared-lib/dto/redemption/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/index.js +0 -1
- package/dist/cjs/shared-lib/dto/redemption/index.js.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts +7 -8
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.js +64 -33
- package/dist/cjs/shared-lib/dto/redemption/redemptionRedeem.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction-pagination.request.dto.d.ts +5 -5
- package/dist/cjs/shared-lib/dto/transaction/transaction-pagination.request.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction-pagination.request.dto.js.map +1 -1
- package/dist/cjs/shared-lib/enum/index.d.ts +1 -0
- package/dist/cjs/shared-lib/enum/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/enum/index.js +1 -0
- package/dist/cjs/shared-lib/enum/index.js.map +1 -1
- package/dist/cjs/shared-lib/enum/redemption/index.d.ts +2 -0
- package/dist/cjs/shared-lib/enum/redemption/index.d.ts.map +1 -0
- package/dist/cjs/shared-lib/enum/redemption/index.js +18 -0
- package/dist/cjs/shared-lib/enum/redemption/index.js.map +1 -0
- package/dist/cjs/shared-lib/enum/redemption/redemption-redeem-status.d.ts +7 -0
- package/dist/cjs/shared-lib/enum/redemption/redemption-redeem-status.d.ts.map +1 -0
- package/dist/cjs/shared-lib/enum/redemption/redemption-redeem-status.js +11 -0
- package/dist/cjs/shared-lib/enum/redemption/redemption-redeem-status.js.map +1 -0
- package/dist/cjs/shared-lib/errors/domains/business-errors.d.ts +3 -0
- package/dist/cjs/shared-lib/errors/domains/business-errors.d.ts.map +1 -1
- package/dist/cjs/shared-lib/errors/domains/business-errors.js +7 -1
- package/dist/cjs/shared-lib/errors/domains/business-errors.js.map +1 -1
- package/dist/cjs/shared-lib/errors/domains/validation-errors.d.ts +14 -0
- package/dist/cjs/shared-lib/errors/domains/validation-errors.d.ts.map +1 -0
- package/dist/cjs/shared-lib/errors/domains/validation-errors.js +28 -0
- package/dist/cjs/shared-lib/errors/domains/validation-errors.js.map +1 -0
- package/dist/cjs/shared-lib/errors/error-codes.d.ts +1 -0
- package/dist/cjs/shared-lib/errors/error-codes.d.ts.map +1 -1
- package/dist/cjs/shared-lib/errors/error-codes.js +1 -0
- package/dist/cjs/shared-lib/errors/error-codes.js.map +1 -1
- package/dist/cjs/shared-lib/errors/index.d.ts +1 -0
- package/dist/cjs/shared-lib/errors/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/errors/index.js +1 -0
- package/dist/cjs/shared-lib/errors/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/index.d.ts +0 -1
- package/dist/esm/shared-lib/dto/redemption/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/index.js +0 -1
- package/dist/esm/shared-lib/dto/redemption/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts +7 -8
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js +56 -25
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-pagination.request.dto.d.ts +5 -5
- package/dist/esm/shared-lib/dto/transaction/transaction-pagination.request.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-pagination.request.dto.js.map +1 -1
- package/dist/esm/shared-lib/enum/index.d.ts +1 -0
- package/dist/esm/shared-lib/enum/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/enum/index.js +1 -0
- package/dist/esm/shared-lib/enum/index.js.map +1 -1
- package/dist/esm/shared-lib/enum/redemption/index.d.ts +2 -0
- package/dist/esm/shared-lib/enum/redemption/index.d.ts.map +1 -0
- package/dist/esm/shared-lib/enum/redemption/index.js +2 -0
- package/dist/esm/shared-lib/enum/redemption/index.js.map +1 -0
- package/dist/esm/shared-lib/enum/redemption/redemption-redeem-status.d.ts +7 -0
- package/dist/esm/shared-lib/enum/redemption/redemption-redeem-status.d.ts.map +1 -0
- package/dist/esm/shared-lib/enum/redemption/redemption-redeem-status.js +8 -0
- package/dist/esm/shared-lib/enum/redemption/redemption-redeem-status.js.map +1 -0
- package/dist/esm/shared-lib/errors/domains/business-errors.d.ts +3 -0
- package/dist/esm/shared-lib/errors/domains/business-errors.d.ts.map +1 -1
- package/dist/esm/shared-lib/errors/domains/business-errors.js +5 -0
- package/dist/esm/shared-lib/errors/domains/business-errors.js.map +1 -1
- package/dist/esm/shared-lib/errors/domains/validation-errors.d.ts +14 -0
- package/dist/esm/shared-lib/errors/domains/validation-errors.d.ts.map +1 -0
- package/dist/esm/shared-lib/errors/domains/validation-errors.js +22 -0
- package/dist/esm/shared-lib/errors/domains/validation-errors.js.map +1 -0
- package/dist/esm/shared-lib/errors/error-codes.d.ts +1 -0
- package/dist/esm/shared-lib/errors/error-codes.d.ts.map +1 -1
- package/dist/esm/shared-lib/errors/error-codes.js +1 -0
- package/dist/esm/shared-lib/errors/error-codes.js.map +1 -1
- package/dist/esm/shared-lib/errors/index.d.ts +1 -0
- package/dist/esm/shared-lib/errors/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/errors/index.js +1 -0
- package/dist/esm/shared-lib/errors/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -20,5 +20,4 @@ __exportStar(require("./redemptionCreate.request.dto"), exports);
|
|
|
20
20
|
__exportStar(require("./redemptionRedeem.request.dto"), exports);
|
|
21
21
|
__exportStar(require("./redemptionRedeem.dto"), exports); // Export RedemptionSubmissionRequestDTO and other DTOs
|
|
22
22
|
__exportStar(require("./redemptionType.dto"), exports);
|
|
23
|
-
__exportStar(require("./redemptionUserRedeem.dto"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,kBAAkB;AAClB,mDAAiC;AACjC,iEAA+C;AAC/C,iEAA+C;AAC/C,yDAAuC,CAAC,uDAAuD;AAC/F,uDAAqC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,kBAAkB;AAClB,mDAAiC;AACjC,iEAA+C;AAC/C,iEAA+C;AAC/C,yDAAuC,CAAC,uDAAuD;AAC/F,uDAAqC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TransactionRequestResponseDTO } from "../transaction";
|
|
2
|
+
import { RedemptionRedeemStatus } from "../../enum";
|
|
3
3
|
export declare class RedemptionRedeemDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
userId: string;
|
|
6
6
|
redemptionId: string;
|
|
7
|
-
transactionIds: string[];
|
|
8
7
|
userCountryCode: string | null;
|
|
8
|
+
status: RedemptionRedeemStatus;
|
|
9
|
+
anonymizedIpAddress?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
failureReason?: string;
|
|
9
13
|
}
|
|
10
14
|
export declare class RedemptionRedeemRequestResponseDTO {
|
|
11
15
|
redeem: RedemptionRedeemDTO;
|
|
12
16
|
senderTransaction: TransactionRequestResponseDTO | null;
|
|
13
|
-
recipientTransactions: TransactionDTO[] | null;
|
|
14
|
-
}
|
|
15
|
-
export declare class RedemptionSubmissionRequestDTO {
|
|
16
|
-
redemptionRedeemId: string;
|
|
17
|
-
transactionSubmission: TransactionSubmissionRequestDTO;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=redemptionRedeem.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionRedeem.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redemptionRedeem.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAmC,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGpD,qBAAa,mBAAmB;IAK5B,EAAE,EAAE,MAAM,CAAM;IAKhB,MAAM,EAAE,MAAM,CAAM;IAKpB,YAAY,EAAE,MAAM,CAAK;IAYzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IAOtC,MAAM,EAAE,sBAAsB,CAAkC;IAOhE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,SAAS,CAAC,EAAE,IAAI,CAAC;IAOjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAOjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,kCAAkC;IAK3C,MAAM,EAAE,mBAAmB,CAA6B;IAOxD,iBAAiB,EAAE,6BAA6B,GAAG,IAAI,CAAQ;CASlE"}
|
|
@@ -9,16 +9,24 @@ var __metadata = (this && this.__metadata) || function (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.
|
|
12
|
+
exports.RedemptionRedeemRequestResponseDTO = exports.RedemptionRedeemDTO = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const transaction_dto_1 = require("../transaction/transaction.dto");
|
|
15
14
|
const transaction_1 = require("../transaction");
|
|
15
|
+
const enum_1 = require("../../enum");
|
|
16
16
|
class RedemptionRedeemDTO {
|
|
17
17
|
id = '';
|
|
18
18
|
userId = '';
|
|
19
19
|
redemptionId = '';
|
|
20
|
-
|
|
20
|
+
/* @ApiProperty(
|
|
21
|
+
{description: 'The transaction ids that resulted from the user redeeming the redemption'}
|
|
22
|
+
)
|
|
23
|
+
transactionIds: string[] = []; */
|
|
21
24
|
userCountryCode = null;
|
|
25
|
+
status = enum_1.RedemptionRedeemStatus.PENDING;
|
|
26
|
+
anonymizedIpAddress;
|
|
27
|
+
createdAt;
|
|
28
|
+
updatedAt;
|
|
29
|
+
failureReason;
|
|
22
30
|
}
|
|
23
31
|
exports.RedemptionRedeemDTO = RedemptionRedeemDTO;
|
|
24
32
|
__decorate([
|
|
@@ -33,10 +41,6 @@ __decorate([
|
|
|
33
41
|
(0, swagger_1.ApiProperty)({ description: 'The redemption that the user is redeeming' }),
|
|
34
42
|
__metadata("design:type", String)
|
|
35
43
|
], RedemptionRedeemDTO.prototype, "redemptionId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, swagger_1.ApiProperty)({ description: 'The transaction ids that resulted from the user redeeming the redemption' }),
|
|
38
|
-
__metadata("design:type", Array)
|
|
39
|
-
], RedemptionRedeemDTO.prototype, "transactionIds", void 0);
|
|
40
44
|
__decorate([
|
|
41
45
|
(0, swagger_1.ApiProperty)({
|
|
42
46
|
description: 'The country code of the user redeeming the redemption',
|
|
@@ -45,10 +49,49 @@ __decorate([
|
|
|
45
49
|
}),
|
|
46
50
|
__metadata("design:type", Object)
|
|
47
51
|
], RedemptionRedeemDTO.prototype, "userCountryCode", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
description: 'The status of the redemption redeem',
|
|
55
|
+
enum: enum_1.RedemptionRedeemStatus,
|
|
56
|
+
default: enum_1.RedemptionRedeemStatus.PENDING
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], RedemptionRedeemDTO.prototype, "status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
description: 'The anonymized IP address of the user redeeming the redemption',
|
|
63
|
+
type: String,
|
|
64
|
+
nullable: true
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], RedemptionRedeemDTO.prototype, "anonymizedIpAddress", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
description: 'The date and time when processing of the redemption redeem started',
|
|
71
|
+
type: Date,
|
|
72
|
+
nullable: true
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", Date)
|
|
75
|
+
], RedemptionRedeemDTO.prototype, "createdAt", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: 'The date and time when processing of the redemption redeem was last updated',
|
|
79
|
+
type: Date,
|
|
80
|
+
nullable: true
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], RedemptionRedeemDTO.prototype, "updatedAt", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'The reason for failure if the redemption redeem failed',
|
|
87
|
+
type: String,
|
|
88
|
+
nullable: true
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], RedemptionRedeemDTO.prototype, "failureReason", void 0);
|
|
48
92
|
class RedemptionRedeemRequestResponseDTO {
|
|
49
93
|
redeem = new RedemptionRedeemDTO();
|
|
50
94
|
senderTransaction = null;
|
|
51
|
-
recipientTransactions = null;
|
|
52
95
|
}
|
|
53
96
|
exports.RedemptionRedeemRequestResponseDTO = RedemptionRedeemRequestResponseDTO;
|
|
54
97
|
__decorate([
|
|
@@ -65,32 +108,20 @@ __decorate([
|
|
|
65
108
|
}),
|
|
66
109
|
__metadata("design:type", Object)
|
|
67
110
|
], RedemptionRedeemRequestResponseDTO.prototype, "senderTransaction", void 0);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type: () => [transaction_dto_1.TransactionDTO], // Use lazy resolver to prevent circular dependency
|
|
72
|
-
isArray: true,
|
|
73
|
-
nullable: true
|
|
74
|
-
}),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], RedemptionRedeemRequestResponseDTO.prototype, "recipientTransactions", void 0);
|
|
77
|
-
class RedemptionSubmissionRequestDTO {
|
|
78
|
-
redemptionRedeemId = '';
|
|
79
|
-
transactionSubmission = new transaction_1.TransactionSubmissionRequestDTO();
|
|
80
|
-
}
|
|
81
|
-
exports.RedemptionSubmissionRequestDTO = RedemptionSubmissionRequestDTO;
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, swagger_1.ApiProperty)({
|
|
111
|
+
/* export class RedemptionSubmissionRequestDTO {
|
|
112
|
+
|
|
113
|
+
@ApiProperty({
|
|
84
114
|
description: 'The id of the redemption redeem to submit the transaction for',
|
|
85
115
|
type: String
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
116
|
+
})
|
|
117
|
+
redemptionRedeemId: string = '';
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@ApiProperty({
|
|
91
121
|
description: 'The transaction submission details for the redemption redeem',
|
|
92
|
-
type:
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
|
|
122
|
+
type: TransactionSubmissionRequestDTO
|
|
123
|
+
})
|
|
124
|
+
transactionSubmission: TransactionSubmissionRequestDTO = new TransactionSubmissionRequestDTO();
|
|
125
|
+
|
|
126
|
+
} */
|
|
96
127
|
//# sourceMappingURL=redemptionRedeem.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionRedeem.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;
|
|
1
|
+
{"version":3,"file":"redemptionRedeem.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,gDAAgG;AAChG,qCAAoD;AAGpD,MAAa,mBAAmB;IAK5B,EAAE,GAAW,EAAE,CAAC;IAKhB,MAAM,GAAW,EAAE,CAAC;IAKpB,YAAY,GAAW,EAAE,CAAA;IAEzB;;;qCAGiC;IAOjC,eAAe,GAAkB,IAAI,CAAC;IAOtC,MAAM,GAA2B,6BAAsB,CAAC,OAAO,CAAC;IAOhE,mBAAmB,CAAU;IAO7B,SAAS,CAAQ;IAOjB,SAAS,CAAQ;IAOjB,aAAa,CAAU;CAC1B;AA/DD,kDA+DC;AA1DG;IAHC,IAAA,qBAAW,EACR,EAAC,WAAW,EAAE,sCAAsC,EAAC,CACxD;;+CACe;AAKhB;IAHC,IAAA,qBAAW,EACR,EAAC,WAAW,EAAE,6CAA6C,EAAC,CAC/D;;mDACm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AE,2CAA6B;QACnC,QAAQ,EAAE,IAAI;KACjB,CAAC;;6EAC6D;AAWnE;;;;;;;;;;;;;;;IAeI"}
|
|
@@ -7,17 +7,17 @@ export type TransactionSortField = typeof TRANSACTION_SORT_FIELDS[number];
|
|
|
7
7
|
* ✅ DOMAIN-SPECIFIC: Transaction filters
|
|
8
8
|
*/
|
|
9
9
|
export declare class TransactionFiltersDTO extends BaseFiltersDTO {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
participantId?: string;
|
|
11
|
+
status?: TransactionStatus;
|
|
12
|
+
type?: Web3TransactionType;
|
|
13
|
+
tokenType?: NativeTokenType;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* ✅ DOMAIN-SPECIFIC: Complete transaction pagination request
|
|
17
17
|
*/
|
|
18
18
|
export declare class TransactionPaginationRequestDTO extends BasePaginationRequestDTO {
|
|
19
19
|
readonly sortBy: TransactionSortField;
|
|
20
|
-
|
|
20
|
+
filters?: TransactionFiltersDTO;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=transaction-pagination.request.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-pagination.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAGhG,QAAA,MAAM,uBAAuB,sGAQnB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE1E;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc;IAOvD,
|
|
1
|
+
{"version":3,"file":"transaction-pagination.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAGhG,QAAA,MAAM,uBAAuB,sGAQnB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE1E;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc;IAOvD,aAAa,CAAC,EAAE,MAAM,CAAC;IAQvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAS3B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAS3B,SAAS,CAAC,EAAE,eAAe,CAAE;CAC9B;AAED;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,wBAAwB;IAa3E,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAe;IAOpD,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-pagination.request.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAA6D;AAC7D,uCAAqE;AACrE,qCAAoE;AACpE,iFAAgG;AAChG,yDAA8C;AAE9C,MAAM,uBAAuB,GAAG;IAC5B,WAAW;IACX,QAAQ;IACR,MAAM;IACN,WAAW;IACX,QAAQ;IACR,eAAe;IACf,kBAAkB;CACZ,CAAC;AAIX;;GAEG;AACH,MAAa,qBAAsB,SAAQ,uCAAc;
|
|
1
|
+
{"version":3,"file":"transaction-pagination.request.dto.js","sourceRoot":"","sources":["../../../../../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AArBD,0EAqBC;AARU;IAXR,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,WAAW;KACrB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,uBAAuB,EAAE;QAC7B,OAAO,EAAE,0BAA0B,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;KACxE,CAAC;IACD,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,WAAW,CAAC,CAAC,4BAA4B;;;+DACxB;AAOpD;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,qBAAqB;KAC5B,CAAC;IACD,IAAA,4BAAU,GAAE;8BACH,qBAAqB;gEAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -34,4 +34,5 @@ __exportStar(require("./crypto.enum"), exports);
|
|
|
34
34
|
__exportStar(require("./wallet.enum"), exports);
|
|
35
35
|
__exportStar(require("./sort-order.enum"), exports);
|
|
36
36
|
__exportStar(require("./purchase"), exports);
|
|
37
|
+
__exportStar(require("./redemption"), exports);
|
|
37
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,0EAAwD;AACxD,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C;AAC1C,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,yDAAuC;AACvC,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C;AAC9C,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,0EAAwD;AACxD,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C;AAC1C,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,yDAAuC;AACvC,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C;AAC9C,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAElC,6CAA2B;AAC3B,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/index.ts"],"names":[],"mappings":"AAEA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./redemption-redeem-status"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,6DAA2C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum RedemptionRedeemStatus {
|
|
2
|
+
PENDING = "PENDING",// Just created, no transactions yet
|
|
3
|
+
PROCESSING = "PROCESSING",// Sender transaction submitted/processing
|
|
4
|
+
COMPLETED = "COMPLETED",// All transactions completed successfully
|
|
5
|
+
FAILED = "FAILED"
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=redemption-redeem-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redemption-redeem-status.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/redemption-redeem-status.ts"],"names":[],"mappings":"AAEA,oBAAY,sBAAsB;IAC9B,OAAO,YAAY,CAAY,oCAAoC;IACnE,UAAU,eAAe,CAAM,0CAA0C;IACzE,SAAS,cAAc,CAAQ,0CAA0C;IACzE,MAAM,WAAW;CACpB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedemptionRedeemStatus = void 0;
|
|
4
|
+
var RedemptionRedeemStatus;
|
|
5
|
+
(function (RedemptionRedeemStatus) {
|
|
6
|
+
RedemptionRedeemStatus["PENDING"] = "PENDING";
|
|
7
|
+
RedemptionRedeemStatus["PROCESSING"] = "PROCESSING";
|
|
8
|
+
RedemptionRedeemStatus["COMPLETED"] = "COMPLETED";
|
|
9
|
+
RedemptionRedeemStatus["FAILED"] = "FAILED"; // Processing failed
|
|
10
|
+
})(RedemptionRedeemStatus || (exports.RedemptionRedeemStatus = RedemptionRedeemStatus = {}));
|
|
11
|
+
//# sourceMappingURL=redemption-redeem-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redemption-redeem-status.js","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/redemption-redeem-status.ts"],"names":[],"mappings":";;;AAEA,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,mDAAyB,CAAA;IACzB,iDAAuB,CAAA;IACvB,2CAAiB,CAAA,CAAc,oBAAoB;AACvD,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC"}
|
|
@@ -2,6 +2,9 @@ import { BusinessLogicError } from '../base-business-error';
|
|
|
2
2
|
/**
|
|
3
3
|
* Business domain business errors
|
|
4
4
|
*/
|
|
5
|
+
export declare class BusinessNotFoundError extends BusinessLogicError {
|
|
6
|
+
constructor(identifier: string);
|
|
7
|
+
}
|
|
5
8
|
export declare class BusinessNotMinterError extends BusinessLogicError {
|
|
6
9
|
constructor(businessId: string, tokenId: string);
|
|
7
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AAEH,qBAAa,sBAAuB,SAAQ,kBAAkB;gBAChD,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAUhD"}
|
|
1
|
+
{"version":3,"file":"business-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AAEH,qBAAa,qBAAsB,SAAQ,kBAAkB;gBAC/C,UAAU,EAAE,MAAM;CAU/B;AAID,qBAAa,sBAAuB,SAAQ,kBAAkB;gBAChD,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAUhD"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BusinessNotMinterError = void 0;
|
|
3
|
+
exports.BusinessNotMinterError = exports.BusinessNotFoundError = void 0;
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const base_business_error_1 = require("../base-business-error");
|
|
6
6
|
const error_codes_1 = require("../error-codes");
|
|
7
7
|
/**
|
|
8
8
|
* Business domain business errors
|
|
9
9
|
*/
|
|
10
|
+
class BusinessNotFoundError extends base_business_error_1.BusinessLogicError {
|
|
11
|
+
constructor(identifier) {
|
|
12
|
+
super(error_codes_1.CommonErrorCodes.BUSINESS_NOT_FOUND, error_codes_1.ErrorDomains.BUSINESS, 'Business not found', `Business not found for identifier: ${identifier}`, common_1.HttpStatus.NOT_FOUND, 'Please verify the business exists');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.BusinessNotFoundError = BusinessNotFoundError;
|
|
10
16
|
class BusinessNotMinterError extends base_business_error_1.BusinessLogicError {
|
|
11
17
|
constructor(businessId, tokenId) {
|
|
12
18
|
super(error_codes_1.CommonErrorCodes.BUSINESS_NOT_MINTER, error_codes_1.ErrorDomains.BUSINESS, 'Business is not authorized as a minter for this token', `Business ${businessId} is not a minter for token ${tokenId}`, common_1.HttpStatus.FORBIDDEN, 'Please verify token minting permissions');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,gEAA4D;AAC5D,gDAAgE;AAEhE;;GAEG;AAEH,MAAa,sBAAuB,SAAQ,wCAAkB;IAC5D,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CACH,8BAAgB,CAAC,mBAAmB,EACpC,0BAAY,CAAC,QAAQ,EACrB,uDAAuD,EACvD,YAAY,UAAU,8BAA8B,OAAO,EAAE,EAC7D,mBAAU,CAAC,SAAS,EACpB,yCAAyC,CAC1C,CAAC;IACJ,CAAC;CACF;AAXD,wDAWC"}
|
|
1
|
+
{"version":3,"file":"business-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,gEAA4D;AAC5D,gDAAgE;AAEhE;;GAEG;AAEH,MAAa,qBAAsB,SAAQ,wCAAkB;IAC3D,YAAY,UAAkB;QAC5B,KAAK,CACH,8BAAgB,CAAC,kBAAkB,EACnC,0BAAY,CAAC,QAAQ,EACrB,oBAAoB,EACpB,sCAAsC,UAAU,EAAE,EAClD,mBAAU,CAAC,SAAS,EACpB,mCAAmC,CACpC,CAAC;IACJ,CAAC;CACF;AAXD,sDAWC;AAID,MAAa,sBAAuB,SAAQ,wCAAkB;IAC5D,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CACH,8BAAgB,CAAC,mBAAmB,EACpC,0BAAY,CAAC,QAAQ,EACrB,uDAAuD,EACvD,YAAY,UAAU,8BAA8B,OAAO,EAAE,EAC7D,mBAAU,CAAC,SAAS,EACpB,yCAAyC,CAC1C,CAAC;IACJ,CAAC;CACF;AAXD,wDAWC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BusinessLogicError } from '../base-business-error';
|
|
2
|
+
/**
|
|
3
|
+
* Generic validation errors used across multiple domains
|
|
4
|
+
*/
|
|
5
|
+
export declare class InvalidInputError extends BusinessLogicError {
|
|
6
|
+
constructor(field: string, reason?: string);
|
|
7
|
+
}
|
|
8
|
+
export declare class RequiredFieldError extends BusinessLogicError {
|
|
9
|
+
constructor(field: string);
|
|
10
|
+
}
|
|
11
|
+
export declare class InvalidFormatError extends BusinessLogicError {
|
|
12
|
+
constructor(field: string, expectedFormat: string);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=validation-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/validation-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AAEH,qBAAa,iBAAkB,SAAQ,kBAAkB;gBAC3C,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAiC;CAUrE;AAED,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,KAAK,EAAE,MAAM;CAU1B;AAED,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;CAUlD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidFormatError = exports.RequiredFieldError = exports.InvalidInputError = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const base_business_error_1 = require("../base-business-error");
|
|
6
|
+
const error_codes_1 = require("../error-codes");
|
|
7
|
+
/**
|
|
8
|
+
* Generic validation errors used across multiple domains
|
|
9
|
+
*/
|
|
10
|
+
class InvalidInputError extends base_business_error_1.BusinessLogicError {
|
|
11
|
+
constructor(field, reason = 'Invalid input provided') {
|
|
12
|
+
super(error_codes_1.CommonErrorCodes.VALIDATION_ERROR, error_codes_1.ErrorDomains.VALIDATION, `Validation failed: ${reason}`, `Field '${field}' validation failed: ${reason}`, common_1.HttpStatus.BAD_REQUEST, 'Please check your input and try again');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.InvalidInputError = InvalidInputError;
|
|
16
|
+
class RequiredFieldError extends base_business_error_1.BusinessLogicError {
|
|
17
|
+
constructor(field) {
|
|
18
|
+
super(error_codes_1.CommonErrorCodes.VALIDATION_ERROR, error_codes_1.ErrorDomains.VALIDATION, 'Required field missing', `Required field '${field}' is missing or empty`, common_1.HttpStatus.BAD_REQUEST, `Please provide a value for '${field}'`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.RequiredFieldError = RequiredFieldError;
|
|
22
|
+
class InvalidFormatError extends base_business_error_1.BusinessLogicError {
|
|
23
|
+
constructor(field, expectedFormat) {
|
|
24
|
+
super(error_codes_1.CommonErrorCodes.VALIDATION_ERROR, error_codes_1.ErrorDomains.VALIDATION, 'Invalid format', `Field '${field}' has invalid format. Expected: ${expectedFormat}`, common_1.HttpStatus.BAD_REQUEST, `Please provide '${field}' in the correct format: ${expectedFormat}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.InvalidFormatError = InvalidFormatError;
|
|
28
|
+
//# sourceMappingURL=validation-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/validation-errors.ts"],"names":[],"mappings":";;;AAAA,2CAA4C;AAC5C,gEAA4D;AAC5D,gDAAgE;AAEhE;;GAEG;AAEH,MAAa,iBAAkB,SAAQ,wCAAkB;IACvD,YAAY,KAAa,EAAE,SAAiB,wBAAwB;QAClE,KAAK,CACH,8BAAgB,CAAC,gBAAgB,EACjC,0BAAY,CAAC,UAAU,EACvB,sBAAsB,MAAM,EAAE,EAC9B,UAAU,KAAK,wBAAwB,MAAM,EAAE,EAC/C,mBAAU,CAAC,WAAW,EACtB,uCAAuC,CACxC,CAAC;IACJ,CAAC;CACF;AAXD,8CAWC;AAED,MAAa,kBAAmB,SAAQ,wCAAkB;IACxD,YAAY,KAAa;QACvB,KAAK,CACH,8BAAgB,CAAC,gBAAgB,EACjC,0BAAY,CAAC,UAAU,EACvB,wBAAwB,EACxB,mBAAmB,KAAK,uBAAuB,EAC/C,mBAAU,CAAC,WAAW,EACtB,+BAA+B,KAAK,GAAG,CACxC,CAAC;IACJ,CAAC;CACF;AAXD,gDAWC;AAED,MAAa,kBAAmB,SAAQ,wCAAkB;IACxD,YAAY,KAAa,EAAE,cAAsB;QAC/C,KAAK,CACH,8BAAgB,CAAC,gBAAgB,EACjC,0BAAY,CAAC,UAAU,EACvB,gBAAgB,EAChB,UAAU,KAAK,mCAAmC,cAAc,EAAE,EAClE,mBAAU,CAAC,WAAW,EACtB,mBAAmB,KAAK,4BAA4B,cAAc,EAAE,CACrE,CAAC;IACJ,CAAC;CACF;AAXD,gDAWC"}
|
|
@@ -23,6 +23,7 @@ export declare const CommonErrorCodes: {
|
|
|
23
23
|
readonly SMART_WALLET_PROCESSING_FAILED: "SMART_WALLET_PROCESSING_FAILED";
|
|
24
24
|
readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
|
|
25
25
|
readonly CONTRACT_NOT_FOUND: "CONTRACT_NOT_FOUND";
|
|
26
|
+
readonly BUSINESS_NOT_FOUND: "BUSINESS_NOT_FOUND";
|
|
26
27
|
readonly BUSINESS_NOT_MINTER: "BUSINESS_NOT_MINTER";
|
|
27
28
|
readonly TRANSACTION_NOT_FOUND: "TRANSACTION_NOT_FOUND";
|
|
28
29
|
readonly TRANSACTION_SIGNATURE_INVALID: "TRANSACTION_SIGNATURE_INVALID";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/error-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/error-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDnB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAErF;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYf,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -32,6 +32,7 @@ exports.CommonErrorCodes = {
|
|
|
32
32
|
// Contract domain
|
|
33
33
|
CONTRACT_NOT_FOUND: 'CONTRACT_NOT_FOUND',
|
|
34
34
|
// Business domain
|
|
35
|
+
BUSINESS_NOT_FOUND: 'BUSINESS_NOT_FOUND',
|
|
35
36
|
BUSINESS_NOT_MINTER: 'BUSINESS_NOT_MINTER',
|
|
36
37
|
// Transaction domain
|
|
37
38
|
TRANSACTION_NOT_FOUND: 'TRANSACTION_NOT_FOUND',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../src/shared-lib/errors/error-codes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEU,QAAA,gBAAgB,GAAG;IAC9B,cAAc;IACd,cAAc,EAAE,gBAAgB;IAChC,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,qBAAqB;IAE1C,eAAe;IACf,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,oBAAoB,EAAE,sBAAsB;IAE5C,gBAAgB;IAChB,sBAAsB,EAAE,wBAAwB;IAChD,gBAAgB,EAAE,kBAAkB;IACpC,8BAA8B,EAAE,gCAAgC;IAEhE,iBAAiB;IACjB,oBAAoB,EAAE,sBAAsB;IAE5C,kBAAkB;IAClB,kBAAkB,EAAE,oBAAoB;IAExC,kBAAkB;IAClB,mBAAmB,EAAE,qBAAqB;IAE1C,qBAAqB;IACrB,qBAAqB,EAAE,uBAAuB;IAC9C,6BAA6B,EAAE,+BAA+B;IAC9D,6BAA6B,EAAE,+BAA+B;IAC9D,uBAAuB,EAAE,yBAAyB;IAClD,4BAA4B,EAAE,8BAA8B;IAC5D,8BAA8B,EAAE,gCAAgC;IAEhE,mBAAmB;IACnB,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBA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,EAAE,uBAAuB;IAC9C,6BAA6B,EAAE,+BAA+B;IAC9D,6BAA6B,EAAE,+BAA+B;IAC9D,uBAAuB,EAAE,yBAAyB;IAClD,4BAA4B,EAAE,8BAA8B;IAC5D,8BAA8B,EAAE,gCAAgC;IAEhE,mBAAmB;IACnB,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAE1C,gBAAgB;IAChB,YAAY,EAAE,cAAc;IAC5B,sBAAsB,EAAE,wBAAwB;IAChD,uBAAuB,EAAE,yBAAyB;IAClD,oBAAoB,EAAE,sBAAsB;IAE5C,oBAAoB;IACpB,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;CAC1C,CAAC;AAUX;;;;;GAKG;AACU,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,UAAU;CACZ,CAAC"}
|
|
@@ -12,4 +12,5 @@ export * from './domains/contract-errors';
|
|
|
12
12
|
export * from './domains/system-errors';
|
|
13
13
|
export * from './domains/authentication-errors';
|
|
14
14
|
export * from './domains/signing-account-errors';
|
|
15
|
+
export * from './domains/validation-errors';
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAG7C,cAAc,mCAAmC,CAAC;AAKlD,cAAc,eAAe,CAAC;AAG9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAG7C,cAAc,mCAAmC,CAAC;AAKlD,cAAc,eAAe,CAAC;AAG9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC"}
|
|
@@ -35,4 +35,5 @@ __exportStar(require("./domains/contract-errors"), exports);
|
|
|
35
35
|
__exportStar(require("./domains/system-errors"), exports);
|
|
36
36
|
__exportStar(require("./domains/authentication-errors"), exports);
|
|
37
37
|
__exportStar(require("./domains/signing-account-errors"), exports);
|
|
38
|
+
__exportStar(require("./domains/validation-errors"), exports);
|
|
38
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,qDAAmC;AACnC,+DAA6C;AAE7C,8BAA8B;AAC9B,oEAAkD;AAElD,6EAA6E;AAE7E,4CAA4C;AAC5C,gDAA8B;AAE9B,+CAA+C;AAC/C,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,qDAAmC;AACnC,+DAA6C;AAE7C,8BAA8B;AAC9B,oEAAkD;AAElD,6EAA6E;AAE7E,4CAA4C;AAC5C,gDAA8B;AAE9B,+CAA+C;AAC/C,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,mEAAiD;AACjD,8DAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -4,5 +4,4 @@ export * from './redemptionCreate.request.dto';
|
|
|
4
4
|
export * from './redemptionRedeem.request.dto';
|
|
5
5
|
export * from './redemptionRedeem.dto'; // Export RedemptionSubmissionRequestDTO and other DTOs
|
|
6
6
|
export * from './redemptionType.dto';
|
|
7
|
-
export * from './redemptionUserRedeem.dto';
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":"AAEA,kBAAkB;AAClB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC,CAAC,uDAAuD;AAC/F,cAAc,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/index.ts"],"names":[],"mappings":"AAEA,kBAAkB;AAClB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC,CAAC,uDAAuD;AAC/F,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TransactionRequestResponseDTO } from "../transaction";
|
|
2
|
+
import { RedemptionRedeemStatus } from "../../enum";
|
|
3
3
|
export declare class RedemptionRedeemDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
userId: string;
|
|
6
6
|
redemptionId: string;
|
|
7
|
-
transactionIds: string[];
|
|
8
7
|
userCountryCode: string | null;
|
|
8
|
+
status: RedemptionRedeemStatus;
|
|
9
|
+
anonymizedIpAddress?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
failureReason?: string;
|
|
9
13
|
}
|
|
10
14
|
export declare class RedemptionRedeemRequestResponseDTO {
|
|
11
15
|
redeem: RedemptionRedeemDTO;
|
|
12
16
|
senderTransaction: TransactionRequestResponseDTO | null;
|
|
13
|
-
recipientTransactions: TransactionDTO[] | null;
|
|
14
|
-
}
|
|
15
|
-
export declare class RedemptionSubmissionRequestDTO {
|
|
16
|
-
redemptionRedeemId: string;
|
|
17
|
-
transactionSubmission: TransactionSubmissionRequestDTO;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=redemptionRedeem.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionRedeem.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redemptionRedeem.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAmC,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGpD,qBAAa,mBAAmB;IAK5B,EAAE,EAAE,MAAM,CAAM;IAKhB,MAAM,EAAE,MAAM,CAAM;IAKpB,YAAY,EAAE,MAAM,CAAK;IAYzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IAOtC,MAAM,EAAE,sBAAsB,CAAkC;IAOhE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,SAAS,CAAC,EAAE,IAAI,CAAC;IAOjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAOjB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,kCAAkC;IAK3C,MAAM,EAAE,mBAAmB,CAA6B;IAOxD,iBAAiB,EAAE,6BAA6B,GAAG,IAAI,CAAQ;CASlE"}
|
|
@@ -5,14 +5,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { TransactionRequestResponseDTO } from "../transaction";
|
|
9
|
+
import { RedemptionRedeemStatus } from "../../enum";
|
|
10
10
|
export class RedemptionRedeemDTO {
|
|
11
11
|
id = '';
|
|
12
12
|
userId = '';
|
|
13
13
|
redemptionId = '';
|
|
14
|
-
|
|
14
|
+
/* @ApiProperty(
|
|
15
|
+
{description: 'The transaction ids that resulted from the user redeeming the redemption'}
|
|
16
|
+
)
|
|
17
|
+
transactionIds: string[] = []; */
|
|
15
18
|
userCountryCode = null;
|
|
19
|
+
status = RedemptionRedeemStatus.PENDING;
|
|
20
|
+
anonymizedIpAddress;
|
|
21
|
+
createdAt;
|
|
22
|
+
updatedAt;
|
|
23
|
+
failureReason;
|
|
16
24
|
}
|
|
17
25
|
__decorate([
|
|
18
26
|
ApiProperty({ description: 'The id of the redemption user redeem' })
|
|
@@ -23,9 +31,6 @@ __decorate([
|
|
|
23
31
|
__decorate([
|
|
24
32
|
ApiProperty({ description: 'The redemption that the user is redeeming' })
|
|
25
33
|
], RedemptionRedeemDTO.prototype, "redemptionId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
ApiProperty({ description: 'The transaction ids that resulted from the user redeeming the redemption' })
|
|
28
|
-
], RedemptionRedeemDTO.prototype, "transactionIds", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
ApiProperty({
|
|
31
36
|
description: 'The country code of the user redeeming the redemption',
|
|
@@ -33,10 +38,44 @@ __decorate([
|
|
|
33
38
|
nullable: true
|
|
34
39
|
})
|
|
35
40
|
], RedemptionRedeemDTO.prototype, "userCountryCode", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
ApiProperty({
|
|
43
|
+
description: 'The status of the redemption redeem',
|
|
44
|
+
enum: RedemptionRedeemStatus,
|
|
45
|
+
default: RedemptionRedeemStatus.PENDING
|
|
46
|
+
})
|
|
47
|
+
], RedemptionRedeemDTO.prototype, "status", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
ApiProperty({
|
|
50
|
+
description: 'The anonymized IP address of the user redeeming the redemption',
|
|
51
|
+
type: String,
|
|
52
|
+
nullable: true
|
|
53
|
+
})
|
|
54
|
+
], RedemptionRedeemDTO.prototype, "anonymizedIpAddress", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
ApiProperty({
|
|
57
|
+
description: 'The date and time when processing of the redemption redeem started',
|
|
58
|
+
type: Date,
|
|
59
|
+
nullable: true
|
|
60
|
+
})
|
|
61
|
+
], RedemptionRedeemDTO.prototype, "createdAt", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
ApiProperty({
|
|
64
|
+
description: 'The date and time when processing of the redemption redeem was last updated',
|
|
65
|
+
type: Date,
|
|
66
|
+
nullable: true
|
|
67
|
+
})
|
|
68
|
+
], RedemptionRedeemDTO.prototype, "updatedAt", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
ApiProperty({
|
|
71
|
+
description: 'The reason for failure if the redemption redeem failed',
|
|
72
|
+
type: String,
|
|
73
|
+
nullable: true
|
|
74
|
+
})
|
|
75
|
+
], RedemptionRedeemDTO.prototype, "failureReason", void 0);
|
|
36
76
|
export class RedemptionRedeemRequestResponseDTO {
|
|
37
77
|
redeem = new RedemptionRedeemDTO();
|
|
38
78
|
senderTransaction = null;
|
|
39
|
-
recipientTransactions = null;
|
|
40
79
|
}
|
|
41
80
|
__decorate([
|
|
42
81
|
ApiProperty({ description: 'The redemption redeem details that the user redeemed',
|
|
@@ -50,28 +89,20 @@ __decorate([
|
|
|
50
89
|
nullable: true
|
|
51
90
|
})
|
|
52
91
|
], RedemptionRedeemRequestResponseDTO.prototype, "senderTransaction", void 0);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
type: () => [TransactionDTO], // Use lazy resolver to prevent circular dependency
|
|
57
|
-
isArray: true,
|
|
58
|
-
nullable: true
|
|
59
|
-
})
|
|
60
|
-
], RedemptionRedeemRequestResponseDTO.prototype, "recipientTransactions", void 0);
|
|
61
|
-
export class RedemptionSubmissionRequestDTO {
|
|
62
|
-
redemptionRedeemId = '';
|
|
63
|
-
transactionSubmission = new TransactionSubmissionRequestDTO();
|
|
64
|
-
}
|
|
65
|
-
__decorate([
|
|
66
|
-
ApiProperty({
|
|
92
|
+
/* export class RedemptionSubmissionRequestDTO {
|
|
93
|
+
|
|
94
|
+
@ApiProperty({
|
|
67
95
|
description: 'The id of the redemption redeem to submit the transaction for',
|
|
68
96
|
type: String
|
|
69
97
|
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
98
|
+
redemptionRedeemId: string = '';
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
@ApiProperty({
|
|
73
102
|
description: 'The transaction submission details for the redemption redeem',
|
|
74
103
|
type: TransactionSubmissionRequestDTO
|
|
75
104
|
})
|
|
76
|
-
|
|
105
|
+
transactionSubmission: TransactionSubmissionRequestDTO = new TransactionSubmissionRequestDTO();
|
|
106
|
+
|
|
107
|
+
} */
|
|
77
108
|
//# sourceMappingURL=redemptionRedeem.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redemptionRedeem.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"redemptionRedeem.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/redemption/redemptionRedeem.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,6BAA6B,EAAmC,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGpD,MAAM,OAAO,mBAAmB;IAK5B,EAAE,GAAW,EAAE,CAAC;IAKhB,MAAM,GAAW,EAAE,CAAC;IAKpB,YAAY,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AAyC,IAAI,CAAC;CASlE;AAhBG;IAHC,WAAW,CAAC,EAAC,WAAW,EAAE,sDAAsD;QAC7E,IAAI,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,mDAAmD;KACvF,CAAC;kEACsD;AAOxD;IALC,WAAW,CAAC;QACT,WAAW,EAAE,iLAAiL;QAC9L,IAAI,EAAE,6BAA6B;QACnC,QAAQ,EAAE,IAAI;KACjB,CAAC;6EAC6D;AAWnE;;;;;;;;;;;;;;;IAeI"}
|
|
@@ -7,17 +7,17 @@ export type TransactionSortField = typeof TRANSACTION_SORT_FIELDS[number];
|
|
|
7
7
|
* ✅ DOMAIN-SPECIFIC: Transaction filters
|
|
8
8
|
*/
|
|
9
9
|
export declare class TransactionFiltersDTO extends BaseFiltersDTO {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
participantId?: string;
|
|
11
|
+
status?: TransactionStatus;
|
|
12
|
+
type?: Web3TransactionType;
|
|
13
|
+
tokenType?: NativeTokenType;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* ✅ DOMAIN-SPECIFIC: Complete transaction pagination request
|
|
17
17
|
*/
|
|
18
18
|
export declare class TransactionPaginationRequestDTO extends BasePaginationRequestDTO {
|
|
19
19
|
readonly sortBy: TransactionSortField;
|
|
20
|
-
|
|
20
|
+
filters?: TransactionFiltersDTO;
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
23
23
|
//# sourceMappingURL=transaction-pagination.request.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-pagination.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAGhG,QAAA,MAAM,uBAAuB,sGAQnB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE1E;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc;IAOvD,
|
|
1
|
+
{"version":3,"file":"transaction-pagination.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAGhG,QAAA,MAAM,uBAAuB,sGAQnB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE1E;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc;IAOvD,aAAa,CAAC,EAAE,MAAM,CAAC;IAQvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAS3B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAS3B,SAAS,CAAC,EAAE,eAAe,CAAE;CAC9B;AAED;;GAEG;AACH,qBAAa,+BAAgC,SAAQ,wBAAwB;IAa3E,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAe;IAOpD,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-pagination.request.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAwB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAqB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,uBAAuB,GAAG;IAC5B,WAAW;IACX,QAAQ;IACR,MAAM;IACN,WAAW;IACX,QAAQ;IACR,eAAe;IACf,kBAAkB;CACZ,CAAC;AAIX;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,cAAc;
|
|
1
|
+
{"version":3,"file":"transaction-pagination.request.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-pagination.request.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAwB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAqB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,uBAAuB,GAAG;IAC5B,WAAW;IACX,QAAQ;IACR,MAAM;IACN,WAAW;IACX,QAAQ;IACR,eAAe;IACf,kBAAkB;CACZ,CAAC;AAIX;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IAOvD,aAAa,CAAU;IAQvB,MAAM,CAAqB;IAS3B,IAAI,CAAuB;IAS3B,SAAS,CAAoB;CAC9B;AA3BC;IANC,mBAAmB,CAAC;QACnB,WAAW,EAAE,sEAAsE;QACnF,OAAO,EAAE,uCAAuC;KACjD,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"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/enum/index.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/index.ts"],"names":[],"mappings":"AAEA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/index.ts"],"names":[],"mappings":"AAEA,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum RedemptionRedeemStatus {
|
|
2
|
+
PENDING = "PENDING",// Just created, no transactions yet
|
|
3
|
+
PROCESSING = "PROCESSING",// Sender transaction submitted/processing
|
|
4
|
+
COMPLETED = "COMPLETED",// All transactions completed successfully
|
|
5
|
+
FAILED = "FAILED"
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=redemption-redeem-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redemption-redeem-status.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/redemption-redeem-status.ts"],"names":[],"mappings":"AAEA,oBAAY,sBAAsB;IAC9B,OAAO,YAAY,CAAY,oCAAoC;IACnE,UAAU,eAAe,CAAM,0CAA0C;IACzE,SAAS,cAAc,CAAQ,0CAA0C;IACzE,MAAM,WAAW;CACpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var RedemptionRedeemStatus;
|
|
2
|
+
(function (RedemptionRedeemStatus) {
|
|
3
|
+
RedemptionRedeemStatus["PENDING"] = "PENDING";
|
|
4
|
+
RedemptionRedeemStatus["PROCESSING"] = "PROCESSING";
|
|
5
|
+
RedemptionRedeemStatus["COMPLETED"] = "COMPLETED";
|
|
6
|
+
RedemptionRedeemStatus["FAILED"] = "FAILED"; // Processing failed
|
|
7
|
+
})(RedemptionRedeemStatus || (RedemptionRedeemStatus = {}));
|
|
8
|
+
//# sourceMappingURL=redemption-redeem-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redemption-redeem-status.js","sourceRoot":"","sources":["../../../../../src/shared-lib/enum/redemption/redemption-redeem-status.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,mDAAyB,CAAA;IACzB,iDAAuB,CAAA;IACvB,2CAAiB,CAAA,CAAc,oBAAoB;AACvD,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC"}
|
|
@@ -2,6 +2,9 @@ import { BusinessLogicError } from '../base-business-error';
|
|
|
2
2
|
/**
|
|
3
3
|
* Business domain business errors
|
|
4
4
|
*/
|
|
5
|
+
export declare class BusinessNotFoundError extends BusinessLogicError {
|
|
6
|
+
constructor(identifier: string);
|
|
7
|
+
}
|
|
5
8
|
export declare class BusinessNotMinterError extends BusinessLogicError {
|
|
6
9
|
constructor(businessId: string, tokenId: string);
|
|
7
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AAEH,qBAAa,sBAAuB,SAAQ,kBAAkB;gBAChD,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAUhD"}
|
|
1
|
+
{"version":3,"file":"business-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AAEH,qBAAa,qBAAsB,SAAQ,kBAAkB;gBAC/C,UAAU,EAAE,MAAM;CAU/B;AAID,qBAAa,sBAAuB,SAAQ,kBAAkB;gBAChD,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAUhD"}
|
|
@@ -4,6 +4,11 @@ import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
|
4
4
|
/**
|
|
5
5
|
* Business domain business errors
|
|
6
6
|
*/
|
|
7
|
+
export class BusinessNotFoundError extends BusinessLogicError {
|
|
8
|
+
constructor(identifier) {
|
|
9
|
+
super(CommonErrorCodes.BUSINESS_NOT_FOUND, ErrorDomains.BUSINESS, 'Business not found', `Business not found for identifier: ${identifier}`, HttpStatus.NOT_FOUND, 'Please verify the business exists');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
7
12
|
export class BusinessNotMinterError extends BusinessLogicError {
|
|
8
13
|
constructor(businessId, tokenId) {
|
|
9
14
|
super(CommonErrorCodes.BUSINESS_NOT_MINTER, ErrorDomains.BUSINESS, 'Business is not authorized as a minter for this token', `Business ${businessId} is not a minter for token ${tokenId}`, HttpStatus.FORBIDDEN, 'Please verify token minting permissions');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;GAEG;AAEH,MAAM,OAAO,sBAAuB,SAAQ,kBAAkB;IAC5D,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CACH,gBAAgB,CAAC,mBAAmB,EACpC,YAAY,CAAC,QAAQ,EACrB,uDAAuD,EACvD,YAAY,UAAU,8BAA8B,OAAO,EAAE,EAC7D,UAAU,CAAC,SAAS,EACpB,yCAAyC,CAC1C,CAAC;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"business-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/business-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;GAEG;AAEH,MAAM,OAAO,qBAAsB,SAAQ,kBAAkB;IAC3D,YAAY,UAAkB;QAC5B,KAAK,CACH,gBAAgB,CAAC,kBAAkB,EACnC,YAAY,CAAC,QAAQ,EACrB,oBAAoB,EACpB,sCAAsC,UAAU,EAAE,EAClD,UAAU,CAAC,SAAS,EACpB,mCAAmC,CACpC,CAAC;IACJ,CAAC;CACF;AAID,MAAM,OAAO,sBAAuB,SAAQ,kBAAkB;IAC5D,YAAY,UAAkB,EAAE,OAAe;QAC7C,KAAK,CACH,gBAAgB,CAAC,mBAAmB,EACpC,YAAY,CAAC,QAAQ,EACrB,uDAAuD,EACvD,YAAY,UAAU,8BAA8B,OAAO,EAAE,EAC7D,UAAU,CAAC,SAAS,EACpB,yCAAyC,CAC1C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BusinessLogicError } from '../base-business-error';
|
|
2
|
+
/**
|
|
3
|
+
* Generic validation errors used across multiple domains
|
|
4
|
+
*/
|
|
5
|
+
export declare class InvalidInputError extends BusinessLogicError {
|
|
6
|
+
constructor(field: string, reason?: string);
|
|
7
|
+
}
|
|
8
|
+
export declare class RequiredFieldError extends BusinessLogicError {
|
|
9
|
+
constructor(field: string);
|
|
10
|
+
}
|
|
11
|
+
export declare class InvalidFormatError extends BusinessLogicError {
|
|
12
|
+
constructor(field: string, expectedFormat: string);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=validation-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/validation-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AAEH,qBAAa,iBAAkB,SAAQ,kBAAkB;gBAC3C,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAiC;CAUrE;AAED,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,KAAK,EAAE,MAAM;CAU1B;AAED,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;CAUlD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpStatus } from '@nestjs/common';
|
|
2
|
+
import { BusinessLogicError } from '../base-business-error';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
4
|
+
/**
|
|
5
|
+
* Generic validation errors used across multiple domains
|
|
6
|
+
*/
|
|
7
|
+
export class InvalidInputError extends BusinessLogicError {
|
|
8
|
+
constructor(field, reason = 'Invalid input provided') {
|
|
9
|
+
super(CommonErrorCodes.VALIDATION_ERROR, ErrorDomains.VALIDATION, `Validation failed: ${reason}`, `Field '${field}' validation failed: ${reason}`, HttpStatus.BAD_REQUEST, 'Please check your input and try again');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export class RequiredFieldError extends BusinessLogicError {
|
|
13
|
+
constructor(field) {
|
|
14
|
+
super(CommonErrorCodes.VALIDATION_ERROR, ErrorDomains.VALIDATION, 'Required field missing', `Required field '${field}' is missing or empty`, HttpStatus.BAD_REQUEST, `Please provide a value for '${field}'`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export class InvalidFormatError extends BusinessLogicError {
|
|
18
|
+
constructor(field, expectedFormat) {
|
|
19
|
+
super(CommonErrorCodes.VALIDATION_ERROR, ErrorDomains.VALIDATION, 'Invalid format', `Field '${field}' has invalid format. Expected: ${expectedFormat}`, HttpStatus.BAD_REQUEST, `Please provide '${field}' in the correct format: ${expectedFormat}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=validation-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/validation-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;GAEG;AAEH,MAAM,OAAO,iBAAkB,SAAQ,kBAAkB;IACvD,YAAY,KAAa,EAAE,SAAiB,wBAAwB;QAClE,KAAK,CACH,gBAAgB,CAAC,gBAAgB,EACjC,YAAY,CAAC,UAAU,EACvB,sBAAsB,MAAM,EAAE,EAC9B,UAAU,KAAK,wBAAwB,MAAM,EAAE,EAC/C,UAAU,CAAC,WAAW,EACtB,uCAAuC,CACxC,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,kBAAkB;IACxD,YAAY,KAAa;QACvB,KAAK,CACH,gBAAgB,CAAC,gBAAgB,EACjC,YAAY,CAAC,UAAU,EACvB,wBAAwB,EACxB,mBAAmB,KAAK,uBAAuB,EAC/C,UAAU,CAAC,WAAW,EACtB,+BAA+B,KAAK,GAAG,CACxC,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,kBAAkB;IACxD,YAAY,KAAa,EAAE,cAAsB;QAC/C,KAAK,CACH,gBAAgB,CAAC,gBAAgB,EACjC,YAAY,CAAC,UAAU,EACvB,gBAAgB,EAChB,UAAU,KAAK,mCAAmC,cAAc,EAAE,EAClE,UAAU,CAAC,WAAW,EACtB,mBAAmB,KAAK,4BAA4B,cAAc,EAAE,CACrE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -23,6 +23,7 @@ export declare const CommonErrorCodes: {
|
|
|
23
23
|
readonly SMART_WALLET_PROCESSING_FAILED: "SMART_WALLET_PROCESSING_FAILED";
|
|
24
24
|
readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
|
|
25
25
|
readonly CONTRACT_NOT_FOUND: "CONTRACT_NOT_FOUND";
|
|
26
|
+
readonly BUSINESS_NOT_FOUND: "BUSINESS_NOT_FOUND";
|
|
26
27
|
readonly BUSINESS_NOT_MINTER: "BUSINESS_NOT_MINTER";
|
|
27
28
|
readonly TRANSACTION_NOT_FOUND: "TRANSACTION_NOT_FOUND";
|
|
28
29
|
readonly TRANSACTION_SIGNATURE_INVALID: "TRANSACTION_SIGNATURE_INVALID";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/error-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/error-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDnB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAErF;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYf,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -29,6 +29,7 @@ export const CommonErrorCodes = {
|
|
|
29
29
|
// Contract domain
|
|
30
30
|
CONTRACT_NOT_FOUND: 'CONTRACT_NOT_FOUND',
|
|
31
31
|
// Business domain
|
|
32
|
+
BUSINESS_NOT_FOUND: 'BUSINESS_NOT_FOUND',
|
|
32
33
|
BUSINESS_NOT_MINTER: 'BUSINESS_NOT_MINTER',
|
|
33
34
|
// Transaction domain
|
|
34
35
|
TRANSACTION_NOT_FOUND: 'TRANSACTION_NOT_FOUND',
|
|
@@ -1 +1 @@
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D,oBAAoB,EAAE,sBAAsB;IAE5C,oBAAoB;IACpB,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;CAC1C,CAAC;AAUX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,UAAU;CACZ,CAAC"}
|
|
@@ -12,4 +12,5 @@ export * from './domains/contract-errors';
|
|
|
12
12
|
export * from './domains/system-errors';
|
|
13
13
|
export * from './domains/authentication-errors';
|
|
14
14
|
export * from './domains/signing-account-errors';
|
|
15
|
+
export * from './domains/validation-errors';
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAG7C,cAAc,mCAAmC,CAAC;AAKlD,cAAc,eAAe,CAAC;AAG9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAG7C,cAAc,mCAAmC,CAAC;AAKlD,cAAc,eAAe,CAAC;AAG9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC"}
|
|
@@ -17,4 +17,5 @@ export * from './domains/contract-errors';
|
|
|
17
17
|
export * from './domains/system-errors';
|
|
18
18
|
export * from './domains/authentication-errors';
|
|
19
19
|
export * from './domains/signing-account-errors';
|
|
20
|
+
export * from './domains/validation-errors';
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAE7C,8BAA8B;AAC9B,cAAc,mCAAmC,CAAC;AAElD,6EAA6E;AAE7E,4CAA4C;AAC5C,cAAc,eAAe,CAAC;AAE9B,+CAA+C;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/errors/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAE7C,8BAA8B;AAC9B,cAAc,mCAAmC,CAAC;AAElD,6EAA6E;AAE7E,4CAA4C;AAC5C,cAAc,eAAe,CAAC;AAE9B,+CAA+C;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC"}
|