@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
@@ -1,20 +1,21 @@
1
- import { O as Orm, C as CommonOrmJson, b as SerializedCommonOrmJson, u as uid, L as Lang, R as RecordIdentityCluster, I as InstanceData } from '../orm-BvkX0aBT.js';
2
- import { CopyrightStatus, QualityScore, BookMethod } from '@the_library/db_schemas/enums';
3
- import { ISNIAdapter } from '@the_library/standard-adapters/isni';
4
- import { ORCIDAdapter } from '@the_library/standard-adapters/orcid';
5
- import { LCCAdapter } from '@the_library/standard-adapters/lcc';
6
- import { DDCAdapter } from '@the_library/standard-adapters/ddc';
7
- import { UDCAdapter } from '@the_library/standard-adapters/udc';
8
- import { CLCAdapter } from '@the_library/standard-adapters/clc';
9
- import { BBKAdapter } from '@the_library/standard-adapters/bbk';
10
- import { TLCAdapter } from '@the_library/standard-adapters/tlc';
11
- import { CCAdapter } from '@the_library/standard-adapters/cc';
12
- import { ISBNAdapter } from '@the_library/standard-adapters/isbn';
1
+ import { T as Tag, B as Book } from '../Book-CYyj_y_4.js';
2
+ export { a as BOOK_PROP_IDS, c as BookExtendedCols, e as BookInput, k as BookInstance, d as BookProvCols, b as BookSlimCols, N as NewBookWithId, x as NewPersonWithId, K as NewTagWithId, P as PERSON_PROP_IDS, w as Person, m as PersonExtendedCols, o as PersonInput, n as PersonProvCols, l as PersonSlimCols, y as TAG_PROP_IDS, A as TagExtendedCols, D as TagInput, C as TagProvCols, z as TagSlimCols, h as deserializeBookExtended, j as deserializeBookProv, f as deserializeBookSlim, t as deserializePersonExtended, v as deserializePersonProv, q as deserializePersonSlim, H as deserializeTagExtended, J as deserializeTagProv, F as deserializeTagSlim, g as serializeBookExtended, i as serializeBookProv, s as serializeBookSlim, r as serializePersonExtended, u as serializePersonProv, p as serializePersonSlim, G as serializeTagExtended, I as serializeTagProv, E as serializeTagSlim } from '../Book-CYyj_y_4.js';
3
+ import { O as Orm, C as CommonOrmJson, b as SerializedCommonOrmJson, u as uid, L as Lang, D as DeepCollectOptions } from '../orm-MJTHCG9E.js';
4
+ import '@the_library/standard-adapters/lcc';
5
+ import '@the_library/standard-adapters/ddc';
6
+ import '@the_library/standard-adapters/udc';
7
+ import '@the_library/standard-adapters/clc';
8
+ import '@the_library/standard-adapters/bbk';
9
+ import '@the_library/standard-adapters/tlc';
10
+ import '@the_library/standard-adapters/cc';
11
+ import '@the_library/standard-adapters/isbn';
12
+ import '@the_library/standard-adapters/isni';
13
+ import '@the_library/standard-adapters/orcid';
13
14
 
14
15
  /** propName -> propId (provenance column mapping) */
15
- declare const PERSON_PROP_IDS: Record<string, number>;
16
- interface PersonSlimCols {
17
- ids: Uint16Array;
16
+ declare const CLASSIFICATIONSYSTEM_PROP_IDS: Record<string, number>;
17
+ interface ClassificationSystemSlimCols {
18
+ ids: BigUint64Array;
18
19
  titles: (string | null)[];
19
20
  originalLangs: (string | null)[];
20
21
  previewTxIds: (string | null)[];
@@ -22,22 +23,23 @@ interface PersonSlimCols {
22
23
  safes: Uint8Array;
23
24
  deleteds: Uint8Array;
24
25
  }
25
- interface PersonExtendedCols {
26
- ids: Uint16Array;
26
+ interface ClassificationSystemExtendedCols {
27
+ ids: BigUint64Array;
27
28
  descriptions: (string | null)[];
28
- birthDates: (string | null)[];
29
- deathDates: (string | null)[];
30
- nationalitys: (string | null)[];
31
- wikiUrls: (string | null)[];
32
- isniIds: (string | null)[];
33
- orcidIds: (string | null)[];
29
+ names: (string | null)[];
30
+ institution: Uint8Array;
31
+ countrys: (string | null)[];
32
+ languages: (string | null)[];
33
+ rootTagId: Uint32Array;
34
+ tags?: bigint[][];
35
+ books?: bigint[][];
34
36
  }
35
- interface PersonProvCols {
36
- ids: Uint16Array;
37
+ interface ClassificationSystemProvCols {
38
+ ids: BigUint64Array;
37
39
  fields: Record<string, Uint8Array>;
38
40
  }
39
- interface PersonInput {
40
- id: number;
41
+ interface ClassificationSystemInput {
42
+ id: bigint;
41
43
  title: string | null;
42
44
  description: string | null;
43
45
  originalLang: string | null;
@@ -45,260 +47,146 @@ interface PersonInput {
45
47
  ageGradeBand: number;
46
48
  safe: boolean;
47
49
  deleted: boolean;
48
- birthDate: string | null;
49
- deathDate: string | null;
50
- nationality: string | null;
51
- wikiUrl: string | null;
52
- isniId: string | null;
53
- orcidId: string | null;
50
+ name: string | null;
51
+ institution: boolean;
52
+ country: string | null;
53
+ language: string | null;
54
+ rootTagId: number;
55
+ tags: bigint[];
56
+ books: bigint[];
54
57
  }
55
- declare function serializePersonSlim(records: PersonInput[]): ArrayBuffer;
56
- declare function serializePersonExtended(records: PersonInput[]): ArrayBuffer;
57
- declare function serializePersonProv(records: PersonInput[]): ArrayBuffer;
58
- declare class Person extends Orm {
58
+ declare function serializeClassificationSystemSlim(records: ClassificationSystemInput[]): ArrayBuffer;
59
+ declare function deserializeClassificationSystemSlim(buf: ArrayBuffer): Partial<ClassificationSystemInput>[];
60
+ declare function serializeClassificationSystemExtended(records: ClassificationSystemInput[]): ArrayBuffer;
61
+ declare function deserializeClassificationSystemExtended(buf: ArrayBuffer): Partial<ClassificationSystemInput>[];
62
+ declare function serializeClassificationSystemProv(records: ClassificationSystemInput[]): ArrayBuffer;
63
+ declare function deserializeClassificationSystemProv(buf: ArrayBuffer): Partial<ClassificationSystemInput>[];
64
+ declare class ClassificationSystem extends Orm {
59
65
  static readonly type: number;
60
- static readonly UID_STRATEGY: "standards-first";
61
- static readonly STANDARD_PRIORITY: readonly ["isni", "orcid"];
62
- static readonly serializeSlim: typeof serializePersonSlim;
63
- static readonly serializeExtended: typeof serializePersonExtended;
64
- static readonly serializeProv: typeof serializePersonProv;
65
- constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
66
- /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
67
- static Load(id: uid, creatorUsername?: string): Person;
68
- static Has(id: uid, creatorUsername?: string): boolean;
69
- /** On-demand hydration from the worker after LRU eviction (SPEC §2.5). */
70
- static LoadAsync(id: uid, creatorUsername?: string): Promise<Person>;
71
- get birthDate(): string;
72
- set birthDate(value: string);
73
- getBirthDate(lang: Lang): string;
74
- setBirthDate(value: string, lang: Lang): void;
75
- get deathDate(): string;
76
- set deathDate(value: string);
77
- getDeathDate(lang: Lang): string;
78
- setDeathDate(value: string, lang: Lang): void;
79
- get nationality(): string;
80
- set nationality(value: string);
81
- getNationality(lang: Lang): string;
82
- setNationality(value: string, lang: Lang): void;
83
- get wikiUrl(): string;
84
- set wikiUrl(value: string);
85
- getWikiUrl(lang: Lang): string;
86
- setWikiUrl(value: string, lang: Lang): void;
87
- get isniId(): string | null;
88
- set isniId(value: string | null);
89
- getIsniId(lang: Lang): string | null;
90
- setIsniId(value: string | null, lang: Lang): void;
91
- get orcidId(): string | null;
92
- set orcidId(value: string | null);
93
- getOrcidId(lang: Lang): string | null;
94
- setOrcidId(value: string | null, lang: Lang): void;
95
- get inAuthorOfIds(): Array<uid>;
96
- get inAuthorOf(): Array<Book>;
97
- isInAuthorOf(id: uid): boolean;
98
- addIntoAuthorOf(id: uid): void;
99
- removeFromAuthorOf(id: uid): void;
100
- toPID(): string;
101
- toNativePID(): string;
102
- static fromPID(pid: string): {
103
- wireId: number;
104
- } | null;
105
- get isniNormalized(): string | null;
106
- validateIsni(): ReturnType<typeof ISNIAdapter.validate>;
107
- get orcidNormalized(): string | null;
108
- validateOrcid(): ReturnType<typeof ORCIDAdapter.validate>;
109
- sfcuid(): string;
110
- get identityCluster(): RecordIdentityCluster;
111
- }
112
- declare const NewPersonWithId: (id: uid, creatorUsername?: string) => Person;
113
-
114
- /** propName -> propId (provenance column mapping) */
115
- declare const TAG_PROP_IDS: Record<string, number>;
116
- interface TagSlimCols {
117
- ids: Uint16Array;
118
- titles: (string | null)[];
119
- originalLangs: (string | null)[];
120
- previewTxIds: (string | null)[];
121
- ageGradeBands: Uint8Array;
122
- safes: Uint8Array;
123
- deleteds: Uint8Array;
124
- }
125
- interface TagExtendedCols {
126
- ids: Uint16Array;
127
- descriptions: (string | null)[];
128
- lccNotations: (string | null)[];
129
- ddcNotations: (string | null)[];
130
- udcNotations: (string | null)[];
131
- clcNotations: (string | null)[];
132
- bbkNotations: (string | null)[];
133
- tlcNotations: (string | null)[];
134
- ccNotations: (string | null)[];
135
- tags?: number[][];
136
- books?: number[][];
137
- }
138
- interface TagProvCols {
139
- ids: Uint16Array;
140
- fields: Record<string, Uint8Array>;
141
- }
142
- interface TagInput {
143
- id: number;
144
- title: string | null;
145
- description: string | null;
146
- originalLang: string | null;
147
- previewTxId: string | null;
148
- ageGradeBand: number;
149
- safe: boolean;
150
- deleted: boolean;
151
- lccNotation: string | null;
152
- ddcNotation: string | null;
153
- udcNotation: string | null;
154
- clcNotation: string | null;
155
- bbkNotation: string | null;
156
- tlcNotation: string | null;
157
- ccNotation: string | null;
158
- tags: number[];
159
- books: number[];
160
- }
161
- declare function serializeTagSlim(records: TagInput[]): ArrayBuffer;
162
- declare function serializeTagExtended(records: TagInput[]): ArrayBuffer;
163
- declare function serializeTagProv(records: TagInput[]): ArrayBuffer;
164
- declare class Tag extends Orm {
165
- static readonly type: number;
166
- static readonly UID_STRATEGY: "standards-first";
167
- static readonly STANDARD_PRIORITY: readonly ["lcc", "ddc", "udc", "clc", "bbk", "tlc", "cc"];
168
- static readonly serializeSlim: typeof serializeTagSlim;
169
- static readonly serializeExtended: typeof serializeTagExtended;
170
- static readonly serializeProv: typeof serializeTagProv;
66
+ static readonly UID_STRATEGY: "native-only";
67
+ static readonly STANDARD_PRIORITY: readonly [];
68
+ static readonly isPrivate: boolean;
69
+ static readonly serializeSlim: typeof serializeClassificationSystemSlim;
70
+ static readonly serializeExtended: typeof serializeClassificationSystemExtended;
71
+ static readonly serializeProv: typeof serializeClassificationSystemProv;
72
+ static readonly deserializeSlim: typeof deserializeClassificationSystemSlim;
73
+ static readonly deserializeExtended: typeof deserializeClassificationSystemExtended;
74
+ static readonly deserializeProv: typeof deserializeClassificationSystemProv;
171
75
  constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
172
76
  /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
173
- static Load(id: uid, creatorUsername?: string): Tag;
77
+ static Load(id: uid, creatorUsername?: string): ClassificationSystem;
174
78
  static Has(id: uid, creatorUsername?: string): boolean;
175
79
  /** On-demand hydration from the worker after LRU eviction (SPEC §2.5). */
176
- static LoadAsync(id: uid, creatorUsername?: string): Promise<Tag>;
177
- get lccNotation(): string | null;
178
- set lccNotation(value: string | null);
179
- getLccNotation(lang: Lang): string | null;
180
- setLccNotation(value: string | null, lang: Lang): void;
181
- get ddcNotation(): string | null;
182
- set ddcNotation(value: string | null);
183
- getDdcNotation(lang: Lang): string | null;
184
- setDdcNotation(value: string | null, lang: Lang): void;
185
- get udcNotation(): string | null;
186
- set udcNotation(value: string | null);
187
- getUdcNotation(lang: Lang): string | null;
188
- setUdcNotation(value: string | null, lang: Lang): void;
189
- get clcNotation(): string | null;
190
- set clcNotation(value: string | null);
191
- getClcNotation(lang: Lang): string | null;
192
- setClcNotation(value: string | null, lang: Lang): void;
193
- get bbkNotation(): string | null;
194
- set bbkNotation(value: string | null);
195
- getBbkNotation(lang: Lang): string | null;
196
- setBbkNotation(value: string | null, lang: Lang): void;
197
- get tlcNotation(): string | null;
198
- set tlcNotation(value: string | null);
199
- getTlcNotation(lang: Lang): string | null;
200
- setTlcNotation(value: string | null, lang: Lang): void;
201
- get ccNotation(): string | null;
202
- set ccNotation(value: string | null);
203
- getCcNotation(lang: Lang): string | null;
204
- setCcNotation(value: string | null, lang: Lang): void;
205
- get inTagsIds(): Array<uid>;
206
- get inTags(): Array<Tag>;
207
- isInTag(id: uid): boolean;
208
- addIntoTag(id: uid): void;
209
- removeFromTag(id: uid): void;
80
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<ClassificationSystem>;
81
+ get name(): string;
82
+ set name(value: string);
83
+ getName(lang: Lang): string;
84
+ setName(value: string, lang: Lang): void;
85
+ get institution(): boolean;
86
+ set institution(value: boolean);
87
+ getInstitution(lang: Lang): boolean;
88
+ setInstitution(value: boolean, lang: Lang): void;
89
+ get country(): string;
90
+ set country(value: string);
91
+ getCountry(lang: Lang): string;
92
+ setCountry(value: string, lang: Lang): void;
93
+ get language(): string;
94
+ set language(value: string);
95
+ getLanguage(lang: Lang): string;
96
+ setLanguage(value: string, lang: Lang): void;
97
+ get rootTagId(): number;
98
+ set rootTagId(value: number);
99
+ getRootTagId(lang: Lang): number;
100
+ setRootTagId(value: number, lang: Lang): void;
101
+ get inRootTagIds(): Array<uid>;
102
+ /** Re-hydrates any evicted targets before resolving — always await. */
103
+ get inRootTag(): Promise<Array<Tag>>;
104
+ isInRootTag(id: uid): boolean;
105
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
106
+ rootTagDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
107
+ addIntoRootTag(id: uid): void;
108
+ removeFromRootTag(id: uid): void;
210
109
  get tagsIds(): Array<uid>;
211
- get tags(): Array<Tag>;
110
+ /** Re-hydrates any evicted targets before resolving — always await. */
111
+ get tags(): Promise<Array<Tag>>;
212
112
  hasTag(id: uid): boolean;
213
113
  addTag(id: uid): void;
214
114
  removeTag(id: uid): void;
115
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
116
+ tagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
215
117
  get booksIds(): Array<uid>;
216
- get books(): Array<Book>;
118
+ /** Re-hydrates any evicted targets before resolving — always await. */
119
+ get books(): Promise<Array<Book>>;
217
120
  hasBook(id: uid): boolean;
218
121
  addBook(id: uid): void;
219
122
  removeBook(id: uid): void;
123
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
124
+ booksDeep(opts?: DeepCollectOptions): Promise<Array<Book>>;
220
125
  toPID(): string;
221
126
  toNativePID(): string;
222
127
  static fromPID(pid: string): {
223
- wireId: number;
128
+ wireId: bigint;
224
129
  } | null;
225
- get lccNormalized(): string | null;
226
- validateLcc(): ReturnType<typeof LCCAdapter.validate>;
227
- get ddcNormalized(): string | null;
228
- validateDdc(): ReturnType<typeof DDCAdapter.validate>;
229
- get udcNormalized(): string | null;
230
- validateUdc(): ReturnType<typeof UDCAdapter.validate>;
231
- get clcNormalized(): string | null;
232
- validateClc(): ReturnType<typeof CLCAdapter.validate>;
233
- get bbkNormalized(): string | null;
234
- validateBbk(): ReturnType<typeof BBKAdapter.validate>;
235
- get tlcNormalized(): string | null;
236
- validateTlc(): ReturnType<typeof TLCAdapter.validate>;
237
- get ccNormalized(): string | null;
238
- validateCc(): ReturnType<typeof CCAdapter.validate>;
239
- sfcuid(): string;
240
- get identityCluster(): RecordIdentityCluster;
130
+ static byClassificationSystem(value: string, options?: {
131
+ lang?: Lang;
132
+ includeDeleted?: boolean;
133
+ }): Promise<ClassificationSystem[]>;
134
+ static getAvailableClassificationSystems(partition: string, options?: {
135
+ lang?: Lang;
136
+ }): string[];
137
+ static byClassificationSystemStandard(system: string, options?: {
138
+ lang?: Lang;
139
+ includeDeleted?: boolean;
140
+ }): Promise<ClassificationSystem[]>;
141
+ static byClassificationSystemImported(system: string, options?: {
142
+ lang?: Lang;
143
+ includeDeleted?: boolean;
144
+ }): Promise<ClassificationSystem[]>;
145
+ static byClassificationSystemCustom(system: string, options?: {
146
+ lang?: Lang;
147
+ includeDeleted?: boolean;
148
+ }): Promise<ClassificationSystem[]>;
149
+ static byClassificationSystemOrigin(options?: {
150
+ lang?: Lang;
151
+ includeDeleted?: boolean;
152
+ }): Promise<ClassificationSystem[]>;
153
+ static getAvailableStandardSystems(options?: {
154
+ lang?: Lang;
155
+ }): string[];
156
+ static getAvailableImportedSystems(options?: {
157
+ lang?: Lang;
158
+ }): string[];
159
+ static getAvailableCustomSystems(options?: {
160
+ lang?: Lang;
161
+ }): string[];
241
162
  }
242
- declare const NewTagWithId: (id: uid, creatorUsername?: string) => Tag;
163
+ declare const NewClassificationSystemWithId: (id: uid, creatorUsername?: string) => ClassificationSystem;
243
164
 
244
165
  /** propName -> propId (provenance column mapping) */
245
- declare const BOOK_PROP_IDS: Record<string, number>;
246
- interface BookSlimCols {
247
- ids: Uint16Array;
166
+ declare const POST_PROP_IDS: Record<string, number>;
167
+ interface PostSlimCols {
168
+ ids: BigUint64Array;
248
169
  titles: (string | null)[];
249
170
  originalLangs: (string | null)[];
250
171
  previewTxIds: (string | null)[];
251
172
  ageGradeBands: Uint8Array;
252
173
  safes: Uint8Array;
253
174
  deleteds: Uint8Array;
254
- defaultLanguages: (string | null)[];
255
- defaultDownloadTxIds: (string | null)[];
256
- defaultMethod: Uint8Array;
257
- defaultIsAiTranslation: Uint8Array;
258
- defaultAiEngines: (string | null)[];
259
- defaultAddedAt: Uint32Array;
260
- defaultNbPages: Uint16Array;
261
- defaultSizeBytes: Uint32Array;
262
- defaultPublishers: (string | null)[];
263
- defaultPublicationDates: (string | null)[];
264
- defaultPublishedAts: (string | null)[];
265
- defaultQualityScore: Uint8Array;
266
- defaultIsbns: (string | null)[];
267
175
  }
268
- interface BookExtendedCols {
269
- ids: Uint16Array;
176
+ interface PostExtendedCols {
177
+ ids: BigUint64Array;
270
178
  descriptions: (string | null)[];
271
- prerequisites: (string | null)[];
272
- deweyDecimals: (string | null)[];
273
- locCallNumbers: (string | null)[];
274
- copyrightStatus: Uint8Array;
275
- textQuality: Uint8Array;
276
- illustrations: Uint8Array;
277
- educationQuality: Uint8Array;
278
- practicality: Uint8Array;
279
- accessibilityLevel: Uint8Array;
280
- teacherMaterials: Uint8Array;
281
- pedagogicalScaffolding: Uint8Array;
282
- clarityOfExplanation: Uint8Array;
283
- workedExamples: Uint8Array;
284
- exercisesAndAssessment: Uint8Array;
285
- selfStudyReadiness: Uint8Array;
286
- referenceApparatus: Uint8Array;
287
- safetyGuidance: Uint8Array;
288
- contentCurrency: Uint8Array;
289
- ecoRegeneration: Uint8Array;
290
- communityLiving: Uint8Array;
291
- promotesPeace: Uint8Array;
292
- businessDevelopment: Uint8Array;
293
- authorIds?: number[][];
294
- instances?: InstanceData[][];
179
+ isPinned: Uint8Array;
180
+ isLocked: Uint8Array;
181
+ tags?: bigint[][];
182
+ replies?: bigint[][];
295
183
  }
296
- interface BookProvCols {
297
- ids: Uint16Array;
184
+ interface PostProvCols {
185
+ ids: BigUint64Array;
298
186
  fields: Record<string, Uint8Array>;
299
187
  }
300
- interface BookInput {
301
- id: number;
188
+ interface PostInput {
189
+ id: bigint;
302
190
  title: string | null;
303
191
  description: string | null;
304
192
  originalLang: string | null;
@@ -306,219 +194,85 @@ interface BookInput {
306
194
  ageGradeBand: number;
307
195
  safe: boolean;
308
196
  deleted: boolean;
309
- prerequisites: string | null;
310
- deweyDecimal: string | null;
311
- locCallNumber: string | null;
312
- copyrightStatus: CopyrightStatus;
313
- textQuality: QualityScore;
314
- illustrations: QualityScore;
315
- educationQuality: QualityScore;
316
- practicality: QualityScore;
317
- accessibilityLevel: QualityScore;
318
- teacherMaterials: boolean;
319
- pedagogicalScaffolding: QualityScore;
320
- clarityOfExplanation: QualityScore;
321
- workedExamples: QualityScore;
322
- exercisesAndAssessment: QualityScore;
323
- selfStudyReadiness: QualityScore;
324
- referenceApparatus: QualityScore;
325
- safetyGuidance: QualityScore;
326
- contentCurrency: QualityScore;
327
- ecoRegeneration: QualityScore;
328
- communityLiving: QualityScore;
329
- promotesPeace: QualityScore;
330
- businessDevelopment: QualityScore;
331
- authorIds: number[];
332
- defaultLanguage: string | null;
333
- defaultDownloadTxId: string | null;
334
- defaultMethod: number;
335
- defaultIsAiTranslation: boolean;
336
- defaultAiEngine: string | null;
337
- defaultAddedAt: number;
338
- defaultNbPages: number;
339
- defaultSizeBytes: number;
340
- defaultPublisher: string | null;
341
- defaultPublicationDate: string | null;
342
- defaultPublishedAt: string | null;
343
- defaultQualityScore: number;
344
- defaultIsbn: string | null;
345
- instances: InstanceData[];
197
+ isPinned: boolean;
198
+ isLocked: boolean;
199
+ tags: bigint[];
200
+ replies: bigint[];
346
201
  }
347
- declare function serializeBookSlim(records: BookInput[]): ArrayBuffer;
348
- declare function serializeBookExtended(records: BookInput[]): ArrayBuffer;
349
- declare function serializeBookProv(records: BookInput[]): ArrayBuffer;
350
- declare class Book extends Orm {
202
+ declare function serializePostSlim(records: PostInput[]): ArrayBuffer;
203
+ declare function deserializePostSlim(buf: ArrayBuffer): Partial<PostInput>[];
204
+ declare function serializePostExtended(records: PostInput[]): ArrayBuffer;
205
+ declare function deserializePostExtended(buf: ArrayBuffer): Partial<PostInput>[];
206
+ declare function serializePostProv(records: PostInput[]): ArrayBuffer;
207
+ declare function deserializePostProv(buf: ArrayBuffer): Partial<PostInput>[];
208
+ declare class Post extends Orm {
351
209
  static readonly type: number;
352
210
  static readonly UID_STRATEGY: "native-only";
353
211
  static readonly STANDARD_PRIORITY: readonly [];
354
- static readonly serializeSlim: typeof serializeBookSlim;
355
- static readonly serializeExtended: typeof serializeBookExtended;
356
- static readonly serializeProv: typeof serializeBookProv;
212
+ static readonly isPrivate: boolean;
213
+ static readonly serializeSlim: typeof serializePostSlim;
214
+ static readonly serializeExtended: typeof serializePostExtended;
215
+ static readonly serializeProv: typeof serializePostProv;
216
+ static readonly deserializeSlim: typeof deserializePostSlim;
217
+ static readonly deserializeExtended: typeof deserializePostExtended;
218
+ static readonly deserializeProv: typeof deserializePostProv;
357
219
  constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
358
220
  /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
359
- static Load(id: uid, creatorUsername?: string): Book;
221
+ static Load(id: uid, creatorUsername?: string): Post;
360
222
  static Has(id: uid, creatorUsername?: string): boolean;
361
223
  /** On-demand hydration from the worker after LRU eviction (SPEC §2.5). */
362
- static LoadAsync(id: uid, creatorUsername?: string): Promise<Book>;
363
- get prerequisites(): string;
364
- set prerequisites(value: string);
365
- getPrerequisites(lang: Lang): string;
366
- setPrerequisites(value: string, lang: Lang): void;
367
- get deweyDecimal(): string;
368
- set deweyDecimal(value: string);
369
- getDeweyDecimal(lang: Lang): string;
370
- setDeweyDecimal(value: string, lang: Lang): void;
371
- get locCallNumber(): string;
372
- set locCallNumber(value: string);
373
- getLocCallNumber(lang: Lang): string;
374
- setLocCallNumber(value: string, lang: Lang): void;
375
- get copyrightStatus(): CopyrightStatus;
376
- set copyrightStatus(value: CopyrightStatus);
377
- getCopyrightStatus(lang: Lang): CopyrightStatus;
378
- setCopyrightStatus(value: CopyrightStatus, lang: Lang): void;
379
- get textQuality(): QualityScore;
380
- set textQuality(value: QualityScore);
381
- getTextQuality(lang: Lang): QualityScore;
382
- setTextQuality(value: QualityScore, lang: Lang): void;
383
- get illustrations(): QualityScore;
384
- set illustrations(value: QualityScore);
385
- getIllustrations(lang: Lang): QualityScore;
386
- setIllustrations(value: QualityScore, lang: Lang): void;
387
- get educationQuality(): QualityScore;
388
- set educationQuality(value: QualityScore);
389
- getEducationQuality(lang: Lang): QualityScore;
390
- setEducationQuality(value: QualityScore, lang: Lang): void;
391
- get practicality(): QualityScore;
392
- set practicality(value: QualityScore);
393
- getPracticality(lang: Lang): QualityScore;
394
- setPracticality(value: QualityScore, lang: Lang): void;
395
- get accessibilityLevel(): QualityScore;
396
- set accessibilityLevel(value: QualityScore);
397
- getAccessibilityLevel(lang: Lang): QualityScore;
398
- setAccessibilityLevel(value: QualityScore, lang: Lang): void;
399
- get teacherMaterials(): boolean;
400
- set teacherMaterials(value: boolean);
401
- getTeacherMaterials(lang: Lang): boolean;
402
- setTeacherMaterials(value: boolean, lang: Lang): void;
403
- get pedagogicalScaffolding(): QualityScore;
404
- set pedagogicalScaffolding(value: QualityScore);
405
- getPedagogicalScaffolding(lang: Lang): QualityScore;
406
- setPedagogicalScaffolding(value: QualityScore, lang: Lang): void;
407
- get clarityOfExplanation(): QualityScore;
408
- set clarityOfExplanation(value: QualityScore);
409
- getClarityOfExplanation(lang: Lang): QualityScore;
410
- setClarityOfExplanation(value: QualityScore, lang: Lang): void;
411
- get workedExamples(): QualityScore;
412
- set workedExamples(value: QualityScore);
413
- getWorkedExamples(lang: Lang): QualityScore;
414
- setWorkedExamples(value: QualityScore, lang: Lang): void;
415
- get exercisesAndAssessment(): QualityScore;
416
- set exercisesAndAssessment(value: QualityScore);
417
- getExercisesAndAssessment(lang: Lang): QualityScore;
418
- setExercisesAndAssessment(value: QualityScore, lang: Lang): void;
419
- get selfStudyReadiness(): QualityScore;
420
- set selfStudyReadiness(value: QualityScore);
421
- getSelfStudyReadiness(lang: Lang): QualityScore;
422
- setSelfStudyReadiness(value: QualityScore, lang: Lang): void;
423
- get referenceApparatus(): QualityScore;
424
- set referenceApparatus(value: QualityScore);
425
- getReferenceApparatus(lang: Lang): QualityScore;
426
- setReferenceApparatus(value: QualityScore, lang: Lang): void;
427
- get safetyGuidance(): QualityScore;
428
- set safetyGuidance(value: QualityScore);
429
- getSafetyGuidance(lang: Lang): QualityScore;
430
- setSafetyGuidance(value: QualityScore, lang: Lang): void;
431
- get contentCurrency(): QualityScore;
432
- set contentCurrency(value: QualityScore);
433
- getContentCurrency(lang: Lang): QualityScore;
434
- setContentCurrency(value: QualityScore, lang: Lang): void;
435
- get ecoRegeneration(): QualityScore;
436
- set ecoRegeneration(value: QualityScore);
437
- getEcoRegeneration(lang: Lang): QualityScore;
438
- setEcoRegeneration(value: QualityScore, lang: Lang): void;
439
- get communityLiving(): QualityScore;
440
- set communityLiving(value: QualityScore);
441
- getCommunityLiving(lang: Lang): QualityScore;
442
- setCommunityLiving(value: QualityScore, lang: Lang): void;
443
- get promotesPeace(): QualityScore;
444
- set promotesPeace(value: QualityScore);
445
- getPromotesPeace(lang: Lang): QualityScore;
446
- setPromotesPeace(value: QualityScore, lang: Lang): void;
447
- get businessDevelopment(): QualityScore;
448
- set businessDevelopment(value: QualityScore);
449
- getBusinessDevelopment(lang: Lang): QualityScore;
450
- setBusinessDevelopment(value: QualityScore, lang: Lang): void;
224
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<Post>;
225
+ get isPinned(): boolean;
226
+ set isPinned(value: boolean);
227
+ getIsPinned(lang: Lang): boolean;
228
+ setIsPinned(value: boolean, lang: Lang): void;
229
+ get isLocked(): boolean;
230
+ set isLocked(value: boolean);
231
+ getIsLocked(lang: Lang): boolean;
232
+ setIsLocked(value: boolean, lang: Lang): void;
451
233
  get inTagsIds(): Array<uid>;
452
- get inTags(): Array<Tag>;
234
+ /** Re-hydrates any evicted targets before resolving — always await. */
235
+ get inTags(): Promise<Array<Tag>>;
453
236
  isInTag(id: uid): boolean;
237
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
238
+ inTagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
454
239
  addIntoTag(id: uid): void;
455
240
  removeFromTag(id: uid): void;
456
- get authorsIds(): Array<uid>;
457
- get authors(): Array<Person>;
458
- hasAuthor(id: uid): boolean;
459
- addAuthor(id: uid): void;
460
- removeAuthor(id: uid): void;
461
- getInstances(lang?: Lang): BookInstance[];
462
- getInstance(index: number, lang?: Lang): BookInstance | undefined;
463
- getDefaultInstance(lang?: Lang): BookInstance | undefined;
241
+ get tagsIds(): Array<uid>;
242
+ /** Re-hydrates any evicted targets before resolving — always await. */
243
+ get tags(): Promise<Array<Tag>>;
244
+ hasTag(id: uid): boolean;
245
+ addTag(id: uid): void;
246
+ removeTag(id: uid): void;
247
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
248
+ tagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
249
+ get inParentPostId(): bigint | null;
250
+ /** Re-hydrates any evicted target before resolving — always await. */
251
+ get inParentPost(): Promise<Post | null>;
252
+ private addIntoParentPost;
253
+ private removeFromParentPost;
254
+ set inParentPost(id: uid | null);
255
+ get repliesIds(): Array<uid>;
256
+ /** Re-hydrates any evicted targets before resolving — always await. */
257
+ get replies(): Promise<Array<Post>>;
258
+ hasReplie(id: uid): boolean;
259
+ addReplie(id: uid): void;
260
+ removeReplie(id: uid): void;
261
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
262
+ repliesDeep(opts?: DeepCollectOptions): Promise<Array<Post>>;
464
263
  toPID(): string;
465
264
  toNativePID(): string;
466
265
  static fromPID(pid: string): {
467
- wireId: number;
266
+ wireId: bigint;
468
267
  } | null;
469
- static LoadInstance(pkValue: string, lang: Lang): Promise<{
470
- record: Book;
471
- instanceIndex?: number;
472
- } | null>;
473
- }
474
- declare class BookInstance {
475
- readonly parent: Book;
476
- readonly lang: string;
477
- readonly index: number;
478
- private data;
479
- constructor(parent: Book, lang: string, index: number, data: InstanceData);
480
- get isDefault(): boolean;
481
- get language(): string;
482
- set language(val: string);
483
- get downloadTxId(): string;
484
- set downloadTxId(val: string);
485
- get method(): BookMethod;
486
- set method(val: BookMethod);
487
- get isAiTranslation(): boolean;
488
- set isAiTranslation(val: boolean);
489
- get aiEngine(): string | null;
490
- set aiEngine(val: string | null);
491
- get addedAt(): number;
492
- set addedAt(val: number);
493
- get nbPages(): number;
494
- set nbPages(val: number);
495
- get sizeBytes(): number;
496
- set sizeBytes(val: number);
497
- get publisher(): string | null;
498
- set publisher(val: string | null);
499
- get publicationDate(): string | null;
500
- set publicationDate(val: string | null);
501
- get publishedAt(): string | null;
502
- set publishedAt(val: string | null);
503
- get qualityScore(): QualityScore;
504
- set qualityScore(val: QualityScore);
505
- get isbn(): string | null;
506
- set isbn(val: string | null);
507
- derivedSfcuid(sourceSfcuid: string): string;
508
- get isbnNormalized(): string | null;
509
- validateIsbn(): ReturnType<typeof ISBNAdapter.validate>;
510
- sfcuid(): string;
511
- get identityCluster(): RecordIdentityCluster;
512
- get description(): string;
513
- set description(val: string);
514
268
  }
515
- declare const NewBookWithId: (id: uid, creatorUsername?: string) => Book;
269
+ declare const NewPostWithId: (id: uid, creatorUsername?: string) => Post;
516
270
 
517
271
  type ModelClass = {
518
272
  new (json: any, creatorUsername?: string): any;
519
273
  type: number;
520
- LoadAsync(id: number, creatorUsername?: string): Promise<any>;
274
+ LoadAsync(id: uid, creatorUsername?: string): Promise<any>;
521
275
  };
522
276
  declare const ModelTypes: Record<number, ModelClass>;
523
277
 
524
- export { BOOK_PROP_IDS, Book, type BookExtendedCols, type BookInput, BookInstance, type BookProvCols, type BookSlimCols, type ModelClass, ModelTypes, NewBookWithId, NewPersonWithId, NewTagWithId, PERSON_PROP_IDS, Person, type PersonExtendedCols, type PersonInput, type PersonProvCols, type PersonSlimCols, TAG_PROP_IDS, Tag, type TagExtendedCols, type TagInput, type TagProvCols, type TagSlimCols, serializeBookExtended, serializeBookProv, serializeBookSlim, serializePersonExtended, serializePersonProv, serializePersonSlim, serializeTagExtended, serializeTagProv, serializeTagSlim };
278
+ export { Book, CLASSIFICATIONSYSTEM_PROP_IDS, ClassificationSystem, type ClassificationSystemExtendedCols, type ClassificationSystemInput, type ClassificationSystemProvCols, type ClassificationSystemSlimCols, type ModelClass, ModelTypes, NewClassificationSystemWithId, NewPostWithId, POST_PROP_IDS, Post, type PostExtendedCols, type PostInput, type PostProvCols, type PostSlimCols, Tag, deserializeClassificationSystemExtended, deserializeClassificationSystemProv, deserializeClassificationSystemSlim, deserializePostExtended, deserializePostProv, deserializePostSlim, serializeClassificationSystemExtended, serializeClassificationSystemProv, serializeClassificationSystemSlim, serializePostExtended, serializePostProv, serializePostSlim };