hububb-models 1.0.123 → 1.1.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/dist/models/thread.d.ts +2 -1
- package/dist/schemas/thread.d.ts +28 -0
- package/dist/schemas/thread.js +11 -1
- package/package.json +1 -1
package/dist/models/thread.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
-
import { ChatMessageSchema, ChatThreadSchema } from "../schemas/thread";
|
2
|
+
import { ChatMessageSchema, ChatThreadSchema, MessageAutomationTemplateSchema } from "../schemas/thread";
|
3
3
|
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
|
4
4
|
export type ChatThread = z.infer<typeof ChatThreadSchema>;
|
5
|
+
export type MessageAutomationTemplate = z.infer<typeof MessageAutomationTemplateSchema>;
|
package/dist/schemas/thread.d.ts
CHANGED
@@ -862,3 +862,31 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
|
|
862
862
|
isImportant?: boolean | undefined;
|
863
863
|
tags?: string[] | undefined;
|
864
864
|
}>;
|
865
|
+
export declare const MessageAutomationTemplateSchema: import("zod").ZodObject<{
|
866
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
867
|
+
name: import("zod").ZodString;
|
868
|
+
createdAt: import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>;
|
869
|
+
message: import("zod").ZodString;
|
870
|
+
action: import("zod").ZodString;
|
871
|
+
minutesAfterBookingConfirmed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
872
|
+
daysAfterAction: import("zod").ZodOptional<import("zod").ZodNumber>;
|
873
|
+
timeForDayAfterAction: import("zod").ZodOptional<import("zod").ZodNumber>;
|
874
|
+
}, "strip", import("zod").ZodTypeAny, {
|
875
|
+
message: string;
|
876
|
+
name: string;
|
877
|
+
action: string;
|
878
|
+
createdAt: import("@firebase/firestore-types").Timestamp;
|
879
|
+
id?: string | undefined;
|
880
|
+
minutesAfterBookingConfirmed?: number | undefined;
|
881
|
+
daysAfterAction?: number | undefined;
|
882
|
+
timeForDayAfterAction?: number | undefined;
|
883
|
+
}, {
|
884
|
+
message: string;
|
885
|
+
name: string;
|
886
|
+
action: string;
|
887
|
+
createdAt: import("@firebase/firestore-types").Timestamp;
|
888
|
+
id?: string | undefined;
|
889
|
+
minutesAfterBookingConfirmed?: number | undefined;
|
890
|
+
daysAfterAction?: number | undefined;
|
891
|
+
timeForDayAfterAction?: number | undefined;
|
892
|
+
}>;
|
package/dist/schemas/thread.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ChatThreadSchema = exports.ChatMessageSchema = void 0;
|
3
|
+
exports.MessageAutomationTemplateSchema = exports.ChatThreadSchema = exports.ChatMessageSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const helpers_1 = require("../helpers");
|
6
6
|
const user_1 = require("./user");
|
@@ -37,3 +37,13 @@ exports.ChatThreadSchema = (0, zod_1.object)({
|
|
37
37
|
needsAttentionMap: (0, zod_1.record)((0, zod_1.string)(), (0, zod_1.boolean)()),
|
38
38
|
tags: (0, zod_1.optional)((0, zod_1.array)((0, zod_1.string)())),
|
39
39
|
});
|
40
|
+
exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
|
41
|
+
id: (0, zod_1.optional)((0, zod_1.string)()),
|
42
|
+
name: (0, zod_1.string)(),
|
43
|
+
createdAt: helpers_1.firestoreTimestampSchema,
|
44
|
+
message: (0, zod_1.string)(),
|
45
|
+
action: (0, zod_1.string)(),
|
46
|
+
minutesAfterBookingConfirmed: (0, zod_1.optional)((0, zod_1.number)()),
|
47
|
+
daysAfterAction: (0, zod_1.optional)((0, zod_1.number)()),
|
48
|
+
timeForDayAfterAction: (0, zod_1.optional)((0, zod_1.number)()),
|
49
|
+
});
|