@aiquants/daily-report 0.42.0 → 0.44.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.
@@ -1,4 +1,4 @@
1
- import { e as DailyReportDetail, s as DailyReportPostedComment } from "./sse-schema-CUiQKk8K.js";
1
+ import { b as DailyReportDetail, h as DailyReportPostedComment } from "./types-BP1kIGMo.js";
2
2
  declare const DAILY_REPORT_ACTION_INTENTS: readonly [
3
3
  "create",
4
4
  "update",
@@ -149,4 +149,6 @@ type UIComment = {
149
149
  isLegacy: boolean;
150
150
  isAuthorUnknown: boolean;
151
151
  };
152
- export { type ActionCommand as A, type DailyReportActionIntent as D, type UIComment as U, DAILY_REPORT_ACTION_FIELDS as a, DAILY_REPORT_ACTION_INTENTS as b, type ActionFailure as c, type ActionResult as d, type ActionResultOf as e, type ActionResultReading as f, encodeActionCommand as g, parseActionResult as p };
152
+ declare const DAILY_REPORT_INTERNAL_SOURCE_TYPE = "Internal";
153
+ declare const foldDailyReportSourceTypeToken: (token: string) => string;
154
+ export { type ActionCommand as A, type DailyReportActionIntent as D, type UIComment as U, DAILY_REPORT_ACTION_FIELDS as a, DAILY_REPORT_ACTION_INTENTS as b, DAILY_REPORT_INTERNAL_SOURCE_TYPE as c, type ActionFailure as d, type ActionResult as e, foldDailyReportSourceTypeToken as f, type ActionResultOf as g, type ActionResultReading as h, encodeActionCommand as i, parseActionResult as p };
@@ -1,4 +1,4 @@
1
- import { e as DailyReportDetail, s as DailyReportPostedComment } from "./sse-schema-CUiQKk8K.mjs";
1
+ import { b as DailyReportDetail, h as DailyReportPostedComment } from "./types-BP1kIGMo.mjs";
2
2
  declare const DAILY_REPORT_ACTION_INTENTS: readonly [
3
3
  "create",
4
4
  "update",
@@ -149,4 +149,6 @@ type UIComment = {
149
149
  isLegacy: boolean;
150
150
  isAuthorUnknown: boolean;
151
151
  };
152
- export { type ActionCommand as A, type DailyReportActionIntent as D, type UIComment as U, DAILY_REPORT_ACTION_FIELDS as a, DAILY_REPORT_ACTION_INTENTS as b, type ActionFailure as c, type ActionResult as d, type ActionResultOf as e, type ActionResultReading as f, encodeActionCommand as g, parseActionResult as p };
152
+ declare const DAILY_REPORT_INTERNAL_SOURCE_TYPE = "Internal";
153
+ declare const foldDailyReportSourceTypeToken: (token: string) => string;
154
+ export { type ActionCommand as A, type DailyReportActionIntent as D, type UIComment as U, DAILY_REPORT_ACTION_FIELDS as a, DAILY_REPORT_ACTION_INTENTS as b, DAILY_REPORT_INTERNAL_SOURCE_TYPE as c, type ActionFailure as d, type ActionResult as e, foldDailyReportSourceTypeToken as f, type ActionResultOf as g, type ActionResultReading as h, encodeActionCommand as i, parseActionResult as p };
@@ -1,78 +1,5 @@
1
+ import { D as DailyReportItem, h as DailyReportPostedComment, b as DailyReportDetail } from "./types-BP1kIGMo.js";
1
2
  import { z } from "zod/v3";
2
- type DailyReportItem = {
3
- reportHubId: number;
4
- businessDate: string | null;
5
- sourceType?: string;
6
- };
7
- type DailyReportInterviewer = {
8
- name?: string | null;
9
- affiliation?: string | null;
10
- };
11
- type DailyReportExternalComment = {
12
- name?: string | null;
13
- text?: string | null;
14
- color?: string | null;
15
- };
16
- type DailyReportLabelDef = {
17
- id: number;
18
- name?: string | null;
19
- color?: string | null;
20
- };
21
- type DailyReportAttachmentState = "present" | "absent" | "unknown";
22
- type DailyReportAttachmentSummary = {
23
- id: string;
24
- fileName: string;
25
- fileType: string | null;
26
- fileSize: number | null;
27
- createdAt: string | null;
28
- state: DailyReportAttachmentState;
29
- hasThumbnail: boolean;
30
- };
31
- type DailyReportPostedComment = {
32
- id: number;
33
- userId?: string | null;
34
- userName?: string | null;
35
- content?: string | null;
36
- createdAt?: string | null;
37
- isMine: boolean;
38
- };
39
- type DailyReportDetail = {
40
- reportHubId: number;
41
- date?: string | null;
42
- createdAt?: string | null;
43
- author?: string | null;
44
- userId?: string | null;
45
- sourceType?: string | null;
46
- employeeName?: string | null;
47
- updatedBy?: string | null;
48
- updatedAt?: string | null;
49
- category?: string | null;
50
- creationCategory?: string | null;
51
- visitTimeFrom?: string | null;
52
- visitTimeTo?: string | null;
53
- customerName?: string | null;
54
- interviewers: DailyReportInterviewer[];
55
- subject?: string | null;
56
- content?: string | null;
57
- externalComments: DailyReportExternalComment[];
58
- isRead: boolean;
59
- isStarred: boolean;
60
- isDraft: boolean;
61
- labels: DailyReportLabelDef[];
62
- postedComments: DailyReportPostedComment[];
63
- attachments: DailyReportAttachmentSummary[];
64
- };
65
- type DailyReportUser = {
66
- id: string;
67
- displayName?: string;
68
- name?: {
69
- familyName?: string;
70
- givenName?: string;
71
- };
72
- emails?: {
73
- value: string;
74
- }[];
75
- };
76
3
  type DailyReportIdsStreamCursor = {
77
4
  businessDate: string | null;
78
5
  reportHubId: number;
@@ -148,6 +75,149 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
148
75
  ]>;
149
76
  value: z.ZodBoolean;
150
77
  clientTempId: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: "status-update";
80
+ reportHubId: number;
81
+ value: boolean;
82
+ statusType: "star" | "read";
83
+ clientTempId: string;
84
+ }, {
85
+ type: "status-update";
86
+ reportHubId: number;
87
+ value: boolean;
88
+ statusType: "star" | "read";
89
+ clientTempId: string;
90
+ }>,
91
+ z.ZodObject<{
92
+ type: z.ZodLiteral<"comment-add">;
93
+ reportHubId: z.ZodNumber;
94
+ comment: z.ZodType<DailyReportPostedComment, z.ZodTypeDef, unknown>;
95
+ clientTempId: z.ZodString;
96
+ sourceType: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "comment-add";
99
+ reportHubId: number;
100
+ sourceType: string;
101
+ clientTempId: string;
102
+ comment: DailyReportPostedComment;
103
+ }, {
104
+ type: "comment-add";
105
+ reportHubId: number;
106
+ sourceType: string;
107
+ clientTempId: string;
108
+ comment?: unknown;
109
+ }>,
110
+ z.ZodObject<{
111
+ type: z.ZodLiteral<"comment-delete">;
112
+ reportHubId: z.ZodNumber;
113
+ commentId: z.ZodNumber;
114
+ clientTempId: z.ZodString;
115
+ sourceType: z.ZodString;
116
+ }, "strip", z.ZodTypeAny, {
117
+ type: "comment-delete";
118
+ reportHubId: number;
119
+ sourceType: string;
120
+ clientTempId: string;
121
+ commentId: number;
122
+ }, {
123
+ type: "comment-delete";
124
+ reportHubId: number;
125
+ sourceType: string;
126
+ clientTempId: string;
127
+ commentId: number;
128
+ }>,
129
+ z.ZodObject<{
130
+ viewerIsActor: z.ZodBoolean;
131
+ reportHubId: z.ZodNumber;
132
+ report: z.ZodType<DailyReportDetail, z.ZodTypeDef, unknown>;
133
+ clientTempId: z.ZodString;
134
+ type: z.ZodLiteral<"report-create">;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "report-create";
137
+ reportHubId: number;
138
+ clientTempId: string;
139
+ viewerIsActor: boolean;
140
+ report: DailyReportDetail;
141
+ }, {
142
+ type: "report-create";
143
+ reportHubId: number;
144
+ clientTempId: string;
145
+ viewerIsActor: boolean;
146
+ report?: unknown;
147
+ }>,
148
+ z.ZodObject<{
149
+ viewerIsActor: z.ZodBoolean;
150
+ reportHubId: z.ZodNumber;
151
+ report: z.ZodType<DailyReportDetail, z.ZodTypeDef, unknown>;
152
+ clientTempId: z.ZodString;
153
+ type: z.ZodLiteral<"report-update">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "report-update";
156
+ reportHubId: number;
157
+ clientTempId: string;
158
+ viewerIsActor: boolean;
159
+ report: DailyReportDetail;
160
+ }, {
161
+ type: "report-update";
162
+ reportHubId: number;
163
+ clientTempId: string;
164
+ viewerIsActor: boolean;
165
+ report?: unknown;
166
+ }>,
167
+ z.ZodObject<{
168
+ viewerIsActor: z.ZodBoolean;
169
+ reportHubId: z.ZodNumber;
170
+ report: z.ZodType<DailyReportDetail, z.ZodTypeDef, unknown>;
171
+ clientTempId: z.ZodString;
172
+ type: z.ZodLiteral<"report-publish">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "report-publish";
175
+ reportHubId: number;
176
+ clientTempId: string;
177
+ viewerIsActor: boolean;
178
+ report: DailyReportDetail;
179
+ }, {
180
+ type: "report-publish";
181
+ reportHubId: number;
182
+ clientTempId: string;
183
+ viewerIsActor: boolean;
184
+ report?: unknown;
185
+ }>,
186
+ z.ZodObject<{
187
+ type: z.ZodLiteral<"report-delete">;
188
+ reportHubId: z.ZodNumber;
189
+ clientTempId: z.ZodString;
190
+ sourceType: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ type: "report-delete";
193
+ reportHubId: number;
194
+ sourceType: string;
195
+ clientTempId: string;
196
+ }, {
197
+ type: "report-delete";
198
+ reportHubId: number;
199
+ sourceType: string;
200
+ clientTempId: string;
201
+ }>
202
+ ]>;
203
+ declare const dailyReportSseStreamMessageSchema: z.ZodDiscriminatedUnion<"type", [
204
+ z.ZodObject<{
205
+ type: z.ZodLiteral<"connected">;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "connected";
208
+ }, {
209
+ type: "connected";
210
+ }>,
211
+ z.ZodObject<{
212
+ type: z.ZodLiteral<"status-update">;
213
+ reportHubId: z.ZodNumber;
214
+ statusType: z.ZodEnum<[
215
+ "star",
216
+ "read"
217
+ ]>;
218
+ value: z.ZodBoolean;
219
+ clientTempId: z.ZodString;
220
+ } & {
151
221
  recipientRawUserId: z.ZodOptional<z.ZodNumber>;
152
222
  }, "strip", z.ZodTypeAny, {
153
223
  type: "status-update";
@@ -169,8 +239,9 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
169
239
  reportHubId: z.ZodNumber;
170
240
  comment: z.ZodType<DailyReportPostedComment, z.ZodTypeDef, unknown>;
171
241
  clientTempId: z.ZodString;
172
- recipientRawUserId: z.ZodOptional<z.ZodNumber>;
173
242
  sourceType: z.ZodString;
243
+ } & {
244
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
174
245
  }, "strip", z.ZodTypeAny, {
175
246
  type: "comment-add";
176
247
  reportHubId: number;
@@ -183,16 +254,17 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
183
254
  reportHubId: number;
184
255
  sourceType: string;
185
256
  clientTempId: string;
186
- recipientRawUserId?: number | undefined;
187
257
  comment?: unknown;
258
+ recipientRawUserId?: number | undefined;
188
259
  }>,
189
260
  z.ZodObject<{
190
261
  type: z.ZodLiteral<"comment-delete">;
191
262
  reportHubId: z.ZodNumber;
192
263
  commentId: z.ZodNumber;
193
264
  clientTempId: z.ZodString;
194
- recipientRawUserId: z.ZodOptional<z.ZodNumber>;
195
265
  sourceType: z.ZodString;
266
+ } & {
267
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
196
268
  }, "strip", z.ZodTypeAny, {
197
269
  type: "comment-delete";
198
270
  reportHubId: number;
@@ -209,59 +281,68 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
209
281
  recipientRawUserId?: number | undefined;
210
282
  }>,
211
283
  z.ZodObject<{
212
- type: z.ZodLiteral<"report-create">;
284
+ actorRawUserId: z.ZodNumber;
285
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
213
286
  reportHubId: z.ZodNumber;
214
287
  report: z.ZodType<DailyReportDetail, z.ZodTypeDef, unknown>;
215
288
  clientTempId: z.ZodString;
216
- recipientRawUserId: z.ZodOptional<z.ZodNumber>;
289
+ type: z.ZodLiteral<"report-create">;
217
290
  }, "strip", z.ZodTypeAny, {
218
291
  type: "report-create";
219
292
  reportHubId: number;
220
293
  clientTempId: string;
221
294
  report: DailyReportDetail;
295
+ actorRawUserId: number;
222
296
  recipientRawUserId?: number | undefined;
223
297
  }, {
224
298
  type: "report-create";
225
299
  reportHubId: number;
226
300
  clientTempId: string;
301
+ actorRawUserId: number;
227
302
  recipientRawUserId?: number | undefined;
228
303
  report?: unknown;
229
304
  }>,
230
305
  z.ZodObject<{
231
- type: z.ZodLiteral<"report-update">;
306
+ actorRawUserId: z.ZodNumber;
307
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
232
308
  reportHubId: z.ZodNumber;
233
309
  report: z.ZodType<DailyReportDetail, z.ZodTypeDef, unknown>;
234
310
  clientTempId: z.ZodString;
235
- recipientRawUserId: z.ZodOptional<z.ZodNumber>;
311
+ type: z.ZodLiteral<"report-update">;
236
312
  }, "strip", z.ZodTypeAny, {
237
313
  type: "report-update";
238
314
  reportHubId: number;
239
315
  clientTempId: string;
240
316
  report: DailyReportDetail;
317
+ actorRawUserId: number;
241
318
  recipientRawUserId?: number | undefined;
242
319
  }, {
243
320
  type: "report-update";
244
321
  reportHubId: number;
245
322
  clientTempId: string;
323
+ actorRawUserId: number;
246
324
  recipientRawUserId?: number | undefined;
247
325
  report?: unknown;
248
326
  }>,
249
327
  z.ZodObject<{
250
- type: z.ZodLiteral<"report-publish">;
328
+ actorRawUserId: z.ZodNumber;
329
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
251
330
  reportHubId: z.ZodNumber;
252
331
  report: z.ZodType<DailyReportDetail, z.ZodTypeDef, unknown>;
253
332
  clientTempId: z.ZodString;
254
- recipientRawUserId: z.ZodOptional<z.ZodNumber>;
333
+ type: z.ZodLiteral<"report-publish">;
255
334
  }, "strip", z.ZodTypeAny, {
256
335
  type: "report-publish";
257
336
  reportHubId: number;
258
337
  clientTempId: string;
259
338
  report: DailyReportDetail;
339
+ actorRawUserId: number;
260
340
  recipientRawUserId?: number | undefined;
261
341
  }, {
262
342
  type: "report-publish";
263
343
  reportHubId: number;
264
344
  clientTempId: string;
345
+ actorRawUserId: number;
265
346
  recipientRawUserId?: number | undefined;
266
347
  report?: unknown;
267
348
  }>,
@@ -283,4 +364,5 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
283
364
  }>
284
365
  ]>;
285
366
  type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
286
- export { type DailyReportItem as D, type DailyReportSseStreamAnchor as a, type DailyReportUser as b, type DailyReportSseTerminalEvent as c, type DailyReportSseMessage as d, type DailyReportDetail as e, DAILY_REPORT_SSE_CURSOR_PARAM as f, DAILY_REPORT_SSE_HEARTBEAT_MS as g, DAILY_REPORT_SSE_TERMINAL_EVENTS as h, type DailyReportAttachmentState as i, type DailyReportAttachmentSummary as j, type DailyReportExternalComment as k, type DailyReportIdsStreamChunk as l, type DailyReportIdsStreamChunkLine as m, type DailyReportIdsStreamCursor as n, type DailyReportIdsStreamRowColumns as o, type DailyReportIdsStreamRows as p, type DailyReportInterviewer as q, type DailyReportLabelDef as r, type DailyReportPostedComment as s, dailyReportDetailSchema as t, dailyReportSseMessageSchema as u, forEachIdsStreamRow as v, readIdsStreamChunkLine as w, encodeIdsStreamRows as x };
367
+ type DailyReportSseStreamMessage = z.infer<typeof dailyReportSseStreamMessageSchema>;
368
+ export { type DailyReportSseStreamAnchor as D, type DailyReportSseTerminalEvent as a, type DailyReportSseMessage as b, DAILY_REPORT_SSE_CURSOR_PARAM as c, DAILY_REPORT_SSE_HEARTBEAT_MS as d, DAILY_REPORT_SSE_TERMINAL_EVENTS as e, type DailyReportIdsStreamChunk as f, type DailyReportIdsStreamChunkLine as g, type DailyReportIdsStreamCursor as h, type DailyReportIdsStreamRowColumns as i, type DailyReportIdsStreamRows as j, dailyReportDetailSchema as k, dailyReportSseMessageSchema as l, forEachIdsStreamRow as m, type DailyReportSseStreamMessage as n, dailyReportSseStreamMessageSchema as o, encodeIdsStreamRows as p, readIdsStreamChunkLine as r };