ahs-cti 0.0.30 → 0.0.32
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/index.d.mts +80 -1
- package/dist/index.d.ts +81 -2
- package/dist-react/index.d.mts +80 -1
- package/dist-react/index.d.ts +81 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -641,6 +641,85 @@ declare const SDKPages: {
|
|
|
641
641
|
readonly CaroQualityAuditDashboard: React.ComponentType<any>;
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
+
// =============================================================================
|
|
645
|
+
// 📋 STAND-ALONE PAGE / DIALOG COMPONENTS
|
|
646
|
+
// =============================================================================
|
|
647
|
+
// These are exported at the top level (in addition to being reachable through
|
|
648
|
+
// `SDKPages`) so hosts can mount them directly — e.g. a ticket list opening the
|
|
649
|
+
// audit report for a `convoxid`, or a reports route wrapping AgentDetailReport
|
|
650
|
+
// in its own layout. Keep this block in sync with the `export`s in index.ts.
|
|
651
|
+
|
|
652
|
+
interface AuditReportDialogProps {
|
|
653
|
+
open: boolean;
|
|
654
|
+
onClose: () => void;
|
|
655
|
+
/** Dialog width. Defaults to "80vw". */
|
|
656
|
+
width?: string;
|
|
657
|
+
/** Full CDR row to audit. */
|
|
658
|
+
rowData?: any;
|
|
659
|
+
/**
|
|
660
|
+
* Call to audit. Use this when you have a bare call id (e.g. a ticket's
|
|
661
|
+
* `convoxid`) rather than a full CDR row. Takes precedence over
|
|
662
|
+
* `rowData.callUuid` when both are provided.
|
|
663
|
+
*/
|
|
664
|
+
callUuid?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Per-instance override of the maximize behaviour. When provided it takes
|
|
667
|
+
* precedence over the globally-configured resolver — useful for in-app
|
|
668
|
+
* navigation instead of opening a new tab.
|
|
669
|
+
*/
|
|
670
|
+
onMaximize?: (callUuid: string) => void;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* 🔍 Audit report shown in a modal dialog. The maximize button opens the same
|
|
675
|
+
* report full-screen in a new browser tab; the URL is built by the
|
|
676
|
+
* host-configured resolver (see `setAuditReportUrlResolver`).
|
|
677
|
+
*
|
|
678
|
+
* @since 1.0.0
|
|
679
|
+
*/
|
|
680
|
+
declare const AuditReportDialog: React.ComponentType<AuditReportDialogProps>;
|
|
681
|
+
|
|
682
|
+
/** Builds the URL the audit-report maximize button opens for a given call. */
|
|
683
|
+
type AuditReportUrlResolver = (callUuid: string) => string;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Configure how the audit-report maximize button builds its new-tab URL.
|
|
687
|
+
* Call once during host-app startup, alongside registering the route that
|
|
688
|
+
* renders `SDKPages.AuditReportPage`. The default targets a ROOT-level
|
|
689
|
+
* "/audit-report/:callUuid" route.
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* // Route registered at "/reports/audit-report/:callUuid":
|
|
693
|
+
* setAuditReportUrlResolver((id) => `/reports/audit-report/${encodeURIComponent(id)}`);
|
|
694
|
+
* // Hash router:
|
|
695
|
+
* setAuditReportUrlResolver((id) => `/#/audit-report/${encodeURIComponent(id)}`);
|
|
696
|
+
*/
|
|
697
|
+
declare function setAuditReportUrlResolver(
|
|
698
|
+
resolver: AuditReportUrlResolver,
|
|
699
|
+
): void;
|
|
700
|
+
|
|
701
|
+
interface AgentDetailReportProps {
|
|
702
|
+
/** Agent row from the Agent Performance Report list. */
|
|
703
|
+
agentRow?: any;
|
|
704
|
+
/** Invoked when the user navigates back to the list. */
|
|
705
|
+
onBack?: () => void;
|
|
706
|
+
/** Where the report was opened from; "REPORTS_LIST" renders the back affordance. */
|
|
707
|
+
from?: "REPORTS_LIST" | string;
|
|
708
|
+
/** Initial date-range start (dayjs instance). */
|
|
709
|
+
initialStartDate?: any;
|
|
710
|
+
/** Initial date-range end (dayjs instance). */
|
|
711
|
+
initialEndDate?: any;
|
|
712
|
+
/** Initial quick-range preset key (e.g. "today", "last7days"). */
|
|
713
|
+
initialQuickRange?: string;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* 📊 Agent Detail Report page component.
|
|
718
|
+
*
|
|
719
|
+
* @since 1.0.0
|
|
720
|
+
*/
|
|
721
|
+
declare const AgentDetailReport: React.ComponentType<AgentDetailReportProps>;
|
|
722
|
+
|
|
644
723
|
// =============================================================================
|
|
645
724
|
// 🗃️ TYPE EXPORTS
|
|
646
725
|
// =============================================================================
|
|
@@ -2480,4 +2559,4 @@ interface SDKAccessDeniedProps {
|
|
|
2480
2559
|
|
|
2481
2560
|
declare const SDKAccessDenied: React.FC<SDKAccessDeniedProps>;
|
|
2482
2561
|
|
|
2483
|
-
export { type APIResponse, type AgentStatus, CallControlPanel, type CallControlPanelProps, type CallData, type CallInitiationFunction, type CallTerminationFunction, type ChangeModePayload, type CleanupOperation, type ConferenceCallPayload, type ConferenceLine, type ControlsFromPermissions, type DispositionType, type EndCallData, type EndCallPayLoadData, type EndCallPayload, type ErrorResponse, type FollowUpType, type HookStateTypes, type InitSDKParams, type LiveStatusPageProps, type LogoutFunction, type LogoutHookStateTypes, type LogoutPayload, type ProcessData, SDKAccessDenied, type SDKAccessDeniedProps, type SDKBit, type SDKConfig, type SDKEntitlement, type SDKEntitlements, type SDKInitResult, SDKPages, type SDKPermissionContextValue, SDKPermissionGuard, type SDKPermissionGuardProps, type SDKPermissionState, type SDKPermissionsHook, type SDKState, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, type StartCallPayload, type StartCalltData, type StartCalltHookStateTypes, type StartMonitoringPayload, type StopMonitoringPayload, type StorageType, type SupervisorMonitorMode, type URLConfig, type UseCallMonitoringReturn, type UseClickToCallReturn, type UseClickToConferenceReturn, type UseEndCallReturn, type UseLogoutReturn, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|
|
2562
|
+
export { type APIResponse, AgentDetailReport, type AgentDetailReportProps, type AgentStatus, AuditReportDialog, type AuditReportDialogProps, type AuditReportUrlResolver, CallControlPanel, type CallControlPanelProps, type CallData, type CallInitiationFunction, type CallTerminationFunction, type ChangeModePayload, type CleanupOperation, type ConferenceCallPayload, type ConferenceLine, type ControlsFromPermissions, type DispositionType, type EndCallData, type EndCallPayLoadData, type EndCallPayload, type ErrorResponse, type FollowUpType, type HookStateTypes, type InitSDKParams, type LiveStatusPageProps, type LogoutFunction, type LogoutHookStateTypes, type LogoutPayload, type ProcessData, SDKAccessDenied, type SDKAccessDeniedProps, type SDKBit, type SDKConfig, type SDKEntitlement, type SDKEntitlements, type SDKInitResult, SDKPages, type SDKPermissionContextValue, SDKPermissionGuard, type SDKPermissionGuardProps, type SDKPermissionState, type SDKPermissionsHook, type SDKState, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, type StartCallPayload, type StartCalltData, type StartCalltHookStateTypes, type StartMonitoringPayload, type StopMonitoringPayload, type StorageType, type SupervisorMonitorMode, type URLConfig, type UseCallMonitoringReturn, type UseClickToCallReturn, type UseClickToConferenceReturn, type UseEndCallReturn, type UseLogoutReturn, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setAuditReportUrlResolver, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|
package/dist/index.d.ts
CHANGED
|
@@ -641,6 +641,85 @@ declare const SDKPages: {
|
|
|
641
641
|
readonly CaroQualityAuditDashboard: React.ComponentType<any>;
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
+
// =============================================================================
|
|
645
|
+
// 📋 STAND-ALONE PAGE / DIALOG COMPONENTS
|
|
646
|
+
// =============================================================================
|
|
647
|
+
// These are exported at the top level (in addition to being reachable through
|
|
648
|
+
// `SDKPages`) so hosts can mount them directly — e.g. a ticket list opening the
|
|
649
|
+
// audit report for a `convoxid`, or a reports route wrapping AgentDetailReport
|
|
650
|
+
// in its own layout. Keep this block in sync with the `export`s in index.ts.
|
|
651
|
+
|
|
652
|
+
interface AuditReportDialogProps {
|
|
653
|
+
open: boolean;
|
|
654
|
+
onClose: () => void;
|
|
655
|
+
/** Dialog width. Defaults to "80vw". */
|
|
656
|
+
width?: string;
|
|
657
|
+
/** Full CDR row to audit. */
|
|
658
|
+
rowData?: any;
|
|
659
|
+
/**
|
|
660
|
+
* Call to audit. Use this when you have a bare call id (e.g. a ticket's
|
|
661
|
+
* `convoxid`) rather than a full CDR row. Takes precedence over
|
|
662
|
+
* `rowData.callUuid` when both are provided.
|
|
663
|
+
*/
|
|
664
|
+
callUuid?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Per-instance override of the maximize behaviour. When provided it takes
|
|
667
|
+
* precedence over the globally-configured resolver — useful for in-app
|
|
668
|
+
* navigation instead of opening a new tab.
|
|
669
|
+
*/
|
|
670
|
+
onMaximize?: (callUuid: string) => void;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* 🔍 Audit report shown in a modal dialog. The maximize button opens the same
|
|
675
|
+
* report full-screen in a new browser tab; the URL is built by the
|
|
676
|
+
* host-configured resolver (see `setAuditReportUrlResolver`).
|
|
677
|
+
*
|
|
678
|
+
* @since 1.0.0
|
|
679
|
+
*/
|
|
680
|
+
declare const AuditReportDialog: React.ComponentType<AuditReportDialogProps>;
|
|
681
|
+
|
|
682
|
+
/** Builds the URL the audit-report maximize button opens for a given call. */
|
|
683
|
+
type AuditReportUrlResolver = (callUuid: string) => string;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Configure how the audit-report maximize button builds its new-tab URL.
|
|
687
|
+
* Call once during host-app startup, alongside registering the route that
|
|
688
|
+
* renders `SDKPages.AuditReportPage`. The default targets a ROOT-level
|
|
689
|
+
* "/audit-report/:callUuid" route.
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* // Route registered at "/reports/audit-report/:callUuid":
|
|
693
|
+
* setAuditReportUrlResolver((id) => `/reports/audit-report/${encodeURIComponent(id)}`);
|
|
694
|
+
* // Hash router:
|
|
695
|
+
* setAuditReportUrlResolver((id) => `/#/audit-report/${encodeURIComponent(id)}`);
|
|
696
|
+
*/
|
|
697
|
+
declare function setAuditReportUrlResolver(
|
|
698
|
+
resolver: AuditReportUrlResolver,
|
|
699
|
+
): void;
|
|
700
|
+
|
|
701
|
+
interface AgentDetailReportProps {
|
|
702
|
+
/** Agent row from the Agent Performance Report list. */
|
|
703
|
+
agentRow?: any;
|
|
704
|
+
/** Invoked when the user navigates back to the list. */
|
|
705
|
+
onBack?: () => void;
|
|
706
|
+
/** Where the report was opened from; "REPORTS_LIST" renders the back affordance. */
|
|
707
|
+
from?: "REPORTS_LIST" | string;
|
|
708
|
+
/** Initial date-range start (dayjs instance). */
|
|
709
|
+
initialStartDate?: any;
|
|
710
|
+
/** Initial date-range end (dayjs instance). */
|
|
711
|
+
initialEndDate?: any;
|
|
712
|
+
/** Initial quick-range preset key (e.g. "today", "last7days"). */
|
|
713
|
+
initialQuickRange?: string;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* 📊 Agent Detail Report page component.
|
|
718
|
+
*
|
|
719
|
+
* @since 1.0.0
|
|
720
|
+
*/
|
|
721
|
+
declare const AgentDetailReport: React.ComponentType<AgentDetailReportProps>;
|
|
722
|
+
|
|
644
723
|
// =============================================================================
|
|
645
724
|
// 🗃️ TYPE EXPORTS
|
|
646
725
|
// =============================================================================
|
|
@@ -2480,5 +2559,5 @@ interface SDKAccessDeniedProps {
|
|
|
2480
2559
|
|
|
2481
2560
|
declare const SDKAccessDenied: React.FC<SDKAccessDeniedProps>;
|
|
2482
2561
|
|
|
2483
|
-
export type { APIResponse, AgentStatus, CallControlPanelProps, CallData, CallInitiationFunction, CallTerminationFunction, ChangeModePayload, CleanupOperation, ConferenceCallPayload, ConferenceLine, ControlsFromPermissions, DispositionType, EndCallData, EndCallPayLoadData, EndCallPayload, ErrorResponse, FollowUpType, HookStateTypes, InitSDKParams, LiveStatusPageProps, LogoutFunction, LogoutHookStateTypes, LogoutPayload, ProcessData, SDKAccessDeniedProps, SDKBit, SDKConfig, SDKEntitlement, SDKEntitlements, SDKInitResult, SDKPermissionContextValue, SDKPermissionGuardProps, SDKPermissionState, SDKPermissionsHook, SDKState, StartCallPayload, StartCalltData, StartCalltHookStateTypes, StartMonitoringPayload, StopMonitoringPayload, StorageType, SupervisorMonitorMode, URLConfig, UseCallMonitoringReturn, UseClickToCallReturn, UseClickToConferenceReturn, UseEndCallReturn, UseLogoutReturn }
|
|
2484
|
-
export { CallControlPanel, SDKAccessDenied, SDKPages, SDKPermissionGuard, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|
|
2562
|
+
export type { APIResponse, AgentDetailReportProps, AgentStatus, AuditReportDialogProps, AuditReportUrlResolver, CallControlPanelProps, CallData, CallInitiationFunction, CallTerminationFunction, ChangeModePayload, CleanupOperation, ConferenceCallPayload, ConferenceLine, ControlsFromPermissions, DispositionType, EndCallData, EndCallPayLoadData, EndCallPayload, ErrorResponse, FollowUpType, HookStateTypes, InitSDKParams, LiveStatusPageProps, LogoutFunction, LogoutHookStateTypes, LogoutPayload, ProcessData, SDKAccessDeniedProps, SDKBit, SDKConfig, SDKEntitlement, SDKEntitlements, SDKInitResult, SDKPermissionContextValue, SDKPermissionGuardProps, SDKPermissionState, SDKPermissionsHook, SDKState, StartCallPayload, StartCalltData, StartCalltHookStateTypes, StartMonitoringPayload, StopMonitoringPayload, StorageType, SupervisorMonitorMode, URLConfig, UseCallMonitoringReturn, UseClickToCallReturn, UseClickToConferenceReturn, UseEndCallReturn, UseLogoutReturn }
|
|
2563
|
+
export { AgentDetailReport, AuditReportDialog, CallControlPanel, SDKAccessDenied, SDKPages, SDKPermissionGuard, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setAuditReportUrlResolver, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|
package/dist-react/index.d.mts
CHANGED
|
@@ -641,6 +641,85 @@ declare const SDKPages: {
|
|
|
641
641
|
readonly CaroQualityAuditDashboard: React.ComponentType<any>;
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
+
// =============================================================================
|
|
645
|
+
// 📋 STAND-ALONE PAGE / DIALOG COMPONENTS
|
|
646
|
+
// =============================================================================
|
|
647
|
+
// These are exported at the top level (in addition to being reachable through
|
|
648
|
+
// `SDKPages`) so hosts can mount them directly — e.g. a ticket list opening the
|
|
649
|
+
// audit report for a `convoxid`, or a reports route wrapping AgentDetailReport
|
|
650
|
+
// in its own layout. Keep this block in sync with the `export`s in index.ts.
|
|
651
|
+
|
|
652
|
+
interface AuditReportDialogProps {
|
|
653
|
+
open: boolean;
|
|
654
|
+
onClose: () => void;
|
|
655
|
+
/** Dialog width. Defaults to "80vw". */
|
|
656
|
+
width?: string;
|
|
657
|
+
/** Full CDR row to audit. */
|
|
658
|
+
rowData?: any;
|
|
659
|
+
/**
|
|
660
|
+
* Call to audit. Use this when you have a bare call id (e.g. a ticket's
|
|
661
|
+
* `convoxid`) rather than a full CDR row. Takes precedence over
|
|
662
|
+
* `rowData.callUuid` when both are provided.
|
|
663
|
+
*/
|
|
664
|
+
callUuid?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Per-instance override of the maximize behaviour. When provided it takes
|
|
667
|
+
* precedence over the globally-configured resolver — useful for in-app
|
|
668
|
+
* navigation instead of opening a new tab.
|
|
669
|
+
*/
|
|
670
|
+
onMaximize?: (callUuid: string) => void;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* 🔍 Audit report shown in a modal dialog. The maximize button opens the same
|
|
675
|
+
* report full-screen in a new browser tab; the URL is built by the
|
|
676
|
+
* host-configured resolver (see `setAuditReportUrlResolver`).
|
|
677
|
+
*
|
|
678
|
+
* @since 1.0.0
|
|
679
|
+
*/
|
|
680
|
+
declare const AuditReportDialog: React.ComponentType<AuditReportDialogProps>;
|
|
681
|
+
|
|
682
|
+
/** Builds the URL the audit-report maximize button opens for a given call. */
|
|
683
|
+
type AuditReportUrlResolver = (callUuid: string) => string;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Configure how the audit-report maximize button builds its new-tab URL.
|
|
687
|
+
* Call once during host-app startup, alongside registering the route that
|
|
688
|
+
* renders `SDKPages.AuditReportPage`. The default targets a ROOT-level
|
|
689
|
+
* "/audit-report/:callUuid" route.
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* // Route registered at "/reports/audit-report/:callUuid":
|
|
693
|
+
* setAuditReportUrlResolver((id) => `/reports/audit-report/${encodeURIComponent(id)}`);
|
|
694
|
+
* // Hash router:
|
|
695
|
+
* setAuditReportUrlResolver((id) => `/#/audit-report/${encodeURIComponent(id)}`);
|
|
696
|
+
*/
|
|
697
|
+
declare function setAuditReportUrlResolver(
|
|
698
|
+
resolver: AuditReportUrlResolver,
|
|
699
|
+
): void;
|
|
700
|
+
|
|
701
|
+
interface AgentDetailReportProps {
|
|
702
|
+
/** Agent row from the Agent Performance Report list. */
|
|
703
|
+
agentRow?: any;
|
|
704
|
+
/** Invoked when the user navigates back to the list. */
|
|
705
|
+
onBack?: () => void;
|
|
706
|
+
/** Where the report was opened from; "REPORTS_LIST" renders the back affordance. */
|
|
707
|
+
from?: "REPORTS_LIST" | string;
|
|
708
|
+
/** Initial date-range start (dayjs instance). */
|
|
709
|
+
initialStartDate?: any;
|
|
710
|
+
/** Initial date-range end (dayjs instance). */
|
|
711
|
+
initialEndDate?: any;
|
|
712
|
+
/** Initial quick-range preset key (e.g. "today", "last7days"). */
|
|
713
|
+
initialQuickRange?: string;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* 📊 Agent Detail Report page component.
|
|
718
|
+
*
|
|
719
|
+
* @since 1.0.0
|
|
720
|
+
*/
|
|
721
|
+
declare const AgentDetailReport: React.ComponentType<AgentDetailReportProps>;
|
|
722
|
+
|
|
644
723
|
// =============================================================================
|
|
645
724
|
// 🗃️ TYPE EXPORTS
|
|
646
725
|
// =============================================================================
|
|
@@ -2480,4 +2559,4 @@ interface SDKAccessDeniedProps {
|
|
|
2480
2559
|
|
|
2481
2560
|
declare const SDKAccessDenied: React.FC<SDKAccessDeniedProps>;
|
|
2482
2561
|
|
|
2483
|
-
export { type APIResponse, type AgentStatus, CallControlPanel, type CallControlPanelProps, type CallData, type CallInitiationFunction, type CallTerminationFunction, type ChangeModePayload, type CleanupOperation, type ConferenceCallPayload, type ConferenceLine, type ControlsFromPermissions, type DispositionType, type EndCallData, type EndCallPayLoadData, type EndCallPayload, type ErrorResponse, type FollowUpType, type HookStateTypes, type InitSDKParams, type LiveStatusPageProps, type LogoutFunction, type LogoutHookStateTypes, type LogoutPayload, type ProcessData, SDKAccessDenied, type SDKAccessDeniedProps, type SDKBit, type SDKConfig, type SDKEntitlement, type SDKEntitlements, type SDKInitResult, SDKPages, type SDKPermissionContextValue, SDKPermissionGuard, type SDKPermissionGuardProps, type SDKPermissionState, type SDKPermissionsHook, type SDKState, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, type StartCallPayload, type StartCalltData, type StartCalltHookStateTypes, type StartMonitoringPayload, type StopMonitoringPayload, type StorageType, type SupervisorMonitorMode, type URLConfig, type UseCallMonitoringReturn, type UseClickToCallReturn, type UseClickToConferenceReturn, type UseEndCallReturn, type UseLogoutReturn, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|
|
2562
|
+
export { type APIResponse, AgentDetailReport, type AgentDetailReportProps, type AgentStatus, AuditReportDialog, type AuditReportDialogProps, type AuditReportUrlResolver, CallControlPanel, type CallControlPanelProps, type CallData, type CallInitiationFunction, type CallTerminationFunction, type ChangeModePayload, type CleanupOperation, type ConferenceCallPayload, type ConferenceLine, type ControlsFromPermissions, type DispositionType, type EndCallData, type EndCallPayLoadData, type EndCallPayload, type ErrorResponse, type FollowUpType, type HookStateTypes, type InitSDKParams, type LiveStatusPageProps, type LogoutFunction, type LogoutHookStateTypes, type LogoutPayload, type ProcessData, SDKAccessDenied, type SDKAccessDeniedProps, type SDKBit, type SDKConfig, type SDKEntitlement, type SDKEntitlements, type SDKInitResult, SDKPages, type SDKPermissionContextValue, SDKPermissionGuard, type SDKPermissionGuardProps, type SDKPermissionState, type SDKPermissionsHook, type SDKState, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, type StartCallPayload, type StartCalltData, type StartCalltHookStateTypes, type StartMonitoringPayload, type StopMonitoringPayload, type StorageType, type SupervisorMonitorMode, type URLConfig, type UseCallMonitoringReturn, type UseClickToCallReturn, type UseClickToConferenceReturn, type UseEndCallReturn, type UseLogoutReturn, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setAuditReportUrlResolver, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|
package/dist-react/index.d.ts
CHANGED
|
@@ -641,6 +641,85 @@ declare const SDKPages: {
|
|
|
641
641
|
readonly CaroQualityAuditDashboard: React.ComponentType<any>;
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
+
// =============================================================================
|
|
645
|
+
// 📋 STAND-ALONE PAGE / DIALOG COMPONENTS
|
|
646
|
+
// =============================================================================
|
|
647
|
+
// These are exported at the top level (in addition to being reachable through
|
|
648
|
+
// `SDKPages`) so hosts can mount them directly — e.g. a ticket list opening the
|
|
649
|
+
// audit report for a `convoxid`, or a reports route wrapping AgentDetailReport
|
|
650
|
+
// in its own layout. Keep this block in sync with the `export`s in index.ts.
|
|
651
|
+
|
|
652
|
+
interface AuditReportDialogProps {
|
|
653
|
+
open: boolean;
|
|
654
|
+
onClose: () => void;
|
|
655
|
+
/** Dialog width. Defaults to "80vw". */
|
|
656
|
+
width?: string;
|
|
657
|
+
/** Full CDR row to audit. */
|
|
658
|
+
rowData?: any;
|
|
659
|
+
/**
|
|
660
|
+
* Call to audit. Use this when you have a bare call id (e.g. a ticket's
|
|
661
|
+
* `convoxid`) rather than a full CDR row. Takes precedence over
|
|
662
|
+
* `rowData.callUuid` when both are provided.
|
|
663
|
+
*/
|
|
664
|
+
callUuid?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Per-instance override of the maximize behaviour. When provided it takes
|
|
667
|
+
* precedence over the globally-configured resolver — useful for in-app
|
|
668
|
+
* navigation instead of opening a new tab.
|
|
669
|
+
*/
|
|
670
|
+
onMaximize?: (callUuid: string) => void;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* 🔍 Audit report shown in a modal dialog. The maximize button opens the same
|
|
675
|
+
* report full-screen in a new browser tab; the URL is built by the
|
|
676
|
+
* host-configured resolver (see `setAuditReportUrlResolver`).
|
|
677
|
+
*
|
|
678
|
+
* @since 1.0.0
|
|
679
|
+
*/
|
|
680
|
+
declare const AuditReportDialog: React.ComponentType<AuditReportDialogProps>;
|
|
681
|
+
|
|
682
|
+
/** Builds the URL the audit-report maximize button opens for a given call. */
|
|
683
|
+
type AuditReportUrlResolver = (callUuid: string) => string;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Configure how the audit-report maximize button builds its new-tab URL.
|
|
687
|
+
* Call once during host-app startup, alongside registering the route that
|
|
688
|
+
* renders `SDKPages.AuditReportPage`. The default targets a ROOT-level
|
|
689
|
+
* "/audit-report/:callUuid" route.
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* // Route registered at "/reports/audit-report/:callUuid":
|
|
693
|
+
* setAuditReportUrlResolver((id) => `/reports/audit-report/${encodeURIComponent(id)}`);
|
|
694
|
+
* // Hash router:
|
|
695
|
+
* setAuditReportUrlResolver((id) => `/#/audit-report/${encodeURIComponent(id)}`);
|
|
696
|
+
*/
|
|
697
|
+
declare function setAuditReportUrlResolver(
|
|
698
|
+
resolver: AuditReportUrlResolver,
|
|
699
|
+
): void;
|
|
700
|
+
|
|
701
|
+
interface AgentDetailReportProps {
|
|
702
|
+
/** Agent row from the Agent Performance Report list. */
|
|
703
|
+
agentRow?: any;
|
|
704
|
+
/** Invoked when the user navigates back to the list. */
|
|
705
|
+
onBack?: () => void;
|
|
706
|
+
/** Where the report was opened from; "REPORTS_LIST" renders the back affordance. */
|
|
707
|
+
from?: "REPORTS_LIST" | string;
|
|
708
|
+
/** Initial date-range start (dayjs instance). */
|
|
709
|
+
initialStartDate?: any;
|
|
710
|
+
/** Initial date-range end (dayjs instance). */
|
|
711
|
+
initialEndDate?: any;
|
|
712
|
+
/** Initial quick-range preset key (e.g. "today", "last7days"). */
|
|
713
|
+
initialQuickRange?: string;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* 📊 Agent Detail Report page component.
|
|
718
|
+
*
|
|
719
|
+
* @since 1.0.0
|
|
720
|
+
*/
|
|
721
|
+
declare const AgentDetailReport: React.ComponentType<AgentDetailReportProps>;
|
|
722
|
+
|
|
644
723
|
// =============================================================================
|
|
645
724
|
// 🗃️ TYPE EXPORTS
|
|
646
725
|
// =============================================================================
|
|
@@ -2480,4 +2559,5 @@ interface SDKAccessDeniedProps {
|
|
|
2480
2559
|
|
|
2481
2560
|
declare const SDKAccessDenied: React.FC<SDKAccessDeniedProps>;
|
|
2482
2561
|
|
|
2483
|
-
export {
|
|
2562
|
+
export type { APIResponse, AgentDetailReportProps, AgentStatus, AuditReportDialogProps, AuditReportUrlResolver, CallControlPanelProps, CallData, CallInitiationFunction, CallTerminationFunction, ChangeModePayload, CleanupOperation, ConferenceCallPayload, ConferenceLine, ControlsFromPermissions, DispositionType, EndCallData, EndCallPayLoadData, EndCallPayload, ErrorResponse, FollowUpType, HookStateTypes, InitSDKParams, LiveStatusPageProps, LogoutFunction, LogoutHookStateTypes, LogoutPayload, ProcessData, SDKAccessDeniedProps, SDKBit, SDKConfig, SDKEntitlement, SDKEntitlements, SDKInitResult, SDKPermissionContextValue, SDKPermissionGuardProps, SDKPermissionState, SDKPermissionsHook, SDKState, StartCallPayload, StartCalltData, StartCalltHookStateTypes, StartMonitoringPayload, StopMonitoringPayload, StorageType, SupervisorMonitorMode, URLConfig, UseCallMonitoringReturn, UseClickToCallReturn, UseClickToConferenceReturn, UseEndCallReturn, UseLogoutReturn }
|
|
2563
|
+
export { AgentDetailReport, AuditReportDialog, CallControlPanel, SDKAccessDenied, SDKPages, SDKPermissionGuard, SDKStateManager, SDK_MENU_CODES, SDK_PERMISSIONS, SDK_WILDCARD, changeMonitorMode, clickToCall, clickToConference, endCall, getSDKVersion, initSDK, isSDKInitialized, logout, sdkStateManager, setAuditReportUrlResolver, setTransferLeadData, startMonitoring, stopMonitoring, useCallMonitoring, useClickToCall, useClickToConference, useEndCall, useGetAuthorizationToken, useGetCallerData, useLogout, useSDKPermissions, useSDKState };
|