@rodrigobeber/patoai-dtos 4.6.7 → 4.6.9
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/billing/billing-event.dto.d.ts +39 -0
- package/dist/billing/billing-rest.dto.d.ts +22 -0
- package/dist/chat/thread/stop-follow-up.dto.d.ts +6 -0
- package/dist/chat/thread/stop-follow-up.dto.js +2 -0
- package/dist/crew/crew.dto.d.ts +1 -0
- package/dist/crew/follow-up-mode.enum.d.ts +1 -1
- package/dist/crew/follow-up-mode.enum.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/prompt/index.d.ts +1 -0
- package/dist/prompt/index.js +17 -0
- package/dist/prompt/prompt-stage-mode.enum.d.ts +4 -0
- package/dist/prompt/prompt-stage-mode.enum.js +8 -0
- package/dist/webchat/agent/webchat-prompt.dto.d.ts +4 -0
- package/dist/webchat/agent/webchat-update-prompt.dto.d.ts +5 -1
- package/dist/webchat/crm/webchat-stage.dto.d.ts +2 -0
- package/dist/webchat/thread/webchat-credit.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13,6 +13,9 @@ export interface BillingSubscriptionRenewedDto {
|
|
|
13
13
|
idCrew: number;
|
|
14
14
|
planName: string;
|
|
15
15
|
included: number;
|
|
16
|
+
price: number;
|
|
17
|
+
perExtra: number;
|
|
18
|
+
stripeSubscriptionId: string;
|
|
16
19
|
periodStart: string;
|
|
17
20
|
periodEnd: string;
|
|
18
21
|
}
|
|
@@ -37,8 +40,44 @@ export interface BillingPaymentFailedDto {
|
|
|
37
40
|
amount: number;
|
|
38
41
|
invoiceId: string;
|
|
39
42
|
}
|
|
43
|
+
export interface BillingSubscriptionUpgradedDto {
|
|
44
|
+
idCrew: number;
|
|
45
|
+
oldPlanName: string;
|
|
46
|
+
newPlanName: string;
|
|
47
|
+
newPlanSlug: string;
|
|
48
|
+
extraCreditsGranted: number;
|
|
49
|
+
amountCharged: number;
|
|
50
|
+
}
|
|
51
|
+
export interface BillingDowngradeScheduledDto {
|
|
52
|
+
idCrew: number;
|
|
53
|
+
currentPlanName: string;
|
|
54
|
+
targetPlanName: string;
|
|
55
|
+
targetPlanSlug: string;
|
|
56
|
+
effectiveAt: string;
|
|
57
|
+
}
|
|
58
|
+
export interface BillingDowngradeCancelledDto {
|
|
59
|
+
idCrew: number;
|
|
60
|
+
}
|
|
40
61
|
export interface CrewCreatedDto {
|
|
41
62
|
idCrew: number;
|
|
42
63
|
ownerEmail: string;
|
|
43
64
|
ownerName: string;
|
|
44
65
|
}
|
|
66
|
+
export interface BillingCanOperateRequestDto {
|
|
67
|
+
idCrew: number;
|
|
68
|
+
}
|
|
69
|
+
export interface BillingCanOperateResponseDto {
|
|
70
|
+
allowed: boolean;
|
|
71
|
+
planCredits: number;
|
|
72
|
+
extraCredits: number;
|
|
73
|
+
hasPendingInvoice: boolean;
|
|
74
|
+
reason?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface BillingCreditConsumedDto {
|
|
77
|
+
idCrew: number;
|
|
78
|
+
idThread: number;
|
|
79
|
+
date: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BillingGetBalanceRequestDto {
|
|
82
|
+
idCrew: number;
|
|
83
|
+
}
|
|
@@ -44,6 +44,28 @@ export interface SubscriptionStatusDto {
|
|
|
44
44
|
currentPeriodStart: string | null;
|
|
45
45
|
currentPeriodEnd: string | null;
|
|
46
46
|
cancelAtPeriodEnd: boolean;
|
|
47
|
+
pendingDowngradePlan: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface UpgradeSubscriptionDto {
|
|
50
|
+
idCrew: number;
|
|
51
|
+
newPlanSlug: string;
|
|
52
|
+
}
|
|
53
|
+
export interface DowngradeSubscriptionDto {
|
|
54
|
+
idCrew: number;
|
|
55
|
+
newPlanSlug: string;
|
|
56
|
+
}
|
|
57
|
+
export interface CancelDowngradeDto {
|
|
58
|
+
idCrew: number;
|
|
59
|
+
}
|
|
60
|
+
export interface BillingBalanceDto {
|
|
61
|
+
idCrew: number;
|
|
62
|
+
planCredits: number;
|
|
63
|
+
extraCredits: number;
|
|
64
|
+
totalCredits: number;
|
|
65
|
+
periodStart: string | null;
|
|
66
|
+
periodEnd: string | null;
|
|
67
|
+
planName: string | null;
|
|
68
|
+
planSlug: string | null;
|
|
47
69
|
}
|
|
48
70
|
export interface CreditTransactionDto {
|
|
49
71
|
id: number;
|
package/dist/crew/crew.dto.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Modo de follow-up do crew.
|
|
3
3
|
* - off: Follow-up desativado
|
|
4
4
|
* - normal: Follow-up ativado, mas não reinicia contador em resposta do usuário
|
|
5
|
-
* - full: Follow-up ativado com reinício do contador
|
|
5
|
+
* - full: Follow-up ativado com reinício do contador
|
|
6
6
|
*/
|
|
7
7
|
export declare enum FollowUpModeEnum {
|
|
8
8
|
OFF = "off",
|
|
@@ -5,7 +5,7 @@ exports.FollowUpModeEnum = void 0;
|
|
|
5
5
|
* Modo de follow-up do crew.
|
|
6
6
|
* - off: Follow-up desativado
|
|
7
7
|
* - normal: Follow-up ativado, mas não reinicia contador em resposta do usuário
|
|
8
|
-
* - full: Follow-up ativado com reinício do contador
|
|
8
|
+
* - full: Follow-up ativado com reinício do contador
|
|
9
9
|
*/
|
|
10
10
|
var FollowUpModeEnum;
|
|
11
11
|
(function (FollowUpModeEnum) {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./crm"), exports);
|
|
|
24
24
|
__exportStar(require("./crew"), exports);
|
|
25
25
|
__exportStar(require("./handoff"), exports);
|
|
26
26
|
__exportStar(require("./organization"), exports);
|
|
27
|
+
__exportStar(require("./prompt"), exports);
|
|
27
28
|
__exportStar(require("./run"), exports);
|
|
28
29
|
__exportStar(require("./tool"), exports);
|
|
29
30
|
__exportStar(require("./uh"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './prompt-stage-mode.enum';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./prompt-stage-mode.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromptStageModeEnum = void 0;
|
|
4
|
+
var PromptStageModeEnum;
|
|
5
|
+
(function (PromptStageModeEnum) {
|
|
6
|
+
PromptStageModeEnum["ONLY"] = "ONLY";
|
|
7
|
+
PromptStageModeEnum["EXCLUDE"] = "EXCLUDE";
|
|
8
|
+
})(PromptStageModeEnum || (exports.PromptStageModeEnum = PromptStageModeEnum = {}));
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { PromptStageModeEnum } from "../../prompt/prompt-stage-mode.enum";
|
|
1
2
|
export interface WebChatPromptDto {
|
|
2
3
|
id: number;
|
|
3
4
|
title: string;
|
|
4
5
|
prompt: string;
|
|
5
6
|
maxLength: number | null;
|
|
6
7
|
canEdit: boolean;
|
|
8
|
+
active: boolean;
|
|
9
|
+
stageMode: PromptStageModeEnum | null;
|
|
10
|
+
stageIds: number[];
|
|
7
11
|
}
|