@grapadigital/shared-app-modules 0.0.68 → 0.0.70

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.
@@ -1,3 +1,4 @@
1
+ import { CommandInput as CommandInput_2 } from 'cmdk';
1
2
  import { default as default_2 } from 'react';
2
3
  import { default as default_3 } from 'tailwindcss/colors';
3
4
  import { ForwardRefExoticComponent } from 'react';
@@ -7,12 +8,78 @@ import { LucideIcon } from 'lucide-react';
7
8
  import * as React_2 from 'react';
8
9
  import { RefAttributes } from 'react';
9
10
 
11
+ declare interface ActionInterface {
12
+ _id?: string;
13
+ title?: string;
14
+ clientId?: string;
15
+ cluster?: string;
16
+ status?: string;
17
+ startDate?: string;
18
+ endDate?: string;
19
+ recruitments?: RecruitmentInterface[];
20
+ sale?: SaleInterface;
21
+ responsibles?: {
22
+ comercial: {
23
+ name: string;
24
+ email: string;
25
+ team: string;
26
+ };
27
+ service: {
28
+ name: string;
29
+ email: string;
30
+ team: string;
31
+ };
32
+ };
33
+ contents?: ContentInterface[];
34
+ hiredInfluencers?: number;
35
+ hiredContent?: number;
36
+ thumbnail?: string;
37
+ socialnetworks?: string[];
38
+ BILink?: string;
39
+ BISheets?: string;
40
+ brandUsername?: string;
41
+ hashtag?: string;
42
+ client?: ClientInterface;
43
+ shopping?: string;
44
+ project?: string;
45
+ type?: "partner" | "exclusive";
46
+ }
47
+
10
48
  declare interface AgencyCommission {
11
49
  ranges: Range_2[];
12
50
  startDate: string;
13
51
  endDate: string;
14
52
  }
15
53
 
54
+ declare interface Approval {
55
+ name: string;
56
+ approvedAt: string;
57
+ }
58
+
59
+ declare interface Attachments {
60
+ url: string;
61
+ name: string;
62
+ }
63
+
64
+ declare type CalculatorType = "withPreDefinedBudget" | "withoutPreDefinedBudget" | "bourbon";
65
+
66
+ export declare const CampaignsSelectInput: default_2.ForwardRefExoticComponent<Omit<CampaignsSelectInputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
67
+
68
+ declare interface CampaignsSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput>, "onValueChange"> {
69
+ queryKey?: string[];
70
+ onValueChange: (sale: ActionInterface) => void;
71
+ }
72
+
73
+ declare interface Canceled {
74
+ reason: string;
75
+ notes: string;
76
+ }
77
+
78
+ declare interface Canceled_2 {
79
+ reason: string;
80
+ notes: string;
81
+ }
82
+
16
83
  declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
17
84
 
18
85
  declare interface CardIconProps extends default_2.HTMLAttributes<HTMLDivElement> {
@@ -43,6 +110,11 @@ declare interface ClusterInterface {
43
110
  label: string;
44
111
  }
45
112
 
113
+ declare interface Collab {
114
+ hasCollab: boolean;
115
+ description?: string;
116
+ }
117
+
46
118
  declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>> & {
47
119
  ref?: React_2.Ref<HTMLInputElement>;
48
120
  } & {
@@ -52,11 +124,81 @@ declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
52
124
  onValueChange?: (search: string) => void;
53
125
  } & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
54
126
 
127
+ declare interface CommissionInterface {
128
+ marginPercentage: number;
129
+ commissionPercentage: number;
130
+ totalCommissionValue: number;
131
+ participants: Participant[];
132
+ }
133
+
55
134
  declare interface CompanyInterface {
56
135
  legalName: string;
57
136
  document: string;
58
137
  }
59
138
 
139
+ declare interface ContentInterface {
140
+ _id?: string;
141
+ caption?: string;
142
+ profileId?: string;
143
+ profile: ProfileInterface;
144
+ actionId?: string;
145
+ action: string | ActionInterface;
146
+ metrics?: ContentMetric;
147
+ estimates?: ContentMetric;
148
+ thumbnailUrl?: string | null;
149
+ mediaUrl?: string | null;
150
+ type?: "reel" | "carousel" | "image" | "story" | "video";
151
+ tagType?: "withTag" | "withoutTag" | "brandExposure";
152
+ socialnetwork?: "instagram" | "tiktok" | "youtube";
153
+ postedAt?: string;
154
+ link?: string;
155
+ }
156
+
157
+ declare interface ContentMetric {
158
+ likeCount?: number;
159
+ commentCount?: number;
160
+ impressionCount?: number;
161
+ replayCount?: number;
162
+ playCount?: number;
163
+ reachCount?: number;
164
+ savedCount?: number;
165
+ sharesCount?: number;
166
+ engagementCount?: number;
167
+ engagementRate?: number;
168
+ tapBackCount?: number;
169
+ tapExit?: number;
170
+ tapForward?: number;
171
+ replyCount?: number;
172
+ clickCount?: number;
173
+ storyCount?: number;
174
+ emv?: number;
175
+ }
176
+
177
+ declare interface ContractedScopeInterface {
178
+ email?: string;
179
+ delivery: DeliveryScope;
180
+ sendAcceptanceTerm: boolean;
181
+ totalAcceptanceTermSent: number;
182
+ exclusivity: boolean;
183
+ childPermit: boolean;
184
+ rights?: Rights;
185
+ payment?: Payment;
186
+ passThrough: boolean;
187
+ advisorPayment?: Payment;
188
+ exchange?: Exchange;
189
+ collab?: Collab;
190
+ }
191
+
192
+ declare interface DeliveryScope {
193
+ reels?: number | null;
194
+ images?: number | null;
195
+ carousels?: number | null;
196
+ stories?: number | null;
197
+ tiktok?: number | null;
198
+ youtube?: number | null;
199
+ dayAllocation?: number | null;
200
+ }
201
+
60
202
  export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
61
203
 
62
204
  declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
@@ -67,8 +209,25 @@ declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
67
209
  tip?: string;
68
210
  }
69
211
 
212
+ declare interface Exchange {
213
+ hasExchange: boolean;
214
+ description?: string;
215
+ }
216
+
70
217
  export declare function FieldLabelWithAsterisk({ className, ...props }: React.ComponentProps<typeof LabelWithAsterisk>): JSX.Element;
71
218
 
219
+ declare interface FormalizationInterface {
220
+ billingTriggerEvent: string;
221
+ estimatedIssueDate: string;
222
+ estimatedDueDate: string;
223
+ paymentTerms: string;
224
+ handlingInvoices: string;
225
+ finalScope: string;
226
+ agency: ClientInterface;
227
+ brand: ClientInterface;
228
+ totalInstallments: number;
229
+ }
230
+
72
231
  export declare function IconBadge({ size, color, className, icon: Icon, filled, }: CardIconProps): JSX.Element;
73
232
 
74
233
  declare const Image_2: ForwardRefExoticComponent<ImageProps & RefAttributes<HTMLImageElement>>;
@@ -78,6 +237,76 @@ declare interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
78
237
  alternativeSrc?: string;
79
238
  }
80
239
 
240
+ declare interface Inbox {
241
+ document: string;
242
+ legalName: string;
243
+ acceptanceDocument: string;
244
+ invoiceDescription: string;
245
+ influencerInvoiceDescription: string;
246
+ approvalDocument: string;
247
+ invoiceEmail: string;
248
+ emissionNotes: string;
249
+ installmentRevenue: number;
250
+ installmentGrossIncomeValue: number;
251
+ installmentInfluencerBroadcastValue: number;
252
+ installmentProductionAndOthersValue: number;
253
+ estimatedIssueDate: string;
254
+ estimatedDueDate: string;
255
+ }
256
+
257
+ declare interface InfluencerInterface extends UserInterface {
258
+ financialManagementSheet?: string;
259
+ isExclusive?: boolean;
260
+ advisor?: {
261
+ firstName?: string;
262
+ lastName?: string;
263
+ email?: string;
264
+ legalName?: string;
265
+ document?: string;
266
+ phone?: string;
267
+ };
268
+ profiles?: ProfileInterface[];
269
+ }
270
+
271
+ export declare const InfluencerSelectInput: default_2.ForwardRefExoticComponent<Omit<InfluencerSelectInputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
272
+
273
+ declare interface InfluencerSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput_2>, "onValueChange"> {
274
+ queryKey?: string[];
275
+ onValueChange: (sale: InfluencerInterface) => void;
276
+ }
277
+
278
+ declare interface InstallmentInfo {
279
+ number: number;
280
+ value: number;
281
+ }
282
+
283
+ declare type InstallmentInfoArray = Array<InstallmentInfo>;
284
+
285
+ declare interface Invoiced {
286
+ code: string;
287
+ issueDate: string;
288
+ dueDate: string;
289
+ }
290
+
291
+ declare interface InvoiceInterface {
292
+ _id: string;
293
+ title: string;
294
+ installmentNumber: number;
295
+ phase: InvoicePhase;
296
+ sale: SaleInterface;
297
+ inbox?: Inbox;
298
+ review?: Review;
299
+ invoiced?: Invoiced;
300
+ received?: Received;
301
+ canceled?: Canceled;
302
+ notes?: Note_2[];
303
+ tags?: string[];
304
+ createdAt?: Date;
305
+ updatedAt?: Date;
306
+ }
307
+
308
+ declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
309
+
81
310
  declare const LabelWithAsterisk: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & LabelWithAsteriskProps & React_2.RefAttributes<HTMLLabelElement>>;
82
311
 
83
312
  declare interface LabelWithAsteriskProps {
@@ -104,12 +333,64 @@ declare interface ListRowProps {
104
333
  enableHoverableContent?: boolean;
105
334
  }
106
335
 
336
+ declare interface LostInterface {
337
+ reason: "declined" | "other";
338
+ details?: string;
339
+ }
340
+
341
+ declare interface NegotiationInterface {
342
+ calculatorType: CalculatorType;
343
+ childPermit?: boolean;
344
+ childPermitValue?: number;
345
+ childPermitMethod?: SalePaymentMethod;
346
+ influencerBroadcastValue: number;
347
+ influencerBroadcastMethod: SalePaymentMethod;
348
+ productionAndOthersValue: number;
349
+ productionAndOthersMethod: SalePaymentMethod;
350
+ influencerBroadcastCosts: number;
351
+ productionAndOthersCosts: number;
352
+ commissionRate: number;
353
+ broadcastBonusRate: number;
354
+ taxRate: number;
355
+ budget: number;
356
+ activationValue: number;
357
+ revenue: number;
358
+ transferValue: number;
359
+ taxValue: number;
360
+ ISSQNValue: number;
361
+ broadcastBonusValue: number;
362
+ debitNoteValue: number;
363
+ freeValue: number;
364
+ grossProfitRate: number;
365
+ takeRate: number;
366
+ grossIncomeValue: number;
367
+ isDollarNegotiation: boolean;
368
+ }
369
+
107
370
  declare interface Niche {
108
371
  id: string;
109
372
  name: string;
110
373
  parentId?: null | string;
111
374
  }
112
375
 
376
+ declare interface Note {
377
+ text: string;
378
+ owner: string;
379
+ createdAt: string;
380
+ }
381
+
382
+ declare interface Note_2 {
383
+ text: string;
384
+ owner: string;
385
+ createdAt: string;
386
+ }
387
+
388
+ declare interface Note_3 {
389
+ text: string;
390
+ owner: string;
391
+ createdAt: string;
392
+ }
393
+
113
394
  export declare function NotFoundCard({ icon: Icon, title, description, tip, className, ...props }: NotFoundCardProps): JSX.Element;
114
395
 
115
396
  declare interface NotFoundCardProps extends React.ComponentProps<typeof Card> {
@@ -129,12 +410,196 @@ export declare const PageHeaderDescription: default_2.ForwardRefExoticComponent<
129
410
 
130
411
  export declare const PageHeaderTitle: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLHeadingElement> & default_2.RefAttributes<HTMLHeadingElement>>;
131
412
 
413
+ declare interface Paid {
414
+ date: string;
415
+ }
416
+
417
+ declare interface Participant {
418
+ role: ParticipantRole;
419
+ email: string;
420
+ percentage: number;
421
+ value: number;
422
+ }
423
+
424
+ declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
425
+
426
+ declare interface Payment {
427
+ hasPayment: boolean;
428
+ value?: number;
429
+ deadline?: number;
430
+ hasInstallment: boolean;
431
+ installmentInfo?: InstallmentInfoArray;
432
+ }
433
+
434
+ declare interface PaymentInterface {
435
+ _id: string;
436
+ title: string;
437
+ attachments: Attachments[];
438
+ pending?: Pending;
439
+ review?: Review_2;
440
+ approval?: Approval;
441
+ requested?: Requested;
442
+ queued?: Queued;
443
+ paid?: Paid;
444
+ canceled?: Canceled_2;
445
+ notes?: Note_3[];
446
+ tags?: string[];
447
+ phase: PaymentPhase;
448
+ }
449
+
450
+ declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
451
+
452
+ declare type PaymentType = "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "logistics_control" | "transfer_between_accounts";
453
+
454
+ declare interface Pending {
455
+ requester: Requester;
456
+ type: PaymentType;
457
+ influencer?: InfluencerInterface;
458
+ recruitment?: RecruitmentInterface;
459
+ supplier?: SupplierInterface;
460
+ action: ActionInterface;
461
+ invoice: InvoiceInterface;
462
+ sale: SaleInterface;
463
+ value: number;
464
+ description: string;
465
+ installmentNumber: number;
466
+ }
467
+
468
+ declare interface ProfileInterface {
469
+ _id: string;
470
+ username: string;
471
+ followers: number;
472
+ picture?: string;
473
+ socialnetwork?: string;
474
+ metrics?: ProfileMetric;
475
+ socialnetworkId?: string;
476
+ influencer?: InfluencerInterface | string;
477
+ }
478
+
479
+ declare interface ProfileMetric {
480
+ medianImpressionsFeed: number;
481
+ medianImpressionsStories: number;
482
+ medianReachFeed: number;
483
+ medianReachStories: number;
484
+ medianEngagementRateFeed: number;
485
+ medianEngagementRateStories: number;
486
+ }
487
+
488
+ declare interface ProposalInterface {
489
+ businessUnit: "enterprise" | "artistic";
490
+ type: "inbound" | "outbound";
491
+ contact: string;
492
+ initialScope: string;
493
+ profile: ProfileInterface;
494
+ responsable: {
495
+ team: string;
496
+ name: string;
497
+ email: string;
498
+ };
499
+ }
500
+
501
+ declare interface Queued {
502
+ issueDate: string;
503
+ dueDate: string;
504
+ code: string;
505
+ }
506
+
132
507
  declare interface Range_2 {
133
508
  startValue: number;
134
509
  endValue: number;
135
510
  percent: number;
136
511
  }
137
512
 
513
+ declare interface Received {
514
+ date: string;
515
+ }
516
+
517
+ declare interface RecruitmentInterface {
518
+ _id: string;
519
+ username: string;
520
+ status: string;
521
+ actionId: string;
522
+ profileId: string;
523
+ profile: ProfileInterface;
524
+ reel: ContentInterface[];
525
+ story: ContentInterface[];
526
+ carousel: ContentInterface[];
527
+ image: ContentInterface[];
528
+ tiktok: ContentInterface[];
529
+ youtube: ContentInterface[];
530
+ scope: ContractedScopeInterface;
531
+ }
532
+
533
+ declare interface Requested {
534
+ date: string;
535
+ }
536
+
537
+ declare interface Requester {
538
+ name: string;
539
+ email: string;
540
+ team: string;
541
+ }
542
+
543
+ declare interface Review {
544
+ revisedIssueDate: string;
545
+ revisedDueDate: string;
546
+ }
547
+
548
+ declare interface Review_2 {
549
+ emissionNotes: string;
550
+ revisedDueDate: string;
551
+ revisedIssueDate: string;
552
+ }
553
+
554
+ declare interface Rights {
555
+ repost?: {
556
+ granted: boolean;
557
+ period?: string | null;
558
+ };
559
+ boost?: {
560
+ granted: boolean;
561
+ period?: string | null;
562
+ };
563
+ imageUsage?: {
564
+ granted: boolean;
565
+ period?: string | null;
566
+ };
567
+ }
568
+
569
+ declare interface SaleInterface {
570
+ phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
571
+ _id: string;
572
+ title: string;
573
+ pipefyId: string;
574
+ screening?: ScreeningInterface;
575
+ proposal?: ProposalInterface;
576
+ negotiation?: NegotiationInterface;
577
+ formalization?: FormalizationInterface;
578
+ lost?: LostInterface;
579
+ notes?: Note[];
580
+ actions?: ActionInterface[];
581
+ invoices?: InvoiceInterface[];
582
+ payments?: PaymentInterface[];
583
+ commission?: CommissionInterface;
584
+ tags?: string[];
585
+ profile?: {
586
+ _id: string;
587
+ username: string;
588
+ };
589
+ closedAt?: string;
590
+ isDollarNegotiation: boolean;
591
+ }
592
+
593
+ declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
594
+
595
+ declare interface ScreeningInterface {
596
+ subject: string;
597
+ fromName: string;
598
+ fromAddress: string;
599
+ toAddress: string;
600
+ text: string;
601
+ }
602
+
138
603
  declare const sizeMap: {
139
604
  xs: string;
140
605
  sm: string;
@@ -143,6 +608,9 @@ declare const sizeMap: {
143
608
  xl: string;
144
609
  };
145
610
 
611
+ declare interface SupplierInterface extends UserInterface {
612
+ }
613
+
146
614
  declare interface UserInterface {
147
615
  _id?: string;
148
616
  name?: string;