@zeniai/client-epic-state 4.17.63 → 4.17.64
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/dynamicPayloadKeys.d.ts +1 -0
- package/lib/commonPayloadTypes/dynamicPayloadKeys.js +4 -0
- package/lib/commonStateTypes/dynamicStateKeys.d.ts +1 -0
- package/lib/commonStateTypes/dynamicStateKeys.js +4 -0
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +14 -8
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ZENI_ENTITY_PAYLOAD_KEY = "qbo_id";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ZENI_ENTITY_STATE_KEY = "qboId";
|
|
@@ -133,7 +133,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
133
133
|
const isJEOrBankDepositTransaction = (0, vendorTransaction_1.isVendorTransaction)(transaction) === false &&
|
|
134
134
|
(0, customerTransaction_1.isCustomerTransaction)(transaction) === false;
|
|
135
135
|
lines === null || lines === void 0 ? void 0 : lines.forEach((line) => {
|
|
136
|
-
var _a, _b, _c, _d, _e, _f;
|
|
136
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
137
137
|
if (line.type === 'transaction_with_account_and_class_line' ||
|
|
138
138
|
line.type === 'transaction_with_product_or_service_line' ||
|
|
139
139
|
line.type === 'journal_entry_transaction_line') {
|
|
@@ -162,9 +162,6 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
162
162
|
record.isRecommendedCategorySelected = false;
|
|
163
163
|
record.recommendedAccount = recommendedAccount;
|
|
164
164
|
record.isCategoryUpdateSelected = false;
|
|
165
|
-
const _g = recommendedAccount || {}, { accountNameConfidence } = _g, recommendedAccountWithoutCOT = __rest(_g, ["accountNameConfidence"]);
|
|
166
|
-
void accountNameConfidence;
|
|
167
|
-
record.account = Object.assign(Object.assign({}, recommendedAccountWithoutCOT), { isPreFilled: true });
|
|
168
165
|
}
|
|
169
166
|
if (accountLine.isCategoryMiscategorized &&
|
|
170
167
|
Boolean(accountLine.account.qboId) &&
|
|
@@ -180,9 +177,6 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
180
177
|
record.isRecommendedClassSelected = false;
|
|
181
178
|
record.recommendedClass = recommendedClass;
|
|
182
179
|
record.isClassUpdateSelected = false;
|
|
183
|
-
const _h = recommendedClass || {}, { accountingClassNameConfidence } = _h, recommendedClassWithoutCOT = __rest(_h, ["accountingClassNameConfidence"]);
|
|
184
|
-
void accountingClassNameConfidence;
|
|
185
|
-
record.class = Object.assign(Object.assign({}, recommendedClassWithoutCOT), { isPreFilled: true });
|
|
186
180
|
}
|
|
187
181
|
if (accountLine.isClassMiscategorized &&
|
|
188
182
|
Boolean(accountLine.class.qboId) &&
|
|
@@ -190,6 +184,18 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
190
184
|
record.retainedClass = accountLine.class;
|
|
191
185
|
record.isRetainedClassSelected = false;
|
|
192
186
|
}
|
|
187
|
+
if (Boolean((_e = record.account) === null || _e === void 0 ? void 0 : _e.qboId) === false ||
|
|
188
|
+
(0, exports.isAccountUncategorized)(uncategorizedIncomeExpense, (_f = accountLine.account) === null || _f === void 0 ? void 0 : _f.qboId) === true &&
|
|
189
|
+
Boolean(recommendedAccount === null || recommendedAccount === void 0 ? void 0 : recommendedAccount.qboId)) {
|
|
190
|
+
const _k = recommendedAccount || {}, { accountNameConfidence } = _k, recommendedAccountWithoutCOT = __rest(_k, ["accountNameConfidence"]);
|
|
191
|
+
void accountNameConfidence;
|
|
192
|
+
record.account = Object.assign(Object.assign({}, recommendedAccountWithoutCOT), { isPreFilled: true });
|
|
193
|
+
}
|
|
194
|
+
if (Boolean((_g = record.class) === null || _g === void 0 ? void 0 : _g.qboId) === false && Boolean(recommendedClass === null || recommendedClass === void 0 ? void 0 : recommendedClass.qboId)) {
|
|
195
|
+
const _l = recommendedClass || {}, { accountingClassNameConfidence } = _l, recommendedClassWithoutCOT = __rest(_l, ["accountingClassNameConfidence"]);
|
|
196
|
+
void accountingClassNameConfidence;
|
|
197
|
+
record.class = Object.assign(Object.assign({}, recommendedClassWithoutCOT), { isPreFilled: true });
|
|
198
|
+
}
|
|
193
199
|
}
|
|
194
200
|
if (line.platformLineDetailType === 'deposit_line_detail') {
|
|
195
201
|
record.lineEntity = (0, exports.toLineEntity)(line);
|
|
@@ -207,7 +213,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
207
213
|
record.lineEntity = (0, exports.toLineEntity)(lineRecord);
|
|
208
214
|
}
|
|
209
215
|
if (record.lineEntity == null) {
|
|
210
|
-
const recommendedVendor = (
|
|
216
|
+
const recommendedVendor = (_j = (_h = recommendationsWithCOT === null || recommendationsWithCOT === void 0 ? void 0 : recommendationsWithCOT[lineId]) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.vendor;
|
|
211
217
|
if (recommendedVendor != null) {
|
|
212
218
|
const { cot, reasoning } = recommendedVendor, recommendedVendorWithoutCOT = __rest(recommendedVendor, ["cot", "reasoning"]);
|
|
213
219
|
void cot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.64",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|