@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
|
@@ -29057,9 +29057,9 @@ var buildEstimateSigners = (signers) => signers.map(({ roleId, verificationMetho
|
|
|
29057
29057
|
var BLOCKING_REASONS = ["PendingPayment", "InsufficientDocuments", "InsufficientCredits"];
|
|
29058
29058
|
var toNumber = (value) => typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
29059
29059
|
var unexpectedEstimate = () => new AppFailure("INTERNAL", "A Assinafy retornou uma estimativa de custo inesperada.");
|
|
29060
|
-
var requireNumber = (value) => {
|
|
29060
|
+
var requireNumber = (value, integer = false) => {
|
|
29061
29061
|
const number = toNumber(value);
|
|
29062
|
-
if (number === null) {
|
|
29062
|
+
if (number === null || number < 0 || integer && !Number.isSafeInteger(number)) {
|
|
29063
29063
|
throw unexpectedEstimate();
|
|
29064
29064
|
}
|
|
29065
29065
|
return number;
|
|
@@ -29068,7 +29068,7 @@ var normalizeCostEstimate = (raw) => {
|
|
|
29068
29068
|
const estimate = typeof raw === "object" && raw !== null ? { ...raw } : {};
|
|
29069
29069
|
if (typeof estimate.has_sufficient_resources === "boolean") {
|
|
29070
29070
|
return {
|
|
29071
|
-
documents: requireNumber(estimate.documents),
|
|
29071
|
+
documents: requireNumber(estimate.documents, true),
|
|
29072
29072
|
totalCredits: requireNumber(estimate.total_credits),
|
|
29073
29073
|
creditBalance: toNumber(estimate.credit_balance),
|
|
29074
29074
|
documentBalance: toNumber(estimate.document_balance),
|