@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
|
@@ -28917,9 +28917,9 @@ var buildEstimateSigners = (signers) => signers.map(({ roleId, verificationMetho
|
|
|
28917
28917
|
var BLOCKING_REASONS = ["PendingPayment", "InsufficientDocuments", "InsufficientCredits"];
|
|
28918
28918
|
var toNumber = (value) => typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
28919
28919
|
var unexpectedEstimate = () => new AppFailure("INTERNAL", "A Assinafy retornou uma estimativa de custo inesperada.");
|
|
28920
|
-
var requireNumber = (value) => {
|
|
28920
|
+
var requireNumber = (value, integer = false) => {
|
|
28921
28921
|
const number = toNumber(value);
|
|
28922
|
-
if (number === null) {
|
|
28922
|
+
if (number === null || number < 0 || integer && !Number.isSafeInteger(number)) {
|
|
28923
28923
|
throw unexpectedEstimate();
|
|
28924
28924
|
}
|
|
28925
28925
|
return number;
|
|
@@ -28928,7 +28928,7 @@ var normalizeCostEstimate = (raw) => {
|
|
|
28928
28928
|
const estimate = typeof raw === "object" && raw !== null ? { ...raw } : {};
|
|
28929
28929
|
if (typeof estimate.has_sufficient_resources === "boolean") {
|
|
28930
28930
|
return {
|
|
28931
|
-
documents: requireNumber(estimate.documents),
|
|
28931
|
+
documents: requireNumber(estimate.documents, true),
|
|
28932
28932
|
totalCredits: requireNumber(estimate.total_credits),
|
|
28933
28933
|
creditBalance: toNumber(estimate.credit_balance),
|
|
28934
28934
|
documentBalance: toNumber(estimate.document_balance),
|