@bernierllc/backoff-retry 0.1.1 → 0.3.0
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/CHANGELOG.md +13 -0
- package/README.md +110 -0
- package/dist/enhancement-manager.d.ts +205 -0
- package/dist/enhancement-manager.d.ts.map +1 -0
- package/dist/enhancement-manager.js +533 -0
- package/dist/enhancement-manager.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/memory-protection.js +1 -1
- package/dist/memory-protection.js.map +1 -1
- package/dist/neveradmin/components/RetryAnalyticsPage.d.ts +15 -0
- package/dist/neveradmin/components/RetryAnalyticsPage.d.ts.map +1 -0
- package/dist/neveradmin/components/RetryAnalyticsPage.js +28 -0
- package/dist/neveradmin/components/RetryAnalyticsPage.js.map +1 -0
- package/dist/neveradmin/components/RetryConfigurationPage.d.ts +15 -0
- package/dist/neveradmin/components/RetryConfigurationPage.d.ts.map +1 -0
- package/dist/neveradmin/components/RetryConfigurationPage.js +28 -0
- package/dist/neveradmin/components/RetryConfigurationPage.js.map +1 -0
- package/dist/neveradmin/components/RetryEnhancementsPage.d.ts +15 -0
- package/dist/neveradmin/components/RetryEnhancementsPage.d.ts.map +1 -0
- package/dist/neveradmin/components/RetryEnhancementsPage.js +28 -0
- package/dist/neveradmin/components/RetryEnhancementsPage.js.map +1 -0
- package/dist/neveradmin/components/RetryOperationsPage.d.ts +15 -0
- package/dist/neveradmin/components/RetryOperationsPage.d.ts.map +1 -0
- package/dist/neveradmin/components/RetryOperationsPage.js +28 -0
- package/dist/neveradmin/components/RetryOperationsPage.js.map +1 -0
- package/dist/neveradmin/components/RetryOverviewPage.d.ts +15 -0
- package/dist/neveradmin/components/RetryOverviewPage.d.ts.map +1 -0
- package/dist/neveradmin/components/RetryOverviewPage.js +28 -0
- package/dist/neveradmin/components/RetryOverviewPage.js.map +1 -0
- package/dist/neveradmin/components/index.d.ts +7 -0
- package/dist/neveradmin/components/index.d.ts.map +1 -0
- package/dist/neveradmin/components/index.js +32 -0
- package/dist/neveradmin/components/index.js.map +1 -0
- package/dist/neveradmin/components/types.d.ts +64 -0
- package/dist/neveradmin/components/types.d.ts.map +1 -0
- package/dist/neveradmin/components/types.js +10 -0
- package/dist/neveradmin/components/types.js.map +1 -0
- package/dist/neveradmin/hooks/index.d.ts +5 -0
- package/dist/neveradmin/hooks/index.d.ts.map +1 -0
- package/dist/neveradmin/hooks/index.js +28 -0
- package/dist/neveradmin/hooks/index.js.map +1 -0
- package/dist/neveradmin/hooks/useRetryConfiguration.d.ts +23 -0
- package/dist/neveradmin/hooks/useRetryConfiguration.d.ts.map +1 -0
- package/dist/neveradmin/hooks/useRetryConfiguration.js +162 -0
- package/dist/neveradmin/hooks/useRetryConfiguration.js.map +1 -0
- package/dist/neveradmin/hooks/useRetryEnhancements.d.ts +39 -0
- package/dist/neveradmin/hooks/useRetryEnhancements.d.ts.map +1 -0
- package/dist/neveradmin/hooks/useRetryEnhancements.js +197 -0
- package/dist/neveradmin/hooks/useRetryEnhancements.js.map +1 -0
- package/dist/neveradmin/hooks/useRetryOperations.d.ts +28 -0
- package/dist/neveradmin/hooks/useRetryOperations.d.ts.map +1 -0
- package/dist/neveradmin/hooks/useRetryOperations.js +166 -0
- package/dist/neveradmin/hooks/useRetryOperations.js.map +1 -0
- package/dist/neveradmin/hooks/useRetryStats.d.ts +19 -0
- package/dist/neveradmin/hooks/useRetryStats.d.ts.map +1 -0
- package/dist/neveradmin/hooks/useRetryStats.js +81 -0
- package/dist/neveradmin/hooks/useRetryStats.js.map +1 -0
- package/dist/neveradmin/index.d.ts +6 -0
- package/dist/neveradmin/index.d.ts.map +1 -0
- package/dist/neveradmin/index.js +29 -0
- package/dist/neveradmin/index.js.map +1 -0
- package/dist/neveradmin/registration.d.ts +33 -0
- package/dist/neveradmin/registration.d.ts.map +1 -0
- package/dist/neveradmin/registration.js +96 -0
- package/dist/neveradmin/registration.js.map +1 -0
- package/dist/neveradmin/types.d.ts +88 -0
- package/dist/neveradmin/types.d.ts.map +1 -0
- package/dist/neveradmin/types.js +10 -0
- package/dist/neveradmin/types.js.map +1 -0
- package/dist/neveradmin/utils/formatting.d.ts +41 -0
- package/dist/neveradmin/utils/formatting.d.ts.map +1 -0
- package/dist/neveradmin/utils/formatting.js +142 -0
- package/dist/neveradmin/utils/formatting.js.map +1 -0
- package/dist/neveradmin/utils/index.d.ts +4 -0
- package/dist/neveradmin/utils/index.d.ts.map +1 -0
- package/dist/neveradmin/utils/index.js +27 -0
- package/dist/neveradmin/utils/index.js.map +1 -0
- package/dist/neveradmin/utils/permissions.d.ts +74 -0
- package/dist/neveradmin/utils/permissions.d.ts.map +1 -0
- package/dist/neveradmin/utils/permissions.js +152 -0
- package/dist/neveradmin/utils/permissions.js.map +1 -0
- package/dist/neveradmin/utils/validation.d.ts +38 -0
- package/dist/neveradmin/utils/validation.d.ts.map +1 -0
- package/dist/neveradmin/utils/validation.js +142 -0
- package/dist/neveradmin/utils/validation.js.map +1 -0
- package/dist/retry-manager.d.ts +32 -11
- package/dist/retry-manager.d.ts.map +1 -1
- package/dist/retry-manager.js +128 -82
- package/dist/retry-manager.js.map +1 -1
- package/dist/security/index.d.ts +3 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +26 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/secure-storage.d.ts +61 -0
- package/dist/security/secure-storage.d.ts.map +1 -0
- package/dist/security/secure-storage.js +418 -0
- package/dist/security/secure-storage.js.map +1 -0
- package/dist/security/security-manager.d.ts +172 -0
- package/dist/security/security-manager.d.ts.map +1 -0
- package/dist/security/security-manager.js +417 -0
- package/dist/security/security-manager.js.map +1 -0
- package/dist/storage/backend-selector.d.ts +96 -0
- package/dist/storage/backend-selector.d.ts.map +1 -0
- package/dist/storage/backend-selector.js +466 -0
- package/dist/storage/backend-selector.js.map +1 -0
- package/dist/storage/index.d.ts +7 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +30 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/memory-storage.d.ts +55 -0
- package/dist/storage/memory-storage.d.ts.map +1 -0
- package/dist/storage/memory-storage.js +106 -0
- package/dist/storage/memory-storage.js.map +1 -0
- package/dist/storage/postgresql-storage.d.ts +77 -0
- package/dist/storage/postgresql-storage.d.ts.map +1 -0
- package/dist/storage/postgresql-storage.js +314 -0
- package/dist/storage/postgresql-storage.js.map +1 -0
- package/dist/storage/redis-cluster-storage.d.ts +88 -0
- package/dist/storage/redis-cluster-storage.d.ts.map +1 -0
- package/dist/storage/redis-cluster-storage.js +414 -0
- package/dist/storage/redis-cluster-storage.js.map +1 -0
- package/dist/storage/redis-storage.d.ts +67 -0
- package/dist/storage/redis-storage.d.ts.map +1 -0
- package/dist/storage/redis-storage.js +236 -0
- package/dist/storage/redis-storage.js.map +1 -0
- package/dist/storage/types.d.ts +55 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/dist/storage/types.js +10 -0
- package/dist/storage/types.js.map +1 -0
- package/dist/types.d.ts +7 -32
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +15 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RetryConfigurationPageProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* RetryConfigurationPage Component
|
|
4
|
+
*
|
|
5
|
+
* This component would display:
|
|
6
|
+
* - Storage backend configuration
|
|
7
|
+
* - Memory protection settings
|
|
8
|
+
* - Retry policy templates
|
|
9
|
+
* - Environment-specific configurations
|
|
10
|
+
*
|
|
11
|
+
* Implementation would use React with shadcn/ui components
|
|
12
|
+
*/
|
|
13
|
+
export declare function RetryConfigurationPage(props: RetryConfigurationPageProps): null;
|
|
14
|
+
export default RetryConfigurationPage;
|
|
15
|
+
//# sourceMappingURL=RetryConfigurationPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryConfigurationPage.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryConfigurationPage.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,QAIxE;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RetryConfigurationPage = RetryConfigurationPage;
|
|
11
|
+
/**
|
|
12
|
+
* RetryConfigurationPage Component
|
|
13
|
+
*
|
|
14
|
+
* This component would display:
|
|
15
|
+
* - Storage backend configuration
|
|
16
|
+
* - Memory protection settings
|
|
17
|
+
* - Retry policy templates
|
|
18
|
+
* - Environment-specific configurations
|
|
19
|
+
*
|
|
20
|
+
* Implementation would use React with shadcn/ui components
|
|
21
|
+
*/
|
|
22
|
+
function RetryConfigurationPage(props) {
|
|
23
|
+
// This would be implemented as a React component
|
|
24
|
+
// For now, this is a placeholder
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
exports.default = RetryConfigurationPage;
|
|
28
|
+
//# sourceMappingURL=RetryConfigurationPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryConfigurationPage.js","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryConfigurationPage.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;AAeF,wDAIC;AAfD;;;;;;;;;;GAUG;AACH,SAAgB,sBAAsB,CAAC,KAAkC;IACvE,iDAAiD;IACjD,iCAAiC;IACjC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,kBAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RetryEnhancementsPageProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* RetryEnhancementsPage Component
|
|
4
|
+
*
|
|
5
|
+
* This component would display:
|
|
6
|
+
* - Enhancement status and configuration
|
|
7
|
+
* - Auto-upgrade recommendations
|
|
8
|
+
* - Performance optimization suggestions
|
|
9
|
+
* - Enhancement management controls
|
|
10
|
+
*
|
|
11
|
+
* Implementation would use React with shadcn/ui components
|
|
12
|
+
*/
|
|
13
|
+
export declare function RetryEnhancementsPage(props: RetryEnhancementsPageProps): null;
|
|
14
|
+
export default RetryEnhancementsPage;
|
|
15
|
+
//# sourceMappingURL=RetryEnhancementsPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryEnhancementsPage.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryEnhancementsPage.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,QAItE;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RetryEnhancementsPage = RetryEnhancementsPage;
|
|
11
|
+
/**
|
|
12
|
+
* RetryEnhancementsPage Component
|
|
13
|
+
*
|
|
14
|
+
* This component would display:
|
|
15
|
+
* - Enhancement status and configuration
|
|
16
|
+
* - Auto-upgrade recommendations
|
|
17
|
+
* - Performance optimization suggestions
|
|
18
|
+
* - Enhancement management controls
|
|
19
|
+
*
|
|
20
|
+
* Implementation would use React with shadcn/ui components
|
|
21
|
+
*/
|
|
22
|
+
function RetryEnhancementsPage(props) {
|
|
23
|
+
// This would be implemented as a React component
|
|
24
|
+
// For now, this is a placeholder
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
exports.default = RetryEnhancementsPage;
|
|
28
|
+
//# sourceMappingURL=RetryEnhancementsPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryEnhancementsPage.js","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryEnhancementsPage.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;AAeF,sDAIC;AAfD;;;;;;;;;;GAUG;AACH,SAAgB,qBAAqB,CAAC,KAAiC;IACrE,iDAAiD;IACjD,iCAAiC;IACjC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RetryOperationsPageProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* RetryOperationsPage Component
|
|
4
|
+
*
|
|
5
|
+
* This component would display:
|
|
6
|
+
* - List and filter retry operations
|
|
7
|
+
* - Cancel/retry individual operations
|
|
8
|
+
* - Bulk retry operations management
|
|
9
|
+
* - Retry configuration management
|
|
10
|
+
*
|
|
11
|
+
* Implementation would use React with shadcn/ui components
|
|
12
|
+
*/
|
|
13
|
+
export declare function RetryOperationsPage(props: RetryOperationsPageProps): null;
|
|
14
|
+
export default RetryOperationsPage;
|
|
15
|
+
//# sourceMappingURL=RetryOperationsPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryOperationsPage.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryOperationsPage.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,QAIlE;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RetryOperationsPage = RetryOperationsPage;
|
|
11
|
+
/**
|
|
12
|
+
* RetryOperationsPage Component
|
|
13
|
+
*
|
|
14
|
+
* This component would display:
|
|
15
|
+
* - List and filter retry operations
|
|
16
|
+
* - Cancel/retry individual operations
|
|
17
|
+
* - Bulk retry operations management
|
|
18
|
+
* - Retry configuration management
|
|
19
|
+
*
|
|
20
|
+
* Implementation would use React with shadcn/ui components
|
|
21
|
+
*/
|
|
22
|
+
function RetryOperationsPage(props) {
|
|
23
|
+
// This would be implemented as a React component
|
|
24
|
+
// For now, this is a placeholder
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
exports.default = RetryOperationsPage;
|
|
28
|
+
//# sourceMappingURL=RetryOperationsPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryOperationsPage.js","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryOperationsPage.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;AAeF,kDAIC;AAfD;;;;;;;;;;GAUG;AACH,SAAgB,mBAAmB,CAAC,KAA+B;IACjE,iDAAiD;IACjD,iCAAiC;IACjC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RetryOverviewPageProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* RetryOverviewPage Component
|
|
4
|
+
*
|
|
5
|
+
* This component would display:
|
|
6
|
+
* - Real-time retry statistics
|
|
7
|
+
* - Success/failure rate charts
|
|
8
|
+
* - Performance metrics visualization
|
|
9
|
+
* - Memory usage monitoring widgets
|
|
10
|
+
*
|
|
11
|
+
* Implementation would use React with shadcn/ui components
|
|
12
|
+
*/
|
|
13
|
+
export declare function RetryOverviewPage(props: RetryOverviewPageProps): null;
|
|
14
|
+
export default RetryOverviewPage;
|
|
15
|
+
//# sourceMappingURL=RetryOverviewPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryOverviewPage.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryOverviewPage.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,QAI9D;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RetryOverviewPage = RetryOverviewPage;
|
|
11
|
+
/**
|
|
12
|
+
* RetryOverviewPage Component
|
|
13
|
+
*
|
|
14
|
+
* This component would display:
|
|
15
|
+
* - Real-time retry statistics
|
|
16
|
+
* - Success/failure rate charts
|
|
17
|
+
* - Performance metrics visualization
|
|
18
|
+
* - Memory usage monitoring widgets
|
|
19
|
+
*
|
|
20
|
+
* Implementation would use React with shadcn/ui components
|
|
21
|
+
*/
|
|
22
|
+
function RetryOverviewPage(props) {
|
|
23
|
+
// This would be implemented as a React component
|
|
24
|
+
// For now, this is a placeholder
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
exports.default = RetryOverviewPage;
|
|
28
|
+
//# sourceMappingURL=RetryOverviewPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetryOverviewPage.js","sourceRoot":"","sources":["../../../src/neveradmin/components/RetryOverviewPage.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;AAeF,8CAIC;AAfD;;;;;;;;;;GAUG;AACH,SAAgB,iBAAiB,CAAC,KAA6B;IAC7D,iDAAiD;IACjD,iCAAiC;IACjC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './RetryOverviewPage';
|
|
3
|
+
export * from './RetryOperationsPage';
|
|
4
|
+
export * from './RetryConfigurationPage';
|
|
5
|
+
export * from './RetryEnhancementsPage';
|
|
6
|
+
export * from './RetryAnalyticsPage';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/components/index.ts"],"names":[],"mappings":"AAWA,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
// Note: These components would be implemented as React components
|
|
25
|
+
// For now, we're exporting the component interfaces and types
|
|
26
|
+
__exportStar(require("./types"), exports);
|
|
27
|
+
__exportStar(require("./RetryOverviewPage"), exports);
|
|
28
|
+
__exportStar(require("./RetryOperationsPage"), exports);
|
|
29
|
+
__exportStar(require("./RetryConfigurationPage"), exports);
|
|
30
|
+
__exportStar(require("./RetryEnhancementsPage"), exports);
|
|
31
|
+
__exportStar(require("./RetryAnalyticsPage"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/neveradmin/components/index.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;;;;;;;;;;;;;;AAEF,kEAAkE;AAClE,8DAA8D;AAE9D,0CAAwB;AACxB,sDAAoC;AACpC,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,uDAAqC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { RetryManager } from '../../retry-manager';
|
|
2
|
+
import { EnhancementManager } from '../../enhancement-manager';
|
|
3
|
+
import { RetryAdminUser } from '../types';
|
|
4
|
+
export interface NeverAdminPageProps {
|
|
5
|
+
user: RetryAdminUser;
|
|
6
|
+
retryManager: RetryManager;
|
|
7
|
+
enhancementManager: EnhancementManager;
|
|
8
|
+
}
|
|
9
|
+
export interface RetryOverviewPageProps extends NeverAdminPageProps {
|
|
10
|
+
}
|
|
11
|
+
export interface RetryOperationsPageProps extends NeverAdminPageProps {
|
|
12
|
+
}
|
|
13
|
+
export interface RetryConfigurationPageProps extends NeverAdminPageProps {
|
|
14
|
+
}
|
|
15
|
+
export interface RetryEnhancementsPageProps extends NeverAdminPageProps {
|
|
16
|
+
}
|
|
17
|
+
export interface RetryAnalyticsPageProps extends NeverAdminPageProps {
|
|
18
|
+
}
|
|
19
|
+
export interface RetryStatsCardProps {
|
|
20
|
+
title: string;
|
|
21
|
+
value: string | number;
|
|
22
|
+
subtitle?: string;
|
|
23
|
+
trend?: {
|
|
24
|
+
value: number;
|
|
25
|
+
isPositive: boolean;
|
|
26
|
+
};
|
|
27
|
+
icon?: string;
|
|
28
|
+
color?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface RetryOperationsTableProps {
|
|
31
|
+
operations: any[];
|
|
32
|
+
loading: boolean;
|
|
33
|
+
onCancel: (id: string) => void;
|
|
34
|
+
onRetry: (id: string) => void;
|
|
35
|
+
onBulkAction: (action: string, ids: string[]) => void;
|
|
36
|
+
canCancel: boolean;
|
|
37
|
+
canRetry: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface RetryConfigurationFormProps {
|
|
40
|
+
configuration: any;
|
|
41
|
+
loading: boolean;
|
|
42
|
+
saving: boolean;
|
|
43
|
+
onSave: (config: any) => void;
|
|
44
|
+
onReset: () => void;
|
|
45
|
+
canConfigure: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface RetryEnhancementsListProps {
|
|
48
|
+
enhancements: any[];
|
|
49
|
+
recommendations: any[];
|
|
50
|
+
loading: boolean;
|
|
51
|
+
onEnable: (id: string, config?: any) => void;
|
|
52
|
+
onDisable: (id: string) => void;
|
|
53
|
+
onUpdateConfig: (id: string, config: any) => void;
|
|
54
|
+
canManage: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface RetryAnalyticsChartProps {
|
|
57
|
+
data: any[];
|
|
58
|
+
type: 'line' | 'bar' | 'pie' | 'area';
|
|
59
|
+
title: string;
|
|
60
|
+
xAxis: string;
|
|
61
|
+
yAxis: string;
|
|
62
|
+
loading: boolean;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/components/types.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;CAElE;AAED,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;CAEpE;AAED,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;CAEvE;AAED,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;CAEtE;AAED,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;CAEnE;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd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IAClD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/neveradmin/components/types.ts"],"names":[],"mappings":";AAAA;;;;;;EAME"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/hooks/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
__exportStar(require("./useRetryStats"), exports);
|
|
25
|
+
__exportStar(require("./useRetryOperations"), exports);
|
|
26
|
+
__exportStar(require("./useRetryConfiguration"), exports);
|
|
27
|
+
__exportStar(require("./useRetryEnhancements"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/neveradmin/hooks/index.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;;;;;;;;;;;;;;AAEF,kDAAgC;AAChC,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RetryManager } from '../../retry-manager';
|
|
2
|
+
import { EnhancementManager } from '../../enhancement-manager';
|
|
3
|
+
import { RetryConfiguration } from '../types';
|
|
4
|
+
export interface UseRetryConfigurationOptions {
|
|
5
|
+
autoSave?: boolean;
|
|
6
|
+
saveDelay?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface UseRetryConfigurationReturn {
|
|
9
|
+
configuration: RetryConfiguration | null;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
error: string | null;
|
|
12
|
+
saving: boolean;
|
|
13
|
+
saveError: string | null;
|
|
14
|
+
refresh: () => Promise<void>;
|
|
15
|
+
updateConfiguration: (updates: Partial<RetryConfiguration>) => Promise<boolean>;
|
|
16
|
+
resetToDefaults: () => Promise<boolean>;
|
|
17
|
+
lastSaved: Date | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Hook for managing retry configuration in NeverAdmin
|
|
21
|
+
*/
|
|
22
|
+
export declare function useRetryConfiguration(retryManager: RetryManager, enhancementManager: EnhancementManager, options?: UseRetryConfigurationOptions): UseRetryConfigurationReturn;
|
|
23
|
+
//# sourceMappingURL=useRetryConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRetryConfiguration.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/hooks/useRetryConfiguration.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAChF,eAAe,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,GAAE,4BAAiC,GACzC,2BAA2B,CAkK7B"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.useRetryConfiguration = useRetryConfiguration;
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
/**
|
|
13
|
+
* Hook for managing retry configuration in NeverAdmin
|
|
14
|
+
*/
|
|
15
|
+
function useRetryConfiguration(retryManager, enhancementManager, options = {}) {
|
|
16
|
+
const { autoSave = false, saveDelay = 1000 } = options;
|
|
17
|
+
const [configuration, setConfiguration] = (0, react_1.useState)(null);
|
|
18
|
+
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
19
|
+
const [error, setError] = (0, react_1.useState)(null);
|
|
20
|
+
const [saving, setSaving] = (0, react_1.useState)(false);
|
|
21
|
+
const [saveError, setSaveError] = (0, react_1.useState)(null);
|
|
22
|
+
const [lastSaved, setLastSaved] = (0, react_1.useState)(null);
|
|
23
|
+
const fetchConfiguration = (0, react_1.useCallback)(async () => {
|
|
24
|
+
try {
|
|
25
|
+
setLoading(true);
|
|
26
|
+
setError(null);
|
|
27
|
+
// Get current configuration from RetryManager
|
|
28
|
+
const storageConfig = enhancementManager.getEnhancementConfig('storage');
|
|
29
|
+
// Get memory protection config
|
|
30
|
+
const memoryProtectionConfig = enhancementManager.getEnhancementConfig('memoryProtection');
|
|
31
|
+
const configData = {
|
|
32
|
+
storage: {
|
|
33
|
+
type: (storageConfig?.type === 'redis' ? 'redis' : 'memory'),
|
|
34
|
+
enabled: storageConfig?.enabled || false,
|
|
35
|
+
autoUpgrade: storageConfig?.autoUpgrade || false,
|
|
36
|
+
thresholdNotifications: storageConfig?.thresholdNotifications || false,
|
|
37
|
+
memoryThreshold: storageConfig?.memoryThreshold || 80
|
|
38
|
+
},
|
|
39
|
+
memoryProtection: {
|
|
40
|
+
maxMemoryUsage: 100 * 1024 * 1024, // 100MB - default value
|
|
41
|
+
maxRetryStates: 1000,
|
|
42
|
+
cleanupInterval: 30000,
|
|
43
|
+
evictionPolicy: 'lru'
|
|
44
|
+
},
|
|
45
|
+
defaultOptions: {
|
|
46
|
+
maxRetries: 3,
|
|
47
|
+
initialDelayMs: 1000,
|
|
48
|
+
maxDelayMs: 30000,
|
|
49
|
+
backoffMultiplier: 2
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
setConfiguration(configData);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
setError(err instanceof Error ? err.message : 'Failed to fetch configuration');
|
|
56
|
+
}
|
|
57
|
+
finally {
|
|
58
|
+
setLoading(false);
|
|
59
|
+
}
|
|
60
|
+
}, [retryManager, enhancementManager]);
|
|
61
|
+
const updateConfiguration = (0, react_1.useCallback)(async (updates) => {
|
|
62
|
+
try {
|
|
63
|
+
setSaving(true);
|
|
64
|
+
setSaveError(null);
|
|
65
|
+
if (!configuration) {
|
|
66
|
+
throw new Error('No configuration loaded');
|
|
67
|
+
}
|
|
68
|
+
const updatedConfig = { ...configuration, ...updates };
|
|
69
|
+
// Update RetryManager configuration
|
|
70
|
+
if (updates.memoryProtection || updates.defaultOptions) {
|
|
71
|
+
const retryConfig = {
|
|
72
|
+
memoryProtection: updatedConfig.memoryProtection,
|
|
73
|
+
defaultOptions: updatedConfig.defaultOptions
|
|
74
|
+
};
|
|
75
|
+
// This would need to be implemented in RetryManager
|
|
76
|
+
// retryManager.updateConfiguration(retryConfig);
|
|
77
|
+
}
|
|
78
|
+
// Update EnhancementManager configuration
|
|
79
|
+
if (updates.storage) {
|
|
80
|
+
const enhancementConfig = {
|
|
81
|
+
storage: updatedConfig.storage
|
|
82
|
+
};
|
|
83
|
+
// This would need to be implemented in EnhancementManager
|
|
84
|
+
// enhancementManager.updateConfiguration(enhancementConfig);
|
|
85
|
+
}
|
|
86
|
+
setConfiguration(updatedConfig);
|
|
87
|
+
setLastSaved(new Date());
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
catch (err) {
|
|
91
|
+
setSaveError(err instanceof Error ? err.message : 'Failed to update configuration');
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
finally {
|
|
95
|
+
setSaving(false);
|
|
96
|
+
}
|
|
97
|
+
}, [configuration]);
|
|
98
|
+
const resetToDefaults = (0, react_1.useCallback)(async () => {
|
|
99
|
+
try {
|
|
100
|
+
setSaving(true);
|
|
101
|
+
setSaveError(null);
|
|
102
|
+
const defaultConfig = {
|
|
103
|
+
storage: {
|
|
104
|
+
type: 'memory',
|
|
105
|
+
enabled: false,
|
|
106
|
+
autoUpgrade: false,
|
|
107
|
+
thresholdNotifications: false,
|
|
108
|
+
memoryThreshold: 80
|
|
109
|
+
},
|
|
110
|
+
memoryProtection: {
|
|
111
|
+
maxMemoryUsage: 100 * 1024 * 1024, // 100MB
|
|
112
|
+
maxRetryStates: 1000,
|
|
113
|
+
cleanupInterval: 30000,
|
|
114
|
+
evictionPolicy: 'lru'
|
|
115
|
+
},
|
|
116
|
+
defaultOptions: {
|
|
117
|
+
maxRetries: 3,
|
|
118
|
+
initialDelayMs: 1000,
|
|
119
|
+
maxDelayMs: 30000,
|
|
120
|
+
backoffMultiplier: 2
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const success = await updateConfiguration(defaultConfig);
|
|
124
|
+
if (success) {
|
|
125
|
+
setLastSaved(new Date());
|
|
126
|
+
}
|
|
127
|
+
return success;
|
|
128
|
+
}
|
|
129
|
+
catch (err) {
|
|
130
|
+
setSaveError(err instanceof Error ? err.message : 'Failed to reset configuration');
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
finally {
|
|
134
|
+
setSaving(false);
|
|
135
|
+
}
|
|
136
|
+
}, [updateConfiguration]);
|
|
137
|
+
// Initial fetch
|
|
138
|
+
(0, react_1.useEffect)(() => {
|
|
139
|
+
fetchConfiguration();
|
|
140
|
+
}, [fetchConfiguration]);
|
|
141
|
+
// Auto-save functionality (if enabled)
|
|
142
|
+
(0, react_1.useEffect)(() => {
|
|
143
|
+
if (!autoSave || !configuration)
|
|
144
|
+
return;
|
|
145
|
+
const timeoutId = setTimeout(() => {
|
|
146
|
+
updateConfiguration(configuration);
|
|
147
|
+
}, saveDelay);
|
|
148
|
+
return () => clearTimeout(timeoutId);
|
|
149
|
+
}, [configuration, autoSave, saveDelay, updateConfiguration]);
|
|
150
|
+
return {
|
|
151
|
+
configuration,
|
|
152
|
+
loading,
|
|
153
|
+
error,
|
|
154
|
+
saving,
|
|
155
|
+
saveError,
|
|
156
|
+
refresh: fetchConfiguration,
|
|
157
|
+
updateConfiguration,
|
|
158
|
+
resetToDefaults,
|
|
159
|
+
lastSaved
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=useRetryConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRetryConfiguration.js","sourceRoot":"","sources":["../../../src/neveradmin/hooks/useRetryConfiguration.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;AA2BF,sDAsKC;AA/LD,iCAAyD;AAsBzD;;GAEG;AACH,SAAgB,qBAAqB,CACnC,YAA0B,EAC1B,kBAAsC,EACtC,UAAwC,EAAE;IAE1C,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,SAAS,GAAG,IAAI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{
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
status: 'active' | 'inactive' | 'error' | 'upgrading';
|
|
7
|
+
description: string;
|
|
8
|
+
config: Record<string, any>;
|
|
9
|
+
lastUpdated: Date;
|
|
10
|
+
}
|
|
11
|
+
export interface EnhancementRecommendation {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
priority: 'low' | 'medium' | 'high' | 'critical';
|
|
16
|
+
impact: string;
|
|
17
|
+
action: string;
|
|
18
|
+
estimatedTime: string;
|
|
19
|
+
}
|
|
20
|
+
export interface UseRetryEnhancementsOptions {
|
|
21
|
+
refreshInterval?: number;
|
|
22
|
+
autoRefresh?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface UseRetryEnhancementsReturn {
|
|
25
|
+
enhancements: EnhancementStatus[];
|
|
26
|
+
recommendations: EnhancementRecommendation[];
|
|
27
|
+
loading: boolean;
|
|
28
|
+
error: string | null;
|
|
29
|
+
refresh: () => Promise<void>;
|
|
30
|
+
enableEnhancement: (id: string, config?: Record<string, any>) => Promise<boolean>;
|
|
31
|
+
disableEnhancement: (id: string) => Promise<boolean>;
|
|
32
|
+
updateEnhancementConfig: (id: string, config: Record<string, any>) => Promise<boolean>;
|
|
33
|
+
lastUpdated: Date | null;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Hook for managing retry enhancements in NeverAdmin
|
|
37
|
+
*/
|
|
38
|
+
export declare function useRetryEnhancements(enhancementManager: EnhancementManager, options?: UseRetryEnhancementsOptions): UseRetryEnhancementsReturn;
|
|
39
|
+
//# sourceMappingURL=useRetryEnhancements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRetryEnhancements.d.ts","sourceRoot":"","sources":["../../../src/neveradmin/hooks/useRetryEnhancements.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BA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