@rodrigobeber/patoai-dtos 4.6.77 → 4.6.78

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.
@@ -73,8 +73,6 @@ export interface BillingCanOperateResponseDto {
73
73
  planCredits: number;
74
74
  extraCredits: number;
75
75
  hasPendingInvoice: boolean;
76
- trial?: boolean;
77
- trialEnd?: string;
78
76
  reason?: string;
79
77
  }
80
78
  export interface BillingCreditConsumedDto {
@@ -85,9 +83,3 @@ export interface BillingCreditConsumedDto {
85
83
  export interface BillingGetBalanceRequestDto {
86
84
  idCrew: number;
87
85
  }
88
- export interface CrewGetTrialDateRequestDto {
89
- idCrew: number;
90
- }
91
- export interface CrewGetTrialDateResponseDto {
92
- trial: string | null;
93
- }
@@ -29,6 +29,7 @@ export interface PlanDto {
29
29
  perExtra: number;
30
30
  interval: string;
31
31
  active: boolean;
32
+ requiresContract: boolean;
32
33
  }
33
34
  export interface CreditPackageDto {
34
35
  id: number;
@@ -50,7 +51,6 @@ export interface SubscriptionStatusDto {
50
51
  cancelAtPeriodEnd: boolean;
51
52
  pendingDowngradePlan: string | null;
52
53
  billingType: string | null;
53
- trialEnd: string | null;
54
54
  graceDeadline: string | null;
55
55
  }
56
56
  export interface UpgradeSubscriptionDto {
@@ -91,3 +91,30 @@ export interface CheckoutResponseDto {
91
91
  url: string;
92
92
  type: 'checkout' | 'payment_link';
93
93
  }
94
+ export interface AcceptTermsRequestDto {
95
+ idCrew: number;
96
+ version: string;
97
+ }
98
+ export interface TermsStatusDto {
99
+ accepted: boolean;
100
+ version: string;
101
+ acceptedAt?: string;
102
+ }
103
+ export interface CreateContractDto {
104
+ idCrew: number;
105
+ planSlug: string;
106
+ billingType: string;
107
+ signerName: string;
108
+ signerEmail: string;
109
+ signerCpfCnpj?: string;
110
+ customerEmail?: string;
111
+ mobilePhone?: string;
112
+ }
113
+ export interface ContractStatusDto {
114
+ id: number;
115
+ status: 'draft' | 'sent' | 'signed' | 'declined' | 'voided';
116
+ planName: string;
117
+ signerEmail: string;
118
+ sentAt?: string;
119
+ signedAt?: string;
120
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.6.77",
3
+ "version": "4.6.78",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",