controlresell 2.4.9 → 2.4.19

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.
Files changed (124) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +42 -0
  3. package/src/com/controlresell/models/items/CreatedItems.d.ts.map +1 -1
  4. package/src/com/controlresell/models/items/Item.d.ts +34 -0
  5. package/src/com/controlresell/models/items/Item.d.ts.map +1 -1
  6. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +42 -0
  7. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts.map +1 -1
  8. package/src/com/controlresell/models/items/UpdatedItem.d.ts +42 -0
  9. package/src/com/controlresell/models/items/UpdatedItem.d.ts.map +1 -1
  10. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +26 -0
  11. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts.map +1 -1
  12. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +33 -0
  13. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts.map +1 -1
  14. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +26 -0
  15. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts.map +1 -1
  16. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +35 -0
  17. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts.map +1 -1
  18. package/src/com/controlresell/models/platforms/conversations/ConversationUpdate.d.ts +811 -0
  19. package/src/com/controlresell/models/platforms/conversations/ConversationUpdate.d.ts.map +1 -0
  20. package/src/com/controlresell/models/platforms/conversations/ConversationUpdate.js +13 -0
  21. package/src/com/controlresell/models/platforms/conversations/ConversationUpdate.js.map +1 -0
  22. package/src/com/controlresell/models/platforms/conversations/ConversationUpdate.ts +11 -0
  23. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +34 -0
  24. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts.map +1 -1
  25. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +6 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts.map +1 -1
  27. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +4 -1
  28. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js.map +1 -1
  29. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +4 -1
  30. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationOffer.d.ts +16 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationOffer.d.ts.map +1 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationOffer.js +10 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationOffer.js.map +1 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationOffer.ts +8 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationParameters.d.ts +16 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationParameters.d.ts.map +1 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationParameters.js +11 -0
  38. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationParameters.js.map +1 -0
  39. package/src/com/controlresell/models/platforms/conversations/messages/offers/NegotiationParameters.ts +9 -0
  40. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +60 -0
  41. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts.map +1 -1
  42. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +37 -0
  43. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts.map +1 -1
  44. package/src/com/controlresell/models/platforms/favorites/SendFavoritesRequest.d.ts +10 -0
  45. package/src/com/controlresell/models/platforms/favorites/SendFavoritesRequest.d.ts.map +1 -0
  46. package/src/com/controlresell/models/platforms/favorites/SendFavoritesRequest.js +8 -0
  47. package/src/com/controlresell/models/platforms/favorites/SendFavoritesRequest.js.map +1 -0
  48. package/src/com/controlresell/models/platforms/favorites/SendFavoritesRequest.ts +6 -0
  49. package/src/com/controlresell/models/platforms/orders/Order.d.ts +42 -0
  50. package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
  51. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +26 -0
  52. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts.map +1 -1
  53. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +34 -0
  54. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts.map +1 -1
  55. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +92 -0
  56. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  57. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +42 -0
  58. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts.map +1 -1
  59. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +34 -0
  60. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts.map +1 -1
  61. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +92 -0
  62. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts.map +1 -1
  63. package/src/com/controlresell/models/preferences/Preference.d.ts +79 -0
  64. package/src/com/controlresell/models/preferences/Preference.d.ts.map +1 -1
  65. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +68 -0
  66. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts.map +1 -1
  67. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +237 -0
  68. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts.map +1 -1
  69. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +168 -0
  70. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts.map +1 -1
  71. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +69 -0
  72. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts.map +1 -1
  73. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +69 -0
  74. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts.map +1 -1
  75. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +69 -0
  76. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts.map +1 -1
  77. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +29 -0
  78. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts.map +1 -1
  79. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +40 -0
  80. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts.map +1 -1
  81. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +7 -1
  82. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js.map +1 -1
  83. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +8 -0
  84. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +39 -0
  85. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts.map +1 -1
  86. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextsPayload.d.ts +10 -0
  87. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextsPayload.d.ts.map +1 -0
  88. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextsPayload.js +8 -0
  89. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextsPayload.js.map +1 -0
  90. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextsPayload.ts +6 -0
  91. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +306 -0
  92. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts.map +1 -1
  93. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +59 -0
  94. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts.map +1 -1
  95. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +59 -0
  96. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts.map +1 -1
  97. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +98 -0
  98. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts.map +1 -1
  99. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +59 -0
  100. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts.map +1 -1
  101. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +26 -0
  102. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts.map +1 -1
  103. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +26 -0
  104. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts.map +1 -1
  105. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +18 -0
  106. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts.map +1 -1
  107. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +3 -1
  108. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js.map +1 -1
  109. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +3 -1
  110. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +18 -0
  111. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts.map +1 -1
  112. package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +3 -1
  113. package/src/com/controlresell/models/users/platforms/UserOnPlatform.js.map +1 -1
  114. package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +3 -1
  115. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +550 -0
  116. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  117. package/src/com/controlresell/models/users/ws/UserWsPayload.js +2 -0
  118. package/src/com/controlresell/models/users/ws/UserWsPayload.js.map +1 -1
  119. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +2 -0
  120. package/src/index.d.ts +5 -0
  121. package/src/index.d.ts.map +1 -1
  122. package/src/index.js +13 -3
  123. package/src/index.js.map +1 -1
  124. package/src/index.ts +5 -0
@@ -12,12 +12,26 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
12
12
  name: z.ZodString;
13
13
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
15
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ startsAt: z.ZodDate;
17
+ endsAt: z.ZodDate;
18
+ }, "strip", z.ZodTypeAny, {
19
+ startsAt: Date;
20
+ endsAt: Date;
21
+ }, {
22
+ startsAt: Date;
23
+ endsAt: Date;
24
+ }>>>;
15
25
  }, "strip", z.ZodTypeAny, {
16
26
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
17
27
  userId: string | number;
18
28
  name: string;
19
29
  platform: "VINTED" | "SHOPIFY";
20
30
  accountId: string;
31
+ night?: {
32
+ startsAt: Date;
33
+ endsAt: Date;
34
+ } | null | undefined;
21
35
  locale?: string | null | undefined;
22
36
  }, {
23
37
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
@@ -25,6 +39,10 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
25
39
  name: string;
26
40
  platform: "VINTED" | "SHOPIFY";
27
41
  accountId: string;
42
+ night?: {
43
+ startsAt: Date;
44
+ endsAt: Date;
45
+ } | null | undefined;
28
46
  locale?: string | null | undefined;
29
47
  }>>>;
30
48
  lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -266,6 +284,10 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
266
284
  name: string;
267
285
  platform: "VINTED" | "SHOPIFY";
268
286
  accountId: string;
287
+ night?: {
288
+ startsAt: Date;
289
+ endsAt: Date;
290
+ } | null | undefined;
269
291
  locale?: string | null | undefined;
270
292
  } | null | undefined;
271
293
  users?: {
@@ -333,6 +355,10 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
333
355
  name: string;
334
356
  platform: "VINTED" | "SHOPIFY";
335
357
  accountId: string;
358
+ night?: {
359
+ startsAt: Date;
360
+ endsAt: Date;
361
+ } | null | undefined;
336
362
  locale?: string | null | undefined;
337
363
  } | null | undefined;
338
364
  users?: {
@@ -390,6 +416,173 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
390
416
  } | null | undefined;
391
417
  } | null | undefined;
392
418
  }>;
419
+ newMessages: z.ZodArray<z.ZodObject<{
420
+ id: z.ZodString;
421
+ conversationId: z.ZodString;
422
+ conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
425
+ status: z.ZodEnum<["NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT"]>;
426
+ associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
427
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ createdAt: z.ZodDate;
429
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
430
+ id: z.ZodString;
431
+ platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ messageId: z.ZodString;
433
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ price: z.ZodNumber;
435
+ originalPrice: z.ZodNumber;
436
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
439
+ id: string;
440
+ price: number;
441
+ messageId: string;
442
+ originalPrice: number;
443
+ transactionId?: string | null | undefined;
444
+ platformOfferId?: string | null | undefined;
445
+ }, {
446
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
447
+ id: string;
448
+ price: number;
449
+ messageId: string;
450
+ originalPrice: number;
451
+ transactionId?: string | null | undefined;
452
+ platformOfferId?: string | null | undefined;
453
+ }>>>;
454
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
455
+ messageId: z.ZodString;
456
+ lang: z.ZodString;
457
+ body: z.ZodString;
458
+ }, "strip", z.ZodTypeAny, {
459
+ messageId: string;
460
+ body: string;
461
+ lang: string;
462
+ }, {
463
+ messageId: string;
464
+ body: string;
465
+ lang: string;
466
+ }>>>;
467
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
468
+ fileId: z.ZodString;
469
+ messageId: z.ZodString;
470
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
471
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
472
+ id: z.ZodString;
473
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
474
+ path: z.ZodString;
475
+ signedUrl: z.ZodString;
476
+ createdAt: z.ZodDate;
477
+ }, "strip", z.ZodTypeAny, {
478
+ path: string;
479
+ id: string;
480
+ userId: string | number;
481
+ signedUrl: string;
482
+ createdAt: Date;
483
+ }, {
484
+ path: string;
485
+ id: string;
486
+ userId: string | number;
487
+ signedUrl: string;
488
+ createdAt: Date;
489
+ }>>>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ fileId: string;
492
+ messageId: string;
493
+ file?: {
494
+ path: string;
495
+ id: string;
496
+ userId: string | number;
497
+ signedUrl: string;
498
+ createdAt: Date;
499
+ } | null | undefined;
500
+ index?: number | null | undefined;
501
+ }, {
502
+ fileId: string;
503
+ messageId: string;
504
+ file?: {
505
+ path: string;
506
+ id: string;
507
+ userId: string | number;
508
+ signedUrl: string;
509
+ createdAt: Date;
510
+ } | null | undefined;
511
+ index?: number | null | undefined;
512
+ }>, "many">>>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
515
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
516
+ id: string;
517
+ createdAt: Date;
518
+ conversationId: string;
519
+ body?: string | null | undefined;
520
+ offer?: {
521
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
522
+ id: string;
523
+ price: number;
524
+ messageId: string;
525
+ originalPrice: number;
526
+ transactionId?: string | null | undefined;
527
+ platformOfferId?: string | null | undefined;
528
+ } | null | undefined;
529
+ files?: {
530
+ fileId: string;
531
+ messageId: string;
532
+ file?: {
533
+ path: string;
534
+ id: string;
535
+ userId: string | number;
536
+ signedUrl: string;
537
+ createdAt: Date;
538
+ } | null | undefined;
539
+ index?: number | null | undefined;
540
+ }[] | null | undefined;
541
+ conversationUserId?: string | null | undefined;
542
+ platformMessageId?: string | null | undefined;
543
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
544
+ translation?: {
545
+ messageId: string;
546
+ body: string;
547
+ lang: string;
548
+ } | null | undefined;
549
+ }, {
550
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
551
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
552
+ id: string;
553
+ createdAt: Date;
554
+ conversationId: string;
555
+ body?: string | null | undefined;
556
+ offer?: {
557
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
558
+ id: string;
559
+ price: number;
560
+ messageId: string;
561
+ originalPrice: number;
562
+ transactionId?: string | null | undefined;
563
+ platformOfferId?: string | null | undefined;
564
+ } | null | undefined;
565
+ files?: {
566
+ fileId: string;
567
+ messageId: string;
568
+ file?: {
569
+ path: string;
570
+ id: string;
571
+ userId: string | number;
572
+ signedUrl: string;
573
+ createdAt: Date;
574
+ } | null | undefined;
575
+ index?: number | null | undefined;
576
+ }[] | null | undefined;
577
+ conversationUserId?: string | null | undefined;
578
+ platformMessageId?: string | null | undefined;
579
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
580
+ translation?: {
581
+ messageId: string;
582
+ body: string;
583
+ lang: string;
584
+ } | null | undefined;
585
+ }>, "many">;
393
586
  type: z.ZodLiteral<"CONVERSATION">;
394
587
  }, "strip", z.ZodTypeAny, {
395
588
  type: "CONVERSATION";
@@ -404,6 +597,10 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
404
597
  name: string;
405
598
  platform: "VINTED" | "SHOPIFY";
406
599
  accountId: string;
600
+ night?: {
601
+ startsAt: Date;
602
+ endsAt: Date;
603
+ } | null | undefined;
407
604
  locale?: string | null | undefined;
408
605
  } | null | undefined;
409
606
  users?: {
@@ -461,6 +658,43 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
461
658
  } | null | undefined;
462
659
  } | null | undefined;
463
660
  };
661
+ newMessages: {
662
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
663
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
664
+ id: string;
665
+ createdAt: Date;
666
+ conversationId: string;
667
+ body?: string | null | undefined;
668
+ offer?: {
669
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
670
+ id: string;
671
+ price: number;
672
+ messageId: string;
673
+ originalPrice: number;
674
+ transactionId?: string | null | undefined;
675
+ platformOfferId?: string | null | undefined;
676
+ } | null | undefined;
677
+ files?: {
678
+ fileId: string;
679
+ messageId: string;
680
+ file?: {
681
+ path: string;
682
+ id: string;
683
+ userId: string | number;
684
+ signedUrl: string;
685
+ createdAt: Date;
686
+ } | null | undefined;
687
+ index?: number | null | undefined;
688
+ }[] | null | undefined;
689
+ conversationUserId?: string | null | undefined;
690
+ platformMessageId?: string | null | undefined;
691
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
692
+ translation?: {
693
+ messageId: string;
694
+ body: string;
695
+ lang: string;
696
+ } | null | undefined;
697
+ }[];
464
698
  }, {
465
699
  type: "CONVERSATION";
466
700
  conversation: {
@@ -474,6 +708,10 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
474
708
  name: string;
475
709
  platform: "VINTED" | "SHOPIFY";
476
710
  accountId: string;
711
+ night?: {
712
+ startsAt: Date;
713
+ endsAt: Date;
714
+ } | null | undefined;
477
715
  locale?: string | null | undefined;
478
716
  } | null | undefined;
479
717
  users?: {
@@ -531,6 +769,43 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
531
769
  } | null | undefined;
532
770
  } | null | undefined;
533
771
  };
772
+ newMessages: {
773
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
774
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
775
+ id: string;
776
+ createdAt: Date;
777
+ conversationId: string;
778
+ body?: string | null | undefined;
779
+ offer?: {
780
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
781
+ id: string;
782
+ price: number;
783
+ messageId: string;
784
+ originalPrice: number;
785
+ transactionId?: string | null | undefined;
786
+ platformOfferId?: string | null | undefined;
787
+ } | null | undefined;
788
+ files?: {
789
+ fileId: string;
790
+ messageId: string;
791
+ file?: {
792
+ path: string;
793
+ id: string;
794
+ userId: string | number;
795
+ signedUrl: string;
796
+ createdAt: Date;
797
+ } | null | undefined;
798
+ index?: number | null | undefined;
799
+ }[] | null | undefined;
800
+ conversationUserId?: string | null | undefined;
801
+ platformMessageId?: string | null | undefined;
802
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
803
+ translation?: {
804
+ messageId: string;
805
+ body: string;
806
+ lang: string;
807
+ } | null | undefined;
808
+ }[];
534
809
  }>;
535
810
  export type UserWsPayloadConversation = z.infer<typeof UserWsPayloadConversationSchema>;
536
811
  export declare const UserWsPayloadEmptySchema: z.ZodObject<{
@@ -618,12 +893,26 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
618
893
  name: z.ZodString;
619
894
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
895
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
896
+ night: z.ZodOptional<z.ZodNullable<z.ZodObject<{
897
+ startsAt: z.ZodDate;
898
+ endsAt: z.ZodDate;
899
+ }, "strip", z.ZodTypeAny, {
900
+ startsAt: Date;
901
+ endsAt: Date;
902
+ }, {
903
+ startsAt: Date;
904
+ endsAt: Date;
905
+ }>>>;
621
906
  }, "strip", z.ZodTypeAny, {
622
907
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
623
908
  userId: string | number;
624
909
  name: string;
625
910
  platform: "VINTED" | "SHOPIFY";
626
911
  accountId: string;
912
+ night?: {
913
+ startsAt: Date;
914
+ endsAt: Date;
915
+ } | null | undefined;
627
916
  locale?: string | null | undefined;
628
917
  }, {
629
918
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
@@ -631,6 +920,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
631
920
  name: string;
632
921
  platform: "VINTED" | "SHOPIFY";
633
922
  accountId: string;
923
+ night?: {
924
+ startsAt: Date;
925
+ endsAt: Date;
926
+ } | null | undefined;
634
927
  locale?: string | null | undefined;
635
928
  }>>>;
636
929
  lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -872,6 +1165,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
872
1165
  name: string;
873
1166
  platform: "VINTED" | "SHOPIFY";
874
1167
  accountId: string;
1168
+ night?: {
1169
+ startsAt: Date;
1170
+ endsAt: Date;
1171
+ } | null | undefined;
875
1172
  locale?: string | null | undefined;
876
1173
  } | null | undefined;
877
1174
  users?: {
@@ -939,6 +1236,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
939
1236
  name: string;
940
1237
  platform: "VINTED" | "SHOPIFY";
941
1238
  accountId: string;
1239
+ night?: {
1240
+ startsAt: Date;
1241
+ endsAt: Date;
1242
+ } | null | undefined;
942
1243
  locale?: string | null | undefined;
943
1244
  } | null | undefined;
944
1245
  users?: {
@@ -996,6 +1297,173 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
996
1297
  } | null | undefined;
997
1298
  } | null | undefined;
998
1299
  }>;
1300
+ newMessages: z.ZodArray<z.ZodObject<{
1301
+ id: z.ZodString;
1302
+ conversationId: z.ZodString;
1303
+ conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1304
+ platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1305
+ type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
1306
+ status: z.ZodEnum<["NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT"]>;
1307
+ associatedPreferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>>>;
1308
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1309
+ createdAt: z.ZodDate;
1310
+ offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1311
+ id: z.ZodString;
1312
+ platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
+ messageId: z.ZodString;
1314
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1315
+ price: z.ZodNumber;
1316
+ originalPrice: z.ZodNumber;
1317
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1320
+ id: string;
1321
+ price: number;
1322
+ messageId: string;
1323
+ originalPrice: number;
1324
+ transactionId?: string | null | undefined;
1325
+ platformOfferId?: string | null | undefined;
1326
+ }, {
1327
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1328
+ id: string;
1329
+ price: number;
1330
+ messageId: string;
1331
+ originalPrice: number;
1332
+ transactionId?: string | null | undefined;
1333
+ platformOfferId?: string | null | undefined;
1334
+ }>>>;
1335
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1336
+ messageId: z.ZodString;
1337
+ lang: z.ZodString;
1338
+ body: z.ZodString;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ messageId: string;
1341
+ body: string;
1342
+ lang: string;
1343
+ }, {
1344
+ messageId: string;
1345
+ body: string;
1346
+ lang: string;
1347
+ }>>>;
1348
+ files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1349
+ fileId: z.ZodString;
1350
+ messageId: z.ZodString;
1351
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1352
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1353
+ id: z.ZodString;
1354
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1355
+ path: z.ZodString;
1356
+ signedUrl: z.ZodString;
1357
+ createdAt: z.ZodDate;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ path: string;
1360
+ id: string;
1361
+ userId: string | number;
1362
+ signedUrl: string;
1363
+ createdAt: Date;
1364
+ }, {
1365
+ path: string;
1366
+ id: string;
1367
+ userId: string | number;
1368
+ signedUrl: string;
1369
+ createdAt: Date;
1370
+ }>>>;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ fileId: string;
1373
+ messageId: string;
1374
+ file?: {
1375
+ path: string;
1376
+ id: string;
1377
+ userId: string | number;
1378
+ signedUrl: string;
1379
+ createdAt: Date;
1380
+ } | null | undefined;
1381
+ index?: number | null | undefined;
1382
+ }, {
1383
+ fileId: string;
1384
+ messageId: string;
1385
+ file?: {
1386
+ path: string;
1387
+ id: string;
1388
+ userId: string | number;
1389
+ signedUrl: string;
1390
+ createdAt: Date;
1391
+ } | null | undefined;
1392
+ index?: number | null | undefined;
1393
+ }>, "many">>>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1396
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
1397
+ id: string;
1398
+ createdAt: Date;
1399
+ conversationId: string;
1400
+ body?: string | null | undefined;
1401
+ offer?: {
1402
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1403
+ id: string;
1404
+ price: number;
1405
+ messageId: string;
1406
+ originalPrice: number;
1407
+ transactionId?: string | null | undefined;
1408
+ platformOfferId?: string | null | undefined;
1409
+ } | null | undefined;
1410
+ files?: {
1411
+ fileId: string;
1412
+ messageId: string;
1413
+ file?: {
1414
+ path: string;
1415
+ id: string;
1416
+ userId: string | number;
1417
+ signedUrl: string;
1418
+ createdAt: Date;
1419
+ } | null | undefined;
1420
+ index?: number | null | undefined;
1421
+ }[] | null | undefined;
1422
+ conversationUserId?: string | null | undefined;
1423
+ platformMessageId?: string | null | undefined;
1424
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
1425
+ translation?: {
1426
+ messageId: string;
1427
+ body: string;
1428
+ lang: string;
1429
+ } | null | undefined;
1430
+ }, {
1431
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1432
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
1433
+ id: string;
1434
+ createdAt: Date;
1435
+ conversationId: string;
1436
+ body?: string | null | undefined;
1437
+ offer?: {
1438
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1439
+ id: string;
1440
+ price: number;
1441
+ messageId: string;
1442
+ originalPrice: number;
1443
+ transactionId?: string | null | undefined;
1444
+ platformOfferId?: string | null | undefined;
1445
+ } | null | undefined;
1446
+ files?: {
1447
+ fileId: string;
1448
+ messageId: string;
1449
+ file?: {
1450
+ path: string;
1451
+ id: string;
1452
+ userId: string | number;
1453
+ signedUrl: string;
1454
+ createdAt: Date;
1455
+ } | null | undefined;
1456
+ index?: number | null | undefined;
1457
+ }[] | null | undefined;
1458
+ conversationUserId?: string | null | undefined;
1459
+ platformMessageId?: string | null | undefined;
1460
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
1461
+ translation?: {
1462
+ messageId: string;
1463
+ body: string;
1464
+ lang: string;
1465
+ } | null | undefined;
1466
+ }>, "many">;
999
1467
  type: z.ZodLiteral<"CONVERSATION">;
1000
1468
  }, "strip", z.ZodTypeAny, {
1001
1469
  type: "CONVERSATION";
@@ -1010,6 +1478,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1010
1478
  name: string;
1011
1479
  platform: "VINTED" | "SHOPIFY";
1012
1480
  accountId: string;
1481
+ night?: {
1482
+ startsAt: Date;
1483
+ endsAt: Date;
1484
+ } | null | undefined;
1013
1485
  locale?: string | null | undefined;
1014
1486
  } | null | undefined;
1015
1487
  users?: {
@@ -1067,6 +1539,43 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1067
1539
  } | null | undefined;
1068
1540
  } | null | undefined;
1069
1541
  };
1542
+ newMessages: {
1543
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1544
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
1545
+ id: string;
1546
+ createdAt: Date;
1547
+ conversationId: string;
1548
+ body?: string | null | undefined;
1549
+ offer?: {
1550
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1551
+ id: string;
1552
+ price: number;
1553
+ messageId: string;
1554
+ originalPrice: number;
1555
+ transactionId?: string | null | undefined;
1556
+ platformOfferId?: string | null | undefined;
1557
+ } | null | undefined;
1558
+ files?: {
1559
+ fileId: string;
1560
+ messageId: string;
1561
+ file?: {
1562
+ path: string;
1563
+ id: string;
1564
+ userId: string | number;
1565
+ signedUrl: string;
1566
+ createdAt: Date;
1567
+ } | null | undefined;
1568
+ index?: number | null | undefined;
1569
+ }[] | null | undefined;
1570
+ conversationUserId?: string | null | undefined;
1571
+ platformMessageId?: string | null | undefined;
1572
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
1573
+ translation?: {
1574
+ messageId: string;
1575
+ body: string;
1576
+ lang: string;
1577
+ } | null | undefined;
1578
+ }[];
1070
1579
  }, {
1071
1580
  type: "CONVERSATION";
1072
1581
  conversation: {
@@ -1080,6 +1589,10 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1080
1589
  name: string;
1081
1590
  platform: "VINTED" | "SHOPIFY";
1082
1591
  accountId: string;
1592
+ night?: {
1593
+ startsAt: Date;
1594
+ endsAt: Date;
1595
+ } | null | undefined;
1083
1596
  locale?: string | null | undefined;
1084
1597
  } | null | undefined;
1085
1598
  users?: {
@@ -1137,6 +1650,43 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
1137
1650
  } | null | undefined;
1138
1651
  } | null | undefined;
1139
1652
  };
1653
+ newMessages: {
1654
+ type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
1655
+ status: "CANCELED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT";
1656
+ id: string;
1657
+ createdAt: Date;
1658
+ conversationId: string;
1659
+ body?: string | null | undefined;
1660
+ offer?: {
1661
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
1662
+ id: string;
1663
+ price: number;
1664
+ messageId: string;
1665
+ originalPrice: number;
1666
+ transactionId?: string | null | undefined;
1667
+ platformOfferId?: string | null | undefined;
1668
+ } | null | undefined;
1669
+ files?: {
1670
+ fileId: string;
1671
+ messageId: string;
1672
+ file?: {
1673
+ path: string;
1674
+ id: string;
1675
+ userId: string | number;
1676
+ signedUrl: string;
1677
+ createdAt: Date;
1678
+ } | null | undefined;
1679
+ index?: number | null | undefined;
1680
+ }[] | null | undefined;
1681
+ conversationUserId?: string | null | undefined;
1682
+ platformMessageId?: string | null | undefined;
1683
+ associatedPreferenceType?: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE" | null | undefined;
1684
+ translation?: {
1685
+ messageId: string;
1686
+ body: string;
1687
+ lang: string;
1688
+ } | null | undefined;
1689
+ }[];
1140
1690
  }>, z.ZodObject<{
1141
1691
  type: z.ZodLiteral<"EMPTY">;
1142
1692
  }, "strip", z.ZodTypeAny, {