@explorins/pers-shared 2.1.98 → 2.1.99
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/esm/browser.js +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/shared-lib/decorators/index.js +1 -1
- package/dist/esm/shared-lib/dto/account-selector.dto.js +2 -2
- package/dist/esm/shared-lib/dto/account-token-balances.dto.js +1 -1
- package/dist/esm/shared-lib/dto/admin/admin-create.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/admin/admin.dto.js +2 -2
- package/dist/esm/shared-lib/dto/admin/index.js +2 -2
- package/dist/esm/shared-lib/dto/ai/ai-generation-log.dto.js +2 -2
- package/dist/esm/shared-lib/dto/ai/ai-prompt-config.dto.js +1 -1
- package/dist/esm/shared-lib/dto/ai/index.js +2 -2
- package/dist/esm/shared-lib/dto/analytics/ai-analytics.dto.js +4 -4
- package/dist/esm/shared-lib/dto/analytics/base-analytics.dto.js +1 -1
- package/dist/esm/shared-lib/dto/analytics/business-ranking-analytics.dto.js +3 -3
- package/dist/esm/shared-lib/dto/analytics/campaign-claim-analytics-request.dto.js +5 -5
- package/dist/esm/shared-lib/dto/analytics/campaign-claim-analytics.dto.js +5 -5
- package/dist/esm/shared-lib/dto/analytics/group-by-expression.dto.js +2 -2
- package/dist/esm/shared-lib/dto/analytics/index.js +9 -9
- package/dist/esm/shared-lib/dto/analytics/retention-analytics.dto.js +3 -3
- package/dist/esm/shared-lib/dto/analytics/transaction-analytics.request.dto.js +6 -6
- package/dist/esm/shared-lib/dto/analytics/user-analytics.dto.js +1 -1
- package/dist/esm/shared-lib/dto/analytics/user-ranking-analytics.dto.js +3 -3
- package/dist/esm/shared-lib/dto/api-key/api-key-verification.dto.js +1 -1
- package/dist/esm/shared-lib/dto/api-key/api-key.dto.js +1 -1
- package/dist/esm/shared-lib/dto/api-key/index.js +3 -3
- package/dist/esm/shared-lib/dto/auth/auth.dto.js +5 -5
- package/dist/esm/shared-lib/dto/auth/index.js +2 -2
- package/dist/esm/shared-lib/dto/business/business-create.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business-membership.dto.js +4 -4
- package/dist/esm/shared-lib/dto/business/business-type.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business-update.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business.dto.js +3 -3
- package/dist/esm/shared-lib/dto/business/businessToggleActive.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/businessTypeCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/index.js +8 -8
- package/dist/esm/shared-lib/dto/campaign/campaign-business-engagement.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaign.dto.js +5 -5
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignTrigger.dto.js +4 -4
- package/dist/esm/shared-lib/dto/campaign/campaignTriggerCondition.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUpdate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js +6 -6
- 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/file/entity-storage-url.dto.js +3 -3
- package/dist/esm/shared-lib/dto/file/index.js +2 -2
- package/dist/esm/shared-lib/dto/index.js +36 -36
- package/dist/esm/shared-lib/dto/pagination/index.js +2 -2
- package/dist/esm/shared-lib/dto/pagination/pagination.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/purchase/index.js +9 -9
- package/dist/esm/shared-lib/dto/purchase/purchase.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseCreate.response.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseTokenUpdate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseType.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/index.js +5 -5
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js +4 -4
- package/dist/esm/shared-lib/dto/redemption/redemptionCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js +5 -5
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionType.dto.js +1 -1
- package/dist/esm/shared-lib/dto/signing-account/create-signing-account-request.dto.js +4 -4
- package/dist/esm/shared-lib/dto/signing-account/index.js +5 -5
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.js +1 -1
- package/dist/esm/shared-lib/dto/signing-account/update-signing-account.dto.js +1 -1
- package/dist/esm/shared-lib/dto/tenant/index.js +4 -4
- package/dist/esm/shared-lib/dto/tenant/tenant.dto.js +1 -1
- package/dist/esm/shared-lib/dto/tenant/tenantUpdate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/index.js +7 -7
- package/dist/esm/shared-lib/dto/token/token-balance.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token-metadata.dto.js +3 -3
- package/dist/esm/shared-lib/dto/token/token-selector.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token-type.dto.js +2 -2
- package/dist/esm/shared-lib/dto/token/token-unit.dto.js +2 -2
- package/dist/esm/shared-lib/dto/token/token.dto.js +2 -2
- package/dist/esm/shared-lib/dto/token/token.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/transaction/index.js +8 -8
- package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/transaction/transaction-pagination.request.dto.js +4 -4
- package/dist/esm/shared-lib/dto/transaction/transaction-trigger-process.dto.js +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.dto.js +6 -6
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.js +9 -9
- package/dist/esm/shared-lib/dto/user/index.js +3 -3
- package/dist/esm/shared-lib/dto/user/user.dto.js +3 -3
- package/dist/esm/shared-lib/dto/user/user.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/user/userUploadData.dto.js +1 -1
- package/dist/esm/shared-lib/dto/user-status-type.dto.js +1 -1
- package/dist/esm/shared-lib/dto/wallet.dto.js +2 -2
- package/dist/esm/shared-lib/dto/web3-contract.dto.js +3 -3
- package/dist/esm/shared-lib/enum/campaign/index.js +3 -3
- package/dist/esm/shared-lib/enum/index.js +28 -28
- package/dist/esm/shared-lib/enum/purchase/index.js +2 -2
- package/dist/esm/shared-lib/errors/base-business-error.js +1 -1
- package/dist/esm/shared-lib/errors/domains/authentication-errors.js +3 -3
- 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/errors/index.js +18 -18
- package/dist/esm/shared-lib/errors/technical-errors.js +2 -2
- package/dist/esm/shared-lib/interfaces/campaign/index.js +1 -1
- package/dist/esm/shared-lib/interfaces/index.js +21 -21
- package/dist/esm/shared-lib/types/index.js +15 -15
- package/dist/esm/shared-lib/value-objects/account-selector.vo.js +3 -3
- package/dist/esm/shared-lib/value-objects/address.value-object.js +1 -1
- package/dist/esm/shared-lib/value-objects/index.js +8 -8
- package/dist/esm/shared-lib/value-objects/token-balance.value-object.js +1 -1
- package/dist/esm/shared-lib/value-objects/token-transaction-entity-reference-input.vo.js +2 -2
- package/dist/esm/shared-lib/value-objects/token-transaction-input.vo.js +2 -2
- package/dist/esm/shared-patterns/errors/error-factory.js +13 -13
- package/dist/esm/shared-patterns/functions/helper.functions.js +2 -2
- package/package.json +1 -1
|
@@ -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,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 { IsNotEmpty, IsString, IsNumber, IsBoolean, IsEnum, IsUrl } from 'class-validator';
|
|
9
|
-
import { Web3ContractTypes } from "../enum/web3-contract-type.enum";
|
|
10
|
-
import { NativeTokenTypes } from "../types/native-token.type";
|
|
11
|
-
import { OptionalStrip, OptionalNullify } from '../decorators';
|
|
9
|
+
import { Web3ContractTypes } from "../enum/web3-contract-type.enum.js";
|
|
10
|
+
import { NativeTokenTypes } from "../types/native-token.type.js";
|
|
11
|
+
import { OptionalStrip, OptionalNullify } from '../decorators/index.js';
|
|
12
12
|
export var Web3ContractDeploymentStatus;
|
|
13
13
|
(function (Web3ContractDeploymentStatus) {
|
|
14
14
|
Web3ContractDeploymentStatus["COMPUTED"] = "COMPUTED";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./trigger-source-type.enum";
|
|
2
|
-
export * from "./campaignConditionType.enum";
|
|
3
|
-
export * from "./campaignTriggerType.enum";
|
|
1
|
+
export * from "./trigger-source-type.enum.js";
|
|
2
|
+
export * from "./campaignConditionType.enum.js";
|
|
3
|
+
export * from "./campaignTriggerType.enum.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
// Enums Barrel - Auto-exports all enums
|
|
2
|
-
export * from './transaction-role.enum';
|
|
3
|
-
export * from './transaction-type.enum';
|
|
4
|
-
export * from './transaction-status.enum';
|
|
5
|
-
export * from './transaction-trigger-process-type.enum';
|
|
6
|
-
export * from './api-key-type.enum';
|
|
7
|
-
export * from './admin-type.enum';
|
|
8
|
-
export * from './membership-role.enum';
|
|
9
|
-
export * from './web3-contract-type.enum';
|
|
10
|
-
export * from './owner-type.enum';
|
|
11
|
-
export * from './storageType.enum';
|
|
12
|
-
export * from './storageDataType.enum';
|
|
13
|
-
export * from './web3-master-wallet-type.enum';
|
|
14
|
-
export * from './signing-account-provider.enum';
|
|
15
|
-
export * from './signing-account-status.enum';
|
|
16
|
-
export * from './crypto.enum';
|
|
17
|
-
export * from './wallet.enum';
|
|
18
|
-
export * from './sort-order.enum';
|
|
19
|
-
export * from './process-record-status.enum';
|
|
20
|
-
export * from './file-upload-entity-type.enum';
|
|
21
|
-
export * from './signed-url-type.enum';
|
|
22
|
-
export * from './token-validity-type.enum';
|
|
23
|
-
export * from './balance-migration-type.enum';
|
|
24
|
-
export * from './purchase';
|
|
25
|
-
export * from './campaign';
|
|
26
|
-
export * from './ai-operation-type.enum';
|
|
27
|
-
export * from './ai-trigger-process-type.enum';
|
|
28
|
-
export * from './ai-analytics-metric.enum';
|
|
2
|
+
export * from './transaction-role.enum.js';
|
|
3
|
+
export * from './transaction-type.enum.js';
|
|
4
|
+
export * from './transaction-status.enum.js';
|
|
5
|
+
export * from './transaction-trigger-process-type.enum.js';
|
|
6
|
+
export * from './api-key-type.enum.js';
|
|
7
|
+
export * from './admin-type.enum.js';
|
|
8
|
+
export * from './membership-role.enum.js';
|
|
9
|
+
export * from './web3-contract-type.enum.js';
|
|
10
|
+
export * from './owner-type.enum.js';
|
|
11
|
+
export * from './storageType.enum.js';
|
|
12
|
+
export * from './storageDataType.enum.js';
|
|
13
|
+
export * from './web3-master-wallet-type.enum.js';
|
|
14
|
+
export * from './signing-account-provider.enum.js';
|
|
15
|
+
export * from './signing-account-status.enum.js';
|
|
16
|
+
export * from './crypto.enum.js';
|
|
17
|
+
export * from './wallet.enum.js';
|
|
18
|
+
export * from './sort-order.enum.js';
|
|
19
|
+
export * from './process-record-status.enum.js';
|
|
20
|
+
export * from './file-upload-entity-type.enum.js';
|
|
21
|
+
export * from './signed-url-type.enum.js';
|
|
22
|
+
export * from './token-validity-type.enum.js';
|
|
23
|
+
export * from './balance-migration-type.enum.js';
|
|
24
|
+
export * from './purchase/index.js';
|
|
25
|
+
export * from './campaign/index.js';
|
|
26
|
+
export * from './ai-operation-type.enum.js';
|
|
27
|
+
export * from './ai-trigger-process-type.enum.js';
|
|
28
|
+
export * from './ai-analytics-metric.enum.js';
|
|
29
29
|
// Error classification enum
|
|
30
|
-
export { ErrorCategory } from '../errors/base/error-classification-enums';
|
|
30
|
+
export { ErrorCategory } from '../errors/base/error-classification-enums.js';
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './purchase-status.enum';
|
|
2
|
-
export * from './purchase-currency.enum';
|
|
1
|
+
export * from './purchase-status.enum.js';
|
|
2
|
+
export * from './purchase-currency.enum.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpException, HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { ErrorCategory } from './base/error-classification-enums';
|
|
2
|
+
import { ErrorCategory } from './base/error-classification-enums.js';
|
|
3
3
|
/**
|
|
4
4
|
* Base class for business logic errors that should be surfaced to clients
|
|
5
5
|
* with meaningful error messages and appropriate HTTP status codes.
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// Base error classes and interfaces
|
|
2
|
-
export { BusinessLogicError, ValidationError, DomainRuleError, TechnicalError, InfrastructureError, SecurityError, RateLimitError, TimeoutError, UnknownError } from './base-business-error';
|
|
3
|
-
export * from './technical-errors';
|
|
4
|
-
export * from './domains/transaction-errors';
|
|
2
|
+
export { BusinessLogicError, ValidationError, DomainRuleError, TechnicalError, InfrastructureError, SecurityError, RateLimitError, TimeoutError, UnknownError } from './base-business-error.js';
|
|
3
|
+
export * from './technical-errors.js';
|
|
4
|
+
export * from './domains/transaction-errors.js';
|
|
5
5
|
// Error classification system
|
|
6
|
-
export * from './base/error-classification-enums';
|
|
6
|
+
export * from './base/error-classification-enums.js';
|
|
7
7
|
// Note: Error classification system moved to @explorins/pers-shared-patterns
|
|
8
8
|
// Error codes extracted from domain classes
|
|
9
|
-
export * from './error-codes';
|
|
9
|
+
export * from './error-codes.js';
|
|
10
10
|
// Domain-specific errors (organized by domain)
|
|
11
|
-
export * from './domains/token-errors';
|
|
12
|
-
export * from './domains/user-errors';
|
|
13
|
-
export * from './domains/wallet-errors';
|
|
14
|
-
export * from './domains/business-errors';
|
|
15
|
-
export * from './domains/balance-errors';
|
|
16
|
-
export * from './domains/contract-errors';
|
|
17
|
-
export * from './domains/system-errors';
|
|
18
|
-
export * from './domains/authentication-errors';
|
|
19
|
-
export * from './domains/signing-account-errors';
|
|
20
|
-
export * from './domains/validation-errors';
|
|
21
|
-
export * from './domains/tenant-errors';
|
|
22
|
-
export * from './domains/campaign-errors';
|
|
23
|
-
export * from './domains/trigger-source-errors';
|
|
11
|
+
export * from './domains/token-errors.js';
|
|
12
|
+
export * from './domains/user-errors.js';
|
|
13
|
+
export * from './domains/wallet-errors.js';
|
|
14
|
+
export * from './domains/business-errors.js';
|
|
15
|
+
export * from './domains/balance-errors.js';
|
|
16
|
+
export * from './domains/contract-errors.js';
|
|
17
|
+
export * from './domains/system-errors.js';
|
|
18
|
+
export * from './domains/authentication-errors.js';
|
|
19
|
+
export * from './domains/signing-account-errors.js';
|
|
20
|
+
export * from './domains/validation-errors.js';
|
|
21
|
+
export * from './domains/tenant-errors.js';
|
|
22
|
+
export * from './domains/campaign-errors.js';
|
|
23
|
+
export * from './domains/trigger-source-errors.js';
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpException, HttpStatus } from '@nestjs/common';
|
|
2
|
-
import { ErrorCategory } from './base/error-classification-enums';
|
|
3
|
-
import { CommonErrorCodes } from './error-codes';
|
|
2
|
+
import { ErrorCategory } from './base/error-classification-enums.js';
|
|
3
|
+
import { CommonErrorCodes } from './error-codes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Technical errors with meaningful messages that should be preserved
|
|
6
6
|
* Use for system errors that have specific, actionable messages but aren't business logic errors
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./trigger-settings.interface";
|
|
1
|
+
export * from "./trigger-settings.interface.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// Interfaces Barrel - Auto-exports all interfaces
|
|
2
|
-
export * from './auth-request-context.interface';
|
|
3
|
-
export * from './transaction-account-data.interface';
|
|
4
|
-
export * from './local-storage-item.interface';
|
|
5
|
-
export * from './token-storage-data.interface';
|
|
6
|
-
export * from './jwt.payload.interface';
|
|
7
|
-
export * from './user-upload-data.interface';
|
|
8
|
-
export * from './token-transaction-input-data.interface';
|
|
9
|
-
export * from './geolocation-result.interface';
|
|
10
|
-
export * from './wallet.interface';
|
|
11
|
-
export * from './polymorphic-owner.interface';
|
|
12
|
-
export * from './signer-verification.interface';
|
|
13
|
-
export * from './wallet-signing-scenario.interface';
|
|
14
|
-
export * from './base-pagination.interface';
|
|
15
|
-
export * from './group-by-expression.interface';
|
|
16
|
-
export * from './transaction-analytics-request.interface';
|
|
17
|
-
export * from './location-coordinates.interface';
|
|
18
|
-
export * from './transaction.interface';
|
|
19
|
-
export * from './counterfactual-wallet-response.interface';
|
|
20
|
-
export * from './campaign';
|
|
21
|
-
export * from './ai-prompt-config.interface';
|
|
22
|
-
export * from './balance-filter-options.interface';
|
|
2
|
+
export * from './auth-request-context.interface.js';
|
|
3
|
+
export * from './transaction-account-data.interface.js';
|
|
4
|
+
export * from './local-storage-item.interface.js';
|
|
5
|
+
export * from './token-storage-data.interface.js';
|
|
6
|
+
export * from './jwt.payload.interface.js';
|
|
7
|
+
export * from './user-upload-data.interface.js';
|
|
8
|
+
export * from './token-transaction-input-data.interface.js';
|
|
9
|
+
export * from './geolocation-result.interface.js';
|
|
10
|
+
export * from './wallet.interface.js';
|
|
11
|
+
export * from './polymorphic-owner.interface.js';
|
|
12
|
+
export * from './signer-verification.interface.js';
|
|
13
|
+
export * from './wallet-signing-scenario.interface.js';
|
|
14
|
+
export * from './base-pagination.interface.js';
|
|
15
|
+
export * from './group-by-expression.interface.js';
|
|
16
|
+
export * from './transaction-analytics-request.interface.js';
|
|
17
|
+
export * from './location-coordinates.interface.js';
|
|
18
|
+
export * from './transaction.interface.js';
|
|
19
|
+
export * from './counterfactual-wallet-response.interface.js';
|
|
20
|
+
export * from './campaign/index.js';
|
|
21
|
+
export * from './ai-prompt-config.interface.js';
|
|
22
|
+
export * from './balance-filter-options.interface.js';
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// Types Barrel - Auto-exports all type definitions
|
|
2
|
-
export * from './testnet-prefix';
|
|
3
|
-
export * from './unique-user-identifier-keys';
|
|
4
|
-
export * from './native-token.type';
|
|
5
|
-
export * from './analytics.type';
|
|
6
|
-
export * from './account-selector.type';
|
|
7
|
-
export * from './domains';
|
|
8
|
-
export * from './query-specification.types';
|
|
9
|
-
export * from './transaction-filters.type';
|
|
10
|
-
export * from './includable-relation.type';
|
|
11
|
-
export * from './transaction-include-relation.type';
|
|
12
|
-
export * from './campaign-include-relation.type';
|
|
13
|
-
export * from './campaign-claim-include-relation.type';
|
|
14
|
-
export * from './redemption-redeem-include-relation.type';
|
|
15
|
-
export * from './business-membership-include-relation.type';
|
|
16
|
-
export * from './user-include-relation.type';
|
|
2
|
+
export * from './testnet-prefix.js';
|
|
3
|
+
export * from './unique-user-identifier-keys.js';
|
|
4
|
+
export * from './native-token.type.js';
|
|
5
|
+
export * from './analytics.type.js';
|
|
6
|
+
export * from './account-selector.type.js';
|
|
7
|
+
export * from './domains.js';
|
|
8
|
+
export * from './query-specification.types.js';
|
|
9
|
+
export * from './transaction-filters.type.js';
|
|
10
|
+
export * from './includable-relation.type.js';
|
|
11
|
+
export * from './transaction-include-relation.type.js';
|
|
12
|
+
export * from './campaign-include-relation.type.js';
|
|
13
|
+
export * from './campaign-claim-include-relation.type.js';
|
|
14
|
+
export * from './redemption-redeem-include-relation.type.js';
|
|
15
|
+
export * from './business-membership-include-relation.type.js';
|
|
16
|
+
export * from './user-include-relation.type.js';
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { Type } from "class-transformer";
|
|
8
8
|
import { IsEnum, IsNotEmpty, IsString, IsOptional, ValidateNested } from "class-validator";
|
|
9
|
-
import { AccountOwnerType } from "./../enum";
|
|
10
|
-
import { Address } from "./address.value-object";
|
|
11
|
-
import { Errors } from '../../shared-patterns/errors/error-factory';
|
|
9
|
+
import { AccountOwnerType } from "./../enum/index.js";
|
|
10
|
+
import { Address } from "./address.value-object.js";
|
|
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
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Value Objects Barrel - Auto-exports all value objects
|
|
2
|
-
export * from './address.value-object';
|
|
3
|
-
export * from './token-balance.value-object';
|
|
4
|
-
export * from './account-token-balances.value-object';
|
|
5
|
-
export * from './token-unit.value-object';
|
|
2
|
+
export * from './address.value-object.js';
|
|
3
|
+
export * from './token-balance.value-object.js';
|
|
4
|
+
export * from './account-token-balances.value-object.js';
|
|
5
|
+
export * from './token-unit.value-object.js';
|
|
6
6
|
// These use decorators but server environment can handle reflect-metadata
|
|
7
|
-
export * from './token-transaction-input.vo';
|
|
8
|
-
export * from './token-transaction-entity-reference-input.vo';
|
|
9
|
-
export * from './signed-tx-data.vo';
|
|
10
|
-
export * from './account-selector.vo';
|
|
7
|
+
export * from './token-transaction-input.vo.js';
|
|
8
|
+
export * from './token-transaction-entity-reference-input.vo.js';
|
|
9
|
+
export * from './signed-tx-data.vo.js';
|
|
10
|
+
export * from './account-selector.vo.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,8 +6,8 @@ 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';
|
|
10
|
-
import { AccountSelectorVo } from './account-selector.vo';
|
|
9
|
+
import { Web3TransactionType } from '../enum/transaction-type.enum.js';
|
|
10
|
+
import { AccountSelectorVo } from './account-selector.vo.js';
|
|
11
11
|
/**
|
|
12
12
|
* Token Transaction Entity Reference Input VO
|
|
13
13
|
*
|
|
@@ -6,8 +6,8 @@ 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';
|
|
10
|
-
import { Address } from './address.value-object';
|
|
9
|
+
import { Web3TransactionType } from '../enum/transaction-type.enum.js';
|
|
10
|
+
import { Address } from './address.value-object.js';
|
|
11
11
|
export class TokenTransactionInputDataVo {
|
|
12
12
|
transactionId;
|
|
13
13
|
chainId;
|
|
@@ -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, CampaignGlobalLimitReachedError, CampaignGlobalDailyLimitReachedError, TriggerNotFoundError, ResourceAlreadyExistsError, ResourceInUseError, } 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, CampaignGlobalLimitReachedError, CampaignGlobalDailyLimitReachedError, TriggerNotFoundError, ResourceAlreadyExistsError, ResourceInUseError, } from '../../shared-lib/errors/domains/campaign-errors.js';
|
|
15
15
|
/**
|
|
16
16
|
* Universal Error Factory for NestJS Applications
|
|
17
17
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TokenValidityTypes } from '../../shared-lib/enum/token-validity-type.enum';
|
|
2
|
-
import { TokenStorageDataAttributesType } from '../../shared-lib/interfaces/token-storage-data.interface';
|
|
1
|
+
import { TokenValidityTypes } from '../../shared-lib/enum/token-validity-type.enum.js';
|
|
2
|
+
import { TokenStorageDataAttributesType } from '../../shared-lib/interfaces/token-storage-data.interface.js';
|
|
3
3
|
/**
|
|
4
4
|
* Parses a comma-separated string into an array of strings.
|
|
5
5
|
*
|