@cossistant/types 0.0.23 → 0.0.25
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/api/common.d.ts +17 -20
- package/api/common.d.ts.map +1 -1
- package/api/contact.d.ts +99 -101
- package/api/contact.d.ts.map +1 -1
- package/api/conversation.d.ts +322 -326
- package/api/conversation.d.ts.map +1 -1
- package/api/notification.d.ts +70 -73
- package/api/notification.d.ts.map +1 -1
- package/api/organization.d.ts +7 -9
- package/api/organization.d.ts.map +1 -1
- package/api/timeline-item.d.ts +261 -265
- package/api/timeline-item.d.ts.map +1 -1
- package/api/upload.d.ts +95 -98
- package/api/upload.d.ts.map +1 -1
- package/api/user.d.ts +19 -21
- package/api/user.d.ts.map +1 -1
- package/api/visitor.d.ts +110 -112
- package/api/visitor.d.ts.map +1 -1
- package/api/website.d.ts +177 -179
- package/api/website.d.ts.map +1 -1
- package/package.json +1 -1
- package/realtime-events.d.ts +330 -332
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +80 -82
- package/schemas.d.ts.map +1 -1
- package/trpc/contact.d.ts +78 -74
- package/trpc/contact.d.ts.map +1 -1
- package/trpc/contact.js +7 -4
- package/trpc/contact.js.map +1 -1
- package/trpc/conversation.d.ts +328 -330
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/visitor.d.ts +105 -107
- package/trpc/visitor.d.ts.map +1 -1
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -121
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas2.d.ts +0 -685
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts +0 -325
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -59
- package/standard-schema.d.ts.map +0 -1
- package/util.d.ts +0 -41
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
package/realtime-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;cAMa,mBAAiB,CAAA,CAAA;;EAAjB,cAAA,aAKX;;;;;;;;AAL4B,cAWjB,cAXiB,EAAA;EAAA,SAAA,aAAA,aAAA,CAAA;IAWjB,SAAA,aAiEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,CAAA,CAAE,cACzD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB;;;;iBAKN,gCAAgC,yBACzC,mBAEJ,qBAAqB;;;;iBAQR,gBAAA,yBAAyC;iBAIzC,0BAA0B,0BAClC,cAAc,KACnB,qBAAqB"}
|
package/schemas.d.ts
CHANGED
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { output } from "./core.js";
|
|
3
|
-
import { ZodArray, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } from "./schemas3.js";
|
|
1
|
+
import { z } from "zod";
|
|
4
2
|
|
|
5
3
|
//#region src/schemas.d.ts
|
|
6
|
-
declare const viewSchema: ZodObject<{
|
|
7
|
-
id: ZodString;
|
|
8
|
-
name: ZodString;
|
|
9
|
-
description: ZodNullable<ZodString>;
|
|
10
|
-
prompt: ZodNullable<ZodString>;
|
|
11
|
-
organizationId: ZodString;
|
|
12
|
-
websiteId: ZodString;
|
|
13
|
-
createdAt: ZodString;
|
|
14
|
-
updatedAt: ZodString;
|
|
15
|
-
deletedAt: ZodNullable<ZodString>;
|
|
16
|
-
},
|
|
17
|
-
type InboxView =
|
|
18
|
-
declare const conversationSchema: ZodObject<{
|
|
19
|
-
id: ZodString;
|
|
20
|
-
title: ZodOptional<ZodString>;
|
|
21
|
-
createdAt: ZodString;
|
|
22
|
-
updatedAt: ZodString;
|
|
23
|
-
visitorId: ZodString;
|
|
24
|
-
websiteId: ZodString;
|
|
25
|
-
status: ZodDefault<ZodEnum<{
|
|
4
|
+
declare const viewSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
9
|
+
organizationId: z.ZodString;
|
|
10
|
+
websiteId: z.ZodString;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
updatedAt: z.ZodString;
|
|
13
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type InboxView = z.infer<typeof viewSchema>;
|
|
16
|
+
declare const conversationSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
title: z.ZodOptional<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodString;
|
|
20
|
+
updatedAt: z.ZodString;
|
|
21
|
+
visitorId: z.ZodString;
|
|
22
|
+
websiteId: z.ZodString;
|
|
23
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
26
24
|
open: "open";
|
|
27
25
|
resolved: "resolved";
|
|
28
26
|
spam: "spam";
|
|
29
27
|
}>>;
|
|
30
|
-
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
31
|
-
lastTimelineItem: ZodOptional<ZodObject<{
|
|
32
|
-
id: ZodOptional<ZodString>;
|
|
33
|
-
conversationId: ZodString;
|
|
34
|
-
organizationId: ZodString;
|
|
35
|
-
visibility: ZodEnum<{
|
|
36
|
-
private: "private";
|
|
28
|
+
deletedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
lastTimelineItem: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
conversationId: z.ZodString;
|
|
32
|
+
organizationId: z.ZodString;
|
|
33
|
+
visibility: z.ZodEnum<{
|
|
37
34
|
public: "public";
|
|
35
|
+
private: "private";
|
|
38
36
|
}>;
|
|
39
|
-
type: ZodEnum<{
|
|
37
|
+
type: z.ZodEnum<{
|
|
40
38
|
message: "message";
|
|
41
39
|
event: "event";
|
|
42
40
|
identification: "identification";
|
|
43
41
|
}>;
|
|
44
|
-
text: ZodNullable<ZodString>;
|
|
45
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
46
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
47
|
-
type: ZodLiteral<"text">;
|
|
48
|
-
text: ZodString;
|
|
49
|
-
},
|
|
50
|
-
type: ZodLiteral<"event">;
|
|
51
|
-
eventType: ZodEnum<{
|
|
42
|
+
text: z.ZodNullable<z.ZodString>;
|
|
43
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"text">;
|
|
46
|
+
text: z.ZodString;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"event">;
|
|
49
|
+
eventType: z.ZodEnum<{
|
|
52
50
|
resolved: "resolved";
|
|
53
51
|
assigned: "assigned";
|
|
54
52
|
unassigned: "unassigned";
|
|
@@ -64,53 +62,53 @@ declare const conversationSchema: ZodObject<{
|
|
|
64
62
|
visitor_unblocked: "visitor_unblocked";
|
|
65
63
|
visitor_identified: "visitor_identified";
|
|
66
64
|
}>;
|
|
67
|
-
actorUserId: ZodNullable<ZodString>;
|
|
68
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
69
|
-
targetUserId: ZodNullable<ZodString>;
|
|
70
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
71
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
72
|
-
},
|
|
73
|
-
type: ZodLiteral<"image">;
|
|
74
|
-
url: ZodString;
|
|
75
|
-
mediaType: ZodString;
|
|
76
|
-
fileName: ZodOptional<ZodString>;
|
|
77
|
-
size: ZodOptional<ZodNumber>;
|
|
78
|
-
width: ZodOptional<ZodNumber>;
|
|
79
|
-
height: ZodOptional<ZodNumber>;
|
|
80
|
-
},
|
|
81
|
-
type: ZodLiteral<"file">;
|
|
82
|
-
url: ZodString;
|
|
83
|
-
mediaType: ZodString;
|
|
84
|
-
fileName: ZodOptional<ZodString>;
|
|
85
|
-
size: ZodOptional<ZodNumber>;
|
|
86
|
-
},
|
|
87
|
-
type: ZodLiteral<"metadata">;
|
|
88
|
-
source: ZodEnum<{
|
|
65
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
66
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
67
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
68
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
69
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"image">;
|
|
72
|
+
url: z.ZodString;
|
|
73
|
+
mediaType: z.ZodString;
|
|
74
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
75
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"file">;
|
|
80
|
+
url: z.ZodString;
|
|
81
|
+
mediaType: z.ZodString;
|
|
82
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
83
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"metadata">;
|
|
86
|
+
source: z.ZodEnum<{
|
|
89
87
|
email: "email";
|
|
90
88
|
widget: "widget";
|
|
91
89
|
api: "api";
|
|
92
90
|
}>;
|
|
93
|
-
},
|
|
94
|
-
userId: ZodNullable<ZodString>;
|
|
95
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
96
|
-
visitorId: ZodNullable<ZodString>;
|
|
97
|
-
createdAt: ZodString;
|
|
98
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
type Conversation =
|
|
102
|
-
declare const conversationSeenSchema: ZodObject<{
|
|
103
|
-
id: ZodString;
|
|
104
|
-
conversationId: ZodString;
|
|
105
|
-
userId: ZodNullable<ZodString>;
|
|
106
|
-
visitorId: ZodNullable<ZodString>;
|
|
107
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
108
|
-
lastSeenAt: ZodString;
|
|
109
|
-
createdAt: ZodString;
|
|
110
|
-
updatedAt: ZodString;
|
|
111
|
-
deletedAt: ZodNullable<ZodString>;
|
|
112
|
-
},
|
|
113
|
-
type ConversationSeen =
|
|
91
|
+
}, z.core.$strip>]>>;
|
|
92
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
93
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
94
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
95
|
+
createdAt: z.ZodString;
|
|
96
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
type Conversation = z.infer<typeof conversationSchema>;
|
|
100
|
+
declare const conversationSeenSchema: z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
conversationId: z.ZodString;
|
|
103
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
104
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
105
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
106
|
+
lastSeenAt: z.ZodString;
|
|
107
|
+
createdAt: z.ZodString;
|
|
108
|
+
updatedAt: z.ZodString;
|
|
109
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
type ConversationSeen = z.infer<typeof conversationSeenSchema>;
|
|
114
112
|
//#endregion
|
|
115
113
|
export { Conversation, ConversationSeen, InboxView, conversationSchema, conversationSeenSchema, viewSchema };
|
|
116
114
|
//# sourceMappingURL=schemas.d.ts.map
|
package/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;cAIa,YAAU,CAAA,CAAA;;EAAV,IAAA,aAUX;;;;;;;;;KAEU,SAAA,GAAY,CAAA,CAAE,aAAa;cAE1B,oBAAkB,CAAA,CAAA;;;;EAdR,SAAA,aAAA;EAAA,SAAA,aAAA;EAYX,SAAA,aAAS;EAER,MAAA,cAAA,UAgBX,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,YAAA,GAAe,CAAA,CAAE,aAAa;cAE7B,wBAAsB,CAAA,CAAA;;;;;;;;EApBJ,SAAA,aAAA;EAAA,SAAA,eAAA,YAAA,CAAA;AAkB/B,CAAA,eAAY,CAAA;AAEC,KAYD,gBAAA,GAAmB,CAAA,CAAE,KAF/B,CAAA,OAE4C,sBAF5C,CAAA"}
|
package/trpc/contact.d.ts
CHANGED
|
@@ -1,83 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { output } from "../core.js";
|
|
3
|
-
import { ZodArray, ZodBoolean, ZodEmail, ZodEnum, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion } from "../schemas3.js";
|
|
1
|
+
import { z } from "zod";
|
|
4
2
|
|
|
5
3
|
//#region src/trpc/contact.d.ts
|
|
6
|
-
declare const contactListItemSchema: ZodObject<{
|
|
7
|
-
id: ZodULID;
|
|
8
|
-
name: ZodNullable<ZodString>;
|
|
9
|
-
email: ZodNullable<ZodString>;
|
|
10
|
-
image: ZodNullable<ZodString>;
|
|
11
|
-
createdAt: ZodString;
|
|
12
|
-
updatedAt: ZodString;
|
|
13
|
-
visitorCount: ZodNumber;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
declare const contactListItemSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodULID;
|
|
6
|
+
name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
email: z.ZodNullable<z.ZodString>;
|
|
8
|
+
image: z.ZodNullable<z.ZodString>;
|
|
9
|
+
createdAt: z.ZodString;
|
|
10
|
+
updatedAt: z.ZodString;
|
|
11
|
+
visitorCount: z.ZodNumber;
|
|
12
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
13
|
+
contactOrganizationId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
contactOrganizationName: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type ContactListItem = z.infer<typeof contactListItemSchema>;
|
|
17
|
+
declare const contactListVisitorStatusSchema: z.ZodEnum<{
|
|
17
18
|
all: "all";
|
|
18
19
|
withVisitors: "withVisitors";
|
|
19
20
|
withoutVisitors: "withoutVisitors";
|
|
20
21
|
}>;
|
|
21
|
-
type ContactListVisitorStatus =
|
|
22
|
-
declare const listContactsResponseSchema: ZodObject<{
|
|
23
|
-
items: ZodArray<ZodObject<{
|
|
24
|
-
id: ZodULID;
|
|
25
|
-
name: ZodNullable<ZodString>;
|
|
26
|
-
email: ZodNullable<ZodString>;
|
|
27
|
-
image: ZodNullable<ZodString>;
|
|
28
|
-
createdAt: ZodString;
|
|
29
|
-
updatedAt: ZodString;
|
|
30
|
-
visitorCount: ZodNumber;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
22
|
+
type ContactListVisitorStatus = z.infer<typeof contactListVisitorStatusSchema>;
|
|
23
|
+
declare const listContactsResponseSchema: z.ZodObject<{
|
|
24
|
+
items: z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodULID;
|
|
26
|
+
name: z.ZodNullable<z.ZodString>;
|
|
27
|
+
email: z.ZodNullable<z.ZodString>;
|
|
28
|
+
image: z.ZodNullable<z.ZodString>;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
updatedAt: z.ZodString;
|
|
31
|
+
visitorCount: z.ZodNumber;
|
|
32
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
contactOrganizationId: z.ZodNullable<z.ZodString>;
|
|
34
|
+
contactOrganizationName: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
page: z.ZodNumber;
|
|
37
|
+
pageSize: z.ZodNumber;
|
|
38
|
+
totalCount: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
type ListContactsResponse = z.infer<typeof listContactsResponseSchema>;
|
|
41
|
+
declare const contactVisitorSummarySchema: z.ZodObject<{
|
|
42
|
+
id: z.ZodULID;
|
|
43
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
46
|
+
device: z.ZodNullable<z.ZodString>;
|
|
47
|
+
country: z.ZodNullable<z.ZodString>;
|
|
48
|
+
city: z.ZodNullable<z.ZodString>;
|
|
49
|
+
language: z.ZodNullable<z.ZodString>;
|
|
50
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
51
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
52
|
+
isBlocked: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
type ContactVisitorSummary = z.infer<typeof contactVisitorSummarySchema>;
|
|
55
|
+
declare const contactDetailResponseSchema: z.ZodObject<{
|
|
56
|
+
contact: z.ZodObject<{
|
|
57
|
+
id: z.ZodULID;
|
|
58
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
name: z.ZodNullable<z.ZodString>;
|
|
60
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
61
|
+
image: z.ZodNullable<z.ZodURL>;
|
|
62
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
|
|
63
|
+
contactOrganizationId: z.ZodNullable<z.ZodULID>;
|
|
64
|
+
websiteId: z.ZodULID;
|
|
65
|
+
organizationId: z.ZodULID;
|
|
66
|
+
userId: z.ZodNullable<z.ZodULID>;
|
|
67
|
+
createdAt: z.ZodString;
|
|
68
|
+
updatedAt: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
visitors: z.ZodArray<z.ZodObject<{
|
|
71
|
+
id: z.ZodULID;
|
|
72
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
73
|
+
createdAt: z.ZodString;
|
|
74
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
75
|
+
device: z.ZodNullable<z.ZodString>;
|
|
76
|
+
country: z.ZodNullable<z.ZodString>;
|
|
77
|
+
city: z.ZodNullable<z.ZodString>;
|
|
78
|
+
language: z.ZodNullable<z.ZodString>;
|
|
79
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
isBlocked: z.ZodBoolean;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
type ContactDetailResponse = z.infer<typeof contactDetailResponseSchema>;
|
|
81
85
|
//#endregion
|
|
82
86
|
export { ContactDetailResponse, ContactListItem, ContactListVisitorStatus, ContactVisitorSummary, ListContactsResponse, contactDetailResponseSchema, contactListItemSchema, contactListVisitorStatusSchema, contactVisitorSummarySchema, listContactsResponseSchema };
|
|
83
87
|
//# sourceMappingURL=contact.d.ts.map
|
package/trpc/contact.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAAqB,CAAA,CAAA;;EAArB,IAAA,eAAA,YAWX,CAAA;;;;;;;;;;KAEU,eAAA,GAAkB,CAAA,CAAE,aAAa;cAEhC,gCAA8B,CAAA,CAAA;;;;;KAM/B,wBAAA,GAA2B,CAAA,CAAE,aACjC;cAGK,4BAA0B,CAAA,CAAA;EAzBL,KAAA,YAAA,YAAA,CAAA;IAAA,EAAA,WAAA;IAatB,IAAA,eAAe,YAAkB,CAAA;IAEhC,KAAA,eAAA,YAIX,CAAA;IAEU,KAAA,eAAA,YAAwB,CAAA;IAIvB,SAAA,aAAA;;;;;;;;;;;KAOD,oBAAA,GAAuB,CAAA,CAAE,aAAa;cAErC,6BAA2B,CAAA,CAAA;;;;;;;;;;;;CATD,eAAA,CAAA;AAAA,KAuB3B,qBAAA,GAAwB,CAAA,CAAE,KAvBC,CAAA,OAuBY,2BAvBZ,CAAA;AAO3B,cAkBC,2BAlBqC,EAkBV,CAAA,CAAA,SAlBU,CAAA;EAErC,OAAA,aAAA,CAAA;;;;;;;;;;;;;;;;;;;;;IAA2B,IAAA,eAAA,YAAA,CAAA;IAAA,QAAA,eAAA,YAAA,CAAA;IAc5B,SAAA,eAAqB,YAAkB,CAAA;IAEtC,eAAA,eAGX,YAAA,CAAA;;;;KAEU,qBAAA,GAAwB,CAAA,CAAE,aAAa"}
|
package/trpc/contact.js
CHANGED
|
@@ -9,7 +9,10 @@ const contactListItemSchema = z.object({
|
|
|
9
9
|
image: z.string().nullable(),
|
|
10
10
|
createdAt: z.string(),
|
|
11
11
|
updatedAt: z.string(),
|
|
12
|
-
visitorCount: z.number().int().min(0)
|
|
12
|
+
visitorCount: z.number().int().min(0),
|
|
13
|
+
lastSeenAt: z.string().nullable(),
|
|
14
|
+
contactOrganizationId: z.string().nullable(),
|
|
15
|
+
contactOrganizationName: z.string().nullable()
|
|
13
16
|
});
|
|
14
17
|
const contactListVisitorStatusSchema = z.enum([
|
|
15
18
|
"all",
|
|
@@ -24,14 +27,14 @@ const listContactsResponseSchema = z.object({
|
|
|
24
27
|
});
|
|
25
28
|
const contactVisitorSummarySchema = z.object({
|
|
26
29
|
id: z.ulid(),
|
|
27
|
-
lastSeenAt: z.string().
|
|
28
|
-
createdAt: z.string()
|
|
30
|
+
lastSeenAt: z.string().nullable(),
|
|
31
|
+
createdAt: z.string(),
|
|
29
32
|
browser: z.string().nullable(),
|
|
30
33
|
device: z.string().nullable(),
|
|
31
34
|
country: z.string().nullable(),
|
|
32
35
|
city: z.string().nullable(),
|
|
33
36
|
language: z.string().nullable(),
|
|
34
|
-
blockedAt: z.string().
|
|
37
|
+
blockedAt: z.string().nullable(),
|
|
35
38
|
blockedByUserId: z.string().nullable(),
|
|
36
39
|
isBlocked: z.boolean()
|
|
37
40
|
});
|
package/trpc/contact.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.js","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { contactResponseSchema } from \"../api/contact\";\n\nexport const contactListItemSchema = z.object({\n\tid: z.ulid(),\n\tname: z.string().nullable(),\n\temail: z.string().nullable(),\n\timage: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tvisitorCount: z.number().int().min(0),\n});\n\nexport type ContactListItem = z.infer<typeof contactListItemSchema>;\n\nexport const contactListVisitorStatusSchema = z.enum([\n\t\"all\",\n\t\"withVisitors\",\n\t\"withoutVisitors\",\n]);\n\nexport type ContactListVisitorStatus = z.infer<\n\ttypeof contactListVisitorStatusSchema\n>;\n\nexport const listContactsResponseSchema = z.object({\n\titems: z.array(contactListItemSchema),\n\tpage: z.number().int().min(1),\n\tpageSize: z.number().int().min(1),\n\ttotalCount: z.number().int().min(0),\n});\n\nexport type ListContactsResponse = z.infer<typeof listContactsResponseSchema>;\n\nexport const contactVisitorSummarySchema = z.object({\n\tid: z.ulid(),\n\tlastSeenAt: z.string().
|
|
1
|
+
{"version":3,"file":"contact.js","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { contactResponseSchema } from \"../api/contact\";\n\nexport const contactListItemSchema = z.object({\n\tid: z.ulid(),\n\tname: z.string().nullable(),\n\temail: z.string().nullable(),\n\timage: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tupdatedAt: z.string(),\n\tvisitorCount: z.number().int().min(0),\n\tlastSeenAt: z.string().nullable(),\n\tcontactOrganizationId: z.string().nullable(),\n\tcontactOrganizationName: z.string().nullable(),\n});\n\nexport type ContactListItem = z.infer<typeof contactListItemSchema>;\n\nexport const contactListVisitorStatusSchema = z.enum([\n\t\"all\",\n\t\"withVisitors\",\n\t\"withoutVisitors\",\n]);\n\nexport type ContactListVisitorStatus = z.infer<\n\ttypeof contactListVisitorStatusSchema\n>;\n\nexport const listContactsResponseSchema = z.object({\n\titems: z.array(contactListItemSchema),\n\tpage: z.number().int().min(1),\n\tpageSize: z.number().int().min(1),\n\ttotalCount: z.number().int().min(0),\n});\n\nexport type ListContactsResponse = z.infer<typeof listContactsResponseSchema>;\n\nexport const contactVisitorSummarySchema = z.object({\n\tid: z.ulid(),\n\tlastSeenAt: z.string().nullable(),\n\tcreatedAt: z.string(),\n\tbrowser: z.string().nullable(),\n\tdevice: z.string().nullable(),\n\tcountry: z.string().nullable(),\n\tcity: z.string().nullable(),\n\tlanguage: z.string().nullable(),\n\tblockedAt: z.string().nullable(),\n\tblockedByUserId: z.string().nullable(),\n\tisBlocked: z.boolean(),\n});\n\nexport type ContactVisitorSummary = z.infer<typeof contactVisitorSummarySchema>;\n\nexport const contactDetailResponseSchema = z.object({\n\tcontact: contactResponseSchema,\n\tvisitors: z.array(contactVisitorSummarySchema),\n});\n\nexport type ContactDetailResponse = z.infer<typeof contactDetailResponseSchema>;\n"],"mappings":";;;;AAGA,MAAa,wBAAwB,EAAE,OAAO;CAC7C,IAAI,EAAE,MAAM;CACZ,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAW,EAAE,QAAQ;CACrB,WAAW,EAAE,QAAQ;CACrB,cAAc,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CACrC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,uBAAuB,EAAE,QAAQ,CAAC,UAAU;CAC5C,yBAAyB,EAAE,QAAQ,CAAC,UAAU;CAC9C,CAAC;AAIF,MAAa,iCAAiC,EAAE,KAAK;CACpD;CACA;CACA;CACA,CAAC;AAMF,MAAa,6BAA6B,EAAE,OAAO;CAClD,OAAO,EAAE,MAAM,sBAAsB;CACrC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CAC7B,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CACjC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;CACnC,CAAC;AAIF,MAAa,8BAA8B,EAAE,OAAO;CACnD,IAAI,EAAE,MAAM;CACZ,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,WAAW,EAAE,QAAQ;CACrB,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACtC,WAAW,EAAE,SAAS;CACtB,CAAC;AAIF,MAAa,8BAA8B,EAAE,OAAO;CACnD,SAAS;CACT,UAAU,EAAE,MAAM,4BAA4B;CAC9C,CAAC"}
|