@rodrigobeber/patoai-dtos 4.8.31 → 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.
@@ -1,7 +1,9 @@
1
+ import type { AttributionDto } from '../marketing';
1
2
  export interface SignupDto {
2
3
  email: string;
3
4
  password: string;
4
5
  name: string;
6
+ attribution?: AttributionDto;
5
7
  }
6
8
  export interface VerifyEmailDto {
7
9
  token: string;
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './chat';
9
9
  export * from './crm';
10
10
  export * from './crew';
11
11
  export * from './handoff';
12
+ export * from './marketing';
12
13
  export * from './organization';
13
14
  export * from './prompt';
14
15
  export * from './run';
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './attribution.dto';
2
+ export * from './marketing-event.dto';
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.8.31",
3
+ "version": "4.8.32",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",