@grapadigital/shared-app-modules 0.0.78 → 0.0.80

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