@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,69 @@
|
|
|
1
|
+
export declare interface InfluencerInterface extends UserInterface {
|
|
2
|
+
financialManagementSheet?: string;
|
|
3
|
+
isExclusive?: boolean;
|
|
4
|
+
advisor?: {
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
legalName?: string;
|
|
9
|
+
document?: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
};
|
|
12
|
+
profiles?: ProfileInterface[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare interface ProfileInterface {
|
|
16
|
+
_id: string;
|
|
17
|
+
username: string;
|
|
18
|
+
followers: number;
|
|
19
|
+
picture?: string;
|
|
20
|
+
socialnetwork?: string;
|
|
21
|
+
metrics?: ProfileMetric;
|
|
22
|
+
socialnetworkId?: string;
|
|
23
|
+
influencer?: InfluencerInterface | string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare interface ProfileMetric {
|
|
27
|
+
medianImpressionsFeed: number;
|
|
28
|
+
medianImpressionsStories: number;
|
|
29
|
+
medianReachFeed: number;
|
|
30
|
+
medianReachStories: number;
|
|
31
|
+
medianEngagementRateFeed: number;
|
|
32
|
+
medianEngagementRateStories: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare interface UserInterface {
|
|
36
|
+
_id?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
document?: string;
|
|
39
|
+
email?: string;
|
|
40
|
+
phone?: string;
|
|
41
|
+
picture?: string;
|
|
42
|
+
address?: {
|
|
43
|
+
zipcode?: string;
|
|
44
|
+
city?: string;
|
|
45
|
+
state?: string;
|
|
46
|
+
street?: string;
|
|
47
|
+
number?: string;
|
|
48
|
+
complement?: string;
|
|
49
|
+
};
|
|
50
|
+
company?: {
|
|
51
|
+
legalName?: string;
|
|
52
|
+
document?: string;
|
|
53
|
+
bank?: string;
|
|
54
|
+
agency?: string;
|
|
55
|
+
account?: string;
|
|
56
|
+
digit?: string;
|
|
57
|
+
pix?: string;
|
|
58
|
+
};
|
|
59
|
+
individual?: {
|
|
60
|
+
rg?: string;
|
|
61
|
+
cpf?: string;
|
|
62
|
+
birthday?: string;
|
|
63
|
+
maritalStatus?: string;
|
|
64
|
+
nationality?: string;
|
|
65
|
+
profession?: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -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
|
+
export 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
|
+
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
|
+
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
|
+
export 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
|
+
export declare interface Invoiced {
|
|
213
|
+
code: string;
|
|
214
|
+
issueDate: string;
|
|
215
|
+
dueDate: string;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export 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[];
|
|
230
|
+
tags?: string[];
|
|
231
|
+
createdAt?: Date;
|
|
232
|
+
updatedAt?: Date;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export 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
|
+
export 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
|
+
export 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
|
+
export 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_2[];
|
|
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/invoice.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/libs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { }
|
package/dist/libs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/log.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare interface LogInterface {
|
|
2
|
+
_id: string;
|
|
3
|
+
referenceId: string;
|
|
4
|
+
phase: string;
|
|
5
|
+
type: "create" | "updated" | "change-phase";
|
|
6
|
+
changes: {
|
|
7
|
+
[field: string]: {
|
|
8
|
+
before: string;
|
|
9
|
+
after: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
updatedBy: {
|
|
14
|
+
team: string;
|
|
15
|
+
name: string;
|
|
16
|
+
email: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { }
|
package/dist/log.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/pages.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
export declare function LoaderPage(): JSX.Element;
|
|
5
|
+
|
|
6
|
+
export declare function NotFoundPage({ btnRedirect, btnLabel, hideBtn, className, ...props }: NotFoundPageProps): JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare interface NotFoundPageProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
btnRedirect?: string;
|
|
10
|
+
btnLabel?: string;
|
|
11
|
+
hideBtn?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { }
|
package/dist/pages.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { a as i, j as e, c as a, B as m } from "./chuncks/accordion.C3syX7hT.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { useNavigate as l } from "react-router-dom";
|
|
4
|
+
const x = [
|
|
5
|
+
[
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
d: "M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",
|
|
9
|
+
key: "1jaruq"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
], d = i("flag", x);
|
|
13
|
+
function j() {
|
|
14
|
+
return /* @__PURE__ */ e.jsx("div", { className: a("flex items-center justify-center h-screen w-screen"), children: /* @__PURE__ */ e.jsx("div", { className: "size-16 border-gray-500 border-t-gray-700 rounded-full animate-spin border-[0.375rem]" }) });
|
|
15
|
+
}
|
|
16
|
+
function f({
|
|
17
|
+
btnRedirect: s = "/",
|
|
18
|
+
btnLabel: t = "Home",
|
|
19
|
+
hideBtn: r = !1,
|
|
20
|
+
className: n,
|
|
21
|
+
...c
|
|
22
|
+
}) {
|
|
23
|
+
const o = l();
|
|
24
|
+
return /* @__PURE__ */ e.jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: a(
|
|
28
|
+
"h-screen mx-auto grid place-items-center text-center px-8",
|
|
29
|
+
n
|
|
30
|
+
),
|
|
31
|
+
...c,
|
|
32
|
+
children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
33
|
+
/* @__PURE__ */ e.jsx(d, { className: "size-20 mb-3 mx-auto" }),
|
|
34
|
+
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl mb-6 leading-snug md:text-4xl font-bold", children: "Error 404" }),
|
|
35
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-[18px] mb-6 font-normal text-gray-500 mx-auto md:max-w-sm", children: "Woops. Parece que esta página não existe" }),
|
|
36
|
+
!r && /* @__PURE__ */ e.jsx(
|
|
37
|
+
m,
|
|
38
|
+
{
|
|
39
|
+
size: "lg",
|
|
40
|
+
className: "px-4 md:w-[8rem]",
|
|
41
|
+
onClick: () => o(s),
|
|
42
|
+
children: t
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
j as LoaderPage,
|
|
51
|
+
f as NotFoundPage
|
|
52
|
+
};
|