tychat-contracts 1.6.27 → 1.6.28

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.
@@ -31,6 +31,9 @@ export declare class PlanSummaryDto {
31
31
  unitsExtraPrice: number;
32
32
  monthlyLegalTermsExtraPrice: number;
33
33
  concurrentSessionsExtraPrice: number;
34
+ maxCampaignsPerMonth: number;
35
+ campaignsModuleEnabled: boolean;
36
+ campaignExtraSlotPrice: number;
34
37
  createdAt?: Date;
35
38
  updatedAt?: Date;
36
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plan-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/plan-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAG9B,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,aAAa,EAAE,MAAM,CAAC;IAMtB,+BAA+B,EAAE,MAAM,CAAC;IAOxC,gCAAgC,EAAE,YAAY,GAAG,YAAY,CAAC;IAG9D,eAAe,EAAE,MAAM,CAAC;IAGxB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,eAAe,EAAE,MAAM,CAAC;IAGxB,2BAA2B,EAAE,MAAM,CAAC;IAGpC,qBAAqB,EAAE,MAAM,CAAC;IAG9B,kBAAkB,EAAE,MAAM,CAAC;IAG3B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,oBAAoB,EAA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B,EAAE,MAAM,CAAC;IAG7B,2BAA2B,EAAE,MAAM,CAAC;IAGpC,eAAe,EAAE,MAAM,CAAC;IAGxB,2BAA2B,EAAE,MAAM,CAAC;IAGpC,4BAA4B,EAAE,MAAM,CAAC;IAGrC,oBAAoB,EAAE,MAAM,CAAC;IAG7B,sBAAsB,EAAE,OAAO,CAAC;IAGhC,sBAAsB,EAAE,MAAM,CAAC;IAG/B,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
@@ -44,6 +44,9 @@ class PlanSummaryDto {
44
44
  unitsExtraPrice;
45
45
  monthlyLegalTermsExtraPrice;
46
46
  concurrentSessionsExtraPrice;
47
+ maxCampaignsPerMonth;
48
+ campaignsModuleEnabled;
49
+ campaignExtraSlotPrice;
47
50
  createdAt;
48
51
  updatedAt;
49
52
  }
@@ -171,6 +174,18 @@ __decorate([
171
174
  (0, swagger_1.ApiProperty)({ description: 'Preço por sessão simultânea extra por conta', example: 0 }),
172
175
  __metadata("design:type", Number)
173
176
  ], PlanSummaryDto.prototype, "concurrentSessionsExtraPrice", void 0);
177
+ __decorate([
178
+ (0, swagger_1.ApiProperty)({ description: 'Máximo de campanhas por mês (0 = ilimitado)', example: 10 }),
179
+ __metadata("design:type", Number)
180
+ ], PlanSummaryDto.prototype, "maxCampaignsPerMonth", void 0);
181
+ __decorate([
182
+ (0, swagger_1.ApiProperty)({ description: 'Se o módulo de campanhas está habilitado', example: false }),
183
+ __metadata("design:type", Boolean)
184
+ ], PlanSummaryDto.prototype, "campaignsModuleEnabled", void 0);
185
+ __decorate([
186
+ (0, swagger_1.ApiProperty)({ description: 'Preço por campanha extra além do limite', example: 10 }),
187
+ __metadata("design:type", Number)
188
+ ], PlanSummaryDto.prototype, "campaignExtraSlotPrice", void 0);
174
189
  __decorate([
175
190
  (0, swagger_1.ApiPropertyOptional)(),
176
191
  __metadata("design:type", Date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.6.27",
3
+ "version": "1.6.28",
4
4
  "description": "DTOs compartilhados com class-validator (API e microserviços)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -98,6 +98,15 @@ export class PlanSummaryDto {
98
98
  @ApiProperty({ description: 'Preço por sessão simultânea extra por conta', example: 0 })
99
99
  concurrentSessionsExtraPrice: number;
100
100
 
101
+ @ApiProperty({ description: 'Máximo de campanhas por mês (0 = ilimitado)', example: 10 })
102
+ maxCampaignsPerMonth: number;
103
+
104
+ @ApiProperty({ description: 'Se o módulo de campanhas está habilitado', example: false })
105
+ campaignsModuleEnabled: boolean;
106
+
107
+ @ApiProperty({ description: 'Preço por campanha extra além do limite', example: 10 })
108
+ campaignExtraSlotPrice: number;
109
+
101
110
  @ApiPropertyOptional()
102
111
  createdAt?: Date;
103
112