@fayz-ai/plugin-crm 0.18.0 → 0.18.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/dist/data/supabase.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AA+Q9C,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE;IAClD,gBAAgB,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,kFAAkF;IAClF,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACvE,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AA+Q9C,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE;IAClD,gBAAgB,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,kFAAkF;IAClF,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACvE,GAAG,eAAe,CAusElB"}
|
package/dist/index.js
CHANGED
|
@@ -254,7 +254,7 @@ function GroupRow({ g, onOpen, open, members, roll, onEdit, onAdd, onRemove, onD
|
|
|
254
254
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: m.companyName }),
|
|
255
255
|
m.companyLegalName && m.companyLegalName !== m.companyName && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: m.companyLegalName }),
|
|
256
256
|
m.companyDocument && /* @__PURE__ */ jsx("span", { className: "tabular-nums text-muted-foreground", children: m.companyDocument }),
|
|
257
|
-
m.source && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground/70", children: m.source === "
|
|
257
|
+
m.source && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground/70", children: m.source === "document_root" ? "pela raiz do CNPJ" : "declarado" }),
|
|
258
258
|
editing && /* @__PURE__ */ jsx(
|
|
259
259
|
"button",
|
|
260
260
|
{
|
|
@@ -12014,10 +12014,17 @@ function createSupabaseCrmProvider(options) {
|
|
|
12014
12014
|
tenant_id: tenantId,
|
|
12015
12015
|
group_id: group.id,
|
|
12016
12016
|
company_id: cid,
|
|
12017
|
-
// `
|
|
12018
|
-
// a raiz do
|
|
12019
|
-
// meses depois, saber se aquilo foi conferido ou deduzido.
|
|
12020
|
-
|
|
12017
|
+
// `document_root` e não `manual`: quem aceitou a proposta confirmou o
|
|
12018
|
+
// que a raiz do documento dizia. Guardar a PROCEDÊNCIA é o que deixa
|
|
12019
|
+
// alguém, meses depois, saber se aquilo foi conferido ou deduzido.
|
|
12020
|
+
//
|
|
12021
|
+
// O nome é o do CHECK da coluna (`manual, document_root,
|
|
12022
|
+
// shared_phone, email_domain, import`), não um sinónimo. Estava
|
|
12023
|
+
// `cnpj_root`, que a restrição recusa — e confirmar uma sugestão por
|
|
12024
|
+
// raiz de documento nunca chegou a funcionar: dava
|
|
12025
|
+
// `plg_crm_company_group_members_source_check` na cara de quem
|
|
12026
|
+
// clicava. O banco é quem define este vocabulário.
|
|
12027
|
+
source: documentRoot2 ? "document_root" : "manual"
|
|
12021
12028
|
}))
|
|
12022
12029
|
);
|
|
12023
12030
|
if (e2) throw new Error(e2.message);
|