nestjs-temporal-core 3.0.9 → 3.0.10

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.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -167,14 +167,14 @@ import {
167
167
 
168
168
  @Injectable()
169
169
  export class ScheduledService {
170
- @Scheduled({
171
- scheduleId: 'daily-report',
172
- cron: CRON_EXPRESSIONS.DAILY_8AM,
173
- description: 'Generate daily sales report',
174
- taskQueue: 'reports',
175
- workflowType: 'generateReportWorkflow', // Name of the workflow function to run
176
- workflowArgs: [{ reportType: 'sales', date: new Date().toISOString() }], // Arguments passed to the workflow
177
- })
170
+ @Scheduled({
171
+ scheduleId: 'daily-report',
172
+ cron: CRON_EXPRESSIONS.DAILY_8AM,
173
+ description: 'Generate daily sales report',
174
+ taskQueue: 'reports',
175
+ workflowType: 'generateReportWorkflow', // Name of the workflow function to run
176
+ workflowArgs: [{ reportType: 'sales' }], // Arguments passed to the workflow
177
+ })
178
178
  async generateDailyReport(): Promise<void> {
179
179
  // This method is NOT executed directly. Instead, the schedule triggers the workflow specified above.
180
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestjs-temporal-core",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "description": "Complete NestJS integration for Temporal.io with auto-discovery, declarative scheduling, enhanced monitoring, and enterprise-ready features",
5
5
  "author": "Harsh M",
6
6
  "license": "MIT",