@aiquants/daily-report 0.46.1 → 0.47.1
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/CHANGELOG.md +52 -0
- package/README.md +53 -16
- package/dist/client.d.mts +13 -9
- package/dist/client.d.ts +13 -9
- package/dist/client.js +5 -5
- package/dist/client.mjs +5 -5
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{instrumentation-CobsTeyw.d.mts → instrumentation-Bks6vyM7.d.mts} +1 -1
- package/dist/{instrumentation-Dz7Uh7dT.d.ts → instrumentation-CCr0sezP.d.ts} +1 -1
- package/dist/{search-marks-wire-BiImBos8.d.mts → search-marks-wire-CvOvhO30.d.mts} +1 -1
- package/dist/{search-marks-wire-C_vjmxwf.d.ts → search-marks-wire-v7GTHpp7.d.ts} +1 -1
- package/dist/server.d.mts +27 -6
- package/dist/server.d.ts +27 -6
- package/dist/server.js +11 -11
- package/dist/server.mjs +11 -11
- package/dist/{source-types-Cg7T2dm6.d.ts → source-types-C1LvfRRJ.d.ts} +20 -2
- package/dist/{source-types-Hy_znWJl.d.mts → source-types-a15dGIN1.d.mts} +20 -2
- package/dist/{sse-schema-CM_YM7xU.d.mts → sse-schema-DoLUV1Ow.d.mts} +49 -34
- package/dist/{sse-schema-BmhpWHVK.d.ts → sse-schema-ZdgeTkbk.d.ts} +49 -34
- package/dist/styles/daily-report.standalone.css +1 -1
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/{types-BP1kIGMo.d.mts → types-CcUNWIyC.d.mts} +2 -0
- package/dist/{types-BP1kIGMo.d.ts → types-CcUNWIyC.d.ts} +2 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as DailyReportDetail, h as DailyReportPostedComment } from "./types-
|
|
1
|
+
import { b as DailyReportDetail, h as DailyReportPostedComment } from "./types-CcUNWIyC.js";
|
|
2
2
|
declare const DAILY_REPORT_ACTION_INTENTS: readonly [
|
|
3
3
|
"create",
|
|
4
4
|
"update",
|
|
@@ -21,6 +21,7 @@ declare const DAILY_REPORT_ACTION_FIELDS: Readonly<{
|
|
|
21
21
|
readonly content: "content";
|
|
22
22
|
readonly isStarred: "isStarred";
|
|
23
23
|
readonly isRead: "isRead";
|
|
24
|
+
readonly contentDigest: "contentDigest";
|
|
24
25
|
readonly commentId: "commentId";
|
|
25
26
|
}>;
|
|
26
27
|
type ActionCommand<ClientTempId extends string = string> = {
|
|
@@ -47,12 +48,27 @@ type ActionCommand<ClientTempId extends string = string> = {
|
|
|
47
48
|
readonly operationTimestamp: number | null;
|
|
48
49
|
readonly reportHubId: number;
|
|
49
50
|
} | {
|
|
50
|
-
readonly intent: "toggleStar"
|
|
51
|
+
readonly intent: "toggleStar";
|
|
51
52
|
readonly clientTempId: ClientTempId;
|
|
52
53
|
readonly businessDate: string | null;
|
|
53
54
|
readonly operationTimestamp: number | null;
|
|
54
55
|
readonly reportHubId: number;
|
|
55
56
|
readonly value: boolean;
|
|
57
|
+
} | {
|
|
58
|
+
readonly intent: "toggleRead";
|
|
59
|
+
readonly clientTempId: ClientTempId;
|
|
60
|
+
readonly businessDate: string | null;
|
|
61
|
+
readonly operationTimestamp: number | null;
|
|
62
|
+
readonly reportHubId: number;
|
|
63
|
+
readonly value: true;
|
|
64
|
+
readonly contentDigest: string;
|
|
65
|
+
} | {
|
|
66
|
+
readonly intent: "toggleRead";
|
|
67
|
+
readonly clientTempId: ClientTempId;
|
|
68
|
+
readonly businessDate: string | null;
|
|
69
|
+
readonly operationTimestamp: number | null;
|
|
70
|
+
readonly reportHubId: number;
|
|
71
|
+
readonly value: false;
|
|
56
72
|
} | {
|
|
57
73
|
readonly intent: "addComment";
|
|
58
74
|
readonly clientTempId: ClientTempId;
|
|
@@ -99,6 +115,7 @@ type ActionResult = {
|
|
|
99
115
|
readonly updatedStatus: {
|
|
100
116
|
readonly isStarred: boolean;
|
|
101
117
|
readonly isRead: boolean;
|
|
118
|
+
readonly readContentDigest: string | null;
|
|
102
119
|
};
|
|
103
120
|
readonly operationTimestamp: number | null;
|
|
104
121
|
} | {
|
|
@@ -109,6 +126,7 @@ type ActionResult = {
|
|
|
109
126
|
readonly updatedStatus: {
|
|
110
127
|
readonly isStarred: boolean;
|
|
111
128
|
readonly isRead: boolean;
|
|
129
|
+
readonly readContentDigest: string | null;
|
|
112
130
|
};
|
|
113
131
|
readonly operationTimestamp: number | null;
|
|
114
132
|
} | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as DailyReportDetail, h as DailyReportPostedComment } from "./types-
|
|
1
|
+
import { b as DailyReportDetail, h as DailyReportPostedComment } from "./types-CcUNWIyC.mjs";
|
|
2
2
|
declare const DAILY_REPORT_ACTION_INTENTS: readonly [
|
|
3
3
|
"create",
|
|
4
4
|
"update",
|
|
@@ -21,6 +21,7 @@ declare const DAILY_REPORT_ACTION_FIELDS: Readonly<{
|
|
|
21
21
|
readonly content: "content";
|
|
22
22
|
readonly isStarred: "isStarred";
|
|
23
23
|
readonly isRead: "isRead";
|
|
24
|
+
readonly contentDigest: "contentDigest";
|
|
24
25
|
readonly commentId: "commentId";
|
|
25
26
|
}>;
|
|
26
27
|
type ActionCommand<ClientTempId extends string = string> = {
|
|
@@ -47,12 +48,27 @@ type ActionCommand<ClientTempId extends string = string> = {
|
|
|
47
48
|
readonly operationTimestamp: number | null;
|
|
48
49
|
readonly reportHubId: number;
|
|
49
50
|
} | {
|
|
50
|
-
readonly intent: "toggleStar"
|
|
51
|
+
readonly intent: "toggleStar";
|
|
51
52
|
readonly clientTempId: ClientTempId;
|
|
52
53
|
readonly businessDate: string | null;
|
|
53
54
|
readonly operationTimestamp: number | null;
|
|
54
55
|
readonly reportHubId: number;
|
|
55
56
|
readonly value: boolean;
|
|
57
|
+
} | {
|
|
58
|
+
readonly intent: "toggleRead";
|
|
59
|
+
readonly clientTempId: ClientTempId;
|
|
60
|
+
readonly businessDate: string | null;
|
|
61
|
+
readonly operationTimestamp: number | null;
|
|
62
|
+
readonly reportHubId: number;
|
|
63
|
+
readonly value: true;
|
|
64
|
+
readonly contentDigest: string;
|
|
65
|
+
} | {
|
|
66
|
+
readonly intent: "toggleRead";
|
|
67
|
+
readonly clientTempId: ClientTempId;
|
|
68
|
+
readonly businessDate: string | null;
|
|
69
|
+
readonly operationTimestamp: number | null;
|
|
70
|
+
readonly reportHubId: number;
|
|
71
|
+
readonly value: false;
|
|
56
72
|
} | {
|
|
57
73
|
readonly intent: "addComment";
|
|
58
74
|
readonly clientTempId: ClientTempId;
|
|
@@ -99,6 +115,7 @@ type ActionResult = {
|
|
|
99
115
|
readonly updatedStatus: {
|
|
100
116
|
readonly isStarred: boolean;
|
|
101
117
|
readonly isRead: boolean;
|
|
118
|
+
readonly readContentDigest: string | null;
|
|
102
119
|
};
|
|
103
120
|
readonly operationTimestamp: number | null;
|
|
104
121
|
} | {
|
|
@@ -109,6 +126,7 @@ type ActionResult = {
|
|
|
109
126
|
readonly updatedStatus: {
|
|
110
127
|
readonly isStarred: boolean;
|
|
111
128
|
readonly isRead: boolean;
|
|
129
|
+
readonly readContentDigest: string | null;
|
|
112
130
|
};
|
|
113
131
|
readonly operationTimestamp: number | null;
|
|
114
132
|
} | {
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as DailyReportDetail, D as DailyReportItem, h as DailyReportPostedComment } from "./types-CcUNWIyC.mjs";
|
|
2
2
|
import { z } from "zod/v3";
|
|
3
|
+
type DailyReportReadState = "unread" | "read" | "updatedSinceRead";
|
|
4
|
+
type DailyReportReadMark = {
|
|
5
|
+
readonly isRead: true;
|
|
6
|
+
readonly contentDigest: string;
|
|
7
|
+
} | {
|
|
8
|
+
readonly isRead: false;
|
|
9
|
+
};
|
|
10
|
+
type DailyReportReadStatus = Pick<DailyReportDetail, "isRead" | "readContentDigest">;
|
|
11
|
+
declare const dailyReportReadStateOf: (report: Pick<DailyReportDetail, "isRead" | "readContentDigest" | "contentDigest" | "userId">, viewerUserId: string | null | undefined) => DailyReportReadState;
|
|
3
12
|
type DailyReportIdsStreamCursor = {
|
|
4
13
|
businessDate: string | null;
|
|
5
14
|
reportHubId: number;
|
|
@@ -74,18 +83,21 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
74
83
|
"read"
|
|
75
84
|
]>;
|
|
76
85
|
value: z.ZodBoolean;
|
|
86
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
77
87
|
clientTempId: z.ZodString;
|
|
78
88
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
89
|
+
readContentDigest: string | null;
|
|
80
90
|
reportHubId: number;
|
|
91
|
+
type: "status-update";
|
|
81
92
|
value: boolean;
|
|
82
|
-
statusType: "
|
|
93
|
+
statusType: "read" | "star";
|
|
83
94
|
clientTempId: string;
|
|
84
95
|
}, {
|
|
85
|
-
|
|
96
|
+
readContentDigest: string | null;
|
|
86
97
|
reportHubId: number;
|
|
98
|
+
type: "status-update";
|
|
87
99
|
value: boolean;
|
|
88
|
-
statusType: "
|
|
100
|
+
statusType: "read" | "star";
|
|
89
101
|
clientTempId: string;
|
|
90
102
|
}>,
|
|
91
103
|
z.ZodObject<{
|
|
@@ -95,15 +107,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
95
107
|
clientTempId: z.ZodString;
|
|
96
108
|
sourceType: z.ZodString;
|
|
97
109
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
type: "comment-add";
|
|
99
110
|
reportHubId: number;
|
|
100
111
|
sourceType: string;
|
|
112
|
+
type: "comment-add";
|
|
101
113
|
clientTempId: string;
|
|
102
114
|
comment: DailyReportPostedComment;
|
|
103
115
|
}, {
|
|
104
|
-
type: "comment-add";
|
|
105
116
|
reportHubId: number;
|
|
106
117
|
sourceType: string;
|
|
118
|
+
type: "comment-add";
|
|
107
119
|
clientTempId: string;
|
|
108
120
|
comment?: unknown;
|
|
109
121
|
}>,
|
|
@@ -114,15 +126,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
114
126
|
clientTempId: z.ZodString;
|
|
115
127
|
sourceType: z.ZodString;
|
|
116
128
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "comment-delete";
|
|
118
129
|
reportHubId: number;
|
|
119
130
|
sourceType: string;
|
|
131
|
+
type: "comment-delete";
|
|
120
132
|
clientTempId: string;
|
|
121
133
|
commentId: number;
|
|
122
134
|
}, {
|
|
123
|
-
type: "comment-delete";
|
|
124
135
|
reportHubId: number;
|
|
125
136
|
sourceType: string;
|
|
137
|
+
type: "comment-delete";
|
|
126
138
|
clientTempId: string;
|
|
127
139
|
commentId: number;
|
|
128
140
|
}>,
|
|
@@ -133,14 +145,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
133
145
|
clientTempId: z.ZodString;
|
|
134
146
|
type: z.ZodLiteral<"report-create">;
|
|
135
147
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
type: "report-create";
|
|
137
148
|
reportHubId: number;
|
|
149
|
+
type: "report-create";
|
|
138
150
|
clientTempId: string;
|
|
139
151
|
viewerIsActor: boolean;
|
|
140
152
|
report: DailyReportDetail;
|
|
141
153
|
}, {
|
|
142
|
-
type: "report-create";
|
|
143
154
|
reportHubId: number;
|
|
155
|
+
type: "report-create";
|
|
144
156
|
clientTempId: string;
|
|
145
157
|
viewerIsActor: boolean;
|
|
146
158
|
report?: unknown;
|
|
@@ -152,14 +164,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
152
164
|
clientTempId: z.ZodString;
|
|
153
165
|
type: z.ZodLiteral<"report-update">;
|
|
154
166
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "report-update";
|
|
156
167
|
reportHubId: number;
|
|
168
|
+
type: "report-update";
|
|
157
169
|
clientTempId: string;
|
|
158
170
|
viewerIsActor: boolean;
|
|
159
171
|
report: DailyReportDetail;
|
|
160
172
|
}, {
|
|
161
|
-
type: "report-update";
|
|
162
173
|
reportHubId: number;
|
|
174
|
+
type: "report-update";
|
|
163
175
|
clientTempId: string;
|
|
164
176
|
viewerIsActor: boolean;
|
|
165
177
|
report?: unknown;
|
|
@@ -171,14 +183,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
171
183
|
clientTempId: z.ZodString;
|
|
172
184
|
type: z.ZodLiteral<"report-publish">;
|
|
173
185
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
type: "report-publish";
|
|
175
186
|
reportHubId: number;
|
|
187
|
+
type: "report-publish";
|
|
176
188
|
clientTempId: string;
|
|
177
189
|
viewerIsActor: boolean;
|
|
178
190
|
report: DailyReportDetail;
|
|
179
191
|
}, {
|
|
180
|
-
type: "report-publish";
|
|
181
192
|
reportHubId: number;
|
|
193
|
+
type: "report-publish";
|
|
182
194
|
clientTempId: string;
|
|
183
195
|
viewerIsActor: boolean;
|
|
184
196
|
report?: unknown;
|
|
@@ -189,14 +201,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
189
201
|
clientTempId: z.ZodString;
|
|
190
202
|
sourceType: z.ZodString;
|
|
191
203
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
type: "report-delete";
|
|
193
204
|
reportHubId: number;
|
|
194
205
|
sourceType: string;
|
|
206
|
+
type: "report-delete";
|
|
195
207
|
clientTempId: string;
|
|
196
208
|
}, {
|
|
197
|
-
type: "report-delete";
|
|
198
209
|
reportHubId: number;
|
|
199
210
|
sourceType: string;
|
|
211
|
+
type: "report-delete";
|
|
200
212
|
clientTempId: string;
|
|
201
213
|
}>
|
|
202
214
|
]>;
|
|
@@ -216,21 +228,24 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
216
228
|
"read"
|
|
217
229
|
]>;
|
|
218
230
|
value: z.ZodBoolean;
|
|
231
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
219
232
|
clientTempId: z.ZodString;
|
|
220
233
|
} & {
|
|
221
234
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
222
235
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
|
|
236
|
+
readContentDigest: string | null;
|
|
224
237
|
reportHubId: number;
|
|
238
|
+
type: "status-update";
|
|
225
239
|
value: boolean;
|
|
226
|
-
statusType: "
|
|
240
|
+
statusType: "read" | "star";
|
|
227
241
|
clientTempId: string;
|
|
228
242
|
recipientRawUserId?: number | undefined;
|
|
229
243
|
}, {
|
|
230
|
-
|
|
244
|
+
readContentDigest: string | null;
|
|
231
245
|
reportHubId: number;
|
|
246
|
+
type: "status-update";
|
|
232
247
|
value: boolean;
|
|
233
|
-
statusType: "
|
|
248
|
+
statusType: "read" | "star";
|
|
234
249
|
clientTempId: string;
|
|
235
250
|
recipientRawUserId?: number | undefined;
|
|
236
251
|
}>,
|
|
@@ -243,16 +258,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
243
258
|
} & {
|
|
244
259
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
245
260
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
type: "comment-add";
|
|
247
261
|
reportHubId: number;
|
|
248
262
|
sourceType: string;
|
|
263
|
+
type: "comment-add";
|
|
249
264
|
clientTempId: string;
|
|
250
265
|
comment: DailyReportPostedComment;
|
|
251
266
|
recipientRawUserId?: number | undefined;
|
|
252
267
|
}, {
|
|
253
|
-
type: "comment-add";
|
|
254
268
|
reportHubId: number;
|
|
255
269
|
sourceType: string;
|
|
270
|
+
type: "comment-add";
|
|
256
271
|
clientTempId: string;
|
|
257
272
|
comment?: unknown;
|
|
258
273
|
recipientRawUserId?: number | undefined;
|
|
@@ -266,16 +281,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
266
281
|
} & {
|
|
267
282
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
268
283
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
type: "comment-delete";
|
|
270
284
|
reportHubId: number;
|
|
271
285
|
sourceType: string;
|
|
286
|
+
type: "comment-delete";
|
|
272
287
|
clientTempId: string;
|
|
273
288
|
commentId: number;
|
|
274
289
|
recipientRawUserId?: number | undefined;
|
|
275
290
|
}, {
|
|
276
|
-
type: "comment-delete";
|
|
277
291
|
reportHubId: number;
|
|
278
292
|
sourceType: string;
|
|
293
|
+
type: "comment-delete";
|
|
279
294
|
clientTempId: string;
|
|
280
295
|
commentId: number;
|
|
281
296
|
recipientRawUserId?: number | undefined;
|
|
@@ -288,15 +303,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
288
303
|
clientTempId: z.ZodString;
|
|
289
304
|
type: z.ZodLiteral<"report-create">;
|
|
290
305
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: "report-create";
|
|
292
306
|
reportHubId: number;
|
|
307
|
+
type: "report-create";
|
|
293
308
|
clientTempId: string;
|
|
294
309
|
report: DailyReportDetail;
|
|
295
310
|
actorRawUserId: number;
|
|
296
311
|
recipientRawUserId?: number | undefined;
|
|
297
312
|
}, {
|
|
298
|
-
type: "report-create";
|
|
299
313
|
reportHubId: number;
|
|
314
|
+
type: "report-create";
|
|
300
315
|
clientTempId: string;
|
|
301
316
|
actorRawUserId: number;
|
|
302
317
|
recipientRawUserId?: number | undefined;
|
|
@@ -310,15 +325,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
310
325
|
clientTempId: z.ZodString;
|
|
311
326
|
type: z.ZodLiteral<"report-update">;
|
|
312
327
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
type: "report-update";
|
|
314
328
|
reportHubId: number;
|
|
329
|
+
type: "report-update";
|
|
315
330
|
clientTempId: string;
|
|
316
331
|
report: DailyReportDetail;
|
|
317
332
|
actorRawUserId: number;
|
|
318
333
|
recipientRawUserId?: number | undefined;
|
|
319
334
|
}, {
|
|
320
|
-
type: "report-update";
|
|
321
335
|
reportHubId: number;
|
|
336
|
+
type: "report-update";
|
|
322
337
|
clientTempId: string;
|
|
323
338
|
actorRawUserId: number;
|
|
324
339
|
recipientRawUserId?: number | undefined;
|
|
@@ -332,15 +347,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
332
347
|
clientTempId: z.ZodString;
|
|
333
348
|
type: z.ZodLiteral<"report-publish">;
|
|
334
349
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
type: "report-publish";
|
|
336
350
|
reportHubId: number;
|
|
351
|
+
type: "report-publish";
|
|
337
352
|
clientTempId: string;
|
|
338
353
|
report: DailyReportDetail;
|
|
339
354
|
actorRawUserId: number;
|
|
340
355
|
recipientRawUserId?: number | undefined;
|
|
341
356
|
}, {
|
|
342
|
-
type: "report-publish";
|
|
343
357
|
reportHubId: number;
|
|
358
|
+
type: "report-publish";
|
|
344
359
|
clientTempId: string;
|
|
345
360
|
actorRawUserId: number;
|
|
346
361
|
recipientRawUserId?: number | undefined;
|
|
@@ -352,17 +367,17 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
352
367
|
clientTempId: z.ZodString;
|
|
353
368
|
sourceType: z.ZodString;
|
|
354
369
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
type: "report-delete";
|
|
356
370
|
reportHubId: number;
|
|
357
371
|
sourceType: string;
|
|
372
|
+
type: "report-delete";
|
|
358
373
|
clientTempId: string;
|
|
359
374
|
}, {
|
|
360
|
-
type: "report-delete";
|
|
361
375
|
reportHubId: number;
|
|
362
376
|
sourceType: string;
|
|
377
|
+
type: "report-delete";
|
|
363
378
|
clientTempId: string;
|
|
364
379
|
}>
|
|
365
380
|
]>;
|
|
366
381
|
type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
|
|
367
382
|
type DailyReportSseStreamMessage = z.infer<typeof dailyReportSseStreamMessageSchema>;
|
|
368
|
-
export { type
|
|
383
|
+
export { type DailyReportReadState as D, type DailyReportSseStreamAnchor as a, type DailyReportSseTerminalEvent as b, type DailyReportSseMessage as c, type DailyReportReadMark as d, type DailyReportReadStatus as e, DAILY_REPORT_SSE_CURSOR_PARAM as f, DAILY_REPORT_SSE_HEARTBEAT_MS as g, DAILY_REPORT_SSE_TERMINAL_EVENTS as h, type DailyReportIdsStreamChunk as i, type DailyReportIdsStreamChunkLine as j, type DailyReportIdsStreamCursor as k, type DailyReportIdsStreamRowColumns as l, type DailyReportIdsStreamRows as m, dailyReportDetailSchema as n, dailyReportReadStateOf as o, dailyReportSseMessageSchema as p, forEachIdsStreamRow as q, readIdsStreamChunkLine as r, type DailyReportSseStreamMessage as s, dailyReportSseStreamMessageSchema as t, encodeIdsStreamRows as u };
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as DailyReportDetail, D as DailyReportItem, h as DailyReportPostedComment } from "./types-CcUNWIyC.js";
|
|
2
2
|
import { z } from "zod/v3";
|
|
3
|
+
type DailyReportReadState = "unread" | "read" | "updatedSinceRead";
|
|
4
|
+
type DailyReportReadMark = {
|
|
5
|
+
readonly isRead: true;
|
|
6
|
+
readonly contentDigest: string;
|
|
7
|
+
} | {
|
|
8
|
+
readonly isRead: false;
|
|
9
|
+
};
|
|
10
|
+
type DailyReportReadStatus = Pick<DailyReportDetail, "isRead" | "readContentDigest">;
|
|
11
|
+
declare const dailyReportReadStateOf: (report: Pick<DailyReportDetail, "isRead" | "readContentDigest" | "contentDigest" | "userId">, viewerUserId: string | null | undefined) => DailyReportReadState;
|
|
3
12
|
type DailyReportIdsStreamCursor = {
|
|
4
13
|
businessDate: string | null;
|
|
5
14
|
reportHubId: number;
|
|
@@ -74,18 +83,21 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
74
83
|
"read"
|
|
75
84
|
]>;
|
|
76
85
|
value: z.ZodBoolean;
|
|
86
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
77
87
|
clientTempId: z.ZodString;
|
|
78
88
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
89
|
+
readContentDigest: string | null;
|
|
80
90
|
reportHubId: number;
|
|
91
|
+
type: "status-update";
|
|
81
92
|
value: boolean;
|
|
82
|
-
statusType: "
|
|
93
|
+
statusType: "read" | "star";
|
|
83
94
|
clientTempId: string;
|
|
84
95
|
}, {
|
|
85
|
-
|
|
96
|
+
readContentDigest: string | null;
|
|
86
97
|
reportHubId: number;
|
|
98
|
+
type: "status-update";
|
|
87
99
|
value: boolean;
|
|
88
|
-
statusType: "
|
|
100
|
+
statusType: "read" | "star";
|
|
89
101
|
clientTempId: string;
|
|
90
102
|
}>,
|
|
91
103
|
z.ZodObject<{
|
|
@@ -95,15 +107,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
95
107
|
clientTempId: z.ZodString;
|
|
96
108
|
sourceType: z.ZodString;
|
|
97
109
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
type: "comment-add";
|
|
99
110
|
reportHubId: number;
|
|
100
111
|
sourceType: string;
|
|
112
|
+
type: "comment-add";
|
|
101
113
|
clientTempId: string;
|
|
102
114
|
comment: DailyReportPostedComment;
|
|
103
115
|
}, {
|
|
104
|
-
type: "comment-add";
|
|
105
116
|
reportHubId: number;
|
|
106
117
|
sourceType: string;
|
|
118
|
+
type: "comment-add";
|
|
107
119
|
clientTempId: string;
|
|
108
120
|
comment?: unknown;
|
|
109
121
|
}>,
|
|
@@ -114,15 +126,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
114
126
|
clientTempId: z.ZodString;
|
|
115
127
|
sourceType: z.ZodString;
|
|
116
128
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "comment-delete";
|
|
118
129
|
reportHubId: number;
|
|
119
130
|
sourceType: string;
|
|
131
|
+
type: "comment-delete";
|
|
120
132
|
clientTempId: string;
|
|
121
133
|
commentId: number;
|
|
122
134
|
}, {
|
|
123
|
-
type: "comment-delete";
|
|
124
135
|
reportHubId: number;
|
|
125
136
|
sourceType: string;
|
|
137
|
+
type: "comment-delete";
|
|
126
138
|
clientTempId: string;
|
|
127
139
|
commentId: number;
|
|
128
140
|
}>,
|
|
@@ -133,14 +145,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
133
145
|
clientTempId: z.ZodString;
|
|
134
146
|
type: z.ZodLiteral<"report-create">;
|
|
135
147
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
type: "report-create";
|
|
137
148
|
reportHubId: number;
|
|
149
|
+
type: "report-create";
|
|
138
150
|
clientTempId: string;
|
|
139
151
|
viewerIsActor: boolean;
|
|
140
152
|
report: DailyReportDetail;
|
|
141
153
|
}, {
|
|
142
|
-
type: "report-create";
|
|
143
154
|
reportHubId: number;
|
|
155
|
+
type: "report-create";
|
|
144
156
|
clientTempId: string;
|
|
145
157
|
viewerIsActor: boolean;
|
|
146
158
|
report?: unknown;
|
|
@@ -152,14 +164,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
152
164
|
clientTempId: z.ZodString;
|
|
153
165
|
type: z.ZodLiteral<"report-update">;
|
|
154
166
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "report-update";
|
|
156
167
|
reportHubId: number;
|
|
168
|
+
type: "report-update";
|
|
157
169
|
clientTempId: string;
|
|
158
170
|
viewerIsActor: boolean;
|
|
159
171
|
report: DailyReportDetail;
|
|
160
172
|
}, {
|
|
161
|
-
type: "report-update";
|
|
162
173
|
reportHubId: number;
|
|
174
|
+
type: "report-update";
|
|
163
175
|
clientTempId: string;
|
|
164
176
|
viewerIsActor: boolean;
|
|
165
177
|
report?: unknown;
|
|
@@ -171,14 +183,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
171
183
|
clientTempId: z.ZodString;
|
|
172
184
|
type: z.ZodLiteral<"report-publish">;
|
|
173
185
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
type: "report-publish";
|
|
175
186
|
reportHubId: number;
|
|
187
|
+
type: "report-publish";
|
|
176
188
|
clientTempId: string;
|
|
177
189
|
viewerIsActor: boolean;
|
|
178
190
|
report: DailyReportDetail;
|
|
179
191
|
}, {
|
|
180
|
-
type: "report-publish";
|
|
181
192
|
reportHubId: number;
|
|
193
|
+
type: "report-publish";
|
|
182
194
|
clientTempId: string;
|
|
183
195
|
viewerIsActor: boolean;
|
|
184
196
|
report?: unknown;
|
|
@@ -189,14 +201,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
189
201
|
clientTempId: z.ZodString;
|
|
190
202
|
sourceType: z.ZodString;
|
|
191
203
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
type: "report-delete";
|
|
193
204
|
reportHubId: number;
|
|
194
205
|
sourceType: string;
|
|
206
|
+
type: "report-delete";
|
|
195
207
|
clientTempId: string;
|
|
196
208
|
}, {
|
|
197
|
-
type: "report-delete";
|
|
198
209
|
reportHubId: number;
|
|
199
210
|
sourceType: string;
|
|
211
|
+
type: "report-delete";
|
|
200
212
|
clientTempId: string;
|
|
201
213
|
}>
|
|
202
214
|
]>;
|
|
@@ -216,21 +228,24 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
216
228
|
"read"
|
|
217
229
|
]>;
|
|
218
230
|
value: z.ZodBoolean;
|
|
231
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
219
232
|
clientTempId: z.ZodString;
|
|
220
233
|
} & {
|
|
221
234
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
222
235
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
|
|
236
|
+
readContentDigest: string | null;
|
|
224
237
|
reportHubId: number;
|
|
238
|
+
type: "status-update";
|
|
225
239
|
value: boolean;
|
|
226
|
-
statusType: "
|
|
240
|
+
statusType: "read" | "star";
|
|
227
241
|
clientTempId: string;
|
|
228
242
|
recipientRawUserId?: number | undefined;
|
|
229
243
|
}, {
|
|
230
|
-
|
|
244
|
+
readContentDigest: string | null;
|
|
231
245
|
reportHubId: number;
|
|
246
|
+
type: "status-update";
|
|
232
247
|
value: boolean;
|
|
233
|
-
statusType: "
|
|
248
|
+
statusType: "read" | "star";
|
|
234
249
|
clientTempId: string;
|
|
235
250
|
recipientRawUserId?: number | undefined;
|
|
236
251
|
}>,
|
|
@@ -243,16 +258,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
243
258
|
} & {
|
|
244
259
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
245
260
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
type: "comment-add";
|
|
247
261
|
reportHubId: number;
|
|
248
262
|
sourceType: string;
|
|
263
|
+
type: "comment-add";
|
|
249
264
|
clientTempId: string;
|
|
250
265
|
comment: DailyReportPostedComment;
|
|
251
266
|
recipientRawUserId?: number | undefined;
|
|
252
267
|
}, {
|
|
253
|
-
type: "comment-add";
|
|
254
268
|
reportHubId: number;
|
|
255
269
|
sourceType: string;
|
|
270
|
+
type: "comment-add";
|
|
256
271
|
clientTempId: string;
|
|
257
272
|
comment?: unknown;
|
|
258
273
|
recipientRawUserId?: number | undefined;
|
|
@@ -266,16 +281,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
266
281
|
} & {
|
|
267
282
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
268
283
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
type: "comment-delete";
|
|
270
284
|
reportHubId: number;
|
|
271
285
|
sourceType: string;
|
|
286
|
+
type: "comment-delete";
|
|
272
287
|
clientTempId: string;
|
|
273
288
|
commentId: number;
|
|
274
289
|
recipientRawUserId?: number | undefined;
|
|
275
290
|
}, {
|
|
276
|
-
type: "comment-delete";
|
|
277
291
|
reportHubId: number;
|
|
278
292
|
sourceType: string;
|
|
293
|
+
type: "comment-delete";
|
|
279
294
|
clientTempId: string;
|
|
280
295
|
commentId: number;
|
|
281
296
|
recipientRawUserId?: number | undefined;
|
|
@@ -288,15 +303,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
288
303
|
clientTempId: z.ZodString;
|
|
289
304
|
type: z.ZodLiteral<"report-create">;
|
|
290
305
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: "report-create";
|
|
292
306
|
reportHubId: number;
|
|
307
|
+
type: "report-create";
|
|
293
308
|
clientTempId: string;
|
|
294
309
|
report: DailyReportDetail;
|
|
295
310
|
actorRawUserId: number;
|
|
296
311
|
recipientRawUserId?: number | undefined;
|
|
297
312
|
}, {
|
|
298
|
-
type: "report-create";
|
|
299
313
|
reportHubId: number;
|
|
314
|
+
type: "report-create";
|
|
300
315
|
clientTempId: string;
|
|
301
316
|
actorRawUserId: number;
|
|
302
317
|
recipientRawUserId?: number | undefined;
|
|
@@ -310,15 +325,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
310
325
|
clientTempId: z.ZodString;
|
|
311
326
|
type: z.ZodLiteral<"report-update">;
|
|
312
327
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
type: "report-update";
|
|
314
328
|
reportHubId: number;
|
|
329
|
+
type: "report-update";
|
|
315
330
|
clientTempId: string;
|
|
316
331
|
report: DailyReportDetail;
|
|
317
332
|
actorRawUserId: number;
|
|
318
333
|
recipientRawUserId?: number | undefined;
|
|
319
334
|
}, {
|
|
320
|
-
type: "report-update";
|
|
321
335
|
reportHubId: number;
|
|
336
|
+
type: "report-update";
|
|
322
337
|
clientTempId: string;
|
|
323
338
|
actorRawUserId: number;
|
|
324
339
|
recipientRawUserId?: number | undefined;
|
|
@@ -332,15 +347,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
332
347
|
clientTempId: z.ZodString;
|
|
333
348
|
type: z.ZodLiteral<"report-publish">;
|
|
334
349
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
type: "report-publish";
|
|
336
350
|
reportHubId: number;
|
|
351
|
+
type: "report-publish";
|
|
337
352
|
clientTempId: string;
|
|
338
353
|
report: DailyReportDetail;
|
|
339
354
|
actorRawUserId: number;
|
|
340
355
|
recipientRawUserId?: number | undefined;
|
|
341
356
|
}, {
|
|
342
|
-
type: "report-publish";
|
|
343
357
|
reportHubId: number;
|
|
358
|
+
type: "report-publish";
|
|
344
359
|
clientTempId: string;
|
|
345
360
|
actorRawUserId: number;
|
|
346
361
|
recipientRawUserId?: number | undefined;
|
|
@@ -352,17 +367,17 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
352
367
|
clientTempId: z.ZodString;
|
|
353
368
|
sourceType: z.ZodString;
|
|
354
369
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
type: "report-delete";
|
|
356
370
|
reportHubId: number;
|
|
357
371
|
sourceType: string;
|
|
372
|
+
type: "report-delete";
|
|
358
373
|
clientTempId: string;
|
|
359
374
|
}, {
|
|
360
|
-
type: "report-delete";
|
|
361
375
|
reportHubId: number;
|
|
362
376
|
sourceType: string;
|
|
377
|
+
type: "report-delete";
|
|
363
378
|
clientTempId: string;
|
|
364
379
|
}>
|
|
365
380
|
]>;
|
|
366
381
|
type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
|
|
367
382
|
type DailyReportSseStreamMessage = z.infer<typeof dailyReportSseStreamMessageSchema>;
|
|
368
|
-
export { type
|
|
383
|
+
export { type DailyReportReadState as D, type DailyReportSseStreamAnchor as a, type DailyReportSseTerminalEvent as b, type DailyReportSseMessage as c, type DailyReportReadMark as d, type DailyReportReadStatus as e, DAILY_REPORT_SSE_CURSOR_PARAM as f, DAILY_REPORT_SSE_HEARTBEAT_MS as g, DAILY_REPORT_SSE_TERMINAL_EVENTS as h, type DailyReportIdsStreamChunk as i, type DailyReportIdsStreamChunkLine as j, type DailyReportIdsStreamCursor as k, type DailyReportIdsStreamRowColumns as l, type DailyReportIdsStreamRows as m, dailyReportDetailSchema as n, dailyReportReadStateOf as o, dailyReportSseMessageSchema as p, forEachIdsStreamRow as q, readIdsStreamChunkLine as r, type DailyReportSseStreamMessage as s, dailyReportSseStreamMessageSchema as t, encodeIdsStreamRows as u };
|