hububb-models 1.1.9 → 1.1.11

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.
@@ -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>;
@@ -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
+ }>;
@@ -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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@firebase/app": "^0.9.25",
19
19
  "@firebase/firestore": "^4.4.0",
20
- "@firebase/firestore-types": "^3.0.0",
20
+ "@firebase/firestore-types": "^3.0.3",
21
21
  "@firebase/util": "^1.5.1",
22
22
  "firebase-admin": "^12.5.0",
23
23
  "hububb-models": "^1.0.72",