hububb-models 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/models/thread.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
-
import { ChatMessageSchema, ChatMessageTypeSchema, ChatThreadSchema, MessageAutomationTemplateSchema } from "../schemas/thread";
|
2
|
+
import { ChatMessageSchema, ChatMessageTypeSchema, ChatThreadSchema, MessageAutomationTemplateSchema, SavedReplySchema } from "../schemas/thread";
|
3
3
|
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
|
4
4
|
export type ChatThread = z.infer<typeof ChatThreadSchema>;
|
5
5
|
export type MessageAutomationTemplate = z.infer<typeof MessageAutomationTemplateSchema>;
|
6
6
|
export type ChatMessageType = z.infer<typeof ChatMessageTypeSchema>;
|
7
|
+
export type SavedReply = z.infer<typeof SavedReplySchema>;
|
package/dist/schemas/thread.d.ts
CHANGED
@@ -899,3 +899,19 @@ export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
|
|
899
899
|
daysAfterAction?: number | undefined;
|
900
900
|
timeForDayAfterAction?: number | undefined;
|
901
901
|
}>;
|
902
|
+
export declare const SavedReplySchema: import("zod").ZodObject<{
|
903
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
904
|
+
name: import("zod").ZodString;
|
905
|
+
createdAt: import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>;
|
906
|
+
message: import("zod").ZodString;
|
907
|
+
}, "strip", import("zod").ZodTypeAny, {
|
908
|
+
message: string;
|
909
|
+
name: string;
|
910
|
+
createdAt: import("@firebase/firestore-types").Timestamp;
|
911
|
+
id?: string | undefined;
|
912
|
+
}, {
|
913
|
+
message: string;
|
914
|
+
name: string;
|
915
|
+
createdAt: import("@firebase/firestore-types").Timestamp;
|
916
|
+
id?: string | undefined;
|
917
|
+
}>;
|
package/dist/schemas/thread.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MessageAutomationTemplateSchema = exports.ChatThreadSchema = exports.ChatMessageSchema = exports.ChatMessageTypeSchema = void 0;
|
3
|
+
exports.SavedReplySchema = exports.MessageAutomationTemplateSchema = exports.ChatThreadSchema = exports.ChatMessageSchema = exports.ChatMessageTypeSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const helpers_1 = require("../helpers");
|
6
6
|
const user_1 = require("./user");
|
@@ -56,3 +56,9 @@ exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
|
|
56
56
|
daysAfterAction: (0, zod_1.optional)((0, zod_1.number)()),
|
57
57
|
timeForDayAfterAction: (0, zod_1.optional)((0, zod_1.number)()),
|
58
58
|
});
|
59
|
+
exports.SavedReplySchema = (0, zod_1.object)({
|
60
|
+
id: (0, zod_1.optional)((0, zod_1.string)()),
|
61
|
+
name: (0, zod_1.string)(),
|
62
|
+
createdAt: helpers_1.firestoreTimestampSchema,
|
63
|
+
message: (0, zod_1.string)(),
|
64
|
+
});
|