@burdenoff/microfe-hookmovies 2026.705.2 → 2026.706.2
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/hookmovies/HookMoviesRoutes.js +26 -6
- package/dist/hookmovies/HookMoviesRoutes.js.map +1 -1
- package/dist/hookmovies/components/index.js +7 -0
- package/dist/hookmovies/hooks/index.js +1 -0
- package/dist/hookmovies/hooks/useFiles.js +97 -0
- package/dist/hookmovies/hooks/useFiles.js.map +1 -0
- package/dist/hookmovies/hooks/useHookMoviesApi.js +204 -52
- package/dist/hookmovies/hooks/useHookMoviesApi.js.map +1 -1
- package/dist/hookmovies/pages/HomePage.js +2 -2
- package/dist/hookmovies/pages/HomePage.js.map +1 -1
- package/dist/hookmovies/pages/auditions/AuditionDetailPage.js +100 -45
- package/dist/hookmovies/pages/auditions/AuditionDetailPage.js.map +1 -1
- package/dist/hookmovies/pages/catalog/TitleDetailPage.js +1340 -266
- package/dist/hookmovies/pages/catalog/TitleDetailPage.js.map +1 -1
- package/dist/hookmovies/pages/catalog/TitlesPage.js +95 -74
- package/dist/hookmovies/pages/catalog/TitlesPage.js.map +1 -1
- package/dist/hookmovies/pages/consumer/DiscoveryPage.js +422 -0
- package/dist/hookmovies/pages/consumer/DiscoveryPage.js.map +1 -0
- package/dist/hookmovies/pages/consumer/HooksPage.js +252 -0
- package/dist/hookmovies/pages/consumer/HooksPage.js.map +1 -0
- package/dist/hookmovies/pages/consumer/PlayerPage.js +542 -0
- package/dist/hookmovies/pages/consumer/PlayerPage.js.map +1 -0
- package/dist/hookmovies/pages/consumer/TitleViewPage.js +424 -0
- package/dist/hookmovies/pages/consumer/TitleViewPage.js.map +1 -0
- package/dist/hookmovies/pages/distribution/RightsWindowsPage.js +1 -1
- package/dist/hookmovies/pages/distribution/RightsWindowsPage.js.map +1 -1
- package/dist/hookmovies/pages/library/EntitlementsPage.js +273 -75
- package/dist/hookmovies/pages/library/EntitlementsPage.js.map +1 -1
- package/dist/hookmovies/pages/library/ListsPage.js +186 -106
- package/dist/hookmovies/pages/library/ListsPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,31 +15,33 @@ var o = async (e, t, n) => {
|
|
|
15
15
|
if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
|
|
16
16
|
if (!r.data) throw Error("GraphQL response did not include data");
|
|
17
17
|
return e.trimStart().startsWith("mutation") && a(), r.data;
|
|
18
|
-
}, s = "hookmovies", c = "\n id title slug type status synopsis genres tags originalLanguage originCountry\n releaseYear releaseDate runtimeMinutes certification aiDisclosure studioId\n createdAt updatedAt\n", l = "\n id name slug description country websiteUrl isVerified tags createdAt updatedAt\n", u = "\n id name biography knownFor primaryLanguage portfolioRef tags createdAt updatedAt\n", d = "\n id title logline synopsis status currency budgetMinorUnits studioId producerId\n resultingTitleId artistrybaseProjectRef tags startDate endDate createdAt updatedAt\n", f = "\n id productionId roleName description status isMinorRole payMinorUnits currency\n location language submissionDeadline createdAt updatedAt\n", p = "\n id titleId authorId score body hasSpoilers helpfulCount verifiedWatch status\n createdAt updatedAt\n", m = "\n id titleId status modes territories exclusive currency licenseeId startsAt endsAt\n createdAt updatedAt\n", h = "\n id name description kind visibility ownerId itemCount createdAt updatedAt\n", g = "pageInfo { cursor hasMore }", _ = (t = {}, r = {
|
|
18
|
+
}, s = "hookmovies", c = "\n id title slug type status synopsis genres tags originalLanguage originCountry\n releaseYear releaseDate runtimeMinutes certification aiDisclosure studioId\n posterFileId backdropFileId trailerFileId videoFileId\n createdAt updatedAt\n", l = "\n id name slug description country websiteUrl isVerified tags createdAt updatedAt\n", u = "\n id name biography knownFor primaryLanguage portfolioRef tags createdAt updatedAt\n", d = "\n id title logline synopsis status currency budgetMinorUnits studioId producerId\n resultingTitleId artistrybaseProjectRef tags startDate endDate createdAt updatedAt\n", f = "\n id productionId roleName description status isMinorRole payMinorUnits currency\n location language submissionDeadline createdAt updatedAt\n", p = "\n id titleId authorId score body hasSpoilers helpfulCount verifiedWatch status\n createdAt updatedAt\n", m = "\n id titleId status modes territories exclusive currency licenseeId startsAt endsAt\n createdAt updatedAt\n", h = "\n id name description kind visibility ownerId itemCount createdAt updatedAt\n", g = "pageInfo { cursor hasMore }\n totalCount", _ = (t = {}, r = {
|
|
19
19
|
limit: 50,
|
|
20
20
|
offset: 0
|
|
21
|
-
}) => {
|
|
22
|
-
let { apiGatewayUrl:
|
|
21
|
+
}, i) => {
|
|
22
|
+
let { apiGatewayUrl: a } = e();
|
|
23
23
|
return n({
|
|
24
24
|
queryKey: [
|
|
25
25
|
s,
|
|
26
26
|
"titles",
|
|
27
27
|
t,
|
|
28
|
-
r
|
|
28
|
+
r,
|
|
29
|
+
i ?? ""
|
|
29
30
|
],
|
|
30
|
-
queryFn: async () => (await o(`query HokTitles($pagination: PaginationInput, $status: HokTitleStatus, $type: HokTitleType, $studioId: ID) {
|
|
31
|
-
hokListTitles(pagination: $pagination, status: $status, type: $type, studioId: $studioId) {
|
|
31
|
+
queryFn: async () => (await o(`query HokTitles($pagination: PaginationInput, $search: String, $status: HokTitleStatus, $type: HokTitleType, $studioId: ID) {
|
|
32
|
+
hokListTitles(pagination: $pagination, search: $search, status: $status, type: $type, studioId: $studioId) {
|
|
32
33
|
items { ${c} }
|
|
33
34
|
${g}
|
|
34
35
|
}
|
|
35
36
|
}`, {
|
|
36
37
|
pagination: r,
|
|
38
|
+
search: i?.trim() ? i.trim() : void 0,
|
|
37
39
|
status: t.status,
|
|
38
40
|
type: t.type,
|
|
39
41
|
studioId: t.studioId
|
|
40
|
-
},
|
|
42
|
+
}, a)).hokListTitles
|
|
41
43
|
});
|
|
42
|
-
},
|
|
44
|
+
}, ee = (t) => {
|
|
43
45
|
let { apiGatewayUrl: r } = e();
|
|
44
46
|
return n({
|
|
45
47
|
queryKey: [
|
|
@@ -61,7 +63,7 @@ var o = async (e, t, n) => {
|
|
|
61
63
|
}`, { id: t }, r)).hokTitle,
|
|
62
64
|
enabled: !!t
|
|
63
65
|
});
|
|
64
|
-
},
|
|
66
|
+
}, v = () => {
|
|
65
67
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
66
68
|
return t({
|
|
67
69
|
mutationFn: async (e) => (await o(`mutation HokCreateTitle($input: HokCreateTitleInput!) {
|
|
@@ -71,7 +73,7 @@ var o = async (e, t, n) => {
|
|
|
71
73
|
n.invalidateQueries({ queryKey: [s, "titles"] });
|
|
72
74
|
}
|
|
73
75
|
});
|
|
74
|
-
},
|
|
76
|
+
}, y = () => {
|
|
75
77
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
76
78
|
return t({
|
|
77
79
|
mutationFn: async ({ id: e, input: t }) => (await o(`mutation HokUpdateTitle($id: ID!, $input: HokUpdateTitleInput!) {
|
|
@@ -88,7 +90,7 @@ var o = async (e, t, n) => {
|
|
|
88
90
|
] });
|
|
89
91
|
}
|
|
90
92
|
});
|
|
91
|
-
},
|
|
93
|
+
}, b = () => {
|
|
92
94
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
93
95
|
return t({
|
|
94
96
|
mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionTitle($id: ID!, $status: HokTitleStatus!) {
|
|
@@ -105,7 +107,7 @@ var o = async (e, t, n) => {
|
|
|
105
107
|
] });
|
|
106
108
|
}
|
|
107
109
|
});
|
|
108
|
-
},
|
|
110
|
+
}, x = () => {
|
|
109
111
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
110
112
|
return t({
|
|
111
113
|
mutationFn: async (e) => (await o("mutation HokArchiveTitle($id: ID!) { hokArchiveTitle(id: $id) }", { id: e }, i)).hokArchiveTitle,
|
|
@@ -117,25 +119,29 @@ var o = async (e, t, n) => {
|
|
|
117
119
|
] });
|
|
118
120
|
}
|
|
119
121
|
});
|
|
120
|
-
},
|
|
122
|
+
}, S = (t = {
|
|
121
123
|
limit: 50,
|
|
122
124
|
offset: 0
|
|
123
|
-
}) => {
|
|
124
|
-
let { apiGatewayUrl:
|
|
125
|
+
}, r) => {
|
|
126
|
+
let { apiGatewayUrl: i } = e();
|
|
125
127
|
return n({
|
|
126
128
|
queryKey: [
|
|
127
129
|
s,
|
|
128
130
|
"studios",
|
|
129
|
-
t
|
|
131
|
+
t,
|
|
132
|
+
r ?? ""
|
|
130
133
|
],
|
|
131
|
-
queryFn: async () => (await o(`query HokStudios($pagination: PaginationInput) {
|
|
132
|
-
hokListStudios(pagination: $pagination) {
|
|
134
|
+
queryFn: async () => (await o(`query HokStudios($pagination: PaginationInput, $search: String) {
|
|
135
|
+
hokListStudios(pagination: $pagination, search: $search) {
|
|
133
136
|
items { ${l} }
|
|
134
137
|
${g}
|
|
135
138
|
}
|
|
136
|
-
}`, {
|
|
139
|
+
}`, {
|
|
140
|
+
pagination: t,
|
|
141
|
+
search: r?.trim() ? r.trim() : void 0
|
|
142
|
+
}, i)).hokListStudios
|
|
137
143
|
});
|
|
138
|
-
},
|
|
144
|
+
}, C = () => {
|
|
139
145
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
140
146
|
return t({
|
|
141
147
|
mutationFn: async (e) => (await o(`mutation HokCreateStudio($input: HokCreateStudioInput!) {
|
|
@@ -145,25 +151,29 @@ var o = async (e, t, n) => {
|
|
|
145
151
|
n.invalidateQueries({ queryKey: [s, "studios"] });
|
|
146
152
|
}
|
|
147
153
|
});
|
|
148
|
-
},
|
|
154
|
+
}, w = (t = {
|
|
149
155
|
limit: 50,
|
|
150
156
|
offset: 0
|
|
151
|
-
}) => {
|
|
152
|
-
let { apiGatewayUrl:
|
|
157
|
+
}, r) => {
|
|
158
|
+
let { apiGatewayUrl: i } = e();
|
|
153
159
|
return n({
|
|
154
160
|
queryKey: [
|
|
155
161
|
s,
|
|
156
162
|
"people",
|
|
157
|
-
t
|
|
163
|
+
t,
|
|
164
|
+
r ?? ""
|
|
158
165
|
],
|
|
159
|
-
queryFn: async () => (await o(`query HokPeople($pagination: PaginationInput) {
|
|
160
|
-
hokListPeople(pagination: $pagination) {
|
|
166
|
+
queryFn: async () => (await o(`query HokPeople($pagination: PaginationInput, $search: String) {
|
|
167
|
+
hokListPeople(pagination: $pagination, search: $search) {
|
|
161
168
|
items { ${u} }
|
|
162
169
|
${g}
|
|
163
170
|
}
|
|
164
|
-
}`, {
|
|
171
|
+
}`, {
|
|
172
|
+
pagination: t,
|
|
173
|
+
search: r?.trim() ? r.trim() : void 0
|
|
174
|
+
}, i)).hokListPeople
|
|
165
175
|
});
|
|
166
|
-
},
|
|
176
|
+
}, T = () => {
|
|
167
177
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
168
178
|
return t({
|
|
169
179
|
mutationFn: async (e) => (await o(`mutation HokCreatePerson($input: HokCreatePersonInput!) {
|
|
@@ -173,7 +183,7 @@ var o = async (e, t, n) => {
|
|
|
173
183
|
n.invalidateQueries({ queryKey: [s, "people"] });
|
|
174
184
|
}
|
|
175
185
|
});
|
|
176
|
-
},
|
|
186
|
+
}, E = (t = {}, r = {
|
|
177
187
|
limit: 50,
|
|
178
188
|
offset: 0
|
|
179
189
|
}) => {
|
|
@@ -196,7 +206,7 @@ var o = async (e, t, n) => {
|
|
|
196
206
|
studioId: t.studioId
|
|
197
207
|
}, i)).hokListProductions
|
|
198
208
|
});
|
|
199
|
-
},
|
|
209
|
+
}, D = (t) => {
|
|
200
210
|
let { apiGatewayUrl: r } = e();
|
|
201
211
|
return n({
|
|
202
212
|
queryKey: [
|
|
@@ -214,7 +224,7 @@ var o = async (e, t, n) => {
|
|
|
214
224
|
}`, { id: t }, r)).hokProduction,
|
|
215
225
|
enabled: !!t
|
|
216
226
|
});
|
|
217
|
-
},
|
|
227
|
+
}, O = () => {
|
|
218
228
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
219
229
|
return t({
|
|
220
230
|
mutationFn: async (e) => (await o(`mutation HokCreateProduction($input: HokCreateProductionInput!) {
|
|
@@ -224,7 +234,7 @@ var o = async (e, t, n) => {
|
|
|
224
234
|
n.invalidateQueries({ queryKey: [s, "productions"] });
|
|
225
235
|
}
|
|
226
236
|
});
|
|
227
|
-
},
|
|
237
|
+
}, k = () => {
|
|
228
238
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
229
239
|
return t({
|
|
230
240
|
mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionProduction($id: ID!, $status: HokProductionStatus!) {
|
|
@@ -241,7 +251,7 @@ var o = async (e, t, n) => {
|
|
|
241
251
|
] });
|
|
242
252
|
}
|
|
243
253
|
});
|
|
244
|
-
},
|
|
254
|
+
}, A = (t = {}, r = {
|
|
245
255
|
limit: 50,
|
|
246
256
|
offset: 0
|
|
247
257
|
}) => {
|
|
@@ -267,7 +277,7 @@ var o = async (e, t, n) => {
|
|
|
267
277
|
productionId: t.productionId
|
|
268
278
|
}, i)).hokListAuditions
|
|
269
279
|
});
|
|
270
|
-
},
|
|
280
|
+
}, j = (t) => {
|
|
271
281
|
let { apiGatewayUrl: r } = e();
|
|
272
282
|
return n({
|
|
273
283
|
queryKey: [
|
|
@@ -289,7 +299,7 @@ var o = async (e, t, n) => {
|
|
|
289
299
|
} }, r)).hokListAuditions.items.find((e) => e.id === t) ?? null,
|
|
290
300
|
enabled: !!t
|
|
291
301
|
});
|
|
292
|
-
},
|
|
302
|
+
}, M = (t) => {
|
|
293
303
|
let { apiGatewayUrl: r } = e();
|
|
294
304
|
return n({
|
|
295
305
|
queryKey: [
|
|
@@ -300,7 +310,7 @@ var o = async (e, t, n) => {
|
|
|
300
310
|
queryFn: async () => (await o("query HokApplications($auditionId: ID!) {\n hokListApplications(auditionId: $auditionId) {\n id auditionId applicantId coverNote score status createdAt updatedAt\n }\n }", { auditionId: t }, r)).hokListApplications,
|
|
301
311
|
enabled: !!t
|
|
302
312
|
});
|
|
303
|
-
},
|
|
313
|
+
}, N = () => {
|
|
304
314
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
305
315
|
return t({
|
|
306
316
|
mutationFn: async (e) => (await o(`mutation HokCreateAudition($input: HokCreateAuditionInput!) {
|
|
@@ -310,7 +320,7 @@ var o = async (e, t, n) => {
|
|
|
310
320
|
n.invalidateQueries({ queryKey: [s, "auditions"] });
|
|
311
321
|
}
|
|
312
322
|
});
|
|
313
|
-
},
|
|
323
|
+
}, P = () => {
|
|
314
324
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
315
325
|
return t({
|
|
316
326
|
mutationFn: async (e) => (await o(`mutation HokCloseAudition($id: ID!) {
|
|
@@ -324,7 +334,7 @@ var o = async (e, t, n) => {
|
|
|
324
334
|
] });
|
|
325
335
|
}
|
|
326
336
|
});
|
|
327
|
-
},
|
|
337
|
+
}, F = () => {
|
|
328
338
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
329
339
|
return t({
|
|
330
340
|
mutationFn: async (e) => (await o("mutation HokApplyToAudition($input: HokApplyToAuditionInput!) {\n hokApplyToAudition(input: $input) {\n id auditionId applicantId coverNote score status createdAt updatedAt\n }\n }", { input: e }, i)).hokApplyToAudition,
|
|
@@ -336,7 +346,7 @@ var o = async (e, t, n) => {
|
|
|
336
346
|
] });
|
|
337
347
|
}
|
|
338
348
|
});
|
|
339
|
-
},
|
|
349
|
+
}, I = () => {
|
|
340
350
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
341
351
|
return t({
|
|
342
352
|
mutationFn: async ({ id: e, score: t }) => (await o("mutation HokScoreApplication($id: ID!, $score: Int!) {\n hokScoreApplication(id: $id, score: $score) {\n id auditionId applicantId coverNote score status createdAt updatedAt\n }\n }", {
|
|
@@ -351,7 +361,7 @@ var o = async (e, t, n) => {
|
|
|
351
361
|
] });
|
|
352
362
|
}
|
|
353
363
|
});
|
|
354
|
-
},
|
|
364
|
+
}, L = (t = {}, r = {
|
|
355
365
|
limit: 50,
|
|
356
366
|
offset: 0
|
|
357
367
|
}) => {
|
|
@@ -377,7 +387,7 @@ var o = async (e, t, n) => {
|
|
|
377
387
|
titleId: t.titleId
|
|
378
388
|
}, i)).hokListReviews
|
|
379
389
|
});
|
|
380
|
-
},
|
|
390
|
+
}, te = () => {
|
|
381
391
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
382
392
|
return t({
|
|
383
393
|
mutationFn: async (e) => (await o(`mutation HokCreateReview($input: HokCreateReviewInput!) {
|
|
@@ -387,7 +397,7 @@ var o = async (e, t, n) => {
|
|
|
387
397
|
n.invalidateQueries({ queryKey: [s, "reviews"] });
|
|
388
398
|
}
|
|
389
399
|
});
|
|
390
|
-
},
|
|
400
|
+
}, R = () => {
|
|
391
401
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
392
402
|
return t({
|
|
393
403
|
mutationFn: async (e) => (await o("mutation HokDeleteReview($id: ID!) { hokDeleteReview(id: $id) }", { id: e }, i)).hokDeleteReview,
|
|
@@ -395,7 +405,7 @@ var o = async (e, t, n) => {
|
|
|
395
405
|
n.invalidateQueries({ queryKey: [s, "reviews"] });
|
|
396
406
|
}
|
|
397
407
|
});
|
|
398
|
-
},
|
|
408
|
+
}, z = (t = {}, r = {
|
|
399
409
|
limit: 50,
|
|
400
410
|
offset: 0
|
|
401
411
|
}) => {
|
|
@@ -421,7 +431,7 @@ var o = async (e, t, n) => {
|
|
|
421
431
|
titleId: t.titleId
|
|
422
432
|
}, i)).hokListRightsWindows
|
|
423
433
|
});
|
|
424
|
-
},
|
|
434
|
+
}, B = () => {
|
|
425
435
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
426
436
|
return t({
|
|
427
437
|
mutationFn: async (e) => (await o(`mutation HokCreateRightsWindow($input: HokCreateRightsWindowInput!) {
|
|
@@ -431,7 +441,7 @@ var o = async (e, t, n) => {
|
|
|
431
441
|
n.invalidateQueries({ queryKey: [s, "rights"] });
|
|
432
442
|
}
|
|
433
443
|
});
|
|
434
|
-
},
|
|
444
|
+
}, V = () => {
|
|
435
445
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
436
446
|
return t({
|
|
437
447
|
mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionRightsWindow($id: ID!, $status: HokRightsWindowStatus!) {
|
|
@@ -444,7 +454,7 @@ var o = async (e, t, n) => {
|
|
|
444
454
|
n.invalidateQueries({ queryKey: [s, "rights"] });
|
|
445
455
|
}
|
|
446
456
|
});
|
|
447
|
-
},
|
|
457
|
+
}, H = () => {
|
|
448
458
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
449
459
|
return t({
|
|
450
460
|
mutationFn: async (e) => (await o("mutation HokRevokeEntitlement($id: ID!) { hokRevokeEntitlement(id: $id) }", { id: e }, i)).hokRevokeEntitlement,
|
|
@@ -452,7 +462,7 @@ var o = async (e, t, n) => {
|
|
|
452
462
|
n.invalidateQueries({ queryKey: [s, "my-entitlements"] });
|
|
453
463
|
}
|
|
454
464
|
});
|
|
455
|
-
},
|
|
465
|
+
}, U = (t) => {
|
|
456
466
|
let { apiGatewayUrl: r } = e();
|
|
457
467
|
return n({
|
|
458
468
|
queryKey: [
|
|
@@ -462,7 +472,7 @@ var o = async (e, t, n) => {
|
|
|
462
472
|
],
|
|
463
473
|
queryFn: async () => (await o("query HokMyEntitlements($titleId: ID) {\n hokMyEntitlements(titleId: $titleId) {\n id titleId userId mode source status territory expiresAt createdAt updatedAt\n title { id title }\n }\n }", { titleId: t }, r)).hokMyEntitlements
|
|
464
474
|
});
|
|
465
|
-
},
|
|
475
|
+
}, W = (t, r = {
|
|
466
476
|
limit: 50,
|
|
467
477
|
offset: 0
|
|
468
478
|
}) => {
|
|
@@ -484,7 +494,7 @@ var o = async (e, t, n) => {
|
|
|
484
494
|
pagination: r
|
|
485
495
|
}, i)).hokMyLists
|
|
486
496
|
});
|
|
487
|
-
},
|
|
497
|
+
}, G = () => {
|
|
488
498
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
489
499
|
return t({
|
|
490
500
|
mutationFn: async (e) => (await o(`mutation HokCreateList($input: HokCreateListInput!) {
|
|
@@ -494,7 +504,7 @@ var o = async (e, t, n) => {
|
|
|
494
504
|
n.invalidateQueries({ queryKey: [s, "my-lists"] });
|
|
495
505
|
}
|
|
496
506
|
});
|
|
497
|
-
},
|
|
507
|
+
}, K = () => {
|
|
498
508
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
499
509
|
return t({
|
|
500
510
|
mutationFn: async (e) => (await o("mutation HokDeleteList($id: ID!) { hokDeleteList(id: $id) }", { id: e }, i)).hokDeleteList,
|
|
@@ -502,7 +512,7 @@ var o = async (e, t, n) => {
|
|
|
502
512
|
n.invalidateQueries({ queryKey: [s, "my-lists"] });
|
|
503
513
|
}
|
|
504
514
|
});
|
|
505
|
-
},
|
|
515
|
+
}, q = (t) => {
|
|
506
516
|
let { apiGatewayUrl: r } = e();
|
|
507
517
|
return n({
|
|
508
518
|
queryKey: [
|
|
@@ -512,7 +522,149 @@ var o = async (e, t, n) => {
|
|
|
512
522
|
],
|
|
513
523
|
queryFn: async () => (await o("query HokMyWatchProgress($titleId: ID) {\n hokMyWatchProgress(titleId: $titleId) {\n id titleId episodeId positionSeconds completed lastDevice updatedAt\n title { id title type }\n }\n }", { titleId: t }, r)).hokMyWatchProgress
|
|
514
524
|
});
|
|
525
|
+
}, J = () => {
|
|
526
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
527
|
+
return t({
|
|
528
|
+
mutationFn: async (e) => (await o("mutation HokAddCredit($input: HokCreateCreditInput!) {\n hokAddCredit(input: $input) {\n id personId titleId role characterName billingOrder\n person { id name knownFor }\n }\n }", { input: e }, i)).hokAddCredit,
|
|
529
|
+
onSuccess: (e) => {
|
|
530
|
+
n.invalidateQueries({ queryKey: [
|
|
531
|
+
s,
|
|
532
|
+
"title",
|
|
533
|
+
e.titleId
|
|
534
|
+
] });
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}, Y = () => {
|
|
538
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
539
|
+
return t({
|
|
540
|
+
mutationFn: async (e) => (await o("mutation HokCreateSeason($input: HokCreateSeasonInput!) {\n hokCreateSeason(input: $input) {\n id titleId number name synopsis airDate\n }\n }", { input: e }, i)).hokCreateSeason,
|
|
541
|
+
onSuccess: (e) => {
|
|
542
|
+
n.invalidateQueries({ queryKey: [
|
|
543
|
+
s,
|
|
544
|
+
"title",
|
|
545
|
+
e.titleId
|
|
546
|
+
] });
|
|
547
|
+
}
|
|
548
|
+
});
|
|
515
549
|
}, X = () => {
|
|
550
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
551
|
+
return t({
|
|
552
|
+
mutationFn: async (e) => (await o("mutation HokCreateEpisode($input: HokCreateEpisodeInput!) {\n hokCreateEpisode(input: $input) {\n id titleId seasonId number name synopsis runtimeMinutes airDate\n }\n }", { input: e }, i)).hokCreateEpisode,
|
|
553
|
+
onSuccess: (e) => {
|
|
554
|
+
n.invalidateQueries({ queryKey: [
|
|
555
|
+
s,
|
|
556
|
+
"title",
|
|
557
|
+
e.titleId
|
|
558
|
+
] });
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
}, Z = () => {
|
|
562
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
563
|
+
return t({
|
|
564
|
+
mutationFn: async (e) => (await o("mutation HokRecordProgress($input: HokRecordProgressInput!) {\n hokRecordProgress(input: $input) {\n id titleId episodeId positionSeconds completed lastDevice updatedAt\n title { id title type }\n }\n }", { input: e }, i)).hokRecordProgress,
|
|
565
|
+
onSuccess: () => {
|
|
566
|
+
n.invalidateQueries({ queryKey: [s, "my-watch-progress"] });
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
}, Q = (t) => {
|
|
570
|
+
let { apiGatewayUrl: r } = e();
|
|
571
|
+
return n({
|
|
572
|
+
queryKey: [
|
|
573
|
+
s,
|
|
574
|
+
"check-entitlement",
|
|
575
|
+
t
|
|
576
|
+
],
|
|
577
|
+
queryFn: async () => (await o("query HokCheckEntitlement($titleId: ID!) {\n hokCheckEntitlement(titleId: $titleId) { entitled modes }\n }", { titleId: t }, r)).hokCheckEntitlement,
|
|
578
|
+
enabled: !!t
|
|
579
|
+
});
|
|
580
|
+
}, ne = () => {
|
|
581
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
582
|
+
return t({
|
|
583
|
+
mutationFn: async (e) => (await o("mutation HokGrantEntitlement($input: HokGrantEntitlementInput!) {\n hokGrantEntitlement(input: $input) {\n id titleId userId mode source status territory expiresAt createdAt updatedAt\n title { id title }\n }\n }", { input: e }, i)).hokGrantEntitlement,
|
|
584
|
+
onSuccess: () => {
|
|
585
|
+
n.invalidateQueries({ queryKey: [s, "my-entitlements"] });
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
}, re = () => {
|
|
589
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
590
|
+
return t({
|
|
591
|
+
mutationFn: async ({ id: e, input: t }) => (await o(`mutation HokUpdateList($id: ID!, $input: HokUpdateListInput!) {
|
|
592
|
+
hokUpdateList(id: $id, input: $input) { ${h} }
|
|
593
|
+
}`, {
|
|
594
|
+
id: e,
|
|
595
|
+
input: t
|
|
596
|
+
}, i)).hokUpdateList,
|
|
597
|
+
onSuccess: () => {
|
|
598
|
+
n.invalidateQueries({ queryKey: [s, "my-lists"] });
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
}, $ = "\n id titleId videoFileId posterFileId caption durationSeconds language\n", ie = (t, r, i = {
|
|
602
|
+
limit: 50,
|
|
603
|
+
offset: 0
|
|
604
|
+
}) => {
|
|
605
|
+
let { apiGatewayUrl: a } = e();
|
|
606
|
+
return n({
|
|
607
|
+
queryKey: [
|
|
608
|
+
s,
|
|
609
|
+
"clips",
|
|
610
|
+
t ?? "",
|
|
611
|
+
r ?? "",
|
|
612
|
+
i
|
|
613
|
+
],
|
|
614
|
+
queryFn: async () => (await o(`query HokClips($pagination: PaginationInput, $titleId: ID, $language: String) {
|
|
615
|
+
hokListClips(pagination: $pagination, titleId: $titleId, language: $language) {
|
|
616
|
+
items { ${$} }
|
|
617
|
+
${g}
|
|
618
|
+
}
|
|
619
|
+
}`, {
|
|
620
|
+
pagination: i,
|
|
621
|
+
titleId: t,
|
|
622
|
+
language: r?.trim() ? r.trim() : void 0
|
|
623
|
+
}, a)).hokListClips,
|
|
624
|
+
enabled: !!t
|
|
625
|
+
});
|
|
626
|
+
}, ae = () => {
|
|
627
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
628
|
+
return t({
|
|
629
|
+
mutationFn: async (e) => (await o(`mutation HokCreateClip($input: HokCreateClipInput!) {
|
|
630
|
+
hokCreateClip(input: $input) { ${$} }
|
|
631
|
+
}`, { input: e }, i)).hokCreateClip,
|
|
632
|
+
onSuccess: (e) => {
|
|
633
|
+
n.invalidateQueries({ queryKey: [
|
|
634
|
+
s,
|
|
635
|
+
"clips",
|
|
636
|
+
e.titleId
|
|
637
|
+
] });
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
}, oe = () => {
|
|
641
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
642
|
+
return t({
|
|
643
|
+
mutationFn: async ({ id: e }) => (await o("mutation HokDeleteClip($id: ID!) { hokDeleteClip(id: $id) }", { id: e }, i)).hokDeleteClip,
|
|
644
|
+
onSuccess: (e, { titleId: t }) => {
|
|
645
|
+
n.invalidateQueries({ queryKey: [
|
|
646
|
+
s,
|
|
647
|
+
"clips",
|
|
648
|
+
t
|
|
649
|
+
] });
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
}, se = (t, r) => {
|
|
653
|
+
let { apiGatewayUrl: i } = e();
|
|
654
|
+
return n({
|
|
655
|
+
queryKey: [
|
|
656
|
+
s,
|
|
657
|
+
"localizations",
|
|
658
|
+
t ?? "",
|
|
659
|
+
r ?? ""
|
|
660
|
+
],
|
|
661
|
+
queryFn: async () => (await o("query HokLocalizations($titleId: ID, $episodeId: ID) {\n hokListLocalizations(titleId: $titleId, episodeId: $episodeId) {\n id language kind fileId isDefault\n }\n }", {
|
|
662
|
+
titleId: t,
|
|
663
|
+
episodeId: r
|
|
664
|
+
}, i)).hokListLocalizations,
|
|
665
|
+
enabled: !!t || !!r
|
|
666
|
+
});
|
|
667
|
+
}, ce = () => {
|
|
516
668
|
let { apiGatewayUrl: t } = e();
|
|
517
669
|
return n({
|
|
518
670
|
queryKey: [s, "health"],
|
|
@@ -521,6 +673,6 @@ var o = async (e, t, n) => {
|
|
|
521
673
|
});
|
|
522
674
|
};
|
|
523
675
|
//#endregion
|
|
524
|
-
export {
|
|
676
|
+
export { J as useAddCredit, F as useApplyToAudition, x as useArchiveTitle, M as useAuditionApplications, j as useAuditionById, A as useAuditions, Q as useCheckEntitlement, ie as useClips, P as useCloseAudition, N as useCreateAudition, ae as useCreateClip, X as useCreateEpisode, G as useCreateList, T as useCreatePerson, O as useCreateProduction, te as useCreateReview, B as useCreateRightsWindow, Y as useCreateSeason, C as useCreateStudio, v as useCreateTitle, oe as useDeleteClip, K as useDeleteList, R as useDeleteReview, ne as useGrantEntitlement, ce as useHealth, se as useLocalizations, U as useMyEntitlements, W as useMyLists, q as useMyWatchProgress, w as usePeople, D as useProduction, E as useProductions, Z as useRecordProgress, L as useReviews, H as useRevokeEntitlement, z as useRightsWindows, I as useScoreApplication, S as useStudios, ee as useTitle, _ as useTitles, k as useTransitionProduction, V as useTransitionRightsWindow, b as useTransitionTitle, re as useUpdateList, y as useUpdateTitle };
|
|
525
677
|
|
|
526
678
|
//# sourceMappingURL=useHookMoviesApi.js.map
|