@plyaz/types 1.7.10 → 1.7.11

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.
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { WithStatusCode, WithErrorCode, WithMessage, WithCorrelationId, WithTimestamp, WithValidationError } from '../common/types';
2
3
  import type { ERRORS_CODES } from './constants/errors-codes';
3
4
  /**
@@ -45,3 +46,19 @@ export type ErrorDetail<ValueGiven, AllowedValues, Constraints> = WithValidation
45
46
  export type ErrorDetailsList = readonly ErrorDetail<string | number | boolean, Record<string, string>, Record<string, string>>[];
46
47
  export type ErrorCodeKey = keyof typeof ERRORS_CODES;
47
48
  export type ErrorCodeValue = typeof ERRORS_CODES[ErrorCodeKey];
49
+ export type ErrorCodeMsg = typeof ERRORS_CODES[ErrorCodeKey];
50
+ export interface ReturnResponseType<T = unknown> {
51
+ codeStatus: number;
52
+ message: string;
53
+ data?: T;
54
+ success: boolean;
55
+ }
56
+ export interface ErrorBoundaryProviderProps {
57
+ children: ReactNode;
58
+ fallback: ReactNode;
59
+ }
60
+ export interface ValidationErrorResponse {
61
+ type: string;
62
+ message: string;
63
+ timestamp: string;
64
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
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.",