@the_library/public 1.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.
- package/README.md +2298 -0
- package/assets/branding/data-pond.png +0 -0
- package/assets/branding/dsafe-logo.png +0 -0
- package/assets/branding/founder-photo.jpg +0 -0
- package/assets/branding/icon_transparent.png +0 -0
- package/assets/branding/library-favicon.png +0 -0
- package/assets/branding/pond-enterprise-logo.jpg +0 -0
- package/assets/branding/pond-enterprise-logo.svg +27 -0
- package/dist/branding/index.d.ts +48 -0
- package/dist/branding/index.js +67 -0
- package/dist/branding/index.js.map +1 -0
- package/dist/chunk-2HFOWE5R.js +296 -0
- package/dist/chunk-2HFOWE5R.js.map +1 -0
- package/dist/chunk-3L6LH2XK.js +465 -0
- package/dist/chunk-3L6LH2XK.js.map +1 -0
- package/dist/chunk-4CWVFPBN.js +28 -0
- package/dist/chunk-4CWVFPBN.js.map +1 -0
- package/dist/chunk-AGHPATVL.js +65 -0
- package/dist/chunk-AGHPATVL.js.map +1 -0
- package/dist/chunk-JDUYLUDJ.js +4835 -0
- package/dist/chunk-JDUYLUDJ.js.map +1 -0
- package/dist/chunk-OEZK7IX7.js +77 -0
- package/dist/chunk-OEZK7IX7.js.map +1 -0
- package/dist/chunk-PUYDAUCI.js +2873 -0
- package/dist/chunk-PUYDAUCI.js.map +1 -0
- package/dist/chunk-WHWMTS7D.js +99 -0
- package/dist/chunk-WHWMTS7D.js.map +1 -0
- package/dist/chunk-Y7RS6RTM.js +342 -0
- package/dist/chunk-Y7RS6RTM.js.map +1 -0
- package/dist/chunk-ZEZGI2TP.js +197 -0
- package/dist/chunk-ZEZGI2TP.js.map +1 -0
- package/dist/core-dao-core-logo-VDT2I5IW.svg +33 -0
- package/dist/downloader/dl2-sw.js +199 -0
- package/dist/downloader/dl2-sw.js.map +1 -0
- package/dist/downloader/file-worker-v2.js +258 -0
- package/dist/downloader/file-worker-v2.js.map +1 -0
- package/dist/downloader/index.d.ts +45 -0
- package/dist/downloader/index.js +538 -0
- package/dist/downloader/index.js.map +1 -0
- package/dist/downloader/mu-worker-v2.js +197 -0
- package/dist/downloader/mu-worker-v2.js.map +1 -0
- package/dist/downloader/react.d.ts +19 -0
- package/dist/downloader/react.js +32 -0
- package/dist/downloader/react.js.map +1 -0
- package/dist/downloader/solid.d.ts +21 -0
- package/dist/downloader/solid.js +19 -0
- package/dist/downloader/solid.js.map +1 -0
- package/dist/downloader/sw.d.ts +22 -0
- package/dist/downloader/sw.js +119 -0
- package/dist/downloader/sw.js.map +1 -0
- package/dist/downloader/vue.d.ts +23 -0
- package/dist/downloader/vue.js +19 -0
- package/dist/downloader/vue.js.map +1 -0
- package/dist/level-state-J3pj64Tr.d.ts +15 -0
- package/dist/models/astro.d.ts +47 -0
- package/dist/models/astro.js +44 -0
- package/dist/models/astro.js.map +1 -0
- package/dist/models/index.d.ts +244 -0
- package/dist/models/index.js +340 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/models.d.ts +524 -0
- package/dist/models/models.js +46 -0
- package/dist/models/models.js.map +1 -0
- package/dist/models/models_v2.global.js +1 -0
- package/dist/models/patch-worker.js +543 -0
- package/dist/models/patch-worker.js.map +1 -0
- package/dist/models/react.d.ts +43 -0
- package/dist/models/react.js +73 -0
- package/dist/models/react.js.map +1 -0
- package/dist/models/solid.d.ts +73 -0
- package/dist/models/solid.js +95 -0
- package/dist/models/solid.js.map +1 -0
- package/dist/models/vue.d.ts +51 -0
- package/dist/models/vue.js +98 -0
- package/dist/models/vue.js.map +1 -0
- package/dist/orm-BvkX0aBT.d.ts +507 -0
- package/dist/session-vqOnyxga.d.ts +184 -0
- package/dist/state-BTsp-E4v.d.ts +111 -0
- package/dist/types-Dn0EFMO_.d.ts +293 -0
- package/dist/types-Xb8Ta9tZ.d.ts +155 -0
- package/dist/web3/index.d.ts +820 -0
- package/dist/web3/index.js +1020 -0
- package/dist/web3/index.js.map +1 -0
- package/dist/web3/registry.d.ts +145 -0
- package/dist/web3/registry.js +23 -0
- package/dist/web3/registry.js.map +1 -0
- package/dist/web3/vue.d.ts +174 -0
- package/dist/web3/vue.js +391 -0
- package/dist/web3/vue.js.map +1 -0
- package/package.json +124 -0
|
@@ -0,0 +1,524 @@
|
|
|
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';
|
|
13
|
+
|
|
14
|
+
/** propName -> propId (provenance column mapping) */
|
|
15
|
+
declare const PERSON_PROP_IDS: Record<string, number>;
|
|
16
|
+
interface PersonSlimCols {
|
|
17
|
+
ids: Uint16Array;
|
|
18
|
+
titles: (string | null)[];
|
|
19
|
+
originalLangs: (string | null)[];
|
|
20
|
+
previewTxIds: (string | null)[];
|
|
21
|
+
ageGradeBands: Uint8Array;
|
|
22
|
+
safes: Uint8Array;
|
|
23
|
+
deleteds: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
interface PersonExtendedCols {
|
|
26
|
+
ids: Uint16Array;
|
|
27
|
+
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)[];
|
|
34
|
+
}
|
|
35
|
+
interface PersonProvCols {
|
|
36
|
+
ids: Uint16Array;
|
|
37
|
+
fields: Record<string, Uint8Array>;
|
|
38
|
+
}
|
|
39
|
+
interface PersonInput {
|
|
40
|
+
id: number;
|
|
41
|
+
title: string | null;
|
|
42
|
+
description: string | null;
|
|
43
|
+
originalLang: string | null;
|
|
44
|
+
previewTxId: string | null;
|
|
45
|
+
ageGradeBand: number;
|
|
46
|
+
safe: boolean;
|
|
47
|
+
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;
|
|
54
|
+
}
|
|
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
|
+
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;
|
|
171
|
+
constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
|
|
172
|
+
/** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
|
|
173
|
+
static Load(id: uid, creatorUsername?: string): Tag;
|
|
174
|
+
static Has(id: uid, creatorUsername?: string): boolean;
|
|
175
|
+
/** 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;
|
|
210
|
+
get tagsIds(): Array<uid>;
|
|
211
|
+
get tags(): Array<Tag>;
|
|
212
|
+
hasTag(id: uid): boolean;
|
|
213
|
+
addTag(id: uid): void;
|
|
214
|
+
removeTag(id: uid): void;
|
|
215
|
+
get booksIds(): Array<uid>;
|
|
216
|
+
get books(): Array<Book>;
|
|
217
|
+
hasBook(id: uid): boolean;
|
|
218
|
+
addBook(id: uid): void;
|
|
219
|
+
removeBook(id: uid): void;
|
|
220
|
+
toPID(): string;
|
|
221
|
+
toNativePID(): string;
|
|
222
|
+
static fromPID(pid: string): {
|
|
223
|
+
wireId: number;
|
|
224
|
+
} | 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;
|
|
241
|
+
}
|
|
242
|
+
declare const NewTagWithId: (id: uid, creatorUsername?: string) => Tag;
|
|
243
|
+
|
|
244
|
+
/** propName -> propId (provenance column mapping) */
|
|
245
|
+
declare const BOOK_PROP_IDS: Record<string, number>;
|
|
246
|
+
interface BookSlimCols {
|
|
247
|
+
ids: Uint16Array;
|
|
248
|
+
titles: (string | null)[];
|
|
249
|
+
originalLangs: (string | null)[];
|
|
250
|
+
previewTxIds: (string | null)[];
|
|
251
|
+
ageGradeBands: Uint8Array;
|
|
252
|
+
safes: Uint8Array;
|
|
253
|
+
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
|
+
}
|
|
268
|
+
interface BookExtendedCols {
|
|
269
|
+
ids: Uint16Array;
|
|
270
|
+
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[][];
|
|
295
|
+
}
|
|
296
|
+
interface BookProvCols {
|
|
297
|
+
ids: Uint16Array;
|
|
298
|
+
fields: Record<string, Uint8Array>;
|
|
299
|
+
}
|
|
300
|
+
interface BookInput {
|
|
301
|
+
id: number;
|
|
302
|
+
title: string | null;
|
|
303
|
+
description: string | null;
|
|
304
|
+
originalLang: string | null;
|
|
305
|
+
previewTxId: string | null;
|
|
306
|
+
ageGradeBand: number;
|
|
307
|
+
safe: boolean;
|
|
308
|
+
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[];
|
|
346
|
+
}
|
|
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 {
|
|
351
|
+
static readonly type: number;
|
|
352
|
+
static readonly UID_STRATEGY: "native-only";
|
|
353
|
+
static readonly STANDARD_PRIORITY: readonly [];
|
|
354
|
+
static readonly serializeSlim: typeof serializeBookSlim;
|
|
355
|
+
static readonly serializeExtended: typeof serializeBookExtended;
|
|
356
|
+
static readonly serializeProv: typeof serializeBookProv;
|
|
357
|
+
constructor(json: CommonOrmJson | SerializedCommonOrmJson, creatorUsername?: string);
|
|
358
|
+
/** Synchronous LRU read — throws on miss (use LoadAsync to re-hydrate). */
|
|
359
|
+
static Load(id: uid, creatorUsername?: string): Book;
|
|
360
|
+
static Has(id: uid, creatorUsername?: string): boolean;
|
|
361
|
+
/** 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;
|
|
451
|
+
get inTagsIds(): Array<uid>;
|
|
452
|
+
get inTags(): Array<Tag>;
|
|
453
|
+
isInTag(id: uid): boolean;
|
|
454
|
+
addIntoTag(id: uid): void;
|
|
455
|
+
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;
|
|
464
|
+
toPID(): string;
|
|
465
|
+
toNativePID(): string;
|
|
466
|
+
static fromPID(pid: string): {
|
|
467
|
+
wireId: number;
|
|
468
|
+
} | 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
|
+
}
|
|
515
|
+
declare const NewBookWithId: (id: uid, creatorUsername?: string) => Book;
|
|
516
|
+
|
|
517
|
+
type ModelClass = {
|
|
518
|
+
new (json: any, creatorUsername?: string): any;
|
|
519
|
+
type: number;
|
|
520
|
+
LoadAsync(id: number, creatorUsername?: string): Promise<any>;
|
|
521
|
+
};
|
|
522
|
+
declare const ModelTypes: Record<number, ModelClass>;
|
|
523
|
+
|
|
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 };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BOOK_PROP_IDS,
|
|
3
|
+
Book,
|
|
4
|
+
BookInstance,
|
|
5
|
+
ModelTypes,
|
|
6
|
+
NewBookWithId,
|
|
7
|
+
NewPersonWithId,
|
|
8
|
+
NewTagWithId,
|
|
9
|
+
PERSON_PROP_IDS,
|
|
10
|
+
Person,
|
|
11
|
+
TAG_PROP_IDS,
|
|
12
|
+
Tag,
|
|
13
|
+
serializeBookExtended,
|
|
14
|
+
serializeBookProv,
|
|
15
|
+
serializeBookSlim,
|
|
16
|
+
serializePersonExtended,
|
|
17
|
+
serializePersonProv,
|
|
18
|
+
serializePersonSlim,
|
|
19
|
+
serializeTagExtended,
|
|
20
|
+
serializeTagProv,
|
|
21
|
+
serializeTagSlim
|
|
22
|
+
} from "../chunk-JDUYLUDJ.js";
|
|
23
|
+
import "../chunk-ZEZGI2TP.js";
|
|
24
|
+
export {
|
|
25
|
+
BOOK_PROP_IDS,
|
|
26
|
+
Book,
|
|
27
|
+
BookInstance,
|
|
28
|
+
ModelTypes,
|
|
29
|
+
NewBookWithId,
|
|
30
|
+
NewPersonWithId,
|
|
31
|
+
NewTagWithId,
|
|
32
|
+
PERSON_PROP_IDS,
|
|
33
|
+
Person,
|
|
34
|
+
TAG_PROP_IDS,
|
|
35
|
+
Tag,
|
|
36
|
+
serializeBookExtended,
|
|
37
|
+
serializeBookProv,
|
|
38
|
+
serializeBookSlim,
|
|
39
|
+
serializePersonExtended,
|
|
40
|
+
serializePersonProv,
|
|
41
|
+
serializePersonSlim,
|
|
42
|
+
serializeTagExtended,
|
|
43
|
+
serializeTagProv,
|
|
44
|
+
serializeTagSlim
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"mappings":"","names":[]}
|