@rodrigobeber/patoai-dtos 4.6.6 → 4.6.8
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 +47 -0
- package/dist/billing/billing-event.dto.js +3 -0
- package/dist/billing/billing-rest.dto.d.ts +61 -0
- package/dist/{chat/thread/stop-follow-up.dto.js → billing/billing-rest.dto.js} +1 -0
- package/dist/billing/index.d.ts +2 -0
- package/dist/{prompt → billing}/index.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/webchat/agent/webchat-prompt.dto.d.ts +0 -4
- package/dist/webchat/agent/webchat-update-prompt.dto.d.ts +1 -5
- package/dist/webchat/crm/webchat-stage.dto.d.ts +0 -2
- package/dist/webchat/thread/webchat-credit.dto.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chat/thread/stop-follow-up.dto.d.ts +0 -6
- package/dist/prompt/index.d.ts +0 -1
- package/dist/prompt/prompt-stage-mode.enum.d.ts +0 -4
- package/dist/prompt/prompt-stage-mode.enum.js +0 -8
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface BillingSubscriptionActivatedDto {
|
|
2
|
+
idCrew: number;
|
|
3
|
+
planName: string;
|
|
4
|
+
planSlug: string;
|
|
5
|
+
included: number;
|
|
6
|
+
price: number;
|
|
7
|
+
perExtra: number;
|
|
8
|
+
periodStart: string;
|
|
9
|
+
periodEnd: string;
|
|
10
|
+
stripeSubscriptionId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface BillingSubscriptionRenewedDto {
|
|
13
|
+
idCrew: number;
|
|
14
|
+
planName: string;
|
|
15
|
+
included: number;
|
|
16
|
+
price: number;
|
|
17
|
+
perExtra: number;
|
|
18
|
+
stripeSubscriptionId: string;
|
|
19
|
+
periodStart: string;
|
|
20
|
+
periodEnd: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BillingSubscriptionUpdatedDto {
|
|
23
|
+
idCrew: number;
|
|
24
|
+
status: string;
|
|
25
|
+
cancelAtPeriodEnd: boolean;
|
|
26
|
+
periodEnd: string;
|
|
27
|
+
}
|
|
28
|
+
export interface BillingSubscriptionCancelledDto {
|
|
29
|
+
idCrew: number;
|
|
30
|
+
resetPlanCredits: boolean;
|
|
31
|
+
preserveExtraCredits: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface BillingCreditsPurchasedDto {
|
|
34
|
+
idCrew: number;
|
|
35
|
+
credits: number;
|
|
36
|
+
packageName: string;
|
|
37
|
+
}
|
|
38
|
+
export interface BillingPaymentFailedDto {
|
|
39
|
+
idCrew: number;
|
|
40
|
+
amount: number;
|
|
41
|
+
invoiceId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface CrewCreatedDto {
|
|
44
|
+
idCrew: number;
|
|
45
|
+
ownerEmail: string;
|
|
46
|
+
ownerName: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface CreateCheckoutSessionDto {
|
|
2
|
+
idCrew: number;
|
|
3
|
+
planSlug: string;
|
|
4
|
+
successUrl: string;
|
|
5
|
+
cancelUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreatePurchaseCheckoutDto {
|
|
8
|
+
idCrew: number;
|
|
9
|
+
idCreditPackage: number;
|
|
10
|
+
successUrl: string;
|
|
11
|
+
cancelUrl: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CreatePortalSessionDto {
|
|
14
|
+
idCrew: number;
|
|
15
|
+
returnUrl: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ReactivateSubscriptionDto {
|
|
18
|
+
idCrew: number;
|
|
19
|
+
}
|
|
20
|
+
export interface StripePlanDto {
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
description: string;
|
|
25
|
+
includedConversations: number;
|
|
26
|
+
price: number;
|
|
27
|
+
perExtra: number;
|
|
28
|
+
interval: string;
|
|
29
|
+
active: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface CreditPackageDto {
|
|
32
|
+
id: number;
|
|
33
|
+
name: string;
|
|
34
|
+
credits: number;
|
|
35
|
+
priceCents: number;
|
|
36
|
+
}
|
|
37
|
+
export interface SubscriptionStatusDto {
|
|
38
|
+
idCrew: number;
|
|
39
|
+
status: string;
|
|
40
|
+
planName: string | null;
|
|
41
|
+
planSlug: string | null;
|
|
42
|
+
includedConversations: number;
|
|
43
|
+
price: number;
|
|
44
|
+
currentPeriodStart: string | null;
|
|
45
|
+
currentPeriodEnd: string | null;
|
|
46
|
+
cancelAtPeriodEnd: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface CreditTransactionDto {
|
|
49
|
+
id: number;
|
|
50
|
+
type: string;
|
|
51
|
+
amount: number;
|
|
52
|
+
balanceAfter: number;
|
|
53
|
+
description: string;
|
|
54
|
+
stripeInvoiceId: string | null;
|
|
55
|
+
stripeSessionId: string | null;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
}
|
|
58
|
+
export interface CheckoutResponseDto {
|
|
59
|
+
url: string;
|
|
60
|
+
type: 'checkout' | 'portal';
|
|
61
|
+
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./billing-rest.dto"), exports);
|
|
18
|
+
__exportStar(require("./billing-event.dto"), exports);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * from './ai';
|
|
2
2
|
export * from './auth';
|
|
3
3
|
export * from './agenda';
|
|
4
|
+
export * from './billing';
|
|
4
5
|
export * from './automation';
|
|
5
6
|
export * from './chat';
|
|
6
7
|
export * from './crm';
|
|
7
8
|
export * from './crew';
|
|
8
9
|
export * from './handoff';
|
|
9
10
|
export * from './organization';
|
|
10
|
-
export * from './prompt';
|
|
11
11
|
export * from './run';
|
|
12
12
|
export * from './tool';
|
|
13
13
|
export * from './uh';
|
package/dist/index.js
CHANGED
|
@@ -17,13 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
18
|
__exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./agenda"), exports);
|
|
20
|
+
__exportStar(require("./billing"), exports);
|
|
20
21
|
__exportStar(require("./automation"), exports);
|
|
21
22
|
__exportStar(require("./chat"), exports);
|
|
22
23
|
__exportStar(require("./crm"), exports);
|
|
23
24
|
__exportStar(require("./crew"), exports);
|
|
24
25
|
__exportStar(require("./handoff"), exports);
|
|
25
26
|
__exportStar(require("./organization"), exports);
|
|
26
|
-
__exportStar(require("./prompt"), exports);
|
|
27
27
|
__exportStar(require("./run"), exports);
|
|
28
28
|
__exportStar(require("./tool"), exports);
|
|
29
29
|
__exportStar(require("./uh"), exports);
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { PromptStageModeEnum } from "../../prompt/prompt-stage-mode.enum";
|
|
2
1
|
export interface WebChatPromptDto {
|
|
3
2
|
id: number;
|
|
4
3
|
title: string;
|
|
5
4
|
prompt: string;
|
|
6
5
|
maxLength: number | null;
|
|
7
6
|
canEdit: boolean;
|
|
8
|
-
active: boolean;
|
|
9
|
-
stageMode: PromptStageModeEnum | null;
|
|
10
|
-
stageIds: number[];
|
|
11
7
|
}
|
package/package.json
CHANGED
package/dist/prompt/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './prompt-stage-mode.enum';
|
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|