@grapadigital/shared-app-modules 0.0.153 → 0.0.154
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 +14 -0
- package/dist/chuncks/{format.util.C9TAg1A-.js → format.util.BcKRgBQI.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.DOppFAbR.js → youtube-icon.component.SEaPAD3Z.js} +3 -3
- package/dist/components.d.ts +14 -0
- package/dist/components.js +1 -1
- package/dist/constants.d.ts +14 -2
- package/dist/constants.js +10 -8
- package/dist/content.d.ts +14 -0
- package/dist/events.js +1 -1
- package/dist/invoice.d.ts +14 -0
- package/dist/log.d.ts +1 -1
- package/dist/pages.d.ts +3 -1
- package/dist/pages.js +18 -8
- package/dist/payment.d.ts +14 -0
- package/dist/recruitment.d.ts +14 -0
- package/dist/sale.d.ts +14 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.js +1 -0
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/action.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/chuncks/{youtube-icon.component.DOppFAbR.js → youtube-icon.component.SEaPAD3Z.js}
RENAMED
|
@@ -878,7 +878,7 @@ const lA = {
|
|
|
878
878
|
agency: "Agência",
|
|
879
879
|
brand: "Marca"
|
|
880
880
|
}, ra = {
|
|
881
|
-
partner: "
|
|
881
|
+
partner: "Parceiros",
|
|
882
882
|
exclusive: "Exclusivos"
|
|
883
883
|
}, _A = {
|
|
884
884
|
enterprise: "Empresa",
|
|
@@ -1913,14 +1913,14 @@ export {
|
|
|
1913
1913
|
GA as I,
|
|
1914
1914
|
Ue as L,
|
|
1915
1915
|
MA as P,
|
|
1916
|
-
|
|
1916
|
+
lA as S,
|
|
1917
1917
|
Je as T,
|
|
1918
1918
|
We as X,
|
|
1919
1919
|
Ze as Y,
|
|
1920
1920
|
sa as a,
|
|
1921
1921
|
ia as b,
|
|
1922
1922
|
iA as c,
|
|
1923
|
-
|
|
1923
|
+
oa as d,
|
|
1924
1924
|
$A as e,
|
|
1925
1925
|
qA as f,
|
|
1926
1926
|
kA as g,
|
package/dist/components.d.ts
CHANGED
|
@@ -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
|
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
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.SEaPAD3Z.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";
|
package/dist/constants.d.ts
CHANGED
|
@@ -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: "
|
|
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
|
|
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, d as O, e as T, S as c } from "./chuncks/youtube-icon.component.SEaPAD3Z.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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
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
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
|
|
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(
|
|
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:
|
|
19
|
-
btnLabel:
|
|
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:
|
|
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(
|
|
43
|
-
children:
|
|
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
|
|
package/dist/recruitment.d.ts
CHANGED
|
@@ -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
|
|
package/dist/types.d.ts
ADDED
|
@@ -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
|
+
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.
|
|
2
|
-
import { i as k, a as P, b, c as N } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.BcKRgBQI.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/youtube-icon.component.SEaPAD3Z.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|