@zeniai/client-epic-state 5.0.62 → 5.0.64-beta0ND
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/entity/aiCfo/aiCfoPayload.d.ts +2 -0
- package/lib/entity/aiCfo/aiCfoReducer.js +5 -1
- package/lib/entity/aiCfo/aiCfoState.d.ts +2 -0
- package/lib/entity/project/projectPayload.d.ts +1 -1
- package/lib/entity/project/projectPayload.js +1 -1
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +5 -1
- package/lib/esm/entity/project/projectPayload.js +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
- package/package.json +6 -3
|
@@ -40,6 +40,8 @@ export interface AiCfoAnswerPayload {
|
|
|
40
40
|
text: string;
|
|
41
41
|
type: string;
|
|
42
42
|
visualization: AiCfoVisualizationPayload | null;
|
|
43
|
+
artifact?: string | null;
|
|
44
|
+
artifact_title?: string | null;
|
|
43
45
|
follow_up_questions?: string[];
|
|
44
46
|
table?: AiCfoVisualizationPayload | null;
|
|
45
47
|
}
|
|
@@ -115,6 +115,8 @@ function chatHistoryToQA(history) {
|
|
|
115
115
|
insights: parsedAgentMessage.insights ?? '',
|
|
116
116
|
summarizedTitle: parsedAgentMessage.summarized_title ?? undefined,
|
|
117
117
|
chainOfThoughtActionSteps: [],
|
|
118
|
+
artifact: parsedAgentMessage.artifact ?? undefined,
|
|
119
|
+
artifactTitle: parsedAgentMessage.artifact_title ?? undefined,
|
|
118
120
|
},
|
|
119
121
|
createdAt: (0, zeniDayJS_1.date)(agentMessage.created_at),
|
|
120
122
|
};
|
|
@@ -185,7 +187,7 @@ const toAiCfoVisualizationData = (data) => {
|
|
|
185
187
|
};
|
|
186
188
|
};
|
|
187
189
|
const toResponseBlockType = (answer, userId) => {
|
|
188
|
-
const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, } = answer;
|
|
190
|
+
const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, artifact, artifact_title, } = answer;
|
|
189
191
|
const { chat_session_id, message_id, timestamp, chain_of_thought_action_steps: chainOfThoughtActionSteps = [], } = metadata;
|
|
190
192
|
return {
|
|
191
193
|
messageId: message_id,
|
|
@@ -203,6 +205,8 @@ const toResponseBlockType = (answer, userId) => {
|
|
|
203
205
|
insights: insights ?? '',
|
|
204
206
|
summarizedTitle: summarized_title ?? undefined,
|
|
205
207
|
chainOfThoughtActionSteps,
|
|
208
|
+
artifact: artifact ?? undefined,
|
|
209
|
+
artifactTitle: artifact_title ?? undefined,
|
|
206
210
|
},
|
|
207
211
|
createdAt: (0, zeniDayJS_1.date)(timestamp),
|
|
208
212
|
};
|
|
@@ -6,7 +6,7 @@ export interface ProjectMetadataPayload {
|
|
|
6
6
|
accounting_project_customer_integration_id: string | null;
|
|
7
7
|
accounting_project_id: string;
|
|
8
8
|
accounting_project_integration_id: string | null;
|
|
9
|
-
accounting_project_name: string;
|
|
9
|
+
accounting_project_name: string | null;
|
|
10
10
|
start_date: string | null;
|
|
11
11
|
status: string | null;
|
|
12
12
|
}
|
|
@@ -18,7 +18,7 @@ const mapProjectBasePayloadToProjectBase = (payload) => ({
|
|
|
18
18
|
exports.mapProjectBasePayloadToProjectBase = mapProjectBasePayloadToProjectBase;
|
|
19
19
|
const mapProjectMetadataPayloadToProject = (payload) => ({
|
|
20
20
|
projectId: payload.accounting_project_id,
|
|
21
|
-
projectName: payload.accounting_project_name,
|
|
21
|
+
projectName: payload.accounting_project_name ?? '',
|
|
22
22
|
...(payload.status != null ? { status: payload.status } : {}),
|
|
23
23
|
...(payload.start_date != null ? { startDate: (0, zeniDayJS_1.date)(payload.start_date) } : {}),
|
|
24
24
|
...(payload.accounting_parent_customer_integration_id != null
|
|
@@ -111,6 +111,8 @@ function chatHistoryToQA(history) {
|
|
|
111
111
|
insights: parsedAgentMessage.insights ?? '',
|
|
112
112
|
summarizedTitle: parsedAgentMessage.summarized_title ?? undefined,
|
|
113
113
|
chainOfThoughtActionSteps: [],
|
|
114
|
+
artifact: parsedAgentMessage.artifact ?? undefined,
|
|
115
|
+
artifactTitle: parsedAgentMessage.artifact_title ?? undefined,
|
|
114
116
|
},
|
|
115
117
|
createdAt: zeniDate(agentMessage.created_at),
|
|
116
118
|
};
|
|
@@ -180,7 +182,7 @@ const toAiCfoVisualizationData = (data) => {
|
|
|
180
182
|
};
|
|
181
183
|
};
|
|
182
184
|
const toResponseBlockType = (answer, userId) => {
|
|
183
|
-
const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, } = answer;
|
|
185
|
+
const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, artifact, artifact_title, } = answer;
|
|
184
186
|
const { chat_session_id, message_id, timestamp, chain_of_thought_action_steps: chainOfThoughtActionSteps = [], } = metadata;
|
|
185
187
|
return {
|
|
186
188
|
messageId: message_id,
|
|
@@ -198,6 +200,8 @@ const toResponseBlockType = (answer, userId) => {
|
|
|
198
200
|
insights: insights ?? '',
|
|
199
201
|
summarizedTitle: summarized_title ?? undefined,
|
|
200
202
|
chainOfThoughtActionSteps,
|
|
203
|
+
artifact: artifact ?? undefined,
|
|
204
|
+
artifactTitle: artifact_title ?? undefined,
|
|
201
205
|
},
|
|
202
206
|
createdAt: zeniDate(timestamp),
|
|
203
207
|
};
|
|
@@ -13,7 +13,7 @@ export const mapProjectBasePayloadToProjectBase = (payload) => ({
|
|
|
13
13
|
});
|
|
14
14
|
export const mapProjectMetadataPayloadToProject = (payload) => ({
|
|
15
15
|
projectId: payload.accounting_project_id,
|
|
16
|
-
projectName: payload.accounting_project_name,
|
|
16
|
+
projectName: payload.accounting_project_name ?? '',
|
|
17
17
|
...(payload.status != null ? { status: payload.status } : {}),
|
|
18
18
|
...(payload.start_date != null ? { startDate: date(payload.start_date) } : {}),
|
|
19
19
|
...(payload.accounting_parent_customer_integration_id != null
|