@plyaz/types 1.45.7 → 1.45.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/core/domain/notifications/schemas.d.ts +10 -8
- package/dist/core/index.cjs +8 -8
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +8 -8
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -161,21 +161,23 @@ export declare const QueryNotificationsSchema: z.ZodObject<{
|
|
|
161
161
|
export type QueryNotificationsDTO = z.input<typeof QueryNotificationsSchema>;
|
|
162
162
|
/**
|
|
163
163
|
* Create Notifications Schema (for backend)
|
|
164
|
+
* Uses camelCase for input (matching entity format)
|
|
165
|
+
* Mapper converts to snake_case for database
|
|
164
166
|
*/
|
|
165
167
|
export declare const CreateNotificationsSchema: z.ZodObject<{
|
|
166
|
-
|
|
168
|
+
userId: z.ZodString;
|
|
167
169
|
type: z.ZodEnum<{
|
|
168
170
|
SYSTEM: "SYSTEM";
|
|
169
171
|
CAMPAIGN_BACKED: "CAMPAIGN_BACKED";
|
|
170
172
|
}>;
|
|
171
173
|
title: z.ZodString;
|
|
172
174
|
message: z.ZodString;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
176
|
+
referenceId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
referenceType: z.ZodOptional<z.ZodString>;
|
|
178
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
179
|
+
recipientId: z.ZodString;
|
|
180
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
179
181
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
180
182
|
IN_APP: "IN_APP";
|
|
181
183
|
EMAIL: "EMAIL";
|
|
@@ -190,6 +192,6 @@ export declare const CreateNotificationsSchema: z.ZodObject<{
|
|
|
190
192
|
promotional: "promotional";
|
|
191
193
|
}>>>;
|
|
192
194
|
provider: z.ZodOptional<z.ZodString>;
|
|
193
|
-
|
|
195
|
+
providerMessageId: z.ZodOptional<z.ZodString>;
|
|
194
196
|
}, z.core.$strip>;
|
|
195
197
|
export type CreateNotificationsDTO = z.infer<typeof CreateNotificationsSchema>;
|
package/dist/core/index.cjs
CHANGED
|
@@ -651,20 +651,20 @@ var QueryNotificationsSchema = zod.z.object({
|
|
|
651
651
|
created_before: zod.z.string().optional()
|
|
652
652
|
});
|
|
653
653
|
var CreateNotificationsSchema = zod.z.object({
|
|
654
|
-
|
|
654
|
+
userId: zod.z.string().uuid(),
|
|
655
655
|
type: NotificationTypeSchema,
|
|
656
656
|
title: zod.z.string().max(MAX_TITLE_LENGTH),
|
|
657
657
|
message: zod.z.string(),
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
658
|
+
linkUrl: zod.z.string().optional(),
|
|
659
|
+
referenceId: zod.z.string().uuid().optional(),
|
|
660
|
+
referenceType: zod.z.string().max(MAX_REFERENCE_TYPE_LENGTH).optional(),
|
|
661
|
+
correlationId: zod.z.string().max(MAX_STRING_LENGTH).optional(),
|
|
662
|
+
recipientId: zod.z.string().max(MAX_STRING_LENGTH),
|
|
663
|
+
templateId: zod.z.string().max(MAX_STRING_LENGTH).optional(),
|
|
664
664
|
channel: NotificationChannelSchema.optional(),
|
|
665
665
|
category: NotificationCategorySchema.optional(),
|
|
666
666
|
provider: zod.z.string().max(MAX_PROVIDER_LENGTH).optional(),
|
|
667
|
-
|
|
667
|
+
providerMessageId: zod.z.string().max(MAX_STRING_LENGTH).optional()
|
|
668
668
|
});
|
|
669
669
|
|
|
670
670
|
// src/core/domain/notifications/streaming.ts
|