@instructure/platform-notebook 0.2.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.
@@ -0,0 +1,1545 @@
1
+ import { z } from 'zod';
2
+ export declare const RangeSelector: z.ZodObject<{
3
+ startContainer: z.ZodString;
4
+ endContainer: z.ZodString;
5
+ startOffset: z.ZodNumber;
6
+ endOffset: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ startContainer: string;
9
+ endContainer: string;
10
+ startOffset: number;
11
+ endOffset: number;
12
+ }, {
13
+ startContainer: string;
14
+ endContainer: string;
15
+ startOffset: number;
16
+ endOffset: number;
17
+ }>;
18
+ export type RangeSelectorType = z.infer<typeof RangeSelector>;
19
+ export declare const TextPositionSelector: z.ZodObject<{
20
+ start: z.ZodNumber;
21
+ end: z.ZodNumber;
22
+ }, "strip", z.ZodTypeAny, {
23
+ start: number;
24
+ end: number;
25
+ }, {
26
+ start: number;
27
+ end: number;
28
+ }>;
29
+ export type TextPositionSelectorType = z.infer<typeof TextPositionSelector>;
30
+ export declare const HighlightData: z.ZodObject<{
31
+ selectedText: z.ZodString;
32
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
33
+ textPosition: z.ZodNullable<z.ZodObject<{
34
+ start: z.ZodNumber;
35
+ end: z.ZodNumber;
36
+ }, "strip", z.ZodTypeAny, {
37
+ start: number;
38
+ end: number;
39
+ }, {
40
+ start: number;
41
+ end: number;
42
+ }>>;
43
+ range: z.ZodNullable<z.ZodObject<{
44
+ startContainer: z.ZodString;
45
+ endContainer: z.ZodString;
46
+ startOffset: z.ZodNumber;
47
+ endOffset: z.ZodNumber;
48
+ }, "strip", z.ZodTypeAny, {
49
+ startContainer: string;
50
+ endContainer: string;
51
+ startOffset: number;
52
+ endOffset: number;
53
+ }, {
54
+ startContainer: string;
55
+ endContainer: string;
56
+ startOffset: number;
57
+ endOffset: number;
58
+ }>>;
59
+ pageLastModifiedAt: z.ZodString;
60
+ }, "strip", z.ZodTypeAny, {
61
+ selectedText: string;
62
+ textPosition: {
63
+ start: number;
64
+ end: number;
65
+ } | null;
66
+ range: {
67
+ startContainer: string;
68
+ endContainer: string;
69
+ startOffset: number;
70
+ endOffset: number;
71
+ } | null;
72
+ pageLastModifiedAt: string;
73
+ hasNoHighlightAnymore?: boolean | undefined;
74
+ }, {
75
+ selectedText: string;
76
+ textPosition: {
77
+ start: number;
78
+ end: number;
79
+ } | null;
80
+ range: {
81
+ startContainer: string;
82
+ endContainer: string;
83
+ startOffset: number;
84
+ endOffset: number;
85
+ } | null;
86
+ pageLastModifiedAt: string;
87
+ hasNoHighlightAnymore?: boolean | undefined;
88
+ }>;
89
+ export type HighlightDataType = z.infer<typeof HighlightData>;
90
+ export declare enum REACTION_TYPE {
91
+ IMPORTANT = "Important",
92
+ CONFUSING = "Confusing"
93
+ }
94
+ export declare const ReactionType: z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>;
95
+ export declare const PageInfo: z.ZodObject<{
96
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ hasNextPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
99
+ hasPreviousPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ startCursor?: string | null | undefined;
102
+ endCursor?: string | null | undefined;
103
+ hasNextPage?: boolean | null | undefined;
104
+ hasPreviousPage?: boolean | null | undefined;
105
+ }, {
106
+ startCursor?: string | null | undefined;
107
+ endCursor?: string | null | undefined;
108
+ hasNextPage?: boolean | null | undefined;
109
+ hasPreviousPage?: boolean | null | undefined;
110
+ }>;
111
+ export type PageInfoType = z.infer<typeof PageInfo>;
112
+ export type PaginationDirection = 'next' | 'prev';
113
+ export declare const Note: z.ZodObject<{
114
+ id: z.ZodString;
115
+ rootAccountUuid: z.ZodString;
116
+ userId: z.ZodString;
117
+ courseId: z.ZodString;
118
+ objectId: z.ZodString;
119
+ objectType: z.ZodString;
120
+ userText: z.ZodOptional<z.ZodString>;
121
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
122
+ highlightData: z.ZodObject<{
123
+ selectedText: z.ZodString;
124
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
125
+ textPosition: z.ZodNullable<z.ZodObject<{
126
+ start: z.ZodNumber;
127
+ end: z.ZodNumber;
128
+ }, "strip", z.ZodTypeAny, {
129
+ start: number;
130
+ end: number;
131
+ }, {
132
+ start: number;
133
+ end: number;
134
+ }>>;
135
+ range: z.ZodNullable<z.ZodObject<{
136
+ startContainer: z.ZodString;
137
+ endContainer: z.ZodString;
138
+ startOffset: z.ZodNumber;
139
+ endOffset: z.ZodNumber;
140
+ }, "strip", z.ZodTypeAny, {
141
+ startContainer: string;
142
+ endContainer: string;
143
+ startOffset: number;
144
+ endOffset: number;
145
+ }, {
146
+ startContainer: string;
147
+ endContainer: string;
148
+ startOffset: number;
149
+ endOffset: number;
150
+ }>>;
151
+ pageLastModifiedAt: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ selectedText: string;
154
+ textPosition: {
155
+ start: number;
156
+ end: number;
157
+ } | null;
158
+ range: {
159
+ startContainer: string;
160
+ endContainer: string;
161
+ startOffset: number;
162
+ endOffset: number;
163
+ } | null;
164
+ pageLastModifiedAt: string;
165
+ hasNoHighlightAnymore?: boolean | undefined;
166
+ }, {
167
+ selectedText: string;
168
+ textPosition: {
169
+ start: number;
170
+ end: number;
171
+ } | null;
172
+ range: {
173
+ startContainer: string;
174
+ endContainer: string;
175
+ startOffset: number;
176
+ endOffset: number;
177
+ } | null;
178
+ pageLastModifiedAt: string;
179
+ hasNoHighlightAnymore?: boolean | undefined;
180
+ }>;
181
+ createdAt: z.ZodString;
182
+ updatedAt: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ id: string;
185
+ rootAccountUuid: string;
186
+ userId: string;
187
+ courseId: string;
188
+ objectId: string;
189
+ objectType: string;
190
+ reaction: REACTION_TYPE[];
191
+ highlightData: {
192
+ selectedText: string;
193
+ textPosition: {
194
+ start: number;
195
+ end: number;
196
+ } | null;
197
+ range: {
198
+ startContainer: string;
199
+ endContainer: string;
200
+ startOffset: number;
201
+ endOffset: number;
202
+ } | null;
203
+ pageLastModifiedAt: string;
204
+ hasNoHighlightAnymore?: boolean | undefined;
205
+ };
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ userText?: string | undefined;
209
+ }, {
210
+ id: string;
211
+ rootAccountUuid: string;
212
+ userId: string;
213
+ courseId: string;
214
+ objectId: string;
215
+ objectType: string;
216
+ reaction: REACTION_TYPE[];
217
+ highlightData: {
218
+ selectedText: string;
219
+ textPosition: {
220
+ start: number;
221
+ end: number;
222
+ } | null;
223
+ range: {
224
+ startContainer: string;
225
+ endContainer: string;
226
+ startOffset: number;
227
+ endOffset: number;
228
+ } | null;
229
+ pageLastModifiedAt: string;
230
+ hasNoHighlightAnymore?: boolean | undefined;
231
+ };
232
+ createdAt: string;
233
+ updatedAt: string;
234
+ userText?: string | undefined;
235
+ }>;
236
+ export type NoteType = z.infer<typeof Note>;
237
+ export declare const NoteConnection: z.ZodObject<{
238
+ notes: z.ZodObject<{
239
+ edges: z.ZodArray<z.ZodObject<{
240
+ cursor: z.ZodString;
241
+ node: z.ZodObject<{
242
+ id: z.ZodString;
243
+ rootAccountUuid: z.ZodString;
244
+ userId: z.ZodString;
245
+ courseId: z.ZodString;
246
+ objectId: z.ZodString;
247
+ objectType: z.ZodString;
248
+ userText: z.ZodOptional<z.ZodString>;
249
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
250
+ highlightData: z.ZodObject<{
251
+ selectedText: z.ZodString;
252
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
253
+ textPosition: z.ZodNullable<z.ZodObject<{
254
+ start: z.ZodNumber;
255
+ end: z.ZodNumber;
256
+ }, "strip", z.ZodTypeAny, {
257
+ start: number;
258
+ end: number;
259
+ }, {
260
+ start: number;
261
+ end: number;
262
+ }>>;
263
+ range: z.ZodNullable<z.ZodObject<{
264
+ startContainer: z.ZodString;
265
+ endContainer: z.ZodString;
266
+ startOffset: z.ZodNumber;
267
+ endOffset: z.ZodNumber;
268
+ }, "strip", z.ZodTypeAny, {
269
+ startContainer: string;
270
+ endContainer: string;
271
+ startOffset: number;
272
+ endOffset: number;
273
+ }, {
274
+ startContainer: string;
275
+ endContainer: string;
276
+ startOffset: number;
277
+ endOffset: number;
278
+ }>>;
279
+ pageLastModifiedAt: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ selectedText: string;
282
+ textPosition: {
283
+ start: number;
284
+ end: number;
285
+ } | null;
286
+ range: {
287
+ startContainer: string;
288
+ endContainer: string;
289
+ startOffset: number;
290
+ endOffset: number;
291
+ } | null;
292
+ pageLastModifiedAt: string;
293
+ hasNoHighlightAnymore?: boolean | undefined;
294
+ }, {
295
+ selectedText: string;
296
+ textPosition: {
297
+ start: number;
298
+ end: number;
299
+ } | null;
300
+ range: {
301
+ startContainer: string;
302
+ endContainer: string;
303
+ startOffset: number;
304
+ endOffset: number;
305
+ } | null;
306
+ pageLastModifiedAt: string;
307
+ hasNoHighlightAnymore?: boolean | undefined;
308
+ }>;
309
+ createdAt: z.ZodString;
310
+ updatedAt: z.ZodString;
311
+ }, "strip", z.ZodTypeAny, {
312
+ id: string;
313
+ rootAccountUuid: string;
314
+ userId: string;
315
+ courseId: string;
316
+ objectId: string;
317
+ objectType: string;
318
+ reaction: REACTION_TYPE[];
319
+ highlightData: {
320
+ selectedText: string;
321
+ textPosition: {
322
+ start: number;
323
+ end: number;
324
+ } | null;
325
+ range: {
326
+ startContainer: string;
327
+ endContainer: string;
328
+ startOffset: number;
329
+ endOffset: number;
330
+ } | null;
331
+ pageLastModifiedAt: string;
332
+ hasNoHighlightAnymore?: boolean | undefined;
333
+ };
334
+ createdAt: string;
335
+ updatedAt: string;
336
+ userText?: string | undefined;
337
+ }, {
338
+ id: string;
339
+ rootAccountUuid: string;
340
+ userId: string;
341
+ courseId: string;
342
+ objectId: string;
343
+ objectType: string;
344
+ reaction: REACTION_TYPE[];
345
+ highlightData: {
346
+ selectedText: string;
347
+ textPosition: {
348
+ start: number;
349
+ end: number;
350
+ } | null;
351
+ range: {
352
+ startContainer: string;
353
+ endContainer: string;
354
+ startOffset: number;
355
+ endOffset: number;
356
+ } | null;
357
+ pageLastModifiedAt: string;
358
+ hasNoHighlightAnymore?: boolean | undefined;
359
+ };
360
+ createdAt: string;
361
+ updatedAt: string;
362
+ userText?: string | undefined;
363
+ }>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ cursor: string;
366
+ node: {
367
+ id: string;
368
+ rootAccountUuid: string;
369
+ userId: string;
370
+ courseId: string;
371
+ objectId: string;
372
+ objectType: string;
373
+ reaction: REACTION_TYPE[];
374
+ highlightData: {
375
+ selectedText: string;
376
+ textPosition: {
377
+ start: number;
378
+ end: number;
379
+ } | null;
380
+ range: {
381
+ startContainer: string;
382
+ endContainer: string;
383
+ startOffset: number;
384
+ endOffset: number;
385
+ } | null;
386
+ pageLastModifiedAt: string;
387
+ hasNoHighlightAnymore?: boolean | undefined;
388
+ };
389
+ createdAt: string;
390
+ updatedAt: string;
391
+ userText?: string | undefined;
392
+ };
393
+ }, {
394
+ cursor: string;
395
+ node: {
396
+ id: string;
397
+ rootAccountUuid: string;
398
+ userId: string;
399
+ courseId: string;
400
+ objectId: string;
401
+ objectType: string;
402
+ reaction: REACTION_TYPE[];
403
+ highlightData: {
404
+ selectedText: string;
405
+ textPosition: {
406
+ start: number;
407
+ end: number;
408
+ } | null;
409
+ range: {
410
+ startContainer: string;
411
+ endContainer: string;
412
+ startOffset: number;
413
+ endOffset: number;
414
+ } | null;
415
+ pageLastModifiedAt: string;
416
+ hasNoHighlightAnymore?: boolean | undefined;
417
+ };
418
+ createdAt: string;
419
+ updatedAt: string;
420
+ userText?: string | undefined;
421
+ };
422
+ }>, "many">;
423
+ nodes: z.ZodArray<z.ZodObject<{
424
+ id: z.ZodString;
425
+ rootAccountUuid: z.ZodString;
426
+ userId: z.ZodString;
427
+ courseId: z.ZodString;
428
+ objectId: z.ZodString;
429
+ objectType: z.ZodString;
430
+ userText: z.ZodOptional<z.ZodString>;
431
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
432
+ highlightData: z.ZodObject<{
433
+ selectedText: z.ZodString;
434
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
435
+ textPosition: z.ZodNullable<z.ZodObject<{
436
+ start: z.ZodNumber;
437
+ end: z.ZodNumber;
438
+ }, "strip", z.ZodTypeAny, {
439
+ start: number;
440
+ end: number;
441
+ }, {
442
+ start: number;
443
+ end: number;
444
+ }>>;
445
+ range: z.ZodNullable<z.ZodObject<{
446
+ startContainer: z.ZodString;
447
+ endContainer: z.ZodString;
448
+ startOffset: z.ZodNumber;
449
+ endOffset: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
451
+ startContainer: string;
452
+ endContainer: string;
453
+ startOffset: number;
454
+ endOffset: number;
455
+ }, {
456
+ startContainer: string;
457
+ endContainer: string;
458
+ startOffset: number;
459
+ endOffset: number;
460
+ }>>;
461
+ pageLastModifiedAt: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ selectedText: string;
464
+ textPosition: {
465
+ start: number;
466
+ end: number;
467
+ } | null;
468
+ range: {
469
+ startContainer: string;
470
+ endContainer: string;
471
+ startOffset: number;
472
+ endOffset: number;
473
+ } | null;
474
+ pageLastModifiedAt: string;
475
+ hasNoHighlightAnymore?: boolean | undefined;
476
+ }, {
477
+ selectedText: string;
478
+ textPosition: {
479
+ start: number;
480
+ end: number;
481
+ } | null;
482
+ range: {
483
+ startContainer: string;
484
+ endContainer: string;
485
+ startOffset: number;
486
+ endOffset: number;
487
+ } | null;
488
+ pageLastModifiedAt: string;
489
+ hasNoHighlightAnymore?: boolean | undefined;
490
+ }>;
491
+ createdAt: z.ZodString;
492
+ updatedAt: z.ZodString;
493
+ }, "strip", z.ZodTypeAny, {
494
+ id: string;
495
+ rootAccountUuid: string;
496
+ userId: string;
497
+ courseId: string;
498
+ objectId: string;
499
+ objectType: string;
500
+ reaction: REACTION_TYPE[];
501
+ highlightData: {
502
+ selectedText: string;
503
+ textPosition: {
504
+ start: number;
505
+ end: number;
506
+ } | null;
507
+ range: {
508
+ startContainer: string;
509
+ endContainer: string;
510
+ startOffset: number;
511
+ endOffset: number;
512
+ } | null;
513
+ pageLastModifiedAt: string;
514
+ hasNoHighlightAnymore?: boolean | undefined;
515
+ };
516
+ createdAt: string;
517
+ updatedAt: string;
518
+ userText?: string | undefined;
519
+ }, {
520
+ id: string;
521
+ rootAccountUuid: string;
522
+ userId: string;
523
+ courseId: string;
524
+ objectId: string;
525
+ objectType: string;
526
+ reaction: REACTION_TYPE[];
527
+ highlightData: {
528
+ selectedText: string;
529
+ textPosition: {
530
+ start: number;
531
+ end: number;
532
+ } | null;
533
+ range: {
534
+ startContainer: string;
535
+ endContainer: string;
536
+ startOffset: number;
537
+ endOffset: number;
538
+ } | null;
539
+ pageLastModifiedAt: string;
540
+ hasNoHighlightAnymore?: boolean | undefined;
541
+ };
542
+ createdAt: string;
543
+ updatedAt: string;
544
+ userText?: string | undefined;
545
+ }>, "many">;
546
+ pageInfo: z.ZodObject<{
547
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
549
+ hasNextPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
550
+ hasPreviousPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ startCursor?: string | null | undefined;
553
+ endCursor?: string | null | undefined;
554
+ hasNextPage?: boolean | null | undefined;
555
+ hasPreviousPage?: boolean | null | undefined;
556
+ }, {
557
+ startCursor?: string | null | undefined;
558
+ endCursor?: string | null | undefined;
559
+ hasNextPage?: boolean | null | undefined;
560
+ hasPreviousPage?: boolean | null | undefined;
561
+ }>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ edges: {
564
+ cursor: string;
565
+ node: {
566
+ id: string;
567
+ rootAccountUuid: string;
568
+ userId: string;
569
+ courseId: string;
570
+ objectId: string;
571
+ objectType: string;
572
+ reaction: REACTION_TYPE[];
573
+ highlightData: {
574
+ selectedText: string;
575
+ textPosition: {
576
+ start: number;
577
+ end: number;
578
+ } | null;
579
+ range: {
580
+ startContainer: string;
581
+ endContainer: string;
582
+ startOffset: number;
583
+ endOffset: number;
584
+ } | null;
585
+ pageLastModifiedAt: string;
586
+ hasNoHighlightAnymore?: boolean | undefined;
587
+ };
588
+ createdAt: string;
589
+ updatedAt: string;
590
+ userText?: string | undefined;
591
+ };
592
+ }[];
593
+ nodes: {
594
+ id: string;
595
+ rootAccountUuid: string;
596
+ userId: string;
597
+ courseId: string;
598
+ objectId: string;
599
+ objectType: string;
600
+ reaction: REACTION_TYPE[];
601
+ highlightData: {
602
+ selectedText: string;
603
+ textPosition: {
604
+ start: number;
605
+ end: number;
606
+ } | null;
607
+ range: {
608
+ startContainer: string;
609
+ endContainer: string;
610
+ startOffset: number;
611
+ endOffset: number;
612
+ } | null;
613
+ pageLastModifiedAt: string;
614
+ hasNoHighlightAnymore?: boolean | undefined;
615
+ };
616
+ createdAt: string;
617
+ updatedAt: string;
618
+ userText?: string | undefined;
619
+ }[];
620
+ pageInfo: {
621
+ startCursor?: string | null | undefined;
622
+ endCursor?: string | null | undefined;
623
+ hasNextPage?: boolean | null | undefined;
624
+ hasPreviousPage?: boolean | null | undefined;
625
+ };
626
+ }, {
627
+ edges: {
628
+ cursor: string;
629
+ node: {
630
+ id: string;
631
+ rootAccountUuid: string;
632
+ userId: string;
633
+ courseId: string;
634
+ objectId: string;
635
+ objectType: string;
636
+ reaction: REACTION_TYPE[];
637
+ highlightData: {
638
+ selectedText: string;
639
+ textPosition: {
640
+ start: number;
641
+ end: number;
642
+ } | null;
643
+ range: {
644
+ startContainer: string;
645
+ endContainer: string;
646
+ startOffset: number;
647
+ endOffset: number;
648
+ } | null;
649
+ pageLastModifiedAt: string;
650
+ hasNoHighlightAnymore?: boolean | undefined;
651
+ };
652
+ createdAt: string;
653
+ updatedAt: string;
654
+ userText?: string | undefined;
655
+ };
656
+ }[];
657
+ nodes: {
658
+ id: string;
659
+ rootAccountUuid: string;
660
+ userId: string;
661
+ courseId: string;
662
+ objectId: string;
663
+ objectType: string;
664
+ reaction: REACTION_TYPE[];
665
+ highlightData: {
666
+ selectedText: string;
667
+ textPosition: {
668
+ start: number;
669
+ end: number;
670
+ } | null;
671
+ range: {
672
+ startContainer: string;
673
+ endContainer: string;
674
+ startOffset: number;
675
+ endOffset: number;
676
+ } | null;
677
+ pageLastModifiedAt: string;
678
+ hasNoHighlightAnymore?: boolean | undefined;
679
+ };
680
+ createdAt: string;
681
+ updatedAt: string;
682
+ userText?: string | undefined;
683
+ }[];
684
+ pageInfo: {
685
+ startCursor?: string | null | undefined;
686
+ endCursor?: string | null | undefined;
687
+ hasNextPage?: boolean | null | undefined;
688
+ hasPreviousPage?: boolean | null | undefined;
689
+ };
690
+ }>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ notes: {
693
+ edges: {
694
+ cursor: string;
695
+ node: {
696
+ id: string;
697
+ rootAccountUuid: string;
698
+ userId: string;
699
+ courseId: string;
700
+ objectId: string;
701
+ objectType: string;
702
+ reaction: REACTION_TYPE[];
703
+ highlightData: {
704
+ selectedText: string;
705
+ textPosition: {
706
+ start: number;
707
+ end: number;
708
+ } | null;
709
+ range: {
710
+ startContainer: string;
711
+ endContainer: string;
712
+ startOffset: number;
713
+ endOffset: number;
714
+ } | null;
715
+ pageLastModifiedAt: string;
716
+ hasNoHighlightAnymore?: boolean | undefined;
717
+ };
718
+ createdAt: string;
719
+ updatedAt: string;
720
+ userText?: string | undefined;
721
+ };
722
+ }[];
723
+ nodes: {
724
+ id: string;
725
+ rootAccountUuid: string;
726
+ userId: string;
727
+ courseId: string;
728
+ objectId: string;
729
+ objectType: string;
730
+ reaction: REACTION_TYPE[];
731
+ highlightData: {
732
+ selectedText: string;
733
+ textPosition: {
734
+ start: number;
735
+ end: number;
736
+ } | null;
737
+ range: {
738
+ startContainer: string;
739
+ endContainer: string;
740
+ startOffset: number;
741
+ endOffset: number;
742
+ } | null;
743
+ pageLastModifiedAt: string;
744
+ hasNoHighlightAnymore?: boolean | undefined;
745
+ };
746
+ createdAt: string;
747
+ updatedAt: string;
748
+ userText?: string | undefined;
749
+ }[];
750
+ pageInfo: {
751
+ startCursor?: string | null | undefined;
752
+ endCursor?: string | null | undefined;
753
+ hasNextPage?: boolean | null | undefined;
754
+ hasPreviousPage?: boolean | null | undefined;
755
+ };
756
+ };
757
+ }, {
758
+ notes: {
759
+ edges: {
760
+ cursor: string;
761
+ node: {
762
+ id: string;
763
+ rootAccountUuid: string;
764
+ userId: string;
765
+ courseId: string;
766
+ objectId: string;
767
+ objectType: string;
768
+ reaction: REACTION_TYPE[];
769
+ highlightData: {
770
+ selectedText: string;
771
+ textPosition: {
772
+ start: number;
773
+ end: number;
774
+ } | null;
775
+ range: {
776
+ startContainer: string;
777
+ endContainer: string;
778
+ startOffset: number;
779
+ endOffset: number;
780
+ } | null;
781
+ pageLastModifiedAt: string;
782
+ hasNoHighlightAnymore?: boolean | undefined;
783
+ };
784
+ createdAt: string;
785
+ updatedAt: string;
786
+ userText?: string | undefined;
787
+ };
788
+ }[];
789
+ nodes: {
790
+ id: string;
791
+ rootAccountUuid: string;
792
+ userId: string;
793
+ courseId: string;
794
+ objectId: string;
795
+ objectType: string;
796
+ reaction: REACTION_TYPE[];
797
+ highlightData: {
798
+ selectedText: string;
799
+ textPosition: {
800
+ start: number;
801
+ end: number;
802
+ } | null;
803
+ range: {
804
+ startContainer: string;
805
+ endContainer: string;
806
+ startOffset: number;
807
+ endOffset: number;
808
+ } | null;
809
+ pageLastModifiedAt: string;
810
+ hasNoHighlightAnymore?: boolean | undefined;
811
+ };
812
+ createdAt: string;
813
+ updatedAt: string;
814
+ userText?: string | undefined;
815
+ }[];
816
+ pageInfo: {
817
+ startCursor?: string | null | undefined;
818
+ endCursor?: string | null | undefined;
819
+ hasNextPage?: boolean | null | undefined;
820
+ hasPreviousPage?: boolean | null | undefined;
821
+ };
822
+ };
823
+ }>;
824
+ export type NoteConnectionType = z.infer<typeof NoteConnection>;
825
+ export declare const NoteFilterInput: z.ZodOptional<z.ZodObject<{
826
+ courseId: z.ZodOptional<z.ZodString>;
827
+ learningObject: z.ZodOptional<z.ZodObject<{
828
+ type: z.ZodString;
829
+ id: z.ZodString;
830
+ }, "strip", z.ZodTypeAny, {
831
+ type: string;
832
+ id: string;
833
+ }, {
834
+ type: string;
835
+ id: string;
836
+ }>>;
837
+ reactions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ courseId?: string | undefined;
840
+ learningObject?: {
841
+ type: string;
842
+ id: string;
843
+ } | undefined;
844
+ reactions?: string[] | undefined;
845
+ }, {
846
+ courseId?: string | undefined;
847
+ learningObject?: {
848
+ type: string;
849
+ id: string;
850
+ } | undefined;
851
+ reactions?: string[] | undefined;
852
+ }>>;
853
+ export declare const GetNotesInput: z.ZodObject<{
854
+ courseId: z.ZodOptional<z.ZodString>;
855
+ filter: z.ZodOptional<z.ZodObject<{
856
+ courseId: z.ZodOptional<z.ZodString>;
857
+ learningObject: z.ZodOptional<z.ZodObject<{
858
+ type: z.ZodString;
859
+ id: z.ZodString;
860
+ }, "strip", z.ZodTypeAny, {
861
+ type: string;
862
+ id: string;
863
+ }, {
864
+ type: string;
865
+ id: string;
866
+ }>>;
867
+ reactions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ courseId?: string | undefined;
870
+ learningObject?: {
871
+ type: string;
872
+ id: string;
873
+ } | undefined;
874
+ reactions?: string[] | undefined;
875
+ }, {
876
+ courseId?: string | undefined;
877
+ learningObject?: {
878
+ type: string;
879
+ id: string;
880
+ } | undefined;
881
+ reactions?: string[] | undefined;
882
+ }>>;
883
+ pageParams: z.ZodOptional<z.ZodObject<{
884
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ hasNextPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
887
+ hasPreviousPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ startCursor?: string | null | undefined;
890
+ endCursor?: string | null | undefined;
891
+ hasNextPage?: boolean | null | undefined;
892
+ hasPreviousPage?: boolean | null | undefined;
893
+ }, {
894
+ startCursor?: string | null | undefined;
895
+ endCursor?: string | null | undefined;
896
+ hasNextPage?: boolean | null | undefined;
897
+ hasPreviousPage?: boolean | null | undefined;
898
+ }>>;
899
+ direction: z.ZodOptional<z.ZodEnum<["next", "prev"]>>;
900
+ pageSize: z.ZodOptional<z.ZodNumber>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ filter?: {
903
+ courseId?: string | undefined;
904
+ learningObject?: {
905
+ type: string;
906
+ id: string;
907
+ } | undefined;
908
+ reactions?: string[] | undefined;
909
+ } | undefined;
910
+ courseId?: string | undefined;
911
+ pageParams?: {
912
+ startCursor?: string | null | undefined;
913
+ endCursor?: string | null | undefined;
914
+ hasNextPage?: boolean | null | undefined;
915
+ hasPreviousPage?: boolean | null | undefined;
916
+ } | undefined;
917
+ direction?: "next" | "prev" | undefined;
918
+ pageSize?: number | undefined;
919
+ }, {
920
+ filter?: {
921
+ courseId?: string | undefined;
922
+ learningObject?: {
923
+ type: string;
924
+ id: string;
925
+ } | undefined;
926
+ reactions?: string[] | undefined;
927
+ } | undefined;
928
+ courseId?: string | undefined;
929
+ pageParams?: {
930
+ startCursor?: string | null | undefined;
931
+ endCursor?: string | null | undefined;
932
+ hasNextPage?: boolean | null | undefined;
933
+ hasPreviousPage?: boolean | null | undefined;
934
+ } | undefined;
935
+ direction?: "next" | "prev" | undefined;
936
+ pageSize?: number | undefined;
937
+ }>;
938
+ export type GetNotesInputType = z.infer<typeof GetNotesInput>;
939
+ export declare const CreateNoteInput: z.ZodObject<{
940
+ courseId: z.ZodString;
941
+ objectId: z.ZodString;
942
+ objectType: z.ZodString;
943
+ userText: z.ZodOptional<z.ZodString>;
944
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
945
+ highlightData: z.ZodObject<{
946
+ selectedText: z.ZodString;
947
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
948
+ textPosition: z.ZodNullable<z.ZodObject<{
949
+ start: z.ZodNumber;
950
+ end: z.ZodNumber;
951
+ }, "strip", z.ZodTypeAny, {
952
+ start: number;
953
+ end: number;
954
+ }, {
955
+ start: number;
956
+ end: number;
957
+ }>>;
958
+ range: z.ZodNullable<z.ZodObject<{
959
+ startContainer: z.ZodString;
960
+ endContainer: z.ZodString;
961
+ startOffset: z.ZodNumber;
962
+ endOffset: z.ZodNumber;
963
+ }, "strip", z.ZodTypeAny, {
964
+ startContainer: string;
965
+ endContainer: string;
966
+ startOffset: number;
967
+ endOffset: number;
968
+ }, {
969
+ startContainer: string;
970
+ endContainer: string;
971
+ startOffset: number;
972
+ endOffset: number;
973
+ }>>;
974
+ pageLastModifiedAt: z.ZodString;
975
+ }, "strip", z.ZodTypeAny, {
976
+ selectedText: string;
977
+ textPosition: {
978
+ start: number;
979
+ end: number;
980
+ } | null;
981
+ range: {
982
+ startContainer: string;
983
+ endContainer: string;
984
+ startOffset: number;
985
+ endOffset: number;
986
+ } | null;
987
+ pageLastModifiedAt: string;
988
+ hasNoHighlightAnymore?: boolean | undefined;
989
+ }, {
990
+ selectedText: string;
991
+ textPosition: {
992
+ start: number;
993
+ end: number;
994
+ } | null;
995
+ range: {
996
+ startContainer: string;
997
+ endContainer: string;
998
+ startOffset: number;
999
+ endOffset: number;
1000
+ } | null;
1001
+ pageLastModifiedAt: string;
1002
+ hasNoHighlightAnymore?: boolean | undefined;
1003
+ }>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ courseId: string;
1006
+ objectId: string;
1007
+ objectType: string;
1008
+ reaction: REACTION_TYPE[];
1009
+ highlightData: {
1010
+ selectedText: string;
1011
+ textPosition: {
1012
+ start: number;
1013
+ end: number;
1014
+ } | null;
1015
+ range: {
1016
+ startContainer: string;
1017
+ endContainer: string;
1018
+ startOffset: number;
1019
+ endOffset: number;
1020
+ } | null;
1021
+ pageLastModifiedAt: string;
1022
+ hasNoHighlightAnymore?: boolean | undefined;
1023
+ };
1024
+ userText?: string | undefined;
1025
+ }, {
1026
+ courseId: string;
1027
+ objectId: string;
1028
+ objectType: string;
1029
+ reaction: REACTION_TYPE[];
1030
+ highlightData: {
1031
+ selectedText: string;
1032
+ textPosition: {
1033
+ start: number;
1034
+ end: number;
1035
+ } | null;
1036
+ range: {
1037
+ startContainer: string;
1038
+ endContainer: string;
1039
+ startOffset: number;
1040
+ endOffset: number;
1041
+ } | null;
1042
+ pageLastModifiedAt: string;
1043
+ hasNoHighlightAnymore?: boolean | undefined;
1044
+ };
1045
+ userText?: string | undefined;
1046
+ }>;
1047
+ export type CreateNoteInputType = z.infer<typeof CreateNoteInput>;
1048
+ export declare const CreateNoteResponse: z.ZodObject<{
1049
+ createNote: z.ZodObject<{
1050
+ id: z.ZodString;
1051
+ rootAccountUuid: z.ZodString;
1052
+ userId: z.ZodString;
1053
+ courseId: z.ZodString;
1054
+ objectId: z.ZodString;
1055
+ objectType: z.ZodString;
1056
+ userText: z.ZodOptional<z.ZodString>;
1057
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
1058
+ highlightData: z.ZodObject<{
1059
+ selectedText: z.ZodString;
1060
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
1061
+ textPosition: z.ZodNullable<z.ZodObject<{
1062
+ start: z.ZodNumber;
1063
+ end: z.ZodNumber;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ start: number;
1066
+ end: number;
1067
+ }, {
1068
+ start: number;
1069
+ end: number;
1070
+ }>>;
1071
+ range: z.ZodNullable<z.ZodObject<{
1072
+ startContainer: z.ZodString;
1073
+ endContainer: z.ZodString;
1074
+ startOffset: z.ZodNumber;
1075
+ endOffset: z.ZodNumber;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ startContainer: string;
1078
+ endContainer: string;
1079
+ startOffset: number;
1080
+ endOffset: number;
1081
+ }, {
1082
+ startContainer: string;
1083
+ endContainer: string;
1084
+ startOffset: number;
1085
+ endOffset: number;
1086
+ }>>;
1087
+ pageLastModifiedAt: z.ZodString;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ selectedText: string;
1090
+ textPosition: {
1091
+ start: number;
1092
+ end: number;
1093
+ } | null;
1094
+ range: {
1095
+ startContainer: string;
1096
+ endContainer: string;
1097
+ startOffset: number;
1098
+ endOffset: number;
1099
+ } | null;
1100
+ pageLastModifiedAt: string;
1101
+ hasNoHighlightAnymore?: boolean | undefined;
1102
+ }, {
1103
+ selectedText: string;
1104
+ textPosition: {
1105
+ start: number;
1106
+ end: number;
1107
+ } | null;
1108
+ range: {
1109
+ startContainer: string;
1110
+ endContainer: string;
1111
+ startOffset: number;
1112
+ endOffset: number;
1113
+ } | null;
1114
+ pageLastModifiedAt: string;
1115
+ hasNoHighlightAnymore?: boolean | undefined;
1116
+ }>;
1117
+ createdAt: z.ZodString;
1118
+ updatedAt: z.ZodString;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ id: string;
1121
+ rootAccountUuid: string;
1122
+ userId: string;
1123
+ courseId: string;
1124
+ objectId: string;
1125
+ objectType: string;
1126
+ reaction: REACTION_TYPE[];
1127
+ highlightData: {
1128
+ selectedText: string;
1129
+ textPosition: {
1130
+ start: number;
1131
+ end: number;
1132
+ } | null;
1133
+ range: {
1134
+ startContainer: string;
1135
+ endContainer: string;
1136
+ startOffset: number;
1137
+ endOffset: number;
1138
+ } | null;
1139
+ pageLastModifiedAt: string;
1140
+ hasNoHighlightAnymore?: boolean | undefined;
1141
+ };
1142
+ createdAt: string;
1143
+ updatedAt: string;
1144
+ userText?: string | undefined;
1145
+ }, {
1146
+ id: string;
1147
+ rootAccountUuid: string;
1148
+ userId: string;
1149
+ courseId: string;
1150
+ objectId: string;
1151
+ objectType: string;
1152
+ reaction: REACTION_TYPE[];
1153
+ highlightData: {
1154
+ selectedText: string;
1155
+ textPosition: {
1156
+ start: number;
1157
+ end: number;
1158
+ } | null;
1159
+ range: {
1160
+ startContainer: string;
1161
+ endContainer: string;
1162
+ startOffset: number;
1163
+ endOffset: number;
1164
+ } | null;
1165
+ pageLastModifiedAt: string;
1166
+ hasNoHighlightAnymore?: boolean | undefined;
1167
+ };
1168
+ createdAt: string;
1169
+ updatedAt: string;
1170
+ userText?: string | undefined;
1171
+ }>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ createNote: {
1174
+ id: string;
1175
+ rootAccountUuid: string;
1176
+ userId: string;
1177
+ courseId: string;
1178
+ objectId: string;
1179
+ objectType: string;
1180
+ reaction: REACTION_TYPE[];
1181
+ highlightData: {
1182
+ selectedText: string;
1183
+ textPosition: {
1184
+ start: number;
1185
+ end: number;
1186
+ } | null;
1187
+ range: {
1188
+ startContainer: string;
1189
+ endContainer: string;
1190
+ startOffset: number;
1191
+ endOffset: number;
1192
+ } | null;
1193
+ pageLastModifiedAt: string;
1194
+ hasNoHighlightAnymore?: boolean | undefined;
1195
+ };
1196
+ createdAt: string;
1197
+ updatedAt: string;
1198
+ userText?: string | undefined;
1199
+ };
1200
+ }, {
1201
+ createNote: {
1202
+ id: string;
1203
+ rootAccountUuid: string;
1204
+ userId: string;
1205
+ courseId: string;
1206
+ objectId: string;
1207
+ objectType: string;
1208
+ reaction: REACTION_TYPE[];
1209
+ highlightData: {
1210
+ selectedText: string;
1211
+ textPosition: {
1212
+ start: number;
1213
+ end: number;
1214
+ } | null;
1215
+ range: {
1216
+ startContainer: string;
1217
+ endContainer: string;
1218
+ startOffset: number;
1219
+ endOffset: number;
1220
+ } | null;
1221
+ pageLastModifiedAt: string;
1222
+ hasNoHighlightAnymore?: boolean | undefined;
1223
+ };
1224
+ createdAt: string;
1225
+ updatedAt: string;
1226
+ userText?: string | undefined;
1227
+ };
1228
+ }>;
1229
+ export type CreateNoteResponseType = z.infer<typeof CreateNoteResponse>;
1230
+ export declare const UpdateNoteInput: z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ userText: z.ZodOptional<z.ZodString>;
1233
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
1234
+ highlightData: z.ZodObject<{
1235
+ selectedText: z.ZodString;
1236
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
1237
+ textPosition: z.ZodNullable<z.ZodObject<{
1238
+ start: z.ZodNumber;
1239
+ end: z.ZodNumber;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ start: number;
1242
+ end: number;
1243
+ }, {
1244
+ start: number;
1245
+ end: number;
1246
+ }>>;
1247
+ range: z.ZodNullable<z.ZodObject<{
1248
+ startContainer: z.ZodString;
1249
+ endContainer: z.ZodString;
1250
+ startOffset: z.ZodNumber;
1251
+ endOffset: z.ZodNumber;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ startContainer: string;
1254
+ endContainer: string;
1255
+ startOffset: number;
1256
+ endOffset: number;
1257
+ }, {
1258
+ startContainer: string;
1259
+ endContainer: string;
1260
+ startOffset: number;
1261
+ endOffset: number;
1262
+ }>>;
1263
+ pageLastModifiedAt: z.ZodString;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ selectedText: string;
1266
+ textPosition: {
1267
+ start: number;
1268
+ end: number;
1269
+ } | null;
1270
+ range: {
1271
+ startContainer: string;
1272
+ endContainer: string;
1273
+ startOffset: number;
1274
+ endOffset: number;
1275
+ } | null;
1276
+ pageLastModifiedAt: string;
1277
+ hasNoHighlightAnymore?: boolean | undefined;
1278
+ }, {
1279
+ selectedText: string;
1280
+ textPosition: {
1281
+ start: number;
1282
+ end: number;
1283
+ } | null;
1284
+ range: {
1285
+ startContainer: string;
1286
+ endContainer: string;
1287
+ startOffset: number;
1288
+ endOffset: number;
1289
+ } | null;
1290
+ pageLastModifiedAt: string;
1291
+ hasNoHighlightAnymore?: boolean | undefined;
1292
+ }>;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ id: string;
1295
+ reaction: REACTION_TYPE[];
1296
+ highlightData: {
1297
+ selectedText: string;
1298
+ textPosition: {
1299
+ start: number;
1300
+ end: number;
1301
+ } | null;
1302
+ range: {
1303
+ startContainer: string;
1304
+ endContainer: string;
1305
+ startOffset: number;
1306
+ endOffset: number;
1307
+ } | null;
1308
+ pageLastModifiedAt: string;
1309
+ hasNoHighlightAnymore?: boolean | undefined;
1310
+ };
1311
+ userText?: string | undefined;
1312
+ }, {
1313
+ id: string;
1314
+ reaction: REACTION_TYPE[];
1315
+ highlightData: {
1316
+ selectedText: string;
1317
+ textPosition: {
1318
+ start: number;
1319
+ end: number;
1320
+ } | null;
1321
+ range: {
1322
+ startContainer: string;
1323
+ endContainer: string;
1324
+ startOffset: number;
1325
+ endOffset: number;
1326
+ } | null;
1327
+ pageLastModifiedAt: string;
1328
+ hasNoHighlightAnymore?: boolean | undefined;
1329
+ };
1330
+ userText?: string | undefined;
1331
+ }>;
1332
+ export type UpdateNoteInputType = z.infer<typeof UpdateNoteInput>;
1333
+ export declare const UpdateNoteResponse: z.ZodObject<{
1334
+ updateNote: z.ZodObject<{
1335
+ id: z.ZodString;
1336
+ rootAccountUuid: z.ZodString;
1337
+ userId: z.ZodString;
1338
+ courseId: z.ZodString;
1339
+ objectId: z.ZodString;
1340
+ objectType: z.ZodString;
1341
+ userText: z.ZodOptional<z.ZodString>;
1342
+ reaction: z.ZodArray<z.ZodEnum<[REACTION_TYPE.IMPORTANT, REACTION_TYPE.CONFUSING]>, "many">;
1343
+ highlightData: z.ZodObject<{
1344
+ selectedText: z.ZodString;
1345
+ hasNoHighlightAnymore: z.ZodOptional<z.ZodBoolean>;
1346
+ textPosition: z.ZodNullable<z.ZodObject<{
1347
+ start: z.ZodNumber;
1348
+ end: z.ZodNumber;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ start: number;
1351
+ end: number;
1352
+ }, {
1353
+ start: number;
1354
+ end: number;
1355
+ }>>;
1356
+ range: z.ZodNullable<z.ZodObject<{
1357
+ startContainer: z.ZodString;
1358
+ endContainer: z.ZodString;
1359
+ startOffset: z.ZodNumber;
1360
+ endOffset: z.ZodNumber;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ startContainer: string;
1363
+ endContainer: string;
1364
+ startOffset: number;
1365
+ endOffset: number;
1366
+ }, {
1367
+ startContainer: string;
1368
+ endContainer: string;
1369
+ startOffset: number;
1370
+ endOffset: number;
1371
+ }>>;
1372
+ pageLastModifiedAt: z.ZodString;
1373
+ }, "strip", z.ZodTypeAny, {
1374
+ selectedText: string;
1375
+ textPosition: {
1376
+ start: number;
1377
+ end: number;
1378
+ } | null;
1379
+ range: {
1380
+ startContainer: string;
1381
+ endContainer: string;
1382
+ startOffset: number;
1383
+ endOffset: number;
1384
+ } | null;
1385
+ pageLastModifiedAt: string;
1386
+ hasNoHighlightAnymore?: boolean | undefined;
1387
+ }, {
1388
+ selectedText: string;
1389
+ textPosition: {
1390
+ start: number;
1391
+ end: number;
1392
+ } | null;
1393
+ range: {
1394
+ startContainer: string;
1395
+ endContainer: string;
1396
+ startOffset: number;
1397
+ endOffset: number;
1398
+ } | null;
1399
+ pageLastModifiedAt: string;
1400
+ hasNoHighlightAnymore?: boolean | undefined;
1401
+ }>;
1402
+ createdAt: z.ZodString;
1403
+ updatedAt: z.ZodString;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ id: string;
1406
+ rootAccountUuid: string;
1407
+ userId: string;
1408
+ courseId: string;
1409
+ objectId: string;
1410
+ objectType: string;
1411
+ reaction: REACTION_TYPE[];
1412
+ highlightData: {
1413
+ selectedText: string;
1414
+ textPosition: {
1415
+ start: number;
1416
+ end: number;
1417
+ } | null;
1418
+ range: {
1419
+ startContainer: string;
1420
+ endContainer: string;
1421
+ startOffset: number;
1422
+ endOffset: number;
1423
+ } | null;
1424
+ pageLastModifiedAt: string;
1425
+ hasNoHighlightAnymore?: boolean | undefined;
1426
+ };
1427
+ createdAt: string;
1428
+ updatedAt: string;
1429
+ userText?: string | undefined;
1430
+ }, {
1431
+ id: string;
1432
+ rootAccountUuid: string;
1433
+ userId: string;
1434
+ courseId: string;
1435
+ objectId: string;
1436
+ objectType: string;
1437
+ reaction: REACTION_TYPE[];
1438
+ highlightData: {
1439
+ selectedText: string;
1440
+ textPosition: {
1441
+ start: number;
1442
+ end: number;
1443
+ } | null;
1444
+ range: {
1445
+ startContainer: string;
1446
+ endContainer: string;
1447
+ startOffset: number;
1448
+ endOffset: number;
1449
+ } | null;
1450
+ pageLastModifiedAt: string;
1451
+ hasNoHighlightAnymore?: boolean | undefined;
1452
+ };
1453
+ createdAt: string;
1454
+ updatedAt: string;
1455
+ userText?: string | undefined;
1456
+ }>;
1457
+ }, "strip", z.ZodTypeAny, {
1458
+ updateNote: {
1459
+ id: string;
1460
+ rootAccountUuid: string;
1461
+ userId: string;
1462
+ courseId: string;
1463
+ objectId: string;
1464
+ objectType: string;
1465
+ reaction: REACTION_TYPE[];
1466
+ highlightData: {
1467
+ selectedText: string;
1468
+ textPosition: {
1469
+ start: number;
1470
+ end: number;
1471
+ } | null;
1472
+ range: {
1473
+ startContainer: string;
1474
+ endContainer: string;
1475
+ startOffset: number;
1476
+ endOffset: number;
1477
+ } | null;
1478
+ pageLastModifiedAt: string;
1479
+ hasNoHighlightAnymore?: boolean | undefined;
1480
+ };
1481
+ createdAt: string;
1482
+ updatedAt: string;
1483
+ userText?: string | undefined;
1484
+ };
1485
+ }, {
1486
+ updateNote: {
1487
+ id: string;
1488
+ rootAccountUuid: string;
1489
+ userId: string;
1490
+ courseId: string;
1491
+ objectId: string;
1492
+ objectType: string;
1493
+ reaction: REACTION_TYPE[];
1494
+ highlightData: {
1495
+ selectedText: string;
1496
+ textPosition: {
1497
+ start: number;
1498
+ end: number;
1499
+ } | null;
1500
+ range: {
1501
+ startContainer: string;
1502
+ endContainer: string;
1503
+ startOffset: number;
1504
+ endOffset: number;
1505
+ } | null;
1506
+ pageLastModifiedAt: string;
1507
+ hasNoHighlightAnymore?: boolean | undefined;
1508
+ };
1509
+ createdAt: string;
1510
+ updatedAt: string;
1511
+ userText?: string | undefined;
1512
+ };
1513
+ }>;
1514
+ export type UpdateNoteResponseType = z.infer<typeof UpdateNoteResponse>;
1515
+ export declare const DeleteNoteResponse: z.ZodObject<{
1516
+ deleteNote: z.ZodString;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ deleteNote: string;
1519
+ }, {
1520
+ deleteNote: string;
1521
+ }>;
1522
+ export type DeleteNoteResponseType = z.infer<typeof DeleteNoteResponse>;
1523
+ export interface PaginatedNotes {
1524
+ notes: NoteType[];
1525
+ pageInfo: PageInfoType;
1526
+ }
1527
+ export interface GetNotesParams {
1528
+ courseId?: string;
1529
+ filter?: z.infer<typeof NoteFilterInput>;
1530
+ pageSize?: number;
1531
+ direction?: PaginationDirection;
1532
+ cursor?: string;
1533
+ }
1534
+ export interface NotebookApi {
1535
+ getNotes(params: GetNotesParams): Promise<PaginatedNotes>;
1536
+ createNote(input: CreateNoteInputType): Promise<NoteType>;
1537
+ updateNote(id: string, input: UpdateNoteInputType): Promise<NoteType>;
1538
+ deleteNote(id: string): Promise<void>;
1539
+ }
1540
+ export interface NotebookAnalyticsEvent {
1541
+ action: string;
1542
+ noteId?: string;
1543
+ [key: string]: unknown;
1544
+ }
1545
+ //# sourceMappingURL=types.d.ts.map