@explorins/pers-shared 2.1.71 → 2.1.72
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/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/shared-lib/errors/domains/authentication-errors.d.ts +2 -5
- package/dist/cjs/shared-lib/errors/domains/authentication-errors.d.ts.map +1 -1
- package/dist/cjs/shared-lib/errors/domains/authentication-errors.js +9 -5
- package/dist/cjs/shared-lib/errors/domains/authentication-errors.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/account-selector.dto.js +1 -1
- package/dist/esm/shared-lib/dto/admin/admin.dto.js +1 -1
- package/dist/esm/shared-lib/dto/analytics/group-by-expression.dto.js +1 -1
- package/dist/esm/shared-lib/dto/auth/auth.dto.js +4 -4
- package/dist/esm/shared-lib/dto/business/business-membership.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaign-business-engagement.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaign.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignTrigger.dto.js +2 -2
- package/dist/esm/shared-lib/dto/campaign/campaignTriggerCondition.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js +2 -2
- package/dist/esm/shared-lib/dto/campaign/trigger-source.dto.js +2 -2
- package/dist/esm/shared-lib/dto/error-response.dto.js +2 -2
- package/dist/esm/shared-lib/dto/pagination/pagination.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchase.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseType.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js +3 -3
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js +2 -2
- package/dist/esm/shared-lib/dto/signing-account/create-signing-account-request.dto.js +3 -3
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.js +1 -1
- package/dist/esm/shared-lib/dto/tenant/tenant.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token-balance.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token-type.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-analytics.request.dto.js +3 -3
- package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-pagination.request.dto.js +3 -3
- package/dist/esm/shared-lib/dto/transaction/transaction-trigger-process.dto.js +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.dto.js +5 -5
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.js +6 -6
- package/dist/esm/shared-lib/dto/wallet.dto.js +2 -2
- package/dist/esm/shared-lib/dto/web3-contract.dto.js +2 -2
- package/dist/esm/shared-lib/errors/domains/authentication-errors.d.ts +2 -5
- package/dist/esm/shared-lib/errors/domains/authentication-errors.d.ts.map +1 -1
- package/dist/esm/shared-lib/errors/domains/authentication-errors.js +12 -8
- package/dist/esm/shared-lib/errors/domains/authentication-errors.js.map +1 -1
- package/dist/esm/shared-lib/errors/domains/balance-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/business-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/campaign-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/contract-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/signing-account-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/system-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/tenant-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/token-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/transaction-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/trigger-source-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/user-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/validation-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/wallet-errors.js +2 -2
- package/dist/esm/shared-lib/value-objects/account-selector.vo.js +1 -1
- package/dist/esm/shared-lib/value-objects/address.value-object.js +1 -1
- package/dist/esm/shared-lib/value-objects/token-transaction-entity-reference-input.vo.js +1 -1
- package/dist/esm/shared-lib/value-objects/token-transaction-input.vo.js +1 -1
- package/dist/esm/shared-patterns/errors/error-factory.js +13 -13
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export * from './shared-lib/types/index';
|
|
|
4
4
|
export type * from './shared-lib/dto/index';
|
|
5
5
|
export * from '@explorins/web3-types';
|
|
6
6
|
export type * from './shared-lib/errors/index';
|
|
7
|
+
export { type StructuredError, ErrorCategory } from './shared-lib/errors/base/error-classification-enums';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,wBAAwB,CAAC;AAG5C,cAAc,uBAAuB,CAAC;AAGtC,mBAAmB,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,wBAAwB,CAAC;AAG5C,cAAc,uBAAuB,CAAC;AAGtC,mBAAmB,2BAA2B,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -16,12 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.ErrorCategory = void 0;
|
|
19
20
|
// Core domain contracts
|
|
20
21
|
__exportStar(require("./shared-lib/enum/index"), exports);
|
|
21
22
|
__exportStar(require("./shared-lib/types/index"), exports);
|
|
22
23
|
// Re-export web3 types for convenience
|
|
23
24
|
__exportStar(require("@explorins/web3-types"), exports);
|
|
24
|
-
|
|
25
|
+
var error_classification_enums_1 = require("./shared-lib/errors/base/error-classification-enums");
|
|
26
|
+
Object.defineProperty(exports, "ErrorCategory", { enumerable: true, get: function () { return error_classification_enums_1.ErrorCategory; } });
|
|
25
27
|
// Shared patterns (architecture components)
|
|
26
28
|
// export * from './shared-patterns/index';
|
|
27
29
|
// External consumers should only use the type exports and documented public APIs
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8FAA8F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8FAA8F;;;;;;;;;;;;;;;;;AAE9F,wBAAwB;AACxB,0DAAwC;AAExC,2DAAyC;AAGzC,uCAAuC;AACvC,wDAAsC;AAItC,kGAA0G;AAA3E,2HAAA,aAAa,OAAA;AAE5C,4CAA4C;AAC5C,2CAA2C;AAC3C,iFAAiF"}
|
|
@@ -26,13 +26,10 @@ export declare class FirebaseAuthenticationError extends SecurityError {
|
|
|
26
26
|
/**
|
|
27
27
|
* Error thrown when user has multiple contexts (businesses/tenants) and must explicitly select one.
|
|
28
28
|
* Provides the available options to help the client make the selection.
|
|
29
|
+
*
|
|
30
|
+
* Custom fields are placed in the `details` object following RFC 7807 best practices.
|
|
29
31
|
*/
|
|
30
32
|
export declare class MultipleContextSelectionRequiredError extends BusinessLogicError {
|
|
31
|
-
readonly availableOptions: Array<{
|
|
32
|
-
id: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
}>;
|
|
35
|
-
readonly contextType: string;
|
|
36
33
|
constructor(contextType: string, availableOptions: Array<{
|
|
37
34
|
id: string;
|
|
38
35
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI3E;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,QAAQ,EAAE,MAAM;CAS7B;AAED,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAS7C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,MAAM,CAAC,EAAE,MAAM;CAU5B;AAED,qBAAa,iBAAkB,SAAQ,aAAa;;CAUnD;AAED,qBAAa,qBAAsB,SAAQ,aAAa;;CAUvD;AAED,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CASxD;AAED
|
|
1
|
+
{"version":3,"file":"authentication-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI3E;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,QAAQ,EAAE,MAAM;CAS7B;AAED,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAS7C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,MAAM,CAAC,EAAE,MAAM;CAU5B;AAED,qBAAa,iBAAkB,SAAQ,aAAa;;CAUnD;AAED,qBAAa,qBAAsB,SAAQ,aAAa;;CAUvD;AAED,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CASxD;AAED;;;;;GAKG;AACH,qBAAa,qCAAsC,SAAQ,kBAAkB;gBAEzE,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAmBzD"}
|
|
@@ -51,14 +51,18 @@ exports.FirebaseAuthenticationError = FirebaseAuthenticationError;
|
|
|
51
51
|
/**
|
|
52
52
|
* Error thrown when user has multiple contexts (businesses/tenants) and must explicitly select one.
|
|
53
53
|
* Provides the available options to help the client make the selection.
|
|
54
|
+
*
|
|
55
|
+
* Custom fields are placed in the `details` object following RFC 7807 best practices.
|
|
54
56
|
*/
|
|
55
57
|
class MultipleContextSelectionRequiredError extends base_business_error_1.BusinessLogicError {
|
|
56
|
-
availableOptions;
|
|
57
|
-
contextType;
|
|
58
58
|
constructor(contextType, availableOptions) {
|
|
59
|
-
super('MULTIPLE_CONTEXT_SELECTION_REQUIRED', error_codes_1.ErrorDomains.AUTHENTICATION, `Multiple ${contextType}s available. Please specify ${contextType}Id in request.`, common_1.HttpStatus.BAD_REQUEST, `You have access to multiple ${contextType}s. Please select one.`, error_classification_enums_1.ErrorCategory.VALIDATION);
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
super('MULTIPLE_CONTEXT_SELECTION_REQUIRED', error_codes_1.ErrorDomains.AUTHENTICATION, `Multiple ${contextType}s available. Please specify ${contextType}Id in request.`, common_1.HttpStatus.BAD_REQUEST, `You have access to multiple ${contextType}s. Please select one.`, error_classification_enums_1.ErrorCategory.VALIDATION, false);
|
|
60
|
+
// Add custom details to the response
|
|
61
|
+
const response = this.getResponse();
|
|
62
|
+
response.details = {
|
|
63
|
+
contextType,
|
|
64
|
+
availableOptions
|
|
65
|
+
};
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
exports.MultipleContextSelectionRequiredError = MultipleContextSelectionRequiredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"authentication-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":";;;AAAA,2CAA2D;AAC3D,gEAA2E;AAC3E,gDAAgE;AAChE,mFAAmE;AAEnE;;GAEG;AACH,MAAa,2BAA4B,SAAQ,mCAAa;IAC5D,YAAY,QAAgB;QAC1B,KAAK,CACH,8BAAgB,CAAC,uBAAuB,EACxC,0BAAY,CAAC,cAAc,EAC3B,sCAAsC,QAAQ,0BAA0B,EACxE,mBAAU,CAAC,YAAY,EACvB,8BAA8B,CAC/B,CAAC;IACJ,CAAC;CACF;AAVD,kEAUC;AAED,MAAa,wBAAyB,SAAQ,mCAAa;IACzD,YAAY,MAAc,EAAE,QAAgB;QAC1C,KAAK,CACH,8BAAgB,CAAC,oBAAoB,EACrC,0BAAY,CAAC,cAAc,EAC3B,gDAAgD,MAAM,OAAO,QAAQ,EAAE,EACvE,mBAAU,CAAC,SAAS,EACpB,4CAA4C,CAC7C,CAAC;IACJ,CAAC;CACF;AAVD,4DAUC;AAED;;GAEG;AACH,MAAa,iBAAkB,SAAQ,mCAAa;IAClD,YAAY,MAAe;QACzB,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5C,KAAK,CACH,eAAe,EACf,0BAAY,CAAC,cAAc,EAC3B,kCAAkC,OAAO,EAAE,EAC3C,mBAAU,CAAC,YAAY,EACvB,+CAA+C,CAChD,CAAC;IACJ,CAAC;CACF;AAXD,8CAWC;AAED,MAAa,iBAAkB,SAAQ,mCAAa;IAClD;QACE,KAAK,CACH,eAAe,EACf,0BAAY,CAAC,cAAc,EAC3B,kCAAkC,EAClC,mBAAU,CAAC,YAAY,EACvB,gDAAgD,CACjD,CAAC;IACJ,CAAC;CACF;AAVD,8CAUC;AAED,MAAa,qBAAsB,SAAQ,mCAAa;IACtD;QACE,KAAK,CACH,eAAe,EACf,0BAAY,CAAC,cAAc,EAC3B,uCAAuC,EACvC,mBAAU,CAAC,YAAY,EACvB,qDAAqD,CACtD,CAAC;IACJ,CAAC;CACF;AAVD,sDAUC;AAED,MAAa,2BAA4B,SAAQ,mCAAa;IAC5D,YAAY,iBAAyB,EAAE,OAAgB;QACrD,KAAK,CACH,qBAAqB,EACrB,0BAAY,CAAC,cAAc,EAC3B,OAAO,IAAI,kCAAkC,iBAAiB,EAAE,EAChE,mBAAU,CAAC,YAAY,EACvB,oDAAoD,CACrD,CAAC;IACJ,CAAC;CACF;AAVD,kEAUC;AAED;;;;;GAKG;AACH,MAAa,qCAAsC,SAAQ,wCAAkB;IAC3E,YACE,WAAmB,EACnB,gBAAsD;QAEtD,KAAK,CACH,qCAAqC,EACrC,0BAAY,CAAC,cAAc,EAC3B,YAAY,WAAW,+BAA+B,WAAW,gBAAgB,EACjF,mBAAU,CAAC,WAAW,EACtB,+BAA+B,WAAW,uBAAuB,EACjE,0CAAa,CAAC,UAAU,EACxB,KAAK,CACN,CAAC;QAEF,qCAAqC;QACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAS,CAAC;QAC3C,QAAQ,CAAC,OAAO,GAAG;YACjB,WAAW;YACX,gBAAgB;SACjB,CAAC;IACJ,CAAC;CACF;AAtBD,sFAsBC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export * from './shared-lib/types/index';
|
|
|
4
4
|
export type * from './shared-lib/dto/index';
|
|
5
5
|
export * from '@explorins/web3-types';
|
|
6
6
|
export type * from './shared-lib/errors/index';
|
|
7
|
+
export { type StructuredError, ErrorCategory } from './shared-lib/errors/base/error-classification-enums';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,wBAAwB,CAAC;AAG5C,cAAc,uBAAuB,CAAC;AAGtC,mBAAmB,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,wBAAwB,CAAC;AAG5C,cAAc,uBAAuB,CAAC;AAGtC,mBAAmB,2BAA2B,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export * from './shared-lib/enum/index.js';
|
|
|
5
5
|
export * from './shared-lib/types/index.js';
|
|
6
6
|
// Re-export web3 types for convenience
|
|
7
7
|
export * from '@explorins/web3-types';
|
|
8
|
-
|
|
8
|
+
export { ErrorCategory } from './shared-lib/errors/base/error-classification-enums.js';
|
|
9
9
|
// Shared patterns (architecture components)
|
|
10
10
|
// export * from './shared-patterns/index.js';
|
|
11
11
|
// External consumers should only use the type exports and documented public APIs
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8FAA8F;AAE9F,wBAAwB;AACxB,cAAc,yBAAyB,CAAC;AAExC,cAAc,0BAA0B,CAAC;AAGzC,uCAAuC;AACvC,cAAc,uBAAuB,CAAC;AAItC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8FAA8F;AAE9F,wBAAwB;AACxB,cAAc,yBAAyB,CAAC;AAExC,cAAc,0BAA0B,CAAC;AAGzC,uCAAuC;AACvC,cAAc,uBAAuB,CAAC;AAItC,OAAO,EAAwB,aAAa,EAAE,MAAM,qDAAqD,CAAC;AAE1G,4CAA4C;AAC5C,2CAA2C;AAC3C,iFAAiF"}
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsOptional, IsString, IsEnum } from "class-validator";
|
|
9
|
-
import { AccountOwnerType } from "../enum";
|
|
9
|
+
import { AccountOwnerType } from "../enum.js";
|
|
10
10
|
/**
|
|
11
11
|
* Standard Account Identification for Transaction Participants
|
|
12
12
|
* Supports multiple identification methods with auto-detection
|
|
@@ -5,7 +5,7 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { AdminType } from "../../enum/admin-type.enum";
|
|
8
|
+
import { AdminType } from "../../enum/admin-type.enum.js";
|
|
9
9
|
import { TenantDTO } from "./../tenant.js";
|
|
10
10
|
export class AdminDTO {
|
|
11
11
|
id = '';
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsString, IsOptional } from "class-validator";
|
|
9
|
-
import { AccountOwnerType } from "../../enum";
|
|
9
|
+
import { AccountOwnerType } from "../../enum.js";
|
|
10
10
|
export class GroupByExpressionDTO {
|
|
11
11
|
expression;
|
|
12
12
|
alias;
|
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
9
9
|
import { Type } from "class-transformer";
|
|
10
|
-
import { UserDTO } from "../user.dto";
|
|
11
|
-
import { BusinessDTO } from "../business";
|
|
12
|
-
import { AccountOwnerType } from "../../enum";
|
|
13
|
-
import { AdminDTO } from "../admin";
|
|
10
|
+
import { UserDTO } from "../user.dto.js";
|
|
11
|
+
import { BusinessDTO } from "../business.js";
|
|
12
|
+
import { AccountOwnerType } from "../../enum.js";
|
|
13
|
+
import { AdminDTO } from "../admin.js";
|
|
14
14
|
/**
|
|
15
15
|
* Auth Context DTO
|
|
16
16
|
*
|
|
@@ -5,7 +5,7 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { MembershipRole } from "../../enum/membership-role.enum";
|
|
8
|
+
import { MembershipRole } from "../../enum/membership-role.enum.js";
|
|
9
9
|
/**
|
|
10
10
|
* Business Membership DTO
|
|
11
11
|
*
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { Type } from "class-transformer";
|
|
9
|
-
import { TokenBalanceDTO } from "../token/token-balance.dto";
|
|
9
|
+
import { TokenBalanceDTO } from "../token/token-balance.dto.js";
|
|
10
10
|
import { BusinessTypeDTO } from "./business-type.dto.js";
|
|
11
11
|
export class BusinessDTO {
|
|
12
12
|
id = '';
|
|
@@ -5,7 +5,7 @@ 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 { BusinessDTO } from "../business/business.dto";
|
|
8
|
+
import { BusinessDTO } from "../business/business.dto.js";
|
|
9
9
|
export class CampaignBusinessEngagementDTO {
|
|
10
10
|
id = '';
|
|
11
11
|
shortDescription = null;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { CampaignBusinessEngagementDTO } from "./campaign-business-engagement.dto.js";
|
|
9
9
|
import { CampaignTriggerDTO } from "./campaignTrigger.dto.js";
|
|
10
|
-
import { TokenUnitDTO } from "../token/token-unit.dto";
|
|
10
|
+
import { TokenUnitDTO } from "../token/token-unit.dto.js";
|
|
11
11
|
import { TriggerSourceDTO } from "./trigger-source.dto.js";
|
|
12
12
|
export class CampaignDTO {
|
|
13
13
|
name = null;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsOptional, IsUUID, IsObject, IsNumber, IsString } from 'class-validator';
|
|
9
|
-
// import { uniqueUserIdentifierKeys } from "../../types/unique-user-identifier-keys";
|
|
9
|
+
// import { uniqueUserIdentifierKeys } from "../../types/unique-user-identifier-keys.js";
|
|
10
10
|
export class CampaignClaimRequestDTO {
|
|
11
11
|
triggerSourceId;
|
|
12
12
|
metadata;
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString, IsOptional, IsNumber, IsEnum, IsArray, ValidateNested, ValidateIf } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { CampaignTriggerType } from "../../enum/campaign/campaignTriggerType.enum";
|
|
10
|
+
import { CampaignTriggerType } from "../../enum/campaign/campaignTriggerType.enum.js";
|
|
11
11
|
import { CampaignTriggerConditionDTO } from "./campaignTriggerCondition.dto.js";
|
|
12
|
-
import { SourceLogicType } from "../../enum/campaign/trigger-source-type.enum";
|
|
12
|
+
import { SourceLogicType } from "../../enum/campaign/trigger-source-type.enum.js";
|
|
13
13
|
export class CampaignTriggerCreateRequestDTO {
|
|
14
14
|
name = '';
|
|
15
15
|
description;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsEnum, IsString } from 'class-validator';
|
|
9
|
-
import { CampaignConditionType } from "../../enum/campaign/campaignConditionType.enum";
|
|
9
|
+
import { CampaignConditionType } from "../../enum/campaign/campaignConditionType.enum.js";
|
|
10
10
|
export class CampaignTriggerConditionDTO {
|
|
11
11
|
conditionType = CampaignConditionType.EQUALS;
|
|
12
12
|
value = '';
|
|
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { CampaignDTO } from "./campaign.dto.js";
|
|
9
|
-
import { BusinessDTO } from "../business/business.dto";
|
|
10
|
-
import { UserDTO } from "../user.dto";
|
|
9
|
+
import { BusinessDTO } from "../business/business.dto.js";
|
|
10
|
+
import { UserDTO } from "../user.dto.js";
|
|
11
11
|
export class CampaignClaimDTO {
|
|
12
12
|
id = '';
|
|
13
13
|
createdAt = null;
|
|
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsEnum, IsString, IsOptional, IsObject, IsUUID, ValidateIf } from 'class-validator';
|
|
9
|
-
import { UsageAnalyticsDTO } from "../analytics/usage-analytics.dto";
|
|
10
|
-
import { TriggerSourceType } from "../../enum/campaign/trigger-source-type.enum";
|
|
9
|
+
import { UsageAnalyticsDTO } from "../analytics/usage-analytics.dto.js";
|
|
10
|
+
import { TriggerSourceType } from "../../enum/campaign/trigger-source-type.enum.js";
|
|
11
11
|
export class TriggerSourceCreateRequestDTO {
|
|
12
12
|
type = TriggerSourceType.QR_CODE;
|
|
13
13
|
name = '';
|
|
@@ -5,8 +5,8 @@ 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 { ErrorCategory } from "../errors/base/error-classification-enums";
|
|
9
|
-
import { CommonErrorCodes } from "../errors/error-codes";
|
|
8
|
+
import { ErrorCategory } from "../errors/base/error-classification-enums.js";
|
|
9
|
+
import { CommonErrorCodes } from "../errors/error-codes.js";
|
|
10
10
|
/**
|
|
11
11
|
* Error details object for API responses
|
|
12
12
|
*
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { Type } from 'class-transformer';
|
|
9
9
|
import { IsOptional, IsInt, Min, Max, IsEnum, IsDateString } from 'class-validator';
|
|
10
|
-
import { SortOrder } from '../../enum/sort-order.enum';
|
|
10
|
+
import { SortOrder } from '../../enum/sort-order.enum.js';
|
|
11
11
|
/**
|
|
12
12
|
* ✅ GENERIC: Base pagination DTO for HTTP requests
|
|
13
13
|
* Implements common pagination validation and documentation
|
|
@@ -5,7 +5,7 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { PurchaseCurrency } from "../../enum/purchase";
|
|
8
|
+
import { PurchaseCurrency } from "../../enum/purchase.js";
|
|
9
9
|
export class PurchaseDTO {
|
|
10
10
|
id = '';
|
|
11
11
|
stripePaymentIntentId = '';
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsNumber, IsEnum } from 'class-validator';
|
|
9
|
-
import { PurchaseCurrency } from "../../enum/purchase";
|
|
9
|
+
import { PurchaseCurrency } from "../../enum/purchase.js";
|
|
10
10
|
export class PurchaseTypeCreateRequestDTO {
|
|
11
11
|
conversionRate = 0;
|
|
12
12
|
currency = PurchaseCurrency.EUR;
|
|
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { RedemptionTypeDTO } from "./redemptionType.dto.js";
|
|
9
|
-
import { TokenUnitDTO } from "../token/token-unit.dto";
|
|
10
|
-
import { UserStatusTypeDTO } from "../user-status-type.dto";
|
|
11
|
-
import { ItemSupply } from "../item-supply.dto";
|
|
9
|
+
import { TokenUnitDTO } from "../token/token-unit.dto.js";
|
|
10
|
+
import { UserStatusTypeDTO } from "../user-status-type.dto.js";
|
|
11
|
+
import { ItemSupply } from "../item-supply.dto.js";
|
|
12
12
|
export class RedemptionDTO {
|
|
13
13
|
id = '';
|
|
14
14
|
description = null;
|
|
@@ -5,8 +5,8 @@ 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 { TransactionRequestResponseDTO } from "../transaction";
|
|
9
|
-
import { RedemptionRedeemStatus } from "../../enum";
|
|
8
|
+
import { TransactionRequestResponseDTO } from "../transaction.js";
|
|
9
|
+
import { RedemptionRedeemStatus } from "../../enum.js";
|
|
10
10
|
export class RedemptionRedeemDTO {
|
|
11
11
|
id = '';
|
|
12
12
|
userId = '';
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsEnum, IsNotEmpty, IsString, IsOptional, ValidateNested } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { AccountOwnerType } from '../../enum/owner-type.enum';
|
|
11
|
-
// import { SigningAccountProvider } from '../../enum/signing-account-provider.enum';
|
|
12
|
-
// import { NetworkType } from '../../enum/crypto.enum';
|
|
10
|
+
import { AccountOwnerType } from '../../enum/owner-type.enum.js';
|
|
11
|
+
// import { SigningAccountProvider } from '../../enum/signing-account-provider.enum.js';
|
|
12
|
+
// import { NetworkType } from '../../enum/crypto.enum.js';
|
|
13
13
|
export class CreateSigningAccountRequestDTO {
|
|
14
14
|
ownerType = AccountOwnerType.USER;
|
|
15
15
|
ownerId = '';
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { AccountOwnerType, NetworkType, SigningAccountStatus } from "../../enum";
|
|
7
|
+
import { AccountOwnerType, NetworkType, SigningAccountStatus } from "../../enum.js";
|
|
8
8
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
9
9
|
export class SigningAccountDTO {
|
|
10
10
|
id = '';
|
|
@@ -5,7 +5,7 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { WalletManagementType } from "../../enum/wallet.enum";
|
|
8
|
+
import { WalletManagementType } from "../../enum/wallet.enum.js";
|
|
9
9
|
export class TenantPublicDTO {
|
|
10
10
|
projectName = '';
|
|
11
11
|
acronym = '';
|
|
@@ -5,7 +5,7 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { NativeTokenTypes } from "../../types/native-token.type";
|
|
8
|
+
import { NativeTokenTypes } from "../../types/native-token.type.js";
|
|
9
9
|
export class TokenBalanceDTO {
|
|
10
10
|
contractAddress = '';
|
|
11
11
|
chainId = 0;
|
|
@@ -5,7 +5,7 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { NativeTokenTypes } from "../../types/native-token.type";
|
|
8
|
+
import { NativeTokenTypes } from "../../types/native-token.type.js";
|
|
9
9
|
export class TokenTypeDTO {
|
|
10
10
|
nativeTokenType = NativeTokenTypes.ERC20;
|
|
11
11
|
name;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { TokenMetadataDTO } from "./token-metadata.dto.js";
|
|
9
|
-
import { NativeTokenTypes } from "../../types/native-token.type";
|
|
9
|
+
import { NativeTokenTypes } from "../../types/native-token.type.js";
|
|
10
10
|
export class TokenDTO {
|
|
11
11
|
id = '';
|
|
12
12
|
contractAddress = '';
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsOptional, IsBoolean, IsString, IsNotEmpty, IsNumber, IsEnum, IsUrl } from 'class-validator';
|
|
9
|
-
import { NativeTokenTypes } from "../../types/native-token.type";
|
|
9
|
+
import { NativeTokenTypes } from "../../types/native-token.type.js";
|
|
10
10
|
export class TokenUpdateRequestDTO {
|
|
11
11
|
isGallery;
|
|
12
12
|
name;
|
|
@@ -8,9 +8,9 @@ import { IsOptional, IsIn, IsNumber, IsString, IsObject, IsDateString, Min, Max,
|
|
|
8
8
|
import { Transform, Type } from 'class-transformer';
|
|
9
9
|
import { ApiProperty, ApiPropertyOptional, OmitType, PartialType } from '@nestjs/swagger';
|
|
10
10
|
import { TransactionDTO } from './transaction.dto.js';
|
|
11
|
-
import { SortOrder, AccountOwnerType } from '../../enum';
|
|
12
|
-
import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type';
|
|
13
|
-
import { GroupByExpressionDTO } from '../analytics/group-by-expression.dto';
|
|
11
|
+
import { SortOrder, AccountOwnerType } from '../../enum.js';
|
|
12
|
+
import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type.js';
|
|
13
|
+
import { GroupByExpressionDTO } from '../analytics/group-by-expression.dto.js';
|
|
14
14
|
// Define the Filters DTO class first so it can be used in the Request DTO
|
|
15
15
|
// Uses OmitType and PartialType to create a type-safe definition that Swagger can understand
|
|
16
16
|
export class TransactionAnalyticsFiltersDTO extends PartialType(OmitType(TransactionDTO, ['createdAt', 'updatedAt'])) {
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { UserUploadDataDto } from "../userUploadData.dto";
|
|
7
|
+
import { UserUploadDataDto } from "../userUploadData.dto.js";
|
|
8
8
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
10
|
import { IsArray, ValidateNested, IsOptional, IsNumber, IsString, MinLength, ArrayMinSize } from 'class-validator';
|
|
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsOptional, IsString, IsIn } from 'class-validator';
|
|
9
|
-
import { NativeTokenTypes } from '../../types';
|
|
10
|
-
import { Web3TransactionType, TransactionRole } from '../../enum';
|
|
11
|
-
import { BaseFiltersDTO, BasePaginationRequestDTO } from '../pagination/pagination.request.dto';
|
|
9
|
+
import { NativeTokenTypes } from '../../types.js';
|
|
10
|
+
import { Web3TransactionType, TransactionRole } from '../../enum.js';
|
|
11
|
+
import { BaseFiltersDTO, BasePaginationRequestDTO } from '../pagination/pagination.request.dto.js';
|
|
12
12
|
import { Transform } from 'class-transformer';
|
|
13
13
|
const TRANSACTION_SORT_FIELDS = [
|
|
14
14
|
'createdAt',
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { TransactionTriggerProcessType } from "../../enum/transaction-trigger-process-type.enum";
|
|
7
|
+
import { TransactionTriggerProcessType } from "../../enum/transaction-trigger-process-type.enum.js";
|
|
8
8
|
import { ApiProperty } from "@nestjs/swagger";
|
|
9
9
|
export class TransactionTriggerProcessDTO {
|
|
10
10
|
type = TransactionTriggerProcessType.PURCHASE;
|
|
@@ -5,11 +5,11 @@ 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 { Web3TransactionType } from "../../enum/transaction-type.enum";
|
|
9
|
-
import { TransactionStatus } from "../../enum/transaction-status.enum";
|
|
10
|
-
import { TransactionTriggerProcessType } from "../../enum/transaction-trigger-process-type.enum";
|
|
11
|
-
import { NativeTokenTypes } from "../../types/native-token.type";
|
|
12
|
-
import { AccountOwnerType } from "../../enum";
|
|
8
|
+
import { Web3TransactionType } from "../../enum/transaction-type.enum.js";
|
|
9
|
+
import { TransactionStatus } from "../../enum/transaction-status.enum.js";
|
|
10
|
+
import { TransactionTriggerProcessType } from "../../enum/transaction-trigger-process-type.enum.js";
|
|
11
|
+
import { NativeTokenTypes } from "../../types/native-token.type.js";
|
|
12
|
+
import { AccountOwnerType } from "../../enum.js";
|
|
13
13
|
export class TransactionDTO {
|
|
14
14
|
amount = 0;
|
|
15
15
|
id = '';
|
|
@@ -7,15 +7,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { Type } from 'class-transformer';
|
|
9
9
|
import { IsEnum, IsNumber, IsOptional, ValidateNested, IsNotEmpty, IsUUID, IsString } from 'class-validator';
|
|
10
|
-
import { Web3TransactionType } from "../../enum/transaction-type.enum";
|
|
11
|
-
import { TokenSelectorDTO } from "../token/token-selector.dto";
|
|
12
|
-
import { AccountSelectorDTO } from "../account-selector.dto";
|
|
10
|
+
import { Web3TransactionType } from "../../enum/transaction-type.enum.js";
|
|
11
|
+
import { TokenSelectorDTO } from "../token/token-selector.dto.js";
|
|
12
|
+
import { AccountSelectorDTO } from "../account-selector.dto.js";
|
|
13
13
|
import { TRANSACTION_FORMAT_DESCRIPTIONS, TRANSACTION_FORMATS } from '@explorins/web3-types';
|
|
14
14
|
import { TransactionDTO } from "./transaction.dto.js";
|
|
15
|
-
// import { SigningAccountDTO } from "../signing-account/signing-account.dto";
|
|
16
|
-
import { TransactionStatus } from "../../enum/transaction-status.enum";
|
|
15
|
+
// import { SigningAccountDTO } from "../signing-account/signing-account.dto.js";
|
|
16
|
+
import { TransactionStatus } from "../../enum/transaction-status.enum.js";
|
|
17
17
|
import { TransactionActionableDTO } from "./transaction-request-actionable.dto.js";
|
|
18
|
-
import { AccountOwnerType } from "../../enum";
|
|
18
|
+
import { AccountOwnerType } from "../../enum.js";
|
|
19
19
|
export class TransactionSubmissionRequestDTO {
|
|
20
20
|
transactionId = '';
|
|
21
21
|
type = TRANSACTION_FORMATS.LEGACY;
|
|
@@ -5,8 +5,8 @@ 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, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { WalletManagementType, WalletStatus } from "../enum/wallet.enum";
|
|
9
|
-
import { AccountOwnerType } from "../enum/owner-type.enum";
|
|
8
|
+
import { WalletManagementType, WalletStatus } from "../enum/wallet.enum.js";
|
|
9
|
+
import { AccountOwnerType } from "../enum/owner-type.enum.js";
|
|
10
10
|
export class PublicWalletDTO {
|
|
11
11
|
id = '';
|
|
12
12
|
ownerType = AccountOwnerType.USER;
|
|
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString, IsNumber, IsBoolean, IsEnum, IsOptional, IsUrl } from 'class-validator';
|
|
9
|
-
import { Web3ContractTypes } from "../enum/web3-contract-type.enum";
|
|
10
|
-
import { NativeTokenTypes } from "../types/native-token.type";
|
|
9
|
+
import { Web3ContractTypes } from "../enum/web3-contract-type.enum.js";
|
|
10
|
+
import { NativeTokenTypes } from "../types/native-token.type.js";
|
|
11
11
|
export var Web3ContractDeploymentStatus;
|
|
12
12
|
(function (Web3ContractDeploymentStatus) {
|
|
13
13
|
Web3ContractDeploymentStatus["COMPUTED"] = "COMPUTED";
|
|
@@ -26,13 +26,10 @@ export declare class FirebaseAuthenticationError extends SecurityError {
|
|
|
26
26
|
/**
|
|
27
27
|
* Error thrown when user has multiple contexts (businesses/tenants) and must explicitly select one.
|
|
28
28
|
* Provides the available options to help the client make the selection.
|
|
29
|
+
*
|
|
30
|
+
* Custom fields are placed in the `details` object following RFC 7807 best practices.
|
|
29
31
|
*/
|
|
30
32
|
export declare class MultipleContextSelectionRequiredError extends BusinessLogicError {
|
|
31
|
-
readonly availableOptions: Array<{
|
|
32
|
-
id: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
}>;
|
|
35
|
-
readonly contextType: string;
|
|
36
33
|
constructor(contextType: string, availableOptions: Array<{
|
|
37
34
|
id: string;
|
|
38
35
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI3E;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,QAAQ,EAAE,MAAM;CAS7B;AAED,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAS7C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,MAAM,CAAC,EAAE,MAAM;CAU5B;AAED,qBAAa,iBAAkB,SAAQ,aAAa;;CAUnD;AAED,qBAAa,qBAAsB,SAAQ,aAAa;;CAUvD;AAED,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CASxD;AAED
|
|
1
|
+
{"version":3,"file":"authentication-errors.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI3E;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,QAAQ,EAAE,MAAM;CAS7B;AAED,qBAAa,wBAAyB,SAAQ,aAAa;gBAC7C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAS7C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,MAAM,CAAC,EAAE,MAAM;CAU5B;AAED,qBAAa,iBAAkB,SAAQ,aAAa;;CAUnD;AAED,qBAAa,qBAAsB,SAAQ,aAAa;;CAUvD;AAED,qBAAa,2BAA4B,SAAQ,aAAa;gBAChD,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CASxD;AAED;;;;;GAKG;AACH,qBAAa,qCAAsC,SAAQ,kBAAkB;gBAEzE,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAmBzD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { BusinessLogicError, SecurityError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
4
|
-
import { ErrorCategory } from '../base/error-classification-enums';
|
|
2
|
+
import { BusinessLogicError, SecurityError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
|
+
import { ErrorCategory } from '../base/error-classification-enums.js';
|
|
5
5
|
/**
|
|
6
6
|
* Authentication domain business errors
|
|
7
7
|
*/
|
|
@@ -42,14 +42,18 @@ export class FirebaseAuthenticationError extends SecurityError {
|
|
|
42
42
|
/**
|
|
43
43
|
* Error thrown when user has multiple contexts (businesses/tenants) and must explicitly select one.
|
|
44
44
|
* Provides the available options to help the client make the selection.
|
|
45
|
+
*
|
|
46
|
+
* Custom fields are placed in the `details` object following RFC 7807 best practices.
|
|
45
47
|
*/
|
|
46
48
|
export class MultipleContextSelectionRequiredError extends BusinessLogicError {
|
|
47
|
-
availableOptions;
|
|
48
|
-
contextType;
|
|
49
49
|
constructor(contextType, availableOptions) {
|
|
50
|
-
super('MULTIPLE_CONTEXT_SELECTION_REQUIRED', ErrorDomains.AUTHENTICATION, `Multiple ${contextType}s available. Please specify ${contextType}Id in request.`, HttpStatus.BAD_REQUEST, `You have access to multiple ${contextType}s. Please select one.`, ErrorCategory.VALIDATION);
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
super('MULTIPLE_CONTEXT_SELECTION_REQUIRED', ErrorDomains.AUTHENTICATION, `Multiple ${contextType}s available. Please specify ${contextType}Id in request.`, HttpStatus.BAD_REQUEST, `You have access to multiple ${contextType}s. Please select one.`, ErrorCategory.VALIDATION, false);
|
|
51
|
+
// Add custom details to the response
|
|
52
|
+
const response = this.getResponse();
|
|
53
|
+
response.details = {
|
|
54
|
+
contextType,
|
|
55
|
+
availableOptions
|
|
56
|
+
};
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
//# sourceMappingURL=authentication-errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"authentication-errors.js","sourceRoot":"","sources":["../../../../../src/shared-lib/errors/domains/authentication-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,aAAa;IAC5D,YAAY,QAAgB;QAC1B,KAAK,CACH,gBAAgB,CAAC,uBAAuB,EACxC,YAAY,CAAC,cAAc,EAC3B,sCAAsC,QAAQ,0BAA0B,EACxE,UAAU,CAAC,YAAY,EACvB,8BAA8B,CAC/B,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,aAAa;IACzD,YAAY,MAAc,EAAE,QAAgB;QAC1C,KAAK,CACH,gBAAgB,CAAC,oBAAoB,EACrC,YAAY,CAAC,cAAc,EAC3B,gDAAgD,MAAM,OAAO,QAAQ,EAAE,EACvE,UAAU,CAAC,SAAS,EACpB,4CAA4C,CAC7C,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAClD,YAAY,MAAe;QACzB,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5C,KAAK,CACH,eAAe,EACf,YAAY,CAAC,cAAc,EAC3B,kCAAkC,OAAO,EAAE,EAC3C,UAAU,CAAC,YAAY,EACvB,+CAA+C,CAChD,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAClD;QACE,KAAK,CACH,eAAe,EACf,YAAY,CAAC,cAAc,EAC3B,kCAAkC,EAClC,UAAU,CAAC,YAAY,EACvB,gDAAgD,CACjD,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,aAAa;IACtD;QACE,KAAK,CACH,eAAe,EACf,YAAY,CAAC,cAAc,EAC3B,uCAAuC,EACvC,UAAU,CAAC,YAAY,EACvB,qDAAqD,CACtD,CAAC;IACJ,CAAC;CACF;AAED,MAAM,OAAO,2BAA4B,SAAQ,aAAa;IAC5D,YAAY,iBAAyB,EAAE,OAAgB;QACrD,KAAK,CACH,qBAAqB,EACrB,YAAY,CAAC,cAAc,EAC3B,OAAO,IAAI,kCAAkC,iBAAiB,EAAE,EAChE,UAAU,CAAC,YAAY,EACvB,oDAAoD,CACrD,CAAC;IACJ,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,OAAO,qCAAsC,SAAQ,kBAAkB;IAC3E,YACE,WAAmB,EACnB,gBAAsD;QAEtD,KAAK,CACH,qCAAqC,EACrC,YAAY,CAAC,cAAc,EAC3B,YAAY,WAAW,+BAA+B,WAAW,gBAAgB,EACjF,UAAU,CAAC,WAAW,EACtB,+BAA+B,WAAW,uBAAuB,EACjE,aAAa,CAAC,UAAU,EACxB,KAAK,CACN,CAAC;QAEF,qCAAqC;QACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAS,CAAC;QAC3C,QAAQ,CAAC,OAAO,GAAG;YACjB,WAAW;YACX,gBAAgB;SACjB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Balance/Account domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError, ValidationError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError, ValidationError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Business domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError, ValidationError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError, ValidationError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
export class CampaignUserInfoRequiredError extends DomainRuleError {
|
|
5
5
|
constructor(requiredField) {
|
|
6
6
|
super(CommonErrorCodes.CAMPAIGN_USER_INFO_REQUIRED, ErrorDomains.CAMPAIGN, `Campaign requires missing user info: ${requiredField}`, HttpStatus.BAD_REQUEST, 'Please complete your profile information to claim this campaign');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Contract domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError, ValidationError, TechnicalError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError, ValidationError, TechnicalError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Signing Account domain business errors
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { TechnicalError, InfrastructureError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { TechnicalError, InfrastructureError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* System domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { BusinessLogicError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { BusinessLogicError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Tenant domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError, ValidationError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError, ValidationError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Token domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { ValidationError, DomainRuleError, TechnicalError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { ValidationError, DomainRuleError, TechnicalError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Transaction domain business errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Trigger Source domain errors
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* User domain business errors
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValidationError } from '../base-business-error';
|
|
2
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
1
|
+
import { ValidationError } from '../base-business-error.js';
|
|
2
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
3
3
|
/**
|
|
4
4
|
* Generic validation errors used across multiple domains
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { DomainRuleError, TechnicalError } from '../base-business-error';
|
|
3
|
-
import { CommonErrorCodes, ErrorDomains } from '../error-codes';
|
|
2
|
+
import { DomainRuleError, TechnicalError } from '../base-business-error.js';
|
|
3
|
+
import { CommonErrorCodes, ErrorDomains } from '../error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Wallet domain business errors
|
|
6
6
|
*/
|
|
@@ -8,7 +8,7 @@ import { Type } from "class-transformer";
|
|
|
8
8
|
import { IsEnum, IsNotEmpty, IsString, IsOptional, ValidateNested } from "class-validator";
|
|
9
9
|
import { AccountOwnerType } from "./../enum.js";
|
|
10
10
|
import { Address } from "./address.value-object.js";
|
|
11
|
-
import { Errors } from '../../shared-patterns/errors/error-factory';
|
|
11
|
+
import { Errors } from '../../shared-patterns/errors/error-factory.js';
|
|
12
12
|
export class AccountSelectorVo {
|
|
13
13
|
static fromDTO(selector) {
|
|
14
14
|
// Create the appropriate AccountSelector based on accountType
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { IsNotEmpty, IsNumber, IsString, ValidateNested, IsOptional, IsEnum, IsObject } from 'class-validator';
|
|
8
8
|
import { Type } from 'class-transformer';
|
|
9
|
-
import { Web3TransactionType } from '../enum/transaction-type.enum';
|
|
9
|
+
import { Web3TransactionType } from '../enum/transaction-type.enum.js';
|
|
10
10
|
import { AccountSelectorVo } from './account-selector.vo.js';
|
|
11
11
|
/**
|
|
12
12
|
* Token Transaction Entity Reference Input VO
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { IsNotEmpty, IsNumber, IsString, ValidateNested, IsOptional, IsEnum, IsObject, IsArray } from 'class-validator';
|
|
8
8
|
import { Type } from 'class-transformer';
|
|
9
|
-
import { Web3TransactionType } from '../enum/transaction-type.enum';
|
|
9
|
+
import { Web3TransactionType } from '../enum/transaction-type.enum.js';
|
|
10
10
|
import { Address } from './address.value-object.js';
|
|
11
11
|
export class TokenTransactionInputDataVo {
|
|
12
12
|
transactionId;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// Import directly from source files (not the barrel which only exports types)
|
|
2
|
-
import { BusinessNotFoundError, BusinessNotMinterError, CampaignNotFoundError, MembershipNotFoundError, MembershipAlreadyExistsError, MembershipLastOwnerError, GeographicRestrictionError, LocationVerificationRequiredError, RedemptionLimitReachedError, UserStatusRestrictedError, } from '../../shared-lib/errors/domains/business-errors';
|
|
3
|
-
import { UserNotFoundError, } from '../../shared-lib/errors/domains/user-errors';
|
|
4
|
-
import { TokenNotFoundError, TokenNotActiveError, TokenIdRequiredError, TokenTypeNotFoundError, TokenUnitNotFoundError, } from '../../shared-lib/errors/domains/token-errors';
|
|
5
|
-
import { TransactionNotFoundError, TransactionAlreadyCompletedError, TransactionNotPendingError, TransactionValidationError, UnexpectedValidationScenarioError, TransactionExpiredError, } from '../../shared-lib/errors/domains/transaction-errors';
|
|
6
|
-
import { AuthenticationRequiredError, InvalidTokenError, TokenExpiredError, AuthorizationFailedError, MultipleContextSelectionRequiredError, } from '../../shared-lib/errors/domains/authentication-errors';
|
|
7
|
-
import { InsufficientBalanceError, } from '../../shared-lib/errors/domains/balance-errors';
|
|
8
|
-
import { InvalidInputError, RequiredFieldError, InvalidFormatError, } from '../../shared-lib/errors/domains/validation-errors';
|
|
9
|
-
import { SystemError, ExternalServiceError, ConfigurationMissingError, } from '../../shared-lib/errors/domains/system-errors';
|
|
10
|
-
import { TriggerSourceNotFoundError, } from '../../shared-lib/errors/domains/trigger-source-errors';
|
|
11
|
-
import { SigningAccountValidationError, SigningAccountNotFoundError, SigningAccountAlreadyExistsError, KeyGenerationError, } from '../../shared-lib/errors/domains/signing-account-errors';
|
|
12
|
-
import { WalletNotFoundError, WalletMissingSigningError, SmartWalletProcessingError, } from '../../shared-lib/errors/domains/wallet-errors';
|
|
13
|
-
import { TenantNotFoundError, } from '../../shared-lib/errors/domains/tenant-errors';
|
|
14
|
-
import { CampaignUserInfoRequiredError, CampaignBusinessRequiredError, CampaignConditionNotMetError, CampaignAlreadyClaimedError, CampaignNoTriggerError, CampaignLocationRequiredError, CampaignDistanceExceededError, CampaignNotActiveError, CampaignEndedError, CampaignNotStartedError, CampaignClaimLimitReachedError, CampaignCooldownActiveError, CampaignDailyLimitReachedError, } from '../../shared-lib/errors/domains/campaign-errors';
|
|
2
|
+
import { BusinessNotFoundError, BusinessNotMinterError, CampaignNotFoundError, MembershipNotFoundError, MembershipAlreadyExistsError, MembershipLastOwnerError, GeographicRestrictionError, LocationVerificationRequiredError, RedemptionLimitReachedError, UserStatusRestrictedError, } from '../../shared-lib/errors/domains/business-errors.js';
|
|
3
|
+
import { UserNotFoundError, } from '../../shared-lib/errors/domains/user-errors.js';
|
|
4
|
+
import { TokenNotFoundError, TokenNotActiveError, TokenIdRequiredError, TokenTypeNotFoundError, TokenUnitNotFoundError, } from '../../shared-lib/errors/domains/token-errors.js';
|
|
5
|
+
import { TransactionNotFoundError, TransactionAlreadyCompletedError, TransactionNotPendingError, TransactionValidationError, UnexpectedValidationScenarioError, TransactionExpiredError, } from '../../shared-lib/errors/domains/transaction-errors.js';
|
|
6
|
+
import { AuthenticationRequiredError, InvalidTokenError, TokenExpiredError, AuthorizationFailedError, MultipleContextSelectionRequiredError, } from '../../shared-lib/errors/domains/authentication-errors.js';
|
|
7
|
+
import { InsufficientBalanceError, } from '../../shared-lib/errors/domains/balance-errors.js';
|
|
8
|
+
import { InvalidInputError, RequiredFieldError, InvalidFormatError, } from '../../shared-lib/errors/domains/validation-errors.js';
|
|
9
|
+
import { SystemError, ExternalServiceError, ConfigurationMissingError, } from '../../shared-lib/errors/domains/system-errors.js';
|
|
10
|
+
import { TriggerSourceNotFoundError, } from '../../shared-lib/errors/domains/trigger-source-errors.js';
|
|
11
|
+
import { SigningAccountValidationError, SigningAccountNotFoundError, SigningAccountAlreadyExistsError, KeyGenerationError, } from '../../shared-lib/errors/domains/signing-account-errors.js';
|
|
12
|
+
import { WalletNotFoundError, WalletMissingSigningError, SmartWalletProcessingError, } from '../../shared-lib/errors/domains/wallet-errors.js';
|
|
13
|
+
import { TenantNotFoundError, } from '../../shared-lib/errors/domains/tenant-errors.js';
|
|
14
|
+
import { CampaignUserInfoRequiredError, CampaignBusinessRequiredError, CampaignConditionNotMetError, CampaignAlreadyClaimedError, CampaignNoTriggerError, CampaignLocationRequiredError, CampaignDistanceExceededError, CampaignNotActiveError, CampaignEndedError, CampaignNotStartedError, CampaignClaimLimitReachedError, CampaignCooldownActiveError, CampaignDailyLimitReachedError, } from '../../shared-lib/errors/domains/campaign-errors.js';
|
|
15
15
|
/**
|
|
16
16
|
* Universal Error Factory for NestJS Applications
|
|
17
17
|
*
|