@rodrigobeber/patoai-dtos 4.8.30 → 4.8.32
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/dist/auth/signup.dto.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/marketing/attribution.dto.d.ts +25 -0
- package/dist/marketing/attribution.dto.js +2 -0
- package/dist/marketing/index.d.ts +2 -0
- package/dist/marketing/index.js +18 -0
- package/dist/marketing/marketing-event.dto.d.ts +17 -0
- package/dist/marketing/marketing-event.dto.js +2 -0
- package/dist/support/index.d.ts +1 -0
- package/dist/support/index.js +1 -0
- package/dist/support/support-guide.dto.d.ts +19 -0
- package/dist/support/support-guide.dto.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./chat"), exports);
|
|
|
25
25
|
__exportStar(require("./crm"), exports);
|
|
26
26
|
__exportStar(require("./crew"), exports);
|
|
27
27
|
__exportStar(require("./handoff"), exports);
|
|
28
|
+
__exportStar(require("./marketing"), exports);
|
|
28
29
|
__exportStar(require("./organization"), exports);
|
|
29
30
|
__exportStar(require("./prompt"), exports);
|
|
30
31
|
__exportStar(require("./run"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Origem de campanha capturada no navegador e enviada junto do signup.
|
|
3
|
+
*
|
|
4
|
+
* `fbc`/`fbp` sao os cookies do pixel da Meta — sem eles o evento de servidor nao casa com o clique
|
|
5
|
+
* no anuncio, entao viajam separados dos UTMs.
|
|
6
|
+
*/
|
|
7
|
+
export interface AttributionTouchDto {
|
|
8
|
+
utmSource?: string;
|
|
9
|
+
utmMedium?: string;
|
|
10
|
+
utmCampaign?: string;
|
|
11
|
+
utmContent?: string;
|
|
12
|
+
utmTerm?: string;
|
|
13
|
+
utmPlacement?: string;
|
|
14
|
+
fbclid?: string;
|
|
15
|
+
gclid?: string;
|
|
16
|
+
capturedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AttributionDto {
|
|
19
|
+
firstTouch?: AttributionTouchDto;
|
|
20
|
+
lastTouch?: AttributionTouchDto;
|
|
21
|
+
fbc?: string;
|
|
22
|
+
fbp?: string;
|
|
23
|
+
landingPage?: string;
|
|
24
|
+
referrer?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./attribution.dto"), exports);
|
|
18
|
+
__exportStar(require("./marketing-event.dto"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evento de conversao a caminho da Conversions API da Meta.
|
|
3
|
+
*
|
|
4
|
+
* Todo evento de conversao sai do servidor, do ponto onde o codigo sabe a verdade — o navegador nao
|
|
5
|
+
* consegue distinguir conta nova de reenvio de e-mail (resposta anti-enumeracao do signup).
|
|
6
|
+
* `CompleteRegistration` e `Purchase` sao nomes padrao da Meta; os outros dois sao eventos custom.
|
|
7
|
+
*/
|
|
8
|
+
export type MarketingEventName = 'CompleteRegistration' | 'EmailVerified' | 'AgentCreated' | 'Purchase';
|
|
9
|
+
export interface MarketingEventDto {
|
|
10
|
+
idAccount: number;
|
|
11
|
+
eventName: MarketingEventName;
|
|
12
|
+
/** Idempotencia contra reentrega de webhook/fila, nao deduplicacao navegador-servidor. */
|
|
13
|
+
eventId?: string;
|
|
14
|
+
value?: number;
|
|
15
|
+
currency?: string;
|
|
16
|
+
sourceUrl?: string;
|
|
17
|
+
}
|
package/dist/support/index.d.ts
CHANGED
package/dist/support/index.js
CHANGED
|
@@ -30,3 +30,4 @@ __exportStar(require("./support-insight-access.dto"), exports);
|
|
|
30
30
|
__exportStar(require("./support-agent-balance.dto"), exports);
|
|
31
31
|
__exportStar(require("./support-lab-session.dto"), exports);
|
|
32
32
|
__exportStar(require("./support-lab-onboarding.dto"), exports);
|
|
33
|
+
__exportStar(require("./support-guide.dto"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SupportOnboardingItemDto } from "./support-lab-onboarding.dto";
|
|
2
|
+
export declare const SUPPORT_GUIDE_KEYS: readonly ["welcome-chat", "welcome-settings", "welcome-canais", "off"];
|
|
3
|
+
export type SupportGuideKey = typeof SUPPORT_GUIDE_KEYS[number];
|
|
4
|
+
export interface SupportGuideAccessDto {
|
|
5
|
+
owner: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SupportGuideStateDto {
|
|
8
|
+
active: boolean;
|
|
9
|
+
optOut: boolean;
|
|
10
|
+
seen: SupportGuideKey[];
|
|
11
|
+
items: SupportOnboardingItemDto[];
|
|
12
|
+
}
|
|
13
|
+
export interface SupportGuideStartDto {
|
|
14
|
+
idCrew: number;
|
|
15
|
+
}
|
|
16
|
+
export interface SupportGuideSeenDto {
|
|
17
|
+
idCrew: number;
|
|
18
|
+
guide: SupportGuideKey;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUPPORT_GUIDE_KEYS = void 0;
|
|
4
|
+
// Guia auto-guiado do painel: o Chaveiro se apresenta sozinho na 1a visita de cada tela-chave e a
|
|
5
|
+
// trilha "Primeiros passos" acompanha o usuario no topo. Estado por (conta, agente) no patoai-support.
|
|
6
|
+
//
|
|
7
|
+
// A elegibilidade e SEMEADA pelo Arquiteto ao criar o agente (linha 'trail'), nunca inferida de
|
|
8
|
+
// cd_idempotency: aquele campo vem do body do cliente sem validacao e e zerado no descarte.
|
|
9
|
+
// Chave ABERTA de propósito: guia novo = string nova aqui + copy no frontend, sem migration.
|
|
10
|
+
exports.SUPPORT_GUIDE_KEYS = ['welcome-chat', 'welcome-settings', 'welcome-canais', 'off'];
|