tychat-contracts 1.0.108 → 1.0.109

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.
@@ -127,7 +127,7 @@ __decorate([
127
127
  ], AnalyticsDashboardFinancialDto.prototype, "averageTicket", void 0);
128
128
  __decorate([
129
129
  (0, swagger_1.ApiProperty)({
130
- description: 'Valor ainda em aberto no fim do período (exclusive endDate): soma de `payment.created` no intervalo sem `payment.payed` correspondente (mesmo paymentId) com occurredAt anterior a endDate; mais faturas `billing.invoice_created` PENDING/OVERDUE sem `billing.invoice_paid` (mesmo invoiceId). Baseado em eventos de analytics.',
130
+ description: 'Valor total de procedimentos dos agendamentos ainda pendentes (status pending/processing/sended) no período: soma de `appointment_procedures.value` via JOIN com `appointments`.',
131
131
  }),
132
132
  __metadata("design:type", Number)
133
133
  ], AnalyticsDashboardFinancialDto.prototype, "pending", void 0);
@@ -220,7 +220,7 @@ __decorate([
220
220
  ], AnalyticsDashboardResponseDto.prototype, "appointmentsFinished", void 0);
221
221
  __decorate([
222
222
  (0, swagger_1.ApiProperty)({
223
- description: 'Procedimentos agendados: soma dos itens em metadata.procedures em `appointment.created` + vínculos posteriores (`appointment.updated` com reason procedure_added)',
223
+ description: 'Procedimentos agendados: total de registros em `appointment_procedures` cujo agendamento (`appointments.date`) está no período',
224
224
  }),
225
225
  __metadata("design:type", Number)
226
226
  ], AnalyticsDashboardResponseDto.prototype, "proceduresScheduled", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
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",
@@ -104,7 +104,7 @@ export class AnalyticsDashboardFinancialDto {
104
104
 
105
105
  @ApiProperty({
106
106
  description:
107
- 'Valor ainda em aberto no fim do período (exclusive endDate): soma de `payment.created` no intervalo sem `payment.payed` correspondente (mesmo paymentId) com occurredAt anterior a endDate; mais faturas `billing.invoice_created` PENDING/OVERDUE sem `billing.invoice_paid` (mesmo invoiceId). Baseado em eventos de analytics.',
107
+ 'Valor total de procedimentos dos agendamentos ainda pendentes (status pending/processing/sended) no período: soma de `appointment_procedures.value` via JOIN com `appointments`.',
108
108
  })
109
109
  pending: number;
110
110
  }
@@ -159,7 +159,7 @@ export class AnalyticsDashboardResponseDto {
159
159
 
160
160
  @ApiProperty({
161
161
  description:
162
- 'Procedimentos agendados: soma dos itens em metadata.procedures em `appointment.created` + vínculos posteriores (`appointment.updated` com reason procedure_added)',
162
+ 'Procedimentos agendados: total de registros em `appointment_procedures` cujo agendamento (`appointments.date`) está no período',
163
163
  })
164
164
  proceduresScheduled: number;
165
165