@voyantjs/notifications 0.6.5 → 0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAcvD,eAAO,MAAM,uBAAuB,wDAAmD,CAAA;AAEvF,eAAO,MAAM,8BAA8B,uEAIzC,CAAA;AAEF,eAAO,MAAM,8BAA8B,kFAKzC,CAAA;AAEF,eAAO,MAAM,0BAA0B,qKASrC,CAAA;AAEF,eAAO,MAAM,8BAA8B,uEAIzC,CAAA;AAEF,eAAO,MAAM,kCAAkC,+EAG7C,CAAA;AAEF,eAAO,MAAM,iCAAiC,6FAM5C,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBjC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,qBAAqB,CAAC,YAAY,CAAA;AAC5E,MAAM,MAAM,uBAAuB,GAAG,OAAO,qBAAqB,CAAC,YAAY,CAAA;AAE/E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AS3C,CAAA;AAEH,eAAO,MAAM,4BAA4B,EAAE,kBAK1C,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,kBAK1C,CAAA;AAED,eAAO,MAAM,gCAAgC,EAAE,kBAK9C,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,kBAK7C,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,MAGjC,CAAA;AAGD,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAA"}
package/dist/schema.js CHANGED
@@ -55,9 +55,10 @@ export const notificationTemplates = pgTable("notification_templates", {
55
55
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
56
56
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
57
57
  }, (table) => [
58
- index("idx_notification_templates_channel").on(table.channel),
59
- index("idx_notification_templates_provider").on(table.provider),
60
- index("idx_notification_templates_status").on(table.status),
58
+ index("idx_notification_templates_updated").on(table.updatedAt),
59
+ index("idx_notification_templates_channel_updated").on(table.channel, table.updatedAt),
60
+ index("idx_notification_templates_provider_updated").on(table.provider, table.updatedAt),
61
+ index("idx_notification_templates_status_updated").on(table.status, table.updatedAt),
61
62
  uniqueIndex("uidx_notification_templates_slug").on(table.slug),
62
63
  ]);
63
64
  export const notificationDeliveries = pgTable("notification_deliveries", {
@@ -91,16 +92,17 @@ export const notificationDeliveries = pgTable("notification_deliveries", {
91
92
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
92
93
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
93
94
  }, (table) => [
94
- index("idx_notification_deliveries_template").on(table.templateId),
95
- index("idx_notification_deliveries_target").on(table.targetType, table.targetId),
96
- index("idx_notification_deliveries_person").on(table.personId),
97
- index("idx_notification_deliveries_org").on(table.organizationId),
98
- index("idx_notification_deliveries_booking").on(table.bookingId),
99
- index("idx_notification_deliveries_invoice").on(table.invoiceId),
100
- index("idx_notification_deliveries_payment_session").on(table.paymentSessionId),
101
- index("idx_notification_deliveries_channel").on(table.channel),
102
- index("idx_notification_deliveries_provider").on(table.provider),
103
- index("idx_notification_deliveries_status").on(table.status),
95
+ index("idx_notification_deliveries_created").on(table.createdAt),
96
+ index("idx_notification_deliveries_template_created").on(table.templateId, table.createdAt),
97
+ index("idx_notification_deliveries_target_created").on(table.targetType, table.targetId, table.createdAt),
98
+ index("idx_notification_deliveries_person_created").on(table.personId, table.createdAt),
99
+ index("idx_notification_deliveries_org_created").on(table.organizationId, table.createdAt),
100
+ index("idx_notification_deliveries_booking_created").on(table.bookingId, table.createdAt),
101
+ index("idx_notification_deliveries_invoice_created").on(table.invoiceId, table.createdAt),
102
+ index("idx_notification_deliveries_payment_session_created").on(table.paymentSessionId, table.createdAt),
103
+ index("idx_notification_deliveries_channel_created").on(table.channel, table.createdAt),
104
+ index("idx_notification_deliveries_provider_created").on(table.provider, table.createdAt),
105
+ index("idx_notification_deliveries_status_created").on(table.status, table.createdAt),
104
106
  index("idx_notification_deliveries_scheduled_for").on(table.scheduledFor),
105
107
  ]);
106
108
  export const notificationReminderRules = pgTable("notification_reminder_rules", {
@@ -121,9 +123,10 @@ export const notificationReminderRules = pgTable("notification_reminder_rules",
121
123
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
122
124
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
123
125
  }, (table) => [
124
- index("idx_notification_reminder_rules_status").on(table.status),
125
- index("idx_notification_reminder_rules_target").on(table.targetType),
126
- index("idx_notification_reminder_rules_channel").on(table.channel),
126
+ index("idx_notification_reminder_rules_updated").on(table.updatedAt),
127
+ index("idx_notification_reminder_rules_status_updated").on(table.status, table.updatedAt),
128
+ index("idx_notification_reminder_rules_target_updated").on(table.targetType, table.updatedAt),
129
+ index("idx_notification_reminder_rules_channel_updated").on(table.channel, table.updatedAt),
127
130
  uniqueIndex("uidx_notification_reminder_rules_slug").on(table.slug),
128
131
  ]);
129
132
  export const notificationReminderRuns = pgTable("notification_reminder_runs", {
@@ -148,10 +151,16 @@ export const notificationReminderRuns = pgTable("notification_reminder_runs", {
148
151
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
149
152
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
150
153
  }, (table) => [
151
- index("idx_notification_reminder_runs_rule").on(table.reminderRuleId),
152
- index("idx_notification_reminder_runs_target").on(table.targetType, table.targetId),
153
- index("idx_notification_reminder_runs_booking").on(table.bookingId),
154
- index("idx_notification_reminder_runs_status").on(table.status),
154
+ index("idx_notification_reminder_runs_created").on(table.createdAt),
155
+ index("idx_notification_reminder_runs_rule_created").on(table.reminderRuleId, table.createdAt),
156
+ index("idx_notification_reminder_runs_target_created").on(table.targetType, table.targetId, table.createdAt),
157
+ index("idx_notification_reminder_runs_booking_created").on(table.bookingId, table.createdAt),
158
+ index("idx_notification_reminder_runs_payment_session_created").on(table.paymentSessionId, table.createdAt),
159
+ index("idx_notification_reminder_runs_delivery_created").on(table.notificationDeliveryId, table.createdAt),
160
+ index("idx_notification_reminder_runs_person_created").on(table.personId, table.createdAt),
161
+ index("idx_notification_reminder_runs_org_created").on(table.organizationId, table.createdAt),
162
+ index("idx_notification_reminder_runs_recipient_created").on(table.recipient, table.createdAt),
163
+ index("idx_notification_reminder_runs_status_created").on(table.status, table.createdAt),
155
164
  uniqueIndex("uidx_notification_reminder_runs_dedupe").on(table.dedupeKey),
156
165
  ]);
157
166
  export const notificationTemplatesRelations = relations(notificationTemplates, ({ many }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/notifications",
3
- "version": "0.6.5",
3
+ "version": "0.6.8",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -49,12 +49,12 @@
49
49
  "drizzle-orm": "^0.45.2",
50
50
  "hono": "^4.12.10",
51
51
  "zod": "^4.3.6",
52
- "@voyantjs/bookings": "0.6.5",
53
- "@voyantjs/core": "0.6.5",
54
- "@voyantjs/db": "0.6.5",
55
- "@voyantjs/finance": "0.6.5",
56
- "@voyantjs/hono": "0.6.5",
57
- "@voyantjs/legal": "0.6.5"
52
+ "@voyantjs/bookings": "0.6.8",
53
+ "@voyantjs/core": "0.6.8",
54
+ "@voyantjs/db": "0.6.8",
55
+ "@voyantjs/finance": "0.6.8",
56
+ "@voyantjs/hono": "0.6.8",
57
+ "@voyantjs/legal": "0.6.8"
58
58
  },
59
59
  "devDependencies": {
60
60
  "typescript": "^6.0.2",