@jackhayes/util-types 0.0.46 → 0.0.48
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.
|
@@ -37,6 +37,6 @@ export declare const creator: z.ZodObject<{
|
|
|
37
37
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
38
38
|
createdAt: z.ZodString;
|
|
39
39
|
updatedAt: z.ZodString;
|
|
40
|
-
hidden: z.
|
|
40
|
+
hidden: z.ZodBoolean;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export type Creator = z.infer<typeof creator>;
|
|
@@ -15,6 +15,7 @@ export declare const project: z.ZodObject<{
|
|
|
15
15
|
createdAt: z.ZodString;
|
|
16
16
|
updatedAt: z.ZodString;
|
|
17
17
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
id: "id";
|
|
18
19
|
af: "af";
|
|
19
20
|
am: "am";
|
|
20
21
|
ar: "ar";
|
|
@@ -37,7 +38,6 @@ export declare const project: z.ZodObject<{
|
|
|
37
38
|
hi: "hi";
|
|
38
39
|
hr: "hr";
|
|
39
40
|
hu: "hu";
|
|
40
|
-
id: "id";
|
|
41
41
|
is: "is";
|
|
42
42
|
it: "it";
|
|
43
43
|
ja: "ja";
|
|
@@ -51,6 +51,7 @@ export declare const project: z.ZodObject<{
|
|
|
51
51
|
mt: "mt";
|
|
52
52
|
nl: "nl";
|
|
53
53
|
no: "no";
|
|
54
|
+
pa: "pa";
|
|
54
55
|
pl: "pl";
|
|
55
56
|
pt: "pt";
|
|
56
57
|
ro: "ro";
|
|
@@ -320,7 +321,7 @@ export declare const project: z.ZodObject<{
|
|
|
320
321
|
ZM: "ZM";
|
|
321
322
|
ZW: "ZW";
|
|
322
323
|
}>>;
|
|
323
|
-
hidden: z.
|
|
324
|
+
hidden: z.ZodBoolean;
|
|
324
325
|
}, z.core.$strip>;
|
|
325
326
|
declare const projectCreatorRelation: z.ZodObject<{
|
|
326
327
|
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -373,6 +374,7 @@ export declare const projectWithCreators: z.ZodObject<{
|
|
|
373
374
|
createdAt: z.ZodString;
|
|
374
375
|
updatedAt: z.ZodString;
|
|
375
376
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
377
|
+
id: "id";
|
|
376
378
|
af: "af";
|
|
377
379
|
am: "am";
|
|
378
380
|
ar: "ar";
|
|
@@ -395,7 +397,6 @@ export declare const projectWithCreators: z.ZodObject<{
|
|
|
395
397
|
hi: "hi";
|
|
396
398
|
hr: "hr";
|
|
397
399
|
hu: "hu";
|
|
398
|
-
id: "id";
|
|
399
400
|
is: "is";
|
|
400
401
|
it: "it";
|
|
401
402
|
ja: "ja";
|
|
@@ -409,6 +410,7 @@ export declare const projectWithCreators: z.ZodObject<{
|
|
|
409
410
|
mt: "mt";
|
|
410
411
|
nl: "nl";
|
|
411
412
|
no: "no";
|
|
413
|
+
pa: "pa";
|
|
412
414
|
pl: "pl";
|
|
413
415
|
pt: "pt";
|
|
414
416
|
ro: "ro";
|
|
@@ -678,7 +680,7 @@ export declare const projectWithCreators: z.ZodObject<{
|
|
|
678
680
|
ZM: "ZM";
|
|
679
681
|
ZW: "ZW";
|
|
680
682
|
}>>;
|
|
681
|
-
hidden: z.
|
|
683
|
+
hidden: z.ZodBoolean;
|
|
682
684
|
creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
683
685
|
id: z.ZodUUID;
|
|
684
686
|
name: z.ZodString;
|
|
@@ -14,7 +14,7 @@ export const project = z.object({
|
|
|
14
14
|
updatedAt: z.string(),
|
|
15
15
|
originalLanguage: languageCode.optional(),
|
|
16
16
|
originCountry: countryCode.optional(),
|
|
17
|
-
hidden: z.boolean()
|
|
17
|
+
hidden: z.boolean(),
|
|
18
18
|
});
|
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
20
|
const projectCreatorRelation = creatorProjectRelation.omit({ projectId: true });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const languageCode: z.ZodEnum<{
|
|
3
|
+
id: "id";
|
|
3
4
|
af: "af";
|
|
4
5
|
am: "am";
|
|
5
6
|
ar: "ar";
|
|
@@ -22,7 +23,6 @@ export declare const languageCode: z.ZodEnum<{
|
|
|
22
23
|
hi: "hi";
|
|
23
24
|
hr: "hr";
|
|
24
25
|
hu: "hu";
|
|
25
|
-
id: "id";
|
|
26
26
|
is: "is";
|
|
27
27
|
it: "it";
|
|
28
28
|
ja: "ja";
|
|
@@ -36,6 +36,7 @@ export declare const languageCode: z.ZodEnum<{
|
|
|
36
36
|
mt: "mt";
|
|
37
37
|
nl: "nl";
|
|
38
38
|
no: "no";
|
|
39
|
+
pa: "pa";
|
|
39
40
|
pl: "pl";
|
|
40
41
|
pt: "pt";
|
|
41
42
|
ro: "ro";
|
|
@@ -36,6 +36,7 @@ export const languageCode = z.enum([
|
|
|
36
36
|
'mt', // Maltese
|
|
37
37
|
'nl', // Dutch
|
|
38
38
|
'no', // Norwegian
|
|
39
|
+
'pa', // Punjabi
|
|
39
40
|
'pl', // Polish
|
|
40
41
|
'pt', // Portuguese
|
|
41
42
|
'ro', // Romanian
|
|
@@ -91,6 +92,7 @@ export const languageNames = {
|
|
|
91
92
|
mt: 'Maltese',
|
|
92
93
|
nl: 'Dutch',
|
|
93
94
|
no: 'Norwegian',
|
|
95
|
+
pa: 'Punjabi',
|
|
94
96
|
pl: 'Polish',
|
|
95
97
|
pt: 'Portuguese',
|
|
96
98
|
ro: 'Romanian',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jackhayes/util-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"type": "module",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@jh-tech/util-tools-be": "0.0.
|
|
20
|
+
"@jh-tech/util-tools-be": "0.0.24",
|
|
21
21
|
"zod": "^4.4.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|