@zeniai/web-components 4.0.6 → 4.0.7
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/{TransactionActivityLogPage-1oYSZkVw.js → TransactionActivityLogPage-Bvnn3dbJ.js} +41567 -41512
- package/dist/{TransactionActivityLogPage-DsZzsIS0.cjs → TransactionActivityLogPage-DJo48l4Z.cjs} +11233 -11209
- package/dist/appLocale.d.ts +66 -0
- package/dist/cockpit.cjs.js +1223 -781
- package/dist/cockpit.d.ts +4 -0
- package/dist/cockpit.esm.js +9500 -8327
- package/dist/components/cockpit/aiAccountant/AiAccountantCustomerTable.d.ts +12 -0
- package/dist/components/cockpit/aiAccountant/AiAccountantDetailDrawer.d.ts +13 -0
- package/dist/components/cockpit/aiAccountant/AiAccountantJobTriggerDialog.d.ts +9 -0
- package/dist/components/cockpit/aiAccountant/AiAccountantPage.d.ts +23 -0
- package/dist/components/cockpit/aiAccountant/AiAccountantPageSkeleton.d.ts +2 -0
- package/dist/components/cockpit/aiAccountant/AiAccountantSummaryCards.d.ts +7 -0
- package/dist/components/cockpit/aiAccountant/aiAccountantConfig.d.ts +105 -0
- package/dist/components/cockpit/aiAccountant/useAiAccountantWriteAccess.d.ts +1 -0
- package/dist/components/cockpit/common/cockpitConstants.d.ts +2 -1
- package/dist/components/cockpit/common/cockpitFilters/cockpitFiltersHelpers.d.ts +1 -1
- package/dist/components/cockpit/common/cockpitFilters/commonTypes.d.ts +5 -2
- package/dist/components/cockpit/common/cockpitFilters/components/CategoryDropdown.d.ts +2 -2
- package/dist/components/cockpit/common/cockpitHelpers.d.ts +1 -1
- package/dist/components/cockpit/common/cockpitTypes.d.ts +3 -3
- package/dist/components/cockpit/healthMonitor/healthMonitorListView/healthMonitorHeaderItemsData.d.ts +1 -1
- package/dist/components/cockpit/management/managementListView/managementHeaderItemsData.d.ts +1 -1
- package/dist/components/cockpit/onboarding/onboardingListview/onboardingHeaderItemsData.d.ts +1 -1
- package/dist/components/cockpit/portfolio/portfolioListView/portfolioHeaderItemsData.d.ts +1 -1
- package/dist/components/cockpit/subscription/subscriptionListView/subscriptionHeaderItemsData.d.ts +1 -1
- package/dist/components/cockpit/taskManager/taskManagerHeaderItemsData.d.ts +1 -1
- package/dist/components/commentsAndNotes/components/ThreadHelpers.d.ts +1 -1
- package/dist/components/commentsAndNotes/utils/CollaborationTypes.d.ts +1 -1
- package/dist/context/featureProvider/DynamicConfigNameConstants.d.ts +3 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/strings/strings.d.ts +66 -0
- package/dist/{vendor-.pnpm-B6KSVg0z.js → vendor-.pnpm-GZYkq-zn.js} +38 -38
- package/package.json +3 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AiAccountantCustomerView, AiAccountantOperationType, AiAccountantSortKey, SortOrder } from '@zeniai/client-epic-state';
|
|
2
|
+
interface Props {
|
|
3
|
+
customers: AiAccountantCustomerView[];
|
|
4
|
+
sortKey: AiAccountantSortKey;
|
|
5
|
+
sortOrder: SortOrder;
|
|
6
|
+
onAction: (customer: AiAccountantCustomerView, operation: AiAccountantOperationType, startDate: string, endDate: string) => void;
|
|
7
|
+
onCancelOnboarding: (customer: AiAccountantCustomerView) => void;
|
|
8
|
+
onColumnSortConfigChanged: (sortKey: AiAccountantSortKey, sortOrder: SortOrder) => void;
|
|
9
|
+
onRowClick: (customer: AiAccountantCustomerView) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const AiAccountantCustomerTable: ({ customers, sortKey, sortOrder, onAction, onCancelOnboarding, onColumnSortConfigChanged, onRowClick, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default AiAccountantCustomerTable;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AiAccountantCustomerView, AiAccountantJobView, AiAccountantOperationType, FetchStateAndError } from '@zeniai/client-epic-state';
|
|
2
|
+
interface Props {
|
|
3
|
+
customer: AiAccountantCustomerView;
|
|
4
|
+
hasMoreJobs: boolean;
|
|
5
|
+
jobs: AiAccountantJobView[];
|
|
6
|
+
jobsFetchStatus: FetchStateAndError;
|
|
7
|
+
onAction: (customer: AiAccountantCustomerView, operation: AiAccountantOperationType, startDate: string, endDate: string) => void;
|
|
8
|
+
onCancelOnboarding: (customer: AiAccountantCustomerView) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onLoadMoreJobs: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare const AiAccountantDetailDrawer: ({ customer, hasMoreJobs, jobs, jobsFetchStatus, onAction, onCancelOnboarding, onClose, onLoadMoreJobs, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default AiAccountantDetailDrawer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AiAccountantCustomerView, AiAccountantOperationType } from '@zeniai/client-epic-state';
|
|
2
|
+
interface Props {
|
|
3
|
+
customer: AiAccountantCustomerView;
|
|
4
|
+
operationType: AiAccountantOperationType;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
onConfirm: (customer: AiAccountantCustomerView, operationType: AiAccountantOperationType, startDate: string, endDate: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const AiAccountantJobTriggerDialog: ({ customer, operationType, onCancel, onConfirm, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AiAccountantJobTriggerDialog;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AiAccountantCockpitView, AiAccountantCustomerView, AiAccountantOperationType, AiAccountantSortKey, CockpitFilters, SortOrder } from '@zeniai/client-epic-state';
|
|
2
|
+
import { CockpitOptionType } from '../common/cockpitTypes';
|
|
3
|
+
import { NavHeaderActions, NavHeaderData } from '../common/navHeader/NavHeader';
|
|
4
|
+
export type AiAccountantPageData = {
|
|
5
|
+
aiAccountantView: AiAccountantCockpitView;
|
|
6
|
+
};
|
|
7
|
+
export type AiAccountantPageActions = {
|
|
8
|
+
onAction: (customer: AiAccountantCustomerView, operation: AiAccountantOperationType, startDate: string, endDate: string) => void;
|
|
9
|
+
onCancelOnboarding: (customer: AiAccountantCustomerView) => void;
|
|
10
|
+
onCockpitReloadData: (cockpitOption: CockpitOptionType) => void;
|
|
11
|
+
onColumnSortConfigChanged: (sortKey: AiAccountantSortKey, sortOrder: SortOrder) => void;
|
|
12
|
+
onCustomerSelected: (customer: AiAccountantCustomerView) => void;
|
|
13
|
+
onFiltersChange: (selectedCockpitOption: CockpitOptionType, filters: CockpitFilters) => void;
|
|
14
|
+
onFilterTextChanged: (filterText: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export interface Props {
|
|
17
|
+
aiAccountantPageActions: AiAccountantPageActions;
|
|
18
|
+
aiAccountantPageData: AiAccountantPageData;
|
|
19
|
+
headerActions: NavHeaderActions;
|
|
20
|
+
headerData: Omit<NavHeaderData, "filterData">;
|
|
21
|
+
}
|
|
22
|
+
declare const AiAccountantPage: ({ headerData, headerActions, aiAccountantPageActions, aiAccountantPageData, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default AiAccountantPage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AiAccountantCustomerView } from '@zeniai/client-epic-state';
|
|
2
|
+
interface Props {
|
|
3
|
+
averageAccuracy: number;
|
|
4
|
+
customers: AiAccountantCustomerView[];
|
|
5
|
+
}
|
|
6
|
+
declare const AiAccountantSummaryCards: ({ averageAccuracy, customers }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AiAccountantSummaryCards;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { AiAccountantOperationType, AiAccountantSortKey } from '@zeniai/client-epic-state';
|
|
3
|
+
import { Space } from '../../../designSystem/zeniConstants';
|
|
4
|
+
declare const aiAccountantStrings: {
|
|
5
|
+
filters: {
|
|
6
|
+
enrollmentStatus: {
|
|
7
|
+
active: string;
|
|
8
|
+
pending: string;
|
|
9
|
+
onboarding: string;
|
|
10
|
+
offboarded: string;
|
|
11
|
+
failed: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
table: {
|
|
15
|
+
company: string;
|
|
16
|
+
status: string;
|
|
17
|
+
bookClose: string;
|
|
18
|
+
lastTraining: string;
|
|
19
|
+
lastSync: string;
|
|
20
|
+
accuracy: string;
|
|
21
|
+
noCustomersFound: string;
|
|
22
|
+
};
|
|
23
|
+
actions: {
|
|
24
|
+
onboard: string;
|
|
25
|
+
modelPreparation: string;
|
|
26
|
+
fullPipeline: string;
|
|
27
|
+
retrain: string;
|
|
28
|
+
offboard: string;
|
|
29
|
+
cancelOnboarding: string;
|
|
30
|
+
};
|
|
31
|
+
jobTriggerDialog: {
|
|
32
|
+
title: string;
|
|
33
|
+
startDate: string;
|
|
34
|
+
endDate: string;
|
|
35
|
+
confirm: string;
|
|
36
|
+
cancel: string;
|
|
37
|
+
startDatePlaceholder: string;
|
|
38
|
+
endDatePlaceholder: string;
|
|
39
|
+
};
|
|
40
|
+
drawer: {
|
|
41
|
+
enrollmentDetails: string;
|
|
42
|
+
statusLabel: string;
|
|
43
|
+
onboarded: string;
|
|
44
|
+
lastTraining: string;
|
|
45
|
+
lastSync: string;
|
|
46
|
+
offboarded: string;
|
|
47
|
+
modelAccuracy: string;
|
|
48
|
+
noAccuracyData: string;
|
|
49
|
+
actionsTitle: string;
|
|
50
|
+
jobHistory: string;
|
|
51
|
+
loadingJobs: string;
|
|
52
|
+
noJobsFound: string;
|
|
53
|
+
operation: string;
|
|
54
|
+
status: string;
|
|
55
|
+
created: string;
|
|
56
|
+
by: string;
|
|
57
|
+
};
|
|
58
|
+
summary: {
|
|
59
|
+
totalCustomers: string;
|
|
60
|
+
active: string;
|
|
61
|
+
inProgress: string;
|
|
62
|
+
avgAccuracy: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export interface AiAccountantHeaderItemData {
|
|
66
|
+
justifyContent: CSSProperties["justifyContent"];
|
|
67
|
+
key: AiAccountantSortKey | "actions";
|
|
68
|
+
label: string;
|
|
69
|
+
sortable: boolean;
|
|
70
|
+
width: number;
|
|
71
|
+
growToFill?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export declare const aiAccountantDimensions: {
|
|
74
|
+
rowHeightPx: number;
|
|
75
|
+
headerHeightPx: number;
|
|
76
|
+
jobRowHeightPx: number;
|
|
77
|
+
jobHeaderHeightPx: number;
|
|
78
|
+
jobTableMinHeightPx: number;
|
|
79
|
+
jobOperationMinWidthPx: number;
|
|
80
|
+
jobStatusColumnWidthPx: number;
|
|
81
|
+
jobDateColumnWidthPx: number;
|
|
82
|
+
jobByColumnWidthPx: number;
|
|
83
|
+
jobSkeletonRowCount: number;
|
|
84
|
+
skeletonLoaderHeightPx: number;
|
|
85
|
+
accuracyLabelMinWidthPx: number;
|
|
86
|
+
accuracyValueMinWidthPx: number;
|
|
87
|
+
accuracySuccessThresholdPercent: number;
|
|
88
|
+
accuracyAlertThresholdPercent: number;
|
|
89
|
+
sortIconSize: Space;
|
|
90
|
+
menuIconSize: Space;
|
|
91
|
+
statusBadgeVerticalPadding: string;
|
|
92
|
+
accuracyBarHeight: Space;
|
|
93
|
+
globalNavBarHeightPx: number;
|
|
94
|
+
pageHeaderHeightPx: number;
|
|
95
|
+
menuDropdownMinWidthPx: number;
|
|
96
|
+
};
|
|
97
|
+
export declare const COLUMN_WIDTH_PX: Record<AiAccountantSortKey | "actions", number>;
|
|
98
|
+
export declare const aiAccountantHeaderItems: AiAccountantHeaderItemData[];
|
|
99
|
+
export interface StatusOperationConfig {
|
|
100
|
+
destructive: boolean;
|
|
101
|
+
labelKey: keyof typeof aiAccountantStrings.actions;
|
|
102
|
+
operationType: AiAccountantOperationType;
|
|
103
|
+
}
|
|
104
|
+
export declare const getOperationsForStatus: (status: string) => StatusOperationConfig[];
|
|
105
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useAiAccountantWriteAccess(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReferrerType } from '@zeniai/client-analytics';
|
|
2
|
-
import { HealthMonitorFilterCategoryDropdownOption, ManagementFilterCategoryDropdownOption, PortfolioFilterCategoryDropdownOption, SubscriptionFilterCategoryDropdownOption, ValuesDropdownOption } from './cockpitFilters/commonTypes';
|
|
2
|
+
import { AiAccountantFilterCategoryDropdownOption, HealthMonitorFilterCategoryDropdownOption, ManagementFilterCategoryDropdownOption, PortfolioFilterCategoryDropdownOption, SubscriptionFilterCategoryDropdownOption, ValuesDropdownOption } from './cockpitFilters/commonTypes';
|
|
3
3
|
import { NavSwitcherOptionType } from './navHeader/navSwitcher/NavSwitcher';
|
|
4
4
|
export declare const DEFAULT_COCKPIT_LIST_ITEM_HEIGHT = 88;
|
|
5
5
|
export declare const HEADER_HEIGHT = 58;
|
|
@@ -31,3 +31,4 @@ export declare const allNetPromoterScoreOptions: number[];
|
|
|
31
31
|
export declare const allCustomerSatisfactionScoreOptions: number[];
|
|
32
32
|
export declare const getCurrentCockpitTab: (currentTab: string) => string;
|
|
33
33
|
export declare const getReferrerType: (currentTab: string) => ReferrerType;
|
|
34
|
+
export declare const AI_ACCOUNTANT_FILTER_CATEGORIES: AiAccountantFilterCategoryDropdownOption[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CockpitOptionType } from '../cockpitTypes';
|
|
2
2
|
import { FilterCategory } from './commonTypes';
|
|
3
|
-
export declare const getFilterCategoriesForSelectedTab: (selectedCockpitTab: CockpitOptionType) => import('./commonTypes').ManagementFilterCategoryDropdownOption[] | import('./commonTypes').SubscriptionFilterCategoryDropdownOption[] | import('./commonTypes').PortfolioFilterCategoryDropdownOption[] | import('./commonTypes').HealthMonitorFilterCategoryDropdownOption[];
|
|
3
|
+
export declare const getFilterCategoriesForSelectedTab: (selectedCockpitTab: CockpitOptionType) => import('./commonTypes').ManagementFilterCategoryDropdownOption[] | import('./commonTypes').SubscriptionFilterCategoryDropdownOption[] | import('./commonTypes').PortfolioFilterCategoryDropdownOption[] | import('./commonTypes').HealthMonitorFilterCategoryDropdownOption[] | import('./commonTypes').AiAccountantFilterCategoryDropdownOption[];
|
|
4
4
|
export declare const getFilterCategoryLabel: (selectedCockpitOption: CockpitOptionType, key: FilterCategory) => string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FilterCategoryValueType, HealthMonitorViewFilterCategoryField, ManagementViewFilterCategoryField, PortfolioViewFilterCategoryField, SubscriptionViewFilterCategoryField, ZeniUrl } from '@zeniai/client-epic-state';
|
|
1
|
+
import { AiAccountantFilterCategoryField, FilterCategoryValueType, HealthMonitorViewFilterCategoryField, ManagementViewFilterCategoryField, PortfolioViewFilterCategoryField, SubscriptionViewFilterCategoryField, ZeniUrl } from '@zeniai/client-epic-state';
|
|
2
2
|
export type CategoryType = "user" | "rating" | "runway" | "dateRange" | "dropdownRange";
|
|
3
3
|
export interface DropdownSelectionOption {
|
|
4
4
|
value: FilterCategoryValueType;
|
|
5
5
|
}
|
|
6
|
-
export type FilterCategory = ManagementViewFilterCategoryField | SubscriptionViewFilterCategoryField | PortfolioViewFilterCategoryField | HealthMonitorViewFilterCategoryField;
|
|
6
|
+
export type FilterCategory = AiAccountantFilterCategoryField | ManagementViewFilterCategoryField | SubscriptionViewFilterCategoryField | PortfolioViewFilterCategoryField | HealthMonitorViewFilterCategoryField;
|
|
7
7
|
export interface CategoryDropdownOption extends DropdownSelectionOption {
|
|
8
8
|
value: FilterCategory;
|
|
9
9
|
multiple?: boolean;
|
|
@@ -21,6 +21,9 @@ export interface PortfolioFilterCategoryDropdownOption extends CategoryDropdownO
|
|
|
21
21
|
export interface HealthMonitorFilterCategoryDropdownOption extends CategoryDropdownOption {
|
|
22
22
|
value: HealthMonitorViewFilterCategoryField;
|
|
23
23
|
}
|
|
24
|
+
export interface AiAccountantFilterCategoryDropdownOption extends CategoryDropdownOption {
|
|
25
|
+
value: AiAccountantFilterCategoryField;
|
|
26
|
+
}
|
|
24
27
|
export type MatchingOperatorDropdownValue = "equal" | "not-equal";
|
|
25
28
|
export type ValuesCombinationOperatorDropdownValue = "ANY" | "ALL";
|
|
26
29
|
export interface MatchingOperatorDropdownOption {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { HealthMonitorViewFilterCategoryField, ManagementViewFilterCategoryField, PortfolioViewFilterCategoryField, SubscriptionViewFilterCategoryField } from '@zeniai/client-epic-state';
|
|
1
|
+
import { AiAccountantFilterCategoryField, HealthMonitorViewFilterCategoryField, ManagementViewFilterCategoryField, PortfolioViewFilterCategoryField, SubscriptionViewFilterCategoryField } from '@zeniai/client-epic-state';
|
|
2
2
|
import { CockpitOptionType } from '../../cockpitTypes';
|
|
3
3
|
import { CategoryDropdownOption } from '../commonTypes';
|
|
4
4
|
interface CategoryDropdownProps {
|
|
5
5
|
selectedCockpitOption: CockpitOptionType;
|
|
6
6
|
categoryIndex?: number;
|
|
7
7
|
defaultMenuIsOpen?: boolean;
|
|
8
|
-
value?: ManagementViewFilterCategoryField | SubscriptionViewFilterCategoryField | PortfolioViewFilterCategoryField | HealthMonitorViewFilterCategoryField;
|
|
8
|
+
value?: AiAccountantFilterCategoryField | ManagementViewFilterCategoryField | SubscriptionViewFilterCategoryField | PortfolioViewFilterCategoryField | HealthMonitorViewFilterCategoryField;
|
|
9
9
|
onChange: (val: CategoryDropdownOption, categoryIndex?: number) => void;
|
|
10
10
|
}
|
|
11
11
|
declare const CategoryDropdown: ({ onChange, value, categoryIndex, defaultMenuIsOpen, selectedCockpitOption, }: CategoryDropdownProps) => import("react/jsx-runtime").JSX.Element;
|