@explorins/pers-shared 2.1.73 → 2.1.74

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.
@@ -3,9 +3,9 @@
3
3
  * Uses barrel exports for automatic inclusion - no manual maintenance needed!
4
4
  */
5
5
  // Export enums - these are safe for browser use (barrel export)
6
- export * from './shared-lib/enum.js';
6
+ export * from './shared-lib/enum/index.js';
7
7
  // Export types and constants (runtime exports) - browser-safe only
8
- export * from './shared-lib/types.js';
8
+ export * from './shared-lib/types/index.js';
9
9
  // Re-export web3 types for convenience
10
10
  export * from '@explorins/web3-types';
11
11
  // Note: Backend-specific types (like TRANSACTION_FORMATS) are excluded from browser build
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // PERS Shared Contracts Library - Pure Data Contracts and Domain Vocabulary
2
2
  // 🌐 PUBLIC: Safe for external consumption - contains only DTOs, interfaces, types, and enums
3
3
  // Core domain contracts
4
- export * from './shared-lib/enum.js';
5
- export * from './shared-lib/types.js';
4
+ export * from './shared-lib/enum/index.js';
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';
@@ -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.js";
9
+ import { AccountOwnerType } from "../enum/index.js";
10
10
  /**
11
11
  * Standard Account Identification for Transaction Participants
12
12
  * Supports multiple identification methods with auto-detection
@@ -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 { AdminType } from "../../enum/admin-type.enum.js";
9
- import { TenantDTO } from "./../tenant.js";
9
+ import { TenantDTO } from "./../tenant/index.js";
10
10
  export class AdminDTO {
11
11
  id = '';
12
12
  email = '';
@@ -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.js";
9
+ import { AccountOwnerType } from "../../enum/index.js";
10
10
  export class GroupByExpressionDTO {
11
11
  expression;
12
12
  alias;
@@ -8,9 +8,9 @@ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
8
8
  import { IsNotEmpty, IsOptional, IsString, ValidateNested } from "class-validator";
9
9
  import { Type } from "class-transformer";
10
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";
11
+ import { BusinessDTO } from "../business/index.js";
12
+ import { AccountOwnerType } from "../../enum/index.js";
13
+ import { AdminDTO } from "../admin/index.js";
14
14
  /**
15
15
  * Auth Context DTO
16
16
  *
@@ -4,11 +4,11 @@
4
4
  export * from './analytics/group-by-expression.dto.js';
5
5
  export * from './analytics/usage-analytics.dto.js';
6
6
  // Auth DTOs
7
- export * from './auth.js';
7
+ export * from './auth/index.js';
8
8
  // Business DTOs
9
- export * from './business.js';
9
+ export * from './business/index.js';
10
10
  // Core DTOs
11
- export * from './tenant.js';
11
+ export * from './tenant/index.js';
12
12
  export * from './user.dto.js';
13
13
  export * from './user.request.dto.js';
14
14
  export * from './user-status-type.dto.js';
@@ -21,14 +21,14 @@ export * from './url.request.dto.js';
21
21
  export * from './tag.dto.js';
22
22
  export * from './wallet.dto.js';
23
23
  // Token DTOs
24
- export * from './token.js';
24
+ export * from './token/index.js';
25
25
  // Transaction DTOs
26
- export * from './transaction.js';
26
+ export * from './transaction/index.js';
27
27
  // Purchase DTOs
28
- export * from './purchase.js';
28
+ export * from './purchase/index.js';
29
29
  // Redemption DTOs
30
- export * from './redemption.js';
31
- export * from './api-key.js';
30
+ export * from './redemption/index.js';
31
+ export * from './api-key/index.js';
32
32
  // Campaign DTOs
33
33
  export * from './campaign/campaign.dto.js';
34
34
  export * from './campaign/campaignCreate.request.dto.js';
@@ -41,12 +41,12 @@ export * from './campaign/campaign-business-engagement.request.dto.js';
41
41
  export * from './campaign/campaign-business-engagement.dto.js';
42
42
  export * from './campaign/trigger-source.dto.js';
43
43
  // Signing Account DTOs
44
- export * from './signing-account.js';
44
+ export * from './signing-account/index.js';
45
45
  // Account Selector
46
46
  export * from './account-selector.dto.js';
47
47
  // Pagination
48
- export * from './pagination.js';
48
+ export * from './pagination/index.js';
49
49
  export * from './item-supply.dto.js';
50
50
  // Admin DTOs
51
- export * from './admin.js';
51
+ export * from './admin/index.js';
52
52
  //# sourceMappingURL=index.js.map
@@ -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.js";
8
+ import { PurchaseCurrency } from "../../enum/purchase/index.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.js";
9
+ import { PurchaseCurrency } from "../../enum/purchase/index.js";
10
10
  export class PurchaseTypeCreateRequestDTO {
11
11
  conversionRate = 0;
12
12
  currency = PurchaseCurrency.EUR;
@@ -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.js";
9
- import { RedemptionRedeemStatus } from "../../enum.js";
8
+ import { TransactionRequestResponseDTO } from "../transaction/index.js";
9
+ import { RedemptionRedeemStatus } from "../../enum/index.js";
10
10
  export class RedemptionRedeemDTO {
11
11
  id = '';
12
12
  userId = '';
@@ -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.js";
7
+ import { AccountOwnerType, NetworkType, SigningAccountStatus } from "../../enum/index.js";
8
8
  import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
9
9
  export class SigningAccountDTO {
10
10
  id = '';
@@ -8,7 +8,7 @@ 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.js';
11
+ import { SortOrder, AccountOwnerType } from '../../enum/index.js';
12
12
  import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type.js';
13
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
@@ -6,8 +6,8 @@ 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.js';
10
- import { Web3TransactionType, TransactionRole } from '../../enum.js';
9
+ import { NativeTokenTypes } from '../../types/index.js';
10
+ import { Web3TransactionType, TransactionRole } from '../../enum/index.js';
11
11
  import { BaseFiltersDTO, BasePaginationRequestDTO } from '../pagination/pagination.request.dto.js';
12
12
  import { Transform } from 'class-transformer';
13
13
  const TRANSACTION_SORT_FIELDS = [
@@ -9,7 +9,7 @@ import { Web3TransactionType } from "../../enum/transaction-type.enum.js";
9
9
  import { TransactionStatus } from "../../enum/transaction-status.enum.js";
10
10
  import { TransactionTriggerProcessType } from "../../enum/transaction-trigger-process-type.enum.js";
11
11
  import { NativeTokenTypes } from "../../types/native-token.type.js";
12
- import { AccountOwnerType } from "../../enum.js";
12
+ import { AccountOwnerType } from "../../enum/index.js";
13
13
  export class TransactionDTO {
14
14
  amount = 0;
15
15
  id = '';
@@ -15,7 +15,7 @@ import { TransactionDTO } from "./transaction.dto.js";
15
15
  // import { SigningAccountDTO } from "../signing-account/signing-account.dto.js";
16
16
  import { TransactionStatus } from "../../enum/transaction-status.enum.js";
17
17
  import { TransactionActionableDTO } from "./transaction-request-actionable.dto.js";
18
- import { AccountOwnerType } from "../../enum.js";
18
+ import { AccountOwnerType } from "../../enum/index.js";
19
19
  export class TransactionSubmissionRequestDTO {
20
20
  transactionId = '';
21
21
  type = TRANSACTION_FORMATS.LEGACY;
@@ -16,7 +16,7 @@ export * from './signing-account-status.enum.js';
16
16
  export * from './crypto.enum.js';
17
17
  export * from './wallet.enum.js';
18
18
  export * from './sort-order.enum.js';
19
- export * from './purchase.js';
20
- export * from './redemption.js';
21
- export * from './campaign.js';
19
+ export * from './purchase/index.js';
20
+ export * from './redemption/index.js';
21
+ export * from './campaign/index.js';
22
22
  //# sourceMappingURL=index.js.map
@@ -17,5 +17,5 @@ export * from './group-by-expression.interface.js';
17
17
  export * from './transaction-analytics-request.interface.js';
18
18
  export * from './transaction.interface.js';
19
19
  export * from './counterfactual-wallet-response.interface.js';
20
- export * from './campaign.js';
20
+ export * from './campaign/index.js';
21
21
  //# sourceMappingURL=index.js.map
@@ -6,7 +6,7 @@ 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.js";
9
+ import { AccountOwnerType } from "./../enum/index.js";
10
10
  import { Address } from "./address.value-object.js";
11
11
  import { Errors } from '../../shared-patterns/errors/error-factory.js';
12
12
  export class AccountSelectorVo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorins/pers-shared",
3
- "version": "2.1.73",
3
+ "version": "2.1.74",
4
4
  "scripts": {
5
5
  "clean": "find dist -type f -delete 2>/dev/null || true",
6
6
  "build:esm": "tsc -p tsconfig.esm.json && node scripts/add-js-extensions.js",