@grapadigital/shared-app-modules 0.0.79 → 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 -661
  14. package/dist/components.js +0 -1089
  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
@@ -1,24 +0,0 @@
1
- /**
2
- * Mensagem de erro genérico.
3
- * @returns {string} A mensagem.
4
- */
5
- export declare const ERROR_MESSAGE = "N\u00E3o foi poss\u00EDvel concluir a opera\u00E7\u00E3o. Tente novamente mais tarde ou entre em contato com o suporte.";
6
-
7
- /**
8
- * Mensagem para quando quando um filtro já está ativo.
9
- * @returns {string} A mensagem.
10
- */
11
- export declare const FILTER_ALREADY_APPLIED_MESSAGE = "O filtro selecionado j\u00E1 est\u00E1 ativo. Por favor, escolha outro filtro antes de tentar novamente.";
12
-
13
- /**
14
- * @deprecated Utilizar `NO_DATA_TO_UPDATE_MESSAGE` no lugar.
15
- */
16
- export declare const NO_DATA_TO_UPDATE = "N\u00E3o h\u00E1 dados para atualizar.";
17
-
18
- /**
19
- * Mensagem para quando quando não há dados novos para realizar uma operação.
20
- * @returns {string} A mensagem.
21
- */
22
- 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.";
23
-
24
- export { }
package/dist/constants.js DELETED
@@ -1,7 +0,0 @@
1
- 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.";
2
- export {
3
- t as ERROR_MESSAGE,
4
- a as FILTER_ALREADY_APPLIED_MESSAGE,
5
- o as NO_DATA_TO_UPDATE,
6
- e as NO_DATA_TO_UPDATE_MESSAGE
7
- };
package/dist/content.d.ts DELETED
@@ -1,526 +0,0 @@
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 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
- export 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
- export 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/content.js DELETED
@@ -1 +0,0 @@
1
-
@@ -1,19 +0,0 @@
1
- export declare interface ContractInterface {
2
- _id: string;
3
- contractHash: string;
4
- contractText: string;
5
- createdAt: string;
6
- updatedAt: string;
7
- signedAt?: string;
8
- ip: string;
9
- recruitment: string;
10
- status: "signed" | "pending" | "rejected" | string;
11
- userAgent: string;
12
- variables: {
13
- contractId: string;
14
- recruitmentId: string;
15
- };
16
- __v: number;
17
- }
18
-
19
- export { }
package/dist/contract.js DELETED
@@ -1 +0,0 @@
1
-
@@ -1,117 +0,0 @@
1
- declare interface AgencyCommission {
2
- ranges: Range_2[];
3
- startDate: string;
4
- endDate: string;
5
- }
6
-
7
- export declare interface CanceledInterface {
8
- reason: string;
9
- details: string;
10
- }
11
-
12
- declare interface ClientInterface extends UserInterface {
13
- clusters?: ClusterInterface[];
14
- companies?: CompanyInterface[];
15
- agencyCommission?: AgencyCommission[];
16
- hasAgencyCommission?: boolean;
17
- type?: "agency" | "brand";
18
- niches: Niche[];
19
- }
20
-
21
- declare interface ClusterInterface {
22
- key: string;
23
- label: string;
24
- }
25
-
26
- declare interface CompanyInterface {
27
- legalName: string;
28
- document: string;
29
- }
30
-
31
- export declare interface CurationInterface {
32
- _id?: string;
33
- title: string;
34
- phase: "inbox" | "inProgress" | "awaiting" | "inApproval" | "formalization" | "closed" | "cold" | "canceled";
35
- inbox?: InboxInterface;
36
- canceled?: CanceledInterface;
37
- notes?: NoteInterface[];
38
- tags?: string[];
39
- closedAt?: string;
40
- createdAt?: string;
41
- updatedAt?: string;
42
- }
43
-
44
- export declare interface InboxInterface {
45
- brand: ClientInterface;
46
- briefing: string;
47
- requester: RequesterInterface;
48
- responsable: ResponsableInterface;
49
- internalSheetLink?: string;
50
- clientSheetLink?: string;
51
- deliveryDate?: string;
52
- }
53
-
54
- declare interface Niche {
55
- id: string;
56
- name: string;
57
- parentId?: null | string;
58
- }
59
-
60
- export declare interface NoteInterface {
61
- text: string;
62
- owner: string;
63
- createdAt: string;
64
- }
65
-
66
- declare interface Range_2 {
67
- startValue: number;
68
- endValue: number;
69
- percent: number;
70
- }
71
-
72
- export declare interface RequesterInterface {
73
- name: string;
74
- contact: string;
75
- }
76
-
77
- export declare interface ResponsableInterface {
78
- name: string;
79
- email: string;
80
- team: string;
81
- }
82
-
83
- declare interface UserInterface {
84
- _id?: string;
85
- name?: string;
86
- document?: string;
87
- email?: string;
88
- phone?: string;
89
- picture?: string;
90
- address?: {
91
- zipcode?: string;
92
- city?: string;
93
- state?: string;
94
- street?: string;
95
- number?: string;
96
- complement?: string;
97
- };
98
- company?: {
99
- legalName?: string;
100
- document?: string;
101
- bank?: string;
102
- agency?: string;
103
- account?: string;
104
- digit?: string;
105
- pix?: string;
106
- };
107
- individual?: {
108
- rg?: string;
109
- cpf?: string;
110
- birthday?: string;
111
- maritalStatus?: string;
112
- nationality?: string;
113
- profession?: string;
114
- };
115
- }
116
-
117
- export { }
package/dist/curation.js DELETED
@@ -1 +0,0 @@
1
-
@@ -1,5 +0,0 @@
1
- export declare interface ExportSalesInterface {
2
- phase: "closed";
3
- }
4
-
5
- export { }
@@ -1 +0,0 @@
1
-