@plyaz/types 1.7.7 → 1.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/api/index.cjs +4 -0
  2. package/dist/api/index.cjs.map +1 -0
  3. package/dist/api/index.js +3 -0
  4. package/dist/api/index.js.map +1 -0
  5. package/dist/auth/index.cjs +45 -0
  6. package/dist/auth/index.cjs.map +1 -0
  7. package/dist/auth/index.js +41 -0
  8. package/dist/auth/index.js.map +1 -0
  9. package/dist/common/index.cjs +4 -0
  10. package/dist/common/index.cjs.map +1 -0
  11. package/dist/common/index.js +3 -0
  12. package/dist/common/index.js.map +1 -0
  13. package/dist/entities/index.cjs +4 -0
  14. package/dist/entities/index.cjs.map +1 -0
  15. package/dist/entities/index.js +3 -0
  16. package/dist/entities/index.js.map +1 -0
  17. package/dist/errors/index.cjs +47 -0
  18. package/dist/errors/index.cjs.map +1 -0
  19. package/dist/errors/index.js +43 -0
  20. package/dist/errors/index.js.map +1 -0
  21. package/dist/events/index.cjs +37 -0
  22. package/dist/events/index.cjs.map +1 -0
  23. package/dist/events/index.js +33 -0
  24. package/dist/events/index.js.map +1 -0
  25. package/dist/features/cache/index.cjs +4 -0
  26. package/dist/features/cache/index.cjs.map +1 -0
  27. package/dist/features/cache/index.js +3 -0
  28. package/dist/features/cache/index.js.map +1 -0
  29. package/dist/features/community/blog/index.cjs +4 -0
  30. package/dist/features/community/blog/index.cjs.map +1 -0
  31. package/dist/features/community/blog/index.js +3 -0
  32. package/dist/features/community/blog/index.js.map +1 -0
  33. package/dist/features/community/blog/providers/index.cjs +4 -0
  34. package/dist/features/community/blog/providers/index.cjs.map +1 -0
  35. package/dist/features/community/blog/providers/index.js +3 -0
  36. package/dist/features/community/blog/providers/index.js.map +1 -0
  37. package/dist/features/community/blog/providers/wordpress/index.cjs +4 -0
  38. package/dist/features/community/blog/providers/wordpress/index.cjs.map +1 -0
  39. package/dist/features/community/blog/providers/wordpress/index.js +3 -0
  40. package/dist/features/community/blog/providers/wordpress/index.js.map +1 -0
  41. package/dist/features/community/index.cjs +4 -0
  42. package/dist/features/community/index.cjs.map +1 -0
  43. package/dist/features/community/index.js +3 -0
  44. package/dist/features/community/index.js.map +1 -0
  45. package/dist/features/feature-flag/index.cjs +4 -0
  46. package/dist/features/feature-flag/index.cjs.map +1 -0
  47. package/dist/features/feature-flag/index.js +3 -0
  48. package/dist/features/feature-flag/index.js.map +1 -0
  49. package/dist/features/index.cjs +4 -0
  50. package/dist/features/index.cjs.map +1 -0
  51. package/dist/features/index.js +3 -0
  52. package/dist/features/index.js.map +1 -0
  53. package/dist/index.cjs +142 -0
  54. package/dist/index.cjs.map +1 -0
  55. package/dist/lib/index.cjs +4 -0
  56. package/dist/lib/index.cjs.map +1 -0
  57. package/dist/lib/index.js +3 -0
  58. package/dist/lib/index.js.map +1 -0
  59. package/dist/store/index.cjs +4 -0
  60. package/dist/store/index.cjs.map +1 -0
  61. package/dist/store/index.js +3 -0
  62. package/dist/store/index.js.map +1 -0
  63. package/dist/testing/common/assertions/index.cjs +4 -0
  64. package/dist/testing/common/assertions/index.cjs.map +1 -0
  65. package/dist/testing/common/assertions/index.js +3 -0
  66. package/dist/testing/common/assertions/index.js.map +1 -0
  67. package/dist/testing/common/factories/index.cjs +4 -0
  68. package/dist/testing/common/factories/index.cjs.map +1 -0
  69. package/dist/testing/common/factories/index.js +3 -0
  70. package/dist/testing/common/factories/index.js.map +1 -0
  71. package/dist/testing/common/index.cjs +4 -0
  72. package/dist/testing/common/index.cjs.map +1 -0
  73. package/dist/testing/common/index.js +3 -0
  74. package/dist/testing/common/index.js.map +1 -0
  75. package/dist/testing/common/mocks/index.cjs +4 -0
  76. package/dist/testing/common/mocks/index.cjs.map +1 -0
  77. package/dist/testing/common/mocks/index.js +3 -0
  78. package/dist/testing/common/mocks/index.js.map +1 -0
  79. package/dist/testing/common/patterns/index.cjs +4 -0
  80. package/dist/testing/common/patterns/index.cjs.map +1 -0
  81. package/dist/testing/common/patterns/index.js +3 -0
  82. package/dist/testing/common/patterns/index.js.map +1 -0
  83. package/dist/testing/common/utils/index.cjs +4 -0
  84. package/dist/testing/common/utils/index.cjs.map +1 -0
  85. package/dist/testing/common/utils/index.js +3 -0
  86. package/dist/testing/common/utils/index.js.map +1 -0
  87. package/dist/testing/common/wrappers/index.cjs +4 -0
  88. package/dist/testing/common/wrappers/index.cjs.map +1 -0
  89. package/dist/testing/common/wrappers/index.js +3 -0
  90. package/dist/testing/common/wrappers/index.js.map +1 -0
  91. package/dist/testing/features/cache/index.cjs +4 -0
  92. package/dist/testing/features/cache/index.cjs.map +1 -0
  93. package/dist/testing/features/cache/index.js +3 -0
  94. package/dist/testing/features/cache/index.js.map +1 -0
  95. package/dist/testing/features/feature-flags/index.cjs +4 -0
  96. package/dist/testing/features/feature-flags/index.cjs.map +1 -0
  97. package/dist/testing/features/feature-flags/index.js +3 -0
  98. package/dist/testing/features/feature-flags/index.js.map +1 -0
  99. package/dist/testing/features/index.cjs +4 -0
  100. package/dist/testing/features/index.cjs.map +1 -0
  101. package/dist/testing/features/index.js +3 -0
  102. package/dist/testing/features/index.js.map +1 -0
  103. package/dist/testing/index.cjs +4 -0
  104. package/dist/testing/index.cjs.map +1 -0
  105. package/dist/testing/index.js +3 -0
  106. package/dist/testing/index.js.map +1 -0
  107. package/dist/translations/index.cjs +4 -0
  108. package/dist/translations/index.cjs.map +1 -0
  109. package/dist/translations/index.js +3 -0
  110. package/dist/translations/index.js.map +1 -0
  111. package/dist/ui/index.cjs +4 -0
  112. package/dist/ui/index.cjs.map +1 -0
  113. package/dist/ui/index.js +3 -0
  114. package/dist/ui/index.js.map +1 -0
  115. package/dist/web3/index.cjs +31 -0
  116. package/dist/web3/index.cjs.map +1 -0
  117. package/dist/web3/index.js +29 -0
  118. package/dist/web3/index.js.map +1 -0
  119. package/package.json +151 -12
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth/enums.ts","../src/errors/enums.ts","../src/events/enums.ts","../src/web3/enums.ts"],"names":[],"mappings":";;;;;AAYO,IAAM,SAAA,GAAY;AAAA;AAAA,EAEvB,OAAA,EAAS,SAAA;AAAA;AAAA,EAGT,KAAA,EAAO,OAAA;AAAA;AAAA,EAGP,KAAA,EAAO,OAAA;AAAA;AAAA,EAGP,IAAA,EAAM,MAAA;AAAA;AAAA,EAGN,GAAA,EAAK,KAAA;AAAA;AAAA,EAGL,KAAA,EAAO,OAAA;AAAA;AAAA,EAGP,UAAA,EAAY;AACd;AAcO,IAAM,WAAA,GAAc;AAAA;AAAA,EAEzB,MAAA,EAAQ,QAAA;AAAA;AAAA,EAGR,QAAA,EAAU,UAAA;AAAA;AAAA,EAGV,OAAA,EAAS,SAAA;AAAA;AAAA,EAGT,SAAA,EAAW,WAAA;AAAA;AAAA,EAGX,MAAA,EAAQ;AACV;AAcO,IAAM,aAAA,GAAgB;AAAA;AAAA,EAE3B,KAAA,EAAO,OAAA;AAAA;AAAA,EAGP,MAAA,EAAQ;AACV;;;AClEO,IAAM,UAAA,GAAa;AAAA;AAAA,EAExB,eAAA,EAAiB,kBAAA;AAAA;AAAA,EAGjB,qBAAA,EAAuB,yBAAA;AAAA;AAAA,EAGvB,aAAA,EAAe,uBAAA;AAAA;AAAA,EAGf,kBAAA,EAAoB,4BAAA;AAAA;AAAA,EAGpB,YAAA,EAAc,gBAAA;AAAA;AAAA,EAGd,iBAAA,EAAmB;AACrB;AAcO,IAAM,cAAA,GAAiB;AAAA;AAAA,EAE5B,GAAA,EAAK,KAAA;AAAA;AAAA,EAGL,MAAA,EAAQ,QAAA;AAAA;AAAA,EAGR,IAAA,EAAM,MAAA;AAAA;AAAA,EAGN,QAAA,EAAU;AACZ;AAcO,IAAM,cAAA,GAAiB;AAAA;AAAA,EAE5B,MAAA,EAAQ,QAAA;AAAA;AAAA,EAGR,MAAA,EAAQ,QAAA;AAAA;AAAA,EAGR,OAAA,EAAS,SAAA;AAAA;AAAA,EAGT,UAAA,EAAY,YAAA;AAAA;AAAA,EAGZ,UAAA,EAAY;AACd;;;AC9EO,IAAM,UAAA,GAAa;AAAA;AAAA,EAExB,OAAA,EAAS;AACX;AAaO,IAAM,cAAA,GAAiB;AAAA;AAAA,EAE5B,GAAA,EAAK,KAAA;AAAA;AAAA,EAEL,MAAA,EAAQ,QAAA;AAAA;AAAA,EAER,IAAA,EAAM,MAAA;AAAA;AAAA,EAEN,QAAA,EAAU;AACZ;AAkBO,IAAM,YAAA,GAAe;AAAA;AAAA,EAE1B,OAAA,EAAS,SAAA;AAAA;AAAA,EAET,UAAA,EAAY,YAAA;AAAA;AAAA,EAEZ,SAAA,EAAW,WAAA;AAAA;AAAA,EAEX,MAAA,EAAQ,QAAA;AAAA;AAAA,EAER,QAAA,EAAU;AACZ;;;ACpDO,IAAM,QAAA,GAAW;AAAA;AAAA,EAEtB,eAAA,EAAiB,CAAA;AAAA;AAAA,EAGjB,eAAA,EAAiB,QAAA;AAAA;AAAA,EAGjB,QAAA,EAAU,EAAA;AAAA;AAAA,EAGV,eAAA,EAAiB,QAAA;AAAA;AAAA,EAGjB,QAAA,EAAU,KAAA;AAAA;AAAA,EAGV,eAAA,EAAiB,MAAA;AAAA;AAAA,EAGjB,OAAA,EAAS,GAAA;AAAA;AAAA,EAGT,WAAA,EAAa,KAAA;AAAA;AAAA,EAGb,IAAA,EAAM,IAAA;AAAA;AAAA,EAGN,WAAA,EAAa;AACf","file":"index.cjs","sourcesContent":["/**\n * Enum representing the different roles a user can have within the system.\n * @description Roles are used to determine access levels, permissions, and user-specific experiences.\n *\n * @example\n * ```typescript\n * import { USER_ROLE } from '@plyaz/types';\n *\n * const userRole = USER_ROLE.Athlete; // 'athlete'\n * const isAdmin = userRole === USER_ROLE.Admin || userRole === USER_ROLE.SuperAdmin;\n * ```\n */\nexport const USER_ROLE = {\n /** A user who is an athlete and participates in sports activities. */\n Athlete: 'athlete',\n\n /** A user who scouts and discovers talent. */\n Scout: 'scout',\n\n /** A user who acts as an agent representing athletes or clubs. */\n Agent: 'agent',\n\n /** A user representing a sports club or organization. */\n Club: 'club',\n\n /** A fan or supporter of athletes or clubs. */\n Fan: 'fan',\n\n /** A system administrator with access to management tools. */\n Admin: 'admin',\n\n /** A super admin with the highest level of access and control. */\n SuperAdmin: 'super.admin',\n} as const;\n\n/**\n * Enum representing the current status of a user account.\n * @description Statuses are used to determine login availability, visibility, and user flow.\n *\n * @example\n * ```typescript\n * import { USER_STATUS } from '@plyaz/types';\n *\n * const isAccessible = status === USER_STATUS.Active;\n * const needsReview = status === USER_STATUS.Pending;\n * ```\n */\nexport const USER_STATUS = {\n /** Active user with full access. */\n Active: 'active',\n\n /** Inactive user, typically not currently using the platform. */\n Inactive: 'inactive',\n\n /** User account is awaiting approval or completion of setup. */\n Pending: 'pending',\n\n /** User has been temporarily suspended due to policy violations or manual review. */\n Suspended: 'suspended',\n\n /** User has been permanently banned from the platform. */\n Banned: 'banned',\n} as const;\n\n/**\n * Enum representing the supported authentication providers for user login.\n * @description Auth Providers allowed such as Email, Wallet, etc.\n *\n * @example\n * ```typescript\n * import { AUTH_PROVIDER } from '@plyaz/types';\n *\n * const provider = AUTH_PROVIDER.Wallet; // 'wallet'\n * const isWeb3Auth = provider === AUTH_PROVIDER.Wallet;\n * ```\n */\nexport const AUTH_PROVIDER = {\n /** Authentication via email and password. */\n Email: 'email',\n\n /** Authentication via connected blockchain wallet. */\n Wallet: 'wallet',\n} as const;\n","/**\n * Enum representing standardized error types used across the application.\n * @description These error types help classify different categories of errors such as validation issues and system-level failures.\n *\n * @example\n * ```typescript\n * import { ERROR_TYPE } from '@plyaz/types';\n *\n * const errorType = ERROR_TYPE.ValidationError; // 'validation.error'\n *\n * // Error handling example\n * if (error.type === ERROR_TYPE.RateLimitExceeded) {\n * // Handle rate limiting\n * }\n * ```\n */\nexport const ERROR_TYPE = {\n /** A general validation error (e.g., form or input errors). */\n ValidationError: 'validation.error',\n\n /** Error related to schema validation, such as JSON schema or API payload checks. */\n SchemaValidationError: 'validation.schema.error',\n\n /** Unhandled or unexpected system error. */\n InternalError: 'system.internal.error',\n\n /** System dependency is currently unavailable (e.g., database or external API). */\n ServiceUnavailable: 'system.service.unavailable',\n\n /** The request took too long and timed out. */\n TimeoutError: 'system.timeout',\n\n /** Too many requests made in a short period of time. */\n RateLimitExceeded: 'system.rate.limit.exceeded',\n} as const;\n\n/**\n * Enum representing the severity level of an error.\n * @description This allows categorization of errors by their potential impact on the system or user.\n *\n * @example\n * ```typescript\n * import { ERROR_SEVERITY } from '@plyaz/types';\n *\n * const severity = ERROR_SEVERITY.Critical; // 'critical'\n * const shouldAlert = severity === ERROR_SEVERITY.High || severity === ERROR_SEVERITY.Critical;\n * ```\n */\nexport const ERROR_SEVERITY = {\n /** Low severity - does not impact functionality significantly. */\n Low: 'low',\n\n /** Medium severity - minor disruption or warning. */\n Medium: 'medium',\n\n /** High severity - major issue requiring attention. */\n High: 'high',\n\n /** Critical severity - blocking or crashing issue. */\n Critical: 'critical',\n} as const;\n\n/**\n * Enum representing the category or origin of an error.\n * @description Useful for filtering or logging errors based on their source or nature.\n *\n * @example\n * ```typescript\n * import { ERROR_CATEGORY } from '@plyaz/types';\n *\n * const category = ERROR_CATEGORY.Blockchain; // 'blockchain'\n * const isClientError = category === ERROR_CATEGORY.Client;\n * ```\n */\nexport const ERROR_CATEGORY = {\n /** Client-side error (e.g., invalid request). */\n Client: 'client',\n\n /** Server-side error (e.g., logic failure or exception). */\n Server: 'server',\n\n /** Network-related error (e.g., unreachable endpoint). */\n Network: 'network',\n\n /** Blockchain-related error (e.g., transaction failure, gas limit). */\n Blockchain: 'blockchain',\n\n // Validation-specific error (e.g., failed constraints or field errors).\n Validation: 'validation',\n} as const;\n","/**\n * Enum representing the types of events in the application.\n * Uses dot notation for event naming convention.\n *\n * @example\n * ```typescript\n * import { EVENT_TYPE } from '@plyaz/types';\n *\n * const eventType = EVENT_TYPE.AppInit; // 'app.init'\n * ```\n */\nexport const EVENT_TYPE = {\n /** Application initialization event. */\n AppInit: 'app.init',\n} as const;\n\n/**\n * Const representing the priority levels for events.\n * Used to determine processing order and resource allocation.\n *\n * @example\n * ```typescript\n * import { EVENT_PRIORITY } from '@plyaz/types';\n *\n * const priority = EVENT_PRIORITY.High; // 'high'\n * ```\n */\nexport const EVENT_PRIORITY = {\n /** Low priority event. */\n Low: 'low',\n /** Normal priority event. */\n Normal: 'normal',\n /** High priority event. */\n High: 'high',\n /** Critical priority event. */\n Critical: 'critical',\n} as const;\n\n/**\n * Const representing the status of an event.\n * Tracks the lifecycle of event processing from creation to completion.\n *\n * @example\n * ```typescript\n * import { EVENT_STATUS } from '@plyaz/types';\n *\n * const status = EVENT_STATUS.Processing; // 'processing'\n *\n * // Typical event lifecycle:\n * // Pending -> Processing -> Completed\n * // or\n * // Pending -> Processing -> Failed -> Retrying -> Processing -> Completed\n * ```\n */\nexport const EVENT_STATUS = {\n /** Event is pending and has not started processing. */\n Pending: 'pending',\n /** Event is currently being processed. */\n Processing: 'processing',\n /** Event has been completed successfully. */\n Completed: 'completed',\n /** Event processing failed. */\n Failed: 'failed',\n /** Event is being retried after a failure. */\n Retrying: 'retrying',\n} as const;\n","/**\n * Enum representing supported EVM-compatible blockchain networks by their numeric chain IDs.\n * @description These IDs are used to identify the specific network when interacting with wallets or smart contracts.\n * @see https://chainlist.org for reference chain IDs\n *\n * @example\n * ```typescript\n * import { CHAIN_ID } from '@plyaz/types';\n *\n * const chainId = CHAIN_ID.EthereumMainnet; // 1\n * const isTestnet = chainId === CHAIN_ID.EthereumSepolia || chainId === CHAIN_ID.PolygonAmoy;\n * ```\n */\nexport const CHAIN_ID = {\n /** Ethereum Mainnet (Chain ID: 1). */\n EthereumMainnet: 1,\n\n /** Ethereum Sepolia Testnet (Chain ID: 11155111). */\n EthereumSepolia: 11_155_111,\n\n /** Optimism Mainnet (Chain ID: 10). */\n Optimism: 10,\n\n /** Optimism Sepolia Testnet (Chain ID: 11155420). */\n OptimismSepolia: 11_155_420,\n\n /** Arbitrum One Mainnet (Chain ID: 42161). */\n Arbitrum: 42_161,\n\n /** Arbitrum Sepolia Testnet (Chain ID: 421614). */\n ArbitrumSepolia: 421_614,\n\n /** Polygon Mainnet (Chain ID: 137). */\n Polygon: 137,\n\n /** Polygon Amoy Testnet (Chain ID: 80002). */\n PolygonAmoy: 80_002,\n\n /** Base Mainnet (Chain ID: 8453). */\n Base: 8_453,\n\n /** Base Sepolia Testnet (Chain ID: 84532). */\n BaseSepolia: 84_532,\n} as const;\n"]}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.cjs.map
4
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ // @plyaz package - Built with tsup
4
+
5
+ // src/web3/enums.ts
6
+ var CHAIN_ID = {
7
+ /** Ethereum Mainnet (Chain ID: 1). */
8
+ EthereumMainnet: 1,
9
+ /** Ethereum Sepolia Testnet (Chain ID: 11155111). */
10
+ EthereumSepolia: 11155111,
11
+ /** Optimism Mainnet (Chain ID: 10). */
12
+ Optimism: 10,
13
+ /** Optimism Sepolia Testnet (Chain ID: 11155420). */
14
+ OptimismSepolia: 11155420,
15
+ /** Arbitrum One Mainnet (Chain ID: 42161). */
16
+ Arbitrum: 42161,
17
+ /** Arbitrum Sepolia Testnet (Chain ID: 421614). */
18
+ ArbitrumSepolia: 421614,
19
+ /** Polygon Mainnet (Chain ID: 137). */
20
+ Polygon: 137,
21
+ /** Polygon Amoy Testnet (Chain ID: 80002). */
22
+ PolygonAmoy: 80002,
23
+ /** Base Mainnet (Chain ID: 8453). */
24
+ Base: 8453,
25
+ /** Base Sepolia Testnet (Chain ID: 84532). */
26
+ BaseSepolia: 84532
27
+ };
28
+
29
+ exports.CHAIN_ID = CHAIN_ID;
30
+ //# sourceMappingURL=index.cjs.map
31
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/web3/enums.ts"],"names":[],"mappings":";;;;;AAaO,IAAM,QAAA,GAAW;AAAA;AAAA,EAEtB,eAAA,EAAiB,CAAA;AAAA;AAAA,EAGjB,eAAA,EAAiB,QAAA;AAAA;AAAA,EAGjB,QAAA,EAAU,EAAA;AAAA;AAAA,EAGV,eAAA,EAAiB,QAAA;AAAA;AAAA,EAGjB,QAAA,EAAU,KAAA;AAAA;AAAA,EAGV,eAAA,EAAiB,MAAA;AAAA;AAAA,EAGjB,OAAA,EAAS,GAAA;AAAA;AAAA,EAGT,WAAA,EAAa,KAAA;AAAA;AAAA,EAGb,IAAA,EAAM,IAAA;AAAA;AAAA,EAGN,WAAA,EAAa;AACf","file":"index.cjs","sourcesContent":["/**\n * Enum representing supported EVM-compatible blockchain networks by their numeric chain IDs.\n * @description These IDs are used to identify the specific network when interacting with wallets or smart contracts.\n * @see https://chainlist.org for reference chain IDs\n *\n * @example\n * ```typescript\n * import { CHAIN_ID } from '@plyaz/types';\n *\n * const chainId = CHAIN_ID.EthereumMainnet; // 1\n * const isTestnet = chainId === CHAIN_ID.EthereumSepolia || chainId === CHAIN_ID.PolygonAmoy;\n * ```\n */\nexport const CHAIN_ID = {\n /** Ethereum Mainnet (Chain ID: 1). */\n EthereumMainnet: 1,\n\n /** Ethereum Sepolia Testnet (Chain ID: 11155111). */\n EthereumSepolia: 11_155_111,\n\n /** Optimism Mainnet (Chain ID: 10). */\n Optimism: 10,\n\n /** Optimism Sepolia Testnet (Chain ID: 11155420). */\n OptimismSepolia: 11_155_420,\n\n /** Arbitrum One Mainnet (Chain ID: 42161). */\n Arbitrum: 42_161,\n\n /** Arbitrum Sepolia Testnet (Chain ID: 421614). */\n ArbitrumSepolia: 421_614,\n\n /** Polygon Mainnet (Chain ID: 137). */\n Polygon: 137,\n\n /** Polygon Amoy Testnet (Chain ID: 80002). */\n PolygonAmoy: 80_002,\n\n /** Base Mainnet (Chain ID: 8453). */\n Base: 8_453,\n\n /** Base Sepolia Testnet (Chain ID: 84532). */\n BaseSepolia: 84_532,\n} as const;\n"]}
@@ -0,0 +1,29 @@
1
+ // @plyaz package - Built with tsup
2
+
3
+ // src/web3/enums.ts
4
+ var CHAIN_ID = {
5
+ /** Ethereum Mainnet (Chain ID: 1). */
6
+ EthereumMainnet: 1,
7
+ /** Ethereum Sepolia Testnet (Chain ID: 11155111). */
8
+ EthereumSepolia: 11155111,
9
+ /** Optimism Mainnet (Chain ID: 10). */
10
+ Optimism: 10,
11
+ /** Optimism Sepolia Testnet (Chain ID: 11155420). */
12
+ OptimismSepolia: 11155420,
13
+ /** Arbitrum One Mainnet (Chain ID: 42161). */
14
+ Arbitrum: 42161,
15
+ /** Arbitrum Sepolia Testnet (Chain ID: 421614). */
16
+ ArbitrumSepolia: 421614,
17
+ /** Polygon Mainnet (Chain ID: 137). */
18
+ Polygon: 137,
19
+ /** Polygon Amoy Testnet (Chain ID: 80002). */
20
+ PolygonAmoy: 80002,
21
+ /** Base Mainnet (Chain ID: 8453). */
22
+ Base: 8453,
23
+ /** Base Sepolia Testnet (Chain ID: 84532). */
24
+ BaseSepolia: 84532
25
+ };
26
+
27
+ export { CHAIN_ID };
28
+ //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/web3/enums.ts"],"names":[],"mappings":";;;AAaO,IAAM,QAAA,GAAW;AAAA;AAAA,EAEtB,eAAA,EAAiB,CAAA;AAAA;AAAA,EAGjB,eAAA,EAAiB,QAAA;AAAA;AAAA,EAGjB,QAAA,EAAU,EAAA;AAAA;AAAA,EAGV,eAAA,EAAiB,QAAA;AAAA;AAAA,EAGjB,QAAA,EAAU,KAAA;AAAA;AAAA,EAGV,eAAA,EAAiB,MAAA;AAAA;AAAA,EAGjB,OAAA,EAAS,GAAA;AAAA;AAAA,EAGT,WAAA,EAAa,KAAA;AAAA;AAAA,EAGb,IAAA,EAAM,IAAA;AAAA;AAAA,EAGN,WAAA,EAAa;AACf","file":"index.js","sourcesContent":["/**\n * Enum representing supported EVM-compatible blockchain networks by their numeric chain IDs.\n * @description These IDs are used to identify the specific network when interacting with wallets or smart contracts.\n * @see https://chainlist.org for reference chain IDs\n *\n * @example\n * ```typescript\n * import { CHAIN_ID } from '@plyaz/types';\n *\n * const chainId = CHAIN_ID.EthereumMainnet; // 1\n * const isTestnet = chainId === CHAIN_ID.EthereumSepolia || chainId === CHAIN_ID.PolygonAmoy;\n * ```\n */\nexport const CHAIN_ID = {\n /** Ethereum Mainnet (Chain ID: 1). */\n EthereumMainnet: 1,\n\n /** Ethereum Sepolia Testnet (Chain ID: 11155111). */\n EthereumSepolia: 11_155_111,\n\n /** Optimism Mainnet (Chain ID: 10). */\n Optimism: 10,\n\n /** Optimism Sepolia Testnet (Chain ID: 11155420). */\n OptimismSepolia: 11_155_420,\n\n /** Arbitrum One Mainnet (Chain ID: 42161). */\n Arbitrum: 42_161,\n\n /** Arbitrum Sepolia Testnet (Chain ID: 421614). */\n ArbitrumSepolia: 421_614,\n\n /** Polygon Mainnet (Chain ID: 137). */\n Polygon: 137,\n\n /** Polygon Amoy Testnet (Chain ID: 80002). */\n PolygonAmoy: 80_002,\n\n /** Base Mainnet (Chain ID: 8453). */\n Base: 8_453,\n\n /** Base Sepolia Testnet (Chain ID: 84532). */\n BaseSepolia: 84_532,\n} as const;\n"]}
package/package.json CHANGED
@@ -1,25 +1,164 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.mjs",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
9
  "types": "./dist/index.d.ts",
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
- "import": "./dist/index.mjs",
15
- "require": "./dist/index.js",
16
- "default": "./dist/index.mjs"
14
+ "import": "./dist/index.js",
15
+ "require": "./dist/index.cjs",
16
+ "default": "./dist/index.js"
17
17
  },
18
- "./translations": {
19
- "types": "./dist/translations/index.d.ts"
18
+ "./api": {
19
+ "types": "./dist/api/index.d.ts",
20
+ "import": "./dist/api/index.js",
21
+ "require": "./dist/api/index.cjs"
22
+ },
23
+ "./auth": {
24
+ "types": "./dist/auth/index.d.ts",
25
+ "import": "./dist/auth/index.js",
26
+ "require": "./dist/auth/index.cjs"
27
+ },
28
+ "./common": {
29
+ "types": "./dist/common/index.d.ts",
30
+ "import": "./dist/common/index.js",
31
+ "require": "./dist/common/index.cjs"
32
+ },
33
+ "./entities": {
34
+ "types": "./dist/entities/index.d.ts",
35
+ "import": "./dist/entities/index.js",
36
+ "require": "./dist/entities/index.cjs"
37
+ },
38
+ "./errors": {
39
+ "types": "./dist/errors/index.d.ts",
40
+ "import": "./dist/errors/index.js",
41
+ "require": "./dist/errors/index.cjs"
42
+ },
43
+ "./events": {
44
+ "types": "./dist/events/index.d.ts",
45
+ "import": "./dist/events/index.js",
46
+ "require": "./dist/events/index.cjs"
47
+ },
48
+ "./features": {
49
+ "types": "./dist/features/index.d.ts",
50
+ "import": "./dist/features/index.js",
51
+ "require": "./dist/features/index.cjs"
52
+ },
53
+ "./features/cache": {
54
+ "types": "./dist/features/cache/index.d.ts",
55
+ "import": "./dist/features/cache/index.js",
56
+ "require": "./dist/features/cache/index.cjs"
57
+ },
58
+ "./features/community": {
59
+ "types": "./dist/features/community/index.d.ts",
60
+ "import": "./dist/features/community/index.js",
61
+ "require": "./dist/features/community/index.cjs"
62
+ },
63
+ "./features/community/blog": {
64
+ "types": "./dist/features/community/blog/index.d.ts",
65
+ "import": "./dist/features/community/blog/index.js",
66
+ "require": "./dist/features/community/blog/index.cjs"
67
+ },
68
+ "./features/community/blog/providers": {
69
+ "types": "./dist/features/community/blog/providers/index.d.ts",
70
+ "import": "./dist/features/community/blog/providers/index.js",
71
+ "require": "./dist/features/community/blog/providers/index.cjs"
72
+ },
73
+ "./features/community/blog/providers/wordpress": {
74
+ "types": "./dist/features/community/blog/providers/wordpress/index.d.ts",
75
+ "import": "./dist/features/community/blog/providers/wordpress/index.js",
76
+ "require": "./dist/features/community/blog/providers/wordpress/index.cjs"
77
+ },
78
+ "./features/feature-flag": {
79
+ "types": "./dist/features/feature-flag/index.d.ts",
80
+ "import": "./dist/features/feature-flag/index.js",
81
+ "require": "./dist/features/feature-flag/index.cjs"
82
+ },
83
+ "./lib": {
84
+ "types": "./dist/lib/index.d.ts",
85
+ "import": "./dist/lib/index.js",
86
+ "require": "./dist/lib/index.cjs"
87
+ },
88
+ "./store": {
89
+ "types": "./dist/store/index.d.ts",
90
+ "import": "./dist/store/index.js",
91
+ "require": "./dist/store/index.cjs"
20
92
  },
21
93
  "./testing": {
22
- "types": "./dist/testing/index.d.ts"
94
+ "types": "./dist/testing/index.d.ts",
95
+ "import": "./dist/testing/index.js",
96
+ "require": "./dist/testing/index.cjs"
97
+ },
98
+ "./testing/common": {
99
+ "types": "./dist/testing/common/index.d.ts",
100
+ "import": "./dist/testing/common/index.js",
101
+ "require": "./dist/testing/common/index.cjs"
102
+ },
103
+ "./testing/common/assertions": {
104
+ "types": "./dist/testing/common/assertions/index.d.ts",
105
+ "import": "./dist/testing/common/assertions/index.js",
106
+ "require": "./dist/testing/common/assertions/index.cjs"
107
+ },
108
+ "./testing/common/factories": {
109
+ "types": "./dist/testing/common/factories/index.d.ts",
110
+ "import": "./dist/testing/common/factories/index.js",
111
+ "require": "./dist/testing/common/factories/index.cjs"
112
+ },
113
+ "./testing/common/mocks": {
114
+ "types": "./dist/testing/common/mocks/index.d.ts",
115
+ "import": "./dist/testing/common/mocks/index.js",
116
+ "require": "./dist/testing/common/mocks/index.cjs"
117
+ },
118
+ "./testing/common/patterns": {
119
+ "types": "./dist/testing/common/patterns/index.d.ts",
120
+ "import": "./dist/testing/common/patterns/index.js",
121
+ "require": "./dist/testing/common/patterns/index.cjs"
122
+ },
123
+ "./testing/common/utils": {
124
+ "types": "./dist/testing/common/utils/index.d.ts",
125
+ "import": "./dist/testing/common/utils/index.js",
126
+ "require": "./dist/testing/common/utils/index.cjs"
127
+ },
128
+ "./testing/common/wrappers": {
129
+ "types": "./dist/testing/common/wrappers/index.d.ts",
130
+ "import": "./dist/testing/common/wrappers/index.js",
131
+ "require": "./dist/testing/common/wrappers/index.cjs"
132
+ },
133
+ "./testing/features": {
134
+ "types": "./dist/testing/features/index.d.ts",
135
+ "import": "./dist/testing/features/index.js",
136
+ "require": "./dist/testing/features/index.cjs"
137
+ },
138
+ "./testing/features/cache": {
139
+ "types": "./dist/testing/features/cache/index.d.ts",
140
+ "import": "./dist/testing/features/cache/index.js",
141
+ "require": "./dist/testing/features/cache/index.cjs"
142
+ },
143
+ "./testing/features/feature-flags": {
144
+ "types": "./dist/testing/features/feature-flags/index.d.ts",
145
+ "import": "./dist/testing/features/feature-flags/index.js",
146
+ "require": "./dist/testing/features/feature-flags/index.cjs"
147
+ },
148
+ "./translations": {
149
+ "types": "./dist/translations/index.d.ts",
150
+ "import": "./dist/translations/index.js",
151
+ "require": "./dist/translations/index.cjs"
152
+ },
153
+ "./ui": {
154
+ "types": "./dist/ui/index.d.ts",
155
+ "import": "./dist/ui/index.js",
156
+ "require": "./dist/ui/index.cjs"
157
+ },
158
+ "./web3": {
159
+ "types": "./dist/web3/index.d.ts",
160
+ "import": "./dist/web3/index.js",
161
+ "require": "./dist/web3/index.cjs"
23
162
  },
24
163
  "./package.json": "./package.json"
25
164
  },
@@ -43,14 +182,14 @@
43
182
  "@eslint/markdown": "^6.5.0",
44
183
  "@nestjs/common": "^11.1.3",
45
184
  "@next/eslint-plugin-next": "^15.0.3",
46
- "@plyaz/devtools": "^1.6.11",
185
+ "@plyaz/devtools": "^1.9.4",
186
+ "@testing-library/react": "^16.3.0",
187
+ "@testing-library/user-event": "^14.6.1",
47
188
  "@types/node": "^22.14.0",
48
189
  "@types/react": "^19.1.8",
49
190
  "@types/react-dom": "^19.1.6",
50
191
  "@typescript-eslint/eslint-plugin": "^8.15.0",
51
192
  "@typescript-eslint/parser": "^8.15.0",
52
- "@testing-library/react": "^16.3.0",
53
- "@testing-library/user-event": "^14.6.1",
54
193
  "@vitest/coverage-v8": "^3.1.3",
55
194
  "eslint": "^9.29.0",
56
195
  "eslint-config-next": "^15.3.3",