@rodrigobeber/patoai-dtos 4.7.73 → 4.7.75

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.
@@ -15,4 +15,3 @@ export * from './send-text.dto';
15
15
  export * from './send-buttons.dto';
16
16
  export * from './message-status.dto';
17
17
  export * from './telegram.dto';
18
- export * from './uh-public-url';
package/dist/uh/index.js CHANGED
@@ -31,4 +31,3 @@ __exportStar(require("./send-text.dto"), exports);
31
31
  __exportStar(require("./send-buttons.dto"), exports);
32
32
  __exportStar(require("./message-status.dto"), exports);
33
33
  __exportStar(require("./telegram.dto"), exports);
34
- __exportStar(require("./uh-public-url"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.7.73",
3
+ "version": "4.7.75",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +0,0 @@
1
- export interface SendNotificationEmailDto {
2
- to: string[];
3
- subject: string;
4
- html: string;
5
- text?: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- export interface BillingLabQuotaRequestDto {
2
- idCrew: number;
3
- }
4
- export interface BillingLabQuotaDto {
5
- used: number;
6
- limit: number;
7
- remaining: number;
8
- allowed: boolean;
9
- }
10
- export interface BillingConsumeLabRequestDto {
11
- idCrew: number;
12
- }
13
- export interface BillingConsumeLabDto {
14
- used: number;
15
- remaining: number;
16
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // RPC billing (billing.getLabAnalysisQuota / billing.consumeLabAnalysis): cota MENSAL durável das
3
- // análises profundas do Laboratório (F3), irmã do saldo de "respostas de teste". Billing é dono de
4
- // TODAS as cotas de uso. Contador por (id_crew, ano, mês); consumo só após análise bem-sucedida.
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- export interface ImplementValidationErrorDto {
2
- field: string;
3
- message: string;
4
- }
5
- export interface ImplementPreviewDto {
6
- crewName: string;
7
- personName: string;
8
- folder: string;
9
- agentType: string;
10
- hasSpin: boolean;
11
- hasCalendar: boolean;
12
- hasEscalation: boolean;
13
- stageCount: number;
14
- domainFileCount: number;
15
- followUpMax: number | null;
16
- validationErrors: ImplementValidationErrorDto[];
17
- isValid: boolean;
18
- }
19
- export interface ImplementResponseDto {
20
- idCrew: number;
21
- crewName: string;
22
- folder: string;
23
- inPending: boolean;
24
- goLiveChecklist: GoLiveChecklistItemDto[];
25
- }
26
- export interface GoLiveChecklistItemDto {
27
- key: string;
28
- label: string;
29
- completed: boolean;
30
- link: string | null;
31
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { StageTypeEnum } from "../../crm";
2
- export interface StopFollowUpDto {
3
- idCrew: number;
4
- idThread: string;
5
- stageType: StageTypeEnum | null;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- /**
2
- * URL publica do patoai-uh — o endereco onde os canais registram seus webhooks
3
- * (Telegram `setWebhook`, Evolution). FONTE UNICA: o uh e o crew derivam daqui.
4
- */
5
- /** Tunel que expoe o Traefik local em dev (o uh precisa ser alcancavel pela internet). */
6
- export declare const UH_DEV_PUBLIC_URL = "https://f20bzrdj-8090.brs.devtunnels.ms/uh";
7
- /**
8
- * Deriva a URL publica do uh a partir da URL do painel (`FRONTEND_URL`), que ja chega em todos
9
- * os pods pelo `env-configmap`:
10
- *
11
- * chat.upflows.com.br -> uh.upflows.com.br (prod)
12
- * chat-hml.upflows.com.br -> uh-hml.upflows.com.br (hml)
13
- * chat-tst.upflows.com.br -> uh-tst.upflows.com.br (tst)
14
- *
15
- * Sem match (dev, onde `FRONTEND_URL` e localhost), cai no tunel de desenvolvimento.
16
- *
17
- * NAO derivar isso de `NODE_ENV`: HML e TST usam AMBOS `staging`, entao o TST acabaria
18
- * apontando para o host do HML — bug silencioso que o `evolution.webhookUrl` do crew carregava.
19
- *
20
- * Premissa: a convencao de dominio `<servico>[-ambiente].upflows.com.br`, valida hoje para todos
21
- * os servicos. Se o painel ganhar dominio proprio (white-label), esta derivacao para de valer.
22
- */
23
- export declare function buildUhPublicUrl(frontendUrl?: string): string;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- /**
3
- * URL publica do patoai-uh — o endereco onde os canais registram seus webhooks
4
- * (Telegram `setWebhook`, Evolution). FONTE UNICA: o uh e o crew derivam daqui.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.UH_DEV_PUBLIC_URL = void 0;
8
- exports.buildUhPublicUrl = buildUhPublicUrl;
9
- /** Tunel que expoe o Traefik local em dev (o uh precisa ser alcancavel pela internet). */
10
- exports.UH_DEV_PUBLIC_URL = 'https://f20bzrdj-8090.brs.devtunnels.ms/uh';
11
- /** `https://chat-hml.upflows.com.br` -> captura `-hml`. Em producao o sufixo e vazio. */
12
- const PANEL_URL_REGEX = /^https:\/\/chat(-[a-z]+)?\.upflows\.com\.br\/?$/i;
13
- /**
14
- * Deriva a URL publica do uh a partir da URL do painel (`FRONTEND_URL`), que ja chega em todos
15
- * os pods pelo `env-configmap`:
16
- *
17
- * chat.upflows.com.br -> uh.upflows.com.br (prod)
18
- * chat-hml.upflows.com.br -> uh-hml.upflows.com.br (hml)
19
- * chat-tst.upflows.com.br -> uh-tst.upflows.com.br (tst)
20
- *
21
- * Sem match (dev, onde `FRONTEND_URL` e localhost), cai no tunel de desenvolvimento.
22
- *
23
- * NAO derivar isso de `NODE_ENV`: HML e TST usam AMBOS `staging`, entao o TST acabaria
24
- * apontando para o host do HML — bug silencioso que o `evolution.webhookUrl` do crew carregava.
25
- *
26
- * Premissa: a convencao de dominio `<servico>[-ambiente].upflows.com.br`, valida hoje para todos
27
- * os servicos. Se o painel ganhar dominio proprio (white-label), esta derivacao para de valer.
28
- */
29
- function buildUhPublicUrl(frontendUrl) {
30
- const match = PANEL_URL_REGEX.exec((frontendUrl === null || frontendUrl === void 0 ? void 0 : frontendUrl.trim()) || '');
31
- return match ? `https://uh${match[1] || ''}.upflows.com.br` : exports.UH_DEV_PUBLIC_URL;
32
- }