@everipedia/iq-utils 2.0.0 → 2.0.2
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/CHANGELOG.md +13 -1
- package/dist/index.d.mts +55 -364
- package/dist/index.d.ts +55 -364
- package/dist/index.js +120 -130
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +110 -130
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ declare const MediaType: z.ZodEnum<["GALLERY", "ICON"]>;
|
|
|
9
9
|
type MediaType = z.infer<typeof MediaType>;
|
|
10
10
|
declare const MediaSource: z.ZodEnum<["IPFS_IMG", "VIMEO", "YOUTUBE", "IPFS_VID"]>;
|
|
11
11
|
type MediaSource = z.infer<typeof MediaSource>;
|
|
12
|
-
declare const CommonMetaIds: z.ZodEnum<["references", "website", "contract_url", "location", "email_url", "facebook_profile", "instagram_profile", "twitter_profile", "linkedin_profile", "youtube_profile", "discord_profile", "reddit_profile", "telegram_profile", "github_profile", "coinmarketcap_url", "coingecko_profile", "opensea_profile", "medium_profile", "mirror_profile", "tiktok_profile", "
|
|
12
|
+
declare const CommonMetaIds: z.ZodEnum<["references", "website", "contract_url", "location", "email_url", "facebook_profile", "instagram_profile", "twitter_profile", "linkedin_profile", "youtube_profile", "discord_profile", "reddit_profile", "telegram_profile", "github_profile", "coinmarketcap_url", "coingecko_profile", "opensea_profile", "medium_profile", "mirror_profile", "tiktok_profile", "explorer_injective_profile"]>;
|
|
13
13
|
type CommonMetaIds = z.infer<typeof CommonMetaIds>;
|
|
14
|
-
declare const EditSpecificMetaIds: z.ZodEnum<["previous_cid", "commit-message"
|
|
14
|
+
declare const EditSpecificMetaIds: z.ZodEnum<["previous_cid", "commit-message"]>;
|
|
15
15
|
type EditSpecificMetaIds = z.infer<typeof EditSpecificMetaIds>;
|
|
16
16
|
declare const ValidatorCodes: z.ZodEnum<["VALID_WIKI", "ID_ERROR", "LANGUAGE_ERROR", "USER_ERROR", "WORD_COUNT_ERROR", "CATEGORY_ERROR", "SUMMARY_ERROR", "IMAGE_ERROR", "TAG_ERROR", "EXTERNAL_URL_ERROR", "METADATA_ERROR", "MEDIA_ERROR", "GLOBAL_RATE_LIMIT", "LINKED_WIKIS", "EVENTS_ERROR"]>;
|
|
17
17
|
type ValidatorCodes = z.infer<typeof ValidatorCodes>;
|
|
@@ -125,13 +125,13 @@ declare const Media: z.ZodObject<{
|
|
|
125
125
|
}>;
|
|
126
126
|
type Media = z.infer<typeof Media>;
|
|
127
127
|
declare const MetaData: z.ZodObject<{
|
|
128
|
-
id: z.
|
|
128
|
+
id: z.ZodString;
|
|
129
129
|
value: z.ZodAny;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
id:
|
|
131
|
+
id: string;
|
|
132
132
|
value?: any;
|
|
133
133
|
}, {
|
|
134
|
-
id:
|
|
134
|
+
id: string;
|
|
135
135
|
value?: any;
|
|
136
136
|
}>;
|
|
137
137
|
type MetaData = z.infer<typeof MetaData>;
|
|
@@ -147,24 +147,24 @@ declare const BaseCategory: z.ZodObject<{
|
|
|
147
147
|
}>;
|
|
148
148
|
type BaseCategory = z.infer<typeof BaseCategory>;
|
|
149
149
|
declare const BaseEvents: z.ZodObject<{
|
|
150
|
-
id: z.
|
|
150
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
151
|
date: z.ZodNullable<z.ZodString>;
|
|
152
|
-
title: z.
|
|
152
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
153
|
type: z.ZodNullable<z.ZodEnum<["CREATED", "DEFAULT", "MULTIDATE"]>>;
|
|
154
|
-
description: z.
|
|
155
|
-
link: z.
|
|
156
|
-
multiDateStart: z.
|
|
157
|
-
multiDateEnd: z.
|
|
158
|
-
continent: z.
|
|
159
|
-
country: z.
|
|
160
|
-
action: z.
|
|
154
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
multiDateStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
|
+
multiDateEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
continent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodEnum<["DELETE", "EDIT", "CREATE"]>>>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
162
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
163
163
|
date: string | null;
|
|
164
164
|
id?: string | null | undefined;
|
|
165
|
+
link?: string | null | undefined;
|
|
165
166
|
title?: string | null | undefined;
|
|
166
167
|
description?: string | null | undefined;
|
|
167
|
-
link?: string | null | undefined;
|
|
168
168
|
multiDateStart?: string | null | undefined;
|
|
169
169
|
multiDateEnd?: string | null | undefined;
|
|
170
170
|
continent?: string | null | undefined;
|
|
@@ -174,9 +174,9 @@ declare const BaseEvents: z.ZodObject<{
|
|
|
174
174
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
175
175
|
date: string | null;
|
|
176
176
|
id?: string | null | undefined;
|
|
177
|
+
link?: string | null | undefined;
|
|
177
178
|
title?: string | null | undefined;
|
|
178
179
|
description?: string | null | undefined;
|
|
179
|
-
link?: string | null | undefined;
|
|
180
180
|
multiDateStart?: string | null | undefined;
|
|
181
181
|
multiDateEnd?: string | null | undefined;
|
|
182
182
|
continent?: string | null | undefined;
|
|
@@ -184,17 +184,6 @@ declare const BaseEvents: z.ZodObject<{
|
|
|
184
184
|
action?: "DELETE" | "EDIT" | "CREATE" | null | undefined;
|
|
185
185
|
}>;
|
|
186
186
|
type BaseEvents = z.infer<typeof BaseEvents>;
|
|
187
|
-
declare const WikiReference: z.ZodObject<{
|
|
188
|
-
id: z.ZodString;
|
|
189
|
-
title: z.ZodString;
|
|
190
|
-
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
id: string;
|
|
192
|
-
title: string;
|
|
193
|
-
}, {
|
|
194
|
-
id: string;
|
|
195
|
-
title: string;
|
|
196
|
-
}>;
|
|
197
|
-
type WikiReference = z.infer<typeof WikiReference>;
|
|
198
187
|
/**
|
|
199
188
|
* ========================
|
|
200
189
|
* ===== Core Schemas =====
|
|
@@ -203,7 +192,6 @@ type WikiReference = z.infer<typeof WikiReference>;
|
|
|
203
192
|
declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
204
193
|
id: z.ZodString;
|
|
205
194
|
title: z.ZodString;
|
|
206
|
-
ipfs: z.ZodOptional<z.ZodString>;
|
|
207
195
|
content: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
208
196
|
summary: z.ZodString;
|
|
209
197
|
images: z.ZodArray<z.ZodObject<{
|
|
@@ -226,7 +214,7 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
226
214
|
id: "nfts" | "defi" | "exchanges" | "cryptocurrencies" | "daos" | "people" | "dapps" | "organizations";
|
|
227
215
|
title: string;
|
|
228
216
|
}>, "many">;
|
|
229
|
-
tags: z.ZodEffects<z.
|
|
217
|
+
tags: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
230
218
|
id: z.ZodString;
|
|
231
219
|
}, "strip", z.ZodTypeAny, {
|
|
232
220
|
id: string;
|
|
@@ -236,10 +224,6 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
236
224
|
id: "Artists" | "AI" | "BinanceSmartChain" | "Blockchains" | "CEXes" | "Collections" | "Collectors" | "Conference" | "DEXes" | "Developers" | "Entertainment" | "Ethereum" | "Events" | "Forum" | "Founders" | "Festival" | "Games" | "Glossary" | "Hackathon" | "Marketplaces" | "Memecoins" | "Organizations" | "Online" | "PeopleInDeFi" | "Polkadot" | "Polygon" | "Protocols" | "Solana" | "Speakers" | "Stablecoins" | "Venture";
|
|
237
225
|
}[], {
|
|
238
226
|
id: string;
|
|
239
|
-
}[]>, {
|
|
240
|
-
id: "Artists" | "AI" | "BinanceSmartChain" | "Blockchains" | "CEXes" | "Collections" | "Collectors" | "Conference" | "DEXes" | "Developers" | "Entertainment" | "Ethereum" | "Events" | "Forum" | "Founders" | "Festival" | "Games" | "Glossary" | "Hackathon" | "Marketplaces" | "Memecoins" | "Organizations" | "Online" | "PeopleInDeFi" | "Polkadot" | "Polygon" | "Protocols" | "Solana" | "Speakers" | "Stablecoins" | "Venture";
|
|
241
|
-
}[], {
|
|
242
|
-
id: string;
|
|
243
227
|
}[]>;
|
|
244
228
|
media: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
245
229
|
id: z.ZodString;
|
|
@@ -282,41 +266,47 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
282
266
|
caption?: string | null | undefined;
|
|
283
267
|
thumbnail?: string | null | undefined;
|
|
284
268
|
}[]>>;
|
|
285
|
-
metadata: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
286
|
-
id: z.
|
|
269
|
+
metadata: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
270
|
+
id: z.ZodString;
|
|
287
271
|
value: z.ZodAny;
|
|
288
272
|
}, "strip", z.ZodTypeAny, {
|
|
289
|
-
id:
|
|
273
|
+
id: string;
|
|
290
274
|
value?: any;
|
|
291
275
|
}, {
|
|
292
|
-
id:
|
|
276
|
+
id: string;
|
|
293
277
|
value?: any;
|
|
294
278
|
}>, "many">, {
|
|
295
|
-
id:
|
|
279
|
+
id: string;
|
|
296
280
|
value?: any;
|
|
297
281
|
}[], {
|
|
298
|
-
id:
|
|
282
|
+
id: string;
|
|
283
|
+
value?: any;
|
|
284
|
+
}[]>, {
|
|
285
|
+
id: string;
|
|
286
|
+
value?: any;
|
|
287
|
+
}[], {
|
|
288
|
+
id: string;
|
|
299
289
|
value?: any;
|
|
300
290
|
}[]>;
|
|
301
|
-
events: z.
|
|
302
|
-
id: z.
|
|
291
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
292
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
293
|
date: z.ZodNullable<z.ZodString>;
|
|
304
|
-
title: z.
|
|
294
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
295
|
type: z.ZodNullable<z.ZodEnum<["CREATED", "DEFAULT", "MULTIDATE"]>>;
|
|
306
|
-
description: z.
|
|
307
|
-
link: z.
|
|
308
|
-
multiDateStart: z.
|
|
309
|
-
multiDateEnd: z.
|
|
310
|
-
continent: z.
|
|
311
|
-
country: z.
|
|
312
|
-
action: z.
|
|
296
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
multiDateStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
multiDateEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
continent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodEnum<["DELETE", "EDIT", "CREATE"]>>>;
|
|
313
303
|
}, "strip", z.ZodTypeAny, {
|
|
314
304
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
315
305
|
date: string | null;
|
|
316
306
|
id?: string | null | undefined;
|
|
307
|
+
link?: string | null | undefined;
|
|
317
308
|
title?: string | null | undefined;
|
|
318
309
|
description?: string | null | undefined;
|
|
319
|
-
link?: string | null | undefined;
|
|
320
310
|
multiDateStart?: string | null | undefined;
|
|
321
311
|
multiDateEnd?: string | null | undefined;
|
|
322
312
|
continent?: string | null | undefined;
|
|
@@ -326,9 +316,9 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
326
316
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
327
317
|
date: string | null;
|
|
328
318
|
id?: string | null | undefined;
|
|
319
|
+
link?: string | null | undefined;
|
|
329
320
|
title?: string | null | undefined;
|
|
330
321
|
description?: string | null | undefined;
|
|
331
|
-
link?: string | null | undefined;
|
|
332
322
|
multiDateStart?: string | null | undefined;
|
|
333
323
|
multiDateEnd?: string | null | undefined;
|
|
334
324
|
continent?: string | null | undefined;
|
|
@@ -337,159 +327,24 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
337
327
|
}>, "many">>>;
|
|
338
328
|
user: z.ZodObject<{
|
|
339
329
|
id: z.ZodString;
|
|
340
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
341
|
-
id: z.ZodNullable<z.ZodString>;
|
|
342
|
-
username: z.ZodNullable<z.ZodString>;
|
|
343
|
-
bio: z.ZodNullable<z.ZodString>;
|
|
344
|
-
links: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
345
|
-
twitter: z.ZodNullable<z.ZodString>;
|
|
346
|
-
website: z.ZodNullable<z.ZodString>;
|
|
347
|
-
instagram: z.ZodNullable<z.ZodString>;
|
|
348
|
-
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
website: string | null;
|
|
350
|
-
twitter: string | null;
|
|
351
|
-
instagram: string | null;
|
|
352
|
-
}, {
|
|
353
|
-
website: string | null;
|
|
354
|
-
twitter: string | null;
|
|
355
|
-
instagram: string | null;
|
|
356
|
-
}>, "many">>;
|
|
357
|
-
banner: z.ZodNullable<z.ZodString>;
|
|
358
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
359
|
-
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
id: string | null;
|
|
361
|
-
username: string | null;
|
|
362
|
-
bio: string | null;
|
|
363
|
-
links: {
|
|
364
|
-
website: string | null;
|
|
365
|
-
twitter: string | null;
|
|
366
|
-
instagram: string | null;
|
|
367
|
-
}[] | null;
|
|
368
|
-
banner: string | null;
|
|
369
|
-
avatar: string | null;
|
|
370
|
-
}, {
|
|
371
|
-
id: string | null;
|
|
372
|
-
username: string | null;
|
|
373
|
-
bio: string | null;
|
|
374
|
-
links: {
|
|
375
|
-
website: string | null;
|
|
376
|
-
twitter: string | null;
|
|
377
|
-
instagram: string | null;
|
|
378
|
-
}[] | null;
|
|
379
|
-
banner: string | null;
|
|
380
|
-
avatar: string | null;
|
|
381
|
-
}>>;
|
|
382
330
|
}, "strip", z.ZodTypeAny, {
|
|
383
331
|
id: string;
|
|
384
|
-
profile: {
|
|
385
|
-
id: string | null;
|
|
386
|
-
username: string | null;
|
|
387
|
-
bio: string | null;
|
|
388
|
-
links: {
|
|
389
|
-
website: string | null;
|
|
390
|
-
twitter: string | null;
|
|
391
|
-
instagram: string | null;
|
|
392
|
-
}[] | null;
|
|
393
|
-
banner: string | null;
|
|
394
|
-
avatar: string | null;
|
|
395
|
-
} | null;
|
|
396
332
|
}, {
|
|
397
333
|
id: string;
|
|
398
|
-
profile: {
|
|
399
|
-
id: string | null;
|
|
400
|
-
username: string | null;
|
|
401
|
-
bio: string | null;
|
|
402
|
-
links: {
|
|
403
|
-
website: string | null;
|
|
404
|
-
twitter: string | null;
|
|
405
|
-
instagram: string | null;
|
|
406
|
-
}[] | null;
|
|
407
|
-
banner: string | null;
|
|
408
|
-
avatar: string | null;
|
|
409
|
-
} | null;
|
|
410
334
|
}>;
|
|
411
335
|
author: z.ZodObject<{
|
|
412
336
|
id: z.ZodString;
|
|
413
|
-
profile: z.ZodNullable<z.ZodObject<{
|
|
414
|
-
id: z.ZodNullable<z.ZodString>;
|
|
415
|
-
username: z.ZodNullable<z.ZodString>;
|
|
416
|
-
bio: z.ZodNullable<z.ZodString>;
|
|
417
|
-
links: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
418
|
-
twitter: z.ZodNullable<z.ZodString>;
|
|
419
|
-
website: z.ZodNullable<z.ZodString>;
|
|
420
|
-
instagram: z.ZodNullable<z.ZodString>;
|
|
421
|
-
}, "strip", z.ZodTypeAny, {
|
|
422
|
-
website: string | null;
|
|
423
|
-
twitter: string | null;
|
|
424
|
-
instagram: string | null;
|
|
425
|
-
}, {
|
|
426
|
-
website: string | null;
|
|
427
|
-
twitter: string | null;
|
|
428
|
-
instagram: string | null;
|
|
429
|
-
}>, "many">>;
|
|
430
|
-
banner: z.ZodNullable<z.ZodString>;
|
|
431
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
432
|
-
}, "strip", z.ZodTypeAny, {
|
|
433
|
-
id: string | null;
|
|
434
|
-
username: string | null;
|
|
435
|
-
bio: string | null;
|
|
436
|
-
links: {
|
|
437
|
-
website: string | null;
|
|
438
|
-
twitter: string | null;
|
|
439
|
-
instagram: string | null;
|
|
440
|
-
}[] | null;
|
|
441
|
-
banner: string | null;
|
|
442
|
-
avatar: string | null;
|
|
443
|
-
}, {
|
|
444
|
-
id: string | null;
|
|
445
|
-
username: string | null;
|
|
446
|
-
bio: string | null;
|
|
447
|
-
links: {
|
|
448
|
-
website: string | null;
|
|
449
|
-
twitter: string | null;
|
|
450
|
-
instagram: string | null;
|
|
451
|
-
}[] | null;
|
|
452
|
-
banner: string | null;
|
|
453
|
-
avatar: string | null;
|
|
454
|
-
}>>;
|
|
455
337
|
}, "strip", z.ZodTypeAny, {
|
|
456
338
|
id: string;
|
|
457
|
-
profile: {
|
|
458
|
-
id: string | null;
|
|
459
|
-
username: string | null;
|
|
460
|
-
bio: string | null;
|
|
461
|
-
links: {
|
|
462
|
-
website: string | null;
|
|
463
|
-
twitter: string | null;
|
|
464
|
-
instagram: string | null;
|
|
465
|
-
}[] | null;
|
|
466
|
-
banner: string | null;
|
|
467
|
-
avatar: string | null;
|
|
468
|
-
} | null;
|
|
469
339
|
}, {
|
|
470
340
|
id: string;
|
|
471
|
-
profile: {
|
|
472
|
-
id: string | null;
|
|
473
|
-
username: string | null;
|
|
474
|
-
bio: string | null;
|
|
475
|
-
links: {
|
|
476
|
-
website: string | null;
|
|
477
|
-
twitter: string | null;
|
|
478
|
-
instagram: string | null;
|
|
479
|
-
}[] | null;
|
|
480
|
-
banner: string | null;
|
|
481
|
-
avatar: string | null;
|
|
482
|
-
} | null;
|
|
483
341
|
}>;
|
|
484
342
|
language: z.ZodDefault<z.ZodEnum<["en", "es", "zh", "ko"]>>;
|
|
485
343
|
version: z.ZodDefault<z.ZodNumber>;
|
|
486
|
-
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
487
|
-
promoted: z.ZodDefault<z.ZodNumber>;
|
|
488
|
-
views: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
489
344
|
linkedWikis: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
490
|
-
blockchains: z.
|
|
491
|
-
founders: z.
|
|
492
|
-
speakers: z.
|
|
345
|
+
blockchains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
346
|
+
founders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
347
|
+
speakers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
493
348
|
}, "strip", z.ZodTypeAny, {
|
|
494
349
|
founders?: string[] | null | undefined;
|
|
495
350
|
blockchains?: string[] | null | undefined;
|
|
@@ -499,26 +354,6 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
499
354
|
blockchains?: string[] | null | undefined;
|
|
500
355
|
speakers?: string[] | null | undefined;
|
|
501
356
|
}>>>>;
|
|
502
|
-
founderWikis: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
503
|
-
id: z.ZodString;
|
|
504
|
-
title: z.ZodString;
|
|
505
|
-
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
id: string;
|
|
507
|
-
title: string;
|
|
508
|
-
}, {
|
|
509
|
-
id: string;
|
|
510
|
-
title: string;
|
|
511
|
-
}>, "many">>>;
|
|
512
|
-
blockchainWikis: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
513
|
-
id: z.ZodString;
|
|
514
|
-
title: z.ZodString;
|
|
515
|
-
}, "strip", z.ZodTypeAny, {
|
|
516
|
-
id: string;
|
|
517
|
-
title: string;
|
|
518
|
-
}, {
|
|
519
|
-
id: string;
|
|
520
|
-
title: string;
|
|
521
|
-
}>, "many">>>;
|
|
522
357
|
}, "strip", z.ZodTypeAny, {
|
|
523
358
|
id: string;
|
|
524
359
|
title: string;
|
|
@@ -536,58 +371,22 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
536
371
|
id: "Artists" | "AI" | "BinanceSmartChain" | "Blockchains" | "CEXes" | "Collections" | "Collectors" | "Conference" | "DEXes" | "Developers" | "Entertainment" | "Ethereum" | "Events" | "Forum" | "Founders" | "Festival" | "Games" | "Glossary" | "Hackathon" | "Marketplaces" | "Memecoins" | "Organizations" | "Online" | "PeopleInDeFi" | "Polkadot" | "Polygon" | "Protocols" | "Solana" | "Speakers" | "Stablecoins" | "Venture";
|
|
537
372
|
}[];
|
|
538
373
|
metadata: {
|
|
539
|
-
id:
|
|
374
|
+
id: string;
|
|
540
375
|
value?: any;
|
|
541
376
|
}[];
|
|
542
377
|
user: {
|
|
543
378
|
id: string;
|
|
544
|
-
profile: {
|
|
545
|
-
id: string | null;
|
|
546
|
-
username: string | null;
|
|
547
|
-
bio: string | null;
|
|
548
|
-
links: {
|
|
549
|
-
website: string | null;
|
|
550
|
-
twitter: string | null;
|
|
551
|
-
instagram: string | null;
|
|
552
|
-
}[] | null;
|
|
553
|
-
banner: string | null;
|
|
554
|
-
avatar: string | null;
|
|
555
|
-
} | null;
|
|
556
379
|
};
|
|
557
380
|
author: {
|
|
558
381
|
id: string;
|
|
559
|
-
profile: {
|
|
560
|
-
id: string | null;
|
|
561
|
-
username: string | null;
|
|
562
|
-
bio: string | null;
|
|
563
|
-
links: {
|
|
564
|
-
website: string | null;
|
|
565
|
-
twitter: string | null;
|
|
566
|
-
instagram: string | null;
|
|
567
|
-
}[] | null;
|
|
568
|
-
banner: string | null;
|
|
569
|
-
avatar: string | null;
|
|
570
|
-
} | null;
|
|
571
382
|
};
|
|
572
383
|
language: "en" | "es" | "zh" | "ko";
|
|
573
384
|
version: number;
|
|
574
|
-
hidden: boolean;
|
|
575
|
-
promoted: number;
|
|
576
|
-
views: number;
|
|
577
385
|
linkedWikis: {
|
|
578
386
|
founders?: string[] | null | undefined;
|
|
579
387
|
blockchains?: string[] | null | undefined;
|
|
580
388
|
speakers?: string[] | null | undefined;
|
|
581
389
|
} | null;
|
|
582
|
-
founderWikis: {
|
|
583
|
-
id: string;
|
|
584
|
-
title: string;
|
|
585
|
-
}[];
|
|
586
|
-
blockchainWikis: {
|
|
587
|
-
id: string;
|
|
588
|
-
title: string;
|
|
589
|
-
}[];
|
|
590
|
-
ipfs?: string | undefined;
|
|
591
390
|
media?: {
|
|
592
391
|
id: string;
|
|
593
392
|
source: "IPFS_IMG" | "VIMEO" | "YOUTUBE" | "IPFS_VID";
|
|
@@ -601,9 +400,9 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
601
400
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
602
401
|
date: string | null;
|
|
603
402
|
id?: string | null | undefined;
|
|
403
|
+
link?: string | null | undefined;
|
|
604
404
|
title?: string | null | undefined;
|
|
605
405
|
description?: string | null | undefined;
|
|
606
|
-
link?: string | null | undefined;
|
|
607
406
|
multiDateStart?: string | null | undefined;
|
|
608
407
|
multiDateEnd?: string | null | undefined;
|
|
609
408
|
continent?: string | null | undefined;
|
|
@@ -627,40 +426,15 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
627
426
|
id: string;
|
|
628
427
|
}[];
|
|
629
428
|
metadata: {
|
|
630
|
-
id:
|
|
429
|
+
id: string;
|
|
631
430
|
value?: any;
|
|
632
431
|
}[];
|
|
633
432
|
user: {
|
|
634
433
|
id: string;
|
|
635
|
-
profile: {
|
|
636
|
-
id: string | null;
|
|
637
|
-
username: string | null;
|
|
638
|
-
bio: string | null;
|
|
639
|
-
links: {
|
|
640
|
-
website: string | null;
|
|
641
|
-
twitter: string | null;
|
|
642
|
-
instagram: string | null;
|
|
643
|
-
}[] | null;
|
|
644
|
-
banner: string | null;
|
|
645
|
-
avatar: string | null;
|
|
646
|
-
} | null;
|
|
647
434
|
};
|
|
648
435
|
author: {
|
|
649
436
|
id: string;
|
|
650
|
-
profile: {
|
|
651
|
-
id: string | null;
|
|
652
|
-
username: string | null;
|
|
653
|
-
bio: string | null;
|
|
654
|
-
links: {
|
|
655
|
-
website: string | null;
|
|
656
|
-
twitter: string | null;
|
|
657
|
-
instagram: string | null;
|
|
658
|
-
}[] | null;
|
|
659
|
-
banner: string | null;
|
|
660
|
-
avatar: string | null;
|
|
661
|
-
} | null;
|
|
662
437
|
};
|
|
663
|
-
ipfs?: string | undefined;
|
|
664
438
|
media?: {
|
|
665
439
|
id: string;
|
|
666
440
|
source: "IPFS_IMG" | "VIMEO" | "YOUTUBE" | "IPFS_VID";
|
|
@@ -674,9 +448,9 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
674
448
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
675
449
|
date: string | null;
|
|
676
450
|
id?: string | null | undefined;
|
|
451
|
+
link?: string | null | undefined;
|
|
677
452
|
title?: string | null | undefined;
|
|
678
453
|
description?: string | null | undefined;
|
|
679
|
-
link?: string | null | undefined;
|
|
680
454
|
multiDateStart?: string | null | undefined;
|
|
681
455
|
multiDateEnd?: string | null | undefined;
|
|
682
456
|
continent?: string | null | undefined;
|
|
@@ -685,22 +459,11 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
685
459
|
}[] | null | undefined;
|
|
686
460
|
language?: "en" | "es" | "zh" | "ko" | undefined;
|
|
687
461
|
version?: number | undefined;
|
|
688
|
-
hidden?: boolean | undefined;
|
|
689
|
-
promoted?: number | undefined;
|
|
690
|
-
views?: number | undefined;
|
|
691
462
|
linkedWikis?: {
|
|
692
463
|
founders?: string[] | null | undefined;
|
|
693
464
|
blockchains?: string[] | null | undefined;
|
|
694
465
|
speakers?: string[] | null | undefined;
|
|
695
466
|
} | null | undefined;
|
|
696
|
-
founderWikis?: {
|
|
697
|
-
id: string;
|
|
698
|
-
title: string;
|
|
699
|
-
}[] | undefined;
|
|
700
|
-
blockchainWikis?: {
|
|
701
|
-
id: string;
|
|
702
|
-
title: string;
|
|
703
|
-
}[] | undefined;
|
|
704
467
|
}>, {
|
|
705
468
|
id: string;
|
|
706
469
|
title: string;
|
|
@@ -718,58 +481,22 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
718
481
|
id: "Artists" | "AI" | "BinanceSmartChain" | "Blockchains" | "CEXes" | "Collections" | "Collectors" | "Conference" | "DEXes" | "Developers" | "Entertainment" | "Ethereum" | "Events" | "Forum" | "Founders" | "Festival" | "Games" | "Glossary" | "Hackathon" | "Marketplaces" | "Memecoins" | "Organizations" | "Online" | "PeopleInDeFi" | "Polkadot" | "Polygon" | "Protocols" | "Solana" | "Speakers" | "Stablecoins" | "Venture";
|
|
719
482
|
}[];
|
|
720
483
|
metadata: {
|
|
721
|
-
id:
|
|
484
|
+
id: string;
|
|
722
485
|
value?: any;
|
|
723
486
|
}[];
|
|
724
487
|
user: {
|
|
725
488
|
id: string;
|
|
726
|
-
profile: {
|
|
727
|
-
id: string | null;
|
|
728
|
-
username: string | null;
|
|
729
|
-
bio: string | null;
|
|
730
|
-
links: {
|
|
731
|
-
website: string | null;
|
|
732
|
-
twitter: string | null;
|
|
733
|
-
instagram: string | null;
|
|
734
|
-
}[] | null;
|
|
735
|
-
banner: string | null;
|
|
736
|
-
avatar: string | null;
|
|
737
|
-
} | null;
|
|
738
489
|
};
|
|
739
490
|
author: {
|
|
740
491
|
id: string;
|
|
741
|
-
profile: {
|
|
742
|
-
id: string | null;
|
|
743
|
-
username: string | null;
|
|
744
|
-
bio: string | null;
|
|
745
|
-
links: {
|
|
746
|
-
website: string | null;
|
|
747
|
-
twitter: string | null;
|
|
748
|
-
instagram: string | null;
|
|
749
|
-
}[] | null;
|
|
750
|
-
banner: string | null;
|
|
751
|
-
avatar: string | null;
|
|
752
|
-
} | null;
|
|
753
492
|
};
|
|
754
493
|
language: "en" | "es" | "zh" | "ko";
|
|
755
494
|
version: number;
|
|
756
|
-
hidden: boolean;
|
|
757
|
-
promoted: number;
|
|
758
|
-
views: number;
|
|
759
495
|
linkedWikis: {
|
|
760
496
|
founders?: string[] | null | undefined;
|
|
761
497
|
blockchains?: string[] | null | undefined;
|
|
762
498
|
speakers?: string[] | null | undefined;
|
|
763
499
|
} | null;
|
|
764
|
-
founderWikis: {
|
|
765
|
-
id: string;
|
|
766
|
-
title: string;
|
|
767
|
-
}[];
|
|
768
|
-
blockchainWikis: {
|
|
769
|
-
id: string;
|
|
770
|
-
title: string;
|
|
771
|
-
}[];
|
|
772
|
-
ipfs?: string | undefined;
|
|
773
500
|
media?: {
|
|
774
501
|
id: string;
|
|
775
502
|
source: "IPFS_IMG" | "VIMEO" | "YOUTUBE" | "IPFS_VID";
|
|
@@ -783,9 +510,9 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
783
510
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
784
511
|
date: string | null;
|
|
785
512
|
id?: string | null | undefined;
|
|
513
|
+
link?: string | null | undefined;
|
|
786
514
|
title?: string | null | undefined;
|
|
787
515
|
description?: string | null | undefined;
|
|
788
|
-
link?: string | null | undefined;
|
|
789
516
|
multiDateStart?: string | null | undefined;
|
|
790
517
|
multiDateEnd?: string | null | undefined;
|
|
791
518
|
continent?: string | null | undefined;
|
|
@@ -809,40 +536,15 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
809
536
|
id: string;
|
|
810
537
|
}[];
|
|
811
538
|
metadata: {
|
|
812
|
-
id:
|
|
539
|
+
id: string;
|
|
813
540
|
value?: any;
|
|
814
541
|
}[];
|
|
815
542
|
user: {
|
|
816
543
|
id: string;
|
|
817
|
-
profile: {
|
|
818
|
-
id: string | null;
|
|
819
|
-
username: string | null;
|
|
820
|
-
bio: string | null;
|
|
821
|
-
links: {
|
|
822
|
-
website: string | null;
|
|
823
|
-
twitter: string | null;
|
|
824
|
-
instagram: string | null;
|
|
825
|
-
}[] | null;
|
|
826
|
-
banner: string | null;
|
|
827
|
-
avatar: string | null;
|
|
828
|
-
} | null;
|
|
829
544
|
};
|
|
830
545
|
author: {
|
|
831
546
|
id: string;
|
|
832
|
-
profile: {
|
|
833
|
-
id: string | null;
|
|
834
|
-
username: string | null;
|
|
835
|
-
bio: string | null;
|
|
836
|
-
links: {
|
|
837
|
-
website: string | null;
|
|
838
|
-
twitter: string | null;
|
|
839
|
-
instagram: string | null;
|
|
840
|
-
}[] | null;
|
|
841
|
-
banner: string | null;
|
|
842
|
-
avatar: string | null;
|
|
843
|
-
} | null;
|
|
844
547
|
};
|
|
845
|
-
ipfs?: string | undefined;
|
|
846
548
|
media?: {
|
|
847
549
|
id: string;
|
|
848
550
|
source: "IPFS_IMG" | "VIMEO" | "YOUTUBE" | "IPFS_VID";
|
|
@@ -856,9 +558,9 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
856
558
|
type: "CREATED" | "DEFAULT" | "MULTIDATE" | null;
|
|
857
559
|
date: string | null;
|
|
858
560
|
id?: string | null | undefined;
|
|
561
|
+
link?: string | null | undefined;
|
|
859
562
|
title?: string | null | undefined;
|
|
860
563
|
description?: string | null | undefined;
|
|
861
|
-
link?: string | null | undefined;
|
|
862
564
|
multiDateStart?: string | null | undefined;
|
|
863
565
|
multiDateEnd?: string | null | undefined;
|
|
864
566
|
continent?: string | null | undefined;
|
|
@@ -867,22 +569,11 @@ declare const Wiki: z.ZodEffects<z.ZodObject<{
|
|
|
867
569
|
}[] | null | undefined;
|
|
868
570
|
language?: "en" | "es" | "zh" | "ko" | undefined;
|
|
869
571
|
version?: number | undefined;
|
|
870
|
-
hidden?: boolean | undefined;
|
|
871
|
-
promoted?: number | undefined;
|
|
872
|
-
views?: number | undefined;
|
|
873
572
|
linkedWikis?: {
|
|
874
573
|
founders?: string[] | null | undefined;
|
|
875
574
|
blockchains?: string[] | null | undefined;
|
|
876
575
|
speakers?: string[] | null | undefined;
|
|
877
576
|
} | null | undefined;
|
|
878
|
-
founderWikis?: {
|
|
879
|
-
id: string;
|
|
880
|
-
title: string;
|
|
881
|
-
}[] | undefined;
|
|
882
|
-
blockchainWikis?: {
|
|
883
|
-
id: string;
|
|
884
|
-
title: string;
|
|
885
|
-
}[] | undefined;
|
|
886
577
|
}>;
|
|
887
578
|
type Wiki = z.infer<typeof Wiki>;
|
|
888
579
|
declare const Reference: z.ZodObject<{
|
|
@@ -892,14 +583,14 @@ declare const Reference: z.ZodObject<{
|
|
|
892
583
|
url: z.ZodString;
|
|
893
584
|
}, "strip", z.ZodTypeAny, {
|
|
894
585
|
id: string;
|
|
586
|
+
url: string;
|
|
895
587
|
description: string;
|
|
896
588
|
timestamp: number;
|
|
897
|
-
url: string;
|
|
898
589
|
}, {
|
|
899
590
|
id: string;
|
|
591
|
+
url: string;
|
|
900
592
|
description: string;
|
|
901
593
|
timestamp: number;
|
|
902
|
-
url: string;
|
|
903
594
|
}>;
|
|
904
595
|
type Reference = z.infer<typeof Reference>;
|
|
905
596
|
|
|
@@ -999,4 +690,4 @@ declare const IDEAL_SOCIAL_MEDIA_COUNT = 4;
|
|
|
999
690
|
declare const WHITELISTED_DOMAINS: string[];
|
|
1000
691
|
declare const WHITELISTED_LINK_NAMES: string[];
|
|
1001
692
|
|
|
1002
|
-
export { BaseCategory, BaseEvents, CITATIONS_SCORE_WEIGHT, CONTENT_SCORE_WEIGHT, Category, CommonMetaIds, CreateNewWikiSlug, EditSpecificMetaIds, EditorContentOverride, EventType, GOOD_CONTENT_WORD_COUNT, IDEAL_CITATIONS_COUNT, IDEAL_CONTENT_WORD_COUNT, IDEAL_INTERNAL_LINKS_COUNT, IDEAL_MEDIA_COUNT, IDEAL_SOCIAL_MEDIA_COUNT, IDEAL_SUMMARY_LENGTH, IDEAL_TAGS_COUNT, INTERNAL_LINKS_SCORE_WEIGHT, IPFS_HASH_LENGTH, Image, LanguagesISO, LinkedWikiKey, MAX_MEDIA_COUNT, MEDIA_SCORE_WEIGHT, MEDIA_UPLOAD_PENDING_SUFFIX, MIN_CONTENT_WORD_COUNT, Media, MediaSource, MediaType, MetaData, ProfileData, ProfileLinks, Reference, SOCIAL_SCORE_WEIGHT, SUMMARY_SCORE_WEIGHT, TAGS_SCORE_WEIGHT, Tag, ValidatorCodes, WHITELISTED_DOMAINS, WHITELISTED_LINK_NAMES, WIKI_CONTENT_MIN_WORDS, WIKI_SUMMARY_MAX_LENGTH, WIKI_TITLE_MAX_LENGTH, Wiki,
|
|
693
|
+
export { BaseCategory, BaseEvents, CITATIONS_SCORE_WEIGHT, CONTENT_SCORE_WEIGHT, Category, CommonMetaIds, CreateNewWikiSlug, EditSpecificMetaIds, EditorContentOverride, EventType, GOOD_CONTENT_WORD_COUNT, IDEAL_CITATIONS_COUNT, IDEAL_CONTENT_WORD_COUNT, IDEAL_INTERNAL_LINKS_COUNT, IDEAL_MEDIA_COUNT, IDEAL_SOCIAL_MEDIA_COUNT, IDEAL_SUMMARY_LENGTH, IDEAL_TAGS_COUNT, INTERNAL_LINKS_SCORE_WEIGHT, IPFS_HASH_LENGTH, Image, LanguagesISO, LinkedWikiKey, MAX_MEDIA_COUNT, MEDIA_SCORE_WEIGHT, MEDIA_UPLOAD_PENDING_SUFFIX, MIN_CONTENT_WORD_COUNT, Media, MediaSource, MediaType, MetaData, ProfileData, ProfileLinks, Reference, SOCIAL_SCORE_WEIGHT, SUMMARY_SCORE_WEIGHT, TAGS_SCORE_WEIGHT, Tag, ValidatorCodes, WHITELISTED_DOMAINS, WHITELISTED_LINK_NAMES, WIKI_CONTENT_MIN_WORDS, WIKI_SUMMARY_MAX_LENGTH, WIKI_TITLE_MAX_LENGTH, Wiki, areContentLinksVerified, calculateWikiScore, countWords, hasNoCitations, isAnyMediaUploading, isEventDateMissing, isEventUrlMissing, isMediaValid, isSummaryTooLong, isValidUrl, validateWiki };
|