@the_library/public 1.0.0 → 2.0.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.
Files changed (113) hide show
  1. package/README.md +201 -28
  2. package/assets/branding/pond-enterprise-logo.svg +1 -1
  3. package/dist/Book-CYyj_y_4.d.ts +621 -0
  4. package/dist/bookSearchService-YQskauJS.d.ts +300 -0
  5. package/dist/branding/index.js +1 -66
  6. package/dist/branding/index.js.map +1 -1
  7. package/dist/chunk-3XUKOVEF.js +2 -0
  8. package/dist/chunk-3XUKOVEF.js.map +1 -0
  9. package/dist/chunk-46FQHZNM.js +2 -0
  10. package/dist/chunk-46FQHZNM.js.map +1 -0
  11. package/dist/chunk-7G3BMGV2.js +2 -0
  12. package/dist/chunk-7G3BMGV2.js.map +1 -0
  13. package/dist/chunk-D4DXGA2W.js +2 -0
  14. package/dist/chunk-D4DXGA2W.js.map +1 -0
  15. package/dist/chunk-EMA2QJTW.js +2 -0
  16. package/dist/chunk-EMA2QJTW.js.map +1 -0
  17. package/dist/chunk-FN52YV7L.js +2 -0
  18. package/dist/chunk-FN52YV7L.js.map +1 -0
  19. package/dist/chunk-GWQNULP4.js +2 -0
  20. package/dist/chunk-GWQNULP4.js.map +1 -0
  21. package/dist/chunk-OELHBR4F.js +2 -0
  22. package/dist/chunk-OELHBR4F.js.map +1 -0
  23. package/dist/chunk-PV3X54EU.js +2 -0
  24. package/dist/chunk-PV3X54EU.js.map +1 -0
  25. package/dist/chunk-SD3INWZF.js +2 -0
  26. package/dist/chunk-SD3INWZF.js.map +1 -0
  27. package/dist/downloader/dl2-sw.js +1 -198
  28. package/dist/downloader/dl2-sw.js.map +1 -1
  29. package/dist/downloader/file-worker-v2.js +1 -257
  30. package/dist/downloader/file-worker-v2.js.map +1 -1
  31. package/dist/downloader/index.d.ts +30 -2
  32. package/dist/downloader/index.js +1 -537
  33. package/dist/downloader/index.js.map +1 -1
  34. package/dist/downloader/mu-worker-v2.js +1 -196
  35. package/dist/downloader/mu-worker-v2.js.map +1 -1
  36. package/dist/downloader/react.d.ts +1 -1
  37. package/dist/downloader/react.js +1 -31
  38. package/dist/downloader/react.js.map +1 -1
  39. package/dist/downloader/solid.d.ts +1 -1
  40. package/dist/downloader/solid.js +1 -18
  41. package/dist/downloader/solid.js.map +1 -1
  42. package/dist/downloader/sw.js +1 -118
  43. package/dist/downloader/sw.js.map +1 -1
  44. package/dist/downloader/vue.d.ts +1 -1
  45. package/dist/downloader/vue.js +1 -18
  46. package/dist/downloader/vue.js.map +1 -1
  47. package/dist/enriched-index-T0sDG7JR.d.ts +209 -0
  48. package/dist/global/public.global.js +68 -0
  49. package/dist/global/public.manifest.json +484 -0
  50. package/dist/level-state-DXqglpAX.d.ts +27 -0
  51. package/dist/models/astro.d.ts +4 -3
  52. package/dist/models/astro.js +1 -43
  53. package/dist/models/astro.js.map +1 -1
  54. package/dist/models/index.d.ts +449 -23
  55. package/dist/models/index.js +1 -339
  56. package/dist/models/index.js.map +1 -1
  57. package/dist/models/models.d.ts +195 -441
  58. package/dist/models/models.js +1 -45
  59. package/dist/models/patch-worker.js +1 -542
  60. package/dist/models/patch-worker.js.map +1 -1
  61. package/dist/models/react.d.ts +6 -5
  62. package/dist/models/react.js +1 -72
  63. package/dist/models/react.js.map +1 -1
  64. package/dist/models/solid.d.ts +16 -6
  65. package/dist/models/solid.js +1 -94
  66. package/dist/models/solid.js.map +1 -1
  67. package/dist/models/vue.d.ts +89 -7
  68. package/dist/models/vue.js +1 -97
  69. package/dist/models/vue.js.map +1 -1
  70. package/dist/orm-MJTHCG9E.d.ts +1003 -0
  71. package/dist/{session-vqOnyxga.d.ts → session-JudUKAV7.d.ts} +76 -74
  72. package/dist/{state-BTsp-E4v.d.ts → state-CkYavOSt.d.ts} +16 -0
  73. package/dist/{types-Dn0EFMO_.d.ts → types-B-IX3HBn.d.ts} +94 -21
  74. package/dist/{types-Xb8Ta9tZ.d.ts → types-Blyx2A7F.d.ts} +10 -36
  75. package/dist/web3/auth.d.ts +89 -0
  76. package/dist/web3/auth.js +13 -0
  77. package/dist/web3/auth.js.map +1 -0
  78. package/dist/web3/index.d.ts +1913 -126
  79. package/dist/web3/index.js +1 -1019
  80. package/dist/web3/index.js.map +1 -1
  81. package/dist/web3/network.d.ts +6 -0
  82. package/dist/web3/network.js +2 -0
  83. package/dist/web3/network.js.map +1 -0
  84. package/dist/web3/registry.d.ts +34 -9
  85. package/dist/web3/registry.js +1 -22
  86. package/dist/web3/vue.d.ts +31 -14
  87. package/dist/web3/vue.js +1 -390
  88. package/dist/web3/vue.js.map +1 -1
  89. package/package.json +36 -15
  90. package/dist/chunk-2HFOWE5R.js +0 -296
  91. package/dist/chunk-2HFOWE5R.js.map +0 -1
  92. package/dist/chunk-3L6LH2XK.js +0 -465
  93. package/dist/chunk-3L6LH2XK.js.map +0 -1
  94. package/dist/chunk-4CWVFPBN.js +0 -28
  95. package/dist/chunk-4CWVFPBN.js.map +0 -1
  96. package/dist/chunk-AGHPATVL.js +0 -65
  97. package/dist/chunk-AGHPATVL.js.map +0 -1
  98. package/dist/chunk-JDUYLUDJ.js +0 -4835
  99. package/dist/chunk-JDUYLUDJ.js.map +0 -1
  100. package/dist/chunk-OEZK7IX7.js +0 -77
  101. package/dist/chunk-OEZK7IX7.js.map +0 -1
  102. package/dist/chunk-PUYDAUCI.js +0 -2873
  103. package/dist/chunk-PUYDAUCI.js.map +0 -1
  104. package/dist/chunk-WHWMTS7D.js +0 -99
  105. package/dist/chunk-WHWMTS7D.js.map +0 -1
  106. package/dist/chunk-Y7RS6RTM.js +0 -342
  107. package/dist/chunk-Y7RS6RTM.js.map +0 -1
  108. package/dist/chunk-ZEZGI2TP.js +0 -197
  109. package/dist/chunk-ZEZGI2TP.js.map +0 -1
  110. package/dist/core-dao-core-logo-VDT2I5IW.svg +0 -33
  111. package/dist/level-state-J3pj64Tr.d.ts +0 -15
  112. package/dist/models/models_v2.global.js +0 -1
  113. package/dist/orm-BvkX0aBT.d.ts +0 -507
@@ -0,0 +1,621 @@
1
+ import { O as Orm, C as CommonOrmJson, b as SerializedCommonOrmJson, u as uid, L as Lang, D as DeepCollectOptions, R as RecordIdentityCluster, I as InstanceData } from './orm-MJTHCG9E.js';
2
+ import { LCCAdapter } from '@the_library/standard-adapters/lcc';
3
+ import { DDCAdapter } from '@the_library/standard-adapters/ddc';
4
+ import { UDCAdapter } from '@the_library/standard-adapters/udc';
5
+ import { CLCAdapter } from '@the_library/standard-adapters/clc';
6
+ import { BBKAdapter } from '@the_library/standard-adapters/bbk';
7
+ import { TLCAdapter } from '@the_library/standard-adapters/tlc';
8
+ import { CCAdapter } from '@the_library/standard-adapters/cc';
9
+ import { ISBNAdapter } from '@the_library/standard-adapters/isbn';
10
+ import { ISNIAdapter } from '@the_library/standard-adapters/isni';
11
+ import { ORCIDAdapter } from '@the_library/standard-adapters/orcid';
12
+
13
+ declare enum BookMethod {
14
+ Unknown = 0,
15
+ Scan = 1,
16
+ NativeDigital = 2,
17
+ OCR = 3,
18
+ AiTranslation = 4
19
+ }
20
+ declare enum CopyrightStatus {
21
+ Unknown = 0,
22
+ PublicDomain = 1,
23
+ CreativeCommons = 2,
24
+ AllRightsReserved = 3
25
+ }
26
+ declare enum QualityScore {
27
+ None = 0,
28
+ Poor = 1,
29
+ Fair = 2,
30
+ Good = 3,
31
+ VeryGood = 4,
32
+ Excellent = 5
33
+ }
34
+
35
+ /** propName -> propId (provenance column mapping) */
36
+ declare const PERSON_PROP_IDS: Record<string, number>;
37
+ interface PersonSlimCols {
38
+ ids: BigUint64Array;
39
+ titles: (string | null)[];
40
+ originalLangs: (string | null)[];
41
+ previewTxIds: (string | null)[];
42
+ ageGradeBands: Uint8Array;
43
+ safes: Uint8Array;
44
+ deleteds: Uint8Array;
45
+ }
46
+ interface PersonExtendedCols {
47
+ ids: BigUint64Array;
48
+ descriptions: (string | null)[];
49
+ birthDates: (string | null)[];
50
+ deathDates: (string | null)[];
51
+ nationalitys: (string | null)[];
52
+ wikiUrls: (string | null)[];
53
+ isniIds: (string | null)[];
54
+ orcidIds: (string | null)[];
55
+ }
56
+ interface PersonProvCols {
57
+ ids: BigUint64Array;
58
+ fields: Record<string, Uint8Array>;
59
+ }
60
+ interface PersonInput {
61
+ id: bigint;
62
+ title: string | null;
63
+ description: string | null;
64
+ originalLang: string | null;
65
+ previewTxId: string | null;
66
+ ageGradeBand: number;
67
+ safe: boolean;
68
+ deleted: boolean;
69
+ birthDate: string | null;
70
+ deathDate: string | null;
71
+ nationality: string | null;
72
+ wikiUrl: string | null;
73
+ isniId: string | null;
74
+ orcidId: string | null;
75
+ }
76
+ declare function serializePersonSlim(records: PersonInput[]): ArrayBuffer;
77
+ declare function deserializePersonSlim(buf: ArrayBuffer): Partial<PersonInput>[];
78
+ declare function serializePersonExtended(records: PersonInput[]): ArrayBuffer;
79
+ declare function deserializePersonExtended(buf: ArrayBuffer): Partial<PersonInput>[];
80
+ declare function serializePersonProv(records: PersonInput[]): ArrayBuffer;
81
+ declare function deserializePersonProv(buf: ArrayBuffer): Partial<PersonInput>[];
82
+ declare class Person extends Orm {
83
+ static readonly type: number;
84
+ static readonly UID_STRATEGY: "standards-first";
85
+ static readonly STANDARD_PRIORITY: readonly ["isni", "orcid"];
86
+ static readonly isPrivate: boolean;
87
+ static readonly serializeSlim: typeof serializePersonSlim;
88
+ static readonly serializeExtended: typeof serializePersonExtended;
89
+ static readonly serializeProv: typeof serializePersonProv;
90
+ static readonly deserializeSlim: typeof deserializePersonSlim;
91
+ static readonly deserializeExtended: typeof deserializePersonExtended;
92
+ static readonly deserializeProv: typeof deserializePersonProv;
93
+ constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
94
+ /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
95
+ static Load(id: uid, creatorUsername?: string): Person;
96
+ static Has(id: uid, creatorUsername?: string): boolean;
97
+ /** On-demand hydration from the worker after LRU eviction (SPEC §2.5). */
98
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<Person>;
99
+ get birthDate(): string;
100
+ set birthDate(value: string);
101
+ getBirthDate(lang: Lang): string;
102
+ setBirthDate(value: string, lang: Lang): void;
103
+ get deathDate(): string;
104
+ set deathDate(value: string);
105
+ getDeathDate(lang: Lang): string;
106
+ setDeathDate(value: string, lang: Lang): void;
107
+ get nationality(): string;
108
+ set nationality(value: string);
109
+ getNationality(lang: Lang): string;
110
+ setNationality(value: string, lang: Lang): void;
111
+ get wikiUrl(): string;
112
+ set wikiUrl(value: string);
113
+ getWikiUrl(lang: Lang): string;
114
+ setWikiUrl(value: string, lang: Lang): void;
115
+ get isniId(): string | null;
116
+ set isniId(value: string | null);
117
+ getIsniId(lang: Lang): string | null;
118
+ setIsniId(value: string | null, lang: Lang): void;
119
+ get orcidId(): string | null;
120
+ set orcidId(value: string | null);
121
+ getOrcidId(lang: Lang): string | null;
122
+ setOrcidId(value: string | null, lang: Lang): void;
123
+ get inAuthorOfIds(): Array<uid>;
124
+ /** Re-hydrates any evicted targets before resolving — always await. */
125
+ get inAuthorOf(): Promise<Array<Book>>;
126
+ isInAuthorOf(id: uid): boolean;
127
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
128
+ authorOfDeep(opts?: DeepCollectOptions): Promise<Array<Book>>;
129
+ addIntoAuthorOf(id: uid): void;
130
+ removeFromAuthorOf(id: uid): void;
131
+ toPID(): string;
132
+ toNativePID(): string;
133
+ static fromPID(pid: string): {
134
+ wireId: bigint;
135
+ } | null;
136
+ get isniNormalized(): string | null;
137
+ validateIsni(): ReturnType<typeof ISNIAdapter.validate>;
138
+ get orcidNormalized(): string | null;
139
+ validateOrcid(): ReturnType<typeof ORCIDAdapter.validate>;
140
+ sfcuid(): string;
141
+ get identityCluster(): RecordIdentityCluster;
142
+ }
143
+ declare const NewPersonWithId: (id: uid, creatorUsername?: string) => Person;
144
+
145
+ /** propName -> propId (provenance column mapping) */
146
+ declare const TAG_PROP_IDS: Record<string, number>;
147
+ interface TagSlimCols {
148
+ ids: BigUint64Array;
149
+ titles: (string | null)[];
150
+ originalLangs: (string | null)[];
151
+ previewTxIds: (string | null)[];
152
+ ageGradeBands: Uint8Array;
153
+ safes: Uint8Array;
154
+ deleteds: Uint8Array;
155
+ }
156
+ interface TagExtendedCols {
157
+ ids: BigUint64Array;
158
+ descriptions: (string | null)[];
159
+ classificationSystems: (string | null)[];
160
+ isRootContainer: Uint8Array;
161
+ lccNotations: (string | null)[];
162
+ ddcNotations: (string | null)[];
163
+ udcNotations: (string | null)[];
164
+ clcNotations: (string | null)[];
165
+ bbkNotations: (string | null)[];
166
+ tlcNotations: (string | null)[];
167
+ ccNotations: (string | null)[];
168
+ tags?: bigint[][];
169
+ books?: bigint[][];
170
+ }
171
+ interface TagProvCols {
172
+ ids: BigUint64Array;
173
+ fields: Record<string, Uint8Array>;
174
+ }
175
+ interface TagInput {
176
+ id: bigint;
177
+ title: string | null;
178
+ description: string | null;
179
+ originalLang: string | null;
180
+ previewTxId: string | null;
181
+ ageGradeBand: number;
182
+ safe: boolean;
183
+ deleted: boolean;
184
+ classificationSystem: string | null;
185
+ isRootContainer: boolean;
186
+ lccNotation: string | null;
187
+ ddcNotation: string | null;
188
+ udcNotation: string | null;
189
+ clcNotation: string | null;
190
+ bbkNotation: string | null;
191
+ tlcNotation: string | null;
192
+ ccNotation: string | null;
193
+ tags: bigint[];
194
+ books: bigint[];
195
+ }
196
+ declare function serializeTagSlim(records: TagInput[]): ArrayBuffer;
197
+ declare function deserializeTagSlim(buf: ArrayBuffer): Partial<TagInput>[];
198
+ declare function serializeTagExtended(records: TagInput[]): ArrayBuffer;
199
+ declare function deserializeTagExtended(buf: ArrayBuffer): Partial<TagInput>[];
200
+ declare function serializeTagProv(records: TagInput[]): ArrayBuffer;
201
+ declare function deserializeTagProv(buf: ArrayBuffer): Partial<TagInput>[];
202
+ declare class Tag extends Orm {
203
+ static readonly type: number;
204
+ static readonly UID_STRATEGY: "standards-first";
205
+ static readonly STANDARD_PRIORITY: readonly ["lcc", "ddc", "udc", "clc", "bbk", "tlc", "cc"];
206
+ static readonly isPrivate: boolean;
207
+ static readonly serializeSlim: typeof serializeTagSlim;
208
+ static readonly serializeExtended: typeof serializeTagExtended;
209
+ static readonly serializeProv: typeof serializeTagProv;
210
+ static readonly deserializeSlim: typeof deserializeTagSlim;
211
+ static readonly deserializeExtended: typeof deserializeTagExtended;
212
+ static readonly deserializeProv: typeof deserializeTagProv;
213
+ constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
214
+ /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
215
+ static Load(id: uid, creatorUsername?: string): Tag;
216
+ static Has(id: uid, creatorUsername?: string): boolean;
217
+ /** On-demand hydration from the worker after LRU eviction (SPEC §2.5). */
218
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<Tag>;
219
+ get classificationSystem(): string;
220
+ set classificationSystem(value: string);
221
+ getClassificationSystem(lang: Lang): string;
222
+ setClassificationSystem(value: string, lang: Lang): void;
223
+ get isRootContainer(): boolean;
224
+ set isRootContainer(value: boolean);
225
+ getIsRootContainer(lang: Lang): boolean;
226
+ setIsRootContainer(value: boolean, lang: Lang): void;
227
+ get lccNotation(): string | null;
228
+ set lccNotation(value: string | null);
229
+ getLccNotation(lang: Lang): string | null;
230
+ setLccNotation(value: string | null, lang: Lang): void;
231
+ get ddcNotation(): string | null;
232
+ set ddcNotation(value: string | null);
233
+ getDdcNotation(lang: Lang): string | null;
234
+ setDdcNotation(value: string | null, lang: Lang): void;
235
+ get udcNotation(): string | null;
236
+ set udcNotation(value: string | null);
237
+ getUdcNotation(lang: Lang): string | null;
238
+ setUdcNotation(value: string | null, lang: Lang): void;
239
+ get clcNotation(): string | null;
240
+ set clcNotation(value: string | null);
241
+ getClcNotation(lang: Lang): string | null;
242
+ setClcNotation(value: string | null, lang: Lang): void;
243
+ get bbkNotation(): string | null;
244
+ set bbkNotation(value: string | null);
245
+ getBbkNotation(lang: Lang): string | null;
246
+ setBbkNotation(value: string | null, lang: Lang): void;
247
+ get tlcNotation(): string | null;
248
+ set tlcNotation(value: string | null);
249
+ getTlcNotation(lang: Lang): string | null;
250
+ setTlcNotation(value: string | null, lang: Lang): void;
251
+ get ccNotation(): string | null;
252
+ set ccNotation(value: string | null);
253
+ getCcNotation(lang: Lang): string | null;
254
+ setCcNotation(value: string | null, lang: Lang): void;
255
+ get inTagsIds(): Array<uid>;
256
+ /** Re-hydrates any evicted targets before resolving — always await. */
257
+ get inTags(): Promise<Array<Tag>>;
258
+ isInTag(id: uid): boolean;
259
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
260
+ inTagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
261
+ addIntoTag(id: uid): void;
262
+ removeFromTag(id: uid): void;
263
+ get tagsIds(): Array<uid>;
264
+ /** Re-hydrates any evicted targets before resolving — always await. */
265
+ get tags(): Promise<Array<Tag>>;
266
+ hasTag(id: uid): boolean;
267
+ addTag(id: uid): void;
268
+ removeTag(id: uid): void;
269
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
270
+ tagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
271
+ get booksIds(): Array<uid>;
272
+ /** Re-hydrates any evicted targets before resolving — always await. */
273
+ get books(): Promise<Array<Book>>;
274
+ hasBook(id: uid): boolean;
275
+ addBook(id: uid): void;
276
+ removeBook(id: uid): void;
277
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
278
+ booksDeep(opts?: DeepCollectOptions): Promise<Array<Book>>;
279
+ toPID(): string;
280
+ toNativePID(): string;
281
+ static fromPID(pid: string): {
282
+ wireId: bigint;
283
+ } | null;
284
+ get lccNormalized(): string | null;
285
+ validateLcc(): ReturnType<typeof LCCAdapter.validate>;
286
+ get ddcNormalized(): string | null;
287
+ validateDdc(): ReturnType<typeof DDCAdapter.validate>;
288
+ get udcNormalized(): string | null;
289
+ validateUdc(): ReturnType<typeof UDCAdapter.validate>;
290
+ get clcNormalized(): string | null;
291
+ validateClc(): ReturnType<typeof CLCAdapter.validate>;
292
+ get bbkNormalized(): string | null;
293
+ validateBbk(): ReturnType<typeof BBKAdapter.validate>;
294
+ get tlcNormalized(): string | null;
295
+ validateTlc(): ReturnType<typeof TLCAdapter.validate>;
296
+ get ccNormalized(): string | null;
297
+ validateCc(): ReturnType<typeof CCAdapter.validate>;
298
+ sfcuid(): string;
299
+ get identityCluster(): RecordIdentityCluster;
300
+ static byClassificationSystem(value: string, options?: {
301
+ lang?: Lang;
302
+ includeDeleted?: boolean;
303
+ }): Promise<Tag[]>;
304
+ static getAvailableClassificationSystems(partition: string, options?: {
305
+ lang?: Lang;
306
+ }): string[];
307
+ static byClassificationSystemStandard(system: string, options?: {
308
+ lang?: Lang;
309
+ includeDeleted?: boolean;
310
+ }): Promise<Tag[]>;
311
+ static byClassificationSystemImported(system: string, options?: {
312
+ lang?: Lang;
313
+ includeDeleted?: boolean;
314
+ }): Promise<Tag[]>;
315
+ static byClassificationSystemCustom(system: string, options?: {
316
+ lang?: Lang;
317
+ includeDeleted?: boolean;
318
+ }): Promise<Tag[]>;
319
+ static byClassificationSystemOrigin(options?: {
320
+ lang?: Lang;
321
+ includeDeleted?: boolean;
322
+ }): Promise<Tag[]>;
323
+ static getAvailableStandardSystems(options?: {
324
+ lang?: Lang;
325
+ }): string[];
326
+ static getAvailableImportedSystems(options?: {
327
+ lang?: Lang;
328
+ }): string[];
329
+ static getAvailableCustomSystems(options?: {
330
+ lang?: Lang;
331
+ }): string[];
332
+ }
333
+ declare const NewTagWithId: (id: uid, creatorUsername?: string) => Tag;
334
+
335
+ /** propName -> propId (provenance column mapping) */
336
+ declare const BOOK_PROP_IDS: Record<string, number>;
337
+ interface BookSlimCols {
338
+ ids: BigUint64Array;
339
+ titles: (string | null)[];
340
+ originalLangs: (string | null)[];
341
+ previewTxIds: (string | null)[];
342
+ ageGradeBands: Uint8Array;
343
+ safes: Uint8Array;
344
+ deleteds: Uint8Array;
345
+ defaultLanguages: (string | null)[];
346
+ defaultDownloadTxIds: (string | null)[];
347
+ defaultMethod: Uint8Array;
348
+ defaultIsAiTranslation: Uint8Array;
349
+ defaultAiEngines: (string | null)[];
350
+ defaultAddedAt: Uint32Array;
351
+ defaultNbPages: Uint16Array;
352
+ defaultSizeBytes: Uint32Array;
353
+ defaultPublishers: (string | null)[];
354
+ defaultPublicationDates: (string | null)[];
355
+ defaultPublishedAts: (string | null)[];
356
+ defaultQualityScore: Uint8Array;
357
+ defaultIsbns: (string | null)[];
358
+ }
359
+ interface BookExtendedCols {
360
+ ids: BigUint64Array;
361
+ descriptions: (string | null)[];
362
+ prerequisites: (string | null)[];
363
+ deweyDecimals: (string | null)[];
364
+ locCallNumbers: (string | null)[];
365
+ copyrightStatus: Uint8Array;
366
+ textQuality: Uint8Array;
367
+ illustrations: Uint8Array;
368
+ educationQuality: Uint8Array;
369
+ practicality: Uint8Array;
370
+ accessibilityLevel: Uint8Array;
371
+ teacherMaterials: Uint8Array;
372
+ pedagogicalScaffolding: Uint8Array;
373
+ clarityOfExplanation: Uint8Array;
374
+ workedExamples: Uint8Array;
375
+ exercisesAndAssessment: Uint8Array;
376
+ selfStudyReadiness: Uint8Array;
377
+ referenceApparatus: Uint8Array;
378
+ safetyGuidance: Uint8Array;
379
+ contentCurrency: Uint8Array;
380
+ ecoRegeneration: Uint8Array;
381
+ communityLiving: Uint8Array;
382
+ promotesPeace: Uint8Array;
383
+ businessDevelopment: Uint8Array;
384
+ authorIds?: bigint[][];
385
+ instances?: InstanceData[][];
386
+ }
387
+ interface BookProvCols {
388
+ ids: BigUint64Array;
389
+ fields: Record<string, Uint8Array>;
390
+ }
391
+ interface BookInput {
392
+ id: bigint;
393
+ title: string | null;
394
+ description: string | null;
395
+ originalLang: string | null;
396
+ previewTxId: string | null;
397
+ ageGradeBand: number;
398
+ safe: boolean;
399
+ deleted: boolean;
400
+ prerequisites: string | null;
401
+ deweyDecimal: string | null;
402
+ locCallNumber: string | null;
403
+ copyrightStatus: CopyrightStatus;
404
+ textQuality: QualityScore;
405
+ illustrations: QualityScore;
406
+ educationQuality: QualityScore;
407
+ practicality: QualityScore;
408
+ accessibilityLevel: QualityScore;
409
+ teacherMaterials: boolean;
410
+ pedagogicalScaffolding: QualityScore;
411
+ clarityOfExplanation: QualityScore;
412
+ workedExamples: QualityScore;
413
+ exercisesAndAssessment: QualityScore;
414
+ selfStudyReadiness: QualityScore;
415
+ referenceApparatus: QualityScore;
416
+ safetyGuidance: QualityScore;
417
+ contentCurrency: QualityScore;
418
+ ecoRegeneration: QualityScore;
419
+ communityLiving: QualityScore;
420
+ promotesPeace: QualityScore;
421
+ businessDevelopment: QualityScore;
422
+ authorIds: bigint[];
423
+ defaultLanguage: string | null;
424
+ defaultDownloadTxId: string | null;
425
+ defaultMethod: number;
426
+ defaultIsAiTranslation: boolean;
427
+ defaultAiEngine: string | null;
428
+ defaultAddedAt: number;
429
+ defaultNbPages: number;
430
+ defaultSizeBytes: number;
431
+ defaultPublisher: string | null;
432
+ defaultPublicationDate: string | null;
433
+ defaultPublishedAt: string | null;
434
+ defaultQualityScore: number;
435
+ defaultIsbn: string | null;
436
+ instances: InstanceData[];
437
+ }
438
+ declare function serializeBookSlim(records: BookInput[]): ArrayBuffer;
439
+ declare function deserializeBookSlim(buf: ArrayBuffer): Partial<BookInput>[];
440
+ declare function serializeBookExtended(records: BookInput[]): ArrayBuffer;
441
+ declare function deserializeBookExtended(buf: ArrayBuffer): Partial<BookInput>[];
442
+ declare function serializeBookProv(records: BookInput[]): ArrayBuffer;
443
+ declare function deserializeBookProv(buf: ArrayBuffer): Partial<BookInput>[];
444
+ declare class Book extends Orm {
445
+ static readonly type: number;
446
+ static readonly UID_STRATEGY: "native-only";
447
+ static readonly STANDARD_PRIORITY: readonly [];
448
+ static readonly isPrivate: boolean;
449
+ static readonly serializeSlim: typeof serializeBookSlim;
450
+ static readonly serializeExtended: typeof serializeBookExtended;
451
+ static readonly serializeProv: typeof serializeBookProv;
452
+ static readonly deserializeSlim: typeof deserializeBookSlim;
453
+ static readonly deserializeExtended: typeof deserializeBookExtended;
454
+ static readonly deserializeProv: typeof deserializeBookProv;
455
+ constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
456
+ /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
457
+ static Load(id: uid, creatorUsername?: string): Book;
458
+ static Has(id: uid, creatorUsername?: string): boolean;
459
+ /** On-demand hydration from the worker after LRU eviction (SPEC §2.5). */
460
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<Book>;
461
+ get prerequisites(): string;
462
+ set prerequisites(value: string);
463
+ getPrerequisites(lang: Lang): string;
464
+ setPrerequisites(value: string, lang: Lang): void;
465
+ get deweyDecimal(): string;
466
+ set deweyDecimal(value: string);
467
+ getDeweyDecimal(lang: Lang): string;
468
+ setDeweyDecimal(value: string, lang: Lang): void;
469
+ get locCallNumber(): string;
470
+ set locCallNumber(value: string);
471
+ getLocCallNumber(lang: Lang): string;
472
+ setLocCallNumber(value: string, lang: Lang): void;
473
+ get copyrightStatus(): CopyrightStatus;
474
+ set copyrightStatus(value: CopyrightStatus);
475
+ getCopyrightStatus(lang: Lang): CopyrightStatus;
476
+ setCopyrightStatus(value: CopyrightStatus, lang: Lang): void;
477
+ get textQuality(): QualityScore;
478
+ set textQuality(value: QualityScore);
479
+ getTextQuality(lang: Lang): QualityScore;
480
+ setTextQuality(value: QualityScore, lang: Lang): void;
481
+ get illustrations(): QualityScore;
482
+ set illustrations(value: QualityScore);
483
+ getIllustrations(lang: Lang): QualityScore;
484
+ setIllustrations(value: QualityScore, lang: Lang): void;
485
+ get educationQuality(): QualityScore;
486
+ set educationQuality(value: QualityScore);
487
+ getEducationQuality(lang: Lang): QualityScore;
488
+ setEducationQuality(value: QualityScore, lang: Lang): void;
489
+ get practicality(): QualityScore;
490
+ set practicality(value: QualityScore);
491
+ getPracticality(lang: Lang): QualityScore;
492
+ setPracticality(value: QualityScore, lang: Lang): void;
493
+ get accessibilityLevel(): QualityScore;
494
+ set accessibilityLevel(value: QualityScore);
495
+ getAccessibilityLevel(lang: Lang): QualityScore;
496
+ setAccessibilityLevel(value: QualityScore, lang: Lang): void;
497
+ get teacherMaterials(): boolean;
498
+ set teacherMaterials(value: boolean);
499
+ getTeacherMaterials(lang: Lang): boolean;
500
+ setTeacherMaterials(value: boolean, lang: Lang): void;
501
+ get pedagogicalScaffolding(): QualityScore;
502
+ set pedagogicalScaffolding(value: QualityScore);
503
+ getPedagogicalScaffolding(lang: Lang): QualityScore;
504
+ setPedagogicalScaffolding(value: QualityScore, lang: Lang): void;
505
+ get clarityOfExplanation(): QualityScore;
506
+ set clarityOfExplanation(value: QualityScore);
507
+ getClarityOfExplanation(lang: Lang): QualityScore;
508
+ setClarityOfExplanation(value: QualityScore, lang: Lang): void;
509
+ get workedExamples(): QualityScore;
510
+ set workedExamples(value: QualityScore);
511
+ getWorkedExamples(lang: Lang): QualityScore;
512
+ setWorkedExamples(value: QualityScore, lang: Lang): void;
513
+ get exercisesAndAssessment(): QualityScore;
514
+ set exercisesAndAssessment(value: QualityScore);
515
+ getExercisesAndAssessment(lang: Lang): QualityScore;
516
+ setExercisesAndAssessment(value: QualityScore, lang: Lang): void;
517
+ get selfStudyReadiness(): QualityScore;
518
+ set selfStudyReadiness(value: QualityScore);
519
+ getSelfStudyReadiness(lang: Lang): QualityScore;
520
+ setSelfStudyReadiness(value: QualityScore, lang: Lang): void;
521
+ get referenceApparatus(): QualityScore;
522
+ set referenceApparatus(value: QualityScore);
523
+ getReferenceApparatus(lang: Lang): QualityScore;
524
+ setReferenceApparatus(value: QualityScore, lang: Lang): void;
525
+ get safetyGuidance(): QualityScore;
526
+ set safetyGuidance(value: QualityScore);
527
+ getSafetyGuidance(lang: Lang): QualityScore;
528
+ setSafetyGuidance(value: QualityScore, lang: Lang): void;
529
+ get contentCurrency(): QualityScore;
530
+ set contentCurrency(value: QualityScore);
531
+ getContentCurrency(lang: Lang): QualityScore;
532
+ setContentCurrency(value: QualityScore, lang: Lang): void;
533
+ get ecoRegeneration(): QualityScore;
534
+ set ecoRegeneration(value: QualityScore);
535
+ getEcoRegeneration(lang: Lang): QualityScore;
536
+ setEcoRegeneration(value: QualityScore, lang: Lang): void;
537
+ get communityLiving(): QualityScore;
538
+ set communityLiving(value: QualityScore);
539
+ getCommunityLiving(lang: Lang): QualityScore;
540
+ setCommunityLiving(value: QualityScore, lang: Lang): void;
541
+ get promotesPeace(): QualityScore;
542
+ set promotesPeace(value: QualityScore);
543
+ getPromotesPeace(lang: Lang): QualityScore;
544
+ setPromotesPeace(value: QualityScore, lang: Lang): void;
545
+ get businessDevelopment(): QualityScore;
546
+ set businessDevelopment(value: QualityScore);
547
+ getBusinessDevelopment(lang: Lang): QualityScore;
548
+ setBusinessDevelopment(value: QualityScore, lang: Lang): void;
549
+ get inTagsIds(): Array<uid>;
550
+ /** Re-hydrates any evicted targets before resolving — always await. */
551
+ get inTags(): Promise<Array<Tag>>;
552
+ isInTag(id: uid): boolean;
553
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
554
+ inTagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
555
+ addIntoTag(id: uid): void;
556
+ removeFromTag(id: uid): void;
557
+ get authorsIds(): Array<uid>;
558
+ /** Re-hydrates any evicted targets before resolving — always await. */
559
+ get authors(): Promise<Array<Person>>;
560
+ hasAuthor(id: uid): boolean;
561
+ addAuthor(id: uid): void;
562
+ removeAuthor(id: uid): void;
563
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
564
+ authorsDeep(opts?: DeepCollectOptions): Promise<Array<Person>>;
565
+ getInstances(lang?: Lang): BookInstance[];
566
+ getInstance(index: number, lang?: Lang): BookInstance | undefined;
567
+ getDefaultInstance(lang?: Lang): BookInstance | undefined;
568
+ toPID(): string;
569
+ toNativePID(): string;
570
+ static fromPID(pid: string): {
571
+ wireId: bigint;
572
+ } | null;
573
+ static LoadInstance(pkValue: string, lang: Lang): Promise<{
574
+ record: Book;
575
+ instanceIndex?: number;
576
+ } | null>;
577
+ }
578
+ declare class BookInstance {
579
+ readonly parent: Book;
580
+ readonly lang: string;
581
+ readonly index: number;
582
+ private data;
583
+ constructor(parent: Book, lang: string, index: number, data: InstanceData);
584
+ get isDefault(): boolean;
585
+ get language(): string;
586
+ set language(val: string);
587
+ get downloadTxId(): string;
588
+ set downloadTxId(val: string);
589
+ get method(): BookMethod;
590
+ set method(val: BookMethod);
591
+ get isAiTranslation(): boolean;
592
+ set isAiTranslation(val: boolean);
593
+ get aiEngine(): string | null;
594
+ set aiEngine(val: string | null);
595
+ get addedAt(): number;
596
+ set addedAt(val: number);
597
+ get nbPages(): number;
598
+ set nbPages(val: number);
599
+ get sizeBytes(): number;
600
+ set sizeBytes(val: number);
601
+ get publisher(): string | null;
602
+ set publisher(val: string | null);
603
+ get publicationDate(): string | null;
604
+ set publicationDate(val: string | null);
605
+ get publishedAt(): string | null;
606
+ set publishedAt(val: string | null);
607
+ get qualityScore(): QualityScore;
608
+ set qualityScore(val: QualityScore);
609
+ get isbn(): string | null;
610
+ set isbn(val: string | null);
611
+ derivedSfcuid(sourceSfcuid: string): string;
612
+ get isbnNormalized(): string | null;
613
+ validateIsbn(): ReturnType<typeof ISBNAdapter.validate>;
614
+ sfcuid(): string;
615
+ get identityCluster(): RecordIdentityCluster;
616
+ get description(): string;
617
+ set description(val: string);
618
+ }
619
+ declare const NewBookWithId: (id: uid, creatorUsername?: string) => Book;
620
+
621
+ export { type TagExtendedCols as A, Book as B, type TagProvCols as C, type TagInput as D, serializeTagSlim as E, deserializeTagSlim as F, serializeTagExtended as G, deserializeTagExtended as H, serializeTagProv as I, deserializeTagProv as J, NewTagWithId as K, NewBookWithId as N, PERSON_PROP_IDS as P, Tag as T, BOOK_PROP_IDS as a, type BookSlimCols as b, type BookExtendedCols as c, type BookProvCols as d, type BookInput as e, deserializeBookSlim as f, serializeBookExtended as g, deserializeBookExtended as h, serializeBookProv as i, deserializeBookProv as j, BookInstance as k, type PersonSlimCols as l, type PersonExtendedCols as m, type PersonProvCols as n, type PersonInput as o, serializePersonSlim as p, deserializePersonSlim as q, serializePersonExtended as r, serializeBookSlim as s, deserializePersonExtended as t, serializePersonProv as u, deserializePersonProv as v, Person as w, NewPersonWithId as x, TAG_PROP_IDS as y, type TagSlimCols as z };