hububb-saas-shared 1.0.82 → 1.0.83
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.
|
@@ -251,7 +251,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
251
251
|
externalMessageId?: string | undefined;
|
|
252
252
|
}>>;
|
|
253
253
|
participantIds: z.ZodArray<z.ZodString, "many">;
|
|
254
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
254
|
+
participants: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
255
255
|
id: z.ZodString;
|
|
256
256
|
name: z.ZodString;
|
|
257
257
|
email: z.ZodString;
|
|
@@ -267,7 +267,24 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
267
267
|
stripeCustomerId: z.ZodOptional<z.ZodString>;
|
|
268
268
|
onboardingStep: z.ZodNumber;
|
|
269
269
|
onboardingType: z.ZodUnion<[z.ZodLiteral<"AIRBNB_CONNECT">, z.ZodLiteral<"MANUAL_LISTING">]>;
|
|
270
|
-
},
|
|
270
|
+
}, {
|
|
271
|
+
userRole: z.ZodObject<{
|
|
272
|
+
id: z.ZodNumber;
|
|
273
|
+
name: z.ZodString;
|
|
274
|
+
createdAt: z.ZodDate;
|
|
275
|
+
updatedAt: z.ZodDate;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
name: string;
|
|
278
|
+
id: number;
|
|
279
|
+
createdAt: Date;
|
|
280
|
+
updatedAt: Date;
|
|
281
|
+
}, {
|
|
282
|
+
name: string;
|
|
283
|
+
id: number;
|
|
284
|
+
createdAt: Date;
|
|
285
|
+
updatedAt: Date;
|
|
286
|
+
}>;
|
|
287
|
+
}>, "strip", z.ZodTypeAny, {
|
|
271
288
|
name: string;
|
|
272
289
|
id: string;
|
|
273
290
|
email: string;
|
|
@@ -281,6 +298,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
281
298
|
userRoleId: number;
|
|
282
299
|
onboardingStep: number;
|
|
283
300
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
301
|
+
userRole: {
|
|
302
|
+
name: string;
|
|
303
|
+
id: number;
|
|
304
|
+
createdAt: Date;
|
|
305
|
+
updatedAt: Date;
|
|
306
|
+
};
|
|
284
307
|
photoUrl?: string | undefined;
|
|
285
308
|
stripeCustomerId?: string | undefined;
|
|
286
309
|
}, {
|
|
@@ -297,6 +320,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
297
320
|
userRoleId: number;
|
|
298
321
|
onboardingStep: number;
|
|
299
322
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
323
|
+
userRole: {
|
|
324
|
+
name: string;
|
|
325
|
+
id: number;
|
|
326
|
+
createdAt: Date;
|
|
327
|
+
updatedAt: Date;
|
|
328
|
+
};
|
|
300
329
|
photoUrl?: string | undefined;
|
|
301
330
|
stripeCustomerId?: string | undefined;
|
|
302
331
|
}>, "many">>;
|
|
@@ -602,6 +631,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
602
631
|
userRoleId: number;
|
|
603
632
|
onboardingStep: number;
|
|
604
633
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
634
|
+
userRole: {
|
|
635
|
+
name: string;
|
|
636
|
+
id: number;
|
|
637
|
+
createdAt: Date;
|
|
638
|
+
updatedAt: Date;
|
|
639
|
+
};
|
|
605
640
|
photoUrl?: string | undefined;
|
|
606
641
|
stripeCustomerId?: string | undefined;
|
|
607
642
|
}[] | undefined;
|
|
@@ -721,6 +756,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
721
756
|
userRoleId: number;
|
|
722
757
|
onboardingStep: number;
|
|
723
758
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
759
|
+
userRole: {
|
|
760
|
+
name: string;
|
|
761
|
+
id: number;
|
|
762
|
+
createdAt: Date;
|
|
763
|
+
updatedAt: Date;
|
|
764
|
+
};
|
|
724
765
|
photoUrl?: string | undefined;
|
|
725
766
|
stripeCustomerId?: string | undefined;
|
|
726
767
|
}[] | undefined;
|
|
@@ -6,6 +6,7 @@ const user_1 = require("../user");
|
|
|
6
6
|
const reservation_1 = require("../reservation");
|
|
7
7
|
const property_1 = require("../property");
|
|
8
8
|
const helpers_1 = require("../../helpers");
|
|
9
|
+
const user_role_1 = require("../user-role");
|
|
9
10
|
const SeenBySchema = (0, zod_1.record)((0, zod_1.string)(), helpers_1.firestoreTimestampSchema);
|
|
10
11
|
exports.ChatMessageTypeSchema = (0, zod_1.union)([
|
|
11
12
|
(0, zod_1.literal)("message"),
|
|
@@ -33,7 +34,9 @@ exports.ChatThreadSchema = (0, zod_1.object)({
|
|
|
33
34
|
updatedAt: helpers_1.firestoreTimestampSchema,
|
|
34
35
|
lastMessage: (0, zod_1.optional)(exports.ChatMessageSchema),
|
|
35
36
|
participantIds: (0, zod_1.array)((0, zod_1.string)()),
|
|
36
|
-
participants: (0, zod_1.optional)((0, zod_1.array)(user_1.userSchema
|
|
37
|
+
participants: (0, zod_1.optional)((0, zod_1.array)(user_1.userSchema.extend({
|
|
38
|
+
userRole: user_role_1.userRoleSchema,
|
|
39
|
+
}))),
|
|
37
40
|
type: (0, zod_1.union)([
|
|
38
41
|
(0, zod_1.literal)("ONE_TO_ONE"),
|
|
39
42
|
(0, zod_1.literal)("GROUP"),
|