@zeniai/client-epic-state 5.2.36 → 5.2.37
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/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.d.ts +13 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewEpic.js +10 -7
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +3 -3
- package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +6 -2
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +3 -3
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +4 -3
- package/lib/epic.js +12 -0
- package/lib/esm/entity/class/classReducer.js +1 -1
- package/lib/esm/entity/sectionClassesViewV2/sectionClassesViewEpic.js +10 -7
- package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +6 -2
- package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +5 -4
- package/lib/esm/epic.js +12 -0
- package/lib/esm/index.js +2 -2
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +266 -1
- package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +50 -0
- package/lib/esm/view/aiCfoView/epics/deleteRoutineEpic.js +35 -0
- package/lib/esm/view/aiCfoView/epics/fetchRoutineRunsEpic.js +35 -0
- package/lib/esm/view/aiCfoView/epics/fetchRoutinesEpic.js +37 -0
- package/lib/esm/view/aiCfoView/epics/runRoutineEpic.js +34 -0
- package/lib/esm/view/aiCfoView/epics/saveRoutineEpic.js +65 -0
- package/lib/esm/view/aiCfoView/epics/setRoutineEnabledEpic.js +28 -0
- package/lib/esm/view/aiCfoView/epics/toRoutine.js +64 -0
- package/lib/esm/view/aiCfoView/epics/toRoutineRun.js +42 -0
- package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.js +4 -0
- package/lib/index.d.ts +4 -4
- package/lib/index.js +55 -40
- package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +90 -0
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +164 -123
- package/lib/view/aiCfoView/aiCfoViewReducer.js +268 -3
- package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +13 -1
- package/lib/view/aiCfoView/aiCfoViewSelector.js +55 -0
- package/lib/view/aiCfoView/aiCfoViewState.d.ts +157 -0
- package/lib/view/aiCfoView/epics/deleteRoutineEpic.d.ts +18 -0
- package/lib/view/aiCfoView/epics/deleteRoutineEpic.js +39 -0
- package/lib/view/aiCfoView/epics/fetchRoutineRunsEpic.d.ts +13 -0
- package/lib/view/aiCfoView/epics/fetchRoutineRunsEpic.js +39 -0
- package/lib/view/aiCfoView/epics/fetchRoutinesEpic.d.ts +7 -0
- package/lib/view/aiCfoView/epics/fetchRoutinesEpic.js +41 -0
- package/lib/view/aiCfoView/epics/runRoutineEpic.d.ts +14 -0
- package/lib/view/aiCfoView/epics/runRoutineEpic.js +38 -0
- package/lib/view/aiCfoView/epics/saveRoutineEpic.d.ts +13 -0
- package/lib/view/aiCfoView/epics/saveRoutineEpic.js +69 -0
- package/lib/view/aiCfoView/epics/setRoutineEnabledEpic.d.ts +15 -0
- package/lib/view/aiCfoView/epics/setRoutineEnabledEpic.js +32 -0
- package/lib/view/aiCfoView/epics/toRoutine.d.ts +17 -0
- package/lib/view/aiCfoView/epics/toRoutine.js +69 -0
- package/lib/view/aiCfoView/epics/toRoutineRun.d.ts +12 -0
- package/lib/view/aiCfoView/epics/toRoutineRun.js +47 -0
- package/lib/view/cashFlowClassesView/cashFlowClassesViewPayload.d.ts +4 -4
- package/lib/view/cashFlowProjectView/cashFlowProjectViewPayload.d.ts +4 -4
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.d.ts +1 -11
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewPayload.js +4 -0
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +1 -2
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewSelector.d.ts +1 -2
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState.d.ts +15 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingCustomerListView/invoicingCustomerListViewState.d.ts +1 -1
- package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const RECURRENCES = ['daily', 'weekly', 'monthly'];
|
|
2
|
+
const STATUSES = ['succeeded', 'failed', 'timeout'];
|
|
3
|
+
/**
|
|
4
|
+
* A routine is usable if it has an identity. That is the whole bar.
|
|
5
|
+
*
|
|
6
|
+
* `schedule_id` and `name` are what every consumer dereferences, so those are
|
|
7
|
+
* what this establishes.
|
|
8
|
+
*
|
|
9
|
+
* Deliberately NOT also requiring `macro_id`. A routine whose skill was deleted
|
|
10
|
+
* can come back without one — and it is still an active schedule emailing the
|
|
11
|
+
* user's financials. Dropping it here would make it invisible in the UI while
|
|
12
|
+
* it kept running, with no way for anyone to turn it off. Showing a broken row
|
|
13
|
+
* that can be paused or deleted is strictly better than hiding a live one.
|
|
14
|
+
*/
|
|
15
|
+
export const isRoutinePayload = (value) => {
|
|
16
|
+
const candidate = value;
|
|
17
|
+
return (typeof candidate?.schedule_id === 'string' &&
|
|
18
|
+
candidate.schedule_id !== '' &&
|
|
19
|
+
typeof candidate.name === 'string');
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Narrow a server string to a known recurrence, or null.
|
|
23
|
+
*
|
|
24
|
+
* Null, NOT a fallback to 'daily'. A read-side default becomes a write-side
|
|
25
|
+
* value the moment the user opens that routine and saves it — so guessing here
|
|
26
|
+
* would quietly convert a cadence this client does not understand into a daily
|
|
27
|
+
* one, and the owner would find out from the volume of email. Null says "this
|
|
28
|
+
* client does not know", and the UI shows the row so it can still be paused or
|
|
29
|
+
* deleted while refusing to edit its schedule.
|
|
30
|
+
*/
|
|
31
|
+
const toRecurrence = (value) => RECURRENCES.includes(value)
|
|
32
|
+
? value
|
|
33
|
+
: null;
|
|
34
|
+
const toStatus = (value) => STATUSES.includes(value) ? value : null;
|
|
35
|
+
/** Map one routine off the wire. Every default here is a deliberate reading. */
|
|
36
|
+
export const toRoutine = (payload) => ({
|
|
37
|
+
unreadRuns: payload.unread_runs ?? 0,
|
|
38
|
+
consecutiveFailures: payload.consecutive_failures ?? 0,
|
|
39
|
+
dayOfMonth: payload.day_of_month ?? null,
|
|
40
|
+
// Absent reads as enabled: a routine the server returned without the flag is
|
|
41
|
+
// one it intends to run, and defaulting to false would show every row paused.
|
|
42
|
+
enabled: payload.enabled !== false,
|
|
43
|
+
hour: payload.hour ?? 0,
|
|
44
|
+
isAdHoc: payload.is_ad_hoc === true,
|
|
45
|
+
lastRunAt: payload.last_run_at ?? null,
|
|
46
|
+
lastStatus: toStatus(payload.last_status),
|
|
47
|
+
// '' is the sanctioned "unset ID" (CLAUDE.md), not a papered-over absence:
|
|
48
|
+
// the row still renders, and the UI reads this to show it as broken rather
|
|
49
|
+
// than offering to open a skill that is not there.
|
|
50
|
+
macroId: payload.macro_id ?? '',
|
|
51
|
+
minute: payload.minute ?? 0,
|
|
52
|
+
name: payload.name,
|
|
53
|
+
nextRunAt: payload.next_run_at ?? null,
|
|
54
|
+
pinnedVersion: payload.pinned_version ?? null,
|
|
55
|
+
recurrence: toRecurrence(payload.recurrence),
|
|
56
|
+
scheduleId: payload.schedule_id,
|
|
57
|
+
sessionId: payload.session_id ?? null,
|
|
58
|
+
// Null, not a guessed 'UTC'. Same trap as `recurrence`: a read-side default
|
|
59
|
+
// is written straight back on the next save, silently moving the routine's
|
|
60
|
+
// delivery by however many hours the real zone differed by. The server always
|
|
61
|
+
// sends this, so null means something is wrong and the UI should say so.
|
|
62
|
+
tzName: payload.tz_name ?? null,
|
|
63
|
+
weekday: payload.weekday ?? null,
|
|
64
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const STATUSES = [
|
|
2
|
+
'claimed',
|
|
3
|
+
'running',
|
|
4
|
+
'succeeded',
|
|
5
|
+
'failed',
|
|
6
|
+
'timeout',
|
|
7
|
+
];
|
|
8
|
+
/**
|
|
9
|
+
* A run is usable if it has an identity — the same bar `isRoutinePayload` sets.
|
|
10
|
+
*
|
|
11
|
+
* Nothing else is required. A run that is still in flight has no `finished_at`,
|
|
12
|
+
* a claimed one has no `started_at`, and a failed one may have neither an error
|
|
13
|
+
* nor an answer to link to. Requiring any of those would drop exactly the rows
|
|
14
|
+
* the history exists to show.
|
|
15
|
+
*/
|
|
16
|
+
export const isRoutineRunPayload = (value) => {
|
|
17
|
+
const candidate = value;
|
|
18
|
+
return typeof candidate?.run_id === 'string' && candidate.run_id !== '';
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Narrow a server status to one this client knows, or null.
|
|
22
|
+
*
|
|
23
|
+
* Null rather than a fallback, for the same reason `toRecurrence` returns null:
|
|
24
|
+
* a guess here would badge an unknown state as something specific, and on a run
|
|
25
|
+
* history the difference between "failed" and "we don't know" is the whole
|
|
26
|
+
* message. The UI shows an unknown status as neither succeeded nor failed.
|
|
27
|
+
*/
|
|
28
|
+
const toStatus = (value) => STATUSES.find((status) => status === value) ?? null;
|
|
29
|
+
/** Empty strings become null: the server sends '' for an absent deep link. */
|
|
30
|
+
const toId = (value) => value != null && value !== '' ? value : null;
|
|
31
|
+
export const toRoutineRun = (payload) => ({
|
|
32
|
+
runId: payload.run_id,
|
|
33
|
+
attempt: payload.attempt ?? 1,
|
|
34
|
+
isManual: payload.is_manual === true,
|
|
35
|
+
error: toId(payload.error),
|
|
36
|
+
finishedAt: toId(payload.finished_at),
|
|
37
|
+
questionAnswerId: toId(payload.question_answer_id),
|
|
38
|
+
sessionId: toId(payload.session_id),
|
|
39
|
+
scheduledFor: toId(payload.scheduled_for),
|
|
40
|
+
startedAt: toId(payload.started_at),
|
|
41
|
+
status: toStatus(payload.status),
|
|
42
|
+
});
|
|
@@ -30,6 +30,10 @@ export const localDataToSaveInvoicingCustomerPayload = (localData, billingAddres
|
|
|
30
30
|
: {}),
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* The email rendered once with sentinel tokens standing in for the subject and
|
|
35
|
+
* body, so the composer can splice a draft into it without another request.
|
|
36
|
+
*/
|
|
33
37
|
export const toInvoicingPaymentLinkEmailPreview = (payload) => ({
|
|
34
38
|
body: payload.body,
|
|
35
39
|
bodyToken: payload.body_token,
|
package/lib/index.d.ts
CHANGED
|
@@ -983,12 +983,12 @@ export { AiAccountantCustomerViewState, AiAccountantSortKey, AiAccountantUIState
|
|
|
983
983
|
export { AiAccountantFilterCategoryField } from './view/companyView/types/cockpitTypes';
|
|
984
984
|
export { cancelAiAccountantOnboarding, fetchAiAccountantCustomers, fetchAiAccountantJobs, setSelectedTenantIdsForJobTrigger, triggerAiAccountantJob, updateAiAccountantUIState, } from './view/aiAccountantView/aiAccountantViewReducer';
|
|
985
985
|
export { AiAccountantCockpitView, getAiAccountantCockpitView, } from './view/aiAccountantView/aiAccountantViewSelector';
|
|
986
|
-
export {
|
|
987
|
-
export { AiCfoViewState, AiCfoViewUIState, Skill, SkillDetail, SkillDetailState, SkillDraft, SkillMutationState, SkillVersion, SkillVersionBodyState, SkillVersionsState, SkillVisibility,
|
|
986
|
+
export { acceptMasterTOS, applyAiCfoSidePanelHostPageTransition, clearAiCfoSidePanelHostPageContext, clearCurrentSessionId, clearDeleteChatSessionStatus, clearLastContextMessage, clearSkillDetail, clearSkillMutation, closeRoutineRuns, closeRoutinesBrowser, closeSkillsBrowser, createSession, createSessionAndSubmit, deleteChatSession, deleteRoutine, deleteSkill, fetchChatHistory, fetchChatSessionsForUser, fetchRoutineRuns, fetchRoutines, fetchSkillDetail, fetchSkills, fetchSkillsFailure, fetchSkillsSuccess, fetchSkillVersionBody, fetchSkillVersions, fetchSuggestedQuestions, fetchSuggestedQuestionsFailure, fetchSuggestedQuestionsSuccess, openRoutinesBrowser, openSkillsBrowser, runRoutine, saveRoutine, saveSkill, setRoutineEnabled, setSession, setSkillVisibility, stopSubmit, stopSubmitQuestion, submitFeedback, submitQuestion, updateAiCfoViewScrollPosition, updateCotCollapsedState, updateCurrentInput, updateResponseState, } from './view/aiCfoView/aiCfoViewReducer';
|
|
987
|
+
export { AiCfoViewState, AiCfoViewUIState, Routine, RoutineDraft, RoutineMutationState, RoutineRecurrence, RoutineRun, RoutineRunsState, RoutineRunStatus, RoutinesState, RoutineStatus, Skill, SkillDetail, SkillDetailState, SkillDraft, SkillMutationState, SkillsState, SkillVersion, SkillVersionBodyState, SkillVersionsState, SkillVisibility, SuggestedQuestionsForPageContext, } from './view/aiCfoView/aiCfoViewState';
|
|
988
988
|
export { FetchSuggestedQuestionsResponse, SuggestedQuestionsDataPayload, FetchSkillsResponse, SkillSummaryPayload, SkillListDataPayload, } from './view/aiCfoView/aiCfoViewPayload';
|
|
989
989
|
export type { FeedbackType, SubmitFeedbackPayload, } from './view/aiCfoView/aiCfoViewPayload';
|
|
990
990
|
export type { AiCfoSuggestedQuestionsPageContext } from './common/aiCfo/aiCfoSuggestedQuestionsPageContext';
|
|
991
|
-
export { AiCfoViewSelector, getAiCfoView,
|
|
991
|
+
export { AiCfoViewSelector, canCreateRoutine, getAiCfoView, getRoutineMutation, getRoutineRuns, getRoutines, getRoutinesEnabled, getSkillDetail, getSkillMutation, getSkills, getSkillsEnabled, getSkillVersionBody, getSkillVersions, getSuggestedQuestionsForPageContext, } from './view/aiCfoView/aiCfoViewSelector';
|
|
992
992
|
export { MessagePayload, ChatSessionPayload, AiCfoAnswerPayload, } from './entity/aiCfo/aiCfoPayload';
|
|
993
993
|
export { setNewSession, setSessions, updateAiCfoAnswerCardPolicyWizardPlan, upsertAnswerPayload, upsertOrAddQuestionAnswerPayload, addQuestionPayload, clearSession, toAiCfoExports, toAiCfoVisualization, appendSyntheticAiCfoAnswer, updateSyntheticAiCfoAnswer, removeSyntheticAiCfoAnswer, } from './entity/aiCfo/aiCfoReducer';
|
|
994
994
|
export { AiCfoSelectorView, getAllQuestionAnswersForChatSession, getQuestionAnswerByIdForChatSession, getAllQuestionsForChatSession, getAiCfoSelectorView, getSyntheticAiCfoAnswersForChatSession, getSyntheticAiCfoAnswerByQuestionAnswerId, ChatSessionWithOrderedQuestionAnswers, } from './entity/aiCfo/aiCfoSelector';
|
|
@@ -1171,7 +1171,7 @@ export type { InvoicingCustomerColumnConfig, InvoicingCustomerFilters, Invoicing
|
|
|
1171
1171
|
export { getInvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1172
1172
|
export type { InvoicingCustomerListView } from './view/invoicing/invoicingCustomerListView/invoicingCustomerListViewSelector';
|
|
1173
1173
|
export { fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, fetchInvoicingPaymentLinkEmailPreviewPage, } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer';
|
|
1174
|
-
export type { InvoicingPaymentLinkEmailPreviewData } from './view/invoicing/editInvoicingCustomerDetailView/
|
|
1174
|
+
export type { InvoicingPaymentLinkEmailPreviewData } from './view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewState';
|
|
1175
1175
|
export { createInvoicingSetupIntent, fetchInvoicingPlaidLinkToken, resetInvoicingCustomerPaymentMethod, saveInvoicingPaymentMethod, sendInvoicingPaymentLink, } from './view/invoicing/customerPaymentMethod/customerPaymentMethodReducer';
|
|
1176
1176
|
export type { InvoicingSetupIntent } from './view/invoicing/customerPaymentMethod/customerPaymentMethodState';
|
|
1177
1177
|
export { getInvoicingPaymentLinkSendState, getInvoicingPaymentMethodSaveState, getInvoicingPlaidLinkToken, getInvoicingSentPaymentLinkEmail, getInvoicingSentPaymentLinkMagicUrl, getInvoicingSetupIntent, getInvoicingSetupIntentFetchState, } from './view/invoicing/customerPaymentMethod/customerPaymentMethodSelector';
|
package/lib/index.js
CHANGED
|
@@ -73,18 +73,19 @@ exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = expor
|
|
|
73
73
|
exports.updateTaskListLocalData = exports.deleteTaskGroup = exports.initiateTaskListLocalData = exports.createNewTaskGroup = exports.bulkUpdateTaskList = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_GROUP_BY_CATEGORIES = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.getCannedResponsesView = exports.deleteCannedResponse = exports.saveCannedResponse = exports.fetchCannedResponses = exports.archiveTask = exports.fetchSubTasks = exports.resetSubTaskCreateStatus = exports.createSubTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.getTaskGroupById = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.updateVendorGlobalReviewViewLocalData = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = void 0;
|
|
74
74
|
exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.parseOAuthParams = exports.getZeniOAuthApproveRedirectUrl = exports.getZeniOAuthApproveFetchState = exports.getZeniOAuthApproveError = exports.clearZeniOAuthView = exports.approveOAuthConsentSuccess = exports.approveOAuthConsentFailure = exports.approveOAuthConsent = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.saveReasonForAuditRule = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getUserFromAllUsers = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.clearCardPaymentView = exports.resetCardPaymentErrorStatuses = exports.fetchPaymentSources = exports.addCardPaymentSource = exports.confirmCardSetupIntent = exports.createCardSetupIntent = exports.getAllCardsAndBankPaymentMethods = exports.deleteTag = exports.createTag = exports.fetchTagList = exports.getAllTags = exports.ALL_TASK_LIST_TABS = exports.initialTaskDetailLocalData = exports.convertHHMMStrToMinutes = exports.unsnoozeTask = exports.snoozeTask = exports.removeTaskFromList = exports.updateTaskListTab = exports.updateTaskFromListView = exports.toDueDateGroupKeyType = exports.toTaskStatusCodeType = exports.toPriorityCodeType = exports.getDueDateValueFromDueDateGroupId = exports.initialTaskDetail = exports.fetchAllTaskGroups = exports.sortSubtasks = exports.getTaskUpdates = exports.toTaskListGroupByKeyTypeStrict = exports.toTaskListGroupByKeyType = exports.updateTaskGroupName = exports.dragNDropTasks = void 0;
|
|
75
75
|
exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.DEFAULT_REFERRER_AMOUNT = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.toNotificationFrequency = exports.toNotificationChannel = exports.toggleEventChannel = exports.setGroupFrequency = exports.setGroupChannelMaster = exports.saveNotificationPreferences = exports.clearNotificationPreferencesLocalOverrides = exports.clearAllNotificationPreferencesView = exports.hasUnsavedNotificationPreferences = exports.getNotificationRegistry = exports.getNotificationPreferencesSaveState = exports.getNotificationLocalOverrides = exports.getEffectiveNotificationPreferences = exports.getNotifications = exports.getLastNotificationTime = exports.pushToastNotification = exports.isFeatureInterestRegistered = exports.getRegisteredInterestsByFeature = exports.getRegisteredInterests = exports.getFeatureNotificationView = exports.notifyMeForFeature = exports.fetchRegisteredInterests = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = void 0;
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
76
|
+
exports.acceptMasterTOS = exports.getAiAccountantCockpitView = exports.updateAiAccountantUIState = exports.triggerAiAccountantJob = exports.setSelectedTenantIdsForJobTrigger = exports.fetchAiAccountantJobs = exports.fetchAiAccountantCustomers = exports.cancelAiAccountantOnboarding = exports.getAiAccountantJobsByTenantId = exports.getAiAccountantCustomers = exports.updateAiAccountantJobs = exports.updateAiAccountantCustomer = exports.updateAiAccountantCustomers = exports.toAiAccountantJob = exports.toAiAccountantEnrollment = exports.toAiAccountantCustomer = exports.toAiAccountantOperationType = exports.toAiAccountantJobStatus = exports.toAiAccountantEnrollmentStatus = exports.getAllowedOperationsForStatus = exports.getTreasuryFundsMaximumYield = exports.getTreasurySetupViewDetails = exports.updateFundAllocationLocalData = exports.fetchPortfolioAllocation = exports.updatePortfolioAllocation = exports.fetchTreasuryFunds = exports.fetchTreasurySetupView = exports.acceptTreasuryTerms = exports.getExpressPayView = exports.resetExpressPayLocalData = exports.submitExpressPay = exports.updateExpressPayFormLocalData = exports.fetchExpressPayInitialDetails = exports.getIntlWireVerificationView = exports.updateVerificationFormLocalData = exports.submitInternationalVerificationForm = exports.fetchInternationalVerificationForm = exports.createTaskFromTaskGroupTemplate = exports.getCompanyTaskManagerView = exports.fetchTaskManagerMetrics = exports.fetchCompanyTaskManagerView = exports.fetchCockpitContext = exports.toRecurringFrequency = exports.toDayOfWeek = exports.getRecurringEndDateFromCount = exports.getMinAllowedEndDate = exports.SEMI_WEEKLY_REQUIRED_DAYS_COUNT = exports.ALL_WEEK_DAYS = exports.updateReferViewed = exports.getRewardsPlanCard = void 0;
|
|
77
|
+
exports.getRoutinesEnabled = exports.getRoutines = exports.getRoutineRuns = exports.getRoutineMutation = exports.getAiCfoView = exports.canCreateRoutine = exports.updateResponseState = exports.updateCurrentInput = exports.updateCotCollapsedState = exports.updateAiCfoViewScrollPosition = exports.submitQuestion = exports.submitFeedback = exports.stopSubmitQuestion = exports.stopSubmit = exports.setSkillVisibility = exports.setSession = exports.setRoutineEnabled = exports.saveSkill = exports.saveRoutine = exports.runRoutine = exports.openSkillsBrowser = exports.openRoutinesBrowser = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestions = exports.fetchSkillVersions = exports.fetchSkillVersionBody = exports.fetchSkillsSuccess = exports.fetchSkillsFailure = exports.fetchSkills = exports.fetchSkillDetail = exports.fetchRoutines = exports.fetchRoutineRuns = exports.fetchChatSessionsForUser = exports.fetchChatHistory = exports.deleteSkill = exports.deleteRoutine = exports.deleteChatSession = exports.createSessionAndSubmit = exports.createSession = exports.closeSkillsBrowser = exports.closeRoutinesBrowser = exports.closeRoutineRuns = exports.clearSkillMutation = exports.clearSkillDetail = exports.clearLastContextMessage = exports.clearDeleteChatSessionStatus = exports.clearCurrentSessionId = exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = void 0;
|
|
78
|
+
exports.updateCardPolicyMccCategories = exports.removeCardPolicyTemplate = exports.fetchCardPolicyVendorOptions = exports.fetchCardPolicyRecommendationFromUpload = exports.fetchCardPolicyMccCategories = exports.extractPolicyDocument = exports.clearPolicyDocumentExtraction = exports.toMessageType = exports.toMessageSender = exports.ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS = exports.toInteractiveFormTypeStrict = exports.toInteractiveFormType = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerStateType = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_INTERACTIVE_FORM_TYPES = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = exports.getSyntheticAiCfoAnswerByQuestionAnswerId = exports.getSyntheticAiCfoAnswersForChatSession = exports.getAiCfoSelectorView = exports.getAllQuestionsForChatSession = exports.getQuestionAnswerByIdForChatSession = exports.getAllQuestionAnswersForChatSession = exports.removeSyntheticAiCfoAnswer = exports.updateSyntheticAiCfoAnswer = exports.appendSyntheticAiCfoAnswer = exports.toAiCfoVisualization = exports.toAiCfoExports = exports.clearSession = exports.addQuestionPayload = exports.upsertOrAddQuestionAnswerPayload = exports.upsertAnswerPayload = exports.updateAiCfoAnswerCardPolicyWizardPlan = exports.setSessions = exports.setNewSession = exports.getSuggestedQuestionsForPageContext = exports.getSkillVersions = exports.getSkillVersionBody = exports.getSkillsEnabled = exports.getSkills = exports.getSkillMutation = exports.getSkillDetail = void 0;
|
|
79
|
+
exports.clearCreateCardPolicy = exports.clearAiCardPolicyFormDraft = exports.applyExtractedPolicyToManualCardPolicyDraft = exports.applyExtractedPolicyToAiCardPolicyDraft = exports.toUpdateCardPolicyTemplateRequestBody = exports.toExtractedCardPolicyRules = exports.toCreateCardPolicyTemplatesRequestBody = exports.toCreateCardPolicyTemplateRequestBody = exports.toCardPolicyVendorSearchOption = exports.toCardPolicyTemplateList = exports.toCardPolicyTemplate = exports.toCardPolicyStats = exports.toCardPolicyEditFormDraft = exports.toBulkCreateCardPolicyTemplateError = exports.toCardPolicyTemplateStatus = exports.toCardPolicyTemplateMode = exports.ALL_CARD_POLICY_TEMPLATE_STATUSES = exports.ALL_CARD_POLICY_TEMPLATE_MODES = exports.getUploadedPolicyDocumentFileName = exports.getPolicyRecommendationFromUploadFetchState = exports.getPolicyRecommendationFromUploadError = exports.getPolicyRecommendationFromUploadChatSessionId = exports.getPolicyRecommendationFromUploadAnswerId = exports.getPolicyDocumentExtractionFetchState = exports.getPolicyDocumentExtractionError = exports.getExtractedCardPolicyRules = exports.getCardPolicyVendorSearchString = exports.getCardPolicyVendorSearchOptions = exports.getCardPolicyVendorSearchFetchState = exports.getCardPolicyTemplatesByIds = exports.getCardPolicyTemplateById = exports.getCardPolicySuggestedBlockMerchants = exports.getCardPolicySuggestedBlockCategories = exports.getCardPolicySuggestedAllowMerchants = exports.getCardPolicySuggestedAllowCategories = exports.getCardPolicyStats = exports.getCardPolicyMccCategoriesFetchState = exports.getCardPolicyMccCategoriesError = exports.getCardPolicyMccCategories = exports.getAllCardPolicyTemplates = exports.updatePolicyRecommendationFromUploadSuccess = exports.updatePolicyRecommendationFromUploadFailure = exports.updatePolicyDocumentExtractionSuccess = exports.updatePolicyDocumentExtractionFailure = exports.updateCreatedCardPolicyTemplate = exports.updateCardPolicyVendorOptionsFailure = exports.updateCardPolicyVendorOptions = exports.updateCardPolicyTemplates = exports.updateCardPolicyStats = exports.updateCardPolicyMccCategoriesFailure = void 0;
|
|
80
|
+
exports.getCardPolicyFormDraft = exports.getCardPolicyDetailView = exports.getCardPolicyDetailFetchState = exports.updateCardPolicyFormDraft = exports.updateCardPolicyFetchStatus = exports.updateCardPolicyDetailFetchStatus = exports.updateCardPolicy = exports.fetchCardPolicyDetail = exports.getCardPolicyTemplateIds = exports.getCardPolicyListView = exports.getCardPolicyListFetchState = exports.getArchiveCardPolicyFetchState = exports.updateCardPolicyListFetchStatus = exports.updateArchiveCardPolicyFetchStatus = exports.prependCardPolicyTemplateIds = exports.fetchCardPolicyList = exports.archiveCardPolicy = exports.toManualCardPolicyTemplateRequestFromDraft = exports.toBulkCardPolicyTemplateRequestsFromDraft = exports.toCardPolicyTemplateRequestFromDraft = exports.applyAiCardPolicyFormDraftUpdate = exports.deriveAiPolicyReviewRowsFromInputs = exports.buildManualCardPolicyFormDraftSeed = exports.buildUploadReviewRows = exports.buildEmptyLimitRows = exports.buildAiCardPolicyFormDraftSeed = exports.toVendorChipFieldValue = exports.toMccCategoryChipFieldValue = exports.buildVendorChipId = exports.buildMccCategoryChipId = exports.VENDOR_CHIP_ID_PREFIX = exports.MCC_CHIP_ID_PREFIX = exports.toMccCategoryLike = exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION = exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT = exports.getManualCardPolicyFormDraft = exports.getLastCreatedCardPolicyTemplateIds = exports.getLastCreatedCardPolicyTemplateId = exports.getLastCreateCardPolicyTemplateErrors = exports.getLastCreateCardPolicySourceChatSessionId = exports.getCreateCardPolicyTemplateRequestState = exports.getAiCardPolicyFormDraft = exports.updateManualCardPolicyFormDraft = exports.updateCreateCardPolicyTemplateRequestState = exports.updateAiCardPolicyFormDraftFromUploadPlan = exports.updateAiCardPolicyFormDraft = exports.seedManualCardPolicyFormDraft = exports.seedAiCardPolicyFormDraft = exports.createCardPolicyTemplates = exports.clearManualCardPolicyFormDraft = void 0;
|
|
81
|
+
exports.mapAuditLogEntry = exports.toAuditLogEntityRouteOption = exports.isInvoicingEntityLinkable = exports.buildInvoicingEntityPath = exports.toInvoicingDiscountLifecycleActionOption = exports.toInvoicingDiscountLifecycleAction = exports.toInvoicingCatalogProductLifecycleActionOption = exports.toInvoicingCatalogItemLifecycleActionOption = exports.toInvoicingCatalogProductLifecycleAction = exports.toInvoicingCatalogItemLifecycleAction = exports.toInvoicingSubscriptionLifecycleActionOption = exports.toInvoicingSubscriptionLifecycleAction = exports.toInvoicingDunningAction = exports.INVOICING_DISCOUNT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_PRODUCT_LIFECYCLE_ACTIONS = exports.INVOICING_CATALOG_ITEM_LIFECYCLE_ACTIONS = exports.INVOICING_SUBSCRIPTION_LIFECYCLE_ACTIONS = exports.INVOICING_DUNNING_ACTIONS = exports.toKycProvidedDocumentTypeFromAllowed = exports.toKycProvidedDocumentType = exports.DEFAULT_SESSION_CONFIG = exports.SessionManager = exports.getTransactionActivityLogView = exports.fetchTransactionActivityLog = exports.BULK_UPLOAD_BAR_COMPLETE_HOLD_MS = exports.BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS = exports.getAutoTransferRuleHistory = exports.getAutoTransferRuleById = exports.getAutoTransferRules = exports.clearRuleUpdateLocalData = exports.updateRuleLocalData = exports.fetchAutoTransferReviewDetail = exports.fetchAutoTransferRuleHistory = exports.deleteAutoTransferRule = exports.updateAutoTransferRule = exports.createAutoTransferRule = exports.fetchAutoTransferRules = exports.getTreasuryTaxLetters = exports.fetchTreasuryTaxLetterList = exports.getTreasuryStatements = exports.fetchTreasuryStatementList = exports.getTreasuryTransferMoney = exports.clearTreasuryTransferMoney = exports.updateTreasuryTransferMoneyLocalData = exports.executeTreasuryTransferMoney = exports.getTreasuryDetail = exports.updateTreasuryTransactionListUIState = exports.fetchTreasuryTransactionList = exports.fetchTreasuryOverviewDetail = exports.getUpdateCardPolicyFetchState = void 0;
|
|
82
|
+
exports.initialRecordPaymentFormLocalData = exports.localDataToRecordPaymentPayload = exports.localDataToInvoiceRecordPaymentBody = exports.initializeRecordPaymentDraftFromInvoice = exports.getCreateCreditNoteView = exports.getCreateCreditNoteFormView = exports.initialCreateCreditNoteFormLocalData = exports.localDataToCreateCreditNotePayload = exports.updateCreateCreditNoteFormDraft = exports.submitCreateCreditNote = exports.resetCreateCreditNote = exports.createCreditNoteSuccess = exports.createCreditNoteFailure = exports.getIssueCreditNoteView = exports.initialIssueCreditNoteFormLocalData = exports.localDataToIssueCreditNotePayload = exports.initializeIssueCreditNoteDraftFromInvoice = exports.computeIssueCreditNoteTotal = exports.updateIssueCreditNoteFormDraft = exports.submitIssueCreditNote = exports.resetIssueCreditNote = exports.issueCreditNoteSuccess = exports.issueCreditNoteFailure = exports.initializeIssueCreditNoteDraft = exports.updateRecordPaymentFormDraft = exports.submitRecordPayment = exports.initializeRecordPaymentDraft = exports.resetRecordPayment = exports.initialInvoicingCreateInvoiceFormLocalData = exports.createInvoiceFormLocalDataToRequest = exports.blankInvoicingCreateInvoiceLineItem = exports.updateInvoicingCreateInvoiceFormDraft = exports.resetCreateInvoice = exports.fetchCreateInvoiceFormPage = exports.createInvoice = exports.getInvoiceDetail = exports.fetchInvoiceDetailPage = exports.fetchInvoiceDetail = exports.getInvoiceListView = exports.ALL_INVOICING_INVOICE_TAB_IDS = exports.updateInvoiceListFilters = exports.setInvoiceActiveTab = exports.fetchInvoiceListPage = exports.fetchInvoiceList = exports.fetchInvoiceKPIs = exports.fetchInvoiceCounts = exports.getInvoicesByIds = exports.getInvoiceById = exports.updateInvoices = exports.removeInvoice = void 0;
|
|
83
|
+
exports.fetchInvoicingCouponDetailPage = exports.getSavedInvoicingCatalogItemKind = exports.getSavedInvoicingCatalogItemId = exports.getInvoicingCatalogItemFormView = exports.getInvoicingApplicableCatalogItemOptions = exports.isTieredCatalogPricingModel = exports.initialInvoicingCatalogItemFormLocalData = exports.invoicingProductToCatalogItemFormSubFamily = exports.entityToInvoicingCatalogItemFormLocalData = exports.blankInvoicingCatalogTier = exports.blankInvoicingCatalogSubFamily = exports.INVOICING_CATALOG_TIER_TYPE_VALUES = exports.INVOICING_CATALOG_PRORATION_VALUES = exports.INVOICING_CATALOG_PRICING_MODEL_VALUES = exports.INVOICING_CATALOG_APPLICABILITY_VALUES = exports.updateInvoicingCatalogItemFormDraft = exports.submitInvoicingCatalogItemForm = exports.resetEditInvoicingCatalogItemDetailView = exports.getInvoicingSubscriptionFormView = exports.getEditInvoicingSubscriptionDetailViewState = exports.toInvoicingSubscriptionQuantity = exports.invoicingSubscriptionTodayIso = exports.initialInvoicingSubscriptionFormLocalData = exports.entityToInvoicingSubscriptionFormLocalData = exports.INVOICING_SUBSCRIPTION_SHIPPING_ADDRESS_TYPE = exports.updateInvoicingSubscriptionFormDraft = exports.submitInvoicingSubscriptionForm = exports.resetEditInvoicingSubscriptionDetailView = exports.initializeInvoicingSubscriptionAddress = exports.fetchInvoicingSubscriptionFormPage = exports.getInvoicingCustomerFormView = exports.initialInvoicingCustomerFormLocalData = exports.entityToInvoicingCustomerFormLocalData = exports.INVOICING_CUSTOMER_BILLING_ADDRESS_TYPE = exports.updateInvoicingCustomerFormDraft = exports.submitInvoicingCustomerFormSuccess = exports.submitInvoicingCustomerFormFailure = exports.submitInvoicingCustomerForm = exports.resetEditInvoicingCustomerDetailView = exports.initializeInvoicingCustomerAddress = exports.getRecordPaymentView = exports.getRecordPaymentInvoiceOptions = exports.getRecordPaymentFormView = exports.getCreateInvoiceFormView = exports.getInvoicingAuditView = exports.fetchInvoicingAuditLog = exports.getInvoicingOverview = exports.buildPeriodOptions = exports.fetchInvoicingOverview = exports.clearInvoicingOverview = void 0;
|
|
84
|
+
exports.saveInvoicingPaymentMethod = exports.resetInvoicingCustomerPaymentMethod = exports.fetchInvoicingPlaidLinkToken = exports.createInvoicingSetupIntent = exports.fetchInvoicingPaymentLinkEmailPreviewPage = exports.fetchInvoicingCustomerDetailPage = exports.fetchInvoicingCustomerDetail = exports.getInvoicingCustomerListView = exports.INVOICING_CUSTOMER_COLUMNS = exports.ALL_INVOICING_CUSTOMER_TAB_IDS = exports.ALL_INVOICING_CUSTOMER_SORT_KEYS = exports.updateInvoicingCustomerFilters = exports.setInvoicingCustomerActiveTab = exports.fetchInvoicingCustomerListPage = exports.fetchInvoicingCustomerList = exports.fetchInvoicingCustomerCounts = exports.updateInvoicingCustomers = exports.removeInvoicingCustomer = exports.INVOICING_LIST_PAGE_SIZE = exports.uploadInvoicingMigrationFiles = exports.startInvoicingMigration = exports.rollbackInvoicingMigration = exports.retryInvoicingMigration = exports.connectInvoicingChargebee = exports.getInvoicingDataImportView = exports.setInvoicingActiveMigrationSessionId = exports.fetchInvoicingMigrationSessions = exports.fetchInvoicingMigrationSession = exports.fetchInvoicingMigrationDiagnostics = exports.fetchInvoicingDataImportStatus = exports.runInvoicingPaymentAction = exports.runInvoicingDunningAction = exports.runInvoicingSubscriptionAction = exports.runInvoicingDiscountAction = exports.runInvoicingCatalogProductAction = exports.runInvoicingCatalogPlanAction = exports.fetchInvoicingCatalogItemDetailPage = exports.shouldDefaultAdjustmentCreditNote = exports.isBackdatedInvoiceDate = exports.buildVoidInvoiceSubmitBody = exports.updateInvoicingInvoice = exports.runInvoicingInvoiceAction = exports.getInvoicingCouponFormView = exports.getEditInvoicingCouponDetailViewState = exports.initialInvoicingCouponFormLocalData = exports.entityToInvoicingCouponFormLocalData = exports.updateInvoicingCouponFormDraft = exports.submitInvoicingCouponForm = exports.saveInvoicingCoupon = exports.resetEditInvoicingCouponDetailView = void 0;
|
|
85
|
+
exports.getInvoicingCreditNoteById = exports.fetchInvoicingCreditNoteDetail = exports.getInvoicingCreditNoteListView = exports.INVOICING_CREDIT_NOTE_COLUMNS = exports.ALL_INVOICING_CREDIT_NOTE_TAB_IDS = exports.ALL_INVOICING_CREDIT_NOTE_SORT_KEYS = exports.updateInvoicingCreditNoteFilters = exports.setInvoicingCreditNoteActiveTab = exports.fetchInvoicingCreditNoteListPage = exports.fetchInvoicingCreditNoteList = exports.fetchInvoicingCreditNoteCounts = exports.updateInvoicingCreditNotes = exports.removeInvoicingCreditNote = exports.getInvoicingTransactionDetail = exports.getInvoicingTransactionById = exports.fetchInvoicingTransactionDetail = exports.getInvoicingTransactionListView = exports.INVOICING_TRANSACTION_COLUMNS = exports.ALL_INVOICING_TRANSACTION_TAB_IDS = exports.ALL_INVOICING_TRANSACTION_SORT_KEYS = exports.updateInvoicingTransactionFilters = exports.setInvoicingTransactionActiveTab = exports.fetchInvoicingTransactionListPage = exports.fetchInvoicingTransactionList = exports.updateInvoicingTransactions = exports.removeInvoicingTransaction = exports.getInvoicingSubscriptionById = exports.fetchInvoicingSubscriptionDetailPage = exports.fetchInvoicingSubscriptionDetail = exports.getInvoicingSubscriptionListView = exports.INVOICING_SUBSCRIPTION_COLUMNS = exports.ALL_INVOICING_SUBSCRIPTION_TAB_IDS = exports.ALL_INVOICING_SUBSCRIPTION_SORT_KEYS = exports.updateInvoicingSubscriptionFilters = exports.setInvoicingSubscriptionActiveTab = exports.fetchInvoicingSubscriptionListPage = exports.fetchInvoicingSubscriptionList = exports.fetchInvoicingSubscriptionCounts = exports.updateInvoicingSubscriptions = exports.removeInvoicingSubscription = exports.resetPromotionalCreditAction = exports.submitAddPromotionalCredits = exports.getInvoicingSetupIntentFetchState = exports.getInvoicingSetupIntent = exports.getInvoicingSentPaymentLinkMagicUrl = exports.getInvoicingSentPaymentLinkEmail = exports.getInvoicingPlaidLinkToken = exports.getInvoicingPaymentMethodSaveState = exports.getInvoicingPaymentLinkSendState = exports.sendInvoicingPaymentLink = void 0;
|
|
86
|
+
exports.updateInvoicingCatalogProductFilters = exports.updateInvoicingCatalogPlanFilters = exports.fetchInvoicingCatalogProductList = exports.fetchInvoicingCatalogPlanList = exports.fetchInvoicingCatalogListPage = exports.fetchInvoicingCatalogCounts = exports.updateInvoicingProducts = exports.removeInvoicingProduct = exports.updateInvoicingPlans = exports.removeInvoicingPlan = exports.mergeInvoicingPlanSubFamily = exports.getInvoicingDunningEmailPreview = exports.getInvoicingDunningCaseDetail = exports.getInvoicingDunningCaseById = exports.invalidateInvoicingDunningEmailPreview = exports.fetchInvoicingDunningEmailPreviewPage = exports.fetchInvoicingDunningCaseDetailPage = exports.fetchInvoicingDunningCaseDetail = exports.clearInvoicingDunningCaseDetailView = exports.getInvoicingDunningCaseListView = exports.INVOICING_DUNNING_CASE_COLUMNS = exports.ALL_INVOICING_DUNNING_CASE_TAB_IDS = exports.ALL_INVOICING_DUNNING_CASE_SORT_KEYS = exports.updateInvoicingDunningCaseFilters = exports.setInvoicingDunningCaseActiveTab = exports.fetchInvoicingDunningCaseListPage = exports.fetchInvoicingDunningCaseList = exports.fetchInvoicingDunningCaseCounts = exports.updateInvoicingDunningCases = exports.removeInvoicingDunningCase = exports.fetchInvoicingCouponDetail = exports.getInvoicingCouponById = exports.getInvoicingCouponListView = exports.getInvoicingCouponListNextCursor = exports.getInvoicingCouponListItems = exports.getInvoicingCouponListHasMore = exports.getInvoicingCouponListFilters = exports.getInvoicingCouponListFetchState = exports.getInvoicingCouponCounts = exports.INVOICING_COUPON_COLUMNS = exports.ALL_INVOICING_COUPON_TAB_IDS = exports.ALL_INVOICING_COUPON_SORT_KEYS = exports.updateInvoicingCouponFilters = exports.setInvoicingCouponActiveTab = exports.fetchInvoicingCouponListPage = exports.fetchInvoicingCouponList = exports.fetchInvoicingCouponCounts = exports.updateInvoicingCoupons = exports.removeInvoicingCoupon = exports.getInvoicingCreditNoteDetail = void 0;
|
|
87
|
+
exports.getExpenseAutomationJEOneTimeAccrualDetailView = exports.getInvoicingOnboardingGateView = exports.getInvoicingConfigView = exports.updateInvoicingConfig = exports.resetInvoicingConfigActionStates = exports.fetchInvoicingConfig = exports.enableInvoicing = exports.acceptInvoicingTerms = exports.toInvoicingQboCustomerMatchingMode = exports.toInvoicingNamedOptionsByKey = exports.getInvoicingQboAccountMappingId = exports.INVOICING_QBO_CUSTOMER_MATCHING_MODES = exports.getInvoicingQboView = exports.invoicingAccountsForQboAccountTypes = exports.startInvoicingQboBackfill = exports.retryInvoicingQboSyncTask = exports.fetchInvoicingQboSyncHealth = exports.fetchInvoicingQboConnection = exports.fetchInvoicingAccountingPickers = exports.isStripeConnectedFromSettings = exports.initialInvoicingBrandingFormLocalData = exports.entityToInvoicingBrandingFormLocalData = exports.INVOICING_BUSINESS_ADDRESS_TYPE = exports.invoicingQboSettingsLocalDataToPayload = exports.initialInvoicingQboSettingsLocalData = exports.entityToInvoicingQboSettingsLocalData = exports.getInvoicingSettingsView = exports.getInvoicingSettingsHubView = exports.getInvoicingSettingsFetchState = exports.getInvoicingSettings = exports.getInvoicingQboSettingsFormView = exports.getInvoicingBrandingFormView = exports.updateInvoicingSettings = exports.updateInvoicingQboSettingsDraft = exports.updateInvoicingBrandingFormDraft = exports.submitInvoicingQboSettings = exports.submitInvoicingBrandingForm = exports.saveInvoicingSettings = exports.resetSaveInvoicingSettings = exports.resetInvoicingQboSettingsDraft = exports.resetInvoicingBrandingFormDraft = exports.fetchInvoicingSettings = exports.disconnectInvoicingStripe = exports.connectInvoicingStripe = exports.getInvoicingProductById = exports.getInvoicingPlanById = exports.fetchInvoicingCatalogItemDetail = exports.getInvoicingCatalogListView = exports.INVOICING_PRODUCT_COLUMNS = exports.ALL_INVOICING_PRODUCT_SORT_KEYS = void 0;
|
|
88
|
+
exports.isPendingReviewRow = exports.isRenderableOneTimeAccrual = exports.isOneTimeAccrualRow = exports.isExistingTabRow = exports.isAiAccountantSchedule = exports.isAccruedScheduleRow = exports.getJEScheduleRowType = void 0;
|
|
88
89
|
const allowedValue_1 = require("./commonStateTypes/allowedValue");
|
|
89
90
|
Object.defineProperty(exports, "isAllowedValueWithCode", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithCode; } });
|
|
90
91
|
Object.defineProperty(exports, "isAllowedValueWithID", { enumerable: true, get: function () { return allowedValue_1.isAllowedValueWithID; } });
|
|
@@ -2479,51 +2480,65 @@ Object.defineProperty(exports, "updateAiAccountantUIState", { enumerable: true,
|
|
|
2479
2480
|
var aiAccountantViewSelector_1 = require("./view/aiAccountantView/aiAccountantViewSelector");
|
|
2480
2481
|
Object.defineProperty(exports, "getAiAccountantCockpitView", { enumerable: true, get: function () { return aiAccountantViewSelector_1.getAiAccountantCockpitView; } });
|
|
2481
2482
|
var aiCfoViewReducer_1 = require("./view/aiCfoView/aiCfoViewReducer");
|
|
2482
|
-
Object.defineProperty(exports, "
|
|
2483
|
-
Object.defineProperty(exports, "
|
|
2484
|
-
Object.defineProperty(exports, "
|
|
2485
|
-
Object.defineProperty(exports, "updateAiCfoViewScrollPosition", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateAiCfoViewScrollPosition; } });
|
|
2486
|
-
Object.defineProperty(exports, "updateCurrentInput", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateCurrentInput; } });
|
|
2487
|
-
Object.defineProperty(exports, "updateCotCollapsedState", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateCotCollapsedState; } });
|
|
2488
|
-
Object.defineProperty(exports, "setSession", { enumerable: true, get: function () { return aiCfoViewReducer_1.setSession; } });
|
|
2483
|
+
Object.defineProperty(exports, "acceptMasterTOS", { enumerable: true, get: function () { return aiCfoViewReducer_1.acceptMasterTOS; } });
|
|
2484
|
+
Object.defineProperty(exports, "applyAiCfoSidePanelHostPageTransition", { enumerable: true, get: function () { return aiCfoViewReducer_1.applyAiCfoSidePanelHostPageTransition; } });
|
|
2485
|
+
Object.defineProperty(exports, "clearAiCfoSidePanelHostPageContext", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearAiCfoSidePanelHostPageContext; } });
|
|
2489
2486
|
Object.defineProperty(exports, "clearCurrentSessionId", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearCurrentSessionId; } });
|
|
2490
2487
|
Object.defineProperty(exports, "clearDeleteChatSessionStatus", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearDeleteChatSessionStatus; } });
|
|
2491
2488
|
Object.defineProperty(exports, "clearLastContextMessage", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearLastContextMessage; } });
|
|
2489
|
+
Object.defineProperty(exports, "clearSkillDetail", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearSkillDetail; } });
|
|
2490
|
+
Object.defineProperty(exports, "clearSkillMutation", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearSkillMutation; } });
|
|
2491
|
+
Object.defineProperty(exports, "closeRoutineRuns", { enumerable: true, get: function () { return aiCfoViewReducer_1.closeRoutineRuns; } });
|
|
2492
|
+
Object.defineProperty(exports, "closeRoutinesBrowser", { enumerable: true, get: function () { return aiCfoViewReducer_1.closeRoutinesBrowser; } });
|
|
2493
|
+
Object.defineProperty(exports, "closeSkillsBrowser", { enumerable: true, get: function () { return aiCfoViewReducer_1.closeSkillsBrowser; } });
|
|
2494
|
+
Object.defineProperty(exports, "createSession", { enumerable: true, get: function () { return aiCfoViewReducer_1.createSession; } });
|
|
2492
2495
|
Object.defineProperty(exports, "createSessionAndSubmit", { enumerable: true, get: function () { return aiCfoViewReducer_1.createSessionAndSubmit; } });
|
|
2493
|
-
Object.defineProperty(exports, "stopSubmit", { enumerable: true, get: function () { return aiCfoViewReducer_1.stopSubmit; } });
|
|
2494
|
-
Object.defineProperty(exports, "stopSubmitQuestion", { enumerable: true, get: function () { return aiCfoViewReducer_1.stopSubmitQuestion; } });
|
|
2495
|
-
Object.defineProperty(exports, "fetchChatHistory", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchChatHistory; } });
|
|
2496
|
-
Object.defineProperty(exports, "acceptMasterTOS", { enumerable: true, get: function () { return aiCfoViewReducer_1.acceptMasterTOS; } });
|
|
2497
2496
|
Object.defineProperty(exports, "deleteChatSession", { enumerable: true, get: function () { return aiCfoViewReducer_1.deleteChatSession; } });
|
|
2498
|
-
Object.defineProperty(exports, "
|
|
2499
|
-
Object.defineProperty(exports, "
|
|
2500
|
-
Object.defineProperty(exports, "
|
|
2501
|
-
Object.defineProperty(exports, "
|
|
2502
|
-
Object.defineProperty(exports, "
|
|
2497
|
+
Object.defineProperty(exports, "deleteRoutine", { enumerable: true, get: function () { return aiCfoViewReducer_1.deleteRoutine; } });
|
|
2498
|
+
Object.defineProperty(exports, "deleteSkill", { enumerable: true, get: function () { return aiCfoViewReducer_1.deleteSkill; } });
|
|
2499
|
+
Object.defineProperty(exports, "fetchChatHistory", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchChatHistory; } });
|
|
2500
|
+
Object.defineProperty(exports, "fetchChatSessionsForUser", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchChatSessionsForUser; } });
|
|
2501
|
+
Object.defineProperty(exports, "fetchRoutineRuns", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchRoutineRuns; } });
|
|
2502
|
+
Object.defineProperty(exports, "fetchRoutines", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchRoutines; } });
|
|
2503
|
+
Object.defineProperty(exports, "fetchSkillDetail", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillDetail; } });
|
|
2503
2504
|
Object.defineProperty(exports, "fetchSkills", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkills; } });
|
|
2504
|
-
Object.defineProperty(exports, "fetchSkillsSuccess", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillsSuccess; } });
|
|
2505
2505
|
Object.defineProperty(exports, "fetchSkillsFailure", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillsFailure; } });
|
|
2506
|
-
Object.defineProperty(exports, "
|
|
2507
|
-
Object.defineProperty(exports, "clearSkillDetail", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearSkillDetail; } });
|
|
2508
|
-
Object.defineProperty(exports, "clearSkillMutation", { enumerable: true, get: function () { return aiCfoViewReducer_1.clearSkillMutation; } });
|
|
2509
|
-
Object.defineProperty(exports, "deleteSkill", { enumerable: true, get: function () { return aiCfoViewReducer_1.deleteSkill; } });
|
|
2506
|
+
Object.defineProperty(exports, "fetchSkillsSuccess", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillsSuccess; } });
|
|
2510
2507
|
Object.defineProperty(exports, "fetchSkillVersionBody", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillVersionBody; } });
|
|
2511
2508
|
Object.defineProperty(exports, "fetchSkillVersions", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSkillVersions; } });
|
|
2509
|
+
Object.defineProperty(exports, "fetchSuggestedQuestions", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSuggestedQuestions; } });
|
|
2510
|
+
Object.defineProperty(exports, "fetchSuggestedQuestionsFailure", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSuggestedQuestionsFailure; } });
|
|
2511
|
+
Object.defineProperty(exports, "fetchSuggestedQuestionsSuccess", { enumerable: true, get: function () { return aiCfoViewReducer_1.fetchSuggestedQuestionsSuccess; } });
|
|
2512
|
+
Object.defineProperty(exports, "openRoutinesBrowser", { enumerable: true, get: function () { return aiCfoViewReducer_1.openRoutinesBrowser; } });
|
|
2513
|
+
Object.defineProperty(exports, "openSkillsBrowser", { enumerable: true, get: function () { return aiCfoViewReducer_1.openSkillsBrowser; } });
|
|
2514
|
+
Object.defineProperty(exports, "runRoutine", { enumerable: true, get: function () { return aiCfoViewReducer_1.runRoutine; } });
|
|
2515
|
+
Object.defineProperty(exports, "saveRoutine", { enumerable: true, get: function () { return aiCfoViewReducer_1.saveRoutine; } });
|
|
2512
2516
|
Object.defineProperty(exports, "saveSkill", { enumerable: true, get: function () { return aiCfoViewReducer_1.saveSkill; } });
|
|
2517
|
+
Object.defineProperty(exports, "setRoutineEnabled", { enumerable: true, get: function () { return aiCfoViewReducer_1.setRoutineEnabled; } });
|
|
2518
|
+
Object.defineProperty(exports, "setSession", { enumerable: true, get: function () { return aiCfoViewReducer_1.setSession; } });
|
|
2513
2519
|
Object.defineProperty(exports, "setSkillVisibility", { enumerable: true, get: function () { return aiCfoViewReducer_1.setSkillVisibility; } });
|
|
2514
|
-
Object.defineProperty(exports, "
|
|
2515
|
-
Object.defineProperty(exports, "
|
|
2516
|
-
Object.defineProperty(exports, "
|
|
2517
|
-
Object.defineProperty(exports, "
|
|
2520
|
+
Object.defineProperty(exports, "stopSubmit", { enumerable: true, get: function () { return aiCfoViewReducer_1.stopSubmit; } });
|
|
2521
|
+
Object.defineProperty(exports, "stopSubmitQuestion", { enumerable: true, get: function () { return aiCfoViewReducer_1.stopSubmitQuestion; } });
|
|
2522
|
+
Object.defineProperty(exports, "submitFeedback", { enumerable: true, get: function () { return aiCfoViewReducer_1.submitFeedback; } });
|
|
2523
|
+
Object.defineProperty(exports, "submitQuestion", { enumerable: true, get: function () { return aiCfoViewReducer_1.submitQuestion; } });
|
|
2524
|
+
Object.defineProperty(exports, "updateAiCfoViewScrollPosition", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateAiCfoViewScrollPosition; } });
|
|
2525
|
+
Object.defineProperty(exports, "updateCotCollapsedState", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateCotCollapsedState; } });
|
|
2526
|
+
Object.defineProperty(exports, "updateCurrentInput", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateCurrentInput; } });
|
|
2527
|
+
Object.defineProperty(exports, "updateResponseState", { enumerable: true, get: function () { return aiCfoViewReducer_1.updateResponseState; } });
|
|
2518
2528
|
var aiCfoViewSelector_1 = require("./view/aiCfoView/aiCfoViewSelector");
|
|
2529
|
+
Object.defineProperty(exports, "canCreateRoutine", { enumerable: true, get: function () { return aiCfoViewSelector_1.canCreateRoutine; } });
|
|
2519
2530
|
Object.defineProperty(exports, "getAiCfoView", { enumerable: true, get: function () { return aiCfoViewSelector_1.getAiCfoView; } });
|
|
2520
|
-
Object.defineProperty(exports, "
|
|
2521
|
-
Object.defineProperty(exports, "
|
|
2531
|
+
Object.defineProperty(exports, "getRoutineMutation", { enumerable: true, get: function () { return aiCfoViewSelector_1.getRoutineMutation; } });
|
|
2532
|
+
Object.defineProperty(exports, "getRoutineRuns", { enumerable: true, get: function () { return aiCfoViewSelector_1.getRoutineRuns; } });
|
|
2533
|
+
Object.defineProperty(exports, "getRoutines", { enumerable: true, get: function () { return aiCfoViewSelector_1.getRoutines; } });
|
|
2534
|
+
Object.defineProperty(exports, "getRoutinesEnabled", { enumerable: true, get: function () { return aiCfoViewSelector_1.getRoutinesEnabled; } });
|
|
2522
2535
|
Object.defineProperty(exports, "getSkillDetail", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkillDetail; } });
|
|
2523
2536
|
Object.defineProperty(exports, "getSkillMutation", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkillMutation; } });
|
|
2537
|
+
Object.defineProperty(exports, "getSkills", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkills; } });
|
|
2538
|
+
Object.defineProperty(exports, "getSkillsEnabled", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkillsEnabled; } });
|
|
2524
2539
|
Object.defineProperty(exports, "getSkillVersionBody", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkillVersionBody; } });
|
|
2525
2540
|
Object.defineProperty(exports, "getSkillVersions", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSkillVersions; } });
|
|
2526
|
-
Object.defineProperty(exports, "
|
|
2541
|
+
Object.defineProperty(exports, "getSuggestedQuestionsForPageContext", { enumerable: true, get: function () { return aiCfoViewSelector_1.getSuggestedQuestionsForPageContext; } });
|
|
2527
2542
|
var aiCfoReducer_1 = require("./entity/aiCfo/aiCfoReducer");
|
|
2528
2543
|
Object.defineProperty(exports, "setNewSession", { enumerable: true, get: function () { return aiCfoReducer_1.setNewSession; } });
|
|
2529
2544
|
Object.defineProperty(exports, "setSessions", { enumerable: true, get: function () { return aiCfoReducer_1.setSessions; } });
|
|
@@ -139,4 +139,94 @@ export type FetchSkillVersionsResponse = ZeniAPIResponse<SkillVersionListDataPay
|
|
|
139
139
|
/** Create and update both answer with the same shape a detail read returns. */
|
|
140
140
|
export type SaveSkillResponse = ZeniAPIResponse<SkillDetailDataPayload>;
|
|
141
141
|
export type FetchSkillDetailResponse = ZeniAPIResponse<SkillDetailDataPayload>;
|
|
142
|
+
/**
|
|
143
|
+
* One routine as the server sends it, from GET/POST/PUT /1.0/routines.
|
|
144
|
+
*
|
|
145
|
+
* Every field past the identity trio is optional here because the mapper is the
|
|
146
|
+
* only place that decides what a missing one means. Typing them required would
|
|
147
|
+
* let a `?? fallback` sit beside a field the compiler believed was always
|
|
148
|
+
* present — each silently claiming the other is wrong.
|
|
149
|
+
*/
|
|
150
|
+
export interface RoutinePayload {
|
|
151
|
+
name: string;
|
|
152
|
+
schedule_id: string;
|
|
153
|
+
consecutive_failures?: number;
|
|
154
|
+
day_of_month?: number | null;
|
|
155
|
+
enabled?: boolean;
|
|
156
|
+
hour?: number;
|
|
157
|
+
is_ad_hoc?: boolean;
|
|
158
|
+
last_run_at?: string | null;
|
|
159
|
+
last_status?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* Absent on a routine whose skill was deleted, which the mapper turns into
|
|
162
|
+
* "" and the detail page reports. Typed required, it was the exact thing the
|
|
163
|
+
* note above warns against: `toRoutine` fell back with `?? ''`, the guard
|
|
164
|
+
* deliberately did not require it, and a test had to cast to build one — all
|
|
165
|
+
* three disagreeing with the type.
|
|
166
|
+
*/
|
|
167
|
+
macro_id?: string | null;
|
|
168
|
+
minute?: number;
|
|
169
|
+
next_run_at?: string | null;
|
|
170
|
+
pinned_version?: number | null;
|
|
171
|
+
recurrence?: string;
|
|
172
|
+
session_id?: string | null;
|
|
173
|
+
tz_name?: string;
|
|
174
|
+
unread_runs?: number;
|
|
175
|
+
weekday?: number | null;
|
|
176
|
+
}
|
|
177
|
+
export interface RoutineListDataPayload {
|
|
178
|
+
max_routines?: number;
|
|
179
|
+
routines?: RoutinePayload[];
|
|
180
|
+
routines_enabled?: boolean;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* What the client may send. Narrower than a routine: `schedule_id`,
|
|
184
|
+
* `pinned_version` on create, and every run-outcome field are the server's to
|
|
185
|
+
* set, so sending them is a 400 rather than a silent no-op.
|
|
186
|
+
*/
|
|
187
|
+
export interface RoutineWritePayload extends Record<string, unknown> {
|
|
188
|
+
hour: number;
|
|
189
|
+
name: string;
|
|
190
|
+
recurrence: string;
|
|
191
|
+
tz_name: string;
|
|
192
|
+
day_of_month?: number;
|
|
193
|
+
enabled?: boolean;
|
|
194
|
+
/** Exactly one of macro_id and prompt. Both, or neither, is refused. */
|
|
195
|
+
macro_id?: string;
|
|
196
|
+
minute?: number;
|
|
197
|
+
prompt?: string;
|
|
198
|
+
weekday?: number;
|
|
199
|
+
}
|
|
200
|
+
export type FetchRoutinesResponse = ZeniAPIResponse<RoutineListDataPayload>;
|
|
201
|
+
/** Create and update both answer with a single routine. */
|
|
202
|
+
export type SaveRoutineResponse = ZeniAPIResponse<RoutinePayload>;
|
|
203
|
+
/**
|
|
204
|
+
* The answer to a Run-now. `status` is 'queued', or 'already_running' when the
|
|
205
|
+
* same routine was already started this minute — both are 200s, and neither
|
|
206
|
+
* carries the routine.
|
|
207
|
+
*/
|
|
208
|
+
export interface RunRoutineDataPayload {
|
|
209
|
+
run_id?: string;
|
|
210
|
+
schedule_id?: string;
|
|
211
|
+
status?: string;
|
|
212
|
+
}
|
|
213
|
+
export type RunRoutineResponse = ZeniAPIResponse<RunRoutineDataPayload>;
|
|
214
|
+
/** One past or in-flight run, as GET /1.0/routines/{id}/runs returns it. */
|
|
215
|
+
export interface RoutineRunPayload {
|
|
216
|
+
run_id: string;
|
|
217
|
+
attempt?: number;
|
|
218
|
+
error?: string | null;
|
|
219
|
+
finished_at?: string | null;
|
|
220
|
+
is_manual?: boolean;
|
|
221
|
+
question_answer_id?: string | null;
|
|
222
|
+
scheduled_for?: string | null;
|
|
223
|
+
session_id?: string | null;
|
|
224
|
+
started_at?: string | null;
|
|
225
|
+
status?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface RoutineRunsDataPayload {
|
|
228
|
+
runs?: RoutineRunPayload[];
|
|
229
|
+
session_id?: string | null;
|
|
230
|
+
}
|
|
231
|
+
export type RoutineRunsResponse = ZeniAPIResponse<RoutineRunsDataPayload>;
|
|
142
232
|
export {};
|