@jh-tech/be-content-shared 0.0.45 → 0.0.47

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.
@@ -1,19 +1,68 @@
1
1
  import type { RouteSchema, RouteDef } from '@jh-tech/util-tools-be';
2
2
  import { z } from 'zod';
3
3
  declare const response: z.ZodObject<{
4
- data: z.ZodObject<{
4
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
5
  id: z.ZodUUID;
6
- type: z.ZodEnum<{
7
- release: "release";
6
+ title: z.ZodString;
7
+ links: z.ZodArray<z.ZodString>;
8
+ projectId: z.ZodUUID;
9
+ publishedAt: z.ZodOptional<z.ZodString>;
10
+ createdAt: z.ZodString;
11
+ type: z.ZodLiteral<"marketing">;
12
+ subType: z.ZodEnum<{
8
13
  trailer: "trailer";
9
14
  teaser: "teaser";
15
+ poster: "poster";
16
+ clip: "clip";
17
+ gameplay: "gameplay";
18
+ screenshots: "screenshots";
19
+ "behind-the-scenes": "behind-the-scenes";
20
+ "first-look": "first-look";
21
+ "key-art": "key-art";
22
+ "music-video": "music-video";
23
+ "cover-reveal": "cover-reveal";
24
+ "pre-order": "pre-order";
25
+ update: "update";
26
+ article: "article";
10
27
  }>;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ id: z.ZodUUID;
11
30
  title: z.ZodString;
12
31
  links: z.ZodArray<z.ZodString>;
13
32
  projectId: z.ZodUUID;
14
33
  publishedAt: z.ZodOptional<z.ZodString>;
15
34
  createdAt: z.ZodString;
16
- }, z.core.$strip>;
35
+ type: z.ZodLiteral<"associated-project">;
36
+ subType: z.ZodEnum<{
37
+ dlc: "dlc";
38
+ remaster: "remaster";
39
+ remake: "remake";
40
+ "spin-off": "spin-off";
41
+ crossover: "crossover";
42
+ prequel: "prequel";
43
+ sequel: "sequel";
44
+ }>;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ id: z.ZodUUID;
47
+ title: z.ZodString;
48
+ links: z.ZodArray<z.ZodString>;
49
+ projectId: z.ZodUUID;
50
+ publishedAt: z.ZodOptional<z.ZodString>;
51
+ createdAt: z.ZodString;
52
+ type: z.ZodLiteral<"release">;
53
+ subType: z.ZodEnum<{
54
+ "final-release": "final-release";
55
+ "early-access": "early-access";
56
+ installment: "installment";
57
+ patch: "patch";
58
+ "special-edition": "special-edition";
59
+ season: "season";
60
+ adaptation: "adaptation";
61
+ reboot: "reboot";
62
+ beta: "beta";
63
+ demo: "demo";
64
+ }>;
65
+ }, z.core.$strip>], "type">;
17
66
  }, z.core.$strip>;
18
67
  declare const request: z.ZodObject<{
19
68
  params: z.ZodObject<{
@@ -7,10 +7,45 @@ declare const request: z.ZodObject<{
7
7
  body: z.ZodObject<{
8
8
  data: z.ZodObject<{
9
9
  type: z.ZodOptional<z.ZodEnum<{
10
+ marketing: "marketing";
11
+ "associated-project": "associated-project";
10
12
  release: "release";
13
+ }>>;
14
+ subType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
11
15
  trailer: "trailer";
12
16
  teaser: "teaser";
13
- }>>;
17
+ poster: "poster";
18
+ clip: "clip";
19
+ gameplay: "gameplay";
20
+ screenshots: "screenshots";
21
+ "behind-the-scenes": "behind-the-scenes";
22
+ "first-look": "first-look";
23
+ "key-art": "key-art";
24
+ "music-video": "music-video";
25
+ "cover-reveal": "cover-reveal";
26
+ "pre-order": "pre-order";
27
+ update: "update";
28
+ article: "article";
29
+ }>, z.ZodEnum<{
30
+ "final-release": "final-release";
31
+ "early-access": "early-access";
32
+ installment: "installment";
33
+ patch: "patch";
34
+ "special-edition": "special-edition";
35
+ season: "season";
36
+ adaptation: "adaptation";
37
+ reboot: "reboot";
38
+ beta: "beta";
39
+ demo: "demo";
40
+ }>, z.ZodEnum<{
41
+ dlc: "dlc";
42
+ remaster: "remaster";
43
+ remake: "remake";
44
+ "spin-off": "spin-off";
45
+ crossover: "crossover";
46
+ prequel: "prequel";
47
+ sequel: "sequel";
48
+ }>]>>;
14
49
  title: z.ZodOptional<z.ZodString>;
15
50
  links: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
51
  projectId: z.ZodOptional<z.ZodUUID>;
@@ -19,19 +54,68 @@ declare const request: z.ZodObject<{
19
54
  }, z.core.$strip>;
20
55
  }, z.core.$strip>;
21
56
  declare const response: z.ZodObject<{
22
- data: z.ZodObject<{
57
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
58
  id: z.ZodUUID;
24
- type: z.ZodEnum<{
25
- release: "release";
59
+ title: z.ZodString;
60
+ links: z.ZodArray<z.ZodString>;
61
+ projectId: z.ZodUUID;
62
+ publishedAt: z.ZodOptional<z.ZodString>;
63
+ createdAt: z.ZodString;
64
+ type: z.ZodLiteral<"marketing">;
65
+ subType: z.ZodEnum<{
26
66
  trailer: "trailer";
27
67
  teaser: "teaser";
68
+ poster: "poster";
69
+ clip: "clip";
70
+ gameplay: "gameplay";
71
+ screenshots: "screenshots";
72
+ "behind-the-scenes": "behind-the-scenes";
73
+ "first-look": "first-look";
74
+ "key-art": "key-art";
75
+ "music-video": "music-video";
76
+ "cover-reveal": "cover-reveal";
77
+ "pre-order": "pre-order";
78
+ update: "update";
79
+ article: "article";
28
80
  }>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ id: z.ZodUUID;
29
83
  title: z.ZodString;
30
84
  links: z.ZodArray<z.ZodString>;
31
85
  projectId: z.ZodUUID;
32
86
  publishedAt: z.ZodOptional<z.ZodString>;
33
87
  createdAt: z.ZodString;
34
- }, z.core.$strip>;
88
+ type: z.ZodLiteral<"associated-project">;
89
+ subType: z.ZodEnum<{
90
+ dlc: "dlc";
91
+ remaster: "remaster";
92
+ remake: "remake";
93
+ "spin-off": "spin-off";
94
+ crossover: "crossover";
95
+ prequel: "prequel";
96
+ sequel: "sequel";
97
+ }>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ id: z.ZodUUID;
100
+ title: z.ZodString;
101
+ links: z.ZodArray<z.ZodString>;
102
+ projectId: z.ZodUUID;
103
+ publishedAt: z.ZodOptional<z.ZodString>;
104
+ createdAt: z.ZodString;
105
+ type: z.ZodLiteral<"release">;
106
+ subType: z.ZodEnum<{
107
+ "final-release": "final-release";
108
+ "early-access": "early-access";
109
+ installment: "installment";
110
+ patch: "patch";
111
+ "special-edition": "special-edition";
112
+ season: "season";
113
+ adaptation: "adaptation";
114
+ reboot: "reboot";
115
+ beta: "beta";
116
+ demo: "demo";
117
+ }>;
118
+ }, z.core.$strip>], "type">;
35
119
  }, z.core.$strip>;
36
120
  export declare const routeSchema: RouteSchema;
37
121
  export type Request = z.infer<typeof request>;
@@ -3,32 +3,116 @@ import { z } from 'zod';
3
3
  declare const request: z.ZodObject<{
4
4
  body: z.ZodObject<{
5
5
  data: z.ZodArray<z.ZodObject<{
6
- projectId: z.ZodUUID;
7
6
  type: z.ZodEnum<{
7
+ marketing: "marketing";
8
+ "associated-project": "associated-project";
8
9
  release: "release";
10
+ }>;
11
+ subType: z.ZodUnion<readonly [z.ZodEnum<{
9
12
  trailer: "trailer";
10
13
  teaser: "teaser";
11
- }>;
14
+ poster: "poster";
15
+ clip: "clip";
16
+ gameplay: "gameplay";
17
+ screenshots: "screenshots";
18
+ "behind-the-scenes": "behind-the-scenes";
19
+ "first-look": "first-look";
20
+ "key-art": "key-art";
21
+ "music-video": "music-video";
22
+ "cover-reveal": "cover-reveal";
23
+ "pre-order": "pre-order";
24
+ update: "update";
25
+ article: "article";
26
+ }>, z.ZodEnum<{
27
+ "final-release": "final-release";
28
+ "early-access": "early-access";
29
+ installment: "installment";
30
+ patch: "patch";
31
+ "special-edition": "special-edition";
32
+ season: "season";
33
+ adaptation: "adaptation";
34
+ reboot: "reboot";
35
+ beta: "beta";
36
+ demo: "demo";
37
+ }>, z.ZodEnum<{
38
+ dlc: "dlc";
39
+ remaster: "remaster";
40
+ remake: "remake";
41
+ "spin-off": "spin-off";
42
+ crossover: "crossover";
43
+ prequel: "prequel";
44
+ sequel: "sequel";
45
+ }>]>;
12
46
  title: z.ZodString;
13
47
  links: z.ZodArray<z.ZodString>;
48
+ projectId: z.ZodUUID;
14
49
  publishedAt: z.ZodOptional<z.ZodString>;
15
50
  }, z.core.$strip>>;
16
51
  }, z.core.$strip>;
17
52
  }, z.core.$strip>;
18
53
  declare const response: z.ZodObject<{
19
- data: z.ZodArray<z.ZodObject<{
54
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
20
55
  id: z.ZodUUID;
21
- type: z.ZodEnum<{
22
- release: "release";
56
+ title: z.ZodString;
57
+ links: z.ZodArray<z.ZodString>;
58
+ projectId: z.ZodUUID;
59
+ publishedAt: z.ZodOptional<z.ZodString>;
60
+ createdAt: z.ZodString;
61
+ type: z.ZodLiteral<"marketing">;
62
+ subType: z.ZodEnum<{
23
63
  trailer: "trailer";
24
64
  teaser: "teaser";
65
+ poster: "poster";
66
+ clip: "clip";
67
+ gameplay: "gameplay";
68
+ screenshots: "screenshots";
69
+ "behind-the-scenes": "behind-the-scenes";
70
+ "first-look": "first-look";
71
+ "key-art": "key-art";
72
+ "music-video": "music-video";
73
+ "cover-reveal": "cover-reveal";
74
+ "pre-order": "pre-order";
75
+ update: "update";
76
+ article: "article";
25
77
  }>;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ id: z.ZodUUID;
26
80
  title: z.ZodString;
27
81
  links: z.ZodArray<z.ZodString>;
28
82
  projectId: z.ZodUUID;
29
83
  publishedAt: z.ZodOptional<z.ZodString>;
30
84
  createdAt: z.ZodString;
31
- }, z.core.$strip>>;
85
+ type: z.ZodLiteral<"associated-project">;
86
+ subType: z.ZodEnum<{
87
+ dlc: "dlc";
88
+ remaster: "remaster";
89
+ remake: "remake";
90
+ "spin-off": "spin-off";
91
+ crossover: "crossover";
92
+ prequel: "prequel";
93
+ sequel: "sequel";
94
+ }>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ id: z.ZodUUID;
97
+ title: z.ZodString;
98
+ links: z.ZodArray<z.ZodString>;
99
+ projectId: z.ZodUUID;
100
+ publishedAt: z.ZodOptional<z.ZodString>;
101
+ createdAt: z.ZodString;
102
+ type: z.ZodLiteral<"release">;
103
+ subType: z.ZodEnum<{
104
+ "final-release": "final-release";
105
+ "early-access": "early-access";
106
+ installment: "installment";
107
+ patch: "patch";
108
+ "special-edition": "special-edition";
109
+ season: "season";
110
+ adaptation: "adaptation";
111
+ reboot: "reboot";
112
+ beta: "beta";
113
+ demo: "demo";
114
+ }>;
115
+ }, z.core.$strip>], "type">>;
32
116
  }, z.core.$strip>;
33
117
  export declare const routeSchema: RouteSchema;
34
118
  export type Request = z.infer<typeof request>;
@@ -14,9 +14,9 @@ declare const filters: z.ZodObject<{
14
14
  projectLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
15
  projectCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
16
  updateTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17
+ marketing: "marketing";
18
+ "associated-project": "associated-project";
17
19
  release: "release";
18
- trailer: "trailer";
19
- teaser: "teaser";
20
20
  }>>>;
21
21
  publishedAt: z.ZodOptional<z.ZodObject<{
22
22
  from: z.ZodOptional<z.ZodISODateTime>;
@@ -62,9 +62,9 @@ declare const query: z.ZodObject<{
62
62
  projectLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
63
  projectCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
64
  updateTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
65
+ marketing: "marketing";
66
+ "associated-project": "associated-project";
65
67
  release: "release";
66
- trailer: "trailer";
67
- teaser: "teaser";
68
68
  }>>>;
69
69
  publishedAt: z.ZodOptional<z.ZodObject<{
70
70
  from: z.ZodOptional<z.ZodISODateTime>;
@@ -103,9 +103,9 @@ declare const request: z.ZodObject<{
103
103
  projectLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
104
  projectCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
105
  updateTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
106
+ marketing: "marketing";
107
+ "associated-project": "associated-project";
106
108
  release: "release";
107
- trailer: "trailer";
108
- teaser: "teaser";
109
109
  }>>>;
110
110
  publishedAt: z.ZodOptional<z.ZodObject<{
111
111
  from: z.ZodOptional<z.ZodISODateTime>;
@@ -120,19 +120,68 @@ declare const request: z.ZodObject<{
120
120
  }, z.core.$strip>;
121
121
  }, z.core.$strip>;
122
122
  declare const response: z.ZodObject<{
123
- data: z.ZodArray<z.ZodObject<{
123
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
124
124
  id: z.ZodUUID;
125
- type: z.ZodEnum<{
126
- release: "release";
125
+ title: z.ZodString;
126
+ links: z.ZodArray<z.ZodString>;
127
+ projectId: z.ZodUUID;
128
+ publishedAt: z.ZodOptional<z.ZodString>;
129
+ createdAt: z.ZodString;
130
+ type: z.ZodLiteral<"marketing">;
131
+ subType: z.ZodEnum<{
127
132
  trailer: "trailer";
128
133
  teaser: "teaser";
134
+ poster: "poster";
135
+ clip: "clip";
136
+ gameplay: "gameplay";
137
+ screenshots: "screenshots";
138
+ "behind-the-scenes": "behind-the-scenes";
139
+ "first-look": "first-look";
140
+ "key-art": "key-art";
141
+ "music-video": "music-video";
142
+ "cover-reveal": "cover-reveal";
143
+ "pre-order": "pre-order";
144
+ update: "update";
145
+ article: "article";
146
+ }>;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ id: z.ZodUUID;
149
+ title: z.ZodString;
150
+ links: z.ZodArray<z.ZodString>;
151
+ projectId: z.ZodUUID;
152
+ publishedAt: z.ZodOptional<z.ZodString>;
153
+ createdAt: z.ZodString;
154
+ type: z.ZodLiteral<"associated-project">;
155
+ subType: z.ZodEnum<{
156
+ dlc: "dlc";
157
+ remaster: "remaster";
158
+ remake: "remake";
159
+ "spin-off": "spin-off";
160
+ crossover: "crossover";
161
+ prequel: "prequel";
162
+ sequel: "sequel";
129
163
  }>;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ id: z.ZodUUID;
130
166
  title: z.ZodString;
131
167
  links: z.ZodArray<z.ZodString>;
132
168
  projectId: z.ZodUUID;
133
169
  publishedAt: z.ZodOptional<z.ZodString>;
134
170
  createdAt: z.ZodString;
135
- }, z.core.$strip>>;
171
+ type: z.ZodLiteral<"release">;
172
+ subType: z.ZodEnum<{
173
+ "final-release": "final-release";
174
+ "early-access": "early-access";
175
+ installment: "installment";
176
+ patch: "patch";
177
+ "special-edition": "special-edition";
178
+ season: "season";
179
+ adaptation: "adaptation";
180
+ reboot: "reboot";
181
+ beta: "beta";
182
+ demo: "demo";
183
+ }>;
184
+ }, z.core.$strip>], "type">>;
136
185
  meta: z.ZodOptional<z.ZodObject<{
137
186
  cursor: z.ZodOptional<z.ZodString>;
138
187
  }, z.core.$strip>>;