nucleus-core-ts 0.10.121 → 0.10.122
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/dist/.build-ok +1 -1
- package/dist/fe/components/VerificationFlowPage/components/PendingTab.js +6 -1
- package/dist/fe/components/VerificationFlowPage/labels.d.ts +10 -0
- package/dist/fe/components/VerificationFlowPage/labels.js +1 -0
- package/dist/index.js +1 -1
- package/dist/server.js +1 -1
- package/dist/src/Client/ApiCaller/types.d.ts +6 -0
- package/dist/src/Services/Verification/types.d.ts +14 -0
- package/package.json +1 -1
package/dist/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.122
|
|
@@ -90,7 +90,12 @@ export function PendingTab({ pendingAction, decideAction, uploadSignatureAction,
|
|
|
90
90
|
* already says exactly what is wrong, and a reviewer can act on
|
|
91
91
|
* "cannot decide it" in a way they cannot act on "something failed".
|
|
92
92
|
*/ if (res && res.success === false) {
|
|
93
|
-
|
|
93
|
+
/*
|
|
94
|
+
* The host's own words first, keyed by the engine's refusal code.
|
|
95
|
+
* The sentence itself is English and this screen may not be.
|
|
96
|
+
*/ const code = res.code;
|
|
97
|
+
const translated = code ? say.decisionRefusalByCode[code] : undefined;
|
|
98
|
+
setDecisionNote(translated || res.message || say.decisionRefused);
|
|
94
99
|
return;
|
|
95
100
|
}
|
|
96
101
|
store.setDecidingId(null);
|
|
@@ -197,6 +197,16 @@ export type VerificationFlowLabels = {
|
|
|
197
197
|
cancelChainConfirm: string;
|
|
198
198
|
cancelChainReasonPlaceholder: string;
|
|
199
199
|
cancelChainFailed: string;
|
|
200
|
+
/**
|
|
201
|
+
* The engine's refusals, in the host's own words, keyed by `DecideResult.code`.
|
|
202
|
+
*
|
|
203
|
+
* Every sentence the engine returns is English. On a Turkish panel that
|
|
204
|
+
* meant the ONE message a reviewer must understand — why their Approve did
|
|
205
|
+
* nothing — arrived in a language the rest of the screen does not speak.
|
|
206
|
+
* A code with no entry here falls back to the engine's sentence, so a host
|
|
207
|
+
* that translates nothing is no worse off than before.
|
|
208
|
+
*/
|
|
209
|
+
decisionRefusalByCode: Record<string, string>;
|
|
200
210
|
verificationStatusTitle: string;
|
|
201
211
|
/** "12 records for orders" — count and entity, both inside the label. */
|
|
202
212
|
recordCount: (count: number, entityName: string) => string;
|
|
@@ -156,6 +156,7 @@
|
|
|
156
156
|
cancelChainConfirm: 'End this review? The record goes back to pending and a new chain can be started. The decisions already made are kept.',
|
|
157
157
|
cancelChainReasonPlaceholder: 'Why (optional)',
|
|
158
158
|
cancelChainFailed: 'The review could not be ended.',
|
|
159
|
+
decisionRefusalByCode: {},
|
|
159
160
|
verificationStatusTitle: 'Verification Status',
|
|
160
161
|
recordCount: (count, entityName)=>`${count} record${count !== 1 ? 's' : ''} for ${entityName}`,
|
|
161
162
|
noRecordsIconTitle: 'No records',
|