vintasend-prisma 0.1.0 → 0.1.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vintasend-prisma",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "VintaSend Backend implementation for Prisma",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@prisma/client": "^6.3.1",
|
|
14
14
|
"prisma": "^6.3.1",
|
|
15
|
-
"vintasend": "^0.1.
|
|
15
|
+
"vintasend": "^0.1.1"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -4,6 +4,7 @@ import type { InputJsonValue, JsonValue } from 'vintasend/src/types/json-values'
|
|
|
4
4
|
import type { Notification, NotificationInput } from 'vintasend/src/types/notification';
|
|
5
5
|
import type { NotificationStatus } from 'vintasend/src/types/notification-status';
|
|
6
6
|
import type { NotificationType } from 'vintasend/src/types/notification-type';
|
|
7
|
+
import type { Identifier } from 'vintasend/src/types/identifier';
|
|
7
8
|
|
|
8
9
|
export const NotificationStatusEnum = {
|
|
9
10
|
PENDING_SEND: 'PENDING_SEND',
|
|
@@ -145,9 +146,9 @@ function convertJsonValueToRecord(jsonValue: JsonValue): Record<string, string |
|
|
|
145
146
|
export class PrismaNotificationBackend<
|
|
146
147
|
Client extends NotificationPrismaClientInterface<NotificationIdType, UserIdType>,
|
|
147
148
|
AvailableContexts extends Record<string, ContextGenerator>,
|
|
148
|
-
NotificationIdType extends
|
|
149
|
-
UserIdType extends
|
|
150
|
-
> implements BaseNotificationBackend<AvailableContexts>
|
|
149
|
+
NotificationIdType extends Identifier = Identifier,
|
|
150
|
+
UserIdType extends Identifier = Identifier,
|
|
151
|
+
> implements BaseNotificationBackend<AvailableContexts, NotificationIdType, UserIdType>
|
|
151
152
|
{
|
|
152
153
|
constructor(private prismaClient: Client) {}
|
|
153
154
|
|