@zeniai/client-epic-state 4.17.11 → 4.17.12

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.
Files changed (49) hide show
  1. package/lib/entity/accountRecon/accountReconPayload.d.ts +2 -0
  2. package/lib/entity/accountRecon/accountReconPayload.js +6 -1
  3. package/lib/entity/accountRecon/accountReconState.d.ts +2 -0
  4. package/lib/entity/{aiController/aiControllerPayload.d.ts → aiCfo/aiCfoPayload.d.ts} +3 -3
  5. package/lib/entity/aiCfo/aiCfoReducer.d.ts +45 -0
  6. package/lib/entity/{aiController/aiControllerReducer.js → aiCfo/aiCfoReducer.js} +40 -42
  7. package/lib/entity/aiCfo/aiCfoSelector.d.ts +14 -0
  8. package/lib/entity/{aiController/aiControllerSelector.js → aiCfo/aiCfoSelector.js} +6 -6
  9. package/lib/entity/aiCfo/aiCfoState.d.ts +88 -0
  10. package/lib/entity/aiCfo/aiCfoState.js +46 -0
  11. package/lib/entity/tenant/clearAllEpic.d.ts +4 -4
  12. package/lib/entity/tenant/clearAllEpic.js +4 -4
  13. package/lib/epic.d.ts +7 -7
  14. package/lib/epic.js +7 -7
  15. package/lib/index.d.ts +7 -7
  16. package/lib/index.js +48 -48
  17. package/lib/reducer.d.ts +6 -6
  18. package/lib/reducer.js +6 -6
  19. package/lib/view/{aiControllerView/aiControllerViewPayload.d.ts → aiCfoView/aiCfoViewPayload.d.ts} +2 -2
  20. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +73 -0
  21. package/lib/view/{aiControllerView/aiControllerViewReducer.js → aiCfoView/aiCfoViewReducer.js} +10 -10
  22. package/lib/view/{aiControllerView/aiControllerViewSelector.d.ts → aiCfoView/aiCfoViewSelector.d.ts} +5 -5
  23. package/lib/view/{aiControllerView/aiControllerViewSelector.js → aiCfoView/aiCfoViewSelector.js} +6 -6
  24. package/lib/view/{aiControllerView/aiControllerViewState.d.ts → aiCfoView/aiCfoViewState.d.ts} +3 -3
  25. package/lib/view/{aiControllerView → aiCfoView}/epics/createSessionAndSubmitEpic.d.ts +2 -2
  26. package/lib/view/{aiControllerView → aiCfoView}/epics/createSessionAndSubmitEpic.js +9 -9
  27. package/lib/view/{aiControllerView → aiCfoView}/epics/createSessionEpic.d.ts +2 -2
  28. package/lib/view/{aiControllerView → aiCfoView}/epics/createSessionEpic.js +8 -8
  29. package/lib/view/{aiControllerView → aiCfoView}/epics/fetchChatHistoryEpic.d.ts +2 -2
  30. package/lib/view/{aiControllerView → aiCfoView}/epics/fetchChatHistoryEpic.js +9 -9
  31. package/lib/view/{aiControllerView → aiCfoView}/epics/fetchChatSessionsForUserEpic.d.ts +2 -2
  32. package/lib/view/{aiControllerView → aiCfoView}/epics/fetchChatSessionsForUserEpic.js +8 -9
  33. package/lib/view/{aiControllerView → aiCfoView}/epics/stopSubmitEpic.d.ts +2 -2
  34. package/lib/view/{aiControllerView → aiCfoView}/epics/stopSubmitEpic.js +11 -11
  35. package/lib/view/{aiControllerView → aiCfoView}/epics/stopSubmitQuestionEpic.d.ts +2 -2
  36. package/lib/view/{aiControllerView → aiCfoView}/epics/stopSubmitQuestionEpic.js +8 -8
  37. package/lib/view/{aiControllerView → aiCfoView}/epics/submitQuestionEpic.d.ts +2 -2
  38. package/lib/view/{aiControllerView → aiCfoView}/epics/submitQuestionEpic.js +10 -10
  39. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +2 -0
  40. package/lib/zeniAPI.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/lib/entity/aiController/aiControllerReducer.d.ts +0 -46
  43. package/lib/entity/aiController/aiControllerSelector.d.ts +0 -14
  44. package/lib/entity/aiController/aiControllerState.d.ts +0 -88
  45. package/lib/entity/aiController/aiControllerState.js +0 -49
  46. package/lib/view/aiControllerView/aiControllerViewReducer.d.ts +0 -73
  47. /package/lib/entity/{aiController/aiControllerPayload.js → aiCfo/aiCfoPayload.js} +0 -0
  48. /package/lib/view/{aiControllerView/aiControllerViewPayload.js → aiCfoView/aiCfoViewPayload.js} +0 -0
  49. /package/lib/view/{aiControllerView/aiControllerViewState.js → aiCfoView/aiCfoViewState.js} +0 -0
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toMessageTypeStrict = exports.toMessageSenderStrict = exports.toMessageType = exports.toMessageSender = exports.toAIControllerAnswerResponseTypeStrict = exports.toAIControllerAnswerStateTypeStrict = exports.toAIControllerAnswerResponseType = exports.toAIControllerAnswerStateType = exports.ALL_AI_CONTROLLER_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CONTROLLER_ANSWER_STATE_TYPES = exports.toAIControllerChartTypeStrict = exports.toAIControllerChartType = exports.toAIControllerVisualizationTypeStrict = exports.toAIControllerVisualizationType = exports.ALL_AI_CONTROLLER_VISUALIZATION_TYPES = exports.ALL_AI_CONTROLLER_CHARTS_TYPES = void 0;
4
- const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
- exports.ALL_AI_CONTROLLER_CHARTS_TYPES = [
6
- 'bar_chart',
7
- 'pie_chart',
8
- 'line_chart',
9
- ];
10
- exports.ALL_AI_CONTROLLER_VISUALIZATION_TYPES = [
11
- ...exports.ALL_AI_CONTROLLER_CHARTS_TYPES,
12
- 'table',
13
- ];
14
- const toAIControllerVisualizationType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_AI_CONTROLLER_VISUALIZATION_TYPES);
15
- exports.toAIControllerVisualizationType = toAIControllerVisualizationType;
16
- const toAIControllerVisualizationTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_AI_CONTROLLER_VISUALIZATION_TYPES);
17
- exports.toAIControllerVisualizationTypeStrict = toAIControllerVisualizationTypeStrict;
18
- const toAIControllerChartType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_AI_CONTROLLER_CHARTS_TYPES);
19
- exports.toAIControllerChartType = toAIControllerChartType;
20
- const toAIControllerChartTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_AI_CONTROLLER_CHARTS_TYPES);
21
- exports.toAIControllerChartTypeStrict = toAIControllerChartTypeStrict;
22
- exports.ALL_AI_CONTROLLER_ANSWER_STATE_TYPES = [
23
- 'complete',
24
- 'partial',
25
- ];
26
- exports.ALL_AI_CONTROLLER_ANSWER_RESPONSE_TYPES = [
27
- 'analysis',
28
- 'answer',
29
- 'reasoning',
30
- 'thought',
31
- ];
32
- const toAIControllerAnswerStateType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_AI_CONTROLLER_ANSWER_STATE_TYPES);
33
- exports.toAIControllerAnswerStateType = toAIControllerAnswerStateType;
34
- const toAIControllerAnswerResponseType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_AI_CONTROLLER_ANSWER_RESPONSE_TYPES);
35
- exports.toAIControllerAnswerResponseType = toAIControllerAnswerResponseType;
36
- const toAIControllerAnswerStateTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_AI_CONTROLLER_ANSWER_STATE_TYPES);
37
- exports.toAIControllerAnswerStateTypeStrict = toAIControllerAnswerStateTypeStrict;
38
- const toAIControllerAnswerResponseTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_AI_CONTROLLER_ANSWER_RESPONSE_TYPES);
39
- exports.toAIControllerAnswerResponseTypeStrict = toAIControllerAnswerResponseTypeStrict;
40
- const ALL_MESSAGE_SENDERS = ['user', 'agent'];
41
- const ALL_MESSAGE_TYPES = ['plain_text', 'json'];
42
- const toMessageSender = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_MESSAGE_SENDERS);
43
- exports.toMessageSender = toMessageSender;
44
- const toMessageType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_MESSAGE_TYPES);
45
- exports.toMessageType = toMessageType;
46
- const toMessageSenderStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_MESSAGE_SENDERS);
47
- exports.toMessageSenderStrict = toMessageSenderStrict;
48
- const toMessageTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_MESSAGE_TYPES);
49
- exports.toMessageTypeStrict = toMessageTypeStrict;
@@ -1,73 +0,0 @@
1
- import { FetchStateAndError, ID } from '../../commonStateTypes/common';
2
- import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
3
- import { ChatSessionPayload } from '../../entity/aiController/aiControllerPayload';
4
- import { AIControllerAnswerResponseType } from '../../entity/aiController/aiControllerState';
5
- import { ZeniAPIStatus } from '../../responsePayload';
6
- import { AIControllerViewState } from './aiControllerViewState';
7
- export declare const initialAIControllerViewState: AIControllerViewState;
8
- export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string], {
9
- sessionId: string;
10
- questionAnswerId: string;
11
- userId: string;
12
- questionId: string;
13
- createdAt: import("dayjs").Dayjs;
14
- question: string;
15
- }, "aiControllerView/submitQuestion", never, never>, submitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiControllerView/submitQuestionSuccess">, submitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
16
- sessionId: ID;
17
- error: ZeniAPIStatus;
18
- }, "aiControllerView/submitQuestionFailure">, updateResponseState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
- chatSessionId: ID;
20
- responseType: AIControllerAnswerResponseType;
21
- fetchState: FetchStateAndError;
22
- }, "aiControllerView/updateResponseState">, updateAIControllerViewScrollPosition: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "aiControllerView/updateAIControllerViewScrollPosition">, updateCurrentInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiControllerView/updateCurrentInput">, clearInput: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiControllerView/clearInput">, setSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
23
- sessionId: string;
24
- agentId: string;
25
- }, "aiControllerView/setSession">, createSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string], {
26
- agentId: string;
27
- userId: string;
28
- }, "aiControllerView/createSession", never, never>, createSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
29
- agentId: string;
30
- sessionId: ID;
31
- }, "aiControllerView/createSessionSuccess">, createSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiControllerView/createSessionFailure">, createSessionAndSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, questionAnswerId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string], {
32
- agentId: string;
33
- userId: string;
34
- questionAnswerId: string;
35
- questionId: string;
36
- createdAt: import("dayjs").Dayjs;
37
- question: string;
38
- }, "aiControllerView/createSessionAndSubmit", never, never>, createSessionAndSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
39
- agentId: string;
40
- sessionId: ID;
41
- }, "aiControllerView/createSessionAndSubmitSuccess">, createSessionAndSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiControllerView/createSessionAndSubmitFailure">, fetchChatSessionsForUser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiControllerView/fetchChatSessionsForUser">, fetchChatSessionsForUserSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
42
- nextPageToken: PageToken;
43
- sessions: ChatSessionPayload[];
44
- }, "aiControllerView/fetchChatSessionsForUserSuccess">, fetchChatSessionsForUserFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiControllerView/fetchChatSessionsForUserFailure">, fetchChatHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string, userId: string], {
45
- chatSessionId: string;
46
- userId: string;
47
- }, "aiControllerView/fetchChatHistory", never, never>, fetchChatHistorySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
48
- chatSessionId: ID;
49
- nextPageToken: PageToken;
50
- }, "aiControllerView/fetchChatHistorySuccess">, fetchChatHistoryFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
51
- chatSessionId: ID;
52
- error: ZeniAPIStatus;
53
- }, "aiControllerView/fetchChatHistoryFailure">, clearCurrentSessionId: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiControllerView/clearCurrentSessionId">, stopSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
54
- chatSessionId: string;
55
- }, "aiControllerView/stopSubmit", never, never>, stopSubmitSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
56
- chatSessionId: ID;
57
- question: string;
58
- isOnlyQuestionInSession: boolean;
59
- }, "aiControllerView/stopSubmitSuccess">, stopSubmitFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
60
- chatSessionId: ID;
61
- error: ZeniAPIStatus;
62
- }, "aiControllerView/stopSubmitFailure">, stopSubmitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chatSessionId: string], {
63
- chatSessionId: string;
64
- }, "aiControllerView/stopSubmitQuestion", never, never>, stopSubmitQuestionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
65
- chatSessionId: ID;
66
- question: string;
67
- isOnlyQuestionInSession: boolean;
68
- }, "aiControllerView/stopSubmitQuestionSuccess">, stopSubmitQuestionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
69
- chatSessionId: ID;
70
- error: ZeniAPIStatus;
71
- }, "aiControllerView/stopSubmitQuestionFailure">, clearAIControllerView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiControllerView/clearAIControllerView">;
72
- declare const _default: import("redux").Reducer<AIControllerViewState>;
73
- export default _default;