@burdenoff/microfe-hookmovies 2026.628.1 → 2026.705.1

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.
@@ -2,8 +2,9 @@ import { useHookMovies as e } from "../context/HookMoviesContext.js";
2
2
  import "../context/index.js";
3
3
  import { useMutation as t, useQuery as n, useQueryClient as r } from "@tanstack/react-query";
4
4
  import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
5
+ import { clearGraphqlFetchResponseCache as a } from "@burdenoff/fe-libs/shared/graphql/fetch";
5
6
  //#region src/hookmovies/hooks/useHookMoviesApi.ts
6
- var a = async (e, t, n) => {
7
+ var o = async (e, t, n) => {
7
8
  let r = await i({
8
9
  gateway: "workspace",
9
10
  baseUrl: n,
@@ -13,23 +14,23 @@ var a = async (e, t, n) => {
13
14
  });
14
15
  if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
15
16
  if (!r.data) throw Error("GraphQL response did not include data");
16
- return r.data;
17
- }, o = "hookmovies", s = "\n id title slug type status synopsis genres tags originalLanguage originCountry\n releaseYear releaseDate runtimeMinutes certification aiDisclosure studioId\n createdAt updatedAt\n", c = "\n id name slug description country websiteUrl isVerified tags createdAt updatedAt\n", l = "\n id name biography knownFor primaryLanguage portfolioRef tags createdAt updatedAt\n", u = "\n id title logline synopsis status currency budgetMinorUnits studioId producerId\n resultingTitleId artistrybaseProjectRef tags startDate endDate createdAt updatedAt\n", d = "\n id productionId roleName description status isMinorRole payMinorUnits currency\n location language submissionDeadline createdAt updatedAt\n", f = "\n id titleId authorId score body hasSpoilers helpfulCount verifiedWatch status\n createdAt updatedAt\n", p = "\n id titleId status modes territories exclusive currency licenseeId startsAt endsAt\n createdAt updatedAt\n", m = "\n id name description kind visibility ownerId itemCount createdAt updatedAt\n", h = "pageInfo { cursor hasMore }", g = (t = {}, r = {
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
19
  limit: 50,
19
20
  offset: 0
20
21
  }) => {
21
22
  let { apiGatewayUrl: i } = e();
22
23
  return n({
23
24
  queryKey: [
24
- o,
25
+ s,
25
26
  "titles",
26
27
  t,
27
28
  r
28
29
  ],
29
- queryFn: async () => (await a(`query HokTitles($pagination: PaginationInput, $status: HokTitleStatus, $type: HokTitleType, $studioId: ID) {
30
+ queryFn: async () => (await o(`query HokTitles($pagination: PaginationInput, $status: HokTitleStatus, $type: HokTitleType, $studioId: ID) {
30
31
  hokListTitles(pagination: $pagination, status: $status, type: $type, studioId: $studioId) {
31
- items { ${s} }
32
- ${h}
32
+ items { ${c} }
33
+ ${g}
33
34
  }
34
35
  }`, {
35
36
  pagination: r,
@@ -38,17 +39,17 @@ var a = async (e, t, n) => {
38
39
  studioId: t.studioId
39
40
  }, i)).hokListTitles
40
41
  });
41
- }, _ = (t) => {
42
+ }, v = (t) => {
42
43
  let { apiGatewayUrl: r } = e();
43
44
  return n({
44
45
  queryKey: [
45
- o,
46
+ s,
46
47
  "title",
47
48
  t
48
49
  ],
49
- queryFn: async () => (await a(`query HokTitle($id: ID!) {
50
+ queryFn: async () => (await o(`query HokTitle($id: ID!) {
50
51
  hokTitle(id: $id) {
51
- ${s}
52
+ ${c}
52
53
  studio { id name }
53
54
  credits {
54
55
  id personId titleId role characterName billingOrder
@@ -60,130 +61,134 @@ var a = async (e, t, n) => {
60
61
  }`, { id: t }, r)).hokTitle,
61
62
  enabled: !!t
62
63
  });
63
- }, v = () => {
64
+ }, y = () => {
64
65
  let n = r(), { apiGatewayUrl: i } = e();
65
66
  return t({
66
- mutationFn: async (e) => (await a(`mutation HokCreateTitle($input: HokCreateTitleInput!) {
67
- hokCreateTitle(input: $input) { ${s} }
67
+ mutationFn: async (e) => (await o(`mutation HokCreateTitle($input: HokCreateTitleInput!) {
68
+ hokCreateTitle(input: $input) { ${c} }
68
69
  }`, { input: e }, i)).hokCreateTitle,
69
70
  onSuccess: () => {
70
- n.invalidateQueries({ queryKey: [o, "titles"] });
71
+ n.invalidateQueries({ queryKey: [s, "titles"] });
71
72
  }
72
73
  });
73
- }, y = () => {
74
+ }, b = () => {
74
75
  let n = r(), { apiGatewayUrl: i } = e();
75
76
  return t({
76
- mutationFn: async ({ id: e, input: t }) => (await a(`mutation HokUpdateTitle($id: ID!, $input: HokUpdateTitleInput!) {
77
- hokUpdateTitle(id: $id, input: $input) { ${s} }
77
+ mutationFn: async ({ id: e, input: t }) => (await o(`mutation HokUpdateTitle($id: ID!, $input: HokUpdateTitleInput!) {
78
+ hokUpdateTitle(id: $id, input: $input) { ${c} }
78
79
  }`, {
79
80
  id: e,
80
81
  input: t
81
82
  }, i)).hokUpdateTitle,
82
83
  onSuccess: (e) => {
83
- n.invalidateQueries({ queryKey: [o, "titles"] }), n.invalidateQueries({ queryKey: [
84
- o,
84
+ n.invalidateQueries({ queryKey: [s, "titles"] }), n.invalidateQueries({ queryKey: [
85
+ s,
85
86
  "title",
86
87
  e.id
87
88
  ] });
88
89
  }
89
90
  });
90
- }, b = () => {
91
+ }, x = () => {
91
92
  let n = r(), { apiGatewayUrl: i } = e();
92
93
  return t({
93
- mutationFn: async ({ id: e, status: t }) => (await a(`mutation HokTransitionTitle($id: ID!, $status: HokTitleStatus!) {
94
- hokTransitionTitle(id: $id, status: $status) { ${s} }
94
+ mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionTitle($id: ID!, $status: HokTitleStatus!) {
95
+ hokTransitionTitle(id: $id, status: $status) { ${c} }
95
96
  }`, {
96
97
  id: e,
97
98
  status: t
98
99
  }, i)).hokTransitionTitle,
99
100
  onSuccess: (e) => {
100
- n.invalidateQueries({ queryKey: [o, "titles"] }), n.invalidateQueries({ queryKey: [
101
- o,
101
+ n.invalidateQueries({ queryKey: [s, "titles"] }), n.invalidateQueries({ queryKey: [
102
+ s,
102
103
  "title",
103
104
  e.id
104
105
  ] });
105
106
  }
106
107
  });
107
- }, x = () => {
108
+ }, S = () => {
108
109
  let n = r(), { apiGatewayUrl: i } = e();
109
110
  return t({
110
- mutationFn: async (e) => (await a("mutation HokArchiveTitle($id: ID!) { hokArchiveTitle(id: $id) }", { id: e }, i)).hokArchiveTitle,
111
- onSuccess: () => {
112
- n.invalidateQueries({ queryKey: [o, "titles"] });
111
+ mutationFn: async (e) => (await o("mutation HokArchiveTitle($id: ID!) { hokArchiveTitle(id: $id) }", { id: e }, i)).hokArchiveTitle,
112
+ onSuccess: (e, t) => {
113
+ n.invalidateQueries({ queryKey: [s, "titles"] }), n.invalidateQueries({ queryKey: [
114
+ s,
115
+ "title",
116
+ t
117
+ ] });
113
118
  }
114
119
  });
115
- }, S = (t = {
120
+ }, C = (t = {
116
121
  limit: 50,
117
122
  offset: 0
118
123
  }) => {
119
124
  let { apiGatewayUrl: r } = e();
120
125
  return n({
121
126
  queryKey: [
122
- o,
127
+ s,
123
128
  "studios",
124
129
  t
125
130
  ],
126
- queryFn: async () => (await a(`query HokStudios($pagination: PaginationInput) {
131
+ queryFn: async () => (await o(`query HokStudios($pagination: PaginationInput) {
127
132
  hokListStudios(pagination: $pagination) {
128
- items { ${c} }
129
- ${h}
133
+ items { ${l} }
134
+ ${g}
130
135
  }
131
136
  }`, { pagination: t }, r)).hokListStudios
132
137
  });
133
- }, C = () => {
138
+ }, w = () => {
134
139
  let n = r(), { apiGatewayUrl: i } = e();
135
140
  return t({
136
- mutationFn: async (e) => (await a(`mutation HokCreateStudio($input: HokCreateStudioInput!) {
137
- hokCreateStudio(input: $input) { ${c} }
141
+ mutationFn: async (e) => (await o(`mutation HokCreateStudio($input: HokCreateStudioInput!) {
142
+ hokCreateStudio(input: $input) { ${l} }
138
143
  }`, { input: e }, i)).hokCreateStudio,
139
144
  onSuccess: () => {
140
- n.invalidateQueries({ queryKey: [o, "studios"] });
145
+ n.invalidateQueries({ queryKey: [s, "studios"] });
141
146
  }
142
147
  });
143
- }, w = (t = {
148
+ }, T = (t = {
144
149
  limit: 50,
145
150
  offset: 0
146
151
  }) => {
147
152
  let { apiGatewayUrl: r } = e();
148
153
  return n({
149
154
  queryKey: [
150
- o,
155
+ s,
151
156
  "people",
152
157
  t
153
158
  ],
154
- queryFn: async () => (await a(`query HokPeople($pagination: PaginationInput) {
159
+ queryFn: async () => (await o(`query HokPeople($pagination: PaginationInput) {
155
160
  hokListPeople(pagination: $pagination) {
156
- items { ${l} }
157
- ${h}
161
+ items { ${u} }
162
+ ${g}
158
163
  }
159
164
  }`, { pagination: t }, r)).hokListPeople
160
165
  });
161
- }, T = () => {
166
+ }, E = () => {
162
167
  let n = r(), { apiGatewayUrl: i } = e();
163
168
  return t({
164
- mutationFn: async (e) => (await a(`mutation HokCreatePerson($input: HokCreatePersonInput!) {
165
- hokCreatePerson(input: $input) { ${l} }
169
+ mutationFn: async (e) => (await o(`mutation HokCreatePerson($input: HokCreatePersonInput!) {
170
+ hokCreatePerson(input: $input) { ${u} }
166
171
  }`, { input: e }, i)).hokCreatePerson,
167
172
  onSuccess: () => {
168
- n.invalidateQueries({ queryKey: [o, "people"] });
173
+ n.invalidateQueries({ queryKey: [s, "people"] });
169
174
  }
170
175
  });
171
- }, E = (t = {}, r = {
176
+ }, D = (t = {}, r = {
172
177
  limit: 50,
173
178
  offset: 0
174
179
  }) => {
175
180
  let { apiGatewayUrl: i } = e();
176
181
  return n({
177
182
  queryKey: [
178
- o,
183
+ s,
179
184
  "productions",
180
185
  t,
181
186
  r
182
187
  ],
183
- queryFn: async () => (await a(`query HokProductions($pagination: PaginationInput, $status: HokProductionStatus, $studioId: ID) {
188
+ queryFn: async () => (await o(`query HokProductions($pagination: PaginationInput, $status: HokProductionStatus, $studioId: ID) {
184
189
  hokListProductions(pagination: $pagination, status: $status, studioId: $studioId) {
185
- items { ${u} }
186
- ${h}
190
+ items { ${d} }
191
+ ${g}
187
192
  }
188
193
  }`, {
189
194
  pagination: r,
@@ -191,17 +196,17 @@ var a = async (e, t, n) => {
191
196
  studioId: t.studioId
192
197
  }, i)).hokListProductions
193
198
  });
194
- }, D = (t) => {
199
+ }, O = (t) => {
195
200
  let { apiGatewayUrl: r } = e();
196
201
  return n({
197
202
  queryKey: [
198
- o,
203
+ s,
199
204
  "production",
200
205
  t
201
206
  ],
202
- queryFn: async () => (await a(`query HokProduction($id: ID!) {
207
+ queryFn: async () => (await o(`query HokProduction($id: ID!) {
203
208
  hokProduction(id: $id) {
204
- ${u}
209
+ ${d}
205
210
  auditions {
206
211
  id roleName status isMinorRole payMinorUnits currency location language submissionDeadline
207
212
  }
@@ -209,52 +214,52 @@ var a = async (e, t, n) => {
209
214
  }`, { id: t }, r)).hokProduction,
210
215
  enabled: !!t
211
216
  });
212
- }, O = () => {
217
+ }, k = () => {
213
218
  let n = r(), { apiGatewayUrl: i } = e();
214
219
  return t({
215
- mutationFn: async (e) => (await a(`mutation HokCreateProduction($input: HokCreateProductionInput!) {
216
- hokCreateProduction(input: $input) { ${u} }
220
+ mutationFn: async (e) => (await o(`mutation HokCreateProduction($input: HokCreateProductionInput!) {
221
+ hokCreateProduction(input: $input) { ${d} }
217
222
  }`, { input: e }, i)).hokCreateProduction,
218
223
  onSuccess: () => {
219
- n.invalidateQueries({ queryKey: [o, "productions"] });
224
+ n.invalidateQueries({ queryKey: [s, "productions"] });
220
225
  }
221
226
  });
222
- }, k = () => {
227
+ }, A = () => {
223
228
  let n = r(), { apiGatewayUrl: i } = e();
224
229
  return t({
225
- mutationFn: async ({ id: e, status: t }) => (await a(`mutation HokTransitionProduction($id: ID!, $status: HokProductionStatus!) {
226
- hokTransitionProduction(id: $id, status: $status) { ${u} }
230
+ mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionProduction($id: ID!, $status: HokProductionStatus!) {
231
+ hokTransitionProduction(id: $id, status: $status) { ${d} }
227
232
  }`, {
228
233
  id: e,
229
234
  status: t
230
235
  }, i)).hokTransitionProduction,
231
236
  onSuccess: (e) => {
232
- n.invalidateQueries({ queryKey: [o, "productions"] }), n.invalidateQueries({ queryKey: [
233
- o,
237
+ n.invalidateQueries({ queryKey: [s, "productions"] }), n.invalidateQueries({ queryKey: [
238
+ s,
234
239
  "production",
235
240
  e.id
236
241
  ] });
237
242
  }
238
243
  });
239
- }, A = (t = {}, r = {
244
+ }, j = (t = {}, r = {
240
245
  limit: 50,
241
246
  offset: 0
242
247
  }) => {
243
248
  let { apiGatewayUrl: i } = e();
244
249
  return n({
245
250
  queryKey: [
246
- o,
251
+ s,
247
252
  "auditions",
248
253
  t,
249
254
  r
250
255
  ],
251
- queryFn: async () => (await a(`query HokAuditions($pagination: PaginationInput, $status: HokAuditionStatus, $productionId: ID) {
256
+ queryFn: async () => (await o(`query HokAuditions($pagination: PaginationInput, $status: HokAuditionStatus, $productionId: ID) {
252
257
  hokListAuditions(pagination: $pagination, status: $status, productionId: $productionId) {
253
258
  items {
254
- ${d}
259
+ ${f}
255
260
  production { id title }
256
261
  }
257
- ${h}
262
+ ${g}
258
263
  }
259
264
  }`, {
260
265
  pagination: r,
@@ -262,21 +267,21 @@ var a = async (e, t, n) => {
262
267
  productionId: t.productionId
263
268
  }, i)).hokListAuditions
264
269
  });
265
- }, j = (t) => {
270
+ }, M = (t) => {
266
271
  let { apiGatewayUrl: r } = e();
267
272
  return n({
268
273
  queryKey: [
269
- o,
274
+ s,
270
275
  "audition-by-id",
271
276
  t
272
277
  ],
273
- queryFn: async () => (await a(`query HokAuditionLookup($pagination: PaginationInput) {
278
+ queryFn: async () => (await o(`query HokAuditionLookup($pagination: PaginationInput) {
274
279
  hokListAuditions(pagination: $pagination) {
275
280
  items {
276
- ${d}
281
+ ${f}
277
282
  production { id title }
278
283
  }
279
- ${h}
284
+ ${g}
280
285
  }
281
286
  }`, { pagination: {
282
287
  limit: 200,
@@ -284,83 +289,87 @@ var a = async (e, t, n) => {
284
289
  } }, r)).hokListAuditions.items.find((e) => e.id === t) ?? null,
285
290
  enabled: !!t
286
291
  });
287
- }, M = (t) => {
292
+ }, N = (t) => {
288
293
  let { apiGatewayUrl: r } = e();
289
294
  return n({
290
295
  queryKey: [
291
- o,
296
+ s,
292
297
  "applications",
293
298
  t
294
299
  ],
295
- queryFn: async () => (await a("query HokApplications($auditionId: ID!) {\n hokListApplications(auditionId: $auditionId) {\n id auditionId applicantId coverNote score status createdAt updatedAt\n }\n }", { auditionId: t }, r)).hokListApplications,
300
+ 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,
296
301
  enabled: !!t
297
302
  });
298
- }, N = () => {
303
+ }, P = () => {
299
304
  let n = r(), { apiGatewayUrl: i } = e();
300
305
  return t({
301
- mutationFn: async (e) => (await a(`mutation HokCreateAudition($input: HokCreateAuditionInput!) {
302
- hokCreateAudition(input: $input) { ${d} }
306
+ mutationFn: async (e) => (await o(`mutation HokCreateAudition($input: HokCreateAuditionInput!) {
307
+ hokCreateAudition(input: $input) { ${f} }
303
308
  }`, { input: e }, i)).hokCreateAudition,
304
309
  onSuccess: () => {
305
- n.invalidateQueries({ queryKey: [o, "auditions"] });
310
+ n.invalidateQueries({ queryKey: [s, "auditions"] });
306
311
  }
307
312
  });
308
- }, P = () => {
313
+ }, F = () => {
309
314
  let n = r(), { apiGatewayUrl: i } = e();
310
315
  return t({
311
- mutationFn: async (e) => (await a(`mutation HokCloseAudition($id: ID!) {
312
- hokCloseAudition(id: $id) { ${d} }
316
+ mutationFn: async (e) => (await o(`mutation HokCloseAudition($id: ID!) {
317
+ hokCloseAudition(id: $id) { ${f} }
313
318
  }`, { id: e }, i)).hokCloseAudition,
314
- onSuccess: () => {
315
- n.invalidateQueries({ queryKey: [o, "auditions"] });
319
+ onSuccess: (e) => {
320
+ n.invalidateQueries({ queryKey: [s, "auditions"] }), n.invalidateQueries({ queryKey: [
321
+ s,
322
+ "audition-by-id",
323
+ e.id
324
+ ] });
316
325
  }
317
326
  });
318
- }, F = () => {
327
+ }, I = () => {
319
328
  let n = r(), { apiGatewayUrl: i } = e();
320
329
  return t({
321
- mutationFn: async (e) => (await a("mutation HokApplyToAudition($input: HokApplyToAuditionInput!) {\n hokApplyToAudition(input: $input) {\n id auditionId applicantId coverNote score status createdAt updatedAt\n }\n }", { input: e }, i)).hokApplyToAudition,
330
+ 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,
322
331
  onSuccess: (e) => {
323
332
  n.invalidateQueries({ queryKey: [
324
- o,
333
+ s,
325
334
  "applications",
326
335
  e.auditionId
327
336
  ] });
328
337
  }
329
338
  });
330
- }, I = () => {
339
+ }, L = () => {
331
340
  let n = r(), { apiGatewayUrl: i } = e();
332
341
  return t({
333
- mutationFn: async ({ id: e, score: t }) => (await a("mutation HokScoreApplication($id: ID!, $score: Int!) {\n hokScoreApplication(id: $id, score: $score) {\n id auditionId applicantId coverNote score status createdAt updatedAt\n }\n }", {
342
+ 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 }", {
334
343
  id: e,
335
344
  score: t
336
345
  }, i)).hokScoreApplication,
337
346
  onSuccess: (e) => {
338
347
  n.invalidateQueries({ queryKey: [
339
- o,
348
+ s,
340
349
  "applications",
341
350
  e.auditionId
342
351
  ] });
343
352
  }
344
353
  });
345
- }, L = (t = {}, r = {
354
+ }, R = (t = {}, r = {
346
355
  limit: 50,
347
356
  offset: 0
348
357
  }) => {
349
358
  let { apiGatewayUrl: i } = e();
350
359
  return n({
351
360
  queryKey: [
352
- o,
361
+ s,
353
362
  "reviews",
354
363
  t,
355
364
  r
356
365
  ],
357
- queryFn: async () => (await a(`query HokReviews($pagination: PaginationInput, $status: HokReviewStatus, $titleId: ID) {
366
+ queryFn: async () => (await o(`query HokReviews($pagination: PaginationInput, $status: HokReviewStatus, $titleId: ID) {
358
367
  hokListReviews(pagination: $pagination, status: $status, titleId: $titleId) {
359
368
  items {
360
- ${f}
369
+ ${p}
361
370
  title { id title }
362
371
  }
363
- ${h}
372
+ ${g}
364
373
  }
365
374
  }`, {
366
375
  pagination: r,
@@ -368,43 +377,43 @@ var a = async (e, t, n) => {
368
377
  titleId: t.titleId
369
378
  }, i)).hokListReviews
370
379
  });
371
- }, R = () => {
380
+ }, z = () => {
372
381
  let n = r(), { apiGatewayUrl: i } = e();
373
382
  return t({
374
- mutationFn: async (e) => (await a(`mutation HokCreateReview($input: HokCreateReviewInput!) {
375
- hokCreateReview(input: $input) { ${f} }
383
+ mutationFn: async (e) => (await o(`mutation HokCreateReview($input: HokCreateReviewInput!) {
384
+ hokCreateReview(input: $input) { ${p} }
376
385
  }`, { input: e }, i)).hokCreateReview,
377
386
  onSuccess: () => {
378
- n.invalidateQueries({ queryKey: [o, "reviews"] });
387
+ n.invalidateQueries({ queryKey: [s, "reviews"] });
379
388
  }
380
389
  });
381
- }, z = () => {
390
+ }, B = () => {
382
391
  let n = r(), { apiGatewayUrl: i } = e();
383
392
  return t({
384
- mutationFn: async (e) => (await a("mutation HokDeleteReview($id: ID!) { hokDeleteReview(id: $id) }", { id: e }, i)).hokDeleteReview,
393
+ mutationFn: async (e) => (await o("mutation HokDeleteReview($id: ID!) { hokDeleteReview(id: $id) }", { id: e }, i)).hokDeleteReview,
385
394
  onSuccess: () => {
386
- n.invalidateQueries({ queryKey: [o, "reviews"] });
395
+ n.invalidateQueries({ queryKey: [s, "reviews"] });
387
396
  }
388
397
  });
389
- }, B = (t = {}, r = {
398
+ }, V = (t = {}, r = {
390
399
  limit: 50,
391
400
  offset: 0
392
401
  }) => {
393
402
  let { apiGatewayUrl: i } = e();
394
403
  return n({
395
404
  queryKey: [
396
- o,
405
+ s,
397
406
  "rights",
398
407
  t,
399
408
  r
400
409
  ],
401
- queryFn: async () => (await a(`query HokRightsWindows($pagination: PaginationInput, $status: HokRightsWindowStatus, $titleId: ID) {
410
+ queryFn: async () => (await o(`query HokRightsWindows($pagination: PaginationInput, $status: HokRightsWindowStatus, $titleId: ID) {
402
411
  hokListRightsWindows(pagination: $pagination, status: $status, titleId: $titleId) {
403
412
  items {
404
- ${p}
413
+ ${m}
405
414
  title { id title }
406
415
  }
407
- ${h}
416
+ ${g}
408
417
  }
409
418
  }`, {
410
419
  pagination: r,
@@ -412,106 +421,106 @@ var a = async (e, t, n) => {
412
421
  titleId: t.titleId
413
422
  }, i)).hokListRightsWindows
414
423
  });
415
- }, V = () => {
424
+ }, H = () => {
416
425
  let n = r(), { apiGatewayUrl: i } = e();
417
426
  return t({
418
- mutationFn: async (e) => (await a(`mutation HokCreateRightsWindow($input: HokCreateRightsWindowInput!) {
419
- hokCreateRightsWindow(input: $input) { ${p} }
427
+ mutationFn: async (e) => (await o(`mutation HokCreateRightsWindow($input: HokCreateRightsWindowInput!) {
428
+ hokCreateRightsWindow(input: $input) { ${m} }
420
429
  }`, { input: e }, i)).hokCreateRightsWindow,
421
430
  onSuccess: () => {
422
- n.invalidateQueries({ queryKey: [o, "rights"] });
431
+ n.invalidateQueries({ queryKey: [s, "rights"] });
423
432
  }
424
433
  });
425
- }, H = () => {
434
+ }, U = () => {
426
435
  let n = r(), { apiGatewayUrl: i } = e();
427
436
  return t({
428
- mutationFn: async ({ id: e, status: t }) => (await a(`mutation HokTransitionRightsWindow($id: ID!, $status: HokRightsWindowStatus!) {
429
- hokTransitionRightsWindow(id: $id, status: $status) { ${p} }
437
+ mutationFn: async ({ id: e, status: t }) => (await o(`mutation HokTransitionRightsWindow($id: ID!, $status: HokRightsWindowStatus!) {
438
+ hokTransitionRightsWindow(id: $id, status: $status) { ${m} }
430
439
  }`, {
431
440
  id: e,
432
441
  status: t
433
442
  }, i)).hokTransitionRightsWindow,
434
443
  onSuccess: () => {
435
- n.invalidateQueries({ queryKey: [o, "rights"] });
444
+ n.invalidateQueries({ queryKey: [s, "rights"] });
436
445
  }
437
446
  });
438
- }, U = () => {
447
+ }, W = () => {
439
448
  let n = r(), { apiGatewayUrl: i } = e();
440
449
  return t({
441
- mutationFn: async (e) => (await a("mutation HokRevokeEntitlement($id: ID!) { hokRevokeEntitlement(id: $id) }", { id: e }, i)).hokRevokeEntitlement,
450
+ mutationFn: async (e) => (await o("mutation HokRevokeEntitlement($id: ID!) { hokRevokeEntitlement(id: $id) }", { id: e }, i)).hokRevokeEntitlement,
442
451
  onSuccess: () => {
443
- n.invalidateQueries({ queryKey: [o, "my-entitlements"] });
452
+ n.invalidateQueries({ queryKey: [s, "my-entitlements"] });
444
453
  }
445
454
  });
446
- }, W = (t) => {
455
+ }, G = (t) => {
447
456
  let { apiGatewayUrl: r } = e();
448
457
  return n({
449
458
  queryKey: [
450
- o,
459
+ s,
451
460
  "my-entitlements",
452
461
  t
453
462
  ],
454
- queryFn: async () => (await a("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
463
+ 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
455
464
  });
456
- }, G = (t, r = {
465
+ }, K = (t, r = {
457
466
  limit: 50,
458
467
  offset: 0
459
468
  }) => {
460
469
  let { apiGatewayUrl: i } = e();
461
470
  return n({
462
471
  queryKey: [
463
- o,
472
+ s,
464
473
  "my-lists",
465
474
  t,
466
475
  r
467
476
  ],
468
- queryFn: async () => (await a(`query HokMyLists($kind: HokListKind, $pagination: PaginationInput) {
477
+ queryFn: async () => (await o(`query HokMyLists($kind: HokListKind, $pagination: PaginationInput) {
469
478
  hokMyLists(kind: $kind, pagination: $pagination) {
470
- items { ${m} }
471
- ${h}
479
+ items { ${h} }
480
+ ${g}
472
481
  }
473
482
  }`, {
474
483
  kind: t,
475
484
  pagination: r
476
485
  }, i)).hokMyLists
477
486
  });
478
- }, K = () => {
487
+ }, q = () => {
479
488
  let n = r(), { apiGatewayUrl: i } = e();
480
489
  return t({
481
- mutationFn: async (e) => (await a(`mutation HokCreateList($input: HokCreateListInput!) {
482
- hokCreateList(input: $input) { ${m} }
490
+ mutationFn: async (e) => (await o(`mutation HokCreateList($input: HokCreateListInput!) {
491
+ hokCreateList(input: $input) { ${h} }
483
492
  }`, { input: e }, i)).hokCreateList,
484
493
  onSuccess: () => {
485
- n.invalidateQueries({ queryKey: [o, "my-lists"] });
494
+ n.invalidateQueries({ queryKey: [s, "my-lists"] });
486
495
  }
487
496
  });
488
- }, q = () => {
497
+ }, J = () => {
489
498
  let n = r(), { apiGatewayUrl: i } = e();
490
499
  return t({
491
- mutationFn: async (e) => (await a("mutation HokDeleteList($id: ID!) { hokDeleteList(id: $id) }", { id: e }, i)).hokDeleteList,
500
+ mutationFn: async (e) => (await o("mutation HokDeleteList($id: ID!) { hokDeleteList(id: $id) }", { id: e }, i)).hokDeleteList,
492
501
  onSuccess: () => {
493
- n.invalidateQueries({ queryKey: [o, "my-lists"] });
502
+ n.invalidateQueries({ queryKey: [s, "my-lists"] });
494
503
  }
495
504
  });
496
- }, J = (t) => {
505
+ }, Y = (t) => {
497
506
  let { apiGatewayUrl: r } = e();
498
507
  return n({
499
508
  queryKey: [
500
- o,
509
+ s,
501
510
  "my-watch-progress",
502
511
  t
503
512
  ],
504
- queryFn: async () => (await a("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
513
+ 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
505
514
  });
506
- }, Y = () => {
515
+ }, X = () => {
507
516
  let { apiGatewayUrl: t } = e();
508
517
  return n({
509
- queryKey: [o, "health"],
510
- queryFn: async () => (await a("query HokHealth { hokHealth }", {}, t)).hokHealth,
518
+ queryKey: [s, "health"],
519
+ queryFn: async () => (await o("query HokHealth { hokHealth }", {}, t)).hokHealth,
511
520
  staleTime: 60 * 1e3
512
521
  });
513
522
  };
514
523
  //#endregion
515
- export { F as useApplyToAudition, x as useArchiveTitle, M as useAuditionApplications, j as useAuditionById, A as useAuditions, P as useCloseAudition, N as useCreateAudition, K as useCreateList, T as useCreatePerson, O as useCreateProduction, R as useCreateReview, V as useCreateRightsWindow, C as useCreateStudio, v as useCreateTitle, q as useDeleteList, z as useDeleteReview, Y as useHealth, W as useMyEntitlements, G as useMyLists, J as useMyWatchProgress, w as usePeople, D as useProduction, E as useProductions, L as useReviews, U as useRevokeEntitlement, B as useRightsWindows, I as useScoreApplication, S as useStudios, _ as useTitle, g as useTitles, k as useTransitionProduction, H as useTransitionRightsWindow, b as useTransitionTitle, y as useUpdateTitle };
524
+ export { I as useApplyToAudition, S as useArchiveTitle, N as useAuditionApplications, M as useAuditionById, j as useAuditions, F as useCloseAudition, P as useCreateAudition, q as useCreateList, E as useCreatePerson, k as useCreateProduction, z as useCreateReview, H as useCreateRightsWindow, w as useCreateStudio, y as useCreateTitle, J as useDeleteList, B as useDeleteReview, X as useHealth, G as useMyEntitlements, K as useMyLists, Y as useMyWatchProgress, T as usePeople, O as useProduction, D as useProductions, R as useReviews, W as useRevokeEntitlement, V as useRightsWindows, L as useScoreApplication, C as useStudios, v as useTitle, _ as useTitles, A as useTransitionProduction, U as useTransitionRightsWindow, x as useTransitionTitle, b as useUpdateTitle };
516
525
 
517
526
  //# sourceMappingURL=useHookMoviesApi.js.map