@tktb-tess/my-zod-schema 0.2.0 → 0.2.3
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/LICENSE +121 -121
- package/README.md +4 -4
- package/dist/bundle.js +5 -5
- package/dist/cotec-json.d.ts +2 -3
- package/dist/otmjson.d.ts +39 -42
- package/dist/zpdic.d.ts +15 -16
- package/package.json +9 -5
package/LICENSE
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
Creative Commons Legal Code
|
|
2
|
-
|
|
3
|
-
CC0 1.0 Universal
|
|
4
|
-
|
|
5
|
-
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
6
|
-
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
7
|
-
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
8
|
-
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
9
|
-
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
10
|
-
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
11
|
-
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
12
|
-
HEREUNDER.
|
|
13
|
-
|
|
14
|
-
Statement of Purpose
|
|
15
|
-
|
|
16
|
-
The laws of most jurisdictions throughout the world automatically confer
|
|
17
|
-
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
18
|
-
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
19
|
-
authorship and/or a database (each, a "Work").
|
|
20
|
-
|
|
21
|
-
Certain owners wish to permanently relinquish those rights to a Work for
|
|
22
|
-
the purpose of contributing to a commons of creative, cultural and
|
|
23
|
-
scientific works ("Commons") that the public can reliably and without fear
|
|
24
|
-
of later claims of infringement build upon, modify, incorporate in other
|
|
25
|
-
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
26
|
-
and for any purposes, including without limitation commercial purposes.
|
|
27
|
-
These owners may contribute to the Commons to promote the ideal of a free
|
|
28
|
-
culture and the further production of creative, cultural and scientific
|
|
29
|
-
works, or to gain reputation or greater distribution for their Work in
|
|
30
|
-
part through the use and efforts of others.
|
|
31
|
-
|
|
32
|
-
For these and/or other purposes and motivations, and without any
|
|
33
|
-
expectation of additional consideration or compensation, the person
|
|
34
|
-
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
35
|
-
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
36
|
-
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
37
|
-
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
38
|
-
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
39
|
-
|
|
40
|
-
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
41
|
-
protected by copyright and related or neighboring rights ("Copyright and
|
|
42
|
-
Related Rights"). Copyright and Related Rights include, but are not
|
|
43
|
-
limited to, the following:
|
|
44
|
-
|
|
45
|
-
i. the right to reproduce, adapt, distribute, perform, display,
|
|
46
|
-
communicate, and translate a Work;
|
|
47
|
-
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
48
|
-
iii. publicity and privacy rights pertaining to a person's image or
|
|
49
|
-
likeness depicted in a Work;
|
|
50
|
-
iv. rights protecting against unfair competition in regards to a Work,
|
|
51
|
-
subject to the limitations in paragraph 4(a), below;
|
|
52
|
-
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
53
|
-
in a Work;
|
|
54
|
-
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
55
|
-
European Parliament and of the Council of 11 March 1996 on the legal
|
|
56
|
-
protection of databases, and under any national implementation
|
|
57
|
-
thereof, including any amended or successor version of such
|
|
58
|
-
directive); and
|
|
59
|
-
vii. other similar, equivalent or corresponding rights throughout the
|
|
60
|
-
world based on applicable law or treaty, and any national
|
|
61
|
-
implementations thereof.
|
|
62
|
-
|
|
63
|
-
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
64
|
-
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
65
|
-
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
66
|
-
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
67
|
-
of action, whether now known or unknown (including existing as well as
|
|
68
|
-
future claims and causes of action), in the Work (i) in all territories
|
|
69
|
-
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
70
|
-
treaty (including future time extensions), (iii) in any current or future
|
|
71
|
-
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
72
|
-
including without limitation commercial, advertising or promotional
|
|
73
|
-
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
74
|
-
member of the public at large and to the detriment of Affirmer's heirs and
|
|
75
|
-
successors, fully intending that such Waiver shall not be subject to
|
|
76
|
-
revocation, rescission, cancellation, termination, or any other legal or
|
|
77
|
-
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
78
|
-
as contemplated by Affirmer's express Statement of Purpose.
|
|
79
|
-
|
|
80
|
-
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
81
|
-
be judged legally invalid or ineffective under applicable law, then the
|
|
82
|
-
Waiver shall be preserved to the maximum extent permitted taking into
|
|
83
|
-
account Affirmer's express Statement of Purpose. In addition, to the
|
|
84
|
-
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
85
|
-
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
86
|
-
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
87
|
-
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
88
|
-
maximum duration provided by applicable law or treaty (including future
|
|
89
|
-
time extensions), (iii) in any current or future medium and for any number
|
|
90
|
-
of copies, and (iv) for any purpose whatsoever, including without
|
|
91
|
-
limitation commercial, advertising or promotional purposes (the
|
|
92
|
-
"License"). The License shall be deemed effective as of the date CC0 was
|
|
93
|
-
applied by Affirmer to the Work. Should any part of the License for any
|
|
94
|
-
reason be judged legally invalid or ineffective under applicable law, such
|
|
95
|
-
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
96
|
-
of the License, and in such case Affirmer hereby affirms that he or she
|
|
97
|
-
will not (i) exercise any of his or her remaining Copyright and Related
|
|
98
|
-
Rights in the Work or (ii) assert any associated claims and causes of
|
|
99
|
-
action with respect to the Work, in either case contrary to Affirmer's
|
|
100
|
-
express Statement of Purpose.
|
|
101
|
-
|
|
102
|
-
4. Limitations and Disclaimers.
|
|
103
|
-
|
|
104
|
-
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
105
|
-
surrendered, licensed or otherwise affected by this document.
|
|
106
|
-
b. Affirmer offers the Work as-is and makes no representations or
|
|
107
|
-
warranties of any kind concerning the Work, express, implied,
|
|
108
|
-
statutory or otherwise, including without limitation warranties of
|
|
109
|
-
title, merchantability, fitness for a particular purpose, non
|
|
110
|
-
infringement, or the absence of latent or other defects, accuracy, or
|
|
111
|
-
the present or absence of errors, whether or not discoverable, all to
|
|
112
|
-
the greatest extent permissible under applicable law.
|
|
113
|
-
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
114
|
-
that may apply to the Work or any use thereof, including without
|
|
115
|
-
limitation any person's Copyright and Related Rights in the Work.
|
|
116
|
-
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
117
|
-
consents, permissions or other rights required for any use of the
|
|
118
|
-
Work.
|
|
119
|
-
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
120
|
-
party to this document and has no duty or obligation with respect to
|
|
121
|
-
this CC0 or use of the Work.
|
|
1
|
+
Creative Commons Legal Code
|
|
2
|
+
|
|
3
|
+
CC0 1.0 Universal
|
|
4
|
+
|
|
5
|
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
6
|
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
7
|
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
8
|
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
9
|
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
10
|
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
11
|
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
12
|
+
HEREUNDER.
|
|
13
|
+
|
|
14
|
+
Statement of Purpose
|
|
15
|
+
|
|
16
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
17
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
18
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
19
|
+
authorship and/or a database (each, a "Work").
|
|
20
|
+
|
|
21
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
|
22
|
+
the purpose of contributing to a commons of creative, cultural and
|
|
23
|
+
scientific works ("Commons") that the public can reliably and without fear
|
|
24
|
+
of later claims of infringement build upon, modify, incorporate in other
|
|
25
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
26
|
+
and for any purposes, including without limitation commercial purposes.
|
|
27
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
|
28
|
+
culture and the further production of creative, cultural and scientific
|
|
29
|
+
works, or to gain reputation or greater distribution for their Work in
|
|
30
|
+
part through the use and efforts of others.
|
|
31
|
+
|
|
32
|
+
For these and/or other purposes and motivations, and without any
|
|
33
|
+
expectation of additional consideration or compensation, the person
|
|
34
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
35
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
36
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
37
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
38
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
39
|
+
|
|
40
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
41
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
42
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
|
43
|
+
limited to, the following:
|
|
44
|
+
|
|
45
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
|
46
|
+
communicate, and translate a Work;
|
|
47
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
48
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
|
49
|
+
likeness depicted in a Work;
|
|
50
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
51
|
+
subject to the limitations in paragraph 4(a), below;
|
|
52
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
53
|
+
in a Work;
|
|
54
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
55
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
56
|
+
protection of databases, and under any national implementation
|
|
57
|
+
thereof, including any amended or successor version of such
|
|
58
|
+
directive); and
|
|
59
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
|
60
|
+
world based on applicable law or treaty, and any national
|
|
61
|
+
implementations thereof.
|
|
62
|
+
|
|
63
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
64
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
65
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
66
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
67
|
+
of action, whether now known or unknown (including existing as well as
|
|
68
|
+
future claims and causes of action), in the Work (i) in all territories
|
|
69
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
70
|
+
treaty (including future time extensions), (iii) in any current or future
|
|
71
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
72
|
+
including without limitation commercial, advertising or promotional
|
|
73
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
74
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
|
75
|
+
successors, fully intending that such Waiver shall not be subject to
|
|
76
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
|
77
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
78
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
|
79
|
+
|
|
80
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
81
|
+
be judged legally invalid or ineffective under applicable law, then the
|
|
82
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
|
83
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
|
84
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
85
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
86
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
87
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
88
|
+
maximum duration provided by applicable law or treaty (including future
|
|
89
|
+
time extensions), (iii) in any current or future medium and for any number
|
|
90
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
|
91
|
+
limitation commercial, advertising or promotional purposes (the
|
|
92
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
|
93
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
|
94
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
|
95
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
96
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
|
97
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
|
98
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
|
99
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
|
100
|
+
express Statement of Purpose.
|
|
101
|
+
|
|
102
|
+
4. Limitations and Disclaimers.
|
|
103
|
+
|
|
104
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
105
|
+
surrendered, licensed or otherwise affected by this document.
|
|
106
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
|
107
|
+
warranties of any kind concerning the Work, express, implied,
|
|
108
|
+
statutory or otherwise, including without limitation warranties of
|
|
109
|
+
title, merchantability, fitness for a particular purpose, non
|
|
110
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
|
111
|
+
the present or absence of errors, whether or not discoverable, all to
|
|
112
|
+
the greatest extent permissible under applicable law.
|
|
113
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
114
|
+
that may apply to the Work or any use thereof, including without
|
|
115
|
+
limitation any person's Copyright and Related Rights in the Work.
|
|
116
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
117
|
+
consents, permissions or other rights required for any use of the
|
|
118
|
+
Work.
|
|
119
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
120
|
+
party to this document and has no duty or obligation with respect to
|
|
121
|
+
this CC0 or use of the Work.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# my-zod-schemas
|
|
2
|
-
|
|
3
|
-
ZpDIC API, OTM-JSON schema by Zod etc.
|
|
4
|
-
|
|
1
|
+
# my-zod-schemas
|
|
2
|
+
|
|
3
|
+
ZpDIC API, OTM-JSON schema by Zod etc.
|
|
4
|
+
|
package/dist/bundle.js
CHANGED
|
@@ -2,7 +2,7 @@ import t from "zod";
|
|
|
2
2
|
const e = t.object({
|
|
3
3
|
id: t.int().nonnegative(),
|
|
4
4
|
form: t.string()
|
|
5
|
-
})
|
|
5
|
+
}), i = t.object({
|
|
6
6
|
title: t.string(),
|
|
7
7
|
forms: t.string().array(),
|
|
8
8
|
rawForms: t.string().optional()
|
|
@@ -44,10 +44,10 @@ const e = t.object({
|
|
|
44
44
|
}), y = t.object({
|
|
45
45
|
version: t.literal(1).optional(),
|
|
46
46
|
words: g.array()
|
|
47
|
-
})
|
|
47
|
+
}), n = t.looseObject({
|
|
48
48
|
version: t.literal(2),
|
|
49
49
|
words: p.array()
|
|
50
|
-
})
|
|
50
|
+
}), x = t.discriminatedUnion("version", [
|
|
51
51
|
y,
|
|
52
52
|
n
|
|
53
53
|
]), O = n.extend({
|
|
@@ -76,7 +76,7 @@ const e = t.object({
|
|
|
76
76
|
nameString: t.string(),
|
|
77
77
|
ignoredPattern: t.string(),
|
|
78
78
|
hidden: t.boolean()
|
|
79
|
-
}), a = t.string()
|
|
79
|
+
}), a = t.string(), z = t.object({
|
|
80
80
|
title: t.string(),
|
|
81
81
|
text: t.string(),
|
|
82
82
|
hidden: t.boolean()
|
|
@@ -255,7 +255,7 @@ const e = t.object({
|
|
|
255
255
|
}), B = t.object({
|
|
256
256
|
metadata: W,
|
|
257
257
|
contents: k.array()
|
|
258
|
-
})
|
|
258
|
+
}), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
259
259
|
__proto__: null,
|
|
260
260
|
schema: B
|
|
261
261
|
}, Symbol.toStringTag, { value: "Module" }));
|
package/dist/cotec-json.d.ts
CHANGED
|
@@ -49,8 +49,7 @@ declare const contentSchema: z.ZodObject<{
|
|
|
49
49
|
script: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
export type Content = z.infer<typeof contentSchema>;
|
|
52
|
-
declare const
|
|
53
|
-
export declare const schema: z.core.$ZodBranded<z.ZodObject<{
|
|
52
|
+
export declare const schema: z.ZodObject<{
|
|
54
53
|
metadata: z.ZodObject<{
|
|
55
54
|
datasize: z.ZodTuple<[z.ZodInt, z.ZodInt], null>;
|
|
56
55
|
title: z.ZodString;
|
|
@@ -97,6 +96,6 @@ export declare const schema: z.core.$ZodBranded<z.ZodObject<{
|
|
|
97
96
|
example: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
97
|
script: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
98
|
}, z.core.$strip>>;
|
|
100
|
-
}, z.core.$strip
|
|
99
|
+
}, z.core.$strip>;
|
|
101
100
|
export type Data = z.infer<typeof schema>;
|
|
102
101
|
export {};
|
package/dist/otmjson.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as z } from 'zod';
|
|
2
|
-
declare const
|
|
3
|
-
export declare const entrySchema: z.core.$ZodBranded<z.ZodObject<{
|
|
2
|
+
export declare const entrySchema: z.ZodObject<{
|
|
4
3
|
id: z.ZodInt;
|
|
5
4
|
form: z.ZodString;
|
|
6
|
-
}, z.core.$strip
|
|
5
|
+
}, z.core.$strip>;
|
|
7
6
|
export type Entry = z.infer<typeof entrySchema>;
|
|
8
7
|
export declare const translationSchema: z.ZodObject<{
|
|
9
8
|
title: z.ZodString;
|
|
@@ -23,17 +22,17 @@ export declare const variationSchema: z.ZodObject<{
|
|
|
23
22
|
export type Variation = z.infer<typeof variationSchema>;
|
|
24
23
|
export declare const relationSchema: z.ZodObject<{
|
|
25
24
|
title: z.ZodString;
|
|
26
|
-
entry: z.
|
|
25
|
+
entry: z.ZodObject<{
|
|
27
26
|
id: z.ZodInt;
|
|
28
27
|
form: z.ZodString;
|
|
29
|
-
}, z.core.$strip
|
|
28
|
+
}, z.core.$strip>;
|
|
30
29
|
}, z.core.$strip>;
|
|
31
30
|
export type Relation = z.infer<typeof relationSchema>;
|
|
32
31
|
export declare const wordv1Schema: z.ZodObject<{
|
|
33
|
-
entry: z.
|
|
32
|
+
entry: z.ZodObject<{
|
|
34
33
|
id: z.ZodInt;
|
|
35
34
|
form: z.ZodString;
|
|
36
|
-
}, z.core.$strip
|
|
35
|
+
}, z.core.$strip>;
|
|
37
36
|
translations: z.ZodArray<z.ZodObject<{
|
|
38
37
|
title: z.ZodString;
|
|
39
38
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -50,17 +49,17 @@ export declare const wordv1Schema: z.ZodObject<{
|
|
|
50
49
|
}, z.core.$strip>>;
|
|
51
50
|
relations: z.ZodArray<z.ZodObject<{
|
|
52
51
|
title: z.ZodString;
|
|
53
|
-
entry: z.
|
|
52
|
+
entry: z.ZodObject<{
|
|
54
53
|
id: z.ZodInt;
|
|
55
54
|
form: z.ZodString;
|
|
56
|
-
}, z.core.$strip
|
|
55
|
+
}, z.core.$strip>;
|
|
57
56
|
}, z.core.$strip>>;
|
|
58
57
|
}, z.core.$strip>;
|
|
59
58
|
export declare const wordv2Schema: z.ZodObject<{
|
|
60
|
-
entry: z.
|
|
59
|
+
entry: z.ZodObject<{
|
|
61
60
|
id: z.ZodInt;
|
|
62
61
|
form: z.ZodString;
|
|
63
|
-
}, z.core.$strip
|
|
62
|
+
}, z.core.$strip>;
|
|
64
63
|
translations: z.ZodArray<z.ZodObject<{
|
|
65
64
|
title: z.ZodString;
|
|
66
65
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -77,10 +76,10 @@ export declare const wordv2Schema: z.ZodObject<{
|
|
|
77
76
|
}, z.core.$strip>>;
|
|
78
77
|
relations: z.ZodArray<z.ZodObject<{
|
|
79
78
|
title: z.ZodString;
|
|
80
|
-
entry: z.
|
|
79
|
+
entry: z.ZodObject<{
|
|
81
80
|
id: z.ZodInt;
|
|
82
81
|
form: z.ZodString;
|
|
83
|
-
}, z.core.$strip
|
|
82
|
+
}, z.core.$strip>;
|
|
84
83
|
}, z.core.$strip>>;
|
|
85
84
|
}, z.core.$loose>;
|
|
86
85
|
export type Wordv1 = z.infer<typeof wordv1Schema>;
|
|
@@ -108,14 +107,13 @@ export declare const zpdicConfigSchema: z.ZodObject<{
|
|
|
108
107
|
enableMarkdown: z.ZodBoolean;
|
|
109
108
|
}, z.core.$strip>;
|
|
110
109
|
export type ZpDICConfig = z.infer<typeof zpdicConfigSchema>;
|
|
111
|
-
declare const
|
|
112
|
-
export declare const v1Schema: z.core.$ZodBranded<z.ZodObject<{
|
|
110
|
+
export declare const v1Schema: z.ZodObject<{
|
|
113
111
|
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
114
112
|
words: z.ZodArray<z.ZodObject<{
|
|
115
|
-
entry: z.
|
|
113
|
+
entry: z.ZodObject<{
|
|
116
114
|
id: z.ZodInt;
|
|
117
115
|
form: z.ZodString;
|
|
118
|
-
}, z.core.$strip
|
|
116
|
+
}, z.core.$strip>;
|
|
119
117
|
translations: z.ZodArray<z.ZodObject<{
|
|
120
118
|
title: z.ZodString;
|
|
121
119
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -132,20 +130,20 @@ export declare const v1Schema: z.core.$ZodBranded<z.ZodObject<{
|
|
|
132
130
|
}, z.core.$strip>>;
|
|
133
131
|
relations: z.ZodArray<z.ZodObject<{
|
|
134
132
|
title: z.ZodString;
|
|
135
|
-
entry: z.
|
|
133
|
+
entry: z.ZodObject<{
|
|
136
134
|
id: z.ZodInt;
|
|
137
135
|
form: z.ZodString;
|
|
138
|
-
}, z.core.$strip
|
|
136
|
+
}, z.core.$strip>;
|
|
139
137
|
}, z.core.$strip>>;
|
|
140
138
|
}, z.core.$strip>>;
|
|
141
|
-
}, z.core.$strip
|
|
142
|
-
export declare const v2Schema: z.
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export declare const v2Schema: z.ZodObject<{
|
|
143
141
|
version: z.ZodLiteral<2>;
|
|
144
142
|
words: z.ZodArray<z.ZodObject<{
|
|
145
|
-
entry: z.
|
|
143
|
+
entry: z.ZodObject<{
|
|
146
144
|
id: z.ZodInt;
|
|
147
145
|
form: z.ZodString;
|
|
148
|
-
}, z.core.$strip
|
|
146
|
+
}, z.core.$strip>;
|
|
149
147
|
translations: z.ZodArray<z.ZodObject<{
|
|
150
148
|
title: z.ZodString;
|
|
151
149
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -162,20 +160,20 @@ export declare const v2Schema: z.core.$ZodBranded<z.ZodObject<{
|
|
|
162
160
|
}, z.core.$strip>>;
|
|
163
161
|
relations: z.ZodArray<z.ZodObject<{
|
|
164
162
|
title: z.ZodString;
|
|
165
|
-
entry: z.
|
|
163
|
+
entry: z.ZodObject<{
|
|
166
164
|
id: z.ZodInt;
|
|
167
165
|
form: z.ZodString;
|
|
168
|
-
}, z.core.$strip
|
|
166
|
+
}, z.core.$strip>;
|
|
169
167
|
}, z.core.$strip>>;
|
|
170
168
|
}, z.core.$loose>>;
|
|
171
|
-
}, z.core.$loose
|
|
172
|
-
export declare const otmjsonSchema: z.ZodDiscriminatedUnion<[z.
|
|
169
|
+
}, z.core.$loose>;
|
|
170
|
+
export declare const otmjsonSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
171
|
version: z.ZodOptional<z.ZodLiteral<1>>;
|
|
174
172
|
words: z.ZodArray<z.ZodObject<{
|
|
175
|
-
entry: z.
|
|
173
|
+
entry: z.ZodObject<{
|
|
176
174
|
id: z.ZodInt;
|
|
177
175
|
form: z.ZodString;
|
|
178
|
-
}, z.core.$strip
|
|
176
|
+
}, z.core.$strip>;
|
|
179
177
|
translations: z.ZodArray<z.ZodObject<{
|
|
180
178
|
title: z.ZodString;
|
|
181
179
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -192,19 +190,19 @@ export declare const otmjsonSchema: z.ZodDiscriminatedUnion<[z.core.$ZodBranded<
|
|
|
192
190
|
}, z.core.$strip>>;
|
|
193
191
|
relations: z.ZodArray<z.ZodObject<{
|
|
194
192
|
title: z.ZodString;
|
|
195
|
-
entry: z.
|
|
193
|
+
entry: z.ZodObject<{
|
|
196
194
|
id: z.ZodInt;
|
|
197
195
|
form: z.ZodString;
|
|
198
|
-
}, z.core.$strip
|
|
196
|
+
}, z.core.$strip>;
|
|
199
197
|
}, z.core.$strip>>;
|
|
200
198
|
}, z.core.$strip>>;
|
|
201
|
-
}, z.core.$strip>,
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
200
|
version: z.ZodLiteral<2>;
|
|
203
201
|
words: z.ZodArray<z.ZodObject<{
|
|
204
|
-
entry: z.
|
|
202
|
+
entry: z.ZodObject<{
|
|
205
203
|
id: z.ZodInt;
|
|
206
204
|
form: z.ZodString;
|
|
207
|
-
}, z.core.$strip
|
|
205
|
+
}, z.core.$strip>;
|
|
208
206
|
translations: z.ZodArray<z.ZodObject<{
|
|
209
207
|
title: z.ZodString;
|
|
210
208
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -221,23 +219,23 @@ export declare const otmjsonSchema: z.ZodDiscriminatedUnion<[z.core.$ZodBranded<
|
|
|
221
219
|
}, z.core.$strip>>;
|
|
222
220
|
relations: z.ZodArray<z.ZodObject<{
|
|
223
221
|
title: z.ZodString;
|
|
224
|
-
entry: z.
|
|
222
|
+
entry: z.ZodObject<{
|
|
225
223
|
id: z.ZodInt;
|
|
226
224
|
form: z.ZodString;
|
|
227
|
-
}, z.core.$strip
|
|
225
|
+
}, z.core.$strip>;
|
|
228
226
|
}, z.core.$strip>>;
|
|
229
227
|
}, z.core.$loose>>;
|
|
230
|
-
}, z.core.$loose
|
|
228
|
+
}, z.core.$loose>], "version">;
|
|
231
229
|
export type Ver1 = z.infer<typeof v1Schema>;
|
|
232
230
|
export type Ver2 = z.infer<typeof v2Schema>;
|
|
233
231
|
export type Ver1or2 = Ver1 | Ver2;
|
|
234
232
|
export declare const zpdicOtmSchema: z.ZodObject<{
|
|
235
233
|
version: z.ZodLiteral<2>;
|
|
236
234
|
words: z.ZodArray<z.ZodObject<{
|
|
237
|
-
entry: z.
|
|
235
|
+
entry: z.ZodObject<{
|
|
238
236
|
id: z.ZodInt;
|
|
239
237
|
form: z.ZodString;
|
|
240
|
-
}, z.core.$strip
|
|
238
|
+
}, z.core.$strip>;
|
|
241
239
|
translations: z.ZodArray<z.ZodObject<{
|
|
242
240
|
title: z.ZodString;
|
|
243
241
|
forms: z.ZodArray<z.ZodString>;
|
|
@@ -254,10 +252,10 @@ export declare const zpdicOtmSchema: z.ZodObject<{
|
|
|
254
252
|
}, z.core.$strip>>;
|
|
255
253
|
relations: z.ZodArray<z.ZodObject<{
|
|
256
254
|
title: z.ZodString;
|
|
257
|
-
entry: z.
|
|
255
|
+
entry: z.ZodObject<{
|
|
258
256
|
id: z.ZodInt;
|
|
259
257
|
form: z.ZodString;
|
|
260
|
-
}, z.core.$strip
|
|
258
|
+
}, z.core.$strip>;
|
|
261
259
|
}, z.core.$strip>>;
|
|
262
260
|
}, z.core.$loose>>;
|
|
263
261
|
examples: z.ZodArray<z.ZodObject<{
|
|
@@ -285,4 +283,3 @@ export declare const zpdicOtmSchema: z.ZodObject<{
|
|
|
285
283
|
zatlin: z.ZodOptional<z.ZodString>;
|
|
286
284
|
}, z.core.$loose>;
|
|
287
285
|
export type ZpDICOTM = z.infer<typeof zpdicOtmSchema>;
|
|
288
|
-
export {};
|
package/dist/zpdic.d.ts
CHANGED
|
@@ -6,8 +6,7 @@ declare const equivalentSchema: z.ZodObject<{
|
|
|
6
6
|
ignoredPattern: z.ZodString;
|
|
7
7
|
hidden: z.ZodBoolean;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
declare const
|
|
10
|
-
declare const objectIDSchema: z.core.$ZodBranded<z.ZodString, typeof obj_id_brand>;
|
|
9
|
+
declare const objectIDSchema: z.ZodString;
|
|
11
10
|
export type ObjectID = z.infer<typeof objectIDSchema>;
|
|
12
11
|
export type Equivalent = z.infer<typeof equivalentSchema>;
|
|
13
12
|
declare const informationSchema: z.ZodObject<{
|
|
@@ -64,7 +63,7 @@ declare const exampleSchema: z.ZodObject<{
|
|
|
64
63
|
catalog: z.ZodString;
|
|
65
64
|
number: z.ZodNumber;
|
|
66
65
|
}, z.core.$strip>>;
|
|
67
|
-
id: z.
|
|
66
|
+
id: z.ZodString;
|
|
68
67
|
number: z.ZodInt;
|
|
69
68
|
}, z.core.$strip>;
|
|
70
69
|
export type Example = z.infer<typeof exampleSchema>;
|
|
@@ -136,7 +135,7 @@ declare const wordSchema: z.ZodObject<{
|
|
|
136
135
|
number: z.ZodInt;
|
|
137
136
|
name: z.ZodString;
|
|
138
137
|
}, z.core.$strip>>;
|
|
139
|
-
id: z.
|
|
138
|
+
id: z.ZodString;
|
|
140
139
|
number: z.ZodInt;
|
|
141
140
|
}, z.core.$strip>;
|
|
142
141
|
export type Word = z.infer<typeof wordSchema>;
|
|
@@ -173,7 +172,7 @@ declare const wordWithExamplesSchema: z.ZodObject<{
|
|
|
173
172
|
number: z.ZodInt;
|
|
174
173
|
name: z.ZodString;
|
|
175
174
|
}, z.core.$strip>>;
|
|
176
|
-
id: z.
|
|
175
|
+
id: z.ZodString;
|
|
177
176
|
number: z.ZodInt;
|
|
178
177
|
examples: z.ZodArray<z.ZodObject<{
|
|
179
178
|
sentence: z.ZodString;
|
|
@@ -187,7 +186,7 @@ declare const wordWithExamplesSchema: z.ZodObject<{
|
|
|
187
186
|
catalog: z.ZodString;
|
|
188
187
|
number: z.ZodNumber;
|
|
189
188
|
}, z.core.$strip>>;
|
|
190
|
-
id: z.
|
|
189
|
+
id: z.ZodString;
|
|
191
190
|
number: z.ZodInt;
|
|
192
191
|
}, z.core.$strip>>;
|
|
193
192
|
}, z.core.$strip>;
|
|
@@ -226,7 +225,7 @@ export declare const wordResponseSchema: z.ZodObject<{
|
|
|
226
225
|
number: z.ZodInt;
|
|
227
226
|
name: z.ZodString;
|
|
228
227
|
}, z.core.$strip>>;
|
|
229
|
-
id: z.
|
|
228
|
+
id: z.ZodString;
|
|
230
229
|
number: z.ZodInt;
|
|
231
230
|
}, z.core.$strip>;
|
|
232
231
|
}, z.core.$strip>;
|
|
@@ -265,7 +264,7 @@ export declare const wweResponseSchema: z.ZodObject<{
|
|
|
265
264
|
number: z.ZodInt;
|
|
266
265
|
name: z.ZodString;
|
|
267
266
|
}, z.core.$strip>>;
|
|
268
|
-
id: z.
|
|
267
|
+
id: z.ZodString;
|
|
269
268
|
number: z.ZodInt;
|
|
270
269
|
examples: z.ZodArray<z.ZodObject<{
|
|
271
270
|
sentence: z.ZodString;
|
|
@@ -279,7 +278,7 @@ export declare const wweResponseSchema: z.ZodObject<{
|
|
|
279
278
|
catalog: z.ZodString;
|
|
280
279
|
number: z.ZodNumber;
|
|
281
280
|
}, z.core.$strip>>;
|
|
282
|
-
id: z.
|
|
281
|
+
id: z.ZodString;
|
|
283
282
|
number: z.ZodInt;
|
|
284
283
|
}, z.core.$strip>>;
|
|
285
284
|
}, z.core.$strip>;
|
|
@@ -319,7 +318,7 @@ export declare const mwweResponseSchema: z.ZodObject<{
|
|
|
319
318
|
number: z.ZodInt;
|
|
320
319
|
name: z.ZodString;
|
|
321
320
|
}, z.core.$strip>>;
|
|
322
|
-
id: z.
|
|
321
|
+
id: z.ZodString;
|
|
323
322
|
number: z.ZodInt;
|
|
324
323
|
examples: z.ZodArray<z.ZodObject<{
|
|
325
324
|
sentence: z.ZodString;
|
|
@@ -333,7 +332,7 @@ export declare const mwweResponseSchema: z.ZodObject<{
|
|
|
333
332
|
catalog: z.ZodString;
|
|
334
333
|
number: z.ZodNumber;
|
|
335
334
|
}, z.core.$strip>>;
|
|
336
|
-
id: z.
|
|
335
|
+
id: z.ZodString;
|
|
337
336
|
number: z.ZodInt;
|
|
338
337
|
}, z.core.$strip>>;
|
|
339
338
|
}, z.core.$strip>>;
|
|
@@ -353,7 +352,7 @@ export declare const exResponseSchema: z.ZodObject<{
|
|
|
353
352
|
catalog: z.ZodString;
|
|
354
353
|
number: z.ZodNumber;
|
|
355
354
|
}, z.core.$strip>>;
|
|
356
|
-
id: z.
|
|
355
|
+
id: z.ZodString;
|
|
357
356
|
number: z.ZodInt;
|
|
358
357
|
}, z.core.$strip>;
|
|
359
358
|
}, z.core.$strip>;
|
|
@@ -371,14 +370,14 @@ export declare const mExResponseSchema: z.ZodObject<{
|
|
|
371
370
|
catalog: z.ZodString;
|
|
372
371
|
number: z.ZodNumber;
|
|
373
372
|
}, z.core.$strip>>;
|
|
374
|
-
id: z.
|
|
373
|
+
id: z.ZodString;
|
|
375
374
|
number: z.ZodInt;
|
|
376
375
|
}, z.core.$strip>>;
|
|
377
376
|
total: z.ZodInt;
|
|
378
377
|
}, z.core.$strip>;
|
|
379
378
|
export type MExResponse = z.infer<typeof mExResponseSchema>;
|
|
380
379
|
declare const exampleOfferSchema: z.ZodObject<{
|
|
381
|
-
id: z.
|
|
380
|
+
id: z.ZodString;
|
|
382
381
|
catalog: z.ZodString;
|
|
383
382
|
number: z.ZodInt;
|
|
384
383
|
translation: z.ZodString;
|
|
@@ -388,7 +387,7 @@ declare const exampleOfferSchema: z.ZodObject<{
|
|
|
388
387
|
export type ExampleOffer = z.infer<typeof exampleOfferSchema>;
|
|
389
388
|
export declare const exOfferResponseSchema: z.ZodObject<{
|
|
390
389
|
exampleOffer: z.ZodObject<{
|
|
391
|
-
id: z.
|
|
390
|
+
id: z.ZodString;
|
|
392
391
|
catalog: z.ZodString;
|
|
393
392
|
number: z.ZodInt;
|
|
394
393
|
translation: z.ZodString;
|
|
@@ -399,7 +398,7 @@ export declare const exOfferResponseSchema: z.ZodObject<{
|
|
|
399
398
|
export type ExOfferResponse = z.infer<typeof exOfferResponseSchema>;
|
|
400
399
|
export declare const mExOfferResponseSchema: z.ZodObject<{
|
|
401
400
|
exampleOffers: z.ZodArray<z.ZodObject<{
|
|
402
|
-
id: z.
|
|
401
|
+
id: z.ZodString;
|
|
403
402
|
catalog: z.ZodString;
|
|
404
403
|
number: z.ZodInt;
|
|
405
404
|
translation: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tktb-tess/my-zod-schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "CC0-1.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,16 +20,15 @@
|
|
|
20
20
|
"import": "./dist/bundle.js"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^24.
|
|
24
|
-
"npm-check-updates": "^18.1.1",
|
|
23
|
+
"@types/node": "^24.6.2",
|
|
25
24
|
"rehype-sanitize": "^6.0.0",
|
|
26
25
|
"rehype-stringify": "^10.0.1",
|
|
27
26
|
"remark-gfm": "^4.0.1",
|
|
28
27
|
"remark-parse": "^11.0.0",
|
|
29
28
|
"remark-rehype": "^11.1.2",
|
|
30
|
-
"typescript": "~5.9.
|
|
29
|
+
"typescript": "~5.9.3",
|
|
31
30
|
"unified": "^11.0.5",
|
|
32
|
-
"vite": "^7.
|
|
31
|
+
"vite": "^7.1.9",
|
|
33
32
|
"vite-plugin-dts": "^4.5.4",
|
|
34
33
|
"vitest": "^3.2.4"
|
|
35
34
|
},
|
|
@@ -39,6 +38,11 @@
|
|
|
39
38
|
"volta": {
|
|
40
39
|
"node": "22.19.0"
|
|
41
40
|
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/tktb-tess/schemas.git"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/tktb-tess/schemas/blob/main/README.md",
|
|
42
46
|
"scripts": {
|
|
43
47
|
"dev": "vite",
|
|
44
48
|
"build": "tsc && vite build",
|