customer-module-frontend 2.0.1-beta.3 → 2.0.1-beta.5
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/customer-module.js
CHANGED
|
@@ -35497,9 +35497,7 @@ const Uh = ({
|
|
|
35497
35497
|
];
|
|
35498
35498
|
}, P = (Y, J) => {
|
|
35499
35499
|
r(
|
|
35500
|
-
(z) => z.map(
|
|
35501
|
-
(Z) => Z.id === Y ? { ...Z, hiverFieldKey: J } : Z
|
|
35502
|
-
)
|
|
35500
|
+
(z) => z.map((Z) => Z.id === Y ? { ...Z, hiverFieldKey: J } : Z)
|
|
35503
35501
|
);
|
|
35504
35502
|
}, W = (Y, J) => {
|
|
35505
35503
|
if (J === "__create_new__") {
|
|
@@ -35507,9 +35505,7 @@ const Uh = ({
|
|
|
35507
35505
|
...z,
|
|
35508
35506
|
[Y]: { name: "", fieldType: "TEXT", isLoading: !1 }
|
|
35509
35507
|
})), r(
|
|
35510
|
-
(z) => z.map(
|
|
35511
|
-
(Z) => Z.id === Y ? { ...Z, hiverFieldKey: null } : Z
|
|
35512
|
-
)
|
|
35508
|
+
(z) => z.map((Z) => Z.id === Y ? { ...Z, hiverFieldKey: null } : Z)
|
|
35513
35509
|
);
|
|
35514
35510
|
return;
|
|
35515
35511
|
}
|
|
@@ -35694,7 +35690,7 @@ const Uh = ({
|
|
|
35694
35690
|
),
|
|
35695
35691
|
j(Y) && /* @__PURE__ */ Q("span", { className: "cm:text-xs cm:text-orange-500", children: "Data type format mismatch" })
|
|
35696
35692
|
] }) }),
|
|
35697
|
-
/* @__PURE__ */ Q("div", { className: "cm:flex cm:items-center cm:justify-center cm:h-[36px]", children: !Y.isRequired && /* @__PURE__ */ Q(
|
|
35693
|
+
/* @__PURE__ */ Q("div", { className: "cm:flex cm:items-center cm:justify-center cm:h-[36px]", children: !Y.isRequired && !Z && /* @__PURE__ */ Q(
|
|
35698
35694
|
"button",
|
|
35699
35695
|
{
|
|
35700
35696
|
type: "button",
|
|
@@ -35824,9 +35820,9 @@ const Uh = ({
|
|
|
35824
35820
|
refreshTokenUrl: i,
|
|
35825
35821
|
keyName: c,
|
|
35826
35822
|
prefix: h
|
|
35827
|
-
} = t, m = E === "ug" ?
|
|
35823
|
+
} = t, m = E === "ug" ? `/v1/api/connector/${A}/auth` : "/v1/api/connector/auth";
|
|
35828
35824
|
return (await g(m, {
|
|
35829
|
-
method: E === "ug" ? "
|
|
35825
|
+
method: E === "ug" ? "PATCH" : "POST",
|
|
35830
35826
|
data: {
|
|
35831
35827
|
authDetails: {
|
|
35832
35828
|
authType: C,
|
|
@@ -36462,9 +36458,9 @@ const Uh = ({
|
|
|
36462
36458
|
company: "accounts",
|
|
36463
36459
|
contact: "contacts"
|
|
36464
36460
|
}, Qf = (A) => {
|
|
36465
|
-
const t = A.status === "completed" ? A.error_count > 0 ? "warning" : "success" : A.status === "
|
|
36461
|
+
const t = A.status === "completed" ? A.error_count > 0 ? "warning" : "success" : A.status === "partially_completed" ? "warning" : A.status === "failed" ? "error" : A.status === "queued" || A.status === "running" ? "pending" : "unknown", e = Bf[A.entity_type] ?? A.entity_type;
|
|
36466
36462
|
let E;
|
|
36467
|
-
return A.status === "queued"
|
|
36463
|
+
return A.status === "queued" ? E = "Queued for sync" : A.status === "running" ? E = `Syncing ${e}…` : A.status === "failed" ? E = "Sync failed" : A.error_count === 0 ? E = `${A.synced_records.toLocaleString()} ${e} synced` : E = `${A.synced_records.toLocaleString()} synced — ${A.error_count.toLocaleString()} failed`, {
|
|
36468
36464
|
id: String(A.id),
|
|
36469
36465
|
status: t,
|
|
36470
36466
|
title: t.charAt(0).toUpperCase() + t.slice(1),
|