@the_library/public 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-K86JRm42.d.ts +600 -0
  4. package/dist/bookSearchService-BmFHrvsv.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 +18 -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 -22
  55. package/dist/models/index.js +1 -339
  56. package/dist/models/index.js.map +1 -1
  57. package/dist/models/models.d.ts +196 -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 +90 -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 +23 -2
  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,22 @@
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-K86JRm42.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-K86JRm42.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/db_schemas/enums';
5
+ import '@the_library/standard-adapters/lcc';
6
+ import '@the_library/standard-adapters/ddc';
7
+ import '@the_library/standard-adapters/udc';
8
+ import '@the_library/standard-adapters/clc';
9
+ import '@the_library/standard-adapters/bbk';
10
+ import '@the_library/standard-adapters/tlc';
11
+ import '@the_library/standard-adapters/cc';
12
+ import '@the_library/standard-adapters/isbn';
13
+ import '@the_library/standard-adapters/isni';
14
+ import '@the_library/standard-adapters/orcid';
13
15
 
14
16
  /** propName -> propId (provenance column mapping) */
15
- declare const PERSON_PROP_IDS: Record<string, number>;
16
- interface PersonSlimCols {
17
- ids: Uint16Array;
17
+ declare const CLASSIFICATIONSYSTEM_PROP_IDS: Record<string, number>;
18
+ interface ClassificationSystemSlimCols {
19
+ ids: BigUint64Array;
18
20
  titles: (string | null)[];
19
21
  originalLangs: (string | null)[];
20
22
  previewTxIds: (string | null)[];
@@ -22,22 +24,23 @@ interface PersonSlimCols {
22
24
  safes: Uint8Array;
23
25
  deleteds: Uint8Array;
24
26
  }
25
- interface PersonExtendedCols {
26
- ids: Uint16Array;
27
+ interface ClassificationSystemExtendedCols {
28
+ ids: BigUint64Array;
27
29
  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)[];
30
+ names: (string | null)[];
31
+ institution: Uint8Array;
32
+ countrys: (string | null)[];
33
+ languages: (string | null)[];
34
+ rootTagId: Uint32Array;
35
+ tags?: bigint[][];
36
+ books?: bigint[][];
34
37
  }
35
- interface PersonProvCols {
36
- ids: Uint16Array;
38
+ interface ClassificationSystemProvCols {
39
+ ids: BigUint64Array;
37
40
  fields: Record<string, Uint8Array>;
38
41
  }
39
- interface PersonInput {
40
- id: number;
42
+ interface ClassificationSystemInput {
43
+ id: bigint;
41
44
  title: string | null;
42
45
  description: string | null;
43
46
  originalLang: string | null;
@@ -45,260 +48,146 @@ interface PersonInput {
45
48
  ageGradeBand: number;
46
49
  safe: boolean;
47
50
  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;
51
+ name: string | null;
52
+ institution: boolean;
53
+ country: string | null;
54
+ language: string | null;
55
+ rootTagId: number;
56
+ tags: bigint[];
57
+ books: bigint[];
54
58
  }
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 {
59
+ declare function serializeClassificationSystemSlim(records: ClassificationSystemInput[]): ArrayBuffer;
60
+ declare function deserializeClassificationSystemSlim(buf: ArrayBuffer): Partial<ClassificationSystemInput>[];
61
+ declare function serializeClassificationSystemExtended(records: ClassificationSystemInput[]): ArrayBuffer;
62
+ declare function deserializeClassificationSystemExtended(buf: ArrayBuffer): Partial<ClassificationSystemInput>[];
63
+ declare function serializeClassificationSystemProv(records: ClassificationSystemInput[]): ArrayBuffer;
64
+ declare function deserializeClassificationSystemProv(buf: ArrayBuffer): Partial<ClassificationSystemInput>[];
65
+ declare class ClassificationSystem extends Orm {
59
66
  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;
67
+ static readonly UID_STRATEGY: "native-only";
68
+ static readonly STANDARD_PRIORITY: readonly [];
69
+ static readonly isPrivate: boolean;
70
+ static readonly serializeSlim: typeof serializeClassificationSystemSlim;
71
+ static readonly serializeExtended: typeof serializeClassificationSystemExtended;
72
+ static readonly serializeProv: typeof serializeClassificationSystemProv;
73
+ static readonly deserializeSlim: typeof deserializeClassificationSystemSlim;
74
+ static readonly deserializeExtended: typeof deserializeClassificationSystemExtended;
75
+ static readonly deserializeProv: typeof deserializeClassificationSystemProv;
171
76
  constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
172
77
  /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
173
- static Load(id: uid, creatorUsername?: string): Tag;
78
+ static Load(id: uid, creatorUsername?: string): ClassificationSystem;
174
79
  static Has(id: uid, creatorUsername?: string): boolean;
175
80
  /** 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;
81
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<ClassificationSystem>;
82
+ get name(): string;
83
+ set name(value: string);
84
+ getName(lang: Lang): string;
85
+ setName(value: string, lang: Lang): void;
86
+ get institution(): boolean;
87
+ set institution(value: boolean);
88
+ getInstitution(lang: Lang): boolean;
89
+ setInstitution(value: boolean, lang: Lang): void;
90
+ get country(): string;
91
+ set country(value: string);
92
+ getCountry(lang: Lang): string;
93
+ setCountry(value: string, lang: Lang): void;
94
+ get language(): string;
95
+ set language(value: string);
96
+ getLanguage(lang: Lang): string;
97
+ setLanguage(value: string, lang: Lang): void;
98
+ get rootTagId(): number;
99
+ set rootTagId(value: number);
100
+ getRootTagId(lang: Lang): number;
101
+ setRootTagId(value: number, lang: Lang): void;
102
+ get inRootTagIds(): Array<uid>;
103
+ /** Re-hydrates any evicted targets before resolving — always await. */
104
+ get inRootTag(): Promise<Array<Tag>>;
105
+ isInRootTag(id: uid): boolean;
106
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
107
+ rootTagDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
108
+ addIntoRootTag(id: uid): void;
109
+ removeFromRootTag(id: uid): void;
210
110
  get tagsIds(): Array<uid>;
211
- get tags(): Array<Tag>;
111
+ /** Re-hydrates any evicted targets before resolving — always await. */
112
+ get tags(): Promise<Array<Tag>>;
212
113
  hasTag(id: uid): boolean;
213
114
  addTag(id: uid): void;
214
115
  removeTag(id: uid): void;
116
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
117
+ tagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
215
118
  get booksIds(): Array<uid>;
216
- get books(): Array<Book>;
119
+ /** Re-hydrates any evicted targets before resolving — always await. */
120
+ get books(): Promise<Array<Book>>;
217
121
  hasBook(id: uid): boolean;
218
122
  addBook(id: uid): void;
219
123
  removeBook(id: uid): void;
124
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
125
+ booksDeep(opts?: DeepCollectOptions): Promise<Array<Book>>;
220
126
  toPID(): string;
221
127
  toNativePID(): string;
222
128
  static fromPID(pid: string): {
223
- wireId: number;
129
+ wireId: bigint;
224
130
  } | 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;
131
+ static byClassificationSystem(value: string, options?: {
132
+ lang?: Lang;
133
+ includeDeleted?: boolean;
134
+ }): Promise<ClassificationSystem[]>;
135
+ static getAvailableClassificationSystems(partition: string, options?: {
136
+ lang?: Lang;
137
+ }): string[];
138
+ static byClassificationSystemStandard(system: string, options?: {
139
+ lang?: Lang;
140
+ includeDeleted?: boolean;
141
+ }): Promise<ClassificationSystem[]>;
142
+ static byClassificationSystemImported(system: string, options?: {
143
+ lang?: Lang;
144
+ includeDeleted?: boolean;
145
+ }): Promise<ClassificationSystem[]>;
146
+ static byClassificationSystemCustom(system: string, options?: {
147
+ lang?: Lang;
148
+ includeDeleted?: boolean;
149
+ }): Promise<ClassificationSystem[]>;
150
+ static byClassificationSystemOrigin(options?: {
151
+ lang?: Lang;
152
+ includeDeleted?: boolean;
153
+ }): Promise<ClassificationSystem[]>;
154
+ static getAvailableStandardSystems(options?: {
155
+ lang?: Lang;
156
+ }): string[];
157
+ static getAvailableImportedSystems(options?: {
158
+ lang?: Lang;
159
+ }): string[];
160
+ static getAvailableCustomSystems(options?: {
161
+ lang?: Lang;
162
+ }): string[];
241
163
  }
242
- declare const NewTagWithId: (id: uid, creatorUsername?: string) => Tag;
164
+ declare const NewClassificationSystemWithId: (id: uid, creatorUsername?: string) => ClassificationSystem;
243
165
 
244
166
  /** propName -> propId (provenance column mapping) */
245
- declare const BOOK_PROP_IDS: Record<string, number>;
246
- interface BookSlimCols {
247
- ids: Uint16Array;
167
+ declare const POST_PROP_IDS: Record<string, number>;
168
+ interface PostSlimCols {
169
+ ids: BigUint64Array;
248
170
  titles: (string | null)[];
249
171
  originalLangs: (string | null)[];
250
172
  previewTxIds: (string | null)[];
251
173
  ageGradeBands: Uint8Array;
252
174
  safes: Uint8Array;
253
175
  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
176
  }
268
- interface BookExtendedCols {
269
- ids: Uint16Array;
177
+ interface PostExtendedCols {
178
+ ids: BigUint64Array;
270
179
  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[][];
180
+ isPinned: Uint8Array;
181
+ isLocked: Uint8Array;
182
+ tags?: bigint[][];
183
+ replies?: bigint[][];
295
184
  }
296
- interface BookProvCols {
297
- ids: Uint16Array;
185
+ interface PostProvCols {
186
+ ids: BigUint64Array;
298
187
  fields: Record<string, Uint8Array>;
299
188
  }
300
- interface BookInput {
301
- id: number;
189
+ interface PostInput {
190
+ id: bigint;
302
191
  title: string | null;
303
192
  description: string | null;
304
193
  originalLang: string | null;
@@ -306,219 +195,85 @@ interface BookInput {
306
195
  ageGradeBand: number;
307
196
  safe: boolean;
308
197
  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[];
198
+ isPinned: boolean;
199
+ isLocked: boolean;
200
+ tags: bigint[];
201
+ replies: bigint[];
346
202
  }
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 {
203
+ declare function serializePostSlim(records: PostInput[]): ArrayBuffer;
204
+ declare function deserializePostSlim(buf: ArrayBuffer): Partial<PostInput>[];
205
+ declare function serializePostExtended(records: PostInput[]): ArrayBuffer;
206
+ declare function deserializePostExtended(buf: ArrayBuffer): Partial<PostInput>[];
207
+ declare function serializePostProv(records: PostInput[]): ArrayBuffer;
208
+ declare function deserializePostProv(buf: ArrayBuffer): Partial<PostInput>[];
209
+ declare class Post extends Orm {
351
210
  static readonly type: number;
352
211
  static readonly UID_STRATEGY: "native-only";
353
212
  static readonly STANDARD_PRIORITY: readonly [];
354
- static readonly serializeSlim: typeof serializeBookSlim;
355
- static readonly serializeExtended: typeof serializeBookExtended;
356
- static readonly serializeProv: typeof serializeBookProv;
213
+ static readonly isPrivate: boolean;
214
+ static readonly serializeSlim: typeof serializePostSlim;
215
+ static readonly serializeExtended: typeof serializePostExtended;
216
+ static readonly serializeProv: typeof serializePostProv;
217
+ static readonly deserializeSlim: typeof deserializePostSlim;
218
+ static readonly deserializeExtended: typeof deserializePostExtended;
219
+ static readonly deserializeProv: typeof deserializePostProv;
357
220
  constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
358
221
  /** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
359
- static Load(id: uid, creatorUsername?: string): Book;
222
+ static Load(id: uid, creatorUsername?: string): Post;
360
223
  static Has(id: uid, creatorUsername?: string): boolean;
361
224
  /** 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;
225
+ static LoadAsync(id: uid, creatorUsername?: string): Promise<Post>;
226
+ get isPinned(): boolean;
227
+ set isPinned(value: boolean);
228
+ getIsPinned(lang: Lang): boolean;
229
+ setIsPinned(value: boolean, lang: Lang): void;
230
+ get isLocked(): boolean;
231
+ set isLocked(value: boolean);
232
+ getIsLocked(lang: Lang): boolean;
233
+ setIsLocked(value: boolean, lang: Lang): void;
451
234
  get inTagsIds(): Array<uid>;
452
- get inTags(): Array<Tag>;
235
+ /** Re-hydrates any evicted targets before resolving — always await. */
236
+ get inTags(): Promise<Array<Tag>>;
453
237
  isInTag(id: uid): boolean;
238
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
239
+ inTagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
454
240
  addIntoTag(id: uid): void;
455
241
  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;
242
+ get tagsIds(): Array<uid>;
243
+ /** Re-hydrates any evicted targets before resolving — always await. */
244
+ get tags(): Promise<Array<Tag>>;
245
+ hasTag(id: uid): boolean;
246
+ addTag(id: uid): void;
247
+ removeTag(id: uid): void;
248
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
249
+ tagsDeep(opts?: DeepCollectOptions): Promise<Array<Tag>>;
250
+ get inParentPostId(): bigint | null;
251
+ /** Re-hydrates any evicted target before resolving — always await. */
252
+ get inParentPost(): Promise<Post | null>;
253
+ private addIntoParentPost;
254
+ private removeFromParentPost;
255
+ set inParentPost(id: uid | null);
256
+ get repliesIds(): Array<uid>;
257
+ /** Re-hydrates any evicted targets before resolving — always await. */
258
+ get replies(): Promise<Array<Post>>;
259
+ hasReplie(id: uid): boolean;
260
+ addReplie(id: uid): void;
261
+ removeReplie(id: uid): void;
262
+ /** Walks the hierarchy + bridges recursively, cycle-safe. See Orm.collectDeepIds. */
263
+ repliesDeep(opts?: DeepCollectOptions): Promise<Array<Post>>;
464
264
  toPID(): string;
465
265
  toNativePID(): string;
466
266
  static fromPID(pid: string): {
467
- wireId: number;
267
+ wireId: bigint;
468
268
  } | 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
269
  }
515
- declare const NewBookWithId: (id: uid, creatorUsername?: string) => Book;
270
+ declare const NewPostWithId: (id: uid, creatorUsername?: string) => Post;
516
271
 
517
272
  type ModelClass = {
518
273
  new (json: any, creatorUsername?: string): any;
519
274
  type: number;
520
- LoadAsync(id: number, creatorUsername?: string): Promise<any>;
275
+ LoadAsync(id: uid, creatorUsername?: string): Promise<any>;
521
276
  };
522
277
  declare const ModelTypes: Record<number, ModelClass>;
523
278
 
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 };
279
+ 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 };