@zyacreatives/shared 2.5.75 → 2.5.77
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/schemas/investor.d.ts +0 -1
- package/dist/schemas/investor.js +0 -2
- package/dist/schemas/notification.d.ts +730 -0
- package/dist/schemas/notification.js +235 -1
- package/dist/types/notification.d.ts +20 -1
- package/package.json +1 -1
- package/src/schemas/investor.ts +1 -3
- package/src/schemas/notification.ts +313 -15
|
@@ -63,6 +63,7 @@ export type NotificationShapeType = z.infer<typeof NotificationShape>;
|
|
|
63
63
|
export declare const NotificationEntitySchema: z.ZodObject<{
|
|
64
64
|
isRead: z.ZodDefault<z.ZodBoolean>;
|
|
65
65
|
createdAt: z.ZodISODateTime;
|
|
66
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
66
67
|
deletedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
67
68
|
actorId: z.ZodCUID2;
|
|
68
69
|
recipientId: z.ZodCUID2;
|
|
@@ -118,6 +119,7 @@ export type NotificationEntity = z.infer<typeof NotificationEntitySchema>;
|
|
|
118
119
|
export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
119
120
|
isRead: z.ZodDefault<z.ZodBoolean>;
|
|
120
121
|
createdAt: z.ZodISODateTime;
|
|
122
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
121
123
|
deletedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
122
124
|
actorId: z.ZodCUID2;
|
|
123
125
|
recipientId: z.ZodCUID2;
|
|
@@ -200,6 +202,393 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
200
202
|
itemStatus: z.ZodOptional<z.ZodString>;
|
|
201
203
|
}, z.core.$strip>;
|
|
202
204
|
export type NotificationDetailsEntity = z.infer<typeof NotificationDetailsEntitySchema>;
|
|
205
|
+
export declare const NotificationTabSchema: z.ZodEnum<{
|
|
206
|
+
comments: "comments";
|
|
207
|
+
likes: "likes";
|
|
208
|
+
following: "following";
|
|
209
|
+
all: "all";
|
|
210
|
+
archived: "archived";
|
|
211
|
+
}>;
|
|
212
|
+
export type NotificationTab = z.infer<typeof NotificationTabSchema>;
|
|
213
|
+
export declare const NotificationActionSchema: z.ZodObject<{
|
|
214
|
+
label: z.ZodString;
|
|
215
|
+
variant: z.ZodDefault<z.ZodEnum<{
|
|
216
|
+
link: "link";
|
|
217
|
+
primary: "primary";
|
|
218
|
+
secondary: "secondary";
|
|
219
|
+
}>>;
|
|
220
|
+
href: z.ZodOptional<z.ZodString>;
|
|
221
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
222
|
+
open: "open";
|
|
223
|
+
openConversation: "openConversation";
|
|
224
|
+
viewApplication: "viewApplication";
|
|
225
|
+
reviewProject: "reviewProject";
|
|
226
|
+
retryVerification: "retryVerification";
|
|
227
|
+
viewProduct: "viewProduct";
|
|
228
|
+
exploreOpportunities: "exploreOpportunities";
|
|
229
|
+
}>>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export type NotificationAction = z.infer<typeof NotificationActionSchema>;
|
|
232
|
+
export declare const NotificationPreviewSchema: z.ZodObject<{
|
|
233
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
234
|
+
job: "job";
|
|
235
|
+
none: "none";
|
|
236
|
+
text: "text";
|
|
237
|
+
media: "media";
|
|
238
|
+
system: "system";
|
|
239
|
+
}>>;
|
|
240
|
+
title: z.ZodOptional<z.ZodString>;
|
|
241
|
+
content: z.ZodOptional<z.ZodString>;
|
|
242
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
243
|
+
href: z.ZodOptional<z.ZodString>;
|
|
244
|
+
status: z.ZodOptional<z.ZodString>;
|
|
245
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
id: z.ZodCUID2;
|
|
247
|
+
name: z.ZodDefault<z.ZodString>;
|
|
248
|
+
email: z.ZodEmail;
|
|
249
|
+
image: z.ZodDefault<z.ZodString>;
|
|
250
|
+
username: z.ZodDefault<z.ZodString>;
|
|
251
|
+
role: z.ZodEnum<{
|
|
252
|
+
CREATIVE: "CREATIVE";
|
|
253
|
+
BRAND: "BRAND";
|
|
254
|
+
INVESTOR: "INVESTOR";
|
|
255
|
+
ADMIN: "ADMIN";
|
|
256
|
+
}>;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export type NotificationPreview = z.infer<typeof NotificationPreviewSchema>;
|
|
260
|
+
export declare const NotificationFeedItemSchema: z.ZodObject<{
|
|
261
|
+
id: z.ZodString;
|
|
262
|
+
notificationIds: z.ZodArray<z.ZodCUID2>;
|
|
263
|
+
type: z.ZodEnum<{
|
|
264
|
+
readonly FOLLOW: "Follow";
|
|
265
|
+
readonly LIKE: "Like";
|
|
266
|
+
readonly COMMENT: "Comment";
|
|
267
|
+
readonly SIGNAL: "Signal Creation";
|
|
268
|
+
readonly SIGNAL_APPROVAL: "Signal Approval";
|
|
269
|
+
readonly SIGNAL_REJECTION: "Signal Rejection";
|
|
270
|
+
readonly REPLY: "Reply";
|
|
271
|
+
readonly MESSAGE: "Message";
|
|
272
|
+
readonly BOOKMARK: "Bookmark";
|
|
273
|
+
readonly JOB_APPLICATION: "Job Application";
|
|
274
|
+
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
275
|
+
readonly SYSTEM_STRIKE: "System Strike";
|
|
276
|
+
readonly PROJECT_FEATURED: "Project Featured";
|
|
277
|
+
readonly PROJECT_TAG: "Project Tag";
|
|
278
|
+
readonly MENTION: "Mention";
|
|
279
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
280
|
+
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
281
|
+
}>;
|
|
282
|
+
tab: z.ZodEnum<{
|
|
283
|
+
comments: "comments";
|
|
284
|
+
likes: "likes";
|
|
285
|
+
following: "following";
|
|
286
|
+
all: "all";
|
|
287
|
+
archived: "archived";
|
|
288
|
+
}>;
|
|
289
|
+
actor: z.ZodObject<{
|
|
290
|
+
id: z.ZodCUID2;
|
|
291
|
+
name: z.ZodDefault<z.ZodString>;
|
|
292
|
+
email: z.ZodEmail;
|
|
293
|
+
image: z.ZodDefault<z.ZodString>;
|
|
294
|
+
username: z.ZodDefault<z.ZodString>;
|
|
295
|
+
role: z.ZodEnum<{
|
|
296
|
+
CREATIVE: "CREATIVE";
|
|
297
|
+
BRAND: "BRAND";
|
|
298
|
+
INVESTOR: "INVESTOR";
|
|
299
|
+
ADMIN: "ADMIN";
|
|
300
|
+
}>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
303
|
+
id: z.ZodCUID2;
|
|
304
|
+
name: z.ZodDefault<z.ZodString>;
|
|
305
|
+
email: z.ZodEmail;
|
|
306
|
+
image: z.ZodDefault<z.ZodString>;
|
|
307
|
+
username: z.ZodDefault<z.ZodString>;
|
|
308
|
+
role: z.ZodEnum<{
|
|
309
|
+
CREATIVE: "CREATIVE";
|
|
310
|
+
BRAND: "BRAND";
|
|
311
|
+
INVESTOR: "INVESTOR";
|
|
312
|
+
ADMIN: "ADMIN";
|
|
313
|
+
}>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
actorCount: z.ZodInt;
|
|
316
|
+
otherActorCount: z.ZodInt;
|
|
317
|
+
recipientId: z.ZodCUID2;
|
|
318
|
+
entityId: z.ZodOptional<z.ZodCUID2>;
|
|
319
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodCUID2>>;
|
|
320
|
+
parentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
321
|
+
readonly PROJECT: "PROJECT";
|
|
322
|
+
readonly USER: "USER";
|
|
323
|
+
readonly JOB: "JOB";
|
|
324
|
+
readonly POST: "POST";
|
|
325
|
+
readonly PRODUCT: "PRODUCT";
|
|
326
|
+
readonly SIGNAL: "SIGNAL";
|
|
327
|
+
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
328
|
+
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
329
|
+
readonly COMMENT: "COMMENT";
|
|
330
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
331
|
+
}>>>;
|
|
332
|
+
rootId: z.ZodCUID2;
|
|
333
|
+
rootType: z.ZodEnum<{
|
|
334
|
+
readonly PROJECT: "PROJECT";
|
|
335
|
+
readonly USER: "USER";
|
|
336
|
+
readonly JOB: "JOB";
|
|
337
|
+
readonly POST: "POST";
|
|
338
|
+
readonly PRODUCT: "PRODUCT";
|
|
339
|
+
readonly SIGNAL: "SIGNAL";
|
|
340
|
+
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
341
|
+
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
342
|
+
readonly COMMENT: "COMMENT";
|
|
343
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
344
|
+
}>;
|
|
345
|
+
createdAt: z.ZodISODateTime;
|
|
346
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
347
|
+
isRead: z.ZodBoolean;
|
|
348
|
+
headline: z.ZodString;
|
|
349
|
+
body: z.ZodOptional<z.ZodString>;
|
|
350
|
+
targetLabel: z.ZodOptional<z.ZodString>;
|
|
351
|
+
targetHref: z.ZodOptional<z.ZodString>;
|
|
352
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
354
|
+
job: "job";
|
|
355
|
+
none: "none";
|
|
356
|
+
text: "text";
|
|
357
|
+
media: "media";
|
|
358
|
+
system: "system";
|
|
359
|
+
}>>;
|
|
360
|
+
title: z.ZodOptional<z.ZodString>;
|
|
361
|
+
content: z.ZodOptional<z.ZodString>;
|
|
362
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
363
|
+
href: z.ZodOptional<z.ZodString>;
|
|
364
|
+
status: z.ZodOptional<z.ZodString>;
|
|
365
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
id: z.ZodCUID2;
|
|
367
|
+
name: z.ZodDefault<z.ZodString>;
|
|
368
|
+
email: z.ZodEmail;
|
|
369
|
+
image: z.ZodDefault<z.ZodString>;
|
|
370
|
+
username: z.ZodDefault<z.ZodString>;
|
|
371
|
+
role: z.ZodEnum<{
|
|
372
|
+
CREATIVE: "CREATIVE";
|
|
373
|
+
BRAND: "BRAND";
|
|
374
|
+
INVESTOR: "INVESTOR";
|
|
375
|
+
ADMIN: "ADMIN";
|
|
376
|
+
}>;
|
|
377
|
+
}, z.core.$strip>>;
|
|
378
|
+
}, z.core.$strip>>;
|
|
379
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
380
|
+
label: z.ZodString;
|
|
381
|
+
variant: z.ZodDefault<z.ZodEnum<{
|
|
382
|
+
link: "link";
|
|
383
|
+
primary: "primary";
|
|
384
|
+
secondary: "secondary";
|
|
385
|
+
}>>;
|
|
386
|
+
href: z.ZodOptional<z.ZodString>;
|
|
387
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
388
|
+
open: "open";
|
|
389
|
+
openConversation: "openConversation";
|
|
390
|
+
viewApplication: "viewApplication";
|
|
391
|
+
reviewProject: "reviewProject";
|
|
392
|
+
retryVerification: "retryVerification";
|
|
393
|
+
viewProduct: "viewProduct";
|
|
394
|
+
exploreOpportunities: "exploreOpportunities";
|
|
395
|
+
}>>;
|
|
396
|
+
}, z.core.$strip>>>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
export type NotificationFeedItem = z.infer<typeof NotificationFeedItemSchema>;
|
|
399
|
+
export declare const NotificationInboxTabSchema: z.ZodEnum<{
|
|
400
|
+
comments: "comments";
|
|
401
|
+
likes: "likes";
|
|
402
|
+
following: "following";
|
|
403
|
+
all: "all";
|
|
404
|
+
archived: "archived";
|
|
405
|
+
}>;
|
|
406
|
+
export type NotificationInboxTab = z.infer<typeof NotificationInboxTabSchema>;
|
|
407
|
+
export declare const NotificationInboxCategorySchema: z.ZodEnum<{
|
|
408
|
+
comments: "comments";
|
|
409
|
+
likes: "likes";
|
|
410
|
+
jobs: "jobs";
|
|
411
|
+
following: "following";
|
|
412
|
+
system: "system";
|
|
413
|
+
marketplace: "marketplace";
|
|
414
|
+
}>;
|
|
415
|
+
export declare const NotificationInboxKindSchema: z.ZodEnum<{
|
|
416
|
+
account_verified: "account_verified";
|
|
417
|
+
account_verification_failed: "account_verification_failed";
|
|
418
|
+
policy_warning: "policy_warning";
|
|
419
|
+
follow: "follow";
|
|
420
|
+
project_liked: "project_liked";
|
|
421
|
+
post_liked: "post_liked";
|
|
422
|
+
comment_liked: "comment_liked";
|
|
423
|
+
project_commented: "project_commented";
|
|
424
|
+
reply: "reply";
|
|
425
|
+
mention: "mention";
|
|
426
|
+
project_featured: "project_featured";
|
|
427
|
+
project_tagged: "project_tagged";
|
|
428
|
+
project_draft_reminder: "project_draft_reminder";
|
|
429
|
+
job_application_shortlisted: "job_application_shortlisted";
|
|
430
|
+
job_application_rejected: "job_application_rejected";
|
|
431
|
+
job_application_status: "job_application_status";
|
|
432
|
+
product_approved: "product_approved";
|
|
433
|
+
marketplace_drop: "marketplace_drop";
|
|
434
|
+
friend_product_added: "friend_product_added";
|
|
435
|
+
}>;
|
|
436
|
+
export declare const NotificationInboxItemSchema: z.ZodObject<{
|
|
437
|
+
id: z.ZodString;
|
|
438
|
+
kind: z.ZodEnum<{
|
|
439
|
+
account_verified: "account_verified";
|
|
440
|
+
account_verification_failed: "account_verification_failed";
|
|
441
|
+
policy_warning: "policy_warning";
|
|
442
|
+
follow: "follow";
|
|
443
|
+
project_liked: "project_liked";
|
|
444
|
+
post_liked: "post_liked";
|
|
445
|
+
comment_liked: "comment_liked";
|
|
446
|
+
project_commented: "project_commented";
|
|
447
|
+
reply: "reply";
|
|
448
|
+
mention: "mention";
|
|
449
|
+
project_featured: "project_featured";
|
|
450
|
+
project_tagged: "project_tagged";
|
|
451
|
+
project_draft_reminder: "project_draft_reminder";
|
|
452
|
+
job_application_shortlisted: "job_application_shortlisted";
|
|
453
|
+
job_application_rejected: "job_application_rejected";
|
|
454
|
+
job_application_status: "job_application_status";
|
|
455
|
+
product_approved: "product_approved";
|
|
456
|
+
marketplace_drop: "marketplace_drop";
|
|
457
|
+
friend_product_added: "friend_product_added";
|
|
458
|
+
}>;
|
|
459
|
+
tab: z.ZodEnum<{
|
|
460
|
+
comments: "comments";
|
|
461
|
+
likes: "likes";
|
|
462
|
+
jobs: "jobs";
|
|
463
|
+
following: "following";
|
|
464
|
+
system: "system";
|
|
465
|
+
marketplace: "marketplace";
|
|
466
|
+
}>;
|
|
467
|
+
isRead: z.ZodBoolean;
|
|
468
|
+
isArchived: z.ZodBoolean;
|
|
469
|
+
createdAt: z.ZodISODateTime;
|
|
470
|
+
actorMode: z.ZodEnum<{
|
|
471
|
+
user: "user";
|
|
472
|
+
system: "system";
|
|
473
|
+
group: "group";
|
|
474
|
+
}>;
|
|
475
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
476
|
+
id: z.ZodString;
|
|
477
|
+
name: z.ZodString;
|
|
478
|
+
username: z.ZodOptional<z.ZodString>;
|
|
479
|
+
image: z.ZodOptional<z.ZodString>;
|
|
480
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
481
|
+
CREATIVE: "CREATIVE";
|
|
482
|
+
BRAND: "BRAND";
|
|
483
|
+
INVESTOR: "INVESTOR";
|
|
484
|
+
ADMIN: "ADMIN";
|
|
485
|
+
}>>;
|
|
486
|
+
}, z.core.$strip>>;
|
|
487
|
+
actorOverflowCount: z.ZodOptional<z.ZodInt>;
|
|
488
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
name: z.ZodEnum<{
|
|
490
|
+
user: "user";
|
|
491
|
+
heart: "heart";
|
|
492
|
+
bell: "bell";
|
|
493
|
+
briefcase: "briefcase";
|
|
494
|
+
"badge-check": "badge-check";
|
|
495
|
+
alert: "alert";
|
|
496
|
+
megaphone: "megaphone";
|
|
497
|
+
}>;
|
|
498
|
+
intent: z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
success: "success";
|
|
500
|
+
primary: "primary";
|
|
501
|
+
neutral: "neutral";
|
|
502
|
+
warning: "warning";
|
|
503
|
+
danger: "danger";
|
|
504
|
+
}>>;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
message: z.ZodObject<{
|
|
507
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
508
|
+
text: z.ZodString;
|
|
509
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
510
|
+
default: "default";
|
|
511
|
+
primary: "primary";
|
|
512
|
+
muted: "muted";
|
|
513
|
+
}>>;
|
|
514
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
515
|
+
regular: "regular";
|
|
516
|
+
medium: "medium";
|
|
517
|
+
semibold: "semibold";
|
|
518
|
+
}>>;
|
|
519
|
+
href: z.ZodOptional<z.ZodString>;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
522
|
+
contextLabel: z.ZodOptional<z.ZodString>;
|
|
523
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
href: z.ZodString;
|
|
527
|
+
entityType: z.ZodEnum<{
|
|
528
|
+
PROJECT: "PROJECT";
|
|
529
|
+
USER: "USER";
|
|
530
|
+
JOB: "JOB";
|
|
531
|
+
POST: "POST";
|
|
532
|
+
PRODUCT: "PRODUCT";
|
|
533
|
+
COMMENT: "COMMENT";
|
|
534
|
+
JOB_APPLICATION: "JOB_APPLICATION";
|
|
535
|
+
CHAT: "CHAT";
|
|
536
|
+
SETTINGS: "SETTINGS";
|
|
537
|
+
}>;
|
|
538
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
539
|
+
}, z.core.$strip>>;
|
|
540
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
541
|
+
type: z.ZodEnum<{
|
|
542
|
+
image: "image";
|
|
543
|
+
project: "project";
|
|
544
|
+
post: "post";
|
|
545
|
+
job: "job";
|
|
546
|
+
product: "product";
|
|
547
|
+
comment: "comment";
|
|
548
|
+
}>;
|
|
549
|
+
title: z.ZodOptional<z.ZodString>;
|
|
550
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
551
|
+
body: z.ZodOptional<z.ZodString>;
|
|
552
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
553
|
+
imageAlt: z.ZodOptional<z.ZodString>;
|
|
554
|
+
ownerName: z.ZodOptional<z.ZodString>;
|
|
555
|
+
ownerAvatarUrl: z.ZodOptional<z.ZodString>;
|
|
556
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
warning: "warning";
|
|
558
|
+
featured: "featured";
|
|
559
|
+
locked: "locked";
|
|
560
|
+
new: "new";
|
|
561
|
+
}>>;
|
|
562
|
+
href: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
565
|
+
id: z.ZodString;
|
|
566
|
+
label: z.ZodString;
|
|
567
|
+
style: z.ZodEnum<{
|
|
568
|
+
link: "link";
|
|
569
|
+
primary: "primary";
|
|
570
|
+
secondary: "secondary";
|
|
571
|
+
}>;
|
|
572
|
+
href: z.ZodOptional<z.ZodString>;
|
|
573
|
+
mutation: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
method: z.ZodEnum<{
|
|
575
|
+
POST: "POST";
|
|
576
|
+
PATCH: "PATCH";
|
|
577
|
+
}>;
|
|
578
|
+
endpoint: z.ZodString;
|
|
579
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
580
|
+
}, z.core.$strip>>;
|
|
581
|
+
}, z.core.$strip>>>;
|
|
582
|
+
menuActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
583
|
+
mark_read: "mark_read";
|
|
584
|
+
mark_unread: "mark_unread";
|
|
585
|
+
archive: "archive";
|
|
586
|
+
unarchive: "unarchive";
|
|
587
|
+
delete: "delete";
|
|
588
|
+
mute_type: "mute_type";
|
|
589
|
+
}>>>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
export type NotificationInboxItem = z.infer<typeof NotificationInboxItemSchema>;
|
|
203
592
|
/**
|
|
204
593
|
* --------------------------------
|
|
205
594
|
* INPUTS
|
|
@@ -225,6 +614,13 @@ export declare const ListNotificationsInputSchema: z.ZodObject<{
|
|
|
225
614
|
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
226
615
|
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
227
616
|
}>>;
|
|
617
|
+
tab: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
comments: "comments";
|
|
619
|
+
likes: "likes";
|
|
620
|
+
following: "following";
|
|
621
|
+
all: "all";
|
|
622
|
+
archived: "archived";
|
|
623
|
+
}>>>;
|
|
228
624
|
cursor: z.ZodOptional<z.ZodString>;
|
|
229
625
|
unreadOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
230
626
|
}, z.core.$strip>;
|
|
@@ -233,6 +629,28 @@ export declare const MarkReadInputSchema: z.ZodObject<{
|
|
|
233
629
|
notificationIds: z.ZodArray<z.ZodCUID2>;
|
|
234
630
|
}, z.core.$strip>;
|
|
235
631
|
export type MarkReadInput = z.infer<typeof MarkReadInputSchema>;
|
|
632
|
+
export declare const ArchiveNotificationsInputSchema: z.ZodObject<{
|
|
633
|
+
notificationIds: z.ZodArray<z.ZodCUID2>;
|
|
634
|
+
archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
635
|
+
}, z.core.$strip>;
|
|
636
|
+
export type ArchiveNotificationsInput = z.infer<typeof ArchiveNotificationsInputSchema>;
|
|
637
|
+
export declare const ListNotificationInboxInputSchema: z.ZodObject<{
|
|
638
|
+
tab: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
639
|
+
comments: "comments";
|
|
640
|
+
likes: "likes";
|
|
641
|
+
following: "following";
|
|
642
|
+
all: "all";
|
|
643
|
+
archived: "archived";
|
|
644
|
+
}>>>;
|
|
645
|
+
unreadOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
646
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
647
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
648
|
+
}, z.core.$strip>;
|
|
649
|
+
export type ListNotificationInboxInput = z.infer<typeof ListNotificationInboxInputSchema>;
|
|
650
|
+
export declare const BulkNotificationMutationInputSchema: z.ZodObject<{
|
|
651
|
+
notificationIds: z.ZodArray<z.ZodString>;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
export type BulkNotificationMutationInput = z.infer<typeof BulkNotificationMutationInputSchema>;
|
|
236
654
|
/**
|
|
237
655
|
* --------------------------------
|
|
238
656
|
* OUTPUTS
|
|
@@ -242,6 +660,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
242
660
|
notifications: z.ZodArray<z.ZodObject<{
|
|
243
661
|
isRead: z.ZodDefault<z.ZodBoolean>;
|
|
244
662
|
createdAt: z.ZodISODateTime;
|
|
663
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
245
664
|
deletedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
246
665
|
actorId: z.ZodCUID2;
|
|
247
666
|
recipientId: z.ZodCUID2;
|
|
@@ -323,10 +742,321 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
323
742
|
itemImgUrl: z.ZodOptional<z.ZodString>;
|
|
324
743
|
itemStatus: z.ZodOptional<z.ZodString>;
|
|
325
744
|
}, z.core.$strip>>;
|
|
745
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
746
|
+
id: z.ZodString;
|
|
747
|
+
notificationIds: z.ZodArray<z.ZodCUID2>;
|
|
748
|
+
type: z.ZodEnum<{
|
|
749
|
+
readonly FOLLOW: "Follow";
|
|
750
|
+
readonly LIKE: "Like";
|
|
751
|
+
readonly COMMENT: "Comment";
|
|
752
|
+
readonly SIGNAL: "Signal Creation";
|
|
753
|
+
readonly SIGNAL_APPROVAL: "Signal Approval";
|
|
754
|
+
readonly SIGNAL_REJECTION: "Signal Rejection";
|
|
755
|
+
readonly REPLY: "Reply";
|
|
756
|
+
readonly MESSAGE: "Message";
|
|
757
|
+
readonly BOOKMARK: "Bookmark";
|
|
758
|
+
readonly JOB_APPLICATION: "Job Application";
|
|
759
|
+
readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
|
|
760
|
+
readonly SYSTEM_STRIKE: "System Strike";
|
|
761
|
+
readonly PROJECT_FEATURED: "Project Featured";
|
|
762
|
+
readonly PROJECT_TAG: "Project Tag";
|
|
763
|
+
readonly MENTION: "Mention";
|
|
764
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
765
|
+
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
766
|
+
}>;
|
|
767
|
+
tab: z.ZodEnum<{
|
|
768
|
+
comments: "comments";
|
|
769
|
+
likes: "likes";
|
|
770
|
+
following: "following";
|
|
771
|
+
all: "all";
|
|
772
|
+
archived: "archived";
|
|
773
|
+
}>;
|
|
774
|
+
actor: z.ZodObject<{
|
|
775
|
+
id: z.ZodCUID2;
|
|
776
|
+
name: z.ZodDefault<z.ZodString>;
|
|
777
|
+
email: z.ZodEmail;
|
|
778
|
+
image: z.ZodDefault<z.ZodString>;
|
|
779
|
+
username: z.ZodDefault<z.ZodString>;
|
|
780
|
+
role: z.ZodEnum<{
|
|
781
|
+
CREATIVE: "CREATIVE";
|
|
782
|
+
BRAND: "BRAND";
|
|
783
|
+
INVESTOR: "INVESTOR";
|
|
784
|
+
ADMIN: "ADMIN";
|
|
785
|
+
}>;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
788
|
+
id: z.ZodCUID2;
|
|
789
|
+
name: z.ZodDefault<z.ZodString>;
|
|
790
|
+
email: z.ZodEmail;
|
|
791
|
+
image: z.ZodDefault<z.ZodString>;
|
|
792
|
+
username: z.ZodDefault<z.ZodString>;
|
|
793
|
+
role: z.ZodEnum<{
|
|
794
|
+
CREATIVE: "CREATIVE";
|
|
795
|
+
BRAND: "BRAND";
|
|
796
|
+
INVESTOR: "INVESTOR";
|
|
797
|
+
ADMIN: "ADMIN";
|
|
798
|
+
}>;
|
|
799
|
+
}, z.core.$strip>>;
|
|
800
|
+
actorCount: z.ZodInt;
|
|
801
|
+
otherActorCount: z.ZodInt;
|
|
802
|
+
recipientId: z.ZodCUID2;
|
|
803
|
+
entityId: z.ZodOptional<z.ZodCUID2>;
|
|
804
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodCUID2>>;
|
|
805
|
+
parentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
806
|
+
readonly PROJECT: "PROJECT";
|
|
807
|
+
readonly USER: "USER";
|
|
808
|
+
readonly JOB: "JOB";
|
|
809
|
+
readonly POST: "POST";
|
|
810
|
+
readonly PRODUCT: "PRODUCT";
|
|
811
|
+
readonly SIGNAL: "SIGNAL";
|
|
812
|
+
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
813
|
+
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
814
|
+
readonly COMMENT: "COMMENT";
|
|
815
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
816
|
+
}>>>;
|
|
817
|
+
rootId: z.ZodCUID2;
|
|
818
|
+
rootType: z.ZodEnum<{
|
|
819
|
+
readonly PROJECT: "PROJECT";
|
|
820
|
+
readonly USER: "USER";
|
|
821
|
+
readonly JOB: "JOB";
|
|
822
|
+
readonly POST: "POST";
|
|
823
|
+
readonly PRODUCT: "PRODUCT";
|
|
824
|
+
readonly SIGNAL: "SIGNAL";
|
|
825
|
+
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
826
|
+
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
827
|
+
readonly COMMENT: "COMMENT";
|
|
828
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
829
|
+
}>;
|
|
830
|
+
createdAt: z.ZodISODateTime;
|
|
831
|
+
archivedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
832
|
+
isRead: z.ZodBoolean;
|
|
833
|
+
headline: z.ZodString;
|
|
834
|
+
body: z.ZodOptional<z.ZodString>;
|
|
835
|
+
targetLabel: z.ZodOptional<z.ZodString>;
|
|
836
|
+
targetHref: z.ZodOptional<z.ZodString>;
|
|
837
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
838
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
839
|
+
job: "job";
|
|
840
|
+
none: "none";
|
|
841
|
+
text: "text";
|
|
842
|
+
media: "media";
|
|
843
|
+
system: "system";
|
|
844
|
+
}>>;
|
|
845
|
+
title: z.ZodOptional<z.ZodString>;
|
|
846
|
+
content: z.ZodOptional<z.ZodString>;
|
|
847
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
848
|
+
href: z.ZodOptional<z.ZodString>;
|
|
849
|
+
status: z.ZodOptional<z.ZodString>;
|
|
850
|
+
owner: z.ZodOptional<z.ZodObject<{
|
|
851
|
+
id: z.ZodCUID2;
|
|
852
|
+
name: z.ZodDefault<z.ZodString>;
|
|
853
|
+
email: z.ZodEmail;
|
|
854
|
+
image: z.ZodDefault<z.ZodString>;
|
|
855
|
+
username: z.ZodDefault<z.ZodString>;
|
|
856
|
+
role: z.ZodEnum<{
|
|
857
|
+
CREATIVE: "CREATIVE";
|
|
858
|
+
BRAND: "BRAND";
|
|
859
|
+
INVESTOR: "INVESTOR";
|
|
860
|
+
ADMIN: "ADMIN";
|
|
861
|
+
}>;
|
|
862
|
+
}, z.core.$strip>>;
|
|
863
|
+
}, z.core.$strip>>;
|
|
864
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
865
|
+
label: z.ZodString;
|
|
866
|
+
variant: z.ZodDefault<z.ZodEnum<{
|
|
867
|
+
link: "link";
|
|
868
|
+
primary: "primary";
|
|
869
|
+
secondary: "secondary";
|
|
870
|
+
}>>;
|
|
871
|
+
href: z.ZodOptional<z.ZodString>;
|
|
872
|
+
action: z.ZodDefault<z.ZodEnum<{
|
|
873
|
+
open: "open";
|
|
874
|
+
openConversation: "openConversation";
|
|
875
|
+
viewApplication: "viewApplication";
|
|
876
|
+
reviewProject: "reviewProject";
|
|
877
|
+
retryVerification: "retryVerification";
|
|
878
|
+
viewProduct: "viewProduct";
|
|
879
|
+
exploreOpportunities: "exploreOpportunities";
|
|
880
|
+
}>>;
|
|
881
|
+
}, z.core.$strip>>>;
|
|
882
|
+
}, z.core.$strip>>>;
|
|
326
883
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
327
884
|
unreadCount: z.ZodInt;
|
|
328
885
|
}, z.core.$strip>;
|
|
329
886
|
export type ListNotificationsOutput = z.infer<typeof ListNotificationsOutputSchema>;
|
|
887
|
+
export declare const NotificationMutationOutputSchema: z.ZodObject<{
|
|
888
|
+
success: z.ZodBoolean;
|
|
889
|
+
updatedCount: z.ZodOptional<z.ZodInt>;
|
|
890
|
+
deletedCount: z.ZodOptional<z.ZodInt>;
|
|
891
|
+
}, z.core.$strip>;
|
|
892
|
+
export type NotificationMutationOutput = z.infer<typeof NotificationMutationOutputSchema>;
|
|
893
|
+
export declare const ListNotificationInboxOutputSchema: z.ZodObject<{
|
|
894
|
+
notifications: z.ZodArray<z.ZodObject<{
|
|
895
|
+
id: z.ZodString;
|
|
896
|
+
kind: z.ZodEnum<{
|
|
897
|
+
account_verified: "account_verified";
|
|
898
|
+
account_verification_failed: "account_verification_failed";
|
|
899
|
+
policy_warning: "policy_warning";
|
|
900
|
+
follow: "follow";
|
|
901
|
+
project_liked: "project_liked";
|
|
902
|
+
post_liked: "post_liked";
|
|
903
|
+
comment_liked: "comment_liked";
|
|
904
|
+
project_commented: "project_commented";
|
|
905
|
+
reply: "reply";
|
|
906
|
+
mention: "mention";
|
|
907
|
+
project_featured: "project_featured";
|
|
908
|
+
project_tagged: "project_tagged";
|
|
909
|
+
project_draft_reminder: "project_draft_reminder";
|
|
910
|
+
job_application_shortlisted: "job_application_shortlisted";
|
|
911
|
+
job_application_rejected: "job_application_rejected";
|
|
912
|
+
job_application_status: "job_application_status";
|
|
913
|
+
product_approved: "product_approved";
|
|
914
|
+
marketplace_drop: "marketplace_drop";
|
|
915
|
+
friend_product_added: "friend_product_added";
|
|
916
|
+
}>;
|
|
917
|
+
tab: z.ZodEnum<{
|
|
918
|
+
comments: "comments";
|
|
919
|
+
likes: "likes";
|
|
920
|
+
jobs: "jobs";
|
|
921
|
+
following: "following";
|
|
922
|
+
system: "system";
|
|
923
|
+
marketplace: "marketplace";
|
|
924
|
+
}>;
|
|
925
|
+
isRead: z.ZodBoolean;
|
|
926
|
+
isArchived: z.ZodBoolean;
|
|
927
|
+
createdAt: z.ZodISODateTime;
|
|
928
|
+
actorMode: z.ZodEnum<{
|
|
929
|
+
user: "user";
|
|
930
|
+
system: "system";
|
|
931
|
+
group: "group";
|
|
932
|
+
}>;
|
|
933
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
934
|
+
id: z.ZodString;
|
|
935
|
+
name: z.ZodString;
|
|
936
|
+
username: z.ZodOptional<z.ZodString>;
|
|
937
|
+
image: z.ZodOptional<z.ZodString>;
|
|
938
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
939
|
+
CREATIVE: "CREATIVE";
|
|
940
|
+
BRAND: "BRAND";
|
|
941
|
+
INVESTOR: "INVESTOR";
|
|
942
|
+
ADMIN: "ADMIN";
|
|
943
|
+
}>>;
|
|
944
|
+
}, z.core.$strip>>;
|
|
945
|
+
actorOverflowCount: z.ZodOptional<z.ZodInt>;
|
|
946
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
947
|
+
name: z.ZodEnum<{
|
|
948
|
+
user: "user";
|
|
949
|
+
heart: "heart";
|
|
950
|
+
bell: "bell";
|
|
951
|
+
briefcase: "briefcase";
|
|
952
|
+
"badge-check": "badge-check";
|
|
953
|
+
alert: "alert";
|
|
954
|
+
megaphone: "megaphone";
|
|
955
|
+
}>;
|
|
956
|
+
intent: z.ZodOptional<z.ZodEnum<{
|
|
957
|
+
success: "success";
|
|
958
|
+
primary: "primary";
|
|
959
|
+
neutral: "neutral";
|
|
960
|
+
warning: "warning";
|
|
961
|
+
danger: "danger";
|
|
962
|
+
}>>;
|
|
963
|
+
}, z.core.$strip>>;
|
|
964
|
+
message: z.ZodObject<{
|
|
965
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
966
|
+
text: z.ZodString;
|
|
967
|
+
tone: z.ZodOptional<z.ZodEnum<{
|
|
968
|
+
default: "default";
|
|
969
|
+
primary: "primary";
|
|
970
|
+
muted: "muted";
|
|
971
|
+
}>>;
|
|
972
|
+
weight: z.ZodOptional<z.ZodEnum<{
|
|
973
|
+
regular: "regular";
|
|
974
|
+
medium: "medium";
|
|
975
|
+
semibold: "semibold";
|
|
976
|
+
}>>;
|
|
977
|
+
href: z.ZodOptional<z.ZodString>;
|
|
978
|
+
}, z.core.$strip>>;
|
|
979
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
980
|
+
contextLabel: z.ZodOptional<z.ZodString>;
|
|
981
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
984
|
+
href: z.ZodString;
|
|
985
|
+
entityType: z.ZodEnum<{
|
|
986
|
+
PROJECT: "PROJECT";
|
|
987
|
+
USER: "USER";
|
|
988
|
+
JOB: "JOB";
|
|
989
|
+
POST: "POST";
|
|
990
|
+
PRODUCT: "PRODUCT";
|
|
991
|
+
COMMENT: "COMMENT";
|
|
992
|
+
JOB_APPLICATION: "JOB_APPLICATION";
|
|
993
|
+
CHAT: "CHAT";
|
|
994
|
+
SETTINGS: "SETTINGS";
|
|
995
|
+
}>;
|
|
996
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
997
|
+
}, z.core.$strip>>;
|
|
998
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
999
|
+
type: z.ZodEnum<{
|
|
1000
|
+
image: "image";
|
|
1001
|
+
project: "project";
|
|
1002
|
+
post: "post";
|
|
1003
|
+
job: "job";
|
|
1004
|
+
product: "product";
|
|
1005
|
+
comment: "comment";
|
|
1006
|
+
}>;
|
|
1007
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
imageAlt: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
ownerName: z.ZodOptional<z.ZodString>;
|
|
1013
|
+
ownerAvatarUrl: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
1015
|
+
warning: "warning";
|
|
1016
|
+
featured: "featured";
|
|
1017
|
+
locked: "locked";
|
|
1018
|
+
new: "new";
|
|
1019
|
+
}>>;
|
|
1020
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
}, z.core.$strip>>;
|
|
1022
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1023
|
+
id: z.ZodString;
|
|
1024
|
+
label: z.ZodString;
|
|
1025
|
+
style: z.ZodEnum<{
|
|
1026
|
+
link: "link";
|
|
1027
|
+
primary: "primary";
|
|
1028
|
+
secondary: "secondary";
|
|
1029
|
+
}>;
|
|
1030
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
mutation: z.ZodOptional<z.ZodObject<{
|
|
1032
|
+
method: z.ZodEnum<{
|
|
1033
|
+
POST: "POST";
|
|
1034
|
+
PATCH: "PATCH";
|
|
1035
|
+
}>;
|
|
1036
|
+
endpoint: z.ZodString;
|
|
1037
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1038
|
+
}, z.core.$strip>>;
|
|
1039
|
+
}, z.core.$strip>>>;
|
|
1040
|
+
menuActions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1041
|
+
mark_read: "mark_read";
|
|
1042
|
+
mark_unread: "mark_unread";
|
|
1043
|
+
archive: "archive";
|
|
1044
|
+
unarchive: "unarchive";
|
|
1045
|
+
delete: "delete";
|
|
1046
|
+
mute_type: "mute_type";
|
|
1047
|
+
}>>>;
|
|
1048
|
+
}, z.core.$strip>>;
|
|
1049
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
unreadCount: z.ZodInt;
|
|
1051
|
+
tabCounts: z.ZodOptional<z.ZodObject<{
|
|
1052
|
+
all: z.ZodOptional<z.ZodInt>;
|
|
1053
|
+
following: z.ZodOptional<z.ZodInt>;
|
|
1054
|
+
likes: z.ZodOptional<z.ZodInt>;
|
|
1055
|
+
comments: z.ZodOptional<z.ZodInt>;
|
|
1056
|
+
archived: z.ZodOptional<z.ZodInt>;
|
|
1057
|
+
}, z.core.$strip>>;
|
|
1058
|
+
}, z.core.$strip>;
|
|
1059
|
+
export type ListNotificationInboxOutput = z.infer<typeof ListNotificationInboxOutputSchema>;
|
|
330
1060
|
export declare const NotificationCountOutputSchema: z.ZodObject<{
|
|
331
1061
|
unreadCount: z.ZodInt;
|
|
332
1062
|
}, z.core.$strip>;
|