@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.
- package/README.md +29 -0
- package/dist/action.d.ts +516 -0
- package/dist/action.js +1 -0
- package/dist/assets/accordion.css +1 -0
- package/dist/chuncks/accordion.C3syX7hT.js +10898 -0
- package/dist/chuncks/card.BZIarLnp.js +90 -0
- package/dist/client.d.ts +66 -0
- package/dist/client.js +1 -0
- package/dist/components.d.ts +83 -0
- package/dist/components.js +700 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.js +5 -0
- package/dist/content.d.ts +516 -0
- package/dist/content.js +1 -0
- package/dist/contract.d.ts +19 -0
- package/dist/contract.js +1 -0
- package/dist/curation.d.ts +110 -0
- package/dist/curation.js +1 -0
- package/dist/dataservices.d.ts +5 -0
- package/dist/dataservices.js +1 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.js +15 -0
- package/dist/influencer.d.ts +69 -0
- package/dist/influencer.js +1 -0
- package/dist/invoice.d.ts +516 -0
- package/dist/invoice.js +1 -0
- package/dist/libs.d.ts +1 -0
- package/dist/libs.js +1 -0
- package/dist/log.d.ts +20 -0
- package/dist/log.js +1 -0
- package/dist/pages.d.ts +14 -0
- package/dist/pages.js +52 -0
- package/dist/payment.d.ts +516 -0
- package/dist/payment.js +1 -0
- package/dist/profile.d.ts +69 -0
- package/dist/profile.js +1 -0
- package/dist/project.d.ts +42 -0
- package/dist/project.js +1 -0
- package/dist/recruitment.d.ts +516 -0
- package/dist/recruitment.js +1 -0
- package/dist/sale.d.ts +516 -0
- package/dist/sale.js +1 -0
- package/dist/shadcn.d.ts +370 -0
- package/dist/shadcn.js +3447 -0
- package/dist/supplier.d.ts +38 -0
- package/dist/supplier.js +1 -0
- package/dist/user.d.ts +35 -0
- package/dist/user.js +1 -0
- package/dist/utils.d.ts +76 -0
- package/dist/utils.js +41 -0
- 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
|
+
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
|
+
export 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
|
+
export 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
|
+
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
|
+
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
|
+
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
|
+
declare interface InstallmentInfo {
|
|
206
|
+
number: number;
|
|
207
|
+
value: number;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
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
|
+
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
|
+
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
|
+
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 { }
|
package/dist/content.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
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
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
}
|
|
19
|
+
|
|
20
|
+
declare interface ClusterInterface {
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare interface CompanyInterface {
|
|
26
|
+
legalName: string;
|
|
27
|
+
document: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare interface CurationInterface {
|
|
31
|
+
_id?: string;
|
|
32
|
+
title: string;
|
|
33
|
+
phase: "inbox" | "inProgress" | "awaiting" | "inApproval" | "formalization" | "closed" | "cold" | "canceled";
|
|
34
|
+
inbox?: InboxInterface;
|
|
35
|
+
canceled?: CanceledInterface;
|
|
36
|
+
notes?: NoteInterface[];
|
|
37
|
+
tags?: string[];
|
|
38
|
+
closedAt?: string;
|
|
39
|
+
createdAt?: string;
|
|
40
|
+
updatedAt?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare interface InboxInterface {
|
|
44
|
+
brand: ClientInterface;
|
|
45
|
+
briefing: string;
|
|
46
|
+
requester: RequesterInterface;
|
|
47
|
+
responsable: ResponsableInterface;
|
|
48
|
+
internalSheetLink?: string;
|
|
49
|
+
clientSheetLink?: string;
|
|
50
|
+
deliveryDate?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare interface NoteInterface {
|
|
54
|
+
text: string;
|
|
55
|
+
owner: string;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare interface Range_2 {
|
|
60
|
+
startValue: number;
|
|
61
|
+
endValue: number;
|
|
62
|
+
percent: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare interface RequesterInterface {
|
|
66
|
+
name: string;
|
|
67
|
+
contact: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare interface ResponsableInterface {
|
|
71
|
+
name: string;
|
|
72
|
+
email: string;
|
|
73
|
+
team: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare interface UserInterface {
|
|
77
|
+
_id?: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
document?: string;
|
|
80
|
+
email?: string;
|
|
81
|
+
phone?: string;
|
|
82
|
+
picture?: string;
|
|
83
|
+
address?: {
|
|
84
|
+
zipcode?: string;
|
|
85
|
+
city?: string;
|
|
86
|
+
state?: string;
|
|
87
|
+
street?: string;
|
|
88
|
+
number?: string;
|
|
89
|
+
complement?: string;
|
|
90
|
+
};
|
|
91
|
+
company?: {
|
|
92
|
+
legalName?: string;
|
|
93
|
+
document?: string;
|
|
94
|
+
bank?: string;
|
|
95
|
+
agency?: string;
|
|
96
|
+
account?: string;
|
|
97
|
+
digit?: string;
|
|
98
|
+
pix?: string;
|
|
99
|
+
};
|
|
100
|
+
individual?: {
|
|
101
|
+
rg?: string;
|
|
102
|
+
cpf?: string;
|
|
103
|
+
birthday?: string;
|
|
104
|
+
maritalStatus?: string;
|
|
105
|
+
nationality?: string;
|
|
106
|
+
profession?: string;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { }
|
package/dist/curation.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/hooks.d.ts
ADDED
package/dist/hooks.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState as r, useEffect as c } from "react";
|
|
2
|
+
function f(e, t) {
|
|
3
|
+
const [o, u] = r(e);
|
|
4
|
+
return c(() => {
|
|
5
|
+
const n = setTimeout(() => {
|
|
6
|
+
u(e);
|
|
7
|
+
}, t);
|
|
8
|
+
return () => {
|
|
9
|
+
clearTimeout(n);
|
|
10
|
+
};
|
|
11
|
+
}, [e, t]), o;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
f as useDebounce
|
|
15
|
+
};
|