@jh-tech/be-feed-shared 0.0.10 → 0.0.11

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/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * as CreateContentUpdateDef from './route-definitions/content-update/contentUpdate.create.js';
2
- export * as BulkCreateContentUpdatesDef from './route-definitions/content-update/contentUpdates.bulkCreate.js';
3
- export * as ListContentUpdatesDef from './route-definitions/content-update/contentUpdates.list.js';
1
+ export * as CreateFeedUpdateDef from './route-definitions/feed-update/feedUpdate.create.js';
2
+ export * as BulkCreateFeedUpdatesDef from './route-definitions/feed-update/feedUpdates.bulkCreate.js';
3
+ export * as ListFeedUpdatesDef from './route-definitions/feed-update/feedUpdates.list.js';
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * as CreateContentUpdateDef from './route-definitions/content-update/contentUpdate.create.js';
2
- export * as BulkCreateContentUpdatesDef from './route-definitions/content-update/contentUpdates.bulkCreate.js';
3
- export * as ListContentUpdatesDef from './route-definitions/content-update/contentUpdates.list.js';
1
+ export * as CreateFeedUpdateDef from './route-definitions/feed-update/feedUpdate.create.js';
2
+ export * as BulkCreateFeedUpdatesDef from './route-definitions/feed-update/feedUpdates.bulkCreate.js';
3
+ export * as ListFeedUpdatesDef from './route-definitions/feed-update/feedUpdates.list.js';
@@ -2,23 +2,7 @@ import type { RouteSchema, RouteDef } from '@jh-tech/util-tools-be';
2
2
  import { z } from 'zod';
3
3
  declare const request: z.ZodObject<{
4
4
  body: z.ZodObject<{
5
- data: z.ZodObject<{
6
- creatorId: z.ZodOptional<z.ZodUUID>;
7
- projectId: z.ZodOptional<z.ZodUUID>;
8
- collectionId: z.ZodOptional<z.ZodUUID>;
9
- updateContentId: z.ZodOptional<z.ZodUUID>;
10
- projectContentId: z.ZodOptional<z.ZodUUID>;
11
- collectionContentId: z.ZodOptional<z.ZodUUID>;
12
- type: z.ZodUnion<readonly [z.ZodEnum<{
13
- film: "film";
14
- video_game: "video_game";
15
- music: "music";
16
- tv: "tv";
17
- comic: "comic";
18
- book: "book";
19
- }>, z.ZodLiteral<"collection">]>;
20
- createdAt: z.ZodString;
21
- }, z.core.$strip>;
5
+ data: any;
22
6
  }, z.core.$strip>;
23
7
  }, z.core.$strip>;
24
8
  export declare const routeSchema: RouteSchema;
@@ -2,23 +2,7 @@ import type { RouteDef, RouteSchema } from '@jh-tech/util-tools-be';
2
2
  import { z } from 'zod';
3
3
  declare const request: z.ZodObject<{
4
4
  body: z.ZodObject<{
5
- data: z.ZodArray<z.ZodObject<{
6
- creatorId: z.ZodOptional<z.ZodUUID>;
7
- projectId: z.ZodOptional<z.ZodUUID>;
8
- collectionId: z.ZodOptional<z.ZodUUID>;
9
- updateContentId: z.ZodOptional<z.ZodUUID>;
10
- projectContentId: z.ZodOptional<z.ZodUUID>;
11
- collectionContentId: z.ZodOptional<z.ZodUUID>;
12
- type: z.ZodUnion<readonly [z.ZodEnum<{
13
- film: "film";
14
- video_game: "video_game";
15
- music: "music";
16
- tv: "tv";
17
- comic: "comic";
18
- book: "book";
19
- }>, z.ZodLiteral<"collection">]>;
20
- createdAt: z.ZodString;
21
- }, z.core.$strip>>;
5
+ data: z.ZodArray<any>;
22
6
  }, z.core.$strip>;
23
7
  }, z.core.$strip>;
24
8
  export declare const routeSchema: RouteSchema;
@@ -5,14 +5,7 @@ declare const query: z.ZodObject<{
5
5
  projectIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
6
6
  collectionIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
7
7
  filters: z.ZodOptional<z.ZodObject<{
8
- types: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
9
- film: "film";
10
- video_game: "video_game";
11
- music: "music";
12
- tv: "tv";
13
- comic: "comic";
14
- book: "book";
15
- }>, z.ZodLiteral<"collection">]>>>;
8
+ types: z.ZodOptional<z.ZodArray<any>>;
16
9
  languages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
17
10
  id: "id";
18
11
  af: "af";
@@ -44,11 +37,13 @@ declare const query: z.ZodObject<{
44
37
  la: "la";
45
38
  lb: "lb";
46
39
  mk: "mk";
40
+ ml: "ml";
47
41
  mr: "mr";
48
42
  ms: "ms";
49
43
  mt: "mt";
50
44
  nl: "nl";
51
45
  no: "no";
46
+ pa: "pa";
52
47
  pl: "pl";
53
48
  pt: "pt";
54
49
  ro: "ro";
@@ -337,14 +332,7 @@ declare const request: z.ZodObject<{
337
332
  projectIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
338
333
  collectionIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
339
334
  filters: z.ZodOptional<z.ZodObject<{
340
- types: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
341
- film: "film";
342
- video_game: "video_game";
343
- music: "music";
344
- tv: "tv";
345
- comic: "comic";
346
- book: "book";
347
- }>, z.ZodLiteral<"collection">]>>>;
335
+ types: z.ZodOptional<z.ZodArray<any>>;
348
336
  languages: z.ZodOptional<z.ZodArray<z.ZodEnum<{
349
337
  id: "id";
350
338
  af: "af";
@@ -376,11 +364,13 @@ declare const request: z.ZodObject<{
376
364
  la: "la";
377
365
  lb: "lb";
378
366
  mk: "mk";
367
+ ml: "ml";
379
368
  mr: "mr";
380
369
  ms: "ms";
381
370
  mt: "mt";
382
371
  nl: "nl";
383
372
  no: "no";
373
+ pa: "pa";
384
374
  pl: "pl";
385
375
  pt: "pt";
386
376
  ro: "ro";
@@ -665,23 +655,7 @@ declare const request: z.ZodObject<{
665
655
  }, z.core.$strip>;
666
656
  }, z.core.$strip>;
667
657
  declare const response: z.ZodObject<{
668
- data: z.ZodArray<z.ZodObject<{
669
- creatorId: z.ZodOptional<z.ZodUUID>;
670
- projectId: z.ZodOptional<z.ZodUUID>;
671
- collectionId: z.ZodOptional<z.ZodUUID>;
672
- updateContentId: z.ZodOptional<z.ZodUUID>;
673
- projectContentId: z.ZodOptional<z.ZodUUID>;
674
- collectionContentId: z.ZodOptional<z.ZodUUID>;
675
- type: z.ZodUnion<readonly [z.ZodEnum<{
676
- film: "film";
677
- video_game: "video_game";
678
- music: "music";
679
- tv: "tv";
680
- comic: "comic";
681
- book: "book";
682
- }>, z.ZodLiteral<"collection">]>;
683
- createdAt: z.ZodString;
684
- }, z.core.$strip>>;
658
+ data: z.ZodArray<any>;
685
659
  meta: z.ZodOptional<z.ZodObject<{
686
660
  cursor: z.ZodOptional<z.ZodString>;
687
661
  }, z.core.$strip>>;
@@ -0,0 +1,229 @@
1
+ import type { RouteSchema, RouteDef } from '@jh-tech/util-tools-be';
2
+ import { z } from 'zod';
3
+ declare const request: z.ZodObject<{
4
+ body: z.ZodObject<{
5
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ id: z.ZodUUID;
7
+ subscribedId: z.ZodUUID;
8
+ subscribedType: z.ZodEnum<{
9
+ collection: "collection";
10
+ project: "project";
11
+ creator: "creator";
12
+ }>;
13
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
14
+ film: "film";
15
+ video_game: "video_game";
16
+ music: "music";
17
+ tv: "tv";
18
+ comic: "comic";
19
+ book: "book";
20
+ }>, z.ZodLiteral<"collection">]>;
21
+ createdAt: z.ZodString;
22
+ contentId: z.ZodUUID;
23
+ type: z.ZodLiteral<"project">;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ id: z.ZodUUID;
26
+ subscribedId: z.ZodUUID;
27
+ subscribedType: z.ZodEnum<{
28
+ collection: "collection";
29
+ project: "project";
30
+ creator: "creator";
31
+ }>;
32
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
33
+ film: "film";
34
+ video_game: "video_game";
35
+ music: "music";
36
+ tv: "tv";
37
+ comic: "comic";
38
+ book: "book";
39
+ }>, z.ZodLiteral<"collection">]>;
40
+ createdAt: z.ZodString;
41
+ contentId: z.ZodUUID;
42
+ type: z.ZodLiteral<"collection">;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ id: z.ZodUUID;
45
+ subscribedId: z.ZodUUID;
46
+ subscribedType: z.ZodEnum<{
47
+ collection: "collection";
48
+ project: "project";
49
+ creator: "creator";
50
+ }>;
51
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
52
+ film: "film";
53
+ video_game: "video_game";
54
+ music: "music";
55
+ tv: "tv";
56
+ comic: "comic";
57
+ book: "book";
58
+ }>, z.ZodLiteral<"collection">]>;
59
+ createdAt: z.ZodString;
60
+ parentId: z.ZodUUID;
61
+ type: z.ZodLiteral<"marketing">;
62
+ contentId: z.ZodUUID;
63
+ subType: z.ZodEnum<{
64
+ trailer: "trailer";
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";
78
+ }>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ id: z.ZodUUID;
81
+ subscribedId: z.ZodUUID;
82
+ subscribedType: z.ZodEnum<{
83
+ collection: "collection";
84
+ project: "project";
85
+ creator: "creator";
86
+ }>;
87
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
88
+ film: "film";
89
+ video_game: "video_game";
90
+ music: "music";
91
+ tv: "tv";
92
+ comic: "comic";
93
+ book: "book";
94
+ }>, z.ZodLiteral<"collection">]>;
95
+ createdAt: z.ZodString;
96
+ parentId: z.ZodUUID;
97
+ type: z.ZodLiteral<"release">;
98
+ contentId: z.ZodUUID;
99
+ subType: z.ZodEnum<{
100
+ "final-release": "final-release";
101
+ "early-access": "early-access";
102
+ installment: "installment";
103
+ patch: "patch";
104
+ "special-edition": "special-edition";
105
+ season: "season";
106
+ adaptation: "adaptation";
107
+ reboot: "reboot";
108
+ beta: "beta";
109
+ demo: "demo";
110
+ }>;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ id: z.ZodUUID;
113
+ subscribedId: z.ZodUUID;
114
+ subscribedType: z.ZodEnum<{
115
+ collection: "collection";
116
+ project: "project";
117
+ creator: "creator";
118
+ }>;
119
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
120
+ film: "film";
121
+ video_game: "video_game";
122
+ music: "music";
123
+ tv: "tv";
124
+ comic: "comic";
125
+ book: "book";
126
+ }>, z.ZodLiteral<"collection">]>;
127
+ createdAt: z.ZodString;
128
+ parentId: z.ZodUUID;
129
+ type: z.ZodLiteral<"associated-project">;
130
+ contentId: z.ZodUUID;
131
+ subType: z.ZodEnum<{
132
+ dlc: "dlc";
133
+ remaster: "remaster";
134
+ remake: "remake";
135
+ "spin-off": "spin-off";
136
+ crossover: "crossover";
137
+ prequel: "prequel";
138
+ sequel: "sequel";
139
+ }>;
140
+ }, z.core.$strip>, z.ZodObject<{
141
+ id: z.ZodUUID;
142
+ subscribedId: z.ZodUUID;
143
+ subscribedType: z.ZodEnum<{
144
+ collection: "collection";
145
+ project: "project";
146
+ creator: "creator";
147
+ }>;
148
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
149
+ film: "film";
150
+ video_game: "video_game";
151
+ music: "music";
152
+ tv: "tv";
153
+ comic: "comic";
154
+ book: "book";
155
+ }>, z.ZodLiteral<"collection">]>;
156
+ createdAt: z.ZodString;
157
+ parentId: z.ZodUUID;
158
+ data: z.ZodString;
159
+ type: z.ZodLiteral<"new-creator">;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ id: z.ZodUUID;
162
+ subscribedId: z.ZodUUID;
163
+ subscribedType: z.ZodEnum<{
164
+ collection: "collection";
165
+ project: "project";
166
+ creator: "creator";
167
+ }>;
168
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
169
+ film: "film";
170
+ video_game: "video_game";
171
+ music: "music";
172
+ tv: "tv";
173
+ comic: "comic";
174
+ book: "book";
175
+ }>, z.ZodLiteral<"collection">]>;
176
+ createdAt: z.ZodString;
177
+ parentId: z.ZodUUID;
178
+ data: z.ZodString;
179
+ type: z.ZodLiteral<"production-status">;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ id: z.ZodUUID;
182
+ subscribedId: z.ZodUUID;
183
+ subscribedType: z.ZodEnum<{
184
+ collection: "collection";
185
+ project: "project";
186
+ creator: "creator";
187
+ }>;
188
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
189
+ film: "film";
190
+ video_game: "video_game";
191
+ music: "music";
192
+ tv: "tv";
193
+ comic: "comic";
194
+ book: "book";
195
+ }>, z.ZodLiteral<"collection">]>;
196
+ createdAt: z.ZodString;
197
+ parentId: z.ZodUUID;
198
+ data: z.ZodString;
199
+ type: z.ZodLiteral<"release-date">;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ id: z.ZodUUID;
202
+ subscribedId: z.ZodUUID;
203
+ subscribedType: z.ZodEnum<{
204
+ collection: "collection";
205
+ project: "project";
206
+ creator: "creator";
207
+ }>;
208
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
209
+ film: "film";
210
+ video_game: "video_game";
211
+ music: "music";
212
+ tv: "tv";
213
+ comic: "comic";
214
+ book: "book";
215
+ }>, z.ZodLiteral<"collection">]>;
216
+ createdAt: z.ZodString;
217
+ parentId: z.ZodUUID;
218
+ data: z.ZodString;
219
+ type: z.ZodLiteral<"availability">;
220
+ }, z.core.$strip>], "type">;
221
+ }, z.core.$strip>;
222
+ }, z.core.$strip>;
223
+ export declare const routeSchema: RouteSchema;
224
+ export type Request = z.infer<typeof request>;
225
+ export type Response = {
226
+ status?: number;
227
+ };
228
+ export declare const definition: RouteDef;
229
+ export {};
@@ -0,0 +1,13 @@
1
+ import { feedUpdate } from '@jackhayes/util-types';
2
+ import { z } from 'zod';
3
+ const request = z.object({
4
+ body: z.object({
5
+ data: feedUpdate,
6
+ }),
7
+ });
8
+ export const routeSchema = {
9
+ request,
10
+ };
11
+ const method = 'post';
12
+ const path = '/feed-update';
13
+ export const definition = { method, path, routeSchema };
@@ -0,0 +1,229 @@
1
+ import type { RouteDef, RouteSchema } from '@jh-tech/util-tools-be';
2
+ import { z } from 'zod';
3
+ declare const request: z.ZodObject<{
4
+ body: z.ZodObject<{
5
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ id: z.ZodUUID;
7
+ subscribedId: z.ZodUUID;
8
+ subscribedType: z.ZodEnum<{
9
+ collection: "collection";
10
+ project: "project";
11
+ creator: "creator";
12
+ }>;
13
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
14
+ film: "film";
15
+ video_game: "video_game";
16
+ music: "music";
17
+ tv: "tv";
18
+ comic: "comic";
19
+ book: "book";
20
+ }>, z.ZodLiteral<"collection">]>;
21
+ createdAt: z.ZodString;
22
+ contentId: z.ZodUUID;
23
+ type: z.ZodLiteral<"project">;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ id: z.ZodUUID;
26
+ subscribedId: z.ZodUUID;
27
+ subscribedType: z.ZodEnum<{
28
+ collection: "collection";
29
+ project: "project";
30
+ creator: "creator";
31
+ }>;
32
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
33
+ film: "film";
34
+ video_game: "video_game";
35
+ music: "music";
36
+ tv: "tv";
37
+ comic: "comic";
38
+ book: "book";
39
+ }>, z.ZodLiteral<"collection">]>;
40
+ createdAt: z.ZodString;
41
+ contentId: z.ZodUUID;
42
+ type: z.ZodLiteral<"collection">;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ id: z.ZodUUID;
45
+ subscribedId: z.ZodUUID;
46
+ subscribedType: z.ZodEnum<{
47
+ collection: "collection";
48
+ project: "project";
49
+ creator: "creator";
50
+ }>;
51
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
52
+ film: "film";
53
+ video_game: "video_game";
54
+ music: "music";
55
+ tv: "tv";
56
+ comic: "comic";
57
+ book: "book";
58
+ }>, z.ZodLiteral<"collection">]>;
59
+ createdAt: z.ZodString;
60
+ parentId: z.ZodUUID;
61
+ type: z.ZodLiteral<"marketing">;
62
+ contentId: z.ZodUUID;
63
+ subType: z.ZodEnum<{
64
+ trailer: "trailer";
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";
78
+ }>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ id: z.ZodUUID;
81
+ subscribedId: z.ZodUUID;
82
+ subscribedType: z.ZodEnum<{
83
+ collection: "collection";
84
+ project: "project";
85
+ creator: "creator";
86
+ }>;
87
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
88
+ film: "film";
89
+ video_game: "video_game";
90
+ music: "music";
91
+ tv: "tv";
92
+ comic: "comic";
93
+ book: "book";
94
+ }>, z.ZodLiteral<"collection">]>;
95
+ createdAt: z.ZodString;
96
+ parentId: z.ZodUUID;
97
+ type: z.ZodLiteral<"release">;
98
+ contentId: z.ZodUUID;
99
+ subType: z.ZodEnum<{
100
+ "final-release": "final-release";
101
+ "early-access": "early-access";
102
+ installment: "installment";
103
+ patch: "patch";
104
+ "special-edition": "special-edition";
105
+ season: "season";
106
+ adaptation: "adaptation";
107
+ reboot: "reboot";
108
+ beta: "beta";
109
+ demo: "demo";
110
+ }>;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ id: z.ZodUUID;
113
+ subscribedId: z.ZodUUID;
114
+ subscribedType: z.ZodEnum<{
115
+ collection: "collection";
116
+ project: "project";
117
+ creator: "creator";
118
+ }>;
119
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
120
+ film: "film";
121
+ video_game: "video_game";
122
+ music: "music";
123
+ tv: "tv";
124
+ comic: "comic";
125
+ book: "book";
126
+ }>, z.ZodLiteral<"collection">]>;
127
+ createdAt: z.ZodString;
128
+ parentId: z.ZodUUID;
129
+ type: z.ZodLiteral<"associated-project">;
130
+ contentId: z.ZodUUID;
131
+ subType: z.ZodEnum<{
132
+ dlc: "dlc";
133
+ remaster: "remaster";
134
+ remake: "remake";
135
+ "spin-off": "spin-off";
136
+ crossover: "crossover";
137
+ prequel: "prequel";
138
+ sequel: "sequel";
139
+ }>;
140
+ }, z.core.$strip>, z.ZodObject<{
141
+ id: z.ZodUUID;
142
+ subscribedId: z.ZodUUID;
143
+ subscribedType: z.ZodEnum<{
144
+ collection: "collection";
145
+ project: "project";
146
+ creator: "creator";
147
+ }>;
148
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
149
+ film: "film";
150
+ video_game: "video_game";
151
+ music: "music";
152
+ tv: "tv";
153
+ comic: "comic";
154
+ book: "book";
155
+ }>, z.ZodLiteral<"collection">]>;
156
+ createdAt: z.ZodString;
157
+ parentId: z.ZodUUID;
158
+ data: z.ZodString;
159
+ type: z.ZodLiteral<"new-creator">;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ id: z.ZodUUID;
162
+ subscribedId: z.ZodUUID;
163
+ subscribedType: z.ZodEnum<{
164
+ collection: "collection";
165
+ project: "project";
166
+ creator: "creator";
167
+ }>;
168
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
169
+ film: "film";
170
+ video_game: "video_game";
171
+ music: "music";
172
+ tv: "tv";
173
+ comic: "comic";
174
+ book: "book";
175
+ }>, z.ZodLiteral<"collection">]>;
176
+ createdAt: z.ZodString;
177
+ parentId: z.ZodUUID;
178
+ data: z.ZodString;
179
+ type: z.ZodLiteral<"production-status">;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ id: z.ZodUUID;
182
+ subscribedId: z.ZodUUID;
183
+ subscribedType: z.ZodEnum<{
184
+ collection: "collection";
185
+ project: "project";
186
+ creator: "creator";
187
+ }>;
188
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
189
+ film: "film";
190
+ video_game: "video_game";
191
+ music: "music";
192
+ tv: "tv";
193
+ comic: "comic";
194
+ book: "book";
195
+ }>, z.ZodLiteral<"collection">]>;
196
+ createdAt: z.ZodString;
197
+ parentId: z.ZodUUID;
198
+ data: z.ZodString;
199
+ type: z.ZodLiteral<"release-date">;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ id: z.ZodUUID;
202
+ subscribedId: z.ZodUUID;
203
+ subscribedType: z.ZodEnum<{
204
+ collection: "collection";
205
+ project: "project";
206
+ creator: "creator";
207
+ }>;
208
+ displayType: z.ZodUnion<readonly [z.ZodEnum<{
209
+ film: "film";
210
+ video_game: "video_game";
211
+ music: "music";
212
+ tv: "tv";
213
+ comic: "comic";
214
+ book: "book";
215
+ }>, z.ZodLiteral<"collection">]>;
216
+ createdAt: z.ZodString;
217
+ parentId: z.ZodUUID;
218
+ data: z.ZodString;
219
+ type: z.ZodLiteral<"availability">;
220
+ }, z.core.$strip>], "type">>;
221
+ }, z.core.$strip>;
222
+ }, z.core.$strip>;
223
+ export declare const routeSchema: RouteSchema;
224
+ export type Request = z.infer<typeof request>;
225
+ export type Response = {
226
+ status?: number;
227
+ };
228
+ export declare const definition: RouteDef;
229
+ export {};
@@ -0,0 +1,13 @@
1
+ import { feedUpdate } from '@jackhayes/util-types';
2
+ import { z } from 'zod';
3
+ const request = z.object({
4
+ body: z.object({
5
+ data: z.array(feedUpdate),
6
+ }),
7
+ });
8
+ export const routeSchema = {
9
+ request,
10
+ };
11
+ const method = 'post';
12
+ const path = '/feed-updates/bulk';
13
+ export const definition = { method, path, routeSchema };