@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.
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +29 -20
- package/package.json +7 -7
package/dist/schema.d.ts.map
CHANGED
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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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GAAG,OAAO,wBAAwB,CAAC,YAAY,CAAA;AAErF,eAAO,MAAM,8BAA8B;;;EAGxC,CAAA;AAEH,eAAO,MAAM,+BAA+B;;EAKzC,CAAA;AAEH,eAAO,MAAM,kCAAkC;;;EAS9C,CAAA;AAED,eAAO,MAAM,iCAAiC;;;EAS3C,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("
|
|
59
|
-
index("
|
|
60
|
-
index("
|
|
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("
|
|
95
|
-
index("
|
|
96
|
-
index("
|
|
97
|
-
index("
|
|
98
|
-
index("
|
|
99
|
-
index("
|
|
100
|
-
index("
|
|
101
|
-
index("
|
|
102
|
-
index("
|
|
103
|
-
index("
|
|
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("
|
|
125
|
-
index("
|
|
126
|
-
index("
|
|
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("
|
|
152
|
-
index("
|
|
153
|
-
index("
|
|
154
|
-
index("
|
|
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.
|
|
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.
|
|
53
|
-
"@voyantjs/core": "0.6.
|
|
54
|
-
"@voyantjs/db": "0.6.
|
|
55
|
-
"@voyantjs/finance": "0.6.
|
|
56
|
-
"@voyantjs/hono": "0.6.
|
|
57
|
-
"@voyantjs/legal": "0.6.
|
|
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",
|