@grapadigital/shared-app-modules 0.0.212 → 0.0.214

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
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
432
432
  }
433
433
 
434
434
  declare interface ProposalInterface {
435
- businessUnit: "service" | "comercial";
435
+ businessUnit: "service" | "comercial" | "artistic";
436
436
  origin: "inbound" | "outbound";
437
437
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
438
438
  contact: string;
@@ -64,8 +64,8 @@ const d = (e) => new Intl.NumberFormat("pt-BR", {
64
64
  }, Symbol.toStringTag, { value: "Module" }));
65
65
  export {
66
66
  D as U,
67
- o as a,
68
- u as b,
67
+ a,
68
+ o as b,
69
69
  i as c,
70
70
  s as d,
71
71
  l as e,
@@ -73,6 +73,6 @@ export {
73
73
  d as g,
74
74
  f as h,
75
75
  m,
76
- a as p,
76
+ u as p,
77
77
  p as u
78
78
  };
@@ -774,7 +774,7 @@ declare interface ProfileSelectInputProps extends Omit<default_2.ComponentProps<
774
774
  }
775
775
 
776
776
  declare interface ProposalInterface {
777
- businessUnit: "service" | "comercial";
777
+ businessUnit: "service" | "comercial" | "artistic";
778
778
  origin: "inbound" | "outbound";
779
779
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
780
780
  contact: string;
package/dist/content.d.ts CHANGED
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
432
432
  }
433
433
 
434
434
  declare interface ProposalInterface {
435
- businessUnit: "service" | "comercial";
435
+ businessUnit: "service" | "comercial" | "artistic";
436
436
  origin: "inbound" | "outbound";
437
437
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
438
438
  contact: string;
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as o } from "./chuncks/format.util.CP4sH71a.js";
1
+ import { p as o } from "./chuncks/format.util.ZogZZ58E.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
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
432
432
  }
433
433
 
434
434
  declare interface ProposalInterface {
435
- businessUnit: "service" | "comercial";
435
+ businessUnit: "service" | "comercial" | "artistic";
436
436
  origin: "inbound" | "outbound";
437
437
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
438
438
  contact: string;
package/dist/payment.d.ts CHANGED
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
432
432
  }
433
433
 
434
434
  declare interface ProposalInterface {
435
- businessUnit: "service" | "comercial";
435
+ businessUnit: "service" | "comercial" | "artistic";
436
436
  origin: "inbound" | "outbound";
437
437
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
438
438
  contact: string;
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
432
432
  }
433
433
 
434
434
  declare interface ProposalInterface {
435
- businessUnit: "service" | "comercial";
435
+ businessUnit: "service" | "comercial" | "artistic";
436
436
  origin: "inbound" | "outbound";
437
437
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
438
438
  contact: string;
package/dist/sale.d.ts CHANGED
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
432
432
  }
433
433
 
434
434
  export declare interface ProposalInterface {
435
- businessUnit: "service" | "comercial";
435
+ businessUnit: "service" | "comercial" | "artistic";
436
436
  origin: "inbound" | "outbound";
437
437
  type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
438
438
  contact: string;
package/dist/utils.d.ts CHANGED
@@ -313,6 +313,39 @@ export declare const preFormatPercentage: (value: string | number) => number | f
313
313
  */
314
314
  export declare const requiredMessage: (field?: string) => string;
315
315
 
316
+ /**
317
+ * Serializa um objeto de parâmetros em uma query string.
318
+ *
319
+ * Converte propriedades simples em pares chave=valor e, quando o valor
320
+ * é um array, adiciona múltiplas ocorrências da mesma chave.
321
+ * Valores `undefined` são ignorados.
322
+ *
323
+ * @param params - Objeto contendo os parâmetros a serem serializados.
324
+ * @returns Uma query string compatível com URLs.
325
+ *
326
+ * @example
327
+ * serializeParams({
328
+ * page: 1,
329
+ * search: 'react'
330
+ * });
331
+ * // "page=1&search=react"
332
+ *
333
+ * @example
334
+ * serializeParams({
335
+ * tags: ['react', 'typescript']
336
+ * });
337
+ * // "tags=react&tags=typescript"
338
+ *
339
+ * @example
340
+ * serializeParams({
341
+ * page: 1,
342
+ * search: null,
343
+ * sort: undefined
344
+ * });
345
+ * // "page=1&search=null"
346
+ */
347
+ export declare const serializeParams: (params: Record<string, unknown>) => string;
348
+
316
349
  declare const SOCIAL_NETWORK_VALUES: {
317
350
  readonly instagram: "Instagram";
318
351
  readonly tiktok: "TikTok";
package/dist/utils.js CHANGED
@@ -1,48 +1,54 @@
1
- import { U as a } from "./chuncks/format.util.CP4sH71a.js";
2
- import { g as l, h as v, f as y, a as C, d as D, m as E, c as L, e as P, p as _, b, u as k } from "./chuncks/format.util.CP4sH71a.js";
3
- import { f as s } from "./chuncks/youtube-icon.component.DJUDonHx.js";
4
- import { r as U, p as h, n as q, j as N, h as x, l as F, i as O, m as T, k as j, g as A, o as G, q as V, v as w } from "./chuncks/youtube-icon.component.DJUDonHx.js";
5
- const t = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", o = (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.`, i = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, m = (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({
1
+ import { U as o } from "./chuncks/format.util.ZogZZ58E.js";
2
+ import { g as D, h as E, f as L, b, d as h, m as k, c as C, e as _, a as I, p as U, u as O } from "./chuncks/format.util.ZogZZ58E.js";
3
+ import { f as n } from "./chuncks/youtube-icon.component.DJUDonHx.js";
4
+ import { r as N, p as x, n as A, j as F, h as T, l as j, i as w, m as G, k as V, g as z, o as B, q as R, v as J } from "./chuncks/youtube-icon.component.DJUDonHx.js";
5
+ const i = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", c = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, m = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, u = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, p = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, f = (e) => e ? `${e} inválido.` : "Valor inválido.", g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
6
  __proto__: null,
7
- invalidMessage: c,
8
- maxLengthMessage: n,
9
- maxValueMessage: m,
10
- minLengthMessage: o,
11
- minValueMessage: i,
12
- requiredMessage: t
13
- }, Symbol.toStringTag, { value: "Module" })), $ = a, f = s, M = u;
7
+ invalidMessage: f,
8
+ maxLengthMessage: m,
9
+ maxValueMessage: p,
10
+ minLengthMessage: c,
11
+ minValueMessage: u,
12
+ requiredMessage: i
13
+ }, Symbol.toStringTag, { value: "Module" })), l = (e) => {
14
+ const r = new URLSearchParams();
15
+ for (const [s, a] of Object.entries(e))
16
+ Array.isArray(a) ? a.forEach((t) => r.append(s, String(t))) : a instanceof Date ? r.append(s, a.toISOString()) : a !== void 0 && r.append(s, String(a));
17
+ return r.toString();
18
+ }, $ = o, y = n, M = g;
14
19
  export {
15
20
  M as FIELD_MESSAGE,
16
- f as IS,
21
+ y as IS,
17
22
  $ as UTIL,
18
- U as createDictionary,
19
- h as entries,
20
- l as formatCompactNumber,
21
- v as formatCompactPercent,
22
- y as formatCurrency,
23
- C as formatPercentage,
24
- c as invalidMessage,
25
- q as isActionStatus,
26
- N as isBusinessUnit,
27
- x as isClientType,
28
- F as isInfluencerBroadcastMethod,
29
- O as isNumber,
30
- T as isPaymentPhase,
31
- j as isPaymentType,
32
- A as isSocialNetwork,
33
- G as keys,
34
- D as maskCNPJ,
35
- E as maskCPF,
36
- L as maskRG,
37
- P as maskZipCode,
38
- n as maxLengthMessage,
39
- m as maxValueMessage,
40
- o as minLengthMessage,
41
- i as minValueMessage,
42
- V as newDate,
43
- _ as preFormatCurrency,
44
- b as preFormatPercentage,
45
- t as requiredMessage,
46
- k as unmask,
47
- w as values
23
+ N as createDictionary,
24
+ x as entries,
25
+ D as formatCompactNumber,
26
+ E as formatCompactPercent,
27
+ L as formatCurrency,
28
+ b as formatPercentage,
29
+ f as invalidMessage,
30
+ A as isActionStatus,
31
+ F as isBusinessUnit,
32
+ T as isClientType,
33
+ j as isInfluencerBroadcastMethod,
34
+ w as isNumber,
35
+ G as isPaymentPhase,
36
+ V as isPaymentType,
37
+ z as isSocialNetwork,
38
+ B as keys,
39
+ h as maskCNPJ,
40
+ k as maskCPF,
41
+ C as maskRG,
42
+ _ as maskZipCode,
43
+ m as maxLengthMessage,
44
+ p as maxValueMessage,
45
+ c as minLengthMessage,
46
+ u as minValueMessage,
47
+ R as newDate,
48
+ I as preFormatCurrency,
49
+ U as preFormatPercentage,
50
+ i as requiredMessage,
51
+ l as serializeParams,
52
+ O as unmask,
53
+ J as values
48
54
  };
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.212",
4
+ "version": "0.0.214",
5
5
  "files": [
6
6
  "dist"
7
7
  ],