controlresell 2.24.7 → 2.25.0
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 +1 -1
- package/src/com/controlresell/models/conversations/Conversation.d.ts +7 -7
- package/src/com/controlresell/models/conversations/ConversationUpdate.d.ts +16 -16
- package/src/com/controlresell/models/conversations/UserConversations.d.ts +9 -9
- package/src/com/controlresell/models/conversations/messages/ConversationMessage.d.ts +5 -5
- package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.d.ts +1 -1
- package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.js +1 -1
- package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.js.map +1 -1
- package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.ts +1 -1
- package/src/com/controlresell/models/conversations/messages/CreateConversationMessagePayload.d.ts +2 -2
- package/src/com/controlresell/models/conversations/messages/PaginatedConversationMessages.d.ts +7 -7
- package/src/com/controlresell/models/conversations/messages/UpdateConversationMessagePayload.d.ts +2 -2
- package/src/com/controlresell/models/conversations/messages/history/ConversationMessageStatusHistory.d.ts +2 -2
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +32 -32
package/package.json
CHANGED
|
@@ -116,15 +116,15 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
116
116
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
118
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
119
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
119
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
120
120
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
121
121
|
id: z.ZodString;
|
|
122
122
|
messageId: z.ZodString;
|
|
123
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
123
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
124
124
|
createdAt: z.ZodDate;
|
|
125
125
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
127
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
128
128
|
id: string;
|
|
129
129
|
createdAt: Date;
|
|
130
130
|
messageId: string;
|
|
@@ -234,7 +234,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
234
234
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
236
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
237
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
237
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
238
238
|
id: string;
|
|
239
239
|
createdAt: Date;
|
|
240
240
|
conversationId: string;
|
|
@@ -269,7 +269,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
269
269
|
platformMessageId?: string | null | undefined;
|
|
270
270
|
scheduledAt?: Date | null | undefined;
|
|
271
271
|
statusHistory?: {
|
|
272
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
272
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
273
273
|
id: string;
|
|
274
274
|
createdAt: Date;
|
|
275
275
|
messageId: string;
|
|
@@ -486,7 +486,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
486
486
|
lastRead?: Date | null | undefined;
|
|
487
487
|
lastMessage?: {
|
|
488
488
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
489
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
489
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
490
490
|
id: string;
|
|
491
491
|
createdAt: Date;
|
|
492
492
|
conversationId: string;
|
|
@@ -521,7 +521,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
521
521
|
platformMessageId?: string | null | undefined;
|
|
522
522
|
scheduledAt?: Date | null | undefined;
|
|
523
523
|
statusHistory?: {
|
|
524
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
524
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
525
525
|
id: string;
|
|
526
526
|
createdAt: Date;
|
|
527
527
|
messageId: string;
|
|
@@ -118,15 +118,15 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
118
118
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
119
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
120
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
121
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
121
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
122
122
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
123
123
|
id: z.ZodString;
|
|
124
124
|
messageId: z.ZodString;
|
|
125
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
125
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
126
126
|
createdAt: z.ZodDate;
|
|
127
127
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
129
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
130
130
|
id: string;
|
|
131
131
|
createdAt: Date;
|
|
132
132
|
messageId: string;
|
|
@@ -236,7 +236,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
236
236
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
239
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
239
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
240
240
|
id: string;
|
|
241
241
|
createdAt: Date;
|
|
242
242
|
conversationId: string;
|
|
@@ -271,7 +271,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
271
271
|
platformMessageId?: string | null | undefined;
|
|
272
272
|
scheduledAt?: Date | null | undefined;
|
|
273
273
|
statusHistory?: {
|
|
274
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
274
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
275
275
|
id: string;
|
|
276
276
|
createdAt: Date;
|
|
277
277
|
messageId: string;
|
|
@@ -488,7 +488,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
488
488
|
lastRead?: Date | null | undefined;
|
|
489
489
|
lastMessage?: {
|
|
490
490
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
491
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
491
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
492
492
|
id: string;
|
|
493
493
|
createdAt: Date;
|
|
494
494
|
conversationId: string;
|
|
@@ -523,7 +523,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
523
523
|
platformMessageId?: string | null | undefined;
|
|
524
524
|
scheduledAt?: Date | null | undefined;
|
|
525
525
|
statusHistory?: {
|
|
526
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
526
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
527
527
|
id: string;
|
|
528
528
|
createdAt: Date;
|
|
529
529
|
messageId: string;
|
|
@@ -655,15 +655,15 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
655
655
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
656
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
657
657
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
658
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
658
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
659
659
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
660
660
|
id: z.ZodString;
|
|
661
661
|
messageId: z.ZodString;
|
|
662
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
662
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
663
663
|
createdAt: z.ZodDate;
|
|
664
664
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
665
665
|
}, "strip", z.ZodTypeAny, {
|
|
666
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
666
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
667
667
|
id: string;
|
|
668
668
|
createdAt: Date;
|
|
669
669
|
messageId: string;
|
|
@@ -773,7 +773,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
773
773
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
774
774
|
}, "strip", z.ZodTypeAny, {
|
|
775
775
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
776
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
776
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
777
777
|
id: string;
|
|
778
778
|
createdAt: Date;
|
|
779
779
|
conversationId: string;
|
|
@@ -808,7 +808,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
808
808
|
platformMessageId?: string | null | undefined;
|
|
809
809
|
scheduledAt?: Date | null | undefined;
|
|
810
810
|
statusHistory?: {
|
|
811
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
811
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
812
812
|
id: string;
|
|
813
813
|
createdAt: Date;
|
|
814
814
|
messageId: string;
|
|
@@ -936,7 +936,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
936
936
|
lastRead?: Date | null | undefined;
|
|
937
937
|
lastMessage?: {
|
|
938
938
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
939
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
939
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
940
940
|
id: string;
|
|
941
941
|
createdAt: Date;
|
|
942
942
|
conversationId: string;
|
|
@@ -971,7 +971,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
971
971
|
platformMessageId?: string | null | undefined;
|
|
972
972
|
scheduledAt?: Date | null | undefined;
|
|
973
973
|
statusHistory?: {
|
|
974
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
974
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
975
975
|
id: string;
|
|
976
976
|
createdAt: Date;
|
|
977
977
|
messageId: string;
|
|
@@ -986,7 +986,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
986
986
|
};
|
|
987
987
|
newMessages: {
|
|
988
988
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
989
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
989
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
990
990
|
id: string;
|
|
991
991
|
createdAt: Date;
|
|
992
992
|
conversationId: string;
|
|
@@ -1021,7 +1021,7 @@ export declare const ConversationUpdateSchema: z.ZodObject<{
|
|
|
1021
1021
|
platformMessageId?: string | null | undefined;
|
|
1022
1022
|
scheduledAt?: Date | null | undefined;
|
|
1023
1023
|
statusHistory?: {
|
|
1024
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1024
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1025
1025
|
id: string;
|
|
1026
1026
|
createdAt: Date;
|
|
1027
1027
|
messageId: string;
|
|
@@ -129,15 +129,15 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
129
129
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
130
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
132
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
132
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
133
133
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
134
134
|
id: z.ZodString;
|
|
135
135
|
messageId: z.ZodString;
|
|
136
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
136
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
137
137
|
createdAt: z.ZodDate;
|
|
138
138
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
140
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
141
141
|
id: string;
|
|
142
142
|
createdAt: Date;
|
|
143
143
|
messageId: string;
|
|
@@ -247,7 +247,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
247
247
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
249
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
250
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
250
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: Date;
|
|
253
253
|
conversationId: string;
|
|
@@ -282,7 +282,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
282
282
|
platformMessageId?: string | null | undefined;
|
|
283
283
|
scheduledAt?: Date | null | undefined;
|
|
284
284
|
statusHistory?: {
|
|
285
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
285
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
286
286
|
id: string;
|
|
287
287
|
createdAt: Date;
|
|
288
288
|
messageId: string;
|
|
@@ -499,7 +499,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
499
499
|
lastRead?: Date | null | undefined;
|
|
500
500
|
lastMessage?: {
|
|
501
501
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
502
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
502
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
503
503
|
id: string;
|
|
504
504
|
createdAt: Date;
|
|
505
505
|
conversationId: string;
|
|
@@ -534,7 +534,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
534
534
|
platformMessageId?: string | null | undefined;
|
|
535
535
|
scheduledAt?: Date | null | undefined;
|
|
536
536
|
statusHistory?: {
|
|
537
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
537
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
538
538
|
id: string;
|
|
539
539
|
createdAt: Date;
|
|
540
540
|
messageId: string;
|
|
@@ -730,7 +730,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
730
730
|
lastRead?: Date | null | undefined;
|
|
731
731
|
lastMessage?: {
|
|
732
732
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
733
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
733
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
734
734
|
id: string;
|
|
735
735
|
createdAt: Date;
|
|
736
736
|
conversationId: string;
|
|
@@ -765,7 +765,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
765
765
|
platformMessageId?: string | null | undefined;
|
|
766
766
|
scheduledAt?: Date | null | undefined;
|
|
767
767
|
statusHistory?: {
|
|
768
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
768
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
769
769
|
id: string;
|
|
770
770
|
createdAt: Date;
|
|
771
771
|
messageId: string;
|
|
@@ -5,15 +5,15 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
5
5
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
8
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
8
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
9
9
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
messageId: z.ZodString;
|
|
12
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
12
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
13
13
|
createdAt: z.ZodDate;
|
|
14
14
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
16
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
messageId: string;
|
|
@@ -123,7 +123,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
123
123
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
126
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
126
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
127
127
|
id: string;
|
|
128
128
|
createdAt: Date;
|
|
129
129
|
conversationId: string;
|
|
@@ -158,7 +158,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
158
158
|
platformMessageId?: string | null | undefined;
|
|
159
159
|
scheduledAt?: Date | null | undefined;
|
|
160
160
|
statusHistory?: {
|
|
161
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
161
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: Date;
|
|
164
164
|
messageId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ConversationMessageStatusSchema: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
2
|
+
export declare const ConversationMessageStatusSchema: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
3
3
|
export type ConversationMessageStatus = z.infer<typeof ConversationMessageStatusSchema>;
|
|
4
4
|
//# sourceMappingURL=ConversationMessageStatus.d.ts.map
|
package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMessageStatus.d.ts","sourceRoot":"","sources":["ConversationMessageStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"ConversationMessageStatus.d.ts","sourceRoot":"","sources":["ConversationMessageStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,+BAA+B,qJAEzB,CAAA;AACnB,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const ConversationMessageStatusSchema = z.enum([
|
|
3
|
-
"SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"
|
|
3
|
+
"SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"
|
|
4
4
|
]).catch("UNKNOWN");
|
|
5
5
|
//# sourceMappingURL=ConversationMessageStatus.js.map
|
package/src/com/controlresell/models/conversations/messages/ConversationMessageStatus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMessageStatus.js","sourceRoot":"","sources":["ConversationMessageStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"ConversationMessageStatus.js","sourceRoot":"","sources":["ConversationMessageStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS;CAC7H,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const ConversationMessageStatusSchema = z.enum([
|
|
4
|
-
"SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"
|
|
4
|
+
"SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"
|
|
5
5
|
]).catch("UNKNOWN")
|
|
6
6
|
export type ConversationMessageStatus = z.infer<typeof ConversationMessageStatusSchema>
|
package/src/com/controlresell/models/conversations/messages/CreateConversationMessagePayload.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const CreateConversationMessagePayloadSchema: z.ZodObject<{
|
|
|
3
3
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
6
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
6
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
7
7
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
9
|
preferenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["EXTERNAL", "FAVORITES", "NEGOTIATION", "QUESTIONS", "AUTOMATIC_REMINDER", "BUYER_PAID", "ORDER_DELIVERED", "ITEM_NO_LONGER_AVAILABLE"]>>>;
|
|
@@ -14,7 +14,7 @@ export declare const CreateConversationMessagePayloadSchema: z.ZodObject<{
|
|
|
14
14
|
scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
17
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
17
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
18
18
|
createdAt?: Date | null | undefined;
|
|
19
19
|
body?: string | null | undefined;
|
|
20
20
|
metadata?: string | null | undefined;
|
package/src/com/controlresell/models/conversations/messages/PaginatedConversationMessages.d.ts
CHANGED
|
@@ -7,15 +7,15 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
7
7
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
10
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
10
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
11
11
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
12
|
id: z.ZodString;
|
|
13
13
|
messageId: z.ZodString;
|
|
14
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
14
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
15
15
|
createdAt: z.ZodDate;
|
|
16
16
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
18
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
19
19
|
id: string;
|
|
20
20
|
createdAt: Date;
|
|
21
21
|
messageId: string;
|
|
@@ -125,7 +125,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
125
125
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
127
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
128
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
128
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: Date;
|
|
131
131
|
conversationId: string;
|
|
@@ -160,7 +160,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
160
160
|
platformMessageId?: string | null | undefined;
|
|
161
161
|
scheduledAt?: Date | null | undefined;
|
|
162
162
|
statusHistory?: {
|
|
163
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
163
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: Date;
|
|
166
166
|
messageId: string;
|
|
@@ -226,7 +226,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
226
226
|
count: number;
|
|
227
227
|
rows: {
|
|
228
228
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
229
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
229
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
230
230
|
id: string;
|
|
231
231
|
createdAt: Date;
|
|
232
232
|
conversationId: string;
|
|
@@ -261,7 +261,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
261
261
|
platformMessageId?: string | null | undefined;
|
|
262
262
|
scheduledAt?: Date | null | undefined;
|
|
263
263
|
statusHistory?: {
|
|
264
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
264
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
265
265
|
id: string;
|
|
266
266
|
createdAt: Date;
|
|
267
267
|
messageId: string;
|
package/src/com/controlresell/models/conversations/messages/UpdateConversationMessagePayload.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdateConversationMessagePayloadSchema: z.ZodObject<{
|
|
3
3
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>>>;
|
|
4
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>>>;
|
|
5
5
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
status?: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN" | null | undefined;
|
|
7
|
+
status?: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN" | null | undefined;
|
|
8
8
|
body?: string | null | undefined;
|
|
9
9
|
platformMessageId?: string | null | undefined;
|
|
10
10
|
}, {
|
|
@@ -2,11 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ConversationMessageStatusHistorySchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
messageId: z.ZodString;
|
|
5
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
5
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
6
6
|
createdAt: z.ZodDate;
|
|
7
7
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
9
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
10
10
|
id: string;
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
messageId: string;
|
|
@@ -128,15 +128,15 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
128
128
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
129
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
130
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
131
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
131
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
132
132
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
133
133
|
id: z.ZodString;
|
|
134
134
|
messageId: z.ZodString;
|
|
135
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
135
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
136
136
|
createdAt: z.ZodDate;
|
|
137
137
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
139
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
140
140
|
id: string;
|
|
141
141
|
createdAt: Date;
|
|
142
142
|
messageId: string;
|
|
@@ -246,7 +246,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
246
246
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
248
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
249
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
249
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: Date;
|
|
252
252
|
conversationId: string;
|
|
@@ -281,7 +281,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
281
281
|
platformMessageId?: string | null | undefined;
|
|
282
282
|
scheduledAt?: Date | null | undefined;
|
|
283
283
|
statusHistory?: {
|
|
284
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
284
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
285
285
|
id: string;
|
|
286
286
|
createdAt: Date;
|
|
287
287
|
messageId: string;
|
|
@@ -498,7 +498,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
498
498
|
lastRead?: Date | null | undefined;
|
|
499
499
|
lastMessage?: {
|
|
500
500
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
501
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
501
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
502
502
|
id: string;
|
|
503
503
|
createdAt: Date;
|
|
504
504
|
conversationId: string;
|
|
@@ -533,7 +533,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
533
533
|
platformMessageId?: string | null | undefined;
|
|
534
534
|
scheduledAt?: Date | null | undefined;
|
|
535
535
|
statusHistory?: {
|
|
536
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
536
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
537
537
|
id: string;
|
|
538
538
|
createdAt: Date;
|
|
539
539
|
messageId: string;
|
|
@@ -665,15 +665,15 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
665
665
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
666
666
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
667
667
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
668
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
668
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
669
669
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
670
670
|
id: z.ZodString;
|
|
671
671
|
messageId: z.ZodString;
|
|
672
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
672
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
673
673
|
createdAt: z.ZodDate;
|
|
674
674
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
675
675
|
}, "strip", z.ZodTypeAny, {
|
|
676
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
676
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
677
677
|
id: string;
|
|
678
678
|
createdAt: Date;
|
|
679
679
|
messageId: string;
|
|
@@ -783,7 +783,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
783
783
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
784
|
}, "strip", z.ZodTypeAny, {
|
|
785
785
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
786
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
786
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
787
787
|
id: string;
|
|
788
788
|
createdAt: Date;
|
|
789
789
|
conversationId: string;
|
|
@@ -818,7 +818,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
818
818
|
platformMessageId?: string | null | undefined;
|
|
819
819
|
scheduledAt?: Date | null | undefined;
|
|
820
820
|
statusHistory?: {
|
|
821
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
821
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
822
822
|
id: string;
|
|
823
823
|
createdAt: Date;
|
|
824
824
|
messageId: string;
|
|
@@ -947,7 +947,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
947
947
|
lastRead?: Date | null | undefined;
|
|
948
948
|
lastMessage?: {
|
|
949
949
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
950
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
950
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
951
951
|
id: string;
|
|
952
952
|
createdAt: Date;
|
|
953
953
|
conversationId: string;
|
|
@@ -982,7 +982,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
982
982
|
platformMessageId?: string | null | undefined;
|
|
983
983
|
scheduledAt?: Date | null | undefined;
|
|
984
984
|
statusHistory?: {
|
|
985
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
985
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
986
986
|
id: string;
|
|
987
987
|
createdAt: Date;
|
|
988
988
|
messageId: string;
|
|
@@ -997,7 +997,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
997
997
|
};
|
|
998
998
|
newMessages: {
|
|
999
999
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
1000
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1000
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1001
1001
|
id: string;
|
|
1002
1002
|
createdAt: Date;
|
|
1003
1003
|
conversationId: string;
|
|
@@ -1032,7 +1032,7 @@ export declare const UserWsPayloadConversationSchema: z.ZodObject<{
|
|
|
1032
1032
|
platformMessageId?: string | null | undefined;
|
|
1033
1033
|
scheduledAt?: Date | null | undefined;
|
|
1034
1034
|
statusHistory?: {
|
|
1035
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1035
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
1036
1036
|
id: string;
|
|
1037
1037
|
createdAt: Date;
|
|
1038
1038
|
messageId: string;
|
|
@@ -13290,15 +13290,15 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13290
13290
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13291
13291
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13292
13292
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
13293
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
13293
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
13294
13294
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13295
13295
|
id: z.ZodString;
|
|
13296
13296
|
messageId: z.ZodString;
|
|
13297
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
13297
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
13298
13298
|
createdAt: z.ZodDate;
|
|
13299
13299
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13300
13300
|
}, "strip", z.ZodTypeAny, {
|
|
13301
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13301
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13302
13302
|
id: string;
|
|
13303
13303
|
createdAt: Date;
|
|
13304
13304
|
messageId: string;
|
|
@@ -13408,7 +13408,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13408
13408
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13409
13409
|
}, "strip", z.ZodTypeAny, {
|
|
13410
13410
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
13411
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13411
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13412
13412
|
id: string;
|
|
13413
13413
|
createdAt: Date;
|
|
13414
13414
|
conversationId: string;
|
|
@@ -13443,7 +13443,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13443
13443
|
platformMessageId?: string | null | undefined;
|
|
13444
13444
|
scheduledAt?: Date | null | undefined;
|
|
13445
13445
|
statusHistory?: {
|
|
13446
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13446
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13447
13447
|
id: string;
|
|
13448
13448
|
createdAt: Date;
|
|
13449
13449
|
messageId: string;
|
|
@@ -13660,7 +13660,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13660
13660
|
lastRead?: Date | null | undefined;
|
|
13661
13661
|
lastMessage?: {
|
|
13662
13662
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
13663
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13663
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13664
13664
|
id: string;
|
|
13665
13665
|
createdAt: Date;
|
|
13666
13666
|
conversationId: string;
|
|
@@ -13695,7 +13695,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13695
13695
|
platformMessageId?: string | null | undefined;
|
|
13696
13696
|
scheduledAt?: Date | null | undefined;
|
|
13697
13697
|
statusHistory?: {
|
|
13698
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13698
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13699
13699
|
id: string;
|
|
13700
13700
|
createdAt: Date;
|
|
13701
13701
|
messageId: string;
|
|
@@ -13827,15 +13827,15 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13827
13827
|
conversationUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13828
13828
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13829
13829
|
type: z.ZodCatch<z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE", "UNKNOWN"]>>;
|
|
13830
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
13830
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
13831
13831
|
statusHistory: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13832
13832
|
id: z.ZodString;
|
|
13833
13833
|
messageId: z.ZodString;
|
|
13834
|
-
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "UNKNOWN"]>>;
|
|
13834
|
+
status: z.ZodCatch<z.ZodEnum<["SCHEDULED", "NEEDS_VALIDATION", "SENDING", "FAILED_TO_SEND", "CANCELED", "SENT", "SEEN", "DELETING", "DELETED", "UNKNOWN"]>>;
|
|
13835
13835
|
createdAt: z.ZodDate;
|
|
13836
13836
|
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13837
13837
|
}, "strip", z.ZodTypeAny, {
|
|
13838
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13838
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13839
13839
|
id: string;
|
|
13840
13840
|
createdAt: Date;
|
|
13841
13841
|
messageId: string;
|
|
@@ -13945,7 +13945,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13945
13945
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13946
13946
|
}, "strip", z.ZodTypeAny, {
|
|
13947
13947
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
13948
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13948
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13949
13949
|
id: string;
|
|
13950
13950
|
createdAt: Date;
|
|
13951
13951
|
conversationId: string;
|
|
@@ -13980,7 +13980,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
13980
13980
|
platformMessageId?: string | null | undefined;
|
|
13981
13981
|
scheduledAt?: Date | null | undefined;
|
|
13982
13982
|
statusHistory?: {
|
|
13983
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13983
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
13984
13984
|
id: string;
|
|
13985
13985
|
createdAt: Date;
|
|
13986
13986
|
messageId: string;
|
|
@@ -14109,7 +14109,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
14109
14109
|
lastRead?: Date | null | undefined;
|
|
14110
14110
|
lastMessage?: {
|
|
14111
14111
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
14112
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14112
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14113
14113
|
id: string;
|
|
14114
14114
|
createdAt: Date;
|
|
14115
14115
|
conversationId: string;
|
|
@@ -14144,7 +14144,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
14144
14144
|
platformMessageId?: string | null | undefined;
|
|
14145
14145
|
scheduledAt?: Date | null | undefined;
|
|
14146
14146
|
statusHistory?: {
|
|
14147
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14147
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14148
14148
|
id: string;
|
|
14149
14149
|
createdAt: Date;
|
|
14150
14150
|
messageId: string;
|
|
@@ -14159,7 +14159,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
14159
14159
|
};
|
|
14160
14160
|
newMessages: {
|
|
14161
14161
|
type: "UNKNOWN" | "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
14162
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14162
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14163
14163
|
id: string;
|
|
14164
14164
|
createdAt: Date;
|
|
14165
14165
|
conversationId: string;
|
|
@@ -14194,7 +14194,7 @@ export declare const UserWsPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
14194
14194
|
platformMessageId?: string | null | undefined;
|
|
14195
14195
|
scheduledAt?: Date | null | undefined;
|
|
14196
14196
|
statusHistory?: {
|
|
14197
|
-
status: "UNKNOWN" | "CANCELED" | "SCHEDULED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14197
|
+
status: "UNKNOWN" | "DELETING" | "CANCELED" | "SCHEDULED" | "DELETED" | "NEEDS_VALIDATION" | "SENDING" | "FAILED_TO_SEND" | "SENT" | "SEEN";
|
|
14198
14198
|
id: string;
|
|
14199
14199
|
createdAt: Date;
|
|
14200
14200
|
messageId: string;
|