@grapadigital/shared-app-modules 0.0.153 → 0.0.155

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.
@@ -237,6 +237,7 @@ declare interface DeliveryScope {
237
237
  dayAllocation?: number | null;
238
238
  pinterest?: number | null;
239
239
  linkedin?: number | null;
240
+ twitter?: number | null;
240
241
  }
241
242
 
242
243
  export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
@@ -456,6 +457,11 @@ declare interface InstallmentInfo {
456
457
 
457
458
  declare type InstallmentInfoArray = Array<InstallmentInfo>;
458
459
 
460
+ declare interface Installments {
461
+ installmentNumber: number;
462
+ value: number;
463
+ }
464
+
459
465
  declare interface Invoiced {
460
466
  code: string;
461
467
  issueDate: string;
@@ -610,6 +616,7 @@ declare interface Payment {
610
616
  declare interface PaymentInterface {
611
617
  _id: string;
612
618
  title: string;
619
+ totalInstallments: number;
613
620
  attachments: Attachments[];
614
621
  pending?: Pending;
615
622
  review?: Review_2;
@@ -621,6 +628,7 @@ declare interface PaymentInterface {
621
628
  notes?: Note_3[];
622
629
  tags?: string[];
623
630
  phase: PaymentPhase;
631
+ installments: Installments[];
624
632
  }
625
633
 
626
634
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
@@ -677,6 +685,7 @@ declare interface ProposalInterface {
677
685
  contact: string;
678
686
  initialScope: string;
679
687
  profile: ProfileInterface;
688
+ influencer: InfluencerInterface;
680
689
  responsable: {
681
690
  team: string;
682
691
  name: string;
@@ -706,6 +715,10 @@ declare interface RecruitmentInterface {
706
715
  status: string;
707
716
  actionId: string;
708
717
  profileId: string;
718
+ impressions: number;
719
+ reach: number;
720
+ engagementRate: number;
721
+ totalContents: number;
709
722
  profile: ProfileInterface;
710
723
  reel: ContentInterface[];
711
724
  story: ContentInterface[];
@@ -715,6 +728,7 @@ declare interface RecruitmentInterface {
715
728
  youtube: ContentInterface[];
716
729
  linkedin: ContentInterface[];
717
730
  pinterest: ContentInterface[];
731
+ twitter: ContentInterface[];
718
732
  scope: ContractedScopeInterface;
719
733
  }
720
734
 
@@ -1,14 +1,14 @@
1
1
  import { a as b, y as N, c, H as v, B as S, aw as C, ax as I, ay as z, Y as T, Z as H, a1 as y, a0 as _, _ as j, a2 as A } from "./chuncks/switch.q7qsNhmq.js";
2
- import { k as ge, l as xe, p as be, x as me, q as he, r as fe, F as ue, s as pe, t as ye, u as we, v as ke, w as Ne, I as ve, m as Ce, y as Ie, L as ze, P as Fe, f as Me, g as Se, h as Te, j as He, z as _e, n as je, o as Ae, T as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.DOppFAbR.js";
2
+ import { l as ge, m as xe, q as be, y as me, r as he, s as fe, F as ue, t as pe, u as ye, v as we, w as ke, x as Ne, k as ve, n as Ce, z as Ie, L as ze, P as Fe, f as Me, g as Se, h as Te, j as He, D as _e, o as je, p as Ae, T as Le, X as Pe, Y as De } from "./chuncks/youtube-icon.component.BQUJXvPb.js";
3
3
  import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
4
4
  import "react";
5
- import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
5
+ import { parseISO as w, differenceInCalendarDays as P, format as D } from "date-fns";
6
6
  import { S as f } from "./chuncks/skeleton.BjmmpFAG.js";
7
- const B = [
7
+ const $ = [
8
8
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
9
9
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
10
10
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
11
- ], D = b("circle-alert", B);
11
+ ], B = b("circle-alert", $);
12
12
  const q = [
13
13
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
14
14
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
@@ -178,7 +178,7 @@ function ne({
178
178
  children: [
179
179
  a,
180
180
  " ",
181
- /* @__PURE__ */ e(D, { className: "size-3.5" })
181
+ /* @__PURE__ */ e(B, { className: "size-3.5" })
182
182
  ]
183
183
  }
184
184
  ),
@@ -190,7 +190,7 @@ function ne({
190
190
  i ? "text-red-600" : r ? "text-green-600" : ""
191
191
  ),
192
192
  children: [
193
- s && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" ? $(w(t), "dd/MM/yyyy") : x && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
193
+ s && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" ? D(w(t), "dd/MM/yyyy") : x && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
194
194
  m && p && /* @__PURE__ */ e(R, { size: 15, onClick: () => p(t) })
195
195
  ]
196
196
  }
@@ -317,5 +317,5 @@ export {
317
317
  Le as TikTokIcon,
318
318
  oe as TwitterIcon,
319
319
  Pe as XIcon,
320
- $e as YoutubeIcon
320
+ De as YoutubeIcon
321
321
  };
@@ -2,7 +2,7 @@ import { JSX } from 'react/jsx-runtime';
2
2
  import { LucideProps } from 'lucide-react';
3
3
 
4
4
  export declare const ACTION_TYPE_VALUES: {
5
- readonly partner: "Perceiros";
5
+ readonly partner: "Parceiros";
6
6
  readonly exclusive: "Exclusivos";
7
7
  };
8
8
 
@@ -38,13 +38,19 @@ declare function LinkedInIcon({ size, color, ...props }: LucideProps): JSX.Eleme
38
38
  export declare const NO_DATA_TO_UPDATE = "N\u00E3o h\u00E1 dados para atualizar.";
39
39
 
40
40
  /**
41
- * Mensagem para quando quando não há dados novos para realizar uma operação.
41
+ * Mensagem para quando quando não há dados novos para realizar uma operação. Usado em atualização de dados.
42
42
  * @returns {string} A mensagem.
43
43
  */
44
44
  export declare const NO_DATA_TO_UPDATE_MESSAGE = "Nenhum dado novo foi informado para realizar a opera\u00E7\u00E3o. Por favor, atualize os campos antes de tentar novamente.";
45
45
 
46
46
  declare function PinterestIcon({ size, color, ...props }: LucideProps): JSX.Element;
47
47
 
48
+ /**
49
+ * Mensagem para quando um campo obrigatório estiver vazio.
50
+ * @returns {string} A mensagem.
51
+ */
52
+ export declare const REQUIRED_FIELD_MESSAGE = "Campo obrigat\u00F3rio.";
53
+
48
54
  export declare const SOCIAL_NETWORK_COLOR_VALUES: {
49
55
  instagram: string;
50
56
  tiktok: string;
@@ -74,6 +80,12 @@ export declare const SOCIAL_NETWORK_VALUES: {
74
80
 
75
81
  declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
76
82
 
83
+ /**
84
+ * Mensagem para quando ocorrer um erro na validação dos dados enviados ao servidor.
85
+ * @returns {string} A mensagem.
86
+ */
87
+ export declare const VALIDATION_ERROR_MESSAGE = "H\u00E1 um erro na valida\u00E7\u00E3o dos campos. Por favor, entre em contato com o suporte.";
88
+
77
89
  declare function XIcon({ size, color, ...props }: LucideProps): JSX.Element;
78
90
 
79
91
  declare function YoutubeIcon({ size, color, ...props }: LucideProps): JSX.Element;
package/dist/constants.js CHANGED
@@ -1,14 +1,16 @@
1
- import { A as r, B as n, C as s, S as A, e as S, d as O } from "./chuncks/youtube-icon.component.DOppFAbR.js";
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.", t = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.";
1
+ import { A as s, B as A, C as S, a as O, b as T, S as c } from "./chuncks/youtube-icon.component.BQUJXvPb.js";
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.", t = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", E = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", r = "Campo obrigatório.";
3
3
  export {
4
- r as ACTION_TYPE_VALUES,
5
- n as BUSINESS_UNIT_VALUES,
6
- s as CLIENT_TYPE_VALUES,
4
+ s as ACTION_TYPE_VALUES,
5
+ A as BUSINESS_UNIT_VALUES,
6
+ S as CLIENT_TYPE_VALUES,
7
7
  t as ERROR_MESSAGE,
8
8
  a as FILTER_ALREADY_APPLIED_MESSAGE,
9
9
  o as NO_DATA_TO_UPDATE,
10
10
  e as NO_DATA_TO_UPDATE_MESSAGE,
11
- A as SOCIAL_NETWORK_COLOR_VALUES,
12
- S as SOCIAL_NETWORK_ICON_COMPONENTS,
13
- O as SOCIAL_NETWORK_VALUES
11
+ r as REQUIRED_FIELD_MESSAGE,
12
+ O as SOCIAL_NETWORK_COLOR_VALUES,
13
+ T as SOCIAL_NETWORK_ICON_COMPONENTS,
14
+ c as SOCIAL_NETWORK_VALUES,
15
+ E as VALIDATION_ERROR_MESSAGE
14
16
  };
package/dist/content.d.ts CHANGED
@@ -182,6 +182,7 @@ declare interface DeliveryScope {
182
182
  dayAllocation?: number | null;
183
183
  pinterest?: number | null;
184
184
  linkedin?: number | null;
185
+ twitter?: number | null;
185
186
  }
186
187
 
187
188
  declare interface Exchange {
@@ -250,6 +251,11 @@ declare interface InstallmentInfo {
250
251
 
251
252
  declare type InstallmentInfoArray = Array<InstallmentInfo>;
252
253
 
254
+ declare interface Installments {
255
+ installmentNumber: number;
256
+ value: number;
257
+ }
258
+
253
259
  declare interface Invoiced {
254
260
  code: string;
255
261
  issueDate: string;
@@ -357,6 +363,7 @@ declare interface Payment {
357
363
  declare interface PaymentInterface {
358
364
  _id: string;
359
365
  title: string;
366
+ totalInstallments: number;
360
367
  attachments: Attachments[];
361
368
  pending?: Pending;
362
369
  review?: Review_2;
@@ -368,6 +375,7 @@ declare interface PaymentInterface {
368
375
  notes?: Note_3[];
369
376
  tags?: string[];
370
377
  phase: PaymentPhase;
378
+ installments: Installments[];
371
379
  }
372
380
 
373
381
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
@@ -415,6 +423,7 @@ declare interface ProposalInterface {
415
423
  contact: string;
416
424
  initialScope: string;
417
425
  profile: ProfileInterface;
426
+ influencer: InfluencerInterface;
418
427
  responsable: {
419
428
  team: string;
420
429
  name: string;
@@ -444,6 +453,10 @@ declare interface RecruitmentInterface {
444
453
  status: string;
445
454
  actionId: string;
446
455
  profileId: string;
456
+ impressions: number;
457
+ reach: number;
458
+ engagementRate: number;
459
+ totalContents: number;
447
460
  profile: ProfileInterface;
448
461
  reel: ContentInterface[];
449
462
  story: ContentInterface[];
@@ -453,6 +466,7 @@ declare interface RecruitmentInterface {
453
466
  youtube: ContentInterface[];
454
467
  linkedin: ContentInterface[];
455
468
  pinterest: ContentInterface[];
469
+ twitter: ContentInterface[];
456
470
  scope: ContractedScopeInterface;
457
471
  }
458
472
 
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as o } from "./chuncks/format.util.C9TAg1A-.js";
1
+ import { b as o } from "./chuncks/format.util.BPVDuHoX.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
@@ -182,6 +182,7 @@ declare interface DeliveryScope {
182
182
  dayAllocation?: number | null;
183
183
  pinterest?: number | null;
184
184
  linkedin?: number | null;
185
+ twitter?: number | null;
185
186
  }
186
187
 
187
188
  declare interface Exchange {
@@ -250,6 +251,11 @@ declare interface InstallmentInfo {
250
251
 
251
252
  declare type InstallmentInfoArray = Array<InstallmentInfo>;
252
253
 
254
+ declare interface Installments {
255
+ installmentNumber: number;
256
+ value: number;
257
+ }
258
+
253
259
  export declare interface Invoiced {
254
260
  code: string;
255
261
  issueDate: string;
@@ -357,6 +363,7 @@ declare interface Payment {
357
363
  declare interface PaymentInterface {
358
364
  _id: string;
359
365
  title: string;
366
+ totalInstallments: number;
360
367
  attachments: Attachments[];
361
368
  pending?: Pending;
362
369
  review?: Review_2;
@@ -368,6 +375,7 @@ declare interface PaymentInterface {
368
375
  notes?: Note_3[];
369
376
  tags?: string[];
370
377
  phase: PaymentPhase;
378
+ installments: Installments[];
371
379
  }
372
380
 
373
381
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
@@ -415,6 +423,7 @@ declare interface ProposalInterface {
415
423
  contact: string;
416
424
  initialScope: string;
417
425
  profile: ProfileInterface;
426
+ influencer: InfluencerInterface;
418
427
  responsable: {
419
428
  team: string;
420
429
  name: string;
@@ -444,6 +453,10 @@ declare interface RecruitmentInterface {
444
453
  status: string;
445
454
  actionId: string;
446
455
  profileId: string;
456
+ impressions: number;
457
+ reach: number;
458
+ engagementRate: number;
459
+ totalContents: number;
447
460
  profile: ProfileInterface;
448
461
  reel: ContentInterface[];
449
462
  story: ContentInterface[];
@@ -453,6 +466,7 @@ declare interface RecruitmentInterface {
453
466
  youtube: ContentInterface[];
454
467
  linkedin: ContentInterface[];
455
468
  pinterest: ContentInterface[];
469
+ twitter: ContentInterface[];
456
470
  scope: ContractedScopeInterface;
457
471
  }
458
472
 
package/dist/log.d.ts CHANGED
@@ -2,7 +2,7 @@ export declare interface LogInterface {
2
2
  _id: string;
3
3
  referenceId: string;
4
4
  phase: string;
5
- type: "create" | "updated" | "change-phase";
5
+ type: "created" | "create" | "updated" | "change-phase";
6
6
  changes: {
7
7
  [field: string]: {
8
8
  before: string;
package/dist/pages.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
 
4
- export declare function LoaderPage(): JSX.Element;
4
+ export declare function LoaderPage({ className, ...props }: LoaderPageProps): JSX.Element;
5
+
6
+ declare type LoaderPageProps = React.ComponentProps<"div">;
5
7
 
6
8
  export declare function NotFoundPage({ btnRedirect, btnLabel, hideBtn, className, ...props }: NotFoundPageProps): JSX.Element;
7
9
 
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as i, c as a, B as m } from "./chuncks/switch.q7qsNhmq.js";
1
+ import { a as i, c as t, B as m } from "./chuncks/switch.q7qsNhmq.js";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { useNavigate as d } from "react-router-dom";
@@ -11,12 +11,22 @@ const x = [
11
11
  }
12
12
  ]
13
13
  ], u = i("flag", x);
14
- function N() {
15
- return /* @__PURE__ */ e("div", { className: a("flex items-center justify-center h-screen w-screen"), children: /* @__PURE__ */ e("div", { className: "size-16 border-gray-500 border-t-gray-700 rounded-full animate-spin border-[0.375rem]" }) });
14
+ function N({ className: a, ...r }) {
15
+ return /* @__PURE__ */ e(
16
+ "div",
17
+ {
18
+ className: t(
19
+ "flex items-center justify-center h-screen w-screen",
20
+ a
21
+ ),
22
+ ...r,
23
+ children: /* @__PURE__ */ e("div", { className: "size-16 border-gray-500 border-t-gray-700 rounded-full animate-spin border-[0.375rem]" })
24
+ }
25
+ );
16
26
  }
17
27
  function b({
18
- btnRedirect: r = "/",
19
- btnLabel: t = "Home",
28
+ btnRedirect: a = "/",
29
+ btnLabel: r = "Home",
20
30
  hideBtn: s = !1,
21
31
  className: n,
22
32
  ...o
@@ -25,7 +35,7 @@ function b({
25
35
  return /* @__PURE__ */ e(
26
36
  "div",
27
37
  {
28
- className: a(
38
+ className: t(
29
39
  "h-screen mx-auto grid place-items-center text-center px-8",
30
40
  n
31
41
  ),
@@ -39,8 +49,8 @@ function b({
39
49
  {
40
50
  size: "lg",
41
51
  className: "px-4 md:w-[8rem]",
42
- onClick: () => c(r),
43
- children: t
52
+ onClick: () => c(a),
53
+ children: r
44
54
  }
45
55
  )
46
56
  ] })
package/dist/payment.d.ts CHANGED
@@ -182,6 +182,7 @@ declare interface DeliveryScope {
182
182
  dayAllocation?: number | null;
183
183
  pinterest?: number | null;
184
184
  linkedin?: number | null;
185
+ twitter?: number | null;
185
186
  }
186
187
 
187
188
  declare interface Exchange {
@@ -250,6 +251,11 @@ declare interface InstallmentInfo {
250
251
 
251
252
  declare type InstallmentInfoArray = Array<InstallmentInfo>;
252
253
 
254
+ declare interface Installments {
255
+ installmentNumber: number;
256
+ value: number;
257
+ }
258
+
253
259
  declare interface Invoiced {
254
260
  code: string;
255
261
  issueDate: string;
@@ -357,6 +363,7 @@ declare interface Payment {
357
363
  export declare interface PaymentInterface {
358
364
  _id: string;
359
365
  title: string;
366
+ totalInstallments: number;
360
367
  attachments: Attachments[];
361
368
  pending?: Pending;
362
369
  review?: Review;
@@ -368,6 +375,7 @@ export declare interface PaymentInterface {
368
375
  notes?: Note[];
369
376
  tags?: string[];
370
377
  phase: PaymentPhase;
378
+ installments: Installments[];
371
379
  }
372
380
 
373
381
  export declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
@@ -415,6 +423,7 @@ declare interface ProposalInterface {
415
423
  contact: string;
416
424
  initialScope: string;
417
425
  profile: ProfileInterface;
426
+ influencer: InfluencerInterface;
418
427
  responsable: {
419
428
  team: string;
420
429
  name: string;
@@ -444,6 +453,10 @@ declare interface RecruitmentInterface {
444
453
  status: string;
445
454
  actionId: string;
446
455
  profileId: string;
456
+ impressions: number;
457
+ reach: number;
458
+ engagementRate: number;
459
+ totalContents: number;
447
460
  profile: ProfileInterface;
448
461
  reel: ContentInterface[];
449
462
  story: ContentInterface[];
@@ -453,6 +466,7 @@ declare interface RecruitmentInterface {
453
466
  youtube: ContentInterface[];
454
467
  linkedin: ContentInterface[];
455
468
  pinterest: ContentInterface[];
469
+ twitter: ContentInterface[];
456
470
  scope: ContractedScopeInterface;
457
471
  }
458
472
 
@@ -182,6 +182,7 @@ export declare interface DeliveryScope {
182
182
  dayAllocation?: number | null;
183
183
  pinterest?: number | null;
184
184
  linkedin?: number | null;
185
+ twitter?: number | null;
185
186
  }
186
187
 
187
188
  export declare interface Exchange {
@@ -250,6 +251,11 @@ export declare interface InstallmentInfo {
250
251
 
251
252
  export declare type InstallmentInfoArray = Array<InstallmentInfo>;
252
253
 
254
+ declare interface Installments {
255
+ installmentNumber: number;
256
+ value: number;
257
+ }
258
+
253
259
  declare interface Invoiced {
254
260
  code: string;
255
261
  issueDate: string;
@@ -357,6 +363,7 @@ export declare interface Payment {
357
363
  declare interface PaymentInterface {
358
364
  _id: string;
359
365
  title: string;
366
+ totalInstallments: number;
360
367
  attachments: Attachments[];
361
368
  pending?: Pending;
362
369
  review?: Review_2;
@@ -368,6 +375,7 @@ declare interface PaymentInterface {
368
375
  notes?: Note_3[];
369
376
  tags?: string[];
370
377
  phase: PaymentPhase;
378
+ installments: Installments[];
371
379
  }
372
380
 
373
381
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
@@ -415,6 +423,7 @@ declare interface ProposalInterface {
415
423
  contact: string;
416
424
  initialScope: string;
417
425
  profile: ProfileInterface;
426
+ influencer: InfluencerInterface;
418
427
  responsable: {
419
428
  team: string;
420
429
  name: string;
@@ -444,6 +453,10 @@ export declare interface RecruitmentInterface {
444
453
  status: string;
445
454
  actionId: string;
446
455
  profileId: string;
456
+ impressions: number;
457
+ reach: number;
458
+ engagementRate: number;
459
+ totalContents: number;
447
460
  profile: ProfileInterface;
448
461
  reel: ContentInterface[];
449
462
  story: ContentInterface[];
@@ -453,6 +466,7 @@ export declare interface RecruitmentInterface {
453
466
  youtube: ContentInterface[];
454
467
  linkedin: ContentInterface[];
455
468
  pinterest: ContentInterface[];
469
+ twitter: ContentInterface[];
456
470
  scope: ContractedScopeInterface;
457
471
  }
458
472
 
package/dist/sale.d.ts CHANGED
@@ -182,6 +182,7 @@ declare interface DeliveryScope {
182
182
  dayAllocation?: number | null;
183
183
  pinterest?: number | null;
184
184
  linkedin?: number | null;
185
+ twitter?: number | null;
185
186
  }
186
187
 
187
188
  declare interface Exchange {
@@ -250,6 +251,11 @@ declare interface InstallmentInfo {
250
251
 
251
252
  declare type InstallmentInfoArray = Array<InstallmentInfo>;
252
253
 
254
+ declare interface Installments {
255
+ installmentNumber: number;
256
+ value: number;
257
+ }
258
+
253
259
  declare interface Invoiced {
254
260
  code: string;
255
261
  issueDate: string;
@@ -357,6 +363,7 @@ declare interface Payment {
357
363
  declare interface PaymentInterface {
358
364
  _id: string;
359
365
  title: string;
366
+ totalInstallments: number;
360
367
  attachments: Attachments[];
361
368
  pending?: Pending;
362
369
  review?: Review_2;
@@ -368,6 +375,7 @@ declare interface PaymentInterface {
368
375
  notes?: Note_3[];
369
376
  tags?: string[];
370
377
  phase: PaymentPhase;
378
+ installments: Installments[];
371
379
  }
372
380
 
373
381
  declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
@@ -415,6 +423,7 @@ export declare interface ProposalInterface {
415
423
  contact: string;
416
424
  initialScope: string;
417
425
  profile: ProfileInterface;
426
+ influencer: InfluencerInterface;
418
427
  responsable: {
419
428
  team: string;
420
429
  name: string;
@@ -444,6 +453,10 @@ declare interface RecruitmentInterface {
444
453
  status: string;
445
454
  actionId: string;
446
455
  profileId: string;
456
+ impressions: number;
457
+ reach: number;
458
+ engagementRate: number;
459
+ totalContents: number;
447
460
  profile: ProfileInterface;
448
461
  reel: ContentInterface[];
449
462
  story: ContentInterface[];
@@ -453,6 +466,7 @@ declare interface RecruitmentInterface {
453
466
  youtube: ContentInterface[];
454
467
  linkedin: ContentInterface[];
455
468
  pinterest: ContentInterface[];
469
+ twitter: ContentInterface[];
456
470
  scope: ContractedScopeInterface;
457
471
  }
458
472
 
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Transforma todas as propriedades de um objeto em tipos que aceitam `null`.
3
+ * Útil para representar estados parciais ou dados vindos de formulários/APIs.
4
+ *
5
+ * @template T - O tipo do objeto original.
6
+ *
7
+ * @example
8
+ * interface User { id: number; name: string; }
9
+ * type NullableUser = Nullable<User>;
10
+ * // Resultado: { id: number | null; name: string | null; }
11
+ */
12
+ export declare type Nullable<T> = {
13
+ [K in keyof T]: T[K] | null;
14
+ };
15
+
16
+ /**
17
+ * Torna um subconjunto específico de propriedades de um tipo opcional,
18
+ * mantendo o restante das propriedades obrigatórias.
19
+ *
20
+ * Útil quando apenas alguns campos de um objeto podem ser omitidos,
21
+ * como em atualizações parciais controladas.
22
+ *
23
+ * @template T - O tipo do objeto original.
24
+ * @template K - As chaves de T que devem se tornar opcionais.
25
+ *
26
+ * @example
27
+ * interface User { id: number; name: string; email: string; }
28
+ * type UserUpdate = PartialBy<User, 'name' | 'email'>;
29
+ * // Resultado: { id: number; name?: string; email?: string; }
30
+ */
31
+ export declare type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
32
+
33
+ export { }
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+