@wrcb/cb-common 1.0.905 → 1.0.907
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/types/clinica.d.ts +29 -0
- package/build/types/telegram.d.ts +56 -0
- package/build/types/telegram.js +2 -0
- package/build/types/trabalhoHomeOffice.d.ts +13 -1
- package/build/types/trabalhoHomeOffice.js +10 -6
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './types/trabalhoHomeOffice';
|
|
|
60
60
|
export * from './types/crm';
|
|
61
61
|
export * from './types/clinica';
|
|
62
62
|
export * from './types/companion';
|
|
63
|
+
export * from './types/telegram';
|
|
63
64
|
export * from './events/subjects';
|
|
64
65
|
export * from './events/baseListener';
|
|
65
66
|
export * from './events/basePublisher';
|
package/build/index.js
CHANGED
|
@@ -88,6 +88,7 @@ __exportStar(require("./types/trabalhoHomeOffice"), exports);
|
|
|
88
88
|
__exportStar(require("./types/crm"), exports);
|
|
89
89
|
__exportStar(require("./types/clinica"), exports);
|
|
90
90
|
__exportStar(require("./types/companion"), exports);
|
|
91
|
+
__exportStar(require("./types/telegram"), exports);
|
|
91
92
|
__exportStar(require("./events/subjects"), exports);
|
|
92
93
|
__exportStar(require("./events/baseListener"), exports);
|
|
93
94
|
__exportStar(require("./events/basePublisher"), exports);
|
package/build/types/clinica.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export interface ClinicaMetaAdAccountOption {
|
|
|
135
135
|
id: string;
|
|
136
136
|
name: string;
|
|
137
137
|
currency: string;
|
|
138
|
+
businessName?: string | null;
|
|
138
139
|
}
|
|
139
140
|
export declare enum ClinicaCommentPlatform {
|
|
140
141
|
Instagram = "Instagram",
|
|
@@ -231,10 +232,38 @@ export interface ClinicaCreativeRankingItem {
|
|
|
231
232
|
export interface ClinicaAdReferral {
|
|
232
233
|
adId: string;
|
|
233
234
|
campaignId: string | null;
|
|
235
|
+
adName?: string | null;
|
|
236
|
+
adsetName?: string | null;
|
|
237
|
+
campaignName?: string | null;
|
|
234
238
|
headline: string | null;
|
|
235
239
|
sourceUrl: string | null;
|
|
236
240
|
receivedAt: Date;
|
|
237
241
|
}
|
|
242
|
+
/** Opção do filtro "Anúncio" no funil. */
|
|
243
|
+
export interface ClinicaAdFilterOption {
|
|
244
|
+
adId: string;
|
|
245
|
+
name: string;
|
|
246
|
+
total: number;
|
|
247
|
+
}
|
|
248
|
+
/** Resultado de um anúncio no período: gasto da Meta, contatos e agendamentos do Pacientto. */
|
|
249
|
+
export interface ClinicaAdMetrics {
|
|
250
|
+
adId: string;
|
|
251
|
+
name: string;
|
|
252
|
+
adsetName: string | null;
|
|
253
|
+
campaignName: string | null;
|
|
254
|
+
status: string | null;
|
|
255
|
+
spendCents: number;
|
|
256
|
+
conversations: number;
|
|
257
|
+
leads: number;
|
|
258
|
+
appointments: number;
|
|
259
|
+
stages: {
|
|
260
|
+
key: string;
|
|
261
|
+
label: string;
|
|
262
|
+
total: number;
|
|
263
|
+
}[];
|
|
264
|
+
costPerLeadCents: number | null;
|
|
265
|
+
costPerAppointmentCents: number | null;
|
|
266
|
+
}
|
|
238
267
|
export declare enum ClinicaAssistantActionType {
|
|
239
268
|
RequestReschedule = "RequestReschedule",
|
|
240
269
|
MoveAppointment = "MoveAppointment",
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CompanionCard } from './companion';
|
|
2
|
+
export interface TelegramUser {
|
|
3
|
+
id: number;
|
|
4
|
+
is_bot: boolean;
|
|
5
|
+
first_name: string;
|
|
6
|
+
username?: string;
|
|
7
|
+
/** Idioma do app da pessoa, ex.: "pt-br". */
|
|
8
|
+
language_code?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TelegramChat {
|
|
11
|
+
id: number;
|
|
12
|
+
type: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TelegramBusinessBotRights {
|
|
15
|
+
/** Pode responder nas conversas privadas com mensagem recebida nas últimas 24h. */
|
|
16
|
+
can_reply?: boolean;
|
|
17
|
+
/** Pode marcar mensagens recebidas como lidas. */
|
|
18
|
+
can_read_messages?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface TelegramBusinessConnection {
|
|
21
|
+
id: string;
|
|
22
|
+
/** A conta que conectou o bot: a conta da influencer. */
|
|
23
|
+
user: TelegramUser;
|
|
24
|
+
user_chat_id: number;
|
|
25
|
+
date: number;
|
|
26
|
+
rights?: TelegramBusinessBotRights;
|
|
27
|
+
is_enabled: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface TelegramMessage {
|
|
30
|
+
message_id: number;
|
|
31
|
+
date: number;
|
|
32
|
+
chat: TelegramChat;
|
|
33
|
+
from?: TelegramUser;
|
|
34
|
+
business_connection_id?: string;
|
|
35
|
+
/** O bot que enviou em nome da conta. Só em mensagem de saída. */
|
|
36
|
+
sender_business_bot?: TelegramUser;
|
|
37
|
+
text?: string;
|
|
38
|
+
caption?: string;
|
|
39
|
+
photo?: unknown[];
|
|
40
|
+
video?: unknown;
|
|
41
|
+
video_note?: unknown;
|
|
42
|
+
voice?: unknown;
|
|
43
|
+
audio?: unknown;
|
|
44
|
+
sticker?: unknown;
|
|
45
|
+
document?: unknown;
|
|
46
|
+
}
|
|
47
|
+
export interface TelegramUpdate {
|
|
48
|
+
update_id: number;
|
|
49
|
+
business_connection?: TelegramBusinessConnection;
|
|
50
|
+
business_message?: TelegramMessage;
|
|
51
|
+
}
|
|
52
|
+
/** O card da página /telegram: o card público mais o link da conta. */
|
|
53
|
+
export interface TelegramCompanionCard extends CompanionCard {
|
|
54
|
+
/** https://t.me/<usuario> */
|
|
55
|
+
telegramUrl: string;
|
|
56
|
+
}
|
|
@@ -197,7 +197,8 @@ export interface ThoSettingsData {
|
|
|
197
197
|
}
|
|
198
198
|
export declare enum ThoAutopostNetwork {
|
|
199
199
|
Facebook = "Facebook",
|
|
200
|
-
Telegram = "Telegram"
|
|
200
|
+
Telegram = "Telegram",
|
|
201
|
+
Instagram = "Instagram"
|
|
201
202
|
}
|
|
202
203
|
export interface ThoAutopostNextData {
|
|
203
204
|
jobListing: JobListingDTO;
|
|
@@ -206,6 +207,17 @@ export interface ThoAutopostNextData {
|
|
|
206
207
|
imageUrl: string;
|
|
207
208
|
jobUrl: string;
|
|
208
209
|
}
|
|
210
|
+
export interface ThoAutopostBatchItem {
|
|
211
|
+
jobListing: JobListingDTO;
|
|
212
|
+
jobUrl: string;
|
|
213
|
+
}
|
|
214
|
+
export interface ThoAutopostBatchData {
|
|
215
|
+
network: ThoAutopostNetwork;
|
|
216
|
+
items: ThoAutopostBatchItem[];
|
|
217
|
+
}
|
|
218
|
+
export interface ThoAutopostReleaseData {
|
|
219
|
+
released: number;
|
|
220
|
+
}
|
|
209
221
|
export interface ThoAiProfileBioRequest {
|
|
210
222
|
categoryIds?: string[];
|
|
211
223
|
languages?: string[];
|
|
@@ -234,15 +234,19 @@ var ThoPaymentMode;
|
|
|
234
234
|
// URL da arte, e a marca como publicada na mesma chamada. Cada rede tem a sua
|
|
235
235
|
// fila: a mesma vaga sai no Facebook e no Telegram, cada uma no seu momento.
|
|
236
236
|
//
|
|
237
|
-
//
|
|
238
|
-
// Facebook
|
|
239
|
-
//
|
|
240
|
-
// Telegram
|
|
237
|
+
// Consumidores hoje:
|
|
238
|
+
// Facebook — agente dirigindo o Chrome fora do cluster, porque grupo do
|
|
239
|
+
// Facebook não tem API. Usa /autopost/next.
|
|
240
|
+
// Telegram — workflow do n8n, que tem API e não precisa de navegador. Usa
|
|
241
|
+
// /autopost/next.
|
|
242
|
+
// Instagram — n8n montando carrossel e reels. Usa /autopost/batch, que entrega
|
|
243
|
+
// várias vagas de uma vez, sem legenda nem arte por vaga.
|
|
241
244
|
// ---------------------------------------------------------------------------
|
|
242
|
-
// Redes atendidas pelo autopost.
|
|
243
|
-
//
|
|
245
|
+
// Redes atendidas pelo autopost. TikTok entra aqui quando a página tiver
|
|
246
|
+
// audiência.
|
|
244
247
|
var ThoAutopostNetwork;
|
|
245
248
|
(function (ThoAutopostNetwork) {
|
|
246
249
|
ThoAutopostNetwork["Facebook"] = "Facebook";
|
|
247
250
|
ThoAutopostNetwork["Telegram"] = "Telegram";
|
|
251
|
+
ThoAutopostNetwork["Instagram"] = "Instagram";
|
|
248
252
|
})(ThoAutopostNetwork || (exports.ThoAutopostNetwork = ThoAutopostNetwork = {}));
|