@jh-tech/be-content-shared 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.
@@ -1,19 +1,66 @@
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
+ beta: "beta";
61
+ demo: "demo";
62
+ }>;
63
+ }, z.core.$strip>], "type">;
17
64
  }, z.core.$strip>;
18
65
  declare const request: z.ZodObject<{
19
66
  params: z.ZodObject<{
@@ -7,31 +7,111 @@ 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";
11
- trailer: "trailer";
12
- teaser: "teaser";
13
13
  }>>;
14
14
  title: z.ZodOptional<z.ZodString>;
15
15
  projectId: z.ZodOptional<z.ZodUUID>;
16
+ subType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
17
+ trailer: "trailer";
18
+ teaser: "teaser";
19
+ poster: "poster";
20
+ clip: "clip";
21
+ gameplay: "gameplay";
22
+ screenshots: "screenshots";
23
+ "behind-the-scenes": "behind-the-scenes";
24
+ "first-look": "first-look";
25
+ "key-art": "key-art";
26
+ "music-video": "music-video";
27
+ "cover-reveal": "cover-reveal";
28
+ "pre-order": "pre-order";
29
+ update: "update";
30
+ article: "article";
31
+ }>, z.ZodEnum<{
32
+ "final-release": "final-release";
33
+ "early-access": "early-access";
34
+ installment: "installment";
35
+ patch: "patch";
36
+ "special-edition": "special-edition";
37
+ season: "season";
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
+ }>]>>;
16
49
  links: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
50
  publishedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
18
51
  }, z.core.$strip>;
19
52
  }, z.core.$strip>;
20
53
  }, z.core.$strip>;
21
54
  declare const response: z.ZodObject<{
22
- data: z.ZodObject<{
55
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
56
  id: z.ZodUUID;
24
- type: z.ZodEnum<{
25
- release: "release";
57
+ title: z.ZodString;
58
+ links: z.ZodArray<z.ZodString>;
59
+ projectId: z.ZodUUID;
60
+ publishedAt: z.ZodOptional<z.ZodString>;
61
+ createdAt: z.ZodString;
62
+ type: z.ZodLiteral<"marketing">;
63
+ subType: z.ZodEnum<{
26
64
  trailer: "trailer";
27
65
  teaser: "teaser";
66
+ poster: "poster";
67
+ clip: "clip";
68
+ gameplay: "gameplay";
69
+ screenshots: "screenshots";
70
+ "behind-the-scenes": "behind-the-scenes";
71
+ "first-look": "first-look";
72
+ "key-art": "key-art";
73
+ "music-video": "music-video";
74
+ "cover-reveal": "cover-reveal";
75
+ "pre-order": "pre-order";
76
+ update: "update";
77
+ article: "article";
28
78
  }>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ id: z.ZodUUID;
29
81
  title: z.ZodString;
30
82
  links: z.ZodArray<z.ZodString>;
31
83
  projectId: z.ZodUUID;
32
84
  publishedAt: z.ZodOptional<z.ZodString>;
33
85
  createdAt: z.ZodString;
34
- }, z.core.$strip>;
86
+ type: z.ZodLiteral<"associated-project">;
87
+ subType: z.ZodEnum<{
88
+ dlc: "dlc";
89
+ remaster: "remaster";
90
+ remake: "remake";
91
+ "spin-off": "spin-off";
92
+ crossover: "crossover";
93
+ prequel: "prequel";
94
+ sequel: "sequel";
95
+ }>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ id: z.ZodUUID;
98
+ title: z.ZodString;
99
+ links: z.ZodArray<z.ZodString>;
100
+ projectId: z.ZodUUID;
101
+ publishedAt: z.ZodOptional<z.ZodString>;
102
+ createdAt: z.ZodString;
103
+ type: z.ZodLiteral<"release">;
104
+ subType: z.ZodEnum<{
105
+ "final-release": "final-release";
106
+ "early-access": "early-access";
107
+ installment: "installment";
108
+ patch: "patch";
109
+ "special-edition": "special-edition";
110
+ season: "season";
111
+ beta: "beta";
112
+ demo: "demo";
113
+ }>;
114
+ }, z.core.$strip>], "type">;
35
115
  }, z.core.$strip>;
36
116
  export declare const routeSchema: RouteSchema;
37
117
  export type Request = z.infer<typeof request>;
@@ -4,31 +4,111 @@ declare const request: z.ZodObject<{
4
4
  body: z.ZodObject<{
5
5
  data: z.ZodArray<z.ZodObject<{
6
6
  type: z.ZodEnum<{
7
+ marketing: "marketing";
8
+ "associated-project": "associated-project";
7
9
  release: "release";
8
- trailer: "trailer";
9
- teaser: "teaser";
10
10
  }>;
11
11
  title: z.ZodString;
12
12
  projectId: z.ZodUUID;
13
+ subType: z.ZodUnion<readonly [z.ZodEnum<{
14
+ trailer: "trailer";
15
+ teaser: "teaser";
16
+ poster: "poster";
17
+ clip: "clip";
18
+ gameplay: "gameplay";
19
+ screenshots: "screenshots";
20
+ "behind-the-scenes": "behind-the-scenes";
21
+ "first-look": "first-look";
22
+ "key-art": "key-art";
23
+ "music-video": "music-video";
24
+ "cover-reveal": "cover-reveal";
25
+ "pre-order": "pre-order";
26
+ update: "update";
27
+ article: "article";
28
+ }>, z.ZodEnum<{
29
+ "final-release": "final-release";
30
+ "early-access": "early-access";
31
+ installment: "installment";
32
+ patch: "patch";
33
+ "special-edition": "special-edition";
34
+ season: "season";
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
+ }>]>;
13
46
  links: z.ZodArray<z.ZodString>;
14
47
  publishedAt: z.ZodOptional<z.ZodString>;
15
48
  }, z.core.$strip>>;
16
49
  }, z.core.$strip>;
17
50
  }, z.core.$strip>;
18
51
  declare const response: z.ZodObject<{
19
- data: z.ZodArray<z.ZodObject<{
52
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
20
53
  id: z.ZodUUID;
21
- type: z.ZodEnum<{
22
- release: "release";
54
+ title: z.ZodString;
55
+ links: z.ZodArray<z.ZodString>;
56
+ projectId: z.ZodUUID;
57
+ publishedAt: z.ZodOptional<z.ZodString>;
58
+ createdAt: z.ZodString;
59
+ type: z.ZodLiteral<"marketing">;
60
+ subType: z.ZodEnum<{
23
61
  trailer: "trailer";
24
62
  teaser: "teaser";
63
+ poster: "poster";
64
+ clip: "clip";
65
+ gameplay: "gameplay";
66
+ screenshots: "screenshots";
67
+ "behind-the-scenes": "behind-the-scenes";
68
+ "first-look": "first-look";
69
+ "key-art": "key-art";
70
+ "music-video": "music-video";
71
+ "cover-reveal": "cover-reveal";
72
+ "pre-order": "pre-order";
73
+ update: "update";
74
+ article: "article";
25
75
  }>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ id: z.ZodUUID;
26
78
  title: z.ZodString;
27
79
  links: z.ZodArray<z.ZodString>;
28
80
  projectId: z.ZodUUID;
29
81
  publishedAt: z.ZodOptional<z.ZodString>;
30
82
  createdAt: z.ZodString;
31
- }, z.core.$strip>>;
83
+ type: z.ZodLiteral<"associated-project">;
84
+ subType: z.ZodEnum<{
85
+ dlc: "dlc";
86
+ remaster: "remaster";
87
+ remake: "remake";
88
+ "spin-off": "spin-off";
89
+ crossover: "crossover";
90
+ prequel: "prequel";
91
+ sequel: "sequel";
92
+ }>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ id: z.ZodUUID;
95
+ title: z.ZodString;
96
+ links: z.ZodArray<z.ZodString>;
97
+ projectId: z.ZodUUID;
98
+ publishedAt: z.ZodOptional<z.ZodString>;
99
+ createdAt: z.ZodString;
100
+ type: z.ZodLiteral<"release">;
101
+ subType: z.ZodEnum<{
102
+ "final-release": "final-release";
103
+ "early-access": "early-access";
104
+ installment: "installment";
105
+ patch: "patch";
106
+ "special-edition": "special-edition";
107
+ season: "season";
108
+ beta: "beta";
109
+ demo: "demo";
110
+ }>;
111
+ }, z.core.$strip>], "type">>;
32
112
  }, z.core.$strip>;
33
113
  export declare const routeSchema: RouteSchema;
34
114
  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,66 @@ 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
+ beta: "beta";
180
+ demo: "demo";
181
+ }>;
182
+ }, z.core.$strip>], "type">>;
136
183
  meta: z.ZodOptional<z.ZodObject<{
137
184
  cursor: z.ZodOptional<z.ZodString>;
138
185
  }, z.core.$strip>>;