@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.
- package/package.json +9 -9
- package/dist/action.d.ts +0 -526
- package/dist/action.js +0 -1
- package/dist/assets/timeline.css +0 -1
- package/dist/chuncks/card.Bockr0Tv.js +0 -91
- package/dist/chuncks/shared-app-modules.provider.DRJ7n4Cj.js +0 -13
- package/dist/chuncks/timeline.DfIC0519.js +0 -10963
- package/dist/chuncks/use-shared-app-modules.hook.BneFRNyA.js +0 -25
- package/dist/client.d.ts +0 -73
- package/dist/client.js +0 -1
- package/dist/commission.d.ts +0 -18
- package/dist/commission.js +0 -1
- package/dist/components.d.ts +0 -661
- package/dist/components.js +0 -1089
- package/dist/constants.d.ts +0 -24
- package/dist/constants.js +0 -7
- package/dist/content.d.ts +0 -526
- package/dist/content.js +0 -1
- package/dist/contract.d.ts +0 -19
- package/dist/contract.js +0 -1
- package/dist/curation.d.ts +0 -117
- package/dist/curation.js +0 -1
- package/dist/dataservices.d.ts +0 -5
- package/dist/dataservices.js +0 -1
- package/dist/events.d.ts +0 -52
- package/dist/events.js +0 -16
- package/dist/hooks.d.ts +0 -15
- package/dist/hooks.js +0 -5
- package/dist/influencer.d.ts +0 -69
- package/dist/influencer.js +0 -1
- package/dist/invoice.d.ts +0 -526
- package/dist/invoice.js +0 -1
- package/dist/lib.d.ts +0 -1
- package/dist/lib.js +0 -1
- package/dist/log.d.ts +0 -20
- package/dist/log.js +0 -1
- package/dist/pages.d.ts +0 -14
- package/dist/pages.js +0 -53
- package/dist/payment.d.ts +0 -526
- package/dist/payment.js +0 -1
- package/dist/profile.d.ts +0 -69
- package/dist/profile.js +0 -1
- package/dist/project.d.ts +0 -42
- package/dist/project.js +0 -1
- package/dist/providers.d.ts +0 -16
- package/dist/providers.js +0 -4
- package/dist/recruitment.d.ts +0 -526
- package/dist/recruitment.js +0 -1
- package/dist/sale.d.ts +0 -526
- package/dist/sale.js +0 -1
- package/dist/shadcn.d.ts +0 -497
- package/dist/shadcn.js +0 -2489
- package/dist/supplier.d.ts +0 -38
- package/dist/supplier.js +0 -1
- package/dist/user.d.ts +0 -35
- package/dist/user.js +0 -1
- package/dist/utils.d.ts +0 -95
- package/dist/utils.js +0 -52
package/dist/events.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent } from 'react';
|
|
2
|
-
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Lida com a alteração de um input de porcentagem, convertendo o valor do input
|
|
6
|
-
* em um número decimal entre 0 e 1 e chamando o callback com esse valor.
|
|
7
|
-
*
|
|
8
|
-
* Esta função utiliza `preFormatPercentage` para:
|
|
9
|
-
* - Remover o símbolo de porcentagem ("%").
|
|
10
|
-
* - Converter o valor em decimal (ex: "50%" → 0.5).
|
|
11
|
-
* - Limitar valores acima de 100% a 1.
|
|
12
|
-
* - Retornar `false` (não chama o callback) se o valor não for numérico.
|
|
13
|
-
*
|
|
14
|
-
* @param {ChangeEvent<HTMLInputElement>} event - O evento de mudança do input.
|
|
15
|
-
* @param {(value: number) => void} callback - Função chamada com o valor decimal
|
|
16
|
-
* após a formatação.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* <nput
|
|
20
|
-
* type="text"
|
|
21
|
-
* value={`${percentage * 100}%`}
|
|
22
|
-
* onChange={(event) => onChangePercentage(event, setPercentage)}
|
|
23
|
-
* />
|
|
24
|
-
*
|
|
25
|
-
* // Se o usuário digitar "75%", o callback receberá 0.75
|
|
26
|
-
* // Se o usuário digitar "150%", o callback receberá 1
|
|
27
|
-
* // Se o usuário digitar "abc", o callback não será chamado
|
|
28
|
-
*/
|
|
29
|
-
export declare const onChangePercentage: (event: ChangeEvent<HTMLInputElement>, callback: (value: number) => void) => void;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Lida com o evento de teclado em um input de porcentagem, garantindo que
|
|
33
|
-
* ao pressionar "Backspace" o número seja removido corretamente, sem excluir
|
|
34
|
-
* o símbolo de porcentagem (%).
|
|
35
|
-
*
|
|
36
|
-
* Antes dessa função, ao pressionar "Backspace", a porcentagem era removida
|
|
37
|
-
* em vez do valor numérico.
|
|
38
|
-
*
|
|
39
|
-
* @param {KeyboardEvent<HTMLInputElement>} event - O evento de teclado do input.
|
|
40
|
-
* @param {(value: number) => void} callback - Função chamada com o novo valor numérico
|
|
41
|
-
* após a remoção do último dígito.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* <input
|
|
45
|
-
* type="text"
|
|
46
|
-
* value={`${percentage}%`}
|
|
47
|
-
* onKeyDown={(event) => onKeyDownPercentage(event, setPercentage)}
|
|
48
|
-
* />
|
|
49
|
-
*/
|
|
50
|
-
export declare const onKeyDownPercentage: (event: KeyboardEvent_2<HTMLInputElement>, callback: (value: number) => void) => void;
|
|
51
|
-
|
|
52
|
-
export { }
|
package/dist/events.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { preFormatPercentage as s } from "./utils.js";
|
|
2
|
-
const i = (t, a) => {
|
|
3
|
-
const e = t.target.value, n = s(e);
|
|
4
|
-
n !== !1 && a(n);
|
|
5
|
-
}, f = (t, a) => {
|
|
6
|
-
const e = t.target, n = e.value, c = e.selectionStart, r = e.selectionEnd;
|
|
7
|
-
if (c === r && t.key === "Backspace") {
|
|
8
|
-
const u = n.slice(0, -2), o = s(u);
|
|
9
|
-
if (o === !1) return;
|
|
10
|
-
a(o);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
i as onChangePercentage,
|
|
15
|
-
f as onKeyDownPercentage
|
|
16
|
-
};
|
package/dist/hooks.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare interface Environments {
|
|
2
|
-
readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
|
|
3
|
-
readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
|
|
4
|
-
readonly VITE_BACKEND_API_USERS_URL?: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare interface SharedAppModulesContextData {
|
|
8
|
-
environments: Environments;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export declare function useDebounce(value: string, delay: number): string;
|
|
12
|
-
|
|
13
|
-
export declare function useSharedAppModules(): SharedAppModulesContextData;
|
|
14
|
-
|
|
15
|
-
export { }
|
package/dist/hooks.js
DELETED
package/dist/influencer.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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 { }
|
package/dist/influencer.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/invoice.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
|
-
export 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
|
-
export 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
|
-
export declare interface Invoiced {
|
|
216
|
-
code: string;
|
|
217
|
-
issueDate: string;
|
|
218
|
-
dueDate: string;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export 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[];
|
|
233
|
-
tags?: string[];
|
|
234
|
-
createdAt?: Date;
|
|
235
|
-
updatedAt?: Date;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export 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
|
-
export 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
|
-
export 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
|
-
export 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_2[];
|
|
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/invoice.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/lib.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { }
|
package/dist/lib.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/log.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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 { }
|