vintasend-prisma 0.1.0 → 0.1.1

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.0",
3
+ "version": "0.1.1",
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.0"
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,8 +146,8 @@ 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 string | number,
149
- UserIdType extends string | number,
149
+ NotificationIdType extends Identifier = Identifier,
150
+ UserIdType extends Identifier = Identifier,
150
151
  > implements BaseNotificationBackend<AvailableContexts>
151
152
  {
152
153
  constructor(private prismaClient: Client) {}