@burdenoff/microfe-hookmovies 2026.706.2 → 2026.706.4

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.
Files changed (62) hide show
  1. package/dist/hookmovies/HookMoviesRoutes.js +54 -6
  2. package/dist/hookmovies/HookMoviesRoutes.js.map +1 -1
  3. package/dist/hookmovies/components/index.js +1 -1
  4. package/dist/hookmovies/context/HookMoviesContext.js +64 -40
  5. package/dist/hookmovies/context/HookMoviesContext.js.map +1 -1
  6. package/dist/hookmovies/hooks/useHookMoviesApi.js +592 -134
  7. package/dist/hookmovies/hooks/useHookMoviesApi.js.map +1 -1
  8. package/dist/hookmovies/pages/HomePage.js +211 -139
  9. package/dist/hookmovies/pages/HomePage.js.map +1 -1
  10. package/dist/hookmovies/pages/ai/ConciergePage.js +330 -0
  11. package/dist/hookmovies/pages/ai/ConciergePage.js.map +1 -0
  12. package/dist/hookmovies/pages/analytics/AnalyticsPage.js +450 -0
  13. package/dist/hookmovies/pages/analytics/AnalyticsPage.js.map +1 -0
  14. package/dist/hookmovies/pages/analytics/PayoutsPage.js +499 -0
  15. package/dist/hookmovies/pages/analytics/PayoutsPage.js.map +1 -0
  16. package/dist/hookmovies/pages/auditions/AuditionDetailPage.js +223 -140
  17. package/dist/hookmovies/pages/auditions/AuditionDetailPage.js.map +1 -1
  18. package/dist/hookmovies/pages/auditions/AuditionsPage.js +161 -83
  19. package/dist/hookmovies/pages/auditions/AuditionsPage.js.map +1 -1
  20. package/dist/hookmovies/pages/catalog/PeoplePage.js +177 -103
  21. package/dist/hookmovies/pages/catalog/PeoplePage.js.map +1 -1
  22. package/dist/hookmovies/pages/catalog/StudiosPage.js +191 -108
  23. package/dist/hookmovies/pages/catalog/StudiosPage.js.map +1 -1
  24. package/dist/hookmovies/pages/catalog/TitleDetailPage.js +744 -622
  25. package/dist/hookmovies/pages/catalog/TitleDetailPage.js.map +1 -1
  26. package/dist/hookmovies/pages/catalog/TitlesPage.js +218 -138
  27. package/dist/hookmovies/pages/catalog/TitlesPage.js.map +1 -1
  28. package/dist/hookmovies/pages/commerce/CheckoutPage.js +430 -0
  29. package/dist/hookmovies/pages/commerce/CheckoutPage.js.map +1 -0
  30. package/dist/hookmovies/pages/consumer/DiscoveryPage.js +21 -21
  31. package/dist/hookmovies/pages/consumer/HooksPage.js +5 -5
  32. package/dist/hookmovies/pages/consumer/TitleViewPage.js +32 -32
  33. package/dist/hookmovies/pages/consumer/TitleViewPage.js.map +1 -1
  34. package/dist/hookmovies/pages/developer/DevPortalPage.js +815 -0
  35. package/dist/hookmovies/pages/developer/DevPortalPage.js.map +1 -0
  36. package/dist/hookmovies/pages/distribution/RightsWindowsPage.js +235 -162
  37. package/dist/hookmovies/pages/distribution/RightsWindowsPage.js.map +1 -1
  38. package/dist/hookmovies/pages/engagement/ReviewsPage.js +201 -143
  39. package/dist/hookmovies/pages/engagement/ReviewsPage.js.map +1 -1
  40. package/dist/hookmovies/pages/library/EntitlementsPage.js +447 -221
  41. package/dist/hookmovies/pages/library/EntitlementsPage.js.map +1 -1
  42. package/dist/hookmovies/pages/library/ListsPage.js +243 -167
  43. package/dist/hookmovies/pages/library/ListsPage.js.map +1 -1
  44. package/dist/hookmovies/pages/live/LivePage.js +608 -0
  45. package/dist/hookmovies/pages/live/LivePage.js.map +1 -0
  46. package/dist/hookmovies/pages/localization/LocalizationPage.js +656 -0
  47. package/dist/hookmovies/pages/localization/LocalizationPage.js.map +1 -0
  48. package/dist/hookmovies/pages/onboarding/OnboardingPage.js +366 -0
  49. package/dist/hookmovies/pages/onboarding/OnboardingPage.js.map +1 -0
  50. package/dist/hookmovies/pages/productions/ProductionDetailPage.js +265 -179
  51. package/dist/hookmovies/pages/productions/ProductionDetailPage.js.map +1 -1
  52. package/dist/hookmovies/pages/productions/ProductionsPage.js +264 -71
  53. package/dist/hookmovies/pages/productions/ProductionsPage.js.map +1 -1
  54. package/dist/hookmovies/pages/social/ProfilesPage.js +701 -0
  55. package/dist/hookmovies/pages/social/ProfilesPage.js.map +1 -0
  56. package/dist/hookmovies/pages/social/WatchPartyListPage.js +281 -0
  57. package/dist/hookmovies/pages/social/WatchPartyListPage.js.map +1 -0
  58. package/dist/hookmovies/pages/social/WatchPartyRoomPage.js +567 -0
  59. package/dist/hookmovies/pages/social/WatchPartyRoomPage.js.map +1 -0
  60. package/dist/hookmovies/pages/trust/ModerationPage.js +320 -0
  61. package/dist/hookmovies/pages/trust/ModerationPage.js.map +1 -0
  62. package/package.json +1 -1
@@ -15,14 +15,23 @@ 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 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 = {
18
+ }, s = async (e, t) => {
19
+ let n = await i({
20
+ gateway: "global",
21
+ query: e,
22
+ variables: t
23
+ });
24
+ if (n.errors?.length) throw Error(n.errors[0]?.message ?? "GraphQL request failed");
25
+ if (!n.data) throw Error("GraphQL response did not include data");
26
+ return e.trimStart().startsWith("mutation") && a(), n.data;
27
+ }, c = "hookmovies", l = "\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", u = "\n id name slug description country websiteUrl isVerified tags createdAt updatedAt\n", d = "\n id name biography knownFor primaryLanguage portfolioRef tags createdAt updatedAt\n", f = "\n id title logline synopsis status currency budgetMinorUnits studioId producerId\n resultingTitleId artistrybaseProjectRef tags startDate endDate createdAt updatedAt\n", p = "\n id productionId roleName description status isMinorRole payMinorUnits currency\n location language submissionDeadline createdAt updatedAt\n", m = "\n id titleId authorId score body hasSpoilers helpfulCount verifiedWatch status\n createdAt updatedAt\n", h = "\n id titleId status modes territories exclusive currency licenseeId startsAt endsAt\n createdAt updatedAt\n", g = "\n id name description kind visibility ownerId itemCount createdAt updatedAt\n", _ = "pageInfo { cursor hasMore }\n totalCount", ee = (t = {}, r = {
19
28
  limit: 50,
20
29
  offset: 0
21
30
  }, i) => {
22
31
  let { apiGatewayUrl: a } = e();
23
32
  return n({
24
33
  queryKey: [
25
- s,
34
+ c,
26
35
  "titles",
27
36
  t,
28
37
  r,
@@ -30,8 +39,8 @@ var o = async (e, t, n) => {
30
39
  ],
31
40
  queryFn: async () => (await o(`query HokTitles($pagination: PaginationInput, $search: String, $status: HokTitleStatus, $type: HokTitleType, $studioId: ID) {
32
41
  hokListTitles(pagination: $pagination, search: $search, status: $status, type: $type, studioId: $studioId) {
33
- items { ${c} }
34
- ${g}
42
+ items { ${l} }
43
+ ${_}
35
44
  }
36
45
  }`, {
37
46
  pagination: r,
@@ -41,17 +50,17 @@ var o = async (e, t, n) => {
41
50
  studioId: t.studioId
42
51
  }, a)).hokListTitles
43
52
  });
44
- }, ee = (t) => {
53
+ }, te = (t) => {
45
54
  let { apiGatewayUrl: r } = e();
46
55
  return n({
47
56
  queryKey: [
48
- s,
57
+ c,
49
58
  "title",
50
59
  t
51
60
  ],
52
61
  queryFn: async () => (await o(`query HokTitle($id: ID!) {
53
62
  hokTitle(id: $id) {
54
- ${c}
63
+ ${l}
55
64
  studio { id name }
56
65
  credits {
57
66
  id personId titleId role characterName billingOrder
@@ -63,142 +72,142 @@ var o = async (e, t, n) => {
63
72
  }`, { id: t }, r)).hokTitle,
64
73
  enabled: !!t
65
74
  });
66
- }, v = () => {
75
+ }, ne = () => {
67
76
  let n = r(), { apiGatewayUrl: i } = e();
68
77
  return t({
69
78
  mutationFn: async (e) => (await o(`mutation HokCreateTitle($input: HokCreateTitleInput!) {
70
- hokCreateTitle(input: $input) { ${c} }
79
+ hokCreateTitle(input: $input) { ${l} }
71
80
  }`, { input: e }, i)).hokCreateTitle,
72
81
  onSuccess: () => {
73
- n.invalidateQueries({ queryKey: [s, "titles"] });
82
+ n.invalidateQueries({ queryKey: [c, "titles"] });
74
83
  }
75
84
  });
76
- }, y = () => {
85
+ }, re = () => {
77
86
  let n = r(), { apiGatewayUrl: i } = e();
78
87
  return t({
79
88
  mutationFn: async ({ id: e, input: t }) => (await o(`mutation HokUpdateTitle($id: ID!, $input: HokUpdateTitleInput!) {
80
- hokUpdateTitle(id: $id, input: $input) { ${c} }
89
+ hokUpdateTitle(id: $id, input: $input) { ${l} }
81
90
  }`, {
82
91
  id: e,
83
92
  input: t
84
93
  }, i)).hokUpdateTitle,
85
94
  onSuccess: (e) => {
86
- n.invalidateQueries({ queryKey: [s, "titles"] }), n.invalidateQueries({ queryKey: [
87
- s,
95
+ n.invalidateQueries({ queryKey: [c, "titles"] }), n.invalidateQueries({ queryKey: [
96
+ c,
88
97
  "title",
89
98
  e.id
90
99
  ] });
91
100
  }
92
101
  });
93
- }, b = () => {
102
+ }, ie = () => {
94
103
  let n = r(), { apiGatewayUrl: i } = e();
95
104
  return t({
96
105
  mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionTitle($id: ID!, $status: HokTitleStatus!) {
97
- hokTransitionTitle(id: $id, status: $status) { ${c} }
106
+ hokTransitionTitle(id: $id, status: $status) { ${l} }
98
107
  }`, {
99
108
  id: e,
100
109
  status: t
101
110
  }, i)).hokTransitionTitle,
102
111
  onSuccess: (e) => {
103
- n.invalidateQueries({ queryKey: [s, "titles"] }), n.invalidateQueries({ queryKey: [
104
- s,
112
+ n.invalidateQueries({ queryKey: [c, "titles"] }), n.invalidateQueries({ queryKey: [
113
+ c,
105
114
  "title",
106
115
  e.id
107
116
  ] });
108
117
  }
109
118
  });
110
- }, x = () => {
119
+ }, ae = () => {
111
120
  let n = r(), { apiGatewayUrl: i } = e();
112
121
  return t({
113
122
  mutationFn: async (e) => (await o("mutation HokArchiveTitle($id: ID!) { hokArchiveTitle(id: $id) }", { id: e }, i)).hokArchiveTitle,
114
123
  onSuccess: (e, t) => {
115
- n.invalidateQueries({ queryKey: [s, "titles"] }), n.invalidateQueries({ queryKey: [
116
- s,
124
+ n.invalidateQueries({ queryKey: [c, "titles"] }), n.invalidateQueries({ queryKey: [
125
+ c,
117
126
  "title",
118
127
  t
119
128
  ] });
120
129
  }
121
130
  });
122
- }, S = (t = {
131
+ }, oe = (t = {
123
132
  limit: 50,
124
133
  offset: 0
125
134
  }, r) => {
126
135
  let { apiGatewayUrl: i } = e();
127
136
  return n({
128
137
  queryKey: [
129
- s,
138
+ c,
130
139
  "studios",
131
140
  t,
132
141
  r ?? ""
133
142
  ],
134
143
  queryFn: async () => (await o(`query HokStudios($pagination: PaginationInput, $search: String) {
135
144
  hokListStudios(pagination: $pagination, search: $search) {
136
- items { ${l} }
137
- ${g}
145
+ items { ${u} }
146
+ ${_}
138
147
  }
139
148
  }`, {
140
149
  pagination: t,
141
150
  search: r?.trim() ? r.trim() : void 0
142
151
  }, i)).hokListStudios
143
152
  });
144
- }, C = () => {
153
+ }, se = () => {
145
154
  let n = r(), { apiGatewayUrl: i } = e();
146
155
  return t({
147
156
  mutationFn: async (e) => (await o(`mutation HokCreateStudio($input: HokCreateStudioInput!) {
148
- hokCreateStudio(input: $input) { ${l} }
157
+ hokCreateStudio(input: $input) { ${u} }
149
158
  }`, { input: e }, i)).hokCreateStudio,
150
159
  onSuccess: () => {
151
- n.invalidateQueries({ queryKey: [s, "studios"] });
160
+ n.invalidateQueries({ queryKey: [c, "studios"] });
152
161
  }
153
162
  });
154
- }, w = (t = {
163
+ }, ce = (t = {
155
164
  limit: 50,
156
165
  offset: 0
157
166
  }, r) => {
158
167
  let { apiGatewayUrl: i } = e();
159
168
  return n({
160
169
  queryKey: [
161
- s,
170
+ c,
162
171
  "people",
163
172
  t,
164
173
  r ?? ""
165
174
  ],
166
175
  queryFn: async () => (await o(`query HokPeople($pagination: PaginationInput, $search: String) {
167
176
  hokListPeople(pagination: $pagination, search: $search) {
168
- items { ${u} }
169
- ${g}
177
+ items { ${d} }
178
+ ${_}
170
179
  }
171
180
  }`, {
172
181
  pagination: t,
173
182
  search: r?.trim() ? r.trim() : void 0
174
183
  }, i)).hokListPeople
175
184
  });
176
- }, T = () => {
185
+ }, le = () => {
177
186
  let n = r(), { apiGatewayUrl: i } = e();
178
187
  return t({
179
188
  mutationFn: async (e) => (await o(`mutation HokCreatePerson($input: HokCreatePersonInput!) {
180
- hokCreatePerson(input: $input) { ${u} }
189
+ hokCreatePerson(input: $input) { ${d} }
181
190
  }`, { input: e }, i)).hokCreatePerson,
182
191
  onSuccess: () => {
183
- n.invalidateQueries({ queryKey: [s, "people"] });
192
+ n.invalidateQueries({ queryKey: [c, "people"] });
184
193
  }
185
194
  });
186
- }, E = (t = {}, r = {
195
+ }, ue = (t = {}, r = {
187
196
  limit: 50,
188
197
  offset: 0
189
198
  }) => {
190
199
  let { apiGatewayUrl: i } = e();
191
200
  return n({
192
201
  queryKey: [
193
- s,
202
+ c,
194
203
  "productions",
195
204
  t,
196
205
  r
197
206
  ],
198
207
  queryFn: async () => (await o(`query HokProductions($pagination: PaginationInput, $status: HokProductionStatus, $studioId: ID) {
199
208
  hokListProductions(pagination: $pagination, status: $status, studioId: $studioId) {
200
- items { ${d} }
201
- ${g}
209
+ items { ${f} }
210
+ ${_}
202
211
  }
203
212
  }`, {
204
213
  pagination: r,
@@ -206,17 +215,17 @@ var o = async (e, t, n) => {
206
215
  studioId: t.studioId
207
216
  }, i)).hokListProductions
208
217
  });
209
- }, D = (t) => {
218
+ }, v = (t) => {
210
219
  let { apiGatewayUrl: r } = e();
211
220
  return n({
212
221
  queryKey: [
213
- s,
222
+ c,
214
223
  "production",
215
224
  t
216
225
  ],
217
226
  queryFn: async () => (await o(`query HokProduction($id: ID!) {
218
227
  hokProduction(id: $id) {
219
- ${d}
228
+ ${f}
220
229
  auditions {
221
230
  id roleName status isMinorRole payMinorUnits currency location language submissionDeadline
222
231
  }
@@ -224,41 +233,41 @@ var o = async (e, t, n) => {
224
233
  }`, { id: t }, r)).hokProduction,
225
234
  enabled: !!t
226
235
  });
227
- }, O = () => {
236
+ }, y = () => {
228
237
  let n = r(), { apiGatewayUrl: i } = e();
229
238
  return t({
230
239
  mutationFn: async (e) => (await o(`mutation HokCreateProduction($input: HokCreateProductionInput!) {
231
- hokCreateProduction(input: $input) { ${d} }
240
+ hokCreateProduction(input: $input) { ${f} }
232
241
  }`, { input: e }, i)).hokCreateProduction,
233
242
  onSuccess: () => {
234
- n.invalidateQueries({ queryKey: [s, "productions"] });
243
+ n.invalidateQueries({ queryKey: [c, "productions"] });
235
244
  }
236
245
  });
237
- }, k = () => {
246
+ }, b = () => {
238
247
  let n = r(), { apiGatewayUrl: i } = e();
239
248
  return t({
240
249
  mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionProduction($id: ID!, $status: HokProductionStatus!) {
241
- hokTransitionProduction(id: $id, status: $status) { ${d} }
250
+ hokTransitionProduction(id: $id, status: $status) { ${f} }
242
251
  }`, {
243
252
  id: e,
244
253
  status: t
245
254
  }, i)).hokTransitionProduction,
246
255
  onSuccess: (e) => {
247
- n.invalidateQueries({ queryKey: [s, "productions"] }), n.invalidateQueries({ queryKey: [
248
- s,
256
+ n.invalidateQueries({ queryKey: [c, "productions"] }), n.invalidateQueries({ queryKey: [
257
+ c,
249
258
  "production",
250
259
  e.id
251
260
  ] });
252
261
  }
253
262
  });
254
- }, A = (t = {}, r = {
263
+ }, x = (t = {}, r = {
255
264
  limit: 50,
256
265
  offset: 0
257
266
  }) => {
258
267
  let { apiGatewayUrl: i } = e();
259
268
  return n({
260
269
  queryKey: [
261
- s,
270
+ c,
262
271
  "auditions",
263
272
  t,
264
273
  r
@@ -266,10 +275,10 @@ var o = async (e, t, n) => {
266
275
  queryFn: async () => (await o(`query HokAuditions($pagination: PaginationInput, $status: HokAuditionStatus, $productionId: ID) {
267
276
  hokListAuditions(pagination: $pagination, status: $status, productionId: $productionId) {
268
277
  items {
269
- ${f}
278
+ ${p}
270
279
  production { id title }
271
280
  }
272
- ${g}
281
+ ${_}
273
282
  }
274
283
  }`, {
275
284
  pagination: r,
@@ -277,21 +286,21 @@ var o = async (e, t, n) => {
277
286
  productionId: t.productionId
278
287
  }, i)).hokListAuditions
279
288
  });
280
- }, j = (t) => {
289
+ }, S = (t) => {
281
290
  let { apiGatewayUrl: r } = e();
282
291
  return n({
283
292
  queryKey: [
284
- s,
293
+ c,
285
294
  "audition-by-id",
286
295
  t
287
296
  ],
288
297
  queryFn: async () => (await o(`query HokAuditionLookup($pagination: PaginationInput) {
289
298
  hokListAuditions(pagination: $pagination) {
290
299
  items {
291
- ${f}
300
+ ${p}
292
301
  production { id title }
293
302
  }
294
- ${g}
303
+ ${_}
295
304
  }
296
305
  }`, { pagination: {
297
306
  limit: 200,
@@ -299,54 +308,54 @@ var o = async (e, t, n) => {
299
308
  } }, r)).hokListAuditions.items.find((e) => e.id === t) ?? null,
300
309
  enabled: !!t
301
310
  });
302
- }, M = (t) => {
311
+ }, C = (t) => {
303
312
  let { apiGatewayUrl: r } = e();
304
313
  return n({
305
314
  queryKey: [
306
- s,
315
+ c,
307
316
  "applications",
308
317
  t
309
318
  ],
310
319
  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,
311
320
  enabled: !!t
312
321
  });
313
- }, N = () => {
322
+ }, w = () => {
314
323
  let n = r(), { apiGatewayUrl: i } = e();
315
324
  return t({
316
325
  mutationFn: async (e) => (await o(`mutation HokCreateAudition($input: HokCreateAuditionInput!) {
317
- hokCreateAudition(input: $input) { ${f} }
326
+ hokCreateAudition(input: $input) { ${p} }
318
327
  }`, { input: e }, i)).hokCreateAudition,
319
328
  onSuccess: () => {
320
- n.invalidateQueries({ queryKey: [s, "auditions"] });
329
+ n.invalidateQueries({ queryKey: [c, "auditions"] });
321
330
  }
322
331
  });
323
- }, P = () => {
332
+ }, T = () => {
324
333
  let n = r(), { apiGatewayUrl: i } = e();
325
334
  return t({
326
335
  mutationFn: async (e) => (await o(`mutation HokCloseAudition($id: ID!) {
327
- hokCloseAudition(id: $id) { ${f} }
336
+ hokCloseAudition(id: $id) { ${p} }
328
337
  }`, { id: e }, i)).hokCloseAudition,
329
338
  onSuccess: (e) => {
330
- n.invalidateQueries({ queryKey: [s, "auditions"] }), n.invalidateQueries({ queryKey: [
331
- s,
339
+ n.invalidateQueries({ queryKey: [c, "auditions"] }), n.invalidateQueries({ queryKey: [
340
+ c,
332
341
  "audition-by-id",
333
342
  e.id
334
343
  ] });
335
344
  }
336
345
  });
337
- }, F = () => {
346
+ }, E = () => {
338
347
  let n = r(), { apiGatewayUrl: i } = e();
339
348
  return t({
340
349
  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,
341
350
  onSuccess: (e) => {
342
351
  n.invalidateQueries({ queryKey: [
343
- s,
352
+ c,
344
353
  "applications",
345
354
  e.auditionId
346
355
  ] });
347
356
  }
348
357
  });
349
- }, I = () => {
358
+ }, D = () => {
350
359
  let n = r(), { apiGatewayUrl: i } = e();
351
360
  return t({
352
361
  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 }", {
@@ -355,20 +364,20 @@ var o = async (e, t, n) => {
355
364
  }, i)).hokScoreApplication,
356
365
  onSuccess: (e) => {
357
366
  n.invalidateQueries({ queryKey: [
358
- s,
367
+ c,
359
368
  "applications",
360
369
  e.auditionId
361
370
  ] });
362
371
  }
363
372
  });
364
- }, L = (t = {}, r = {
373
+ }, O = (t = {}, r = {
365
374
  limit: 50,
366
375
  offset: 0
367
376
  }) => {
368
377
  let { apiGatewayUrl: i } = e();
369
378
  return n({
370
379
  queryKey: [
371
- s,
380
+ c,
372
381
  "reviews",
373
382
  t,
374
383
  r
@@ -376,10 +385,10 @@ var o = async (e, t, n) => {
376
385
  queryFn: async () => (await o(`query HokReviews($pagination: PaginationInput, $status: HokReviewStatus, $titleId: ID) {
377
386
  hokListReviews(pagination: $pagination, status: $status, titleId: $titleId) {
378
387
  items {
379
- ${p}
388
+ ${m}
380
389
  title { id title }
381
390
  }
382
- ${g}
391
+ ${_}
383
392
  }
384
393
  }`, {
385
394
  pagination: r,
@@ -387,32 +396,32 @@ var o = async (e, t, n) => {
387
396
  titleId: t.titleId
388
397
  }, i)).hokListReviews
389
398
  });
390
- }, te = () => {
399
+ }, k = () => {
391
400
  let n = r(), { apiGatewayUrl: i } = e();
392
401
  return t({
393
402
  mutationFn: async (e) => (await o(`mutation HokCreateReview($input: HokCreateReviewInput!) {
394
- hokCreateReview(input: $input) { ${p} }
403
+ hokCreateReview(input: $input) { ${m} }
395
404
  }`, { input: e }, i)).hokCreateReview,
396
405
  onSuccess: () => {
397
- n.invalidateQueries({ queryKey: [s, "reviews"] });
406
+ n.invalidateQueries({ queryKey: [c, "reviews"] });
398
407
  }
399
408
  });
400
- }, R = () => {
409
+ }, A = () => {
401
410
  let n = r(), { apiGatewayUrl: i } = e();
402
411
  return t({
403
412
  mutationFn: async (e) => (await o("mutation HokDeleteReview($id: ID!) { hokDeleteReview(id: $id) }", { id: e }, i)).hokDeleteReview,
404
413
  onSuccess: () => {
405
- n.invalidateQueries({ queryKey: [s, "reviews"] });
414
+ n.invalidateQueries({ queryKey: [c, "reviews"] });
406
415
  }
407
416
  });
408
- }, z = (t = {}, r = {
417
+ }, j = (t = {}, r = {
409
418
  limit: 50,
410
419
  offset: 0
411
420
  }) => {
412
421
  let { apiGatewayUrl: i } = e();
413
422
  return n({
414
423
  queryKey: [
415
- s,
424
+ c,
416
425
  "rights",
417
426
  t,
418
427
  r
@@ -420,10 +429,10 @@ var o = async (e, t, n) => {
420
429
  queryFn: async () => (await o(`query HokRightsWindows($pagination: PaginationInput, $status: HokRightsWindowStatus, $titleId: ID) {
421
430
  hokListRightsWindows(pagination: $pagination, status: $status, titleId: $titleId) {
422
431
  items {
423
- ${m}
432
+ ${h}
424
433
  title { id title }
425
434
  }
426
- ${g}
435
+ ${_}
427
436
  }
428
437
  }`, {
429
438
  pagination: r,
@@ -431,181 +440,181 @@ var o = async (e, t, n) => {
431
440
  titleId: t.titleId
432
441
  }, i)).hokListRightsWindows
433
442
  });
434
- }, B = () => {
443
+ }, M = () => {
435
444
  let n = r(), { apiGatewayUrl: i } = e();
436
445
  return t({
437
446
  mutationFn: async (e) => (await o(`mutation HokCreateRightsWindow($input: HokCreateRightsWindowInput!) {
438
- hokCreateRightsWindow(input: $input) { ${m} }
447
+ hokCreateRightsWindow(input: $input) { ${h} }
439
448
  }`, { input: e }, i)).hokCreateRightsWindow,
440
449
  onSuccess: () => {
441
- n.invalidateQueries({ queryKey: [s, "rights"] });
450
+ n.invalidateQueries({ queryKey: [c, "rights"] });
442
451
  }
443
452
  });
444
- }, V = () => {
453
+ }, N = () => {
445
454
  let n = r(), { apiGatewayUrl: i } = e();
446
455
  return t({
447
456
  mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionRightsWindow($id: ID!, $status: HokRightsWindowStatus!) {
448
- hokTransitionRightsWindow(id: $id, status: $status) { ${m} }
457
+ hokTransitionRightsWindow(id: $id, status: $status) { ${h} }
449
458
  }`, {
450
459
  id: e,
451
460
  status: t
452
461
  }, i)).hokTransitionRightsWindow,
453
462
  onSuccess: () => {
454
- n.invalidateQueries({ queryKey: [s, "rights"] });
463
+ n.invalidateQueries({ queryKey: [c, "rights"] });
455
464
  }
456
465
  });
457
- }, H = () => {
466
+ }, P = () => {
458
467
  let n = r(), { apiGatewayUrl: i } = e();
459
468
  return t({
460
469
  mutationFn: async (e) => (await o("mutation HokRevokeEntitlement($id: ID!) { hokRevokeEntitlement(id: $id) }", { id: e }, i)).hokRevokeEntitlement,
461
470
  onSuccess: () => {
462
- n.invalidateQueries({ queryKey: [s, "my-entitlements"] });
471
+ n.invalidateQueries({ queryKey: [c, "my-entitlements"] });
463
472
  }
464
473
  });
465
- }, U = (t) => {
474
+ }, F = (t) => {
466
475
  let { apiGatewayUrl: r } = e();
467
476
  return n({
468
477
  queryKey: [
469
- s,
478
+ c,
470
479
  "my-entitlements",
471
480
  t
472
481
  ],
473
482
  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
474
483
  });
475
- }, W = (t, r = {
484
+ }, I = (t, r = {
476
485
  limit: 50,
477
486
  offset: 0
478
487
  }) => {
479
488
  let { apiGatewayUrl: i } = e();
480
489
  return n({
481
490
  queryKey: [
482
- s,
491
+ c,
483
492
  "my-lists",
484
493
  t,
485
494
  r
486
495
  ],
487
496
  queryFn: async () => (await o(`query HokMyLists($kind: HokListKind, $pagination: PaginationInput) {
488
497
  hokMyLists(kind: $kind, pagination: $pagination) {
489
- items { ${h} }
490
- ${g}
498
+ items { ${g} }
499
+ ${_}
491
500
  }
492
501
  }`, {
493
502
  kind: t,
494
503
  pagination: r
495
504
  }, i)).hokMyLists
496
505
  });
497
- }, G = () => {
506
+ }, L = () => {
498
507
  let n = r(), { apiGatewayUrl: i } = e();
499
508
  return t({
500
509
  mutationFn: async (e) => (await o(`mutation HokCreateList($input: HokCreateListInput!) {
501
- hokCreateList(input: $input) { ${h} }
510
+ hokCreateList(input: $input) { ${g} }
502
511
  }`, { input: e }, i)).hokCreateList,
503
512
  onSuccess: () => {
504
- n.invalidateQueries({ queryKey: [s, "my-lists"] });
513
+ n.invalidateQueries({ queryKey: [c, "my-lists"] });
505
514
  }
506
515
  });
507
- }, K = () => {
516
+ }, R = () => {
508
517
  let n = r(), { apiGatewayUrl: i } = e();
509
518
  return t({
510
519
  mutationFn: async (e) => (await o("mutation HokDeleteList($id: ID!) { hokDeleteList(id: $id) }", { id: e }, i)).hokDeleteList,
511
520
  onSuccess: () => {
512
- n.invalidateQueries({ queryKey: [s, "my-lists"] });
521
+ n.invalidateQueries({ queryKey: [c, "my-lists"] });
513
522
  }
514
523
  });
515
- }, q = (t) => {
524
+ }, z = (t) => {
516
525
  let { apiGatewayUrl: r } = e();
517
526
  return n({
518
527
  queryKey: [
519
- s,
528
+ c,
520
529
  "my-watch-progress",
521
530
  t
522
531
  ],
523
532
  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
524
533
  });
525
- }, J = () => {
534
+ }, B = () => {
526
535
  let n = r(), { apiGatewayUrl: i } = e();
527
536
  return t({
528
537
  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
538
  onSuccess: (e) => {
530
539
  n.invalidateQueries({ queryKey: [
531
- s,
540
+ c,
532
541
  "title",
533
542
  e.titleId
534
543
  ] });
535
544
  }
536
545
  });
537
- }, Y = () => {
546
+ }, V = () => {
538
547
  let n = r(), { apiGatewayUrl: i } = e();
539
548
  return t({
540
549
  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
550
  onSuccess: (e) => {
542
551
  n.invalidateQueries({ queryKey: [
543
- s,
552
+ c,
544
553
  "title",
545
554
  e.titleId
546
555
  ] });
547
556
  }
548
557
  });
549
- }, X = () => {
558
+ }, H = () => {
550
559
  let n = r(), { apiGatewayUrl: i } = e();
551
560
  return t({
552
561
  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
562
  onSuccess: (e) => {
554
563
  n.invalidateQueries({ queryKey: [
555
- s,
564
+ c,
556
565
  "title",
557
566
  e.titleId
558
567
  ] });
559
568
  }
560
569
  });
561
- }, Z = () => {
570
+ }, U = () => {
562
571
  let n = r(), { apiGatewayUrl: i } = e();
563
572
  return t({
564
573
  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
574
  onSuccess: () => {
566
- n.invalidateQueries({ queryKey: [s, "my-watch-progress"] });
575
+ n.invalidateQueries({ queryKey: [c, "my-watch-progress"] });
567
576
  }
568
577
  });
569
- }, Q = (t) => {
578
+ }, de = (t) => {
570
579
  let { apiGatewayUrl: r } = e();
571
580
  return n({
572
581
  queryKey: [
573
- s,
582
+ c,
574
583
  "check-entitlement",
575
584
  t
576
585
  ],
577
586
  queryFn: async () => (await o("query HokCheckEntitlement($titleId: ID!) {\n hokCheckEntitlement(titleId: $titleId) { entitled modes }\n }", { titleId: t }, r)).hokCheckEntitlement,
578
587
  enabled: !!t
579
588
  });
580
- }, ne = () => {
589
+ }, fe = () => {
581
590
  let n = r(), { apiGatewayUrl: i } = e();
582
591
  return t({
583
592
  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
593
  onSuccess: () => {
585
- n.invalidateQueries({ queryKey: [s, "my-entitlements"] });
594
+ n.invalidateQueries({ queryKey: [c, "my-entitlements"] });
586
595
  }
587
596
  });
588
- }, re = () => {
597
+ }, pe = () => {
589
598
  let n = r(), { apiGatewayUrl: i } = e();
590
599
  return t({
591
600
  mutationFn: async ({ id: e, input: t }) => (await o(`mutation HokUpdateList($id: ID!, $input: HokUpdateListInput!) {
592
- hokUpdateList(id: $id, input: $input) { ${h} }
601
+ hokUpdateList(id: $id, input: $input) { ${g} }
593
602
  }`, {
594
603
  id: e,
595
604
  input: t
596
605
  }, i)).hokUpdateList,
597
606
  onSuccess: () => {
598
- n.invalidateQueries({ queryKey: [s, "my-lists"] });
607
+ n.invalidateQueries({ queryKey: [c, "my-lists"] });
599
608
  }
600
609
  });
601
- }, $ = "\n id titleId videoFileId posterFileId caption durationSeconds language\n", ie = (t, r, i = {
610
+ }, W = "\n id titleId videoFileId posterFileId caption durationSeconds language\n", me = (t, r, i = {
602
611
  limit: 50,
603
612
  offset: 0
604
613
  }) => {
605
614
  let { apiGatewayUrl: a } = e();
606
615
  return n({
607
616
  queryKey: [
608
- s,
617
+ c,
609
618
  "clips",
610
619
  t ?? "",
611
620
  r ?? "",
@@ -613,8 +622,8 @@ var o = async (e, t, n) => {
613
622
  ],
614
623
  queryFn: async () => (await o(`query HokClips($pagination: PaginationInput, $titleId: ID, $language: String) {
615
624
  hokListClips(pagination: $pagination, titleId: $titleId, language: $language) {
616
- items { ${$} }
617
- ${g}
625
+ items { ${W} }
626
+ ${_}
618
627
  }
619
628
  }`, {
620
629
  pagination: i,
@@ -623,56 +632,505 @@ var o = async (e, t, n) => {
623
632
  }, a)).hokListClips,
624
633
  enabled: !!t
625
634
  });
626
- }, ae = () => {
635
+ }, he = () => {
627
636
  let n = r(), { apiGatewayUrl: i } = e();
628
637
  return t({
629
638
  mutationFn: async (e) => (await o(`mutation HokCreateClip($input: HokCreateClipInput!) {
630
- hokCreateClip(input: $input) { ${$} }
639
+ hokCreateClip(input: $input) { ${W} }
631
640
  }`, { input: e }, i)).hokCreateClip,
632
641
  onSuccess: (e) => {
633
642
  n.invalidateQueries({ queryKey: [
634
- s,
643
+ c,
635
644
  "clips",
636
645
  e.titleId
637
646
  ] });
638
647
  }
639
648
  });
640
- }, oe = () => {
649
+ }, ge = () => {
641
650
  let n = r(), { apiGatewayUrl: i } = e();
642
651
  return t({
643
652
  mutationFn: async ({ id: e }) => (await o("mutation HokDeleteClip($id: ID!) { hokDeleteClip(id: $id) }", { id: e }, i)).hokDeleteClip,
644
653
  onSuccess: (e, { titleId: t }) => {
645
654
  n.invalidateQueries({ queryKey: [
646
- s,
655
+ c,
647
656
  "clips",
648
657
  t
649
658
  ] });
650
659
  }
651
660
  });
652
- }, se = (t, r) => {
661
+ }, G = "\n id language kind fileId isDefault titleId episodeId status\n localizedTitle localizedSynopsis\n", _e = (t, r) => {
653
662
  let { apiGatewayUrl: i } = e();
654
663
  return n({
655
664
  queryKey: [
656
- s,
665
+ c,
657
666
  "localizations",
658
667
  t ?? "",
659
668
  r ?? ""
660
669
  ],
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 }", {
670
+ queryFn: async () => (await o(`query HokLocalizations($titleId: ID, $episodeId: ID) {
671
+ hokListLocalizations(titleId: $titleId, episodeId: $episodeId) {
672
+ ${G}
673
+ }
674
+ }`, {
662
675
  titleId: t,
663
676
  episodeId: r
664
677
  }, i)).hokListLocalizations,
665
678
  enabled: !!t || !!r
666
679
  });
667
- }, ce = () => {
680
+ }, ve = () => {
668
681
  let { apiGatewayUrl: t } = e();
669
682
  return n({
670
- queryKey: [s, "health"],
683
+ queryKey: [c, "health"],
671
684
  queryFn: async () => (await o("query HokHealth { hokHealth }", {}, t)).hokHealth,
672
685
  staleTime: 60 * 1e3
673
686
  });
687
+ }, K = "\n id accountUserId name avatarFileId isKids hasPin languages maturityLimit\n createdAt updatedAt\n", ye = () => {
688
+ let { apiGatewayUrl: t } = e();
689
+ return n({
690
+ queryKey: [c, "profiles"],
691
+ queryFn: async () => (await o(`query HokMyProfiles { hokMyProfiles { ${K} } }`, {}, t)).hokMyProfiles
692
+ });
693
+ }, be = () => {
694
+ let n = r(), { apiGatewayUrl: i } = e();
695
+ return t({
696
+ mutationFn: async (e) => (await o(`mutation HokCreateProfile($input: HokCreateProfileInput!) {
697
+ hokCreateProfile(input: $input) { ${K} }
698
+ }`, { input: e }, i)).hokCreateProfile,
699
+ onSuccess: () => {
700
+ n.invalidateQueries({ queryKey: [c, "profiles"] });
701
+ }
702
+ });
703
+ }, xe = () => {
704
+ let n = r(), { apiGatewayUrl: i } = e();
705
+ return t({
706
+ mutationFn: async ({ id: e, input: t }) => (await o(`mutation HokUpdateProfile($id: ID!, $input: HokUpdateProfileInput!) {
707
+ hokUpdateProfile(id: $id, input: $input) { ${K} }
708
+ }`, {
709
+ id: e,
710
+ input: t
711
+ }, i)).hokUpdateProfile,
712
+ onSuccess: () => {
713
+ n.invalidateQueries({ queryKey: [c, "profiles"] });
714
+ }
715
+ });
716
+ }, Se = () => {
717
+ let n = r(), { apiGatewayUrl: i } = e();
718
+ return t({
719
+ mutationFn: async (e) => (await o("mutation HokDeleteProfile($id: ID!) { hokDeleteProfile(id: $id) }", { id: e }, i)).hokDeleteProfile,
720
+ onSuccess: () => {
721
+ n.invalidateQueries({ queryKey: [c, "profiles"] });
722
+ }
723
+ });
724
+ }, q = "\n id titleId episodeId hostUserId isPlaying positionSeconds status createdAt updatedAt\n members { id partyId userId role joinedAt }\n title { id title type }\n", Ce = () => {
725
+ let n = r(), { apiGatewayUrl: i } = e();
726
+ return t({
727
+ mutationFn: async (e) => (await o(`mutation HokCreateWatchParty($input: HokCreateWatchPartyInput!) {
728
+ hokCreateWatchParty(input: $input) { ${q} }
729
+ }`, { input: e }, i)).hokCreateWatchParty,
730
+ onSuccess: (e) => {
731
+ n.invalidateQueries({ queryKey: [
732
+ c,
733
+ "watch-party",
734
+ e.id
735
+ ] });
736
+ }
737
+ });
738
+ }, we = (t) => {
739
+ let { apiGatewayUrl: r } = e();
740
+ return n({
741
+ queryKey: [
742
+ c,
743
+ "watch-party",
744
+ t
745
+ ],
746
+ queryFn: async () => (await o(`query HokWatchParty($id: ID!) {
747
+ hokWatchParty(id: $id) { ${q} }
748
+ }`, { id: t }, r)).hokWatchParty,
749
+ enabled: !!t
750
+ });
751
+ }, Te = () => {
752
+ let n = r(), { apiGatewayUrl: i } = e();
753
+ return t({
754
+ mutationFn: async (e) => (await o(`mutation HokJoinWatchParty($id: ID!) {
755
+ hokJoinWatchParty(id: $id) { ${q} }
756
+ }`, { id: e }, i)).hokJoinWatchParty,
757
+ onSuccess: (e) => {
758
+ n.invalidateQueries({ queryKey: [
759
+ c,
760
+ "watch-party",
761
+ e.id
762
+ ] });
763
+ }
764
+ });
765
+ }, Ee = () => {
766
+ let n = r(), { apiGatewayUrl: i } = e();
767
+ return t({
768
+ mutationFn: async ({ id: e, isPlaying: t, positionSeconds: n }) => (await o(`mutation HokUpdatePartyPlayback($id: ID!, $isPlaying: Boolean!, $positionSeconds: Int!) {
769
+ hokUpdatePartyPlayback(id: $id, isPlaying: $isPlaying, positionSeconds: $positionSeconds) {
770
+ ${q}
771
+ }
772
+ }`, {
773
+ id: e,
774
+ isPlaying: t,
775
+ positionSeconds: n
776
+ }, i)).hokUpdatePartyPlayback,
777
+ onSuccess: (e) => {
778
+ n.invalidateQueries({ queryKey: [
779
+ c,
780
+ "watch-party",
781
+ e.id
782
+ ] });
783
+ }
784
+ });
785
+ }, De = () => {
786
+ let n = r(), { apiGatewayUrl: i } = e();
787
+ return t({
788
+ mutationFn: async (e) => (await o(`mutation HokVoteReviewHelpful($reviewId: ID!) {
789
+ hokVoteReviewHelpful(reviewId: $reviewId) {
790
+ ${m}
791
+ title { id title }
792
+ }
793
+ }`, { reviewId: e }, i)).hokVoteReviewHelpful,
794
+ onSuccess: () => {
795
+ n.invalidateQueries({ queryKey: [c, "reviews"] });
796
+ }
797
+ });
798
+ }, Oe = () => {
799
+ let n = r(), { apiGatewayUrl: i } = e();
800
+ return t({
801
+ mutationFn: async (e) => (await o(`mutation HokUnvoteReviewHelpful($reviewId: ID!) {
802
+ hokUnvoteReviewHelpful(reviewId: $reviewId) {
803
+ ${m}
804
+ title { id title }
805
+ }
806
+ }`, { reviewId: e }, i)).hokUnvoteReviewHelpful,
807
+ onSuccess: () => {
808
+ n.invalidateQueries({ queryKey: [c, "reviews"] });
809
+ }
810
+ });
811
+ }, J = "\n id entityId entityType reason reportedByUserId resolution severity status\n createdAt updatedAt\n", ke = () => {
812
+ let n = r(), { apiGatewayUrl: i } = e();
813
+ return t({
814
+ mutationFn: async ({ entityType: e, entityId: t, reason: n }) => (await o(`mutation HokReportContent($entityType: String!, $entityId: ID!, $reason: String!) {
815
+ hokReportContent(entityType: $entityType, entityId: $entityId, reason: $reason) {
816
+ ${J}
817
+ }
818
+ }`, {
819
+ entityType: e,
820
+ entityId: t,
821
+ reason: n
822
+ }, i)).hokReportContent,
823
+ onSuccess: () => {
824
+ n.invalidateQueries({ queryKey: [c, "moderation-flags"] });
825
+ }
826
+ });
827
+ }, Ae = (t, r = {
828
+ limit: 50,
829
+ offset: 0
830
+ }) => {
831
+ let { apiGatewayUrl: i } = e();
832
+ return n({
833
+ queryKey: [
834
+ c,
835
+ "moderation-flags",
836
+ t ?? "",
837
+ r
838
+ ],
839
+ queryFn: async () => (await o(`query HokModerationFlags($pagination: PaginationInput, $status: HokModerationStatus) {
840
+ hokListModerationFlags(pagination: $pagination, status: $status) {
841
+ items { ${J} }
842
+ ${_}
843
+ }
844
+ }`, {
845
+ pagination: r,
846
+ status: t
847
+ }, i)).hokListModerationFlags
848
+ });
849
+ }, je = () => {
850
+ let n = r(), { apiGatewayUrl: i } = e();
851
+ return t({
852
+ mutationFn: async ({ id: e, status: t, resolution: n }) => (await o(`mutation HokResolveModerationFlag($id: ID!, $status: HokModerationStatus!, $resolution: String) {
853
+ hokResolveModerationFlag(id: $id, status: $status, resolution: $resolution) {
854
+ ${J}
855
+ }
856
+ }`, {
857
+ id: e,
858
+ status: t,
859
+ resolution: n
860
+ }, i)).hokResolveModerationFlag,
861
+ onSuccess: () => {
862
+ n.invalidateQueries({ queryKey: [c, "moderation-flags"] });
863
+ }
864
+ });
865
+ }, Y = "\n id userId languages contentTypes maturityLimit onboardedAt createdAt updatedAt\n", Me = () => {
866
+ let { apiGatewayUrl: t } = e();
867
+ return n({
868
+ queryKey: [c, "preferences"],
869
+ queryFn: async () => (await o(`query HokMyPreferences { hokMyPreferences { ${Y} } }`, {}, t)).hokMyPreferences
870
+ });
871
+ }, Ne = () => {
872
+ let n = r(), { apiGatewayUrl: i } = e();
873
+ return t({
874
+ mutationFn: async (e) => (await o(`mutation HokSetPreferences($input: HokSetPreferencesInput!) {
875
+ hokSetPreferences(input: $input) { ${Y} }
876
+ }`, { input: e }, i)).hokSetPreferences,
877
+ onSuccess: () => {
878
+ n.invalidateQueries({ queryKey: [c, "preferences"] });
879
+ }
880
+ });
881
+ }, X = "\n id name slug description language timezone genres status logoFileId\n createdAt updatedAt\n", Z = "\n id channelId titleId episodeId startAt endAt createdAt updatedAt\n title { id title type }\n channel { id name }\n", Pe = (t, r = {
882
+ limit: 50,
883
+ offset: 0
884
+ }) => {
885
+ let { apiGatewayUrl: i } = e();
886
+ return n({
887
+ queryKey: [
888
+ c,
889
+ "channels",
890
+ t ?? "",
891
+ r
892
+ ],
893
+ queryFn: async () => (await o(`query HokChannels($pagination: PaginationInput, $language: String) {
894
+ hokListChannels(pagination: $pagination, language: $language) {
895
+ items { ${X} }
896
+ ${_}
897
+ }
898
+ }`, {
899
+ pagination: r,
900
+ language: t?.trim() ? t.trim() : void 0
901
+ }, i)).hokListChannels
902
+ });
903
+ }, Fe = (t, r, i) => {
904
+ let { apiGatewayUrl: a } = e();
905
+ return n({
906
+ queryKey: [
907
+ c,
908
+ "channel-schedule",
909
+ t ?? "",
910
+ r ?? "",
911
+ i ?? ""
912
+ ],
913
+ queryFn: async () => (await o(`query HokChannelSchedule($channelId: ID!, $from: DateTime, $to: DateTime) {
914
+ hokChannelSchedule(channelId: $channelId, from: $from, to: $to) {
915
+ ${Z}
916
+ }
917
+ }`, {
918
+ channelId: t,
919
+ from: r,
920
+ to: i
921
+ }, a)).hokChannelSchedule,
922
+ enabled: !!t
923
+ });
924
+ }, Ie = () => {
925
+ let n = r(), { apiGatewayUrl: i } = e();
926
+ return t({
927
+ mutationFn: async (e) => (await o(`mutation HokCreateChannel($input: HokCreateChannelInput!) {
928
+ hokCreateChannel(input: $input) { ${X} }
929
+ }`, { input: e }, i)).hokCreateChannel,
930
+ onSuccess: () => {
931
+ n.invalidateQueries({ queryKey: [c, "channels"] });
932
+ }
933
+ });
934
+ }, Le = () => {
935
+ let n = r(), { apiGatewayUrl: i } = e();
936
+ return t({
937
+ mutationFn: async (e) => (await o(`mutation HokScheduleBlock($input: HokScheduleBlockInput!) {
938
+ hokScheduleBlock(input: $input) { ${Z} }
939
+ }`, { input: e }, i)).hokScheduleBlock,
940
+ onSuccess: (e) => {
941
+ n.invalidateQueries({ queryKey: [
942
+ c,
943
+ "channel-schedule",
944
+ e.channelId
945
+ ] }), n.invalidateQueries({ queryKey: [
946
+ c,
947
+ "now-playing",
948
+ e.channelId
949
+ ] });
950
+ }
951
+ });
952
+ }, Re = () => {
953
+ let n = r(), { apiGatewayUrl: i } = e();
954
+ return t({
955
+ mutationFn: async ({ id: e }) => (await o("mutation HokRemoveScheduleBlock($id: ID!) { hokRemoveScheduleBlock(id: $id) }", { id: e }, i)).hokRemoveScheduleBlock,
956
+ onSuccess: (e, { channelId: t }) => {
957
+ n.invalidateQueries({ queryKey: [
958
+ c,
959
+ "channel-schedule",
960
+ t
961
+ ] }), n.invalidateQueries({ queryKey: [
962
+ c,
963
+ "now-playing",
964
+ t
965
+ ] });
966
+ }
967
+ });
968
+ }, ze = () => {
969
+ let n = r(), { apiGatewayUrl: i } = e();
970
+ return t({
971
+ mutationFn: async (e) => (await o(`mutation HokCreateLocalization($input: HokCreateLocalizationInput!) {
972
+ hokCreateLocalization(input: $input) { ${G} }
973
+ }`, { input: e }, i)).hokCreateLocalization,
974
+ onSuccess: () => {
975
+ n.invalidateQueries({ queryKey: [c, "localizations"] });
976
+ }
977
+ });
978
+ }, Be = () => {
979
+ let n = r(), { apiGatewayUrl: i } = e();
980
+ return t({
981
+ mutationFn: async (e) => (await o("mutation HokDeleteLocalization($id: ID!) { hokDeleteLocalization(id: $id) }", { id: e }, i)).hokDeleteLocalization,
982
+ onSuccess: () => {
983
+ n.invalidateQueries({ queryKey: [c, "localizations"] });
984
+ }
985
+ });
986
+ }, Ve = () => {
987
+ let n = r(), { apiGatewayUrl: i } = e();
988
+ return t({
989
+ mutationFn: async (e) => (await o(`mutation HokSetDefaultLocalization($id: ID!) {
990
+ hokSetDefaultLocalization(id: $id) { ${G} }
991
+ }`, { id: e }, i)).hokSetDefaultLocalization,
992
+ onSuccess: () => {
993
+ n.invalidateQueries({ queryKey: [c, "localizations"] });
994
+ }
995
+ });
996
+ }, He = () => n({
997
+ queryKey: [c, "billing-accounts"],
998
+ queryFn: async () => (await s("query HokMyBillingAccounts {\n myBillingAccounts { id name orgId currency creditAmount isDefault }\n }", {})).myBillingAccounts
999
+ }), Q = () => {
1000
+ let e = r();
1001
+ return t({
1002
+ mutationFn: async (e) => (await s("mutation HokCreateBillingOrder($input: CreateBillingOrderInput!) {\n createBillingOrder(input: $input) {\n success\n error\n order { id status currency subtotal externalService description createdAt }\n }\n }", { input: e })).createBillingOrder,
1003
+ onSuccess: (t, n) => {
1004
+ e.invalidateQueries({ queryKey: [c, "billing-accounts"] }), e.invalidateQueries({ queryKey: [
1005
+ c,
1006
+ "earnings-summary",
1007
+ n.billingAccountId
1008
+ ] });
1009
+ }
1010
+ });
1011
+ }, Ue = (e) => n({
1012
+ queryKey: [
1013
+ c,
1014
+ "earnings-summary",
1015
+ e
1016
+ ],
1017
+ queryFn: async () => (await s("query HokMyEarningsSummary($billingAccountId: ID!) {\n myEarningsSummary(billingAccountId: $billingAccountId) {\n availableAmount reservedAmount paidAmount pendingAmount\n moneyAmount creditsAmount totalLifetimeAmount\n categoryBreakdown { category amount count }\n }\n }", { billingAccountId: e })).myEarningsSummary,
1018
+ enabled: !!e
1019
+ }), We = (e, t, r = 20, i = 0) => n({
1020
+ queryKey: [
1021
+ c,
1022
+ "earnings-entries",
1023
+ e,
1024
+ t ?? {},
1025
+ r,
1026
+ i
1027
+ ],
1028
+ queryFn: async () => (await s("query HokMyEarningsEntries($billingAccountId: ID!, $filter: EarningsEntryFilterInput, $limit: Int, $offset: Int) {\n myEarningsEntries(billingAccountId: $billingAccountId, filter: $filter, limit: $limit, offset: $offset) {\n items {\n id billingAccountId amount currency description sourceCategory status\n availableAt createdAt\n }\n totalCount\n hasMore\n }\n }", {
1029
+ billingAccountId: e,
1030
+ filter: t,
1031
+ limit: r,
1032
+ offset: i
1033
+ })).myEarningsEntries,
1034
+ enabled: !!e
1035
+ }), Ge = (e) => n({
1036
+ queryKey: [
1037
+ c,
1038
+ "payout-accounts",
1039
+ e
1040
+ ],
1041
+ queryFn: async () => (await s("query HokMyPayoutAccounts($billingAccountId: ID!) {\n myPayoutAccounts(billingAccountId: $billingAccountId) {\n id billingAccountId label displayName type currency accountLast4\n isDefault isActive status createdAt\n }\n }", { billingAccountId: e })).myPayoutAccounts,
1042
+ enabled: !!e
1043
+ }), $ = "\n id billingAccountId requestedAmount approvedAmount currency status provider\n userNotes createdAt paidAt\n", Ke = (e, t = 20, r = 0) => n({
1044
+ queryKey: [
1045
+ c,
1046
+ "payout-requests",
1047
+ e,
1048
+ t,
1049
+ r
1050
+ ],
1051
+ queryFn: async () => (await s(`query HokMyPayoutRequests($billingAccountId: ID!, $limit: Int, $offset: Int) {
1052
+ myPayoutRequests(billingAccountId: $billingAccountId, limit: $limit, offset: $offset) {
1053
+ items { ${$} }
1054
+ totalCount
1055
+ hasMore
1056
+ }
1057
+ }`, {
1058
+ billingAccountId: e,
1059
+ limit: t,
1060
+ offset: r
1061
+ })).myPayoutRequests,
1062
+ enabled: !!e
1063
+ }), qe = () => {
1064
+ let e = r();
1065
+ return t({
1066
+ mutationFn: async (e) => (await s(`mutation HokRequestPayout($input: RequestPayoutInput!) {
1067
+ requestBillingPayout(input: $input) { ${$} }
1068
+ }`, { input: e })).requestBillingPayout,
1069
+ onSuccess: (t) => {
1070
+ e.invalidateQueries({ queryKey: [
1071
+ c,
1072
+ "payout-requests",
1073
+ t.billingAccountId
1074
+ ] }), e.invalidateQueries({ queryKey: [
1075
+ c,
1076
+ "earnings-summary",
1077
+ t.billingAccountId
1078
+ ] });
1079
+ }
1080
+ });
1081
+ }, Je = "\n id name prefix scopes appId appName createdAt expiresAt lastUsedAt\n", Ye = (e) => n({
1082
+ queryKey: [
1083
+ c,
1084
+ "api-keys",
1085
+ e ?? {}
1086
+ ],
1087
+ queryFn: async () => (await s(`query HokMyApiKeys($pagination: PaginationInput) {
1088
+ myApiKeys(pagination: $pagination) {
1089
+ apiKeys { ${Je} }
1090
+ totalCount
1091
+ hasMore
1092
+ }
1093
+ }`, { pagination: e })).myApiKeys
1094
+ }), Xe = () => {
1095
+ let e = r();
1096
+ return t({
1097
+ mutationFn: async (e) => (await s("mutation HokGenerateApiKey($input: GenerateAPIKeyInput!) {\n generateAPIKey(input: $input) { apiKey apiSecret keyId }\n }", { input: e })).generateAPIKey,
1098
+ onSuccess: () => {
1099
+ e.invalidateQueries({ queryKey: [c, "api-keys"] });
1100
+ }
1101
+ });
1102
+ }, Ze = () => {
1103
+ let e = r();
1104
+ return t({
1105
+ mutationFn: async (e) => (await s("mutation HokRevokeApiKey($keyId: String!) { revokeAPIKey(keyId: $keyId) }", { keyId: e })).revokeAPIKey,
1106
+ onSuccess: () => {
1107
+ e.invalidateQueries({ queryKey: [c, "api-keys"] });
1108
+ }
1109
+ });
1110
+ }, Qe = (e, t = 50, r = 0) => n({
1111
+ queryKey: [
1112
+ c,
1113
+ "languages",
1114
+ e ?? {},
1115
+ t,
1116
+ r
1117
+ ],
1118
+ queryFn: async () => (await s("query HokLanguages($filter: LanguageFilterInput, $limit: Int, $offset: Int) {\n languages(filter: $filter, limit: $limit, offset: $offset) {\n items { id code name nativeName direction status isDefault }\n total\n hasMore\n }\n }", {
1119
+ filter: e,
1120
+ limit: t,
1121
+ offset: r
1122
+ })).languages,
1123
+ staleTime: 300 * 1e3
1124
+ }), $e = () => {
1125
+ let e = r();
1126
+ return t({
1127
+ mutationFn: async (e) => (await s("mutation HokSetUserLanguagePreference($input: SetUserLanguagePreferenceInput!) {\n setUserLanguagePreference(input: $input) { id userId languageCode }\n }", { input: e })).setUserLanguagePreference,
1128
+ onSuccess: () => {
1129
+ e.invalidateQueries({ queryKey: [c, "language-preference"] });
1130
+ }
1131
+ });
674
1132
  };
675
1133
  //#endregion
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 };
1134
+ export { B as useAddCredit, E as useApplyToAudition, ae as useArchiveTitle, C as useAuditionApplications, S as useAuditionById, x as useAuditions, Fe as useChannelSchedule, Pe as useChannels, de as useCheckEntitlement, me as useClips, T as useCloseAudition, w as useCreateAudition, Q as useCreateBillingOrder, Ie as useCreateChannel, he as useCreateClip, H as useCreateEpisode, L as useCreateList, ze as useCreateLocalization, le as useCreatePerson, y as useCreateProduction, be as useCreateProfile, k as useCreateReview, M as useCreateRightsWindow, V as useCreateSeason, se as useCreateStudio, ne as useCreateTitle, Ce as useCreateWatchParty, ge as useDeleteClip, R as useDeleteList, Be as useDeleteLocalization, Se as useDeleteProfile, A as useDeleteReview, Xe as useGenerateApiKey, fe as useGrantEntitlement, ve as useHealth, Te as useJoinWatchParty, Qe as useLanguages, _e as useLocalizations, Ae as useModerationFlags, Ye as useMyApiKeys, He as useMyBillingAccounts, We as useMyEarningsEntries, Ue as useMyEarningsSummary, F as useMyEntitlements, I as useMyLists, Ge as useMyPayoutAccounts, Ke as useMyPayoutRequests, Me as useMyPreferences, ye as useMyProfiles, z as useMyWatchProgress, ce as usePeople, v as useProduction, ue as useProductions, U as useRecordProgress, Re as useRemoveScheduleBlock, ke as useReportContent, qe as useRequestPayout, je as useResolveModerationFlag, O as useReviews, Ze as useRevokeApiKey, P as useRevokeEntitlement, j as useRightsWindows, Le as useScheduleBlock, D as useScoreApplication, Ve as useSetDefaultLocalization, Ne as useSetPreferences, $e as useSetUserLanguagePreference, oe as useStudios, te as useTitle, ee as useTitles, b as useTransitionProduction, N as useTransitionRightsWindow, ie as useTransitionTitle, Oe as useUnvoteReviewHelpful, pe as useUpdateList, Ee as useUpdatePartyPlayback, xe as useUpdateProfile, re as useUpdateTitle, De as useVoteReviewHelpful, we as useWatchParty };
677
1135
 
678
1136
  //# sourceMappingURL=useHookMoviesApi.js.map