@grapadigital/shared-app-modules 0.0.43

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.
Files changed (51) hide show
  1. package/README.md +29 -0
  2. package/dist/action.d.ts +516 -0
  3. package/dist/action.js +1 -0
  4. package/dist/assets/accordion.css +1 -0
  5. package/dist/chuncks/accordion.C3syX7hT.js +10898 -0
  6. package/dist/chuncks/card.BZIarLnp.js +90 -0
  7. package/dist/client.d.ts +66 -0
  8. package/dist/client.js +1 -0
  9. package/dist/components.d.ts +83 -0
  10. package/dist/components.js +700 -0
  11. package/dist/constants.d.ts +5 -0
  12. package/dist/constants.js +5 -0
  13. package/dist/content.d.ts +516 -0
  14. package/dist/content.js +1 -0
  15. package/dist/contract.d.ts +19 -0
  16. package/dist/contract.js +1 -0
  17. package/dist/curation.d.ts +110 -0
  18. package/dist/curation.js +1 -0
  19. package/dist/dataservices.d.ts +5 -0
  20. package/dist/dataservices.js +1 -0
  21. package/dist/hooks.d.ts +3 -0
  22. package/dist/hooks.js +15 -0
  23. package/dist/influencer.d.ts +69 -0
  24. package/dist/influencer.js +1 -0
  25. package/dist/invoice.d.ts +516 -0
  26. package/dist/invoice.js +1 -0
  27. package/dist/libs.d.ts +1 -0
  28. package/dist/libs.js +1 -0
  29. package/dist/log.d.ts +20 -0
  30. package/dist/log.js +1 -0
  31. package/dist/pages.d.ts +14 -0
  32. package/dist/pages.js +52 -0
  33. package/dist/payment.d.ts +516 -0
  34. package/dist/payment.js +1 -0
  35. package/dist/profile.d.ts +69 -0
  36. package/dist/profile.js +1 -0
  37. package/dist/project.d.ts +42 -0
  38. package/dist/project.js +1 -0
  39. package/dist/recruitment.d.ts +516 -0
  40. package/dist/recruitment.js +1 -0
  41. package/dist/sale.d.ts +516 -0
  42. package/dist/sale.js +1 -0
  43. package/dist/shadcn.d.ts +370 -0
  44. package/dist/shadcn.js +3447 -0
  45. package/dist/supplier.d.ts +38 -0
  46. package/dist/supplier.js +1 -0
  47. package/dist/user.d.ts +35 -0
  48. package/dist/user.js +1 -0
  49. package/dist/utils.d.ts +76 -0
  50. package/dist/utils.js +41 -0
  51. package/package.json +156 -0
@@ -0,0 +1,516 @@
1
+ declare interface ActionInterface {
2
+ _id?: string;
3
+ title?: string;
4
+ clientId?: string;
5
+ cluster?: string;
6
+ status?: string;
7
+ startDate?: string;
8
+ endDate?: string;
9
+ recruitments?: RecruitmentInterface[];
10
+ sale?: SaleInterface;
11
+ responsibles?: {
12
+ comercial: {
13
+ name: string;
14
+ email: string;
15
+ team: string;
16
+ };
17
+ service: {
18
+ name: string;
19
+ email: string;
20
+ team: string;
21
+ };
22
+ };
23
+ contents?: ContentInterface[];
24
+ hiredInfluencers?: number;
25
+ hiredContent?: number;
26
+ thumbnail?: string;
27
+ socialnetworks?: string[];
28
+ BILink?: string;
29
+ BISheets?: string;
30
+ brandUsername?: string;
31
+ hashtag?: string;
32
+ client?: ClientInterface;
33
+ shopping?: string;
34
+ project?: string;
35
+ type?: "partner" | "exclusive";
36
+ }
37
+
38
+ declare interface AgencyCommission {
39
+ ranges: Range_2[];
40
+ startDate: string;
41
+ endDate: string;
42
+ }
43
+
44
+ declare interface Approval {
45
+ name: string;
46
+ approvedAt: string;
47
+ }
48
+
49
+ declare interface Attachments {
50
+ url: string;
51
+ name: string;
52
+ }
53
+
54
+ declare interface Canceled {
55
+ reason: string;
56
+ notes: string;
57
+ }
58
+
59
+ declare interface Canceled_2 {
60
+ reason: string;
61
+ notes: string;
62
+ }
63
+
64
+ declare interface ClientInterface extends UserInterface {
65
+ clusters?: ClusterInterface[];
66
+ companies?: CompanyInterface[];
67
+ agencyCommission?: AgencyCommission[];
68
+ hasAgencyCommission?: boolean;
69
+ type?: "agency" | "brand";
70
+ }
71
+
72
+ declare interface ClusterInterface {
73
+ key: string;
74
+ label: string;
75
+ }
76
+
77
+ export declare interface Collab {
78
+ hasCollab: boolean;
79
+ description?: string;
80
+ }
81
+
82
+ declare interface CommissionInterface {
83
+ marginPercentage: number;
84
+ commissionPercentage: number;
85
+ totalCommissionValue: number;
86
+ participants: Participant[];
87
+ }
88
+
89
+ declare interface CompanyInterface {
90
+ legalName: string;
91
+ document: string;
92
+ }
93
+
94
+ declare interface ContentInterface {
95
+ _id?: string;
96
+ caption?: string;
97
+ profileId?: string;
98
+ profile: ProfileInterface;
99
+ actionId?: string;
100
+ action: string | ActionInterface;
101
+ metrics?: ContentMetric;
102
+ estimates?: ContentMetric;
103
+ thumbnailUrl?: string | null;
104
+ mediaUrl?: string | null;
105
+ type?: "reel" | "carousel" | "image" | "story" | "video";
106
+ tagType?: "withTag" | "withoutTag" | "brandExposure";
107
+ socialnetwork?: "instagram" | "tiktok" | "youtube";
108
+ postedAt?: string;
109
+ link?: string;
110
+ }
111
+
112
+ declare interface ContentMetric {
113
+ likeCount?: number;
114
+ commentCount?: number;
115
+ impressionCount?: number;
116
+ replayCount?: number;
117
+ playCount?: number;
118
+ reachCount?: number;
119
+ savedCount?: number;
120
+ sharesCount?: number;
121
+ engagementCount?: number;
122
+ engagementRate?: number;
123
+ tapBackCount?: number;
124
+ tapExit?: number;
125
+ tapForward?: number;
126
+ replyCount?: number;
127
+ clickCount?: number;
128
+ storyCount?: number;
129
+ emv?: number;
130
+ }
131
+
132
+ export declare interface ContractedScopeInterface {
133
+ email?: string;
134
+ delivery: DeliveryScope;
135
+ sendAcceptanceTerm: boolean;
136
+ totalAcceptanceTermSent: number;
137
+ exclusivity: boolean;
138
+ childPermit: boolean;
139
+ rights?: Rights;
140
+ payment?: Payment;
141
+ passThrough: boolean;
142
+ advisorPayment?: Payment;
143
+ exchange?: Exchange;
144
+ collab?: Collab;
145
+ }
146
+
147
+ export declare interface DeliveryScope {
148
+ reels?: number | null;
149
+ images?: number | null;
150
+ carousels?: number | null;
151
+ stories?: number | null;
152
+ tiktok?: number | null;
153
+ youtube?: number | null;
154
+ dayAllocation?: number | null;
155
+ }
156
+
157
+ export declare interface Exchange {
158
+ hasExchange: boolean;
159
+ description?: string;
160
+ }
161
+
162
+ declare interface FormalizationInterface {
163
+ billingTriggerEvent: string;
164
+ estimatedIssueDate: string;
165
+ estimatedDueDate: string;
166
+ paymentTerms: string;
167
+ handlingInvoices: string;
168
+ finalScope: string;
169
+ agency: ClientInterface;
170
+ brand: ClientInterface;
171
+ totalInstallments: number;
172
+ }
173
+
174
+ declare interface Inbox {
175
+ document: string;
176
+ legalName: string;
177
+ acceptanceDocument: string;
178
+ invoiceDescription: string;
179
+ influencerInvoiceDescription: string;
180
+ approvalDocument: string;
181
+ invoiceEmail: string;
182
+ emissionNotes: string;
183
+ installmentRevenue: number;
184
+ installmentGrossIncomeValue: number;
185
+ installmentInfluencerBroadcastValue: number;
186
+ installmentProductionAndOthersValue: number;
187
+ estimatedIssueDate: string;
188
+ estimatedDueDate: string;
189
+ }
190
+
191
+ declare interface InfluencerInterface extends UserInterface {
192
+ financialManagementSheet?: string;
193
+ isExclusive?: boolean;
194
+ advisor?: {
195
+ firstName?: string;
196
+ lastName?: string;
197
+ email?: string;
198
+ legalName?: string;
199
+ document?: string;
200
+ phone?: string;
201
+ };
202
+ profiles?: ProfileInterface[];
203
+ }
204
+
205
+ export declare interface InstallmentInfo {
206
+ number: number;
207
+ value: number;
208
+ }
209
+
210
+ export declare type InstallmentInfoArray = Array<InstallmentInfo>;
211
+
212
+ declare interface Invoiced {
213
+ code: string;
214
+ issueDate: string;
215
+ dueDate: string;
216
+ }
217
+
218
+ declare interface InvoiceInterface {
219
+ _id: string;
220
+ title: string;
221
+ installmentNumber: number;
222
+ phase: InvoicePhase;
223
+ sale: SaleInterface;
224
+ inbox?: Inbox;
225
+ review?: Review;
226
+ invoiced?: Invoiced;
227
+ received?: Received;
228
+ canceled?: Canceled;
229
+ notes?: Note_2[];
230
+ tags?: string[];
231
+ createdAt?: Date;
232
+ updatedAt?: Date;
233
+ }
234
+
235
+ declare type InvoicePhase = "inbox" | "review" | "awaiting" | "invoiced" | "received" | "canceled";
236
+
237
+ declare interface LostInterface {
238
+ reason: "declined" | "other";
239
+ details?: string;
240
+ }
241
+
242
+ declare interface NegotiationInterface {
243
+ calculatorType: "withPreDefinedBudget" | "withoutPreDefinedBudget" | "bourbon";
244
+ childPermit?: boolean;
245
+ childPermitValue?: number;
246
+ childPermitMethod?: SalePaymentMethod;
247
+ influencerBroadcastValue: number;
248
+ influencerBroadcastMethod: SalePaymentMethod;
249
+ productionAndOthersValue: number;
250
+ productionAndOthersMethod: SalePaymentMethod;
251
+ influencerBroadcastCosts: number;
252
+ productionAndOthersCosts: number;
253
+ commissionRate: number;
254
+ broadcastBonusRate: number;
255
+ taxRate: number;
256
+ budget: number;
257
+ activationValue: number;
258
+ revenue: number;
259
+ transferValue: number;
260
+ taxValue: number;
261
+ ISSQNValue: number;
262
+ broadcastBonusValue: number;
263
+ debitNoteValue: number;
264
+ freeValue: number;
265
+ grossProfitRate: number;
266
+ takeRate: number;
267
+ grossIncomeValue: number;
268
+ isDollarNegotiation: boolean;
269
+ }
270
+
271
+ declare interface Note {
272
+ text: string;
273
+ owner: string;
274
+ createdAt: string;
275
+ }
276
+
277
+ declare interface Note_2 {
278
+ text: string;
279
+ owner: string;
280
+ createdAt: string;
281
+ }
282
+
283
+ declare interface Note_3 {
284
+ text: string;
285
+ owner: string;
286
+ createdAt: string;
287
+ }
288
+
289
+ declare interface Paid {
290
+ date: string;
291
+ }
292
+
293
+ declare interface Participant {
294
+ role: ParticipantRole;
295
+ email: string;
296
+ percentage: number;
297
+ value: number;
298
+ }
299
+
300
+ declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
301
+
302
+ export declare interface Payment {
303
+ hasPayment: boolean;
304
+ value?: number;
305
+ deadline?: number;
306
+ hasInstallment: boolean;
307
+ installmentInfo?: InstallmentInfoArray;
308
+ }
309
+
310
+ declare interface PaymentInterface {
311
+ _id: string;
312
+ title: string;
313
+ attachments: Attachments[];
314
+ pending?: Pending;
315
+ review?: Review_2;
316
+ approval?: Approval;
317
+ requested?: Requested;
318
+ queued?: Queued;
319
+ paid?: Paid;
320
+ canceled?: Canceled_2;
321
+ notes?: Note_3[];
322
+ tags?: string[];
323
+ phase: PaymentPhase;
324
+ }
325
+
326
+ declare type PaymentPhase = "pending" | "review" | "approval" | "awaiting" | "requested" | "received" | "queued" | "paid" | "client" | "canceled";
327
+
328
+ declare type PaymentType = "influencer" | "advisor" | "supplier" | "employee_refund" | "influencer_refund" | "influencer_extra" | "logistics_control" | "transfer_between_accounts";
329
+
330
+ declare interface Pending {
331
+ requester: Requester;
332
+ type: PaymentType;
333
+ influencer?: InfluencerInterface;
334
+ recruitment?: RecruitmentInterface;
335
+ supplier?: SupplierInterface;
336
+ action: ActionInterface;
337
+ invoice: InvoiceInterface;
338
+ sale: SaleInterface;
339
+ value: number;
340
+ description: string;
341
+ installmentNumber: number;
342
+ }
343
+
344
+ declare interface ProfileInterface {
345
+ _id: string;
346
+ username: string;
347
+ followers: number;
348
+ picture?: string;
349
+ socialnetwork?: string;
350
+ metrics?: ProfileMetric;
351
+ socialnetworkId?: string;
352
+ influencer?: InfluencerInterface | string;
353
+ }
354
+
355
+ declare interface ProfileMetric {
356
+ medianImpressionsFeed: number;
357
+ medianImpressionsStories: number;
358
+ medianReachFeed: number;
359
+ medianReachStories: number;
360
+ medianEngagementRateFeed: number;
361
+ medianEngagementRateStories: number;
362
+ }
363
+
364
+ declare interface ProposalInterface {
365
+ businessUnit: "enterprise" | "artistic";
366
+ type: "inbound" | "outbound";
367
+ contact: string;
368
+ initialScope: string;
369
+ profile: ProfileInterface;
370
+ responsable: {
371
+ team: string;
372
+ name: string;
373
+ email: string;
374
+ };
375
+ }
376
+
377
+ declare interface Queued {
378
+ issueDate: string;
379
+ dueDate: string;
380
+ code: string;
381
+ }
382
+
383
+ declare interface Range_2 {
384
+ startValue: number;
385
+ endValue: number;
386
+ percent: number;
387
+ }
388
+
389
+ declare interface Received {
390
+ date: string;
391
+ }
392
+
393
+ export declare interface RecruitmentInterface {
394
+ _id: string;
395
+ username: string;
396
+ status: string;
397
+ actionId: string;
398
+ profileId: string;
399
+ profile: ProfileInterface;
400
+ reel: ContentInterface[];
401
+ story: ContentInterface[];
402
+ carousel: ContentInterface[];
403
+ image: ContentInterface[];
404
+ tiktok: ContentInterface[];
405
+ youtube: ContentInterface[];
406
+ scope: ContractedScopeInterface;
407
+ }
408
+
409
+ declare interface Requested {
410
+ date: string;
411
+ }
412
+
413
+ declare interface Requester {
414
+ name: string;
415
+ email: string;
416
+ team: string;
417
+ }
418
+
419
+ declare interface Review {
420
+ revisedIssueDate: string;
421
+ revisedDueDate: string;
422
+ }
423
+
424
+ declare interface Review_2 {
425
+ emissionNotes: string;
426
+ revisedDueDate: string;
427
+ revisedIssueDate: string;
428
+ }
429
+
430
+ export declare interface Rights {
431
+ repost?: {
432
+ granted: boolean;
433
+ period?: string | null;
434
+ };
435
+ boost?: {
436
+ granted: boolean;
437
+ period?: string | null;
438
+ };
439
+ imageUsage?: {
440
+ granted: boolean;
441
+ period?: string | null;
442
+ };
443
+ }
444
+
445
+ declare interface SaleInterface {
446
+ phase: "screening" | "proposal" | "negotiation" | "commission" | "formalization" | "closed" | "lost";
447
+ _id: string;
448
+ title: string;
449
+ pipefyId: string;
450
+ screening?: ScreeningInterface;
451
+ proposal?: ProposalInterface;
452
+ negotiation?: NegotiationInterface;
453
+ formalization?: FormalizationInterface;
454
+ lost?: LostInterface;
455
+ notes?: Note[];
456
+ actions?: ActionInterface[];
457
+ invoices?: InvoiceInterface[];
458
+ payments?: PaymentInterface[];
459
+ commission?: CommissionInterface;
460
+ tags?: string[];
461
+ profile?: {
462
+ _id: string;
463
+ username: string;
464
+ };
465
+ closedAt?: string;
466
+ isDollarNegotiation: boolean;
467
+ }
468
+
469
+ declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
470
+
471
+ declare interface ScreeningInterface {
472
+ subject: string;
473
+ fromName: string;
474
+ fromAddress: string;
475
+ toAddress: string;
476
+ text: string;
477
+ }
478
+
479
+ declare interface SupplierInterface extends UserInterface {
480
+ }
481
+
482
+ declare interface UserInterface {
483
+ _id?: string;
484
+ name?: string;
485
+ document?: string;
486
+ email?: string;
487
+ phone?: string;
488
+ picture?: string;
489
+ address?: {
490
+ zipcode?: string;
491
+ city?: string;
492
+ state?: string;
493
+ street?: string;
494
+ number?: string;
495
+ complement?: string;
496
+ };
497
+ company?: {
498
+ legalName?: string;
499
+ document?: string;
500
+ bank?: string;
501
+ agency?: string;
502
+ account?: string;
503
+ digit?: string;
504
+ pix?: string;
505
+ };
506
+ individual?: {
507
+ rg?: string;
508
+ cpf?: string;
509
+ birthday?: string;
510
+ maritalStatus?: string;
511
+ nationality?: string;
512
+ profession?: string;
513
+ };
514
+ }
515
+
516
+ export { }
@@ -0,0 +1 @@
1
+