@aiquants/daily-report 0.46.1 → 0.47.0
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 +43 -0
- package/README.md +51 -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-BmhpWHVK.d.ts → sse-schema-BLe0x7BD.d.ts} +48 -34
- package/dist/{sse-schema-CM_YM7xU.d.mts → sse-schema-Bk_iO1vF.d.mts} +48 -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,13 @@
|
|
|
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">;
|
|
3
11
|
type DailyReportIdsStreamCursor = {
|
|
4
12
|
businessDate: string | null;
|
|
5
13
|
reportHubId: number;
|
|
@@ -74,18 +82,21 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
74
82
|
"read"
|
|
75
83
|
]>;
|
|
76
84
|
value: z.ZodBoolean;
|
|
85
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
77
86
|
clientTempId: z.ZodString;
|
|
78
87
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
88
|
+
readContentDigest: string | null;
|
|
80
89
|
reportHubId: number;
|
|
90
|
+
type: "status-update";
|
|
81
91
|
value: boolean;
|
|
82
|
-
statusType: "
|
|
92
|
+
statusType: "read" | "star";
|
|
83
93
|
clientTempId: string;
|
|
84
94
|
}, {
|
|
85
|
-
|
|
95
|
+
readContentDigest: string | null;
|
|
86
96
|
reportHubId: number;
|
|
97
|
+
type: "status-update";
|
|
87
98
|
value: boolean;
|
|
88
|
-
statusType: "
|
|
99
|
+
statusType: "read" | "star";
|
|
89
100
|
clientTempId: string;
|
|
90
101
|
}>,
|
|
91
102
|
z.ZodObject<{
|
|
@@ -95,15 +106,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
95
106
|
clientTempId: z.ZodString;
|
|
96
107
|
sourceType: z.ZodString;
|
|
97
108
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
type: "comment-add";
|
|
99
109
|
reportHubId: number;
|
|
100
110
|
sourceType: string;
|
|
111
|
+
type: "comment-add";
|
|
101
112
|
clientTempId: string;
|
|
102
113
|
comment: DailyReportPostedComment;
|
|
103
114
|
}, {
|
|
104
|
-
type: "comment-add";
|
|
105
115
|
reportHubId: number;
|
|
106
116
|
sourceType: string;
|
|
117
|
+
type: "comment-add";
|
|
107
118
|
clientTempId: string;
|
|
108
119
|
comment?: unknown;
|
|
109
120
|
}>,
|
|
@@ -114,15 +125,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
114
125
|
clientTempId: z.ZodString;
|
|
115
126
|
sourceType: z.ZodString;
|
|
116
127
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "comment-delete";
|
|
118
128
|
reportHubId: number;
|
|
119
129
|
sourceType: string;
|
|
130
|
+
type: "comment-delete";
|
|
120
131
|
clientTempId: string;
|
|
121
132
|
commentId: number;
|
|
122
133
|
}, {
|
|
123
|
-
type: "comment-delete";
|
|
124
134
|
reportHubId: number;
|
|
125
135
|
sourceType: string;
|
|
136
|
+
type: "comment-delete";
|
|
126
137
|
clientTempId: string;
|
|
127
138
|
commentId: number;
|
|
128
139
|
}>,
|
|
@@ -133,14 +144,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
133
144
|
clientTempId: z.ZodString;
|
|
134
145
|
type: z.ZodLiteral<"report-create">;
|
|
135
146
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
type: "report-create";
|
|
137
147
|
reportHubId: number;
|
|
148
|
+
type: "report-create";
|
|
138
149
|
clientTempId: string;
|
|
139
150
|
viewerIsActor: boolean;
|
|
140
151
|
report: DailyReportDetail;
|
|
141
152
|
}, {
|
|
142
|
-
type: "report-create";
|
|
143
153
|
reportHubId: number;
|
|
154
|
+
type: "report-create";
|
|
144
155
|
clientTempId: string;
|
|
145
156
|
viewerIsActor: boolean;
|
|
146
157
|
report?: unknown;
|
|
@@ -152,14 +163,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
152
163
|
clientTempId: z.ZodString;
|
|
153
164
|
type: z.ZodLiteral<"report-update">;
|
|
154
165
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "report-update";
|
|
156
166
|
reportHubId: number;
|
|
167
|
+
type: "report-update";
|
|
157
168
|
clientTempId: string;
|
|
158
169
|
viewerIsActor: boolean;
|
|
159
170
|
report: DailyReportDetail;
|
|
160
171
|
}, {
|
|
161
|
-
type: "report-update";
|
|
162
172
|
reportHubId: number;
|
|
173
|
+
type: "report-update";
|
|
163
174
|
clientTempId: string;
|
|
164
175
|
viewerIsActor: boolean;
|
|
165
176
|
report?: unknown;
|
|
@@ -171,14 +182,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
171
182
|
clientTempId: z.ZodString;
|
|
172
183
|
type: z.ZodLiteral<"report-publish">;
|
|
173
184
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
type: "report-publish";
|
|
175
185
|
reportHubId: number;
|
|
186
|
+
type: "report-publish";
|
|
176
187
|
clientTempId: string;
|
|
177
188
|
viewerIsActor: boolean;
|
|
178
189
|
report: DailyReportDetail;
|
|
179
190
|
}, {
|
|
180
|
-
type: "report-publish";
|
|
181
191
|
reportHubId: number;
|
|
192
|
+
type: "report-publish";
|
|
182
193
|
clientTempId: string;
|
|
183
194
|
viewerIsActor: boolean;
|
|
184
195
|
report?: unknown;
|
|
@@ -189,14 +200,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
189
200
|
clientTempId: z.ZodString;
|
|
190
201
|
sourceType: z.ZodString;
|
|
191
202
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
type: "report-delete";
|
|
193
203
|
reportHubId: number;
|
|
194
204
|
sourceType: string;
|
|
205
|
+
type: "report-delete";
|
|
195
206
|
clientTempId: string;
|
|
196
207
|
}, {
|
|
197
|
-
type: "report-delete";
|
|
198
208
|
reportHubId: number;
|
|
199
209
|
sourceType: string;
|
|
210
|
+
type: "report-delete";
|
|
200
211
|
clientTempId: string;
|
|
201
212
|
}>
|
|
202
213
|
]>;
|
|
@@ -216,21 +227,24 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
216
227
|
"read"
|
|
217
228
|
]>;
|
|
218
229
|
value: z.ZodBoolean;
|
|
230
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
219
231
|
clientTempId: z.ZodString;
|
|
220
232
|
} & {
|
|
221
233
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
222
234
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
|
|
235
|
+
readContentDigest: string | null;
|
|
224
236
|
reportHubId: number;
|
|
237
|
+
type: "status-update";
|
|
225
238
|
value: boolean;
|
|
226
|
-
statusType: "
|
|
239
|
+
statusType: "read" | "star";
|
|
227
240
|
clientTempId: string;
|
|
228
241
|
recipientRawUserId?: number | undefined;
|
|
229
242
|
}, {
|
|
230
|
-
|
|
243
|
+
readContentDigest: string | null;
|
|
231
244
|
reportHubId: number;
|
|
245
|
+
type: "status-update";
|
|
232
246
|
value: boolean;
|
|
233
|
-
statusType: "
|
|
247
|
+
statusType: "read" | "star";
|
|
234
248
|
clientTempId: string;
|
|
235
249
|
recipientRawUserId?: number | undefined;
|
|
236
250
|
}>,
|
|
@@ -243,16 +257,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
243
257
|
} & {
|
|
244
258
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
245
259
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
type: "comment-add";
|
|
247
260
|
reportHubId: number;
|
|
248
261
|
sourceType: string;
|
|
262
|
+
type: "comment-add";
|
|
249
263
|
clientTempId: string;
|
|
250
264
|
comment: DailyReportPostedComment;
|
|
251
265
|
recipientRawUserId?: number | undefined;
|
|
252
266
|
}, {
|
|
253
|
-
type: "comment-add";
|
|
254
267
|
reportHubId: number;
|
|
255
268
|
sourceType: string;
|
|
269
|
+
type: "comment-add";
|
|
256
270
|
clientTempId: string;
|
|
257
271
|
comment?: unknown;
|
|
258
272
|
recipientRawUserId?: number | undefined;
|
|
@@ -266,16 +280,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
266
280
|
} & {
|
|
267
281
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
268
282
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
type: "comment-delete";
|
|
270
283
|
reportHubId: number;
|
|
271
284
|
sourceType: string;
|
|
285
|
+
type: "comment-delete";
|
|
272
286
|
clientTempId: string;
|
|
273
287
|
commentId: number;
|
|
274
288
|
recipientRawUserId?: number | undefined;
|
|
275
289
|
}, {
|
|
276
|
-
type: "comment-delete";
|
|
277
290
|
reportHubId: number;
|
|
278
291
|
sourceType: string;
|
|
292
|
+
type: "comment-delete";
|
|
279
293
|
clientTempId: string;
|
|
280
294
|
commentId: number;
|
|
281
295
|
recipientRawUserId?: number | undefined;
|
|
@@ -288,15 +302,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
288
302
|
clientTempId: z.ZodString;
|
|
289
303
|
type: z.ZodLiteral<"report-create">;
|
|
290
304
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: "report-create";
|
|
292
305
|
reportHubId: number;
|
|
306
|
+
type: "report-create";
|
|
293
307
|
clientTempId: string;
|
|
294
308
|
report: DailyReportDetail;
|
|
295
309
|
actorRawUserId: number;
|
|
296
310
|
recipientRawUserId?: number | undefined;
|
|
297
311
|
}, {
|
|
298
|
-
type: "report-create";
|
|
299
312
|
reportHubId: number;
|
|
313
|
+
type: "report-create";
|
|
300
314
|
clientTempId: string;
|
|
301
315
|
actorRawUserId: number;
|
|
302
316
|
recipientRawUserId?: number | undefined;
|
|
@@ -310,15 +324,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
310
324
|
clientTempId: z.ZodString;
|
|
311
325
|
type: z.ZodLiteral<"report-update">;
|
|
312
326
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
type: "report-update";
|
|
314
327
|
reportHubId: number;
|
|
328
|
+
type: "report-update";
|
|
315
329
|
clientTempId: string;
|
|
316
330
|
report: DailyReportDetail;
|
|
317
331
|
actorRawUserId: number;
|
|
318
332
|
recipientRawUserId?: number | undefined;
|
|
319
333
|
}, {
|
|
320
|
-
type: "report-update";
|
|
321
334
|
reportHubId: number;
|
|
335
|
+
type: "report-update";
|
|
322
336
|
clientTempId: string;
|
|
323
337
|
actorRawUserId: number;
|
|
324
338
|
recipientRawUserId?: number | undefined;
|
|
@@ -332,15 +346,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
332
346
|
clientTempId: z.ZodString;
|
|
333
347
|
type: z.ZodLiteral<"report-publish">;
|
|
334
348
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
type: "report-publish";
|
|
336
349
|
reportHubId: number;
|
|
350
|
+
type: "report-publish";
|
|
337
351
|
clientTempId: string;
|
|
338
352
|
report: DailyReportDetail;
|
|
339
353
|
actorRawUserId: number;
|
|
340
354
|
recipientRawUserId?: number | undefined;
|
|
341
355
|
}, {
|
|
342
|
-
type: "report-publish";
|
|
343
356
|
reportHubId: number;
|
|
357
|
+
type: "report-publish";
|
|
344
358
|
clientTempId: string;
|
|
345
359
|
actorRawUserId: number;
|
|
346
360
|
recipientRawUserId?: number | undefined;
|
|
@@ -352,17 +366,17 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
352
366
|
clientTempId: z.ZodString;
|
|
353
367
|
sourceType: z.ZodString;
|
|
354
368
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
type: "report-delete";
|
|
356
369
|
reportHubId: number;
|
|
357
370
|
sourceType: string;
|
|
371
|
+
type: "report-delete";
|
|
358
372
|
clientTempId: string;
|
|
359
373
|
}, {
|
|
360
|
-
type: "report-delete";
|
|
361
374
|
reportHubId: number;
|
|
362
375
|
sourceType: string;
|
|
376
|
+
type: "report-delete";
|
|
363
377
|
clientTempId: string;
|
|
364
378
|
}>
|
|
365
379
|
]>;
|
|
366
380
|
type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
|
|
367
381
|
type DailyReportSseStreamMessage = z.infer<typeof dailyReportSseStreamMessageSchema>;
|
|
368
|
-
export { type
|
|
382
|
+
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, dailyReportSseMessageSchema as o, forEachIdsStreamRow as p, type DailyReportSseStreamMessage as q, readIdsStreamChunkLine as r, dailyReportSseStreamMessageSchema as s, encodeIdsStreamRows as t };
|
|
@@ -1,5 +1,13 @@
|
|
|
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">;
|
|
3
11
|
type DailyReportIdsStreamCursor = {
|
|
4
12
|
businessDate: string | null;
|
|
5
13
|
reportHubId: number;
|
|
@@ -74,18 +82,21 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
74
82
|
"read"
|
|
75
83
|
]>;
|
|
76
84
|
value: z.ZodBoolean;
|
|
85
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
77
86
|
clientTempId: z.ZodString;
|
|
78
87
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
88
|
+
readContentDigest: string | null;
|
|
80
89
|
reportHubId: number;
|
|
90
|
+
type: "status-update";
|
|
81
91
|
value: boolean;
|
|
82
|
-
statusType: "
|
|
92
|
+
statusType: "read" | "star";
|
|
83
93
|
clientTempId: string;
|
|
84
94
|
}, {
|
|
85
|
-
|
|
95
|
+
readContentDigest: string | null;
|
|
86
96
|
reportHubId: number;
|
|
97
|
+
type: "status-update";
|
|
87
98
|
value: boolean;
|
|
88
|
-
statusType: "
|
|
99
|
+
statusType: "read" | "star";
|
|
89
100
|
clientTempId: string;
|
|
90
101
|
}>,
|
|
91
102
|
z.ZodObject<{
|
|
@@ -95,15 +106,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
95
106
|
clientTempId: z.ZodString;
|
|
96
107
|
sourceType: z.ZodString;
|
|
97
108
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
type: "comment-add";
|
|
99
109
|
reportHubId: number;
|
|
100
110
|
sourceType: string;
|
|
111
|
+
type: "comment-add";
|
|
101
112
|
clientTempId: string;
|
|
102
113
|
comment: DailyReportPostedComment;
|
|
103
114
|
}, {
|
|
104
|
-
type: "comment-add";
|
|
105
115
|
reportHubId: number;
|
|
106
116
|
sourceType: string;
|
|
117
|
+
type: "comment-add";
|
|
107
118
|
clientTempId: string;
|
|
108
119
|
comment?: unknown;
|
|
109
120
|
}>,
|
|
@@ -114,15 +125,15 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
114
125
|
clientTempId: z.ZodString;
|
|
115
126
|
sourceType: z.ZodString;
|
|
116
127
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "comment-delete";
|
|
118
128
|
reportHubId: number;
|
|
119
129
|
sourceType: string;
|
|
130
|
+
type: "comment-delete";
|
|
120
131
|
clientTempId: string;
|
|
121
132
|
commentId: number;
|
|
122
133
|
}, {
|
|
123
|
-
type: "comment-delete";
|
|
124
134
|
reportHubId: number;
|
|
125
135
|
sourceType: string;
|
|
136
|
+
type: "comment-delete";
|
|
126
137
|
clientTempId: string;
|
|
127
138
|
commentId: number;
|
|
128
139
|
}>,
|
|
@@ -133,14 +144,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
133
144
|
clientTempId: z.ZodString;
|
|
134
145
|
type: z.ZodLiteral<"report-create">;
|
|
135
146
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
type: "report-create";
|
|
137
147
|
reportHubId: number;
|
|
148
|
+
type: "report-create";
|
|
138
149
|
clientTempId: string;
|
|
139
150
|
viewerIsActor: boolean;
|
|
140
151
|
report: DailyReportDetail;
|
|
141
152
|
}, {
|
|
142
|
-
type: "report-create";
|
|
143
153
|
reportHubId: number;
|
|
154
|
+
type: "report-create";
|
|
144
155
|
clientTempId: string;
|
|
145
156
|
viewerIsActor: boolean;
|
|
146
157
|
report?: unknown;
|
|
@@ -152,14 +163,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
152
163
|
clientTempId: z.ZodString;
|
|
153
164
|
type: z.ZodLiteral<"report-update">;
|
|
154
165
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "report-update";
|
|
156
166
|
reportHubId: number;
|
|
167
|
+
type: "report-update";
|
|
157
168
|
clientTempId: string;
|
|
158
169
|
viewerIsActor: boolean;
|
|
159
170
|
report: DailyReportDetail;
|
|
160
171
|
}, {
|
|
161
|
-
type: "report-update";
|
|
162
172
|
reportHubId: number;
|
|
173
|
+
type: "report-update";
|
|
163
174
|
clientTempId: string;
|
|
164
175
|
viewerIsActor: boolean;
|
|
165
176
|
report?: unknown;
|
|
@@ -171,14 +182,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
171
182
|
clientTempId: z.ZodString;
|
|
172
183
|
type: z.ZodLiteral<"report-publish">;
|
|
173
184
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
type: "report-publish";
|
|
175
185
|
reportHubId: number;
|
|
186
|
+
type: "report-publish";
|
|
176
187
|
clientTempId: string;
|
|
177
188
|
viewerIsActor: boolean;
|
|
178
189
|
report: DailyReportDetail;
|
|
179
190
|
}, {
|
|
180
|
-
type: "report-publish";
|
|
181
191
|
reportHubId: number;
|
|
192
|
+
type: "report-publish";
|
|
182
193
|
clientTempId: string;
|
|
183
194
|
viewerIsActor: boolean;
|
|
184
195
|
report?: unknown;
|
|
@@ -189,14 +200,14 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
189
200
|
clientTempId: z.ZodString;
|
|
190
201
|
sourceType: z.ZodString;
|
|
191
202
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
type: "report-delete";
|
|
193
203
|
reportHubId: number;
|
|
194
204
|
sourceType: string;
|
|
205
|
+
type: "report-delete";
|
|
195
206
|
clientTempId: string;
|
|
196
207
|
}, {
|
|
197
|
-
type: "report-delete";
|
|
198
208
|
reportHubId: number;
|
|
199
209
|
sourceType: string;
|
|
210
|
+
type: "report-delete";
|
|
200
211
|
clientTempId: string;
|
|
201
212
|
}>
|
|
202
213
|
]>;
|
|
@@ -216,21 +227,24 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
216
227
|
"read"
|
|
217
228
|
]>;
|
|
218
229
|
value: z.ZodBoolean;
|
|
230
|
+
readContentDigest: z.ZodNullable<z.ZodString>;
|
|
219
231
|
clientTempId: z.ZodString;
|
|
220
232
|
} & {
|
|
221
233
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
222
234
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
|
|
235
|
+
readContentDigest: string | null;
|
|
224
236
|
reportHubId: number;
|
|
237
|
+
type: "status-update";
|
|
225
238
|
value: boolean;
|
|
226
|
-
statusType: "
|
|
239
|
+
statusType: "read" | "star";
|
|
227
240
|
clientTempId: string;
|
|
228
241
|
recipientRawUserId?: number | undefined;
|
|
229
242
|
}, {
|
|
230
|
-
|
|
243
|
+
readContentDigest: string | null;
|
|
231
244
|
reportHubId: number;
|
|
245
|
+
type: "status-update";
|
|
232
246
|
value: boolean;
|
|
233
|
-
statusType: "
|
|
247
|
+
statusType: "read" | "star";
|
|
234
248
|
clientTempId: string;
|
|
235
249
|
recipientRawUserId?: number | undefined;
|
|
236
250
|
}>,
|
|
@@ -243,16 +257,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
243
257
|
} & {
|
|
244
258
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
245
259
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
type: "comment-add";
|
|
247
260
|
reportHubId: number;
|
|
248
261
|
sourceType: string;
|
|
262
|
+
type: "comment-add";
|
|
249
263
|
clientTempId: string;
|
|
250
264
|
comment: DailyReportPostedComment;
|
|
251
265
|
recipientRawUserId?: number | undefined;
|
|
252
266
|
}, {
|
|
253
|
-
type: "comment-add";
|
|
254
267
|
reportHubId: number;
|
|
255
268
|
sourceType: string;
|
|
269
|
+
type: "comment-add";
|
|
256
270
|
clientTempId: string;
|
|
257
271
|
comment?: unknown;
|
|
258
272
|
recipientRawUserId?: number | undefined;
|
|
@@ -266,16 +280,16 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
266
280
|
} & {
|
|
267
281
|
recipientRawUserId: z.ZodOptional<z.ZodNumber>;
|
|
268
282
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
type: "comment-delete";
|
|
270
283
|
reportHubId: number;
|
|
271
284
|
sourceType: string;
|
|
285
|
+
type: "comment-delete";
|
|
272
286
|
clientTempId: string;
|
|
273
287
|
commentId: number;
|
|
274
288
|
recipientRawUserId?: number | undefined;
|
|
275
289
|
}, {
|
|
276
|
-
type: "comment-delete";
|
|
277
290
|
reportHubId: number;
|
|
278
291
|
sourceType: string;
|
|
292
|
+
type: "comment-delete";
|
|
279
293
|
clientTempId: string;
|
|
280
294
|
commentId: number;
|
|
281
295
|
recipientRawUserId?: number | undefined;
|
|
@@ -288,15 +302,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
288
302
|
clientTempId: z.ZodString;
|
|
289
303
|
type: z.ZodLiteral<"report-create">;
|
|
290
304
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: "report-create";
|
|
292
305
|
reportHubId: number;
|
|
306
|
+
type: "report-create";
|
|
293
307
|
clientTempId: string;
|
|
294
308
|
report: DailyReportDetail;
|
|
295
309
|
actorRawUserId: number;
|
|
296
310
|
recipientRawUserId?: number | undefined;
|
|
297
311
|
}, {
|
|
298
|
-
type: "report-create";
|
|
299
312
|
reportHubId: number;
|
|
313
|
+
type: "report-create";
|
|
300
314
|
clientTempId: string;
|
|
301
315
|
actorRawUserId: number;
|
|
302
316
|
recipientRawUserId?: number | undefined;
|
|
@@ -310,15 +324,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
310
324
|
clientTempId: z.ZodString;
|
|
311
325
|
type: z.ZodLiteral<"report-update">;
|
|
312
326
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
type: "report-update";
|
|
314
327
|
reportHubId: number;
|
|
328
|
+
type: "report-update";
|
|
315
329
|
clientTempId: string;
|
|
316
330
|
report: DailyReportDetail;
|
|
317
331
|
actorRawUserId: number;
|
|
318
332
|
recipientRawUserId?: number | undefined;
|
|
319
333
|
}, {
|
|
320
|
-
type: "report-update";
|
|
321
334
|
reportHubId: number;
|
|
335
|
+
type: "report-update";
|
|
322
336
|
clientTempId: string;
|
|
323
337
|
actorRawUserId: number;
|
|
324
338
|
recipientRawUserId?: number | undefined;
|
|
@@ -332,15 +346,15 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
332
346
|
clientTempId: z.ZodString;
|
|
333
347
|
type: z.ZodLiteral<"report-publish">;
|
|
334
348
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
type: "report-publish";
|
|
336
349
|
reportHubId: number;
|
|
350
|
+
type: "report-publish";
|
|
337
351
|
clientTempId: string;
|
|
338
352
|
report: DailyReportDetail;
|
|
339
353
|
actorRawUserId: number;
|
|
340
354
|
recipientRawUserId?: number | undefined;
|
|
341
355
|
}, {
|
|
342
|
-
type: "report-publish";
|
|
343
356
|
reportHubId: number;
|
|
357
|
+
type: "report-publish";
|
|
344
358
|
clientTempId: string;
|
|
345
359
|
actorRawUserId: number;
|
|
346
360
|
recipientRawUserId?: number | undefined;
|
|
@@ -352,17 +366,17 @@ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
352
366
|
clientTempId: z.ZodString;
|
|
353
367
|
sourceType: z.ZodString;
|
|
354
368
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
type: "report-delete";
|
|
356
369
|
reportHubId: number;
|
|
357
370
|
sourceType: string;
|
|
371
|
+
type: "report-delete";
|
|
358
372
|
clientTempId: string;
|
|
359
373
|
}, {
|
|
360
|
-
type: "report-delete";
|
|
361
374
|
reportHubId: number;
|
|
362
375
|
sourceType: string;
|
|
376
|
+
type: "report-delete";
|
|
363
377
|
clientTempId: string;
|
|
364
378
|
}>
|
|
365
379
|
]>;
|
|
366
380
|
type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
|
|
367
381
|
type DailyReportSseStreamMessage = z.infer<typeof dailyReportSseStreamMessageSchema>;
|
|
368
|
-
export { type
|
|
382
|
+
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, dailyReportSseMessageSchema as o, forEachIdsStreamRow as p, type DailyReportSseStreamMessage as q, readIdsStreamChunkLine as r, dailyReportSseStreamMessageSchema as s, encodeIdsStreamRows as t };
|