@grapadigital/shared-app-modules 0.0.165 → 0.0.167

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/action.d.ts CHANGED
@@ -60,6 +60,13 @@ export declare interface ActionInterface {
60
60
  nps?: number;
61
61
  }
62
62
 
63
+ declare interface ActivityInterface {
64
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
65
+ description?: string;
66
+ owner: string;
67
+ createdAt: string;
68
+ }
69
+
63
70
  declare interface AgencyCommission {
64
71
  ranges: Range_2[];
65
72
  startDate: string;
@@ -283,7 +290,7 @@ declare interface InvoiceInterface {
283
290
  declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
284
291
 
285
292
  declare interface LostInterface {
286
- reason: "declined" | "other";
293
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
287
294
  details?: string;
288
295
  }
289
296
 
@@ -418,7 +425,7 @@ declare interface ProfileMetric {
418
425
  }
419
426
 
420
427
  declare interface ProposalInterface {
421
- businessUnit: "enterprise" | "artistic";
428
+ businessUnit: "service" | "comercial";
422
429
  origin: "inbound" | "outbound";
423
430
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
424
431
  contact: string;
@@ -511,6 +518,7 @@ declare interface Rights {
511
518
  declare interface SaleInterface {
512
519
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
520
  _id: string;
521
+ organization?: string;
514
522
  title: string;
515
523
  pipefyId: string;
516
524
  screening?: ScreeningInterface;
@@ -520,6 +528,7 @@ declare interface SaleInterface {
520
528
  lost?: LostInterface;
521
529
  inbox?: InboxInterface;
522
530
  notes?: Note[];
531
+ activities?: ActivityInterface[];
523
532
  actions?: ActionInterface[];
524
533
  invoices?: InvoiceInterface[];
525
534
  payments?: PaymentInterface[];
@@ -1,4 +1,4 @@
1
- import { i as n } from "./youtube-icon.component.CHZjR-2u.js";
1
+ import { i as n } from "./youtube-icon.component.CMVDwDrG.js";
2
2
  function a(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -881,7 +881,7 @@ const lA = {
881
881
  partner: "Parceiros",
882
882
  exclusive: "Exclusivos"
883
883
  }, _A = {
884
- enterprise: "Empresa",
884
+ service: "Novos Negocios",
885
885
  artistic: "Artística"
886
886
  }, ma = {
887
887
  instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
@@ -73,6 +73,13 @@ declare interface ActionInterface {
73
73
  nps?: number;
74
74
  }
75
75
 
76
+ declare interface ActivityInterface {
77
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
78
+ description?: string;
79
+ owner: string;
80
+ createdAt: string;
81
+ }
82
+
76
83
  declare interface AgencyCommission {
77
84
  ranges: Range_2[];
78
85
  startDate: string;
@@ -517,7 +524,7 @@ declare interface ListRowProps {
517
524
  }
518
525
 
519
526
  declare interface LostInterface {
520
- reason: "declined" | "other";
527
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
521
528
  details?: string;
522
529
  }
523
530
 
@@ -680,7 +687,7 @@ declare interface ProfileSelectInputProps extends Omit<default_2.ComponentProps<
680
687
  }
681
688
 
682
689
  declare interface ProposalInterface {
683
- businessUnit: "enterprise" | "artistic";
690
+ businessUnit: "service" | "comercial";
684
691
  origin: "inbound" | "outbound";
685
692
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
686
693
  contact: string;
@@ -773,6 +780,7 @@ declare interface Rights {
773
780
  declare interface SaleInterface {
774
781
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
775
782
  _id: string;
783
+ organization?: string;
776
784
  title: string;
777
785
  pipefyId: string;
778
786
  screening?: ScreeningInterface;
@@ -782,6 +790,7 @@ declare interface SaleInterface {
782
790
  lost?: LostInterface;
783
791
  inbox?: InboxInterface;
784
792
  notes?: Note[];
793
+ activities?: ActivityInterface[];
785
794
  actions?: ActionInterface[];
786
795
  invoices?: InvoiceInterface[];
787
796
  payments?: PaymentInterface[];
@@ -1,5 +1,5 @@
1
1
  import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as H, ad as T, ah as y, ag as _, ae as j, ai as A } from "./chuncks/switch.BuckOH_X.js";
2
- import { p as ge, q as xe, u as be, G as me, v as he, w as fe, F as ue, x as pe, y as ye, z as we, D as ke, E as Ne, o as ve, r as Ce, H as Ie, L as ze, j as Fe, k as Me, l as Se, m as He, n as Te, J as _e, s as je, t as Ae, K as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
2
+ import { p as ge, q as xe, u as be, G as me, v as he, w as fe, F as ue, x as pe, y as ye, z as we, D as ke, E as Ne, o as ve, r as Ce, H as Ie, L as ze, j as Fe, k as Me, l as Se, m as He, n as Te, J as _e, s as je, t as Ae, K as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CMVDwDrG.js";
3
3
  import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
4
4
  import "react";
5
5
  import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
@@ -7,7 +7,7 @@ export declare const ACTION_TYPE_VALUES: {
7
7
  };
8
8
 
9
9
  export declare const BUSINESS_UNIT_VALUES: {
10
- readonly enterprise: "Empresa";
10
+ readonly service: "Novos Negocios";
11
11
  readonly artistic: "Artística";
12
12
  };
13
13
 
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, B as S, C as n, I as T, P as O, a as L, b as N, S as c, T as I } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
1
+ import { A as s, B as S, C as n, I as T, P as O, a as L, b as N, S as c, T as I } from "./chuncks/youtube-icon.component.CMVDwDrG.js";
2
2
  const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", E = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", e = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", _ = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", t = "Campo obrigatório.";
3
3
  export {
4
4
  s as ACTION_TYPE_VALUES,
package/dist/content.d.ts CHANGED
@@ -60,6 +60,13 @@ declare interface ActionInterface {
60
60
  nps?: number;
61
61
  }
62
62
 
63
+ declare interface ActivityInterface {
64
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
65
+ description?: string;
66
+ owner: string;
67
+ createdAt: string;
68
+ }
69
+
63
70
  declare interface AgencyCommission {
64
71
  ranges: Range_2[];
65
72
  startDate: string;
@@ -283,7 +290,7 @@ declare interface InvoiceInterface {
283
290
  declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
284
291
 
285
292
  declare interface LostInterface {
286
- reason: "declined" | "other";
293
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
287
294
  details?: string;
288
295
  }
289
296
 
@@ -418,7 +425,7 @@ declare interface ProfileMetric {
418
425
  }
419
426
 
420
427
  declare interface ProposalInterface {
421
- businessUnit: "enterprise" | "artistic";
428
+ businessUnit: "service" | "comercial";
422
429
  origin: "inbound" | "outbound";
423
430
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
424
431
  contact: string;
@@ -511,6 +518,7 @@ declare interface Rights {
511
518
  declare interface SaleInterface {
512
519
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
520
  _id: string;
521
+ organization?: string;
514
522
  title: string;
515
523
  pipefyId: string;
516
524
  screening?: ScreeningInterface;
@@ -520,6 +528,7 @@ declare interface SaleInterface {
520
528
  lost?: LostInterface;
521
529
  inbox?: InboxInterface;
522
530
  notes?: Note[];
531
+ activities?: ActivityInterface[];
523
532
  actions?: ActionInterface[];
524
533
  invoices?: InvoiceInterface[];
525
534
  payments?: PaymentInterface[];
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as o } from "./chuncks/format.util.Bgy0yStH.js";
1
+ import { b as o } from "./chuncks/format.util.DT6LqLkH.js";
2
2
  const i = (t, a) => {
3
3
  const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
package/dist/invoice.d.ts CHANGED
@@ -60,6 +60,13 @@ declare interface ActionInterface {
60
60
  nps?: number;
61
61
  }
62
62
 
63
+ declare interface ActivityInterface {
64
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
65
+ description?: string;
66
+ owner: string;
67
+ createdAt: string;
68
+ }
69
+
63
70
  declare interface AgencyCommission {
64
71
  ranges: Range_2[];
65
72
  startDate: string;
@@ -283,7 +290,7 @@ export declare interface InvoiceInterface {
283
290
  export declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
284
291
 
285
292
  declare interface LostInterface {
286
- reason: "declined" | "other";
293
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
287
294
  details?: string;
288
295
  }
289
296
 
@@ -418,7 +425,7 @@ declare interface ProfileMetric {
418
425
  }
419
426
 
420
427
  declare interface ProposalInterface {
421
- businessUnit: "enterprise" | "artistic";
428
+ businessUnit: "service" | "comercial";
422
429
  origin: "inbound" | "outbound";
423
430
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
424
431
  contact: string;
@@ -511,6 +518,7 @@ declare interface Rights {
511
518
  declare interface SaleInterface {
512
519
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
520
  _id: string;
521
+ organization?: string;
514
522
  title: string;
515
523
  pipefyId: string;
516
524
  screening?: ScreeningInterface;
@@ -520,6 +528,7 @@ declare interface SaleInterface {
520
528
  lost?: LostInterface;
521
529
  inbox?: InboxInterface;
522
530
  notes?: Note_2[];
531
+ activities?: ActivityInterface[];
523
532
  actions?: ActionInterface[];
524
533
  invoices?: InvoiceInterface[];
525
534
  payments?: PaymentInterface[];
package/dist/payment.d.ts CHANGED
@@ -60,6 +60,13 @@ declare interface ActionInterface {
60
60
  nps?: number;
61
61
  }
62
62
 
63
+ declare interface ActivityInterface {
64
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
65
+ description?: string;
66
+ owner: string;
67
+ createdAt: string;
68
+ }
69
+
63
70
  declare interface AgencyCommission {
64
71
  ranges: Range_2[];
65
72
  startDate: string;
@@ -283,7 +290,7 @@ declare interface InvoiceInterface {
283
290
  declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
284
291
 
285
292
  declare interface LostInterface {
286
- reason: "declined" | "other";
293
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
287
294
  details?: string;
288
295
  }
289
296
 
@@ -418,7 +425,7 @@ declare interface ProfileMetric {
418
425
  }
419
426
 
420
427
  declare interface ProposalInterface {
421
- businessUnit: "enterprise" | "artistic";
428
+ businessUnit: "service" | "comercial";
422
429
  origin: "inbound" | "outbound";
423
430
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
424
431
  contact: string;
@@ -511,6 +518,7 @@ declare interface Rights {
511
518
  declare interface SaleInterface {
512
519
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
520
  _id: string;
521
+ organization?: string;
514
522
  title: string;
515
523
  pipefyId: string;
516
524
  screening?: ScreeningInterface;
@@ -520,6 +528,7 @@ declare interface SaleInterface {
520
528
  lost?: LostInterface;
521
529
  inbox?: InboxInterface;
522
530
  notes?: Note_2[];
531
+ activities?: ActivityInterface[];
523
532
  actions?: ActionInterface[];
524
533
  invoices?: InvoiceInterface[];
525
534
  payments?: PaymentInterface[];
@@ -60,6 +60,13 @@ declare interface ActionInterface {
60
60
  nps?: number;
61
61
  }
62
62
 
63
+ declare interface ActivityInterface {
64
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
65
+ description?: string;
66
+ owner: string;
67
+ createdAt: string;
68
+ }
69
+
63
70
  declare interface AgencyCommission {
64
71
  ranges: Range_2[];
65
72
  startDate: string;
@@ -283,7 +290,7 @@ declare interface InvoiceInterface {
283
290
  declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
284
291
 
285
292
  declare interface LostInterface {
286
- reason: "declined" | "other";
293
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
287
294
  details?: string;
288
295
  }
289
296
 
@@ -418,7 +425,7 @@ declare interface ProfileMetric {
418
425
  }
419
426
 
420
427
  declare interface ProposalInterface {
421
- businessUnit: "enterprise" | "artistic";
428
+ businessUnit: "service" | "comercial";
422
429
  origin: "inbound" | "outbound";
423
430
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
424
431
  contact: string;
@@ -511,6 +518,7 @@ export declare interface Rights {
511
518
  declare interface SaleInterface {
512
519
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
520
  _id: string;
521
+ organization?: string;
514
522
  title: string;
515
523
  pipefyId: string;
516
524
  screening?: ScreeningInterface;
@@ -520,6 +528,7 @@ declare interface SaleInterface {
520
528
  lost?: LostInterface;
521
529
  inbox?: InboxInterface;
522
530
  notes?: Note[];
531
+ activities?: ActivityInterface[];
523
532
  actions?: ActionInterface[];
524
533
  invoices?: InvoiceInterface[];
525
534
  payments?: PaymentInterface[];
package/dist/sale.d.ts CHANGED
@@ -60,6 +60,13 @@ declare interface ActionInterface {
60
60
  nps?: number;
61
61
  }
62
62
 
63
+ export declare interface ActivityInterface {
64
+ type: "email" | "whatsapp" | "meeting" | "call" | "linkedin" | "instagram_dm";
65
+ description?: string;
66
+ owner: string;
67
+ createdAt: string;
68
+ }
69
+
63
70
  declare interface AgencyCommission {
64
71
  ranges: Range_2[];
65
72
  startDate: string;
@@ -283,7 +290,7 @@ declare interface InvoiceInterface {
283
290
  declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
284
291
 
285
292
  export declare interface LostInterface {
286
- reason: "declined" | "other";
293
+ reason: "declined" | "other" | "spam" | "no_response" | "no_budget" | "no_profile_fit" | "invite_exchange";
287
294
  details?: string;
288
295
  }
289
296
 
@@ -418,7 +425,7 @@ declare interface ProfileMetric {
418
425
  }
419
426
 
420
427
  export declare interface ProposalInterface {
421
- businessUnit: "enterprise" | "artistic";
428
+ businessUnit: "service" | "comercial";
422
429
  origin: "inbound" | "outbound";
423
430
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
424
431
  contact: string;
@@ -511,6 +518,7 @@ declare interface Rights {
511
518
  export declare interface SaleInterface {
512
519
  phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
513
520
  _id: string;
521
+ organization?: string;
514
522
  title: string;
515
523
  pipefyId: string;
516
524
  screening?: ScreeningInterface;
@@ -520,6 +528,7 @@ export declare interface SaleInterface {
520
528
  lost?: LostInterface;
521
529
  inbox?: InboxInterface;
522
530
  notes?: Note[];
531
+ activities?: ActivityInterface[];
523
532
  actions?: ActionInterface[];
524
533
  invoices?: InvoiceInterface[];
525
534
  payments?: PaymentInterface[];
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare const BUSINESS_UNIT_VALUES: {
2
- readonly enterprise: "Empresa";
2
+ readonly service: "Novos Negocios";
3
3
  readonly artistic: "Artística";
4
4
  };
5
5
 
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import { U as o } from "./chuncks/format.util.Bgy0yStH.js";
2
- import { g as C, h as E, f as L, a as _, d as b, m as l, c as v, e as y, p as D, b as I, u as P } from "./chuncks/format.util.Bgy0yStH.js";
3
- import { c as a } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
4
- import { f as k, e as N, h, i as q, g as x, d as F } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
1
+ import { U as o } from "./chuncks/format.util.DT6LqLkH.js";
2
+ import { g as C, h as E, f as L, a as _, d as b, m as l, c as v, e as y, p as D, b as I, u as P } from "./chuncks/format.util.DT6LqLkH.js";
3
+ import { c as a } from "./chuncks/youtube-icon.component.CMVDwDrG.js";
4
+ import { f as k, e as N, h, i as q, g as x, d as F } from "./chuncks/youtube-icon.component.CMVDwDrG.js";
5
5
  const s = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", t = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, n = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, m = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, i = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, c = (e) => e ? `${e} inválido.` : "Valor inválido.", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
6
  __proto__: null,
7
7
  invalidMessage: c,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.165",
4
+ "version": "0.0.167",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -120,6 +120,13 @@
120
120
  }
121
121
  },
122
122
  "type": "module",
123
+ "scripts": {
124
+ "dev": "vite",
125
+ "build": "rm -rf dist && tsc -b && vite build",
126
+ "lint": "eslint .",
127
+ "preview": "vite preview",
128
+ "lib:publish": "pnpm build && pnpm publish --no-git-checks"
129
+ },
123
130
  "peerDependencies": {
124
131
  "react": "^18.3.1",
125
132
  "react-dom": "^18.3.1"
@@ -175,12 +182,5 @@
175
182
  "vite": "^7.2.4",
176
183
  "vite-plugin-dts": "^4.5.4",
177
184
  "vite-plugin-lib-inject-css": "^2.2.2"
178
- },
179
- "scripts": {
180
- "dev": "vite",
181
- "build": "rm -rf dist && tsc -b && vite build",
182
- "lint": "eslint .",
183
- "preview": "vite preview",
184
- "lib:publish": "pnpm build && pnpm publish --no-git-checks"
185
185
  }
186
- }
186
+ }