epublib 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,9 +150,29 @@ export declare const PackageMetadataCommonDublinCoreTerms: z.ZodObject<{
150
150
  "@_xml:lang": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
151
151
  "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
152
152
  }, z.core.$strip>>;
153
- "dc:date": z.ZodOptional<z.ZodObject<{
153
+ "dc:date": z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
154
+ "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
155
+ "@_opf:scheme": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
156
+ "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
157
+ }, z.core.$strip>>, z.ZodObject<{
158
+ "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
159
+ "@_opf:scheme": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
160
+ "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
161
+ }, z.core.$strip>]>, z.ZodTransform<{
162
+ "#text": string;
163
+ "@_id"?: string | undefined;
164
+ "@_opf:scheme"?: string | undefined;
165
+ }, {
166
+ "#text": string;
167
+ "@_id"?: string | undefined;
168
+ "@_opf:scheme"?: string | undefined;
169
+ } | {
170
+ "#text": string;
171
+ "@_id"?: string | undefined;
172
+ "@_opf:scheme"?: string | undefined;
173
+ }[]>>, z.ZodObject<{
154
174
  "#text": z.ZodUnion<readonly [z.ZodISODate, z.ZodISODateTime]>;
155
- }, z.core.$strip>>;
175
+ }, z.core.$strip>>>;
156
176
  "dc:publisher": z.ZodOptional<z.ZodObject<{
157
177
  "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
158
178
  "@_dir": z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/schemas/epub/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAa3B,eAAO,MAAM,KAAK;;;EAAwB,CAAC;AAC3C,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C,eAAO,MAAM,GAAG;;;;EAAiC,CAAC;AAClD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;AAEtC,eAAO,MAAM,yBAAyB,6KAErC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,yBAAyB,CAChC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;iBAKjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;iBAO1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAO9D,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC/C,CAAC;AACH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,oCAAoC,CAC3C,CAAC"}
@@ -41,7 +41,11 @@ export const PackageMetadataCommonDublinCoreTerms = z.object({
41
41
  .min(1, "At least one identifier must be set")),
42
42
  "dc:source": DublinCoreSource.optional(),
43
43
  "dc:description": DublinCoreDescription.optional(),
44
- "dc:date": DublinCoreDate.optional(),
44
+ "dc:date": z
45
+ .union([z.array(DublinCoreIdentifier), DublinCoreIdentifier])
46
+ .transform((e) => (Array.isArray(e) ? e[0] : e))
47
+ .pipe(DublinCoreDate)
48
+ .optional(),
45
49
  "dc:publisher": DublinCorePublisher.optional(),
46
50
  "dc:creator": MetadataContributor.optional(),
47
51
  "dc:contributor": MetadataContributor.optional(),
@@ -227,9 +227,29 @@ export declare const Epub2PackageOPF: z.ZodObject<{
227
227
  "@_xml:lang": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
228
228
  "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
229
229
  }, z.z.core.$strip>>;
230
- "dc:date": z.ZodOptional<z.ZodObject<{
230
+ "dc:date": z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
231
+ "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
232
+ "@_opf:scheme": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
233
+ "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
234
+ }, z.z.core.$strip>>, z.ZodObject<{
235
+ "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
236
+ "@_opf:scheme": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
237
+ "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
238
+ }, z.z.core.$strip>]>, z.ZodTransform<{
239
+ "#text": string;
240
+ "@_id"?: string | undefined;
241
+ "@_opf:scheme"?: string | undefined;
242
+ }, {
243
+ "#text": string;
244
+ "@_id"?: string | undefined;
245
+ "@_opf:scheme"?: string | undefined;
246
+ } | {
247
+ "#text": string;
248
+ "@_id"?: string | undefined;
249
+ "@_opf:scheme"?: string | undefined;
250
+ }[]>>, z.ZodObject<{
231
251
  "#text": z.ZodUnion<readonly [z.z.ZodISODate, z.z.ZodISODateTime]>;
232
- }, z.z.core.$strip>>;
252
+ }, z.z.core.$strip>>>;
233
253
  "dc:publisher": z.ZodOptional<z.ZodObject<{
234
254
  "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
235
255
  "@_dir": z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"packageOpf.d.ts","sourceRoot":"","sources":["../../../src/schemas/epub2/packageOpf.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA2C3B,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -359,9 +359,29 @@ export declare const Epub3PackageOPF: z.ZodObject<{
359
359
  "@_xml:lang": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
360
360
  "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
361
361
  }, z.z.core.$strip>>;
362
- "dc:date": z.ZodOptional<z.ZodObject<{
362
+ "dc:date": z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
363
+ "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
364
+ "@_opf:scheme": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
365
+ "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
366
+ }, z.z.core.$strip>>, z.ZodObject<{
367
+ "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
368
+ "@_opf:scheme": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
369
+ "#text": z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
370
+ }, z.z.core.$strip>]>, z.ZodTransform<{
371
+ "#text": string;
372
+ "@_id"?: string | undefined;
373
+ "@_opf:scheme"?: string | undefined;
374
+ }, {
375
+ "#text": string;
376
+ "@_id"?: string | undefined;
377
+ "@_opf:scheme"?: string | undefined;
378
+ } | {
379
+ "#text": string;
380
+ "@_id"?: string | undefined;
381
+ "@_opf:scheme"?: string | undefined;
382
+ }[]>>, z.ZodObject<{
363
383
  "#text": z.ZodUnion<readonly [z.z.ZodISODate, z.z.ZodISODateTime]>;
364
- }, z.z.core.$strip>>;
384
+ }, z.z.core.$strip>>>;
365
385
  "dc:publisher": z.ZodOptional<z.ZodObject<{
366
386
  "@_id": z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
367
387
  "@_dir": z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"packageOpf.d.ts","sourceRoot":"","sources":["../../../src/schemas/epub3/packageOpf.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAepB,eAAO,MAAM,2BAA2B;;;;;;;;;;mBAStC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CAClC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;mBAStC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CAClC,CAAC;AAiBF,iDAAiD;AACjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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