@@ -109,6 +109,12 @@ export class Metadata {
109109 : undefined ;
110110 }
111111
112+ @Memoize ( ) get contact ( ) : StringField | undefined {
113+ return this . rawMetadata . contact != null
114+ ? new StringField ( this . rawMetadata . contact )
115+ : undefined ;
116+ }
117+
112118 @Memoize ( ) get contributor ( ) : StringField | undefined {
113119 return this . rawMetadata . contributor != null
114120 ? new StringField ( this . rawMetadata . contributor )
@@ -127,6 +133,18 @@ export class Metadata {
127133 : undefined ;
128134 }
129135
136+ @Memoize ( ) get creator_alt_script ( ) : StringField | undefined {
137+ return this . rawMetadata [ 'creator-alt-script' ] != null
138+ ? new StringField ( this . rawMetadata [ 'creator-alt-script' ] )
139+ : undefined ;
140+ }
141+
142+ @Memoize ( ) get credits ( ) : StringField | undefined {
143+ return this . rawMetadata . credits != null
144+ ? new StringField ( this . rawMetadata . credits )
145+ : undefined ;
146+ }
147+
130148 @Memoize ( ) get collection_layout ( ) : StringField | undefined {
131149 return this . rawMetadata . collection_layout != null
132150 ? new StringField ( this . rawMetadata . collection_layout )
@@ -175,6 +193,12 @@ export class Metadata {
175193 : undefined ;
176194 }
177195
196+ @Memoize ( ) get external_link ( ) : StringField | undefined {
197+ return this . rawMetadata [ 'external-link' ] != null
198+ ? new StringField ( this . rawMetadata [ 'external-link' ] )
199+ : undefined ;
200+ }
201+
178202 /**
179203 * The number of files in an item
180204 *
@@ -241,6 +265,12 @@ export class Metadata {
241265 : undefined ;
242266 }
243267
268+ @Memoize ( ) get licenseurl ( ) : StringField | undefined {
269+ return this . rawMetadata . licenseurl != null
270+ ? new StringField ( this . rawMetadata . licenseurl )
271+ : undefined ;
272+ }
273+
244274 @Memoize ( ) get lineage ( ) : StringField | undefined {
245275 return this . rawMetadata . lineage != null
246276 ? new StringField ( this . rawMetadata . lineage )
@@ -313,12 +343,24 @@ export class Metadata {
313343 : undefined ;
314344 }
315345
346+ @Memoize ( ) get paginated ( ) : BooleanField | undefined {
347+ return this . rawMetadata . paginated != null
348+ ? new BooleanField ( this . rawMetadata . paginated )
349+ : undefined ;
350+ }
351+
316352 @Memoize ( ) get partner ( ) : StringField | undefined {
317353 return this . rawMetadata . partner != null
318354 ? new StringField ( this . rawMetadata . partner )
319355 : undefined ;
320356 }
321357
358+ @Memoize ( ) get post_text ( ) : StringField | undefined {
359+ return this . rawMetadata . post_text != null
360+ ? new StringField ( this . rawMetadata . post_text )
361+ : undefined ;
362+ }
363+
322364 @Memoize ( ) get ppi ( ) : NumberField | undefined {
323365 return this . rawMetadata . ppi != null
324366 ? new NumberField ( this . rawMetadata . ppi )
@@ -343,6 +385,19 @@ export class Metadata {
343385 : undefined ;
344386 }
345387
388+ @Memoize ( ) get rights ( ) : StringField | undefined {
389+ return this . rawMetadata . rights != null
390+ ? new StringField ( this . rawMetadata . rights )
391+ : undefined ;
392+ }
393+
394+ @Memoize ( ) get rights_holder ( ) : StringField | undefined {
395+ const value =
396+ this . rawMetadata [ 'rights-holder' ] ?? this . rawMetadata . rights_holder ;
397+
398+ return value != null ? new StringField ( value ) : undefined ;
399+ }
400+
346401 @Memoize ( ) get runtime ( ) : DurationField | undefined {
347402 return this . rawMetadata . runtime != null
348403 ? new DurationField ( this . rawMetadata . runtime )
@@ -355,12 +410,30 @@ export class Metadata {
355410 : undefined ;
356411 }
357412
413+ @Memoize ( ) get segments ( ) : StringField | undefined {
414+ return this . rawMetadata . segments != null
415+ ? new StringField ( this . rawMetadata . segments )
416+ : undefined ;
417+ }
418+
419+ @Memoize ( ) get shotlist ( ) : StringField | undefined {
420+ return this . rawMetadata . shotlist != null
421+ ? new StringField ( this . rawMetadata . shotlist )
422+ : undefined ;
423+ }
424+
358425 @Memoize ( ) get source ( ) : StringField | undefined {
359426 return this . rawMetadata . source != null
360427 ? new StringField ( this . rawMetadata . source )
361428 : undefined ;
362429 }
363430
431+ @Memoize ( ) get sponsor ( ) : StringField | undefined {
432+ return this . rawMetadata . sponsor != null
433+ ? new StringField ( this . rawMetadata . sponsor )
434+ : undefined ;
435+ }
436+
364437 @Memoize ( ) get start_localtime ( ) : DateField | undefined {
365438 return this . rawMetadata . start_localtime != null
366439 ? new DateField ( this . rawMetadata . start_localtime )
@@ -397,6 +470,12 @@ export class Metadata {
397470 : undefined ;
398471 }
399472
473+ @Memoize ( ) get title_alt_script ( ) : StringField | undefined {
474+ return this . rawMetadata [ 'title-alt-script' ] != null
475+ ? new StringField ( this . rawMetadata [ 'title-alt-script' ] )
476+ : undefined ;
477+ }
478+
400479 @Memoize ( ) get transferer ( ) : StringField | undefined {
401480 return this . rawMetadata . transferer != null
402481 ? new StringField ( this . rawMetadata . transferer )
0 commit comments