@assinafy/twenty-app 1.0.0 → 1.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/README.md +19 -6
- package/manifest.json +7 -7
- package/package.json +1 -1
- package/src/front-components/assinafy-document-panel.front-component.mjs +7 -7
- package/src/front-components/assinafy-document-panel.front-component.mjs.map +4 -4
- package/src/logic-functions/on-assinafy-disconnect.logic-function.mjs.map +1 -1
- package/src/logic-functions/prepare-signature-request.logic-function.mjs +3 -3
- package/src/logic-functions/prepare-signature-request.logic-function.mjs.map +2 -2
- package/src/logic-functions/resend-signature-request.logic-function.mjs +3 -3
- package/src/logic-functions/resend-signature-request.logic-function.mjs.map +2 -2
- package/src/logic-functions/send-for-signature-workflow.logic-function.mjs +3 -3
- package/src/logic-functions/send-for-signature-workflow.logic-function.mjs.map +2 -2
- package/src/logic-functions/send-signature-request.logic-function.mjs +3 -3
- package/src/logic-functions/send-signature-request.logic-function.mjs.map +2 -2
- package/src/logic-functions/uninstall.logic-function.mjs.map +1 -1
|
@@ -28779,9 +28779,9 @@ var buildEstimateSigners = (signers) => signers.map(({ roleId, verificationMetho
|
|
|
28779
28779
|
var BLOCKING_REASONS = ["PendingPayment", "InsufficientDocuments", "InsufficientCredits"];
|
|
28780
28780
|
var toNumber = (value) => typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
28781
28781
|
var unexpectedEstimate = () => new AppFailure("INTERNAL", "A Assinafy retornou uma estimativa de custo inesperada.");
|
|
28782
|
-
var requireNumber = (value) => {
|
|
28782
|
+
var requireNumber = (value, integer = false) => {
|
|
28783
28783
|
const number = toNumber(value);
|
|
28784
|
-
if (number === null) {
|
|
28784
|
+
if (number === null || number < 0 || integer && !Number.isSafeInteger(number)) {
|
|
28785
28785
|
throw unexpectedEstimate();
|
|
28786
28786
|
}
|
|
28787
28787
|
return number;
|
|
@@ -28790,7 +28790,7 @@ var normalizeCostEstimate = (raw) => {
|
|
|
28790
28790
|
const estimate = typeof raw === "object" && raw !== null ? { ...raw } : {};
|
|
28791
28791
|
if (typeof estimate.has_sufficient_resources === "boolean") {
|
|
28792
28792
|
return {
|
|
28793
|
-
documents: requireNumber(estimate.documents),
|
|
28793
|
+
documents: requireNumber(estimate.documents, true),
|
|
28794
28794
|
totalCredits: requireNumber(estimate.total_credits),
|
|
28795
28795
|
creditBalance: toNumber(estimate.credit_balance),
|
|
28796
28796
|
documentBalance: toNumber(estimate.document_balance),
|