@zeniai/client-epic-state 5.0.0 → 5.0.1
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/transaction/payloadTypes/transactionPayload.js +21 -0
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +21 -0
- package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +1 -1
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +1 -1
- package/package.json +1 -1
|
@@ -155,6 +155,27 @@ const toTransactionPayload = (transaction) => {
|
|
|
155
155
|
},
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
+
if (transaction.targetAccountId != null &&
|
|
159
|
+
transaction.targetAccountId !== '') {
|
|
160
|
+
transactionPayload = {
|
|
161
|
+
...transactionPayload,
|
|
162
|
+
target_account_id: transaction.targetAccountId,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
if (transaction.targetAccountIntegrationId != null &&
|
|
166
|
+
transaction.targetAccountIntegrationId !== '') {
|
|
167
|
+
transactionPayload = {
|
|
168
|
+
...transactionPayload,
|
|
169
|
+
target_account_integration_id: transaction.targetAccountIntegrationId,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
if (transaction.targetAccountName != null &&
|
|
173
|
+
transaction.targetAccountName !== '') {
|
|
174
|
+
transactionPayload = {
|
|
175
|
+
...transactionPayload,
|
|
176
|
+
target_account_name: transaction.targetAccountName,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
158
179
|
if (transaction.toFromAccountId != null &&
|
|
159
180
|
transaction.toFromAccountId !== '') {
|
|
160
181
|
transactionPayload = {
|
|
@@ -150,6 +150,27 @@ export const toTransactionPayload = (transaction) => {
|
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
+
if (transaction.targetAccountId != null &&
|
|
154
|
+
transaction.targetAccountId !== '') {
|
|
155
|
+
transactionPayload = {
|
|
156
|
+
...transactionPayload,
|
|
157
|
+
target_account_id: transaction.targetAccountId,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
if (transaction.targetAccountIntegrationId != null &&
|
|
161
|
+
transaction.targetAccountIntegrationId !== '') {
|
|
162
|
+
transactionPayload = {
|
|
163
|
+
...transactionPayload,
|
|
164
|
+
target_account_integration_id: transaction.targetAccountIntegrationId,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
if (transaction.targetAccountName != null &&
|
|
168
|
+
transaction.targetAccountName !== '') {
|
|
169
|
+
transactionPayload = {
|
|
170
|
+
...transactionPayload,
|
|
171
|
+
target_account_name: transaction.targetAccountName,
|
|
172
|
+
};
|
|
173
|
+
}
|
|
153
174
|
if (transaction.toFromAccountId != null &&
|
|
154
175
|
transaction.toFromAccountId !== '') {
|
|
155
176
|
transactionPayload = {
|
|
@@ -13,7 +13,7 @@ mergeMap((action) => {
|
|
|
13
13
|
return zeniAPI.getJSON(url).pipe(mergeMap((response) => {
|
|
14
14
|
if (isSuccessResponse(response) && response.data != null) {
|
|
15
15
|
return of(fetchSuggestedQuestionsSuccess({
|
|
16
|
-
pageContext
|
|
16
|
+
pageContext,
|
|
17
17
|
generatedAt: response.data.generated_at,
|
|
18
18
|
suggestedQuestions: response.data.suggested_questions,
|
|
19
19
|
}));
|