@texonom/ntypes 1.4.7 → 1.5.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/build/index.d.ts CHANGED
@@ -1,802 +1,10 @@
1
- /** UUID */
2
- type ID = string;
3
- /**
4
- * Unique identifier for collection properties representing the columns in a
5
- * traditional relational database.
6
- *
7
- * Either a 4-character hash like `o;Os` or `title` as a special, reserved
8
- * property ID for collection title properties.
9
- *
10
- * You can think of `title` properties as primary indexes that are guaranteed
11
- * to exist as in a traditional database.
12
- */
13
- type PropertyID = string;
14
- /** Block colors supported by Notion */
15
- type Color = 'gray' | 'brown' | 'orange' | 'yellow' | 'teal' | 'blue' | 'purple' | 'pink' | 'red' | 'gray_background' | 'brown_background' | 'orange_background' | 'yellow_background' | 'teal_background' | 'blue_background' | 'purple_background' | 'pink_background' | 'red_background';
16
- /** Types of structured data supported by Notion collections */
17
- type PropertyType = 'title' | 'text' | 'number' | 'select' | 'multi_select' | 'date' | 'person' | 'file' | 'checkbox' | 'url' | 'email' | 'phone_number' | 'formula' | 'relation' | 'created_time' | 'created_by' | 'last_edited_time' | 'last_edited_by';
18
- /** Types of number formatting supported by Notion */
19
- type NumberFormat = 'number_with_commas' | 'percent' | 'dollar' | 'euro' | 'pound' | 'yen' | 'rupee' | 'won' | 'yuan';
20
- type Role = 'editor' | 'reader' | 'none' | 'read_and_write';
21
- type BoldFormat = ['b'];
22
- type ItalicFormat = ['i'];
23
- type StrikeFormat = ['s'];
24
- type CodeFormat = ['c'];
25
- type UnderlineFormat = ['_'];
26
- type LinkFormat = ['a', string];
27
- type ExternalObjectInstanceFormat = ['eoi', string];
28
- type ColorFormat = ['h', Color];
29
- type UserFormat = ['u', string];
30
- type PageFormat = ['p', string] | ['p', string, string];
31
- type InlineEquationFormat = ['e', string];
32
- type DiscussionFormat = ['m', string];
33
- type ExternalLinkFormat = ['‣', [string, string]];
34
- type DateFormat = ['d', FormattedDate];
35
- interface FormattedDate {
36
- type: 'date' | 'daterange' | 'datetime' | 'datetimerange';
37
- start_date: string;
38
- start_time?: string;
39
- end_date?: string;
40
- end_time?: string;
41
- date_format?: string;
42
- time_zone?: string;
43
- }
44
- type SubDecoration = BoldFormat | ItalicFormat | StrikeFormat | CodeFormat | UnderlineFormat | LinkFormat | ColorFormat | DateFormat | UserFormat | InlineEquationFormat | PageFormat | ExternalLinkFormat | DiscussionFormat | ExternalObjectInstanceFormat;
45
- type BaseDecoration = [string];
46
- type MentionDecoration = ['‣', SubDecoration[]];
47
- type AdditionalDecoration = [string, SubDecoration[]];
48
- type Decoration = BaseDecoration | AdditionalDecoration | MentionDecoration;
49
- declare const isLinkFormat: (format: SubDecoration) => format is LinkFormat;
50
- declare const isExternalLinkFormat: (format: SubDecoration) => format is ExternalLinkFormat;
51
- declare const isDateFormat: (format: SubDecoration) => format is DateFormat;
52
- declare const isColorFormat: (format: SubDecoration) => format is ColorFormat;
53
- declare const isPageFormat: (format: SubDecoration) => format is PageFormat;
54
- declare const isUserFormat: (format: SubDecoration) => format is UserFormat;
55
- declare const isBaseDecoration: (deco: Decoration) => deco is BaseDecoration;
56
- declare const isMentionDecoration: (deco: Decoration) => deco is MentionDecoration;
57
- declare const isAdditionalDecoration: (deco: Decoration) => deco is AdditionalDecoration;
58
-
59
- type BlockType = 'page' | 'text' | 'bookmark' | 'bulleted_list' | 'numbered_list' | 'header' | 'sub_header' | 'sub_sub_header' | 'quote' | 'equation' | 'to_do' | 'table_of_contents' | 'divider' | 'column_list' | 'column' | 'callout' | 'toggle' | 'image' | 'embed' | 'gist' | 'video' | 'figma' | 'typeform' | 'codepen' | 'excalidraw' | 'tweet' | 'maps' | 'pdf' | 'audio' | 'drive' | 'file' | 'code' | 'collection_view' | 'collection_view_page' | 'transclusion_container' | 'transclusion_reference' | 'alias' | 'table' | 'table_row' | 'external_object_instance' | 'breadcrumb' | 'miro' | string;
60
- /** The different block values a block can have. */
61
- type Block = TextBlock | PageBlock | BulletedListBlock | NumberedListBlock | HeaderBlock | SubHeaderBlock | SubSubHeaderBlock | TodoBlock | TableOfContentsBlock | DividerBlock | ColumnListBlock | ColumnBlock | QuoteBlock | EquationBlock | CodeBlock | ImageBlock | VideoBlock | FigmaBlock | TypeformBlock | CodepenBlock | ExcalidrawBlock | TweetBlock | PdfBlock | MapsBlock | AudioBlock | GoogleDriveBlock | FileBlock | EmbedBlock | GistBlock | CalloutBlock | BookmarkBlock | ToggleBlock | CollectionViewBlock | CollectionViewPageBlock | SyncBlock | SyncPointerBlock | PageLink | TableBlock | TableRowBlock | ExternalObjectInstance | BreadcrumbInstance;
62
- /**
63
- * Base properties shared by all blocks.
64
- */
65
- interface BaseBlock {
66
- id: ID;
67
- type: BlockType;
68
- properties?: any;
69
- format?: any;
70
- content?: ID[];
71
- space_id?: ID;
72
- parent_id: ID;
73
- parent_table: string | 'space' | 'block' | 'table';
74
- version: number;
75
- created_time: number;
76
- last_edited_time: number;
77
- alive: boolean;
78
- created_by_table: string;
79
- created_by_id: ID;
80
- last_edited_by_table: string;
81
- last_edited_by_id: ID;
82
- is_template?: boolean;
83
- }
84
- interface BaseTextBlock extends BaseBlock {
85
- content?: ID[];
86
- properties?: {
87
- title: Decoration[];
88
- };
89
- format?: {
90
- block_color: Color;
91
- };
92
- }
93
- interface BaseContentBlock extends BaseBlock {
94
- properties: {
95
- source: string[][];
96
- caption?: Decoration[];
97
- };
98
- format?: {
99
- block_alignment: 'center' | 'left' | 'right';
100
- block_width: number;
101
- block_height: number;
102
- display_source: string;
103
- block_full_width: boolean;
104
- block_page_width: boolean;
105
- block_aspect_ratio: number;
106
- block_preserve_scale: boolean;
107
- };
108
- file_ids?: string[];
109
- }
110
- interface BasePageBlock extends BaseBlock {
111
- properties?: {
112
- title: Decoration[];
113
- [property: string]: Decoration[];
114
- };
115
- format: {
116
- page_full_width?: boolean;
117
- page_small_text?: boolean;
118
- page_cover_position?: number;
119
- block_locked?: boolean;
120
- block_locked_by?: string;
121
- page_cover?: string;
122
- page_icon?: string;
123
- block_color?: Color;
124
- };
125
- is_template?: boolean;
126
- permissions: {
127
- role: Role;
128
- type: string;
129
- }[];
130
- file_ids?: string[];
131
- }
132
- interface PageBlock extends BasePageBlock {
133
- type: 'page';
134
- }
135
- interface BookmarkBlock extends BaseBlock {
136
- type: 'bookmark';
137
- properties: {
138
- link: Decoration[];
139
- title: Decoration[];
140
- description: Decoration[];
141
- };
142
- format: {
143
- block_color?: string;
144
- bookmark_icon: string;
145
- bookmark_cover: string;
146
- };
147
- }
148
- interface TextBlock extends BaseTextBlock {
149
- type: 'text';
150
- }
151
- interface BulletedListBlock extends BaseTextBlock {
152
- type: 'bulleted_list';
153
- }
154
- interface NumberedListBlock extends BaseTextBlock {
155
- type: 'numbered_list';
156
- }
157
- interface HeaderBlock extends BaseTextBlock {
158
- type: 'header';
159
- format?: {
160
- block_color: Color;
161
- toggleable?: boolean;
162
- };
163
- }
164
- interface SubHeaderBlock extends BaseTextBlock {
165
- type: 'sub_header';
166
- format?: {
167
- block_color: Color;
168
- toggleable?: boolean;
169
- };
170
- }
171
- interface SubSubHeaderBlock extends BaseTextBlock {
172
- type: 'sub_sub_header';
173
- format?: {
174
- block_color: Color;
175
- toggleable?: boolean;
176
- };
177
- }
178
- interface QuoteBlock extends BaseTextBlock {
179
- type: 'quote';
180
- }
181
- interface EquationBlock extends BaseTextBlock {
182
- type: 'equation';
183
- }
184
- interface TodoBlock extends BaseTextBlock {
185
- type: 'to_do';
186
- properties: {
187
- title: Decoration[];
188
- checked: (['Yes'] | ['No'])[];
189
- };
190
- }
191
- interface TableOfContentsBlock extends BaseBlock {
192
- type: 'table_of_contents';
193
- format?: {
194
- block_color: Color;
195
- };
196
- }
197
- interface DividerBlock extends BaseBlock {
198
- type: 'divider';
199
- }
200
- interface ColumnListBlock extends BaseBlock {
201
- type: 'column_list';
202
- }
203
- interface ColumnBlock extends BaseBlock {
204
- type: 'column';
205
- format: {
206
- column_ratio: number;
207
- };
208
- }
209
- interface CalloutBlock extends BaseBlock {
210
- type: 'callout';
211
- format: {
212
- page_icon: string;
213
- block_color: Color;
214
- };
215
- properties: {
216
- title: Decoration[];
217
- };
218
- }
219
- interface ToggleBlock extends BaseBlock {
220
- type: 'toggle';
221
- properties: {
222
- title: Decoration[];
223
- };
224
- }
225
- interface ImageBlock extends BaseContentBlock {
226
- type: 'image';
227
- }
228
- interface EmbedBlock extends BaseContentBlock {
229
- type: 'embed';
230
- }
231
- interface GistBlock extends BaseContentBlock {
232
- type: 'gist';
233
- }
234
- interface VideoBlock extends BaseContentBlock {
235
- type: 'video';
236
- }
237
- interface FigmaBlock extends BaseContentBlock {
238
- type: 'figma';
239
- }
240
- interface TypeformBlock extends BaseContentBlock {
241
- type: 'typeform';
242
- }
243
- interface CodepenBlock extends BaseContentBlock {
244
- type: 'codepen';
245
- }
246
- interface ExcalidrawBlock extends BaseContentBlock {
247
- type: 'excalidraw';
248
- }
249
- interface TweetBlock extends BaseContentBlock {
250
- type: 'tweet';
251
- }
252
- interface MapsBlock extends BaseContentBlock {
253
- type: 'maps';
254
- }
255
- interface PdfBlock extends BaseContentBlock {
256
- type: 'pdf';
257
- }
258
- interface AudioBlock extends BaseContentBlock {
259
- type: 'audio';
260
- }
261
- interface MiroBlock extends BaseContentBlock {
262
- type: 'miro';
263
- }
264
- interface FileBlock extends BaseBlock {
265
- type: 'file';
266
- properties: {
267
- title: Decoration[];
268
- size: Decoration[];
269
- source: string[][];
270
- };
271
- file_ids?: string[];
272
- }
273
- interface GoogleDriveBlock extends BaseContentBlock {
274
- type: 'drive';
275
- format: {
276
- drive_status: {
277
- authed: boolean;
278
- last_fetched: number;
279
- };
280
- drive_properties: {
281
- url: string;
282
- icon: string;
283
- title: string;
284
- file_id: string;
285
- trashed: boolean;
286
- version: string;
287
- thumbnail: string;
288
- user_name: string;
289
- modified_time: number;
290
- };
291
- block_alignment: 'center' | 'left' | 'right';
292
- block_width: number;
293
- block_height: number;
294
- display_source: string;
295
- block_full_width: boolean;
296
- block_page_width: boolean;
297
- block_aspect_ratio: number;
298
- block_preserve_scale: boolean;
299
- };
300
- file_ids?: string[];
301
- }
302
- interface CodeBlock extends BaseBlock {
303
- type: 'code';
304
- properties: {
305
- title: Decoration[];
306
- language: Decoration[];
307
- caption: Decoration[];
308
- };
309
- }
310
- interface CollectionViewBlock extends BaseContentBlock {
311
- type: 'collection_view';
312
- collection_id?: ID;
313
- view_ids: ID[];
314
- format?: BaseContentBlock['format'] & {
315
- collection_pointer?: {
316
- id: ID;
317
- spaceId: ID;
318
- table: string;
319
- };
320
- };
321
- }
322
- interface CollectionViewPageBlock extends BasePageBlock {
323
- type: 'collection_view_page';
324
- collection_id?: ID;
325
- view_ids: ID[];
326
- format: BasePageBlock['format'] & {
327
- collection_pointer?: {
328
- id: ID;
329
- spaceId: ID;
330
- table: string;
331
- };
332
- };
333
- }
334
- interface SyncBlock extends BaseBlock {
335
- type: 'transclusion_container';
336
- }
337
- interface SyncPointerBlock extends BaseBlock {
338
- type: 'transclusion_reference';
339
- format: {
340
- copied_from_pointer: {
341
- id: string;
342
- spaceid: string;
343
- };
344
- transclusion_reference_pointer: {
345
- id: string;
346
- spaceId: string;
347
- };
348
- };
349
- }
350
- interface PageLink extends BaseBlock {
351
- type: 'alias';
352
- format: {
353
- alias_pointer: {
354
- id: string;
355
- };
356
- };
357
- }
358
- interface TableBlock extends BaseBlock {
359
- type: 'table';
360
- collection_id: ID;
361
- format: {
362
- collection_pointer: {
363
- id: ID;
364
- table: string;
365
- spaceId: ID;
366
- };
367
- table_block_column_format?: {
368
- [column: string]: {
369
- width?: number;
370
- color?: Color;
371
- };
372
- };
373
- table_block_column_header: boolean;
374
- table_block_column_order: string[];
375
- };
376
- view_ids: ID[];
377
- }
378
- interface TableRowBlock extends BaseBlock {
379
- type: 'table_row';
380
- properties: {
381
- [column: string]: Decoration[];
382
- };
383
- }
384
- interface ExternalObjectInstance extends BaseBlock {
385
- type: 'external_object_instance';
386
- format: {
387
- domain: string;
388
- original_url: string;
389
- external_object_id?: ID;
390
- related_external_object_uris_to_instance_ids?: {
391
- [uri: string]: ID;
392
- };
393
- attributes: {
394
- id: string;
395
- name: string;
396
- type: string;
397
- values: unknown[];
398
- }[];
399
- bot_id: string;
400
- stale: boolean;
401
- };
402
- }
403
- interface BreadcrumbInstance extends BaseBlock {
404
- type: 'breadcrumb';
405
- }
406
-
407
- type FormulaType = 'constant' | 'property' | 'operator' | 'function' | 'symbol';
408
- type FormulaConstantType = 'e' | 'false' | 'true' | 'pi';
409
- type FormulaValueType = 'string' | 'number' | 'boolean' | 'date' | FormulaConstantType;
410
- type FormulaResult = string | number | boolean | Date;
411
- type FormulaResultType = 'text' | 'number' | 'boolean' | 'date' | 'checkbox';
412
- type FormulaOperatorType = '-' | '*' | '%' | '/' | '+' | '!=' | '<=' | '==' | '>' | '<' | '>=';
413
- type FormulaFunctionType = 'and' | 'empty' | 'equal' | 'if' | 'larger' | 'largerEq' | 'not' | 'or' | 'smaller' | 'smallerEq' | 'unequal' | 'abs' | 'add' | 'cbrt' | 'ceil' | 'divide' | 'exp' | 'floor' | 'ln' | 'log10' | 'log2' | 'max' | 'min' | 'mod' | 'multiply' | 'pow' | 'round' | 'sign' | 'sqrt' | 'subtract' | 'toNumber' | 'unaryMinus' | 'unaryPlus' | 'concat' | 'contains' | 'format' | 'join' | 'length' | 'replace' | 'replaceAll' | 'slice' | 'test' | 'date' | 'dateAdd' | 'dateBetween' | 'dateSubtract' | 'day' | 'end' | 'formatDate' | 'fromTimestamp' | 'hour' | 'minute' | 'month' | 'now' | 'start' | 'timestamp' | 'year';
414
- interface BaseFormula {
415
- type: FormulaType;
416
- result_type: FormulaResultType;
417
- }
418
- interface ConstantFormula extends BaseFormula {
419
- type: 'constant';
420
- value: any;
421
- value_type: FormulaValueType;
422
- }
423
- interface PropertyFormula extends BaseFormula {
424
- type: 'property';
425
- id: PropertyID;
426
- name: string;
427
- }
428
- interface SymbolFormula extends BaseFormula {
429
- type: 'symbol';
430
- name: string;
431
- }
432
- interface FunctionFormula extends BaseFormula {
433
- type: 'function';
434
- name: FormulaFunctionType;
435
- args: Array<Formula>;
436
- }
437
- interface OperatorFormula extends BaseFormula {
438
- type: 'operator';
439
- operator: FormulaOperatorType;
440
- name: FormulaFunctionType;
441
- args: Array<Formula>;
442
- }
443
- type Formula = FunctionFormula | OperatorFormula | ConstantFormula | PropertyFormula | SymbolFormula;
444
-
445
- interface User {
446
- id: ID;
447
- name: string;
448
- version: number;
449
- email: string;
450
- given_name: string;
451
- family_name: string;
452
- profile_photo: string;
453
- onboarding_completed: boolean;
454
- mobile_onboarding_completed: boolean;
455
- clipper_onboarding_completed: boolean;
456
- }
457
-
458
- interface SelectOption {
459
- id: ID;
460
- color: Color;
461
- value: string;
462
- }
463
- interface CollectionPropertySchema {
464
- name: string;
465
- type: PropertyType;
466
- options?: SelectOption[];
467
- number_format?: NumberFormat;
468
- formula?: Formula;
469
- }
470
- interface CollectionPropertySchemaMap {
471
- [key: string]: CollectionPropertySchema;
472
- }
473
- interface Collection {
474
- id: ID;
475
- version: number;
476
- name: Decoration[];
477
- schema: CollectionPropertySchemaMap;
478
- icon: string;
479
- parent_id: ID;
480
- parent_table: string;
481
- alive: boolean;
482
- copied_from: string;
483
- template_pages?: Array<ID>;
484
- format?: {
485
- collection_page_properties?: Array<{
486
- property: PropertyID;
487
- visible: boolean;
488
- }>;
489
- property_visibility?: Array<{
490
- property: PropertyID;
491
- visibility: 'show' | 'hide';
492
- }>;
493
- hide_linked_collection_name?: boolean;
494
- };
495
- }
496
- declare function isCollection(obj: unknown): obj is Collection;
497
-
498
- /** Types of collection views supported by Notion */
499
- type CollectionViewType = 'table' | 'gallery' | 'list' | 'board' | 'calendar';
500
- type CollectionCardCoverType = 'page_cover' | 'page_content' | 'property' | 'none' | 'file';
501
- type CollectionCardCoverSize = 'small' | 'medium' | 'large';
502
- type CollectionCardCoverAspect = 'cover' | 'contain';
503
- interface BaseCollectionView {
504
- id: ID;
505
- type: CollectionViewType;
506
- name: string;
507
- format: any;
508
- version: number;
509
- alive: boolean;
510
- parent_id: ID;
511
- parent_table: string;
512
- collection_id: ID;
513
- page_sort: ID[];
514
- query?: unknown;
515
- query2: {
516
- filter?: any;
517
- aggregations?: object[];
518
- group_by: PropertyID;
519
- };
520
- }
521
- interface TableCollectionView extends BaseCollectionView {
522
- type: 'table';
523
- format: {
524
- table_wrap: boolean;
525
- table_properties: Array<{
526
- property: PropertyID;
527
- visible: boolean;
528
- width: number;
529
- }>;
530
- };
531
- }
532
- interface GalleryCollectionView extends BaseCollectionView {
533
- type: 'gallery';
534
- format: {
535
- gallery_cover: CollectionCardCover;
536
- gallery_cover_size: CollectionCardCoverSize;
537
- gallery_cover_aspect: CollectionCardCoverAspect;
538
- gallery_properties: Array<{
539
- property: PropertyID;
540
- visible: boolean;
541
- }>;
542
- };
543
- }
544
- interface ListCollectionView extends BaseCollectionView {
545
- type: 'list';
546
- format: {
547
- list_properties: Array<{
548
- property: PropertyID;
549
- visible: boolean;
550
- }>;
551
- };
552
- }
553
- interface CollectionCardCover {
554
- type: CollectionCardCoverType;
555
- property?: PropertyID;
556
- }
557
- interface BoardCollectionView extends BaseCollectionView {
558
- type: 'board';
559
- format: {
560
- board_cover: CollectionCardCover;
561
- board_cover_size: CollectionCardCoverSize;
562
- board_cover_aspect: CollectionCardCoverAspect;
563
- board_properties: Array<{
564
- property: PropertyID;
565
- visible: boolean;
566
- }>;
567
- board_groups2: Array<{
568
- property: PropertyID;
569
- hidden: boolean;
570
- value: {
571
- type: PropertyType;
572
- value: string;
573
- };
574
- }>;
575
- board_columns: Array<{
576
- property: PropertyID;
577
- hidden: boolean;
578
- value: {
579
- type: PropertyType;
580
- value: string;
581
- };
582
- }>;
583
- };
584
- }
585
- interface CalendarCollectionView extends BaseCollectionView {
586
- type: 'calendar';
587
- view_ids: ID[];
588
- }
589
- type CollectionView = TableCollectionView | GalleryCollectionView | ListCollectionView | BoardCollectionView | CalendarCollectionView;
590
-
591
- interface Space {
592
- id: ID;
593
- version: number;
594
- name: string;
595
- permissions: [[unknown]];
596
- icon: string;
597
- beta_enabled: boolean;
598
- pages: ID[];
599
- disable_public_access: boolean;
600
- disable_guests: boolean;
601
- disable_move_to_space: boolean;
602
- disable_export: boolean;
603
- created_time: number;
604
- last_edited_time: number;
605
- created_by_table: string;
606
- created_by_id: ID;
607
- last_edited_by_table: string;
608
- last_edited_by_id: ID;
609
- plan_type: string;
610
- invite_link_enabled: boolean;
611
- disable_space_page_edits: boolean;
612
- disable_public_access_requests: boolean;
613
- public_home_page: ID;
614
- disable_team_creation: boolean;
615
- settings: {
616
- grant_awards: unknown[];
617
- in_ai_program: boolean;
618
- enable_ai_feature: boolean;
619
- disable_team_guests: boolean;
620
- disable_membership_requests: boolean;
621
- seen_guest_membership_requests: boolean;
622
- disable_guest_membership_requests: boolean;
623
- };
624
- subscription_tier: string;
625
- }
626
- declare function isSpace(obj: unknown): obj is Space;
627
-
628
- interface NotionMap<T> {
629
- [key: string]: {
630
- role: Role;
631
- value: T;
632
- };
633
- }
634
- type BlockMap = NotionMap<Block>;
635
- type UserMap = NotionMap<User>;
636
- type CollectionMap = NotionMap<Collection>;
637
- type SpaceMap = NotionMap<Space>;
638
- type CollectionViewMap = NotionMap<CollectionView>;
639
- interface PropertyMap {
640
- [key: string]: Decoration[];
641
- }
642
- interface RecordMap {
643
- block: BlockMap;
644
- collection?: CollectionMap;
645
- collection_view?: CollectionViewMap;
646
- notion_user?: UserMap;
647
- space?: SpaceMap;
648
- }
649
- interface ExtendedRecordMap extends RecordMap {
650
- collection: CollectionMap;
651
- collection_view: CollectionViewMap;
652
- notion_user: UserMap;
653
- collection_query: {
654
- [collectionId: string]: {
655
- [collectionViewId: string]: CollectionQueryResult;
656
- };
657
- };
658
- signed_urls: {
659
- [blockId: string]: string;
660
- };
661
- preview_images?: PreviewImageMap;
662
- }
663
- interface PageChunk {
664
- recordMap: RecordMap;
665
- cursor: {
666
- stack: unknown[];
667
- };
668
- }
669
- interface CollectionInstance {
670
- recordMap: RecordMap;
671
- result: CollectionQueryResult;
672
- }
673
- interface ReducerResponse<T extends object> {
674
- recordMap: RecordMap;
675
- result: {
676
- reducerResults: T;
677
- };
678
- }
679
- interface CollectionQueryResult {
680
- type: CollectionViewType;
681
- total: number;
682
- blockIds: ID[];
683
- aggregationResults: Array<AggregationResult>;
684
- groupResults?: Array<{
685
- value: AggregationResult;
686
- blockIds: ID[];
687
- total: number;
688
- aggregationResult: AggregationResult;
689
- }>;
690
- collection_group_results?: {
691
- type: string;
692
- blockIds: ID[];
693
- hasMore: boolean;
694
- };
695
- }
696
- interface AggregationResult {
697
- type: PropertyType;
698
- value: unknown;
699
- }
700
- interface PageMap {
701
- [pageId: string]: ExtendedRecordMap | null;
702
- }
703
- interface PreviewImage {
704
- originalWidth: number;
705
- originalHeight: number;
706
- dataURIBase64: string;
707
- }
708
- interface PreviewImageMap {
709
- [url: string]: PreviewImage | null;
710
- }
711
-
712
- interface RecordValues<T> {
713
- results: T[];
714
- recordMapWithRoles?: RecordMap;
715
- }
716
- interface SearchParams {
717
- spaceId: string;
718
- query: string;
719
- excludedBlockIds?: string[];
720
- searchExperimentOverrides?: object;
721
- filters?: {
722
- isDeletedOnly: boolean;
723
- excludeTemplates: boolean;
724
- navigableBlockContentOnly: boolean;
725
- requireEditPermissions: boolean;
726
- includePublicPagesWithoutExplicitAccess?: boolean;
727
- ancestors?: string[];
728
- createdBy?: string[];
729
- editedBy?: string[];
730
- inTeams?: string[];
731
- createdTime?: SearchTimeFilter;
732
- lastEditedTime?: SearchTimeFilter;
733
- };
734
- limit?: number;
735
- searchSessionId?: string;
736
- recentPagesForBoosting?: {
737
- visitedAt: number;
738
- pageId: string;
739
- }[];
740
- sort?: {
741
- field: 'relevance' | 'created' | 'lastEdited';
742
- direction?: 'desc' | 'acs';
743
- };
744
- source?: 'quick_find_filters' | 'quick_find_public';
745
- type?: 'BlocksInSpace';
746
- }
747
- interface BacklinkParams {
748
- block: {
749
- id: string;
750
- spaceId: string;
751
- };
752
- }
753
- interface SearchTimeFilter {
754
- starting?: {
755
- type: 'date';
756
- start_date: string;
757
- };
758
- ending?: {
759
- type: 'date';
760
- start_date: string;
761
- };
762
- }
763
- interface SearchResults {
764
- recordMap: RecordMap;
765
- results: SearchResult[];
766
- total: number;
767
- }
768
- interface BacklinkResults {
769
- backlinks: {
770
- block_id: string;
771
- mentioned_from: {
772
- block_id: string;
773
- pointer: {
774
- id: string;
775
- table: 'block';
776
- spaceId: string;
777
- };
778
- property_id: 'title';
779
- type: 'property_mention';
780
- };
781
- }[];
782
- fanoutData: [];
783
- inaccessibleBacklinkCount: number;
784
- recordMap: RecordMap;
785
- }
786
- interface SearchResult {
787
- id: string;
788
- isNavigable: boolean;
789
- score: number;
790
- highlight: {
791
- title: string;
792
- pathText: string;
793
- text: string;
794
- };
795
- }
796
- interface APIError {
797
- errorId: string;
798
- name: string;
799
- message: string;
800
- }
801
-
802
- export { type APIError, type AdditionalDecoration, type AggregationResult, type AudioBlock, type BacklinkParams, type BacklinkResults, type BaseBlock, type BaseCollectionView, type BaseContentBlock, type BaseDecoration, type BaseFormula, type BasePageBlock, type BaseTextBlock, type Block, type BlockMap, type BlockType, type BoardCollectionView, type BoldFormat, type BookmarkBlock, type BreadcrumbInstance, type BulletedListBlock, type CalendarCollectionView, type CalloutBlock, type CodeBlock, type CodeFormat, type CodepenBlock, type Collection, type CollectionCardCover, type CollectionCardCoverAspect, type CollectionCardCoverSize, type CollectionCardCoverType, type CollectionInstance, type CollectionMap, type CollectionPropertySchema, type CollectionPropertySchemaMap, type CollectionQueryResult, type CollectionView, type CollectionViewBlock, type CollectionViewMap, type CollectionViewPageBlock, type CollectionViewType, type Color, type ColorFormat, type ColumnBlock, type ColumnListBlock, type ConstantFormula, type DateFormat, type Decoration, type DiscussionFormat, type DividerBlock, type EmbedBlock, type EquationBlock, type ExcalidrawBlock, type ExtendedRecordMap, type ExternalLinkFormat, type ExternalObjectInstance, type ExternalObjectInstanceFormat, type FigmaBlock, type FileBlock, type FormattedDate, type Formula, type FormulaConstantType, type FormulaFunctionType, type FormulaOperatorType, type FormulaResult, type FormulaResultType, type FormulaType, type FormulaValueType, type FunctionFormula, type GalleryCollectionView, type GistBlock, type GoogleDriveBlock, type HeaderBlock, type ID, type ImageBlock, type InlineEquationFormat, type ItalicFormat, type LinkFormat, type ListCollectionView, type MapsBlock, type MentionDecoration, type MiroBlock, type NotionMap, type NumberFormat, type NumberedListBlock, type OperatorFormula, type PageBlock, type PageChunk, type PageFormat, type PageLink, type PageMap, type PdfBlock, type PreviewImage, type PreviewImageMap, type PropertyFormula, type PropertyID, type PropertyMap, type PropertyType, type QuoteBlock, type RecordMap, type RecordValues, type ReducerResponse, type Role, type SearchParams, type SearchResult, type SearchResults, type SearchTimeFilter, type SelectOption, type Space, type SpaceMap, type StrikeFormat, type SubDecoration, type SubHeaderBlock, type SubSubHeaderBlock, type SymbolFormula, type SyncBlock, type SyncPointerBlock, type TableBlock, type TableCollectionView, type TableOfContentsBlock, type TableRowBlock, type TextBlock, type TodoBlock, type ToggleBlock, type TweetBlock, type TypeformBlock, type UnderlineFormat, type User, type UserFormat, type UserMap, type VideoBlock, isAdditionalDecoration, isBaseDecoration, isCollection, isColorFormat, isDateFormat, isExternalLinkFormat, isLinkFormat, isMentionDecoration, isPageFormat, isSpace, isUserFormat };
1
+ export * from './core';
2
+ export * from './block';
3
+ export * from './formula';
4
+ export * from './user';
5
+ export * from './collection';
6
+ export * from './collection-view';
7
+ export * from './maps';
8
+ export * from './api';
9
+ export * from './space';
10
+ //# sourceMappingURL=index.d.ts.map
package/build/index.js CHANGED
@@ -1,2 +1,21 @@
1
- var o=e=>e[0]==="a",r=e=>e[0]==="\u2023",a=e=>e[0]==="d",n=e=>e[0]==="h",i=e=>e[0]==="p",p=e=>e[0]==="u",s=e=>e.length===1,t=e=>e[0]==="\u2023",l=e=>!t(e)&&e.length===2;function c(e){return!!(e!=null&&e.schema)}function d(e){return!!(e!=null&&e.pages)}export{l as isAdditionalDecoration,s as isBaseDecoration,c as isCollection,n as isColorFormat,a as isDateFormat,r as isExternalLinkFormat,o as isLinkFormat,t as isMentionDecoration,i as isPageFormat,d as isSpace,p as isUserFormat};
2
- //# sourceMappingURL=index.js.map
1
+ const o = (t) => t[0] === "a", s = (t) => t[0] === "", i = (t) => t[0] === "d", a = (t) => t[0] === "h", e = (t) => t[0] === "p", r = (t) => t[0] === "u", c = (t) => t.length === 1, n = (t) => t[0] === "", l = (t) => !n(t) && t.length === 2;
2
+ function m(t) {
3
+ return !!(t != null && t.schema);
4
+ }
5
+ function F(t) {
6
+ return !!(t != null && t.pages);
7
+ }
8
+ export {
9
+ l as isAdditionalDecoration,
10
+ c as isBaseDecoration,
11
+ m as isCollection,
12
+ a as isColorFormat,
13
+ i as isDateFormat,
14
+ s as isExternalLinkFormat,
15
+ o as isLinkFormat,
16
+ n as isMentionDecoration,
17
+ e as isPageFormat,
18
+ F as isSpace,
19
+ r as isUserFormat
20
+ };
21
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core.ts","../src/collection.ts","../src/space.ts"],"sourcesContent":["// Base Types\n// ----------------------------------------------------------------------------\n\n/** UUID */\nexport type ID = string\n\n/**\n * Unique identifier for collection properties representing the columns in a\n * traditional relational database.\n *\n * Either a 4-character hash like `o;Os` or `title` as a special, reserved\n * property ID for collection title properties.\n *\n * You can think of `title` properties as primary indexes that are guaranteed\n * to exist as in a traditional database.\n */\nexport type PropertyID = string\n\n/** Block colors supported by Notion */\nexport type Color =\n | 'gray'\n | 'brown'\n | 'orange'\n | 'yellow'\n | 'teal'\n | 'blue'\n | 'purple'\n | 'pink'\n | 'red'\n | 'gray_background'\n | 'brown_background'\n | 'orange_background'\n | 'yellow_background'\n | 'teal_background'\n | 'blue_background'\n | 'purple_background'\n | 'pink_background'\n | 'red_background'\n\n/** Types of structured data supported by Notion collections */\nexport type PropertyType =\n | 'title'\n | 'text'\n | 'number'\n | 'select'\n | 'multi_select'\n | 'date'\n | 'person'\n | 'file'\n | 'checkbox'\n | 'url'\n | 'email'\n | 'phone_number'\n | 'formula'\n | 'relation'\n | 'created_time'\n | 'created_by'\n | 'last_edited_time'\n | 'last_edited_by'\n\n/** Types of number formatting supported by Notion */\nexport type NumberFormat = 'number_with_commas' | 'percent' | 'dollar' | 'euro' | 'pound' | 'yen' | 'rupee' | 'won' | 'yuan'\n\nexport type Role = 'editor' | 'reader' | 'none' | 'read_and_write'\n\nexport type BoldFormat = ['b']\nexport type ItalicFormat = ['i']\nexport type StrikeFormat = ['s']\nexport type CodeFormat = ['c']\nexport type UnderlineFormat = ['_']\nexport type LinkFormat = ['a', string]\nexport type ExternalObjectInstanceFormat = ['eoi', string]\nexport type ColorFormat = ['h', Color]\nexport type UserFormat = ['u', string]\nexport type PageFormat = ['p', string] | ['p', string, string]\nexport type InlineEquationFormat = ['e', string]\nexport type DiscussionFormat = ['m', string]\nexport type ExternalLinkFormat = ['‣', [string, string]]\nexport type DateFormat = ['d', FormattedDate]\n\nexport interface FormattedDate {\n type: 'date' | 'daterange' | 'datetime' | 'datetimerange'\n start_date: string\n start_time?: string\n end_date?: string\n end_time?: string\n date_format?: string\n time_zone?: string\n}\n\nexport type SubDecoration =\n | BoldFormat\n | ItalicFormat\n | StrikeFormat\n | CodeFormat\n | UnderlineFormat\n | LinkFormat\n | ColorFormat\n | DateFormat\n | UserFormat\n | InlineEquationFormat\n | PageFormat\n | ExternalLinkFormat\n | DiscussionFormat\n | ExternalObjectInstanceFormat\n\nexport type BaseDecoration = [string]\nexport type MentionDecoration = ['‣', SubDecoration[]]\nexport type AdditionalDecoration = [string, SubDecoration[]]\n\nexport type Decoration = BaseDecoration | AdditionalDecoration | MentionDecoration\n\nexport const isLinkFormat = (format: SubDecoration): format is LinkFormat => format[0] === 'a'\nexport const isExternalLinkFormat = (format: SubDecoration): format is ExternalLinkFormat => format[0] === '‣'\nexport const isDateFormat = (format: SubDecoration): format is DateFormat => format[0] === 'd'\nexport const isColorFormat = (format: SubDecoration): format is ColorFormat => format[0] === 'h'\nexport const isPageFormat = (format: SubDecoration): format is PageFormat => format[0] === 'p'\nexport const isUserFormat = (format: SubDecoration): format is UserFormat => format[0] === 'u'\n\nexport const isBaseDecoration = (deco: Decoration): deco is BaseDecoration => deco.length === 1\nexport const isMentionDecoration = (deco: Decoration): deco is MentionDecoration => deco[0] === '‣'\nexport const isAdditionalDecoration = (deco: Decoration): deco is AdditionalDecoration =>\n !isMentionDecoration(deco) && deco.length === 2\n","import { Color, Decoration, ID, NumberFormat, PropertyID, PropertyType } from './core'\nimport { Formula } from './formula'\n\nexport interface SelectOption {\n id: ID\n color: Color\n value: string\n}\n\nexport interface CollectionPropertySchema {\n name: string\n type: PropertyType\n options?: SelectOption[]\n number_format?: NumberFormat\n formula?: Formula\n}\n\nexport interface CollectionPropertySchemaMap {\n [key: string]: CollectionPropertySchema\n}\n\nexport interface Collection {\n id: ID\n version: number\n name: Decoration[]\n schema: CollectionPropertySchemaMap\n icon: string\n parent_id: ID\n parent_table: string\n alive: boolean\n copied_from: string\n template_pages?: Array<ID>\n\n format?: {\n collection_page_properties?: Array<{\n property: PropertyID\n visible: boolean\n }>\n property_visibility?: Array<{\n property: PropertyID\n visibility: 'show' | 'hide'\n }>\n hide_linked_collection_name?: boolean\n }\n}\n\nexport function isCollection(obj: unknown): obj is Collection {\n return Boolean((obj as Collection)?.schema)\n}\n","import { ID } from './core'\n\nexport interface Space {\n id: ID\n version: number\n name: string\n permissions: [[unknown]]\n icon: string\n beta_enabled: boolean\n pages: ID[]\n disable_public_access: boolean\n disable_guests: boolean\n disable_move_to_space: boolean\n disable_export: boolean\n created_time: number\n last_edited_time: number\n created_by_table: string\n created_by_id: ID\n last_edited_by_table: string\n last_edited_by_id: ID\n plan_type: string\n invite_link_enabled: boolean\n disable_space_page_edits: boolean\n disable_public_access_requests: boolean\n public_home_page: ID\n disable_team_creation: boolean\n settings: {\n grant_awards: unknown[]\n in_ai_program: boolean\n enable_ai_feature: boolean\n disable_team_guests: boolean\n disable_membership_requests: boolean\n seen_guest_membership_requests: boolean\n disable_guest_membership_requests: boolean\n }\n subscription_tier: string\n}\n\nexport function isSpace(obj: unknown): obj is Space {\n return Boolean((obj as Space)?.pages)\n}\n"],"mappings":"AAgHO,IAAMA,EAAgBC,GAAgDA,EAAO,CAAC,IAAM,IAC9EC,EAAwBD,GAAwDA,EAAO,CAAC,IAAM,SAC9FE,EAAgBF,GAAgDA,EAAO,CAAC,IAAM,IAC9EG,EAAiBH,GAAiDA,EAAO,CAAC,IAAM,IAChFI,EAAgBJ,GAAgDA,EAAO,CAAC,IAAM,IAC9EK,EAAgBL,GAAgDA,EAAO,CAAC,IAAM,IAE9EM,EAAoBC,GAA6CA,EAAK,SAAW,EACjFC,EAAuBD,GAAgDA,EAAK,CAAC,IAAM,SACnFE,EAA0BF,GACrC,CAACC,EAAoBD,CAAI,GAAKA,EAAK,SAAW,EC5EzC,SAASG,EAAaC,EAAiC,CAC5D,MAAO,GAASA,GAAA,MAAAA,EAAoB,OACtC,CCVO,SAASC,EAAQC,EAA4B,CAClD,MAAO,GAASA,GAAA,MAAAA,EAAe,MACjC","names":["isLinkFormat","format","isExternalLinkFormat","isDateFormat","isColorFormat","isPageFormat","isUserFormat","isBaseDecoration","deco","isMentionDecoration","isAdditionalDecoration","isCollection","obj","isSpace","obj"]}
1
+ {"version":3,"file":"index.js","sources":["../src/core.ts","../src/collection.ts","../src/space.ts"],"sourcesContent":["// Base Types\n// ----------------------------------------------------------------------------\n\n/** UUID */\nexport type ID = string\n\n/**\n * Unique identifier for collection properties representing the columns in a\n * traditional relational database.\n *\n * Either a 4-character hash like `o;Os` or `title` as a special, reserved\n * property ID for collection title properties.\n *\n * You can think of `title` properties as primary indexes that are guaranteed\n * to exist as in a traditional database.\n */\nexport type PropertyID = string\n\n/** Block colors supported by Notion */\nexport type Color =\n | 'gray'\n | 'brown'\n | 'orange'\n | 'yellow'\n | 'teal'\n | 'blue'\n | 'purple'\n | 'pink'\n | 'red'\n | 'gray_background'\n | 'brown_background'\n | 'orange_background'\n | 'yellow_background'\n | 'teal_background'\n | 'blue_background'\n | 'purple_background'\n | 'pink_background'\n | 'red_background'\n\n/** Types of structured data supported by Notion collections */\nexport type PropertyType =\n | 'title'\n | 'text'\n | 'number'\n | 'select'\n | 'multi_select'\n | 'date'\n | 'person'\n | 'file'\n | 'checkbox'\n | 'url'\n | 'email'\n | 'phone_number'\n | 'formula'\n | 'relation'\n | 'created_time'\n | 'created_by'\n | 'last_edited_time'\n | 'last_edited_by'\n\n/** Types of number formatting supported by Notion */\nexport type NumberFormat = 'number_with_commas' | 'percent' | 'dollar' | 'euro' | 'pound' | 'yen' | 'rupee' | 'won' | 'yuan'\n\nexport type Role = 'editor' | 'reader' | 'none' | 'read_and_write'\n\nexport type BoldFormat = ['b']\nexport type ItalicFormat = ['i']\nexport type StrikeFormat = ['s']\nexport type CodeFormat = ['c']\nexport type UnderlineFormat = ['_']\nexport type LinkFormat = ['a', string]\nexport type ExternalObjectInstanceFormat = ['eoi', string]\nexport type ColorFormat = ['h', Color]\nexport type UserFormat = ['u', string]\nexport type PageFormat = ['p', string] | ['p', string, string]\nexport type InlineEquationFormat = ['e', string]\nexport type DiscussionFormat = ['m', string]\nexport type ExternalLinkFormat = ['‣', [string, string]]\nexport type DateFormat = ['d', FormattedDate]\n\nexport interface FormattedDate {\n type: 'date' | 'daterange' | 'datetime' | 'datetimerange'\n start_date: string\n start_time?: string\n end_date?: string\n end_time?: string\n date_format?: string\n time_zone?: string\n}\n\nexport type SubDecoration =\n | BoldFormat\n | ItalicFormat\n | StrikeFormat\n | CodeFormat\n | UnderlineFormat\n | LinkFormat\n | ColorFormat\n | DateFormat\n | UserFormat\n | InlineEquationFormat\n | PageFormat\n | ExternalLinkFormat\n | DiscussionFormat\n | ExternalObjectInstanceFormat\n\nexport type BaseDecoration = [string]\nexport type MentionDecoration = ['‣', SubDecoration[]]\nexport type AdditionalDecoration = [string, SubDecoration[]]\n\nexport type Decoration = BaseDecoration | AdditionalDecoration | MentionDecoration\n\nexport const isLinkFormat = (format: SubDecoration): format is LinkFormat => format[0] === 'a'\nexport const isExternalLinkFormat = (format: SubDecoration): format is ExternalLinkFormat => format[0] === '‣'\nexport const isDateFormat = (format: SubDecoration): format is DateFormat => format[0] === 'd'\nexport const isColorFormat = (format: SubDecoration): format is ColorFormat => format[0] === 'h'\nexport const isPageFormat = (format: SubDecoration): format is PageFormat => format[0] === 'p'\nexport const isUserFormat = (format: SubDecoration): format is UserFormat => format[0] === 'u'\n\nexport const isBaseDecoration = (deco: Decoration): deco is BaseDecoration => deco.length === 1\nexport const isMentionDecoration = (deco: Decoration): deco is MentionDecoration => deco[0] === '‣'\nexport const isAdditionalDecoration = (deco: Decoration): deco is AdditionalDecoration =>\n !isMentionDecoration(deco) && deco.length === 2\n","import { Color, Decoration, ID, NumberFormat, PropertyID, PropertyType } from './core'\nimport { Formula } from './formula'\n\nexport interface SelectOption {\n id: ID\n color: Color\n value: string\n}\n\nexport interface CollectionPropertySchema {\n name: string\n type: PropertyType\n options?: SelectOption[]\n number_format?: NumberFormat\n formula?: Formula\n}\n\nexport interface CollectionPropertySchemaMap {\n [key: string]: CollectionPropertySchema\n}\n\nexport interface Collection {\n id: ID\n version: number\n name: Decoration[]\n schema: CollectionPropertySchemaMap\n icon: string\n parent_id: ID\n parent_table: string\n alive: boolean\n copied_from: string\n template_pages?: Array<ID>\n\n format?: {\n collection_page_properties?: Array<{\n property: PropertyID\n visible: boolean\n }>\n property_visibility?: Array<{\n property: PropertyID\n visibility: 'show' | 'hide'\n }>\n hide_linked_collection_name?: boolean\n }\n}\n\nexport function isCollection(obj: unknown): obj is Collection {\n return Boolean((obj as Collection)?.schema)\n}\n","import { ID } from './core'\n\nexport interface Space {\n id: ID\n version: number\n name: string\n permissions: [[unknown]]\n icon: string\n beta_enabled: boolean\n pages: ID[]\n disable_public_access: boolean\n disable_guests: boolean\n disable_move_to_space: boolean\n disable_export: boolean\n created_time: number\n last_edited_time: number\n created_by_table: string\n created_by_id: ID\n last_edited_by_table: string\n last_edited_by_id: ID\n plan_type: string\n invite_link_enabled: boolean\n disable_space_page_edits: boolean\n disable_public_access_requests: boolean\n public_home_page: ID\n disable_team_creation: boolean\n settings: {\n grant_awards: unknown[]\n in_ai_program: boolean\n enable_ai_feature: boolean\n disable_team_guests: boolean\n disable_membership_requests: boolean\n seen_guest_membership_requests: boolean\n disable_guest_membership_requests: boolean\n }\n subscription_tier: string\n}\n\nexport function isSpace(obj: unknown): obj is Space {\n return Boolean((obj as Space)?.pages)\n}\n"],"names":["isLinkFormat","format","isExternalLinkFormat","isDateFormat","isColorFormat","isPageFormat","isUserFormat","isBaseDecoration","deco","isMentionDecoration","isAdditionalDecoration","isCollection","obj","isSpace"],"mappings":"AAgHO,MAAMA,IAAe,CAACC,MAAgDA,EAAO,CAAC,MAAM,KAC9EC,IAAuB,CAACD,MAAwDA,EAAO,CAAC,MAAM,KAC9FE,IAAe,CAACF,MAAgDA,EAAO,CAAC,MAAM,KAC9EG,IAAgB,CAACH,MAAiDA,EAAO,CAAC,MAAM,KAChFI,IAAe,CAACJ,MAAgDA,EAAO,CAAC,MAAM,KAC9EK,IAAe,CAACL,MAAgDA,EAAO,CAAC,MAAM,KAE9EM,IAAmB,CAACC,MAA6CA,EAAK,WAAW,GACjFC,IAAsB,CAACD,MAAgDA,EAAK,CAAC,MAAM,KACnFE,IAAyB,CAACF,MACrC,CAACC,EAAoBD,CAAI,KAAKA,EAAK,WAAW;AC5EzC,SAASG,EAAaC,GAAiC;AAC5D,SAAO,GAASA,KAAA,QAAAA,EAAoB;AACtC;ACVO,SAASC,EAAQD,GAA4B;AAClD,SAAO,GAASA,KAAA,QAAAA,EAAe;AACjC;"}
package/build/maps.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { Block } from './block';
2
- import type { Collection } from './collection';
3
- import type { CollectionView, CollectionViewType } from './collection-view';
4
- import type { Decoration, ID, PropertyType, Role } from './core';
5
- import type { User } from './user';
6
- import type { Space } from './space';
1
+ import { Block } from './block';
2
+ import { Collection } from './collection';
3
+ import { CollectionView, CollectionViewType } from './collection-view';
4
+ import { Decoration, ID, PropertyType, Role } from './core';
5
+ import { User } from './user';
6
+ import { Space } from './space';
7
7
  export interface NotionMap<T> {
8
8
  [key: string]: {
9
9
  role: Role;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texonom/ntypes",
3
- "version": "1.4.7",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript types for core Notion data structures.",
6
6
  "repository": "texonom/notion-node",
@@ -14,7 +14,10 @@
14
14
  "build"
15
15
  ],
16
16
  "engines": {
17
- "node": ">=22.16.0"
17
+ "node": ">=22.22.0"
18
+ },
19
+ "devDependencies": {
20
+ "vite-plugin-dts": "^4.5.4"
18
21
  },
19
22
  "standard-version": {
20
23
  "skip": {
@@ -23,9 +26,10 @@
23
26
  }
24
27
  },
25
28
  "scripts": {
26
- "build": "tsc && tsup",
29
+ "build": "tsc && vite build",
27
30
  "prerelease": "standard-version --skip.changelog --prerelease",
28
31
  "release": "standard-version --release-as",
29
- "pu": "pnpm publish"
32
+ "pu": "pnpm publish",
33
+ "watch": "vite build --watch --mode development"
30
34
  }
31
35
  }
package/readme.md CHANGED
@@ -1,23 +1,50 @@
1
1
  # ntypes
2
2
 
3
- > TypeScript types for core Notion data structures.
3
+ TypeScript types for core Notion data structures.
4
4
 
5
5
  [![NPM](https://img.shields.io/npm/v/@texonom/ntypes.svg)](https://www.npmjs.com/package/@texonom/ntypes) [![Build Status](https://github.com/texonom/notion-node/actions/workflows/test.yml/badge.svg)](https://github.com/texonom/notion-node/actions/workflows/test.yml) [![Prettier Code Formatting](https://img.shields.io/badge/code_style-prettier-brightgreen.svg)](https://prettier.io)
6
6
 
7
+ ## Features
8
+
9
+ - Strict typings for blocks, users and search results
10
+ - Shared between all packages in this monorepo
11
+
7
12
  ## Install
8
13
 
9
14
  ```bash
10
15
  pnpm i @texonom/ntypes
11
16
  ```
12
17
 
13
- This package only exports types and is compatible with both Node.js and browsers.
14
-
15
18
  ## Usage
16
19
 
17
20
  ```ts
18
- import type {} from '@texonom/ntypes'
21
+ import type { ExtendedRecordMap } from '@texonom/ntypes'
22
+
23
+ function handle(record: ExtendedRecordMap) {
24
+ console.log(record.block)
25
+ }
26
+ ```
27
+
28
+ ```ts
29
+ import type { Block } from '@texonom/ntypes/block'
30
+
31
+ const block: Block = {
32
+ id: 'id',
33
+ type: 'text'
34
+ // ...
35
+ }
19
36
  ```
20
37
 
21
- ## Docs
38
+ See the [full docs](https://github.com/texonom/notion-node) for details.
39
+
40
+ ## API
41
+
42
+ This package re-exports grouped type definitions:
22
43
 
23
- See the [full docs](https://github.com/texonom/notion-node).
44
+ - `core` shared base types
45
+ - `block` – block data
46
+ - `user` – user information
47
+ - `collection` and `collection-view`
48
+ - `formula` and `maps`
49
+ - `api` request/response shapes
50
+ - `space` workspace info
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Seonglae Cho
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- {"fileNames":["../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/core.ts","../src/block.ts","../src/formula.ts","../src/collection.ts","../src/collection-view.ts","../src/user.ts","../src/space.ts","../src/maps.ts","../src/api.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.15.30/node_modules/@types/node/index.d.ts"],"fileIdsList":[[95,135,138],[95,137,138],[138],[95,138,143,173],[95,138,139,144,150,151,158,170,181],[95,138,139,140,150,158],[95,138],[90,91,92,95,138],[95,138,141,182],[95,138,142,143,151,159],[95,138,143,170,178],[95,138,144,146,150,158],[95,137,138,145],[95,138,146,147],[95,138,148,150],[95,137,138,150],[95,138,150,151,152,170,181],[95,138,150,151,152,165,170,173],[95,133,138],[95,133,138,146,150,153,158,170,181],[95,138,150,151,153,154,158,170,178,181],[95,138,153,155,170,178,181],[93,94,95,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[95,138,150,156],[95,138,157,181],[95,138,146,150,158,170],[95,138,159],[95,138,160],[95,137,138,161],[95,135,136,137,138,139,140,141,142,143,144,145,146,147,148,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[95,138,163],[95,138,164],[95,138,150,165,166],[95,138,165,167,182,184],[95,138,150,170,171,173],[95,138,172,173],[95,138,170,171],[95,138,173],[95,138,174],[95,135,138,170],[95,138,150,176,177],[95,138,176,177],[95,138,143,158,170,178],[95,138,179],[95,138,158,180],[95,138,153,164,181],[95,138,143,182],[95,138,170,183],[95,138,157,184],[95,138,185],[95,138,150,152,161,170,173,181,184,186],[95,138,170,187],[95,105,109,138,181],[95,105,138,170,181],[95,100,138],[95,102,105,138,178,181],[95,138,158,178],[95,138,188],[95,100,138,188],[95,102,105,138,158,181],[95,97,98,101,104,138,150,170,181],[95,105,112,138],[95,97,103,138],[95,105,126,127,138],[95,101,105,138,173,181,188],[95,126,138,188],[95,99,100,138,188],[95,105,138],[95,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132,138],[95,105,120,138],[95,105,112,113,138],[95,103,105,113,114,138],[95,104,138],[95,97,100,105,138],[95,105,109,113,114,138],[95,109,138],[95,103,105,108,138,181],[95,97,102,105,112,138],[95,138,170],[95,100,105,126,138,186,188],[87,95,138],[80,95,138],[80,82,95,138],[80,81,82,83,84,85,86,87,88,95,138],[80,81,83,84,85,86,95,138]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"955a97a335750788e71dba96b227114a3b90283784e8851f43355bfca20ea142","signature":"d5a33c52d381fc00f5842490ffcf406e0f5b9dd801b016fadcb232bb4d347fdf"},{"version":"7d8a1774192f5554bf670991ba08f0e154696d84492c524f70cde24408e58459","signature":"8ae7855cf16c0a899ad0bdbf0675480766197e05467a249b5ddf7dcf9ace7a56"},{"version":"e9ae688ceb4e679c560422996f34a2e3c4e83159292956d7ddbec8983ef91c5e","signature":"57aa4c028ae9d74d0908fd24563ccf6ce4ad3ec4b836fcbd69974adce60eb895"},{"version":"2de16befa8ce21a350629002923bf5e4722bf4a738e6954cea5488c39d6584b2","signature":"b5a33c11d9bca76dad214b1f8cf8571ef5a0fc60eecbbfa8f6cf0b73c1183d20"},{"version":"26ee1819c9465392ff18f67e0e04910fe5e136281bdc7688b0257fb9dc7d4100","signature":"b4e975657af1b37e99cac0753713e6425a16a7725790542838e9d48b0dd836b4"},{"version":"0267273603d7ed14a4ae05b74901f2bc1ebd51797b325d4a6c4ac24e9e4fc4e4","signature":"d979abc48001c25784feecb34dba191ed2c33f8944f7bd7b077b464285586c12"},{"version":"22191ff2d9038f5e8a872e71b9698b3c87fd0b4a6e99f17355318401f89454e9","signature":"85334ca199cff2ab0bcec4f106a3e8350f71cf04b485f87e794dc7872ccd6db8"},{"version":"47f390332c0c196aa2d72dc0296631653b0b249b15052871fd855acf5a659dfe","signature":"b5b0854bf636f74f63c1b714ee52e39b76f1fb7ccd29ac23894f004fca185f96"},{"version":"984c71bf8ef90f93f788f33de577ee04553fc5b598ea831bb19f61b8f22ff779","signature":"a4a1e01d9a4fbc999e865626f95b86bf47c675fd08e7defdc84ebeddb45c8afe"},{"version":"0a592e776fcbf59f498756aa73277a015bb75276957b372a9aa1bbfaba7aed59","signature":"da90b2dfbb04735ed503d67065160c0f48cfe3ea26090093281b334f61b2cc88"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"a4ef5ccfd69b5bc2a2c29896aa07daaff7c5924a12e70cb3d9819145c06897db","affectsGlobalScope":true,"impliedFormat":1},{"version":"a38efe83ff77c34e0f418a806a01ca3910c02ee7d64212a59d59bca6c2c38fa1","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"3fe4022ba1e738034e38ad9afacbf0f1f16b458ed516326f5bf9e4a31e9be1dc","impliedFormat":1},{"version":"a957197054b074bcdf5555d26286e8461680c7c878040d0f4e2d5509a7524944","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"e9b97d69510658d2f4199b7d384326b7c4053b9e6645f5c19e1c2a54ede427fc","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"f478f6f5902dc144c0d6d7bdc919c5177cac4d17a8ca8653c2daf6d7dc94317f","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a0a1dda070290b92da5a50113b73ecc4dd6bcbffad66e3c86503d483eafbadcf","impliedFormat":1},{"version":"59dcad36c4549175a25998f6a8b33c1df8e18df9c12ebad1dfb25af13fd4b1ce","impliedFormat":1},{"version":"206a70e72af3e24688397b81304358526ce70d020e4c2606c4acfd1fa1e81fb2","impliedFormat":1},{"version":"017caf5d2a8ef581cf94f678af6ce7415e06956317946315560f1487b9a56167","impliedFormat":1},{"version":"528b62e4272e3ddfb50e8eed9e359dedea0a4d171c3eb8f337f4892aac37b24b","impliedFormat":1},{"version":"d71535813e39c23baa113bc4a29a0e187b87d1105ccc8c5a6ebaca38d9a9bff2","impliedFormat":1},{"version":"4a1c5b43d4d408cb0df0a6cc82ca7be314553d37e432fc1fd801bae1a9ab2cb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"f72bc8fe16da67e4e3268599295797b202b95e54bd215a03f97e925dd1502a36","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"915e18c559321c0afaa8d34674d3eb77e1ded12c3e85bf2a9891ec48b07a1ca5","affectsGlobalScope":true,"impliedFormat":1},{"version":"636302a00dfd1f9fe6e8e91e4e9350c6518dcc8d51a474e4fc3a9ba07135100b","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"e1ce1d622f1e561f6cdf246372ead3bbc07ce0342024d0e9c7caf3136f712698","impliedFormat":1},{"version":"199c8269497136f3a0f4da1d1d90ab033f899f070e0dd801946f2a241c8abba2","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"27e4532aaaa1665d0dd19023321e4dc12a35a741d6b8e1ca3517fcc2544e0efe","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"8c2ad42d5d1a2e8e6112625767f8794d9537f1247907378543106f7ba6c7df90","affectsGlobalScope":true,"impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"98ffdf93dfdd206516971d28e3e473f417a5cfd41172e46b4ce45008f640588e","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"a7692a54334fd08960cd0c610ff509c2caa93998e0dcefa54021489bcc67c22d","affectsGlobalScope":true,"impliedFormat":1},{"version":"74736930d108365d7bbe740c7154706ccfb1b2a3855a897963ab3e5c07ecbf19","impliedFormat":1},{"version":"3a051941721a7f905544732b0eb819c8d88333a96576b13af08b82c4f17581e4","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"c6ab0dd29bf74b71a54ff2bbce509eb8ae3c4294d57cc54940f443c01cd1baae","affectsGlobalScope":true,"impliedFormat":1},{"version":"3797dd6f4ea3dc15f356f8cdd3128bfa18122213b38a80d6c1f05d8e13cbdad8","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1}],"root":[[80,89]],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","sourceMap":true,"strict":false,"target":2,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[135,1],[136,1],[137,2],[95,3],[138,4],[139,5],[140,6],[90,7],[93,8],[91,7],[92,7],[141,9],[142,10],[143,11],[144,12],[145,13],[146,14],[147,14],[149,7],[148,15],[150,16],[151,17],[152,18],[134,19],[94,7],[153,20],[154,21],[155,22],[188,23],[156,24],[157,25],[158,26],[159,27],[160,28],[161,29],[162,30],[163,31],[164,32],[165,33],[166,33],[167,34],[168,7],[169,7],[170,35],[172,36],[171,37],[173,38],[174,39],[175,40],[176,41],[177,42],[178,43],[179,44],[180,45],[181,46],[182,47],[183,48],[184,49],[185,50],[186,51],[187,52],[96,7],[78,7],[79,7],[13,7],[15,7],[14,7],[2,7],[16,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[23,7],[3,7],[24,7],[25,7],[4,7],[26,7],[30,7],[27,7],[28,7],[29,7],[31,7],[32,7],[33,7],[5,7],[34,7],[35,7],[36,7],[37,7],[6,7],[41,7],[38,7],[39,7],[40,7],[42,7],[7,7],[43,7],[48,7],[49,7],[44,7],[45,7],[46,7],[47,7],[8,7],[53,7],[50,7],[51,7],[52,7],[54,7],[9,7],[55,7],[56,7],[57,7],[59,7],[58,7],[60,7],[61,7],[10,7],[62,7],[63,7],[64,7],[11,7],[65,7],[66,7],[67,7],[68,7],[69,7],[1,7],[70,7],[71,7],[12,7],[75,7],[73,7],[77,7],[72,7],[76,7],[74,7],[112,53],[122,54],[111,53],[132,55],[103,56],[102,57],[131,58],[125,59],[130,60],[105,61],[119,62],[104,63],[128,64],[100,65],[99,58],[129,66],[101,67],[106,68],[107,7],[110,68],[97,7],[133,69],[123,70],[114,71],[115,72],[117,73],[113,74],[116,75],[126,58],[108,76],[109,77],[118,78],[98,79],[121,70],[120,68],[124,7],[127,80],[88,81],[81,82],[84,82],[83,83],[80,7],[82,82],[89,84],[87,85],[86,82],[85,82]],"version":"5.8.3"}
package/build/api.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=api.js.map
package/build/api.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":""}
package/build/block.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=block.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block.js","sourceRoot":"","sources":["../src/block.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=collection-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection-view.js","sourceRoot":"","sources":["../src/collection-view.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export function isCollection(obj) {
2
- return Boolean(obj === null || obj === void 0 ? void 0 : obj.schema);
3
- }
4
- //# sourceMappingURL=collection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../src/collection.ts"],"names":[],"mappings":"AA8CA,MAAM,UAAU,YAAY,CAAC,GAAY;IACvC,OAAO,OAAO,CAAE,GAAkB,aAAlB,GAAG,uBAAH,GAAG,CAAiB,MAAM,CAAC,CAAA;AAC7C,CAAC"}
package/build/core.js DELETED
@@ -1,12 +0,0 @@
1
- // Base Types
2
- // ----------------------------------------------------------------------------
3
- export const isLinkFormat = (format) => format[0] === 'a';
4
- export const isExternalLinkFormat = (format) => format[0] === '‣';
5
- export const isDateFormat = (format) => format[0] === 'd';
6
- export const isColorFormat = (format) => format[0] === 'h';
7
- export const isPageFormat = (format) => format[0] === 'p';
8
- export const isUserFormat = (format) => format[0] === 'u';
9
- export const isBaseDecoration = (deco) => deco.length === 1;
10
- export const isMentionDecoration = (deco) => deco[0] === '‣';
11
- export const isAdditionalDecoration = (deco) => !isMentionDecoration(deco) && deco.length === 2;
12
- //# sourceMappingURL=core.js.map
package/build/core.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+EAA+E;AA+G/E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAqB,EAAwB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AAC9F,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAqB,EAAgC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AAC9G,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAqB,EAAwB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AAC9F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAqB,EAAyB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AAChG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAqB,EAAwB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AAC9F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAqB,EAAwB,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AAE9F,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAgB,EAA0B,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAA;AAC/F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAgB,EAA6B,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AACnG,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,IAAgB,EAAgC,EAAE,CACvF,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,CAAA"}
package/build/formula.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=formula.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formula.js","sourceRoot":"","sources":["../src/formula.ts"],"names":[],"mappings":""}
package/build/maps.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=maps.js.map
package/build/maps.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"maps.js","sourceRoot":"","sources":["../src/maps.ts"],"names":[],"mappings":""}
package/build/space.js DELETED
@@ -1,4 +0,0 @@
1
- export function isSpace(obj) {
2
- return Boolean(obj === null || obj === void 0 ? void 0 : obj.pages);
3
- }
4
- //# sourceMappingURL=space.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"space.js","sourceRoot":"","sources":["../src/space.ts"],"names":[],"mappings":"AAsCA,MAAM,UAAU,OAAO,CAAC,GAAY;IAClC,OAAO,OAAO,CAAE,GAAa,aAAb,GAAG,uBAAH,GAAG,CAAY,KAAK,CAAC,CAAA;AACvC,CAAC"}
package/build/user.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=user.js.map
package/build/user.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":""}