hububb-saas-shared 1.0.82 → 1.0.84
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.ZodOptional<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;
|
|
@@ -283,6 +300,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
283
300
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
284
301
|
photoUrl?: string | undefined;
|
|
285
302
|
stripeCustomerId?: string | undefined;
|
|
303
|
+
userRole?: {
|
|
304
|
+
name: string;
|
|
305
|
+
id: number;
|
|
306
|
+
createdAt: Date;
|
|
307
|
+
updatedAt: Date;
|
|
308
|
+
} | undefined;
|
|
286
309
|
}, {
|
|
287
310
|
name: string;
|
|
288
311
|
id: string;
|
|
@@ -299,6 +322,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
299
322
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
300
323
|
photoUrl?: string | undefined;
|
|
301
324
|
stripeCustomerId?: string | undefined;
|
|
325
|
+
userRole?: {
|
|
326
|
+
name: string;
|
|
327
|
+
id: number;
|
|
328
|
+
createdAt: Date;
|
|
329
|
+
updatedAt: Date;
|
|
330
|
+
} | undefined;
|
|
302
331
|
}>, "many">>;
|
|
303
332
|
type: z.ZodUnion<[z.ZodLiteral<"ONE_TO_ONE">, z.ZodLiteral<"GROUP">, z.ZodLiteral<"OPERATIONS_GROUP">, z.ZodLiteral<"OPERATIONS_ONE_TO_ONE">]>;
|
|
304
333
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -604,6 +633,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
604
633
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
605
634
|
photoUrl?: string | undefined;
|
|
606
635
|
stripeCustomerId?: string | undefined;
|
|
636
|
+
userRole?: {
|
|
637
|
+
name: string;
|
|
638
|
+
id: number;
|
|
639
|
+
createdAt: Date;
|
|
640
|
+
updatedAt: Date;
|
|
641
|
+
} | undefined;
|
|
607
642
|
}[] | undefined;
|
|
608
643
|
externalThreadId?: string | undefined;
|
|
609
644
|
externalSource?: string | undefined;
|
|
@@ -723,6 +758,12 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
723
758
|
onboardingType: "AIRBNB_CONNECT" | "MANUAL_LISTING";
|
|
724
759
|
photoUrl?: string | undefined;
|
|
725
760
|
stripeCustomerId?: string | undefined;
|
|
761
|
+
userRole?: {
|
|
762
|
+
name: string;
|
|
763
|
+
id: number;
|
|
764
|
+
createdAt: Date;
|
|
765
|
+
updatedAt: Date;
|
|
766
|
+
} | undefined;
|
|
726
767
|
}[] | undefined;
|
|
727
768
|
externalThreadId?: string | undefined;
|
|
728
769
|
externalSource?: string | 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: (0, zod_1.optional)(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"),
|