@burdenoff/microfe-hookmovies 2026.626.2 → 2026.628.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.
- package/dist/hookmovies/HookMoviesRoot.js +70 -118
- package/dist/hookmovies/HookMoviesRoot.js.map +1 -1
- package/dist/hookmovies/HookMoviesRoutes.js +63 -183
- package/dist/hookmovies/HookMoviesRoutes.js.map +1 -1
- package/dist/hookmovies/components/MetricsCard.js.map +1 -1
- package/dist/hookmovies/components/Pagination.js +36 -0
- package/dist/hookmovies/components/Pagination.js.map +1 -0
- package/dist/hookmovies/components/StateViews.js +36 -0
- package/dist/hookmovies/components/StateViews.js.map +1 -0
- package/dist/hookmovies/components/StatusBadge.js +26 -14
- package/dist/hookmovies/components/StatusBadge.js.map +1 -1
- package/dist/hookmovies/context/HookMoviesContext.js +22 -30
- package/dist/hookmovies/context/HookMoviesContext.js.map +1 -1
- package/dist/hookmovies/hooks/index.js +1 -0
- package/dist/hookmovies/hooks/useHookMoviesApi.js +463 -169
- package/dist/hookmovies/hooks/useHookMoviesApi.js.map +1 -1
- package/dist/hookmovies/index.js +2 -2
- package/dist/hookmovies/pages/HomePage.js +206 -885
- package/dist/hookmovies/pages/HomePage.js.map +1 -1
- package/dist/hookmovies/pages/auditions/AuditionCreatePage.js +206 -0
- package/dist/hookmovies/pages/auditions/AuditionCreatePage.js.map +1 -0
- package/dist/hookmovies/pages/auditions/AuditionDetailPage.js +266 -0
- package/dist/hookmovies/pages/auditions/AuditionDetailPage.js.map +1 -0
- package/dist/hookmovies/pages/auditions/AuditionsPage.js +137 -0
- package/dist/hookmovies/pages/auditions/AuditionsPage.js.map +1 -0
- package/dist/hookmovies/pages/catalog/PeoplePage.js +175 -0
- package/dist/hookmovies/pages/catalog/PeoplePage.js.map +1 -0
- package/dist/hookmovies/pages/catalog/StudiosPage.js +173 -0
- package/dist/hookmovies/pages/catalog/StudiosPage.js.map +1 -0
- package/dist/hookmovies/pages/catalog/TitleCreatePage.js +251 -0
- package/dist/hookmovies/pages/catalog/TitleCreatePage.js.map +1 -0
- package/dist/hookmovies/pages/catalog/TitleDetailPage.js +323 -0
- package/dist/hookmovies/pages/catalog/TitleDetailPage.js.map +1 -0
- package/dist/hookmovies/pages/catalog/TitlesPage.js +158 -0
- package/dist/hookmovies/pages/catalog/TitlesPage.js.map +1 -0
- package/dist/hookmovies/pages/distribution/RightsWindowsPage.js +294 -0
- package/dist/hookmovies/pages/distribution/RightsWindowsPage.js.map +1 -0
- package/dist/hookmovies/pages/engagement/ReviewsPage.js +242 -0
- package/dist/hookmovies/pages/engagement/ReviewsPage.js.map +1 -0
- package/dist/hookmovies/pages/library/EntitlementsPage.js +90 -0
- package/dist/hookmovies/pages/library/EntitlementsPage.js.map +1 -0
- package/dist/hookmovies/pages/library/ListsPage.js +209 -0
- package/dist/hookmovies/pages/library/ListsPage.js.map +1 -0
- package/dist/hookmovies/pages/productions/ProductionCreatePage.js +204 -0
- package/dist/hookmovies/pages/productions/ProductionCreatePage.js.map +1 -0
- package/dist/hookmovies/pages/productions/ProductionDetailPage.js +234 -0
- package/dist/hookmovies/pages/productions/ProductionDetailPage.js.map +1 -0
- package/dist/hookmovies/pages/productions/ProductionsPage.js +135 -0
- package/dist/hookmovies/pages/productions/ProductionsPage.js.map +1 -0
- package/dist/hookmovies/utils/formatters.js +14 -9
- package/dist/hookmovies/utils/formatters.js.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/hookmovies/components/InvestmentCard.js +0 -97
- package/dist/hookmovies/components/InvestmentCard.js.map +0 -1
- package/dist/hookmovies/mocks/data.js +0 -1517
- package/dist/hookmovies/mocks/data.js.map +0 -1
- package/dist/hookmovies/mocks/users.js +0 -34
- package/dist/hookmovies/mocks/users.js.map +0 -1
- package/dist/hookmovies/pages/admin/AdminAnalyticsPage.js +0 -646
- package/dist/hookmovies/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/hookmovies/pages/admin/AdminDashboard.js +0 -671
- package/dist/hookmovies/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/hookmovies/pages/admin/AdminFinancialPage.js +0 -422
- package/dist/hookmovies/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/hookmovies/pages/admin/AdminOrdersPage.js +0 -661
- package/dist/hookmovies/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/hookmovies/pages/admin/AdminProfilePage.js +0 -262
- package/dist/hookmovies/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/hookmovies/pages/admin/AdminSettingsPage.js +0 -650
- package/dist/hookmovies/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/hookmovies/pages/admin/CartManagementPage.js +0 -869
- package/dist/hookmovies/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/hookmovies/pages/admin/UserManagementPage.js +0 -893
- package/dist/hookmovies/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/AnalyticsDashboard.js +0 -836
- package/dist/hookmovies/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/BusinessSettingsPage.js +0 -704
- package/dist/hookmovies/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/CartOwnerDashboard.js +0 -801
- package/dist/hookmovies/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/CartOwnerProfilePage.js +0 -888
- package/dist/hookmovies/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/CartServiceConfigPage.js +0 -635
- package/dist/hookmovies/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/InventoryManagementPage.js +0 -912
- package/dist/hookmovies/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/OrderManagementPage.js +0 -913
- package/dist/hookmovies/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/hookmovies/pages/cart-owner/StaffManagementPage.js +0 -832
- package/dist/hookmovies/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/hookmovies/pages/common/HelpSupportPage.js +0 -1321
- package/dist/hookmovies/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/hookmovies/pages/common/NotificationCenterPage.js +0 -666
- package/dist/hookmovies/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/hookmovies/pages/common/SettingsPage.js +0 -965
- package/dist/hookmovies/pages/common/SettingsPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/BookingDetailsPage.js +0 -622
- package/dist/hookmovies/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/CartDetailPage.js +0 -653
- package/dist/hookmovies/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/CartDiscoveryPage.js +0 -557
- package/dist/hookmovies/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/CheckoutPage.js +0 -526
- package/dist/hookmovies/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/CustomerDashboard.js +0 -537
- package/dist/hookmovies/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/hookmovies/pages/customer/CustomerProfilePage.js +0 -623
- package/dist/hookmovies/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/hookmovies/pages/customer/DirectServiceBookingPage.js +0 -627
- package/dist/hookmovies/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/FavoritesPage.js +0 -479
- package/dist/hookmovies/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/OrderHistoryPage.js +0 -442
- package/dist/hookmovies/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/OrderTrackingPage.js +0 -390
- package/dist/hookmovies/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/PaymentMethodsPage.js +0 -490
- package/dist/hookmovies/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/ReviewsPage.js +0 -607
- package/dist/hookmovies/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/hookmovies/pages/customer/SavedAddressesPage.js +0 -450
- package/dist/hookmovies/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestmentDetailsPage.js +0 -880
- package/dist/hookmovies/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestmentOpportunitiesPage.js +0 -940
- package/dist/hookmovies/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestorAnalyticsPage.js +0 -683
- package/dist/hookmovies/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestorDashboard.js +0 -457
- package/dist/hookmovies/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestorInvestmentsPage.js +0 -401
- package/dist/hookmovies/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestorPortfolioPage.js +0 -571
- package/dist/hookmovies/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/hookmovies/pages/investor/InvestorProfilePage.js +0 -1067
- package/dist/hookmovies/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/hookmovies/pages/worker/TaskDetailsPage.js +0 -528
- package/dist/hookmovies/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/hookmovies/pages/worker/WorkerDashboard.js +0 -670
- package/dist/hookmovies/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/hookmovies/pages/worker/WorkerOrdersPage.js +0 -676
- package/dist/hookmovies/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/hookmovies/pages/worker/WorkerProfilePage.js +0 -689
- package/dist/hookmovies/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/hookmovies/pages/worker/WorkerSchedulePage.js +0 -579
- package/dist/hookmovies/pages/worker/WorkerSchedulePage.js.map +0 -1
- package/dist/hookmovies/store/hookmoviesStore.js +0 -38
- package/dist/hookmovies/store/hookmoviesStore.js.map +0 -1
- package/dist/hookmovies/store/index.js +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useHookMovies as e } from "../context/HookMoviesContext.js";
|
|
2
2
|
import "../context/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { graphqlFetch as a } from "@burdenoff/fe-libs/shared/graphql";
|
|
3
|
+
import { useMutation as t, useQuery as n, useQueryClient as r } from "@tanstack/react-query";
|
|
4
|
+
import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
|
|
6
5
|
//#region src/hookmovies/hooks/useHookMoviesApi.ts
|
|
7
|
-
var
|
|
8
|
-
let r = await
|
|
6
|
+
var a = async (e, t, n) => {
|
|
7
|
+
let r = await i({
|
|
9
8
|
gateway: "workspace",
|
|
10
9
|
baseUrl: n,
|
|
11
10
|
query: e,
|
|
@@ -15,209 +14,504 @@ var o = async (e, t, n) => {
|
|
|
15
14
|
if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
|
|
16
15
|
if (!r.data) throw Error("GraphQL response did not include data");
|
|
17
16
|
return r.data;
|
|
18
|
-
}, s = (t
|
|
19
|
-
|
|
20
|
-
|
|
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 = {
|
|
18
|
+
limit: 50,
|
|
19
|
+
offset: 0
|
|
20
|
+
}) => {
|
|
21
|
+
let { apiGatewayUrl: i } = e();
|
|
22
|
+
return n({
|
|
21
23
|
queryKey: [
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
t
|
|
24
|
+
o,
|
|
25
|
+
"titles",
|
|
26
|
+
t,
|
|
27
|
+
r
|
|
25
28
|
],
|
|
26
|
-
queryFn: async () => (await
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
queryFn: async () => (await a(`query HokTitles($pagination: PaginationInput, $status: HokTitleStatus, $type: HokTitleType, $studioId: ID) {
|
|
30
|
+
hokListTitles(pagination: $pagination, status: $status, type: $type, studioId: $studioId) {
|
|
31
|
+
items { ${s} }
|
|
32
|
+
${h}
|
|
33
|
+
}
|
|
34
|
+
}`, {
|
|
35
|
+
pagination: r,
|
|
36
|
+
status: t.status,
|
|
37
|
+
type: t.type,
|
|
38
|
+
studioId: t.studioId
|
|
39
|
+
}, i)).hokListTitles
|
|
40
|
+
});
|
|
41
|
+
}, _ = (t) => {
|
|
42
|
+
let { apiGatewayUrl: r } = e();
|
|
43
|
+
return n({
|
|
40
44
|
queryKey: [
|
|
41
|
-
|
|
42
|
-
"
|
|
45
|
+
o,
|
|
46
|
+
"title",
|
|
43
47
|
t
|
|
44
48
|
],
|
|
45
|
-
queryFn: async () => (await
|
|
49
|
+
queryFn: async () => (await a(`query HokTitle($id: ID!) {
|
|
50
|
+
hokTitle(id: $id) {
|
|
51
|
+
${s}
|
|
52
|
+
studio { id name }
|
|
53
|
+
credits {
|
|
54
|
+
id personId titleId role characterName billingOrder
|
|
55
|
+
person { id name knownFor }
|
|
56
|
+
}
|
|
57
|
+
seasons { id name number synopsis }
|
|
58
|
+
episodes { id name number seasonId synopsis runtimeMinutes airDate }
|
|
59
|
+
}
|
|
60
|
+
}`, { id: t }, r)).hokTitle,
|
|
46
61
|
enabled: !!t
|
|
47
62
|
});
|
|
48
|
-
},
|
|
49
|
-
let { apiGatewayUrl:
|
|
50
|
-
return
|
|
63
|
+
}, v = () => {
|
|
64
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
65
|
+
return t({
|
|
66
|
+
mutationFn: async (e) => (await a(`mutation HokCreateTitle($input: HokCreateTitleInput!) {
|
|
67
|
+
hokCreateTitle(input: $input) { ${s} }
|
|
68
|
+
}`, { input: e }, i)).hokCreateTitle,
|
|
69
|
+
onSuccess: () => {
|
|
70
|
+
n.invalidateQueries({ queryKey: [o, "titles"] });
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}, y = () => {
|
|
74
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
75
|
+
return t({
|
|
76
|
+
mutationFn: async ({ id: e, input: t }) => (await a(`mutation HokUpdateTitle($id: ID!, $input: HokUpdateTitleInput!) {
|
|
77
|
+
hokUpdateTitle(id: $id, input: $input) { ${s} }
|
|
78
|
+
}`, {
|
|
79
|
+
id: e,
|
|
80
|
+
input: t
|
|
81
|
+
}, i)).hokUpdateTitle,
|
|
82
|
+
onSuccess: (e) => {
|
|
83
|
+
n.invalidateQueries({ queryKey: [o, "titles"] }), n.invalidateQueries({ queryKey: [
|
|
84
|
+
o,
|
|
85
|
+
"title",
|
|
86
|
+
e.id
|
|
87
|
+
] });
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}, b = () => {
|
|
91
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
92
|
+
return t({
|
|
93
|
+
mutationFn: async ({ id: e, status: t }) => (await a(`mutation HokTransitionTitle($id: ID!, $status: HokTitleStatus!) {
|
|
94
|
+
hokTransitionTitle(id: $id, status: $status) { ${s} }
|
|
95
|
+
}`, {
|
|
96
|
+
id: e,
|
|
97
|
+
status: t
|
|
98
|
+
}, i)).hokTransitionTitle,
|
|
99
|
+
onSuccess: (e) => {
|
|
100
|
+
n.invalidateQueries({ queryKey: [o, "titles"] }), n.invalidateQueries({ queryKey: [
|
|
101
|
+
o,
|
|
102
|
+
"title",
|
|
103
|
+
e.id
|
|
104
|
+
] });
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}, x = () => {
|
|
108
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
109
|
+
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"] });
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}, S = (t = {
|
|
116
|
+
limit: 50,
|
|
117
|
+
offset: 0
|
|
118
|
+
}) => {
|
|
119
|
+
let { apiGatewayUrl: r } = e();
|
|
120
|
+
return n({
|
|
51
121
|
queryKey: [
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
t
|
|
55
|
-
t.customerId
|
|
122
|
+
o,
|
|
123
|
+
"studios",
|
|
124
|
+
t
|
|
56
125
|
],
|
|
57
|
-
queryFn: async () => (await
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
id: e.id,
|
|
64
|
-
name: e.name,
|
|
65
|
-
quantity: e.quantity,
|
|
66
|
-
price: e.unitPrice,
|
|
67
|
-
customizations: e.customizations
|
|
68
|
-
})),
|
|
69
|
-
total: e.total,
|
|
70
|
-
subtotal: e.subtotal,
|
|
71
|
-
taxes: e.tax,
|
|
72
|
-
deliveryFee: e.deliveryFee,
|
|
73
|
-
discount: e.discount,
|
|
74
|
-
status: e.status.toLowerCase(),
|
|
75
|
-
orderDate: e.createdAt,
|
|
76
|
-
deliveryAddress: e.deliveryAddress,
|
|
77
|
-
paymentMethod: e.paymentMethod || "Cash",
|
|
78
|
-
paymentStatus: e.paymentStatus.toLowerCase(),
|
|
79
|
-
timeline: e.timeline || []
|
|
80
|
-
}))
|
|
81
|
-
});
|
|
82
|
-
}, u = () => {
|
|
83
|
-
let { apiGatewayUrl: t } = e();
|
|
84
|
-
return r({
|
|
85
|
-
queryKey: ["hookmovies", "dashboard-stats"],
|
|
86
|
-
queryFn: async () => (await o("query DashboardStats { hookmoviesDashboardStats { totalOrders totalRevenue activeProviders activeCustomers avgRating pendingOrders } }", {}, t)).hookmoviesDashboardStats
|
|
126
|
+
queryFn: async () => (await a(`query HokStudios($pagination: PaginationInput) {
|
|
127
|
+
hokListStudios(pagination: $pagination) {
|
|
128
|
+
items { ${c} }
|
|
129
|
+
${h}
|
|
130
|
+
}
|
|
131
|
+
}`, { pagination: t }, r)).hokListStudios
|
|
87
132
|
});
|
|
88
|
-
},
|
|
89
|
-
let { apiGatewayUrl:
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
businessPlan: "",
|
|
105
|
-
financialProjections: [],
|
|
106
|
-
documents: [],
|
|
107
|
-
investors: [],
|
|
108
|
-
status: e.status.toLowerCase(),
|
|
109
|
-
createdAt: e.createdAt,
|
|
110
|
-
expiresAt: e.expiresAt
|
|
111
|
-
}))
|
|
112
|
-
});
|
|
113
|
-
}, f = (t) => {
|
|
114
|
-
let { apiGatewayUrl: n } = e();
|
|
115
|
-
return r({
|
|
133
|
+
}, C = () => {
|
|
134
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
135
|
+
return t({
|
|
136
|
+
mutationFn: async (e) => (await a(`mutation HokCreateStudio($input: HokCreateStudioInput!) {
|
|
137
|
+
hokCreateStudio(input: $input) { ${c} }
|
|
138
|
+
}`, { input: e }, i)).hokCreateStudio,
|
|
139
|
+
onSuccess: () => {
|
|
140
|
+
n.invalidateQueries({ queryKey: [o, "studios"] });
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}, w = (t = {
|
|
144
|
+
limit: 50,
|
|
145
|
+
offset: 0
|
|
146
|
+
}) => {
|
|
147
|
+
let { apiGatewayUrl: r } = e();
|
|
148
|
+
return n({
|
|
116
149
|
queryKey: [
|
|
117
|
-
|
|
118
|
-
"
|
|
150
|
+
o,
|
|
151
|
+
"people",
|
|
119
152
|
t
|
|
120
153
|
],
|
|
121
|
-
queryFn: async () => (await
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
154
|
+
queryFn: async () => (await a(`query HokPeople($pagination: PaginationInput) {
|
|
155
|
+
hokListPeople(pagination: $pagination) {
|
|
156
|
+
items { ${l} }
|
|
157
|
+
${h}
|
|
158
|
+
}
|
|
159
|
+
}`, { pagination: t }, r)).hokListPeople
|
|
160
|
+
});
|
|
161
|
+
}, T = () => {
|
|
162
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
163
|
+
return t({
|
|
164
|
+
mutationFn: async (e) => (await a(`mutation HokCreatePerson($input: HokCreatePersonInput!) {
|
|
165
|
+
hokCreatePerson(input: $input) { ${l} }
|
|
166
|
+
}`, { input: e }, i)).hokCreatePerson,
|
|
167
|
+
onSuccess: () => {
|
|
168
|
+
n.invalidateQueries({ queryKey: [o, "people"] });
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
}, E = (t = {}, r = {
|
|
172
|
+
limit: 50,
|
|
173
|
+
offset: 0
|
|
174
|
+
}) => {
|
|
175
|
+
let { apiGatewayUrl: i } = e();
|
|
176
|
+
return n({
|
|
177
|
+
queryKey: [
|
|
178
|
+
o,
|
|
179
|
+
"productions",
|
|
180
|
+
t,
|
|
181
|
+
r
|
|
182
|
+
],
|
|
183
|
+
queryFn: async () => (await a(`query HokProductions($pagination: PaginationInput, $status: HokProductionStatus, $studioId: ID) {
|
|
184
|
+
hokListProductions(pagination: $pagination, status: $status, studioId: $studioId) {
|
|
185
|
+
items { ${u} }
|
|
186
|
+
${h}
|
|
187
|
+
}
|
|
188
|
+
}`, {
|
|
189
|
+
pagination: r,
|
|
190
|
+
status: t.status,
|
|
191
|
+
studioId: t.studioId
|
|
192
|
+
}, i)).hokListProductions
|
|
193
|
+
});
|
|
194
|
+
}, D = (t) => {
|
|
195
|
+
let { apiGatewayUrl: r } = e();
|
|
196
|
+
return n({
|
|
197
|
+
queryKey: [
|
|
198
|
+
o,
|
|
199
|
+
"production",
|
|
200
|
+
t
|
|
201
|
+
],
|
|
202
|
+
queryFn: async () => (await a(`query HokProduction($id: ID!) {
|
|
203
|
+
hokProduction(id: $id) {
|
|
204
|
+
${u}
|
|
205
|
+
auditions {
|
|
206
|
+
id roleName status isMinorRole payMinorUnits currency location language submissionDeadline
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}`, { id: t }, r)).hokProduction,
|
|
132
210
|
enabled: !!t
|
|
133
211
|
});
|
|
134
|
-
},
|
|
135
|
-
let { apiGatewayUrl:
|
|
136
|
-
return
|
|
212
|
+
}, O = () => {
|
|
213
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
214
|
+
return t({
|
|
215
|
+
mutationFn: async (e) => (await a(`mutation HokCreateProduction($input: HokCreateProductionInput!) {
|
|
216
|
+
hokCreateProduction(input: $input) { ${u} }
|
|
217
|
+
}`, { input: e }, i)).hokCreateProduction,
|
|
218
|
+
onSuccess: () => {
|
|
219
|
+
n.invalidateQueries({ queryKey: [o, "productions"] });
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}, k = () => {
|
|
223
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
224
|
+
return t({
|
|
225
|
+
mutationFn: async ({ id: e, status: t }) => (await a(`mutation HokTransitionProduction($id: ID!, $status: HokProductionStatus!) {
|
|
226
|
+
hokTransitionProduction(id: $id, status: $status) { ${u} }
|
|
227
|
+
}`, {
|
|
228
|
+
id: e,
|
|
229
|
+
status: t
|
|
230
|
+
}, i)).hokTransitionProduction,
|
|
231
|
+
onSuccess: (e) => {
|
|
232
|
+
n.invalidateQueries({ queryKey: [o, "productions"] }), n.invalidateQueries({ queryKey: [
|
|
233
|
+
o,
|
|
234
|
+
"production",
|
|
235
|
+
e.id
|
|
236
|
+
] });
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}, A = (t = {}, r = {
|
|
240
|
+
limit: 50,
|
|
241
|
+
offset: 0
|
|
242
|
+
}) => {
|
|
243
|
+
let { apiGatewayUrl: i } = e();
|
|
244
|
+
return n({
|
|
245
|
+
queryKey: [
|
|
246
|
+
o,
|
|
247
|
+
"auditions",
|
|
248
|
+
t,
|
|
249
|
+
r
|
|
250
|
+
],
|
|
251
|
+
queryFn: async () => (await a(`query HokAuditions($pagination: PaginationInput, $status: HokAuditionStatus, $productionId: ID) {
|
|
252
|
+
hokListAuditions(pagination: $pagination, status: $status, productionId: $productionId) {
|
|
253
|
+
items {
|
|
254
|
+
${d}
|
|
255
|
+
production { id title }
|
|
256
|
+
}
|
|
257
|
+
${h}
|
|
258
|
+
}
|
|
259
|
+
}`, {
|
|
260
|
+
pagination: r,
|
|
261
|
+
status: t.status,
|
|
262
|
+
productionId: t.productionId
|
|
263
|
+
}, i)).hokListAuditions
|
|
264
|
+
});
|
|
265
|
+
}, j = (t) => {
|
|
266
|
+
let { apiGatewayUrl: r } = e();
|
|
267
|
+
return n({
|
|
137
268
|
queryKey: [
|
|
138
|
-
|
|
139
|
-
"
|
|
269
|
+
o,
|
|
270
|
+
"audition-by-id",
|
|
140
271
|
t
|
|
141
272
|
],
|
|
142
|
-
queryFn: async () => (await
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
customerName: e.customerName,
|
|
155
|
-
customerPhone: e.customerPhone,
|
|
156
|
-
deliveryAddress: e.order?.deliveryAddress,
|
|
157
|
-
earnings: e.earnings,
|
|
158
|
-
distance: e.distance,
|
|
159
|
-
notes: e.notes
|
|
160
|
-
})),
|
|
273
|
+
queryFn: async () => (await a(`query HokAuditionLookup($pagination: PaginationInput) {
|
|
274
|
+
hokListAuditions(pagination: $pagination) {
|
|
275
|
+
items {
|
|
276
|
+
${d}
|
|
277
|
+
production { id title }
|
|
278
|
+
}
|
|
279
|
+
${h}
|
|
280
|
+
}
|
|
281
|
+
}`, { pagination: {
|
|
282
|
+
limit: 200,
|
|
283
|
+
offset: 0
|
|
284
|
+
} }, r)).hokListAuditions.items.find((e) => e.id === t) ?? null,
|
|
161
285
|
enabled: !!t
|
|
162
286
|
});
|
|
163
|
-
},
|
|
164
|
-
let { apiGatewayUrl:
|
|
165
|
-
return
|
|
287
|
+
}, M = (t) => {
|
|
288
|
+
let { apiGatewayUrl: r } = e();
|
|
289
|
+
return n({
|
|
166
290
|
queryKey: [
|
|
167
|
-
|
|
168
|
-
"
|
|
291
|
+
o,
|
|
292
|
+
"applications",
|
|
169
293
|
t
|
|
170
294
|
],
|
|
171
|
-
queryFn: async () => (await
|
|
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,
|
|
172
296
|
enabled: !!t
|
|
173
297
|
});
|
|
174
|
-
},
|
|
175
|
-
let
|
|
298
|
+
}, N = () => {
|
|
299
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
300
|
+
return t({
|
|
301
|
+
mutationFn: async (e) => (await a(`mutation HokCreateAudition($input: HokCreateAuditionInput!) {
|
|
302
|
+
hokCreateAudition(input: $input) { ${d} }
|
|
303
|
+
}`, { input: e }, i)).hokCreateAudition,
|
|
304
|
+
onSuccess: () => {
|
|
305
|
+
n.invalidateQueries({ queryKey: [o, "auditions"] });
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}, P = () => {
|
|
309
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
310
|
+
return t({
|
|
311
|
+
mutationFn: async (e) => (await a(`mutation HokCloseAudition($id: ID!) {
|
|
312
|
+
hokCloseAudition(id: $id) { ${d} }
|
|
313
|
+
}`, { id: e }, i)).hokCloseAudition,
|
|
314
|
+
onSuccess: () => {
|
|
315
|
+
n.invalidateQueries({ queryKey: [o, "auditions"] });
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}, F = () => {
|
|
319
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
320
|
+
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,
|
|
322
|
+
onSuccess: (e) => {
|
|
323
|
+
n.invalidateQueries({ queryKey: [
|
|
324
|
+
o,
|
|
325
|
+
"applications",
|
|
326
|
+
e.auditionId
|
|
327
|
+
] });
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
}, I = () => {
|
|
331
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
332
|
+
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 }", {
|
|
334
|
+
id: e,
|
|
335
|
+
score: t
|
|
336
|
+
}, i)).hokScoreApplication,
|
|
337
|
+
onSuccess: (e) => {
|
|
338
|
+
n.invalidateQueries({ queryKey: [
|
|
339
|
+
o,
|
|
340
|
+
"applications",
|
|
341
|
+
e.auditionId
|
|
342
|
+
] });
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
}, L = (t = {}, r = {
|
|
346
|
+
limit: 50,
|
|
347
|
+
offset: 0
|
|
348
|
+
}) => {
|
|
349
|
+
let { apiGatewayUrl: i } = e();
|
|
176
350
|
return n({
|
|
177
|
-
|
|
351
|
+
queryKey: [
|
|
352
|
+
o,
|
|
353
|
+
"reviews",
|
|
354
|
+
t,
|
|
355
|
+
r
|
|
356
|
+
],
|
|
357
|
+
queryFn: async () => (await a(`query HokReviews($pagination: PaginationInput, $status: HokReviewStatus, $titleId: ID) {
|
|
358
|
+
hokListReviews(pagination: $pagination, status: $status, titleId: $titleId) {
|
|
359
|
+
items {
|
|
360
|
+
${f}
|
|
361
|
+
title { id title }
|
|
362
|
+
}
|
|
363
|
+
${h}
|
|
364
|
+
}
|
|
365
|
+
}`, {
|
|
366
|
+
pagination: r,
|
|
367
|
+
status: t.status,
|
|
368
|
+
titleId: t.titleId
|
|
369
|
+
}, i)).hokListReviews
|
|
370
|
+
});
|
|
371
|
+
}, R = () => {
|
|
372
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
373
|
+
return t({
|
|
374
|
+
mutationFn: async (e) => (await a(`mutation HokCreateReview($input: HokCreateReviewInput!) {
|
|
375
|
+
hokCreateReview(input: $input) { ${f} }
|
|
376
|
+
}`, { input: e }, i)).hokCreateReview,
|
|
377
|
+
onSuccess: () => {
|
|
378
|
+
n.invalidateQueries({ queryKey: [o, "reviews"] });
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}, z = () => {
|
|
382
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
383
|
+
return t({
|
|
384
|
+
mutationFn: async (e) => (await a("mutation HokDeleteReview($id: ID!) { hokDeleteReview(id: $id) }", { id: e }, i)).hokDeleteReview,
|
|
178
385
|
onSuccess: () => {
|
|
179
|
-
|
|
386
|
+
n.invalidateQueries({ queryKey: [o, "reviews"] });
|
|
180
387
|
}
|
|
181
388
|
});
|
|
182
|
-
},
|
|
183
|
-
|
|
389
|
+
}, B = (t = {}, r = {
|
|
390
|
+
limit: 50,
|
|
391
|
+
offset: 0
|
|
392
|
+
}) => {
|
|
393
|
+
let { apiGatewayUrl: i } = e();
|
|
184
394
|
return n({
|
|
185
|
-
|
|
186
|
-
|
|
395
|
+
queryKey: [
|
|
396
|
+
o,
|
|
397
|
+
"rights",
|
|
398
|
+
t,
|
|
399
|
+
r
|
|
400
|
+
],
|
|
401
|
+
queryFn: async () => (await a(`query HokRightsWindows($pagination: PaginationInput, $status: HokRightsWindowStatus, $titleId: ID) {
|
|
402
|
+
hokListRightsWindows(pagination: $pagination, status: $status, titleId: $titleId) {
|
|
403
|
+
items {
|
|
404
|
+
${p}
|
|
405
|
+
title { id title }
|
|
406
|
+
}
|
|
407
|
+
${h}
|
|
408
|
+
}
|
|
409
|
+
}`, {
|
|
410
|
+
pagination: r,
|
|
411
|
+
status: t.status,
|
|
412
|
+
titleId: t.titleId
|
|
413
|
+
}, i)).hokListRightsWindows
|
|
414
|
+
});
|
|
415
|
+
}, V = () => {
|
|
416
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
417
|
+
return t({
|
|
418
|
+
mutationFn: async (e) => (await a(`mutation HokCreateRightsWindow($input: HokCreateRightsWindowInput!) {
|
|
419
|
+
hokCreateRightsWindow(input: $input) { ${p} }
|
|
420
|
+
}`, { input: e }, i)).hokCreateRightsWindow,
|
|
421
|
+
onSuccess: () => {
|
|
422
|
+
n.invalidateQueries({ queryKey: [o, "rights"] });
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
}, H = () => {
|
|
426
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
427
|
+
return t({
|
|
428
|
+
mutationFn: async ({ id: e, status: t }) => (await a(`mutation HokTransitionRightsWindow($id: ID!, $status: HokRightsWindowStatus!) {
|
|
429
|
+
hokTransitionRightsWindow(id: $id, status: $status) { ${p} }
|
|
430
|
+
}`, {
|
|
431
|
+
id: e,
|
|
187
432
|
status: t
|
|
188
|
-
},
|
|
433
|
+
}, i)).hokTransitionRightsWindow,
|
|
189
434
|
onSuccess: () => {
|
|
190
|
-
|
|
435
|
+
n.invalidateQueries({ queryKey: [o, "rights"] });
|
|
191
436
|
}
|
|
192
437
|
});
|
|
193
|
-
},
|
|
194
|
-
let
|
|
438
|
+
}, U = () => {
|
|
439
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
440
|
+
return t({
|
|
441
|
+
mutationFn: async (e) => (await a("mutation HokRevokeEntitlement($id: ID!) { hokRevokeEntitlement(id: $id) }", { id: e }, i)).hokRevokeEntitlement,
|
|
442
|
+
onSuccess: () => {
|
|
443
|
+
n.invalidateQueries({ queryKey: [o, "my-entitlements"] });
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
}, W = (t) => {
|
|
447
|
+
let { apiGatewayUrl: r } = e();
|
|
448
|
+
return n({
|
|
449
|
+
queryKey: [
|
|
450
|
+
o,
|
|
451
|
+
"my-entitlements",
|
|
452
|
+
t
|
|
453
|
+
],
|
|
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
|
|
455
|
+
});
|
|
456
|
+
}, G = (t, r = {
|
|
457
|
+
limit: 50,
|
|
458
|
+
offset: 0
|
|
459
|
+
}) => {
|
|
460
|
+
let { apiGatewayUrl: i } = e();
|
|
195
461
|
return n({
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
462
|
+
queryKey: [
|
|
463
|
+
o,
|
|
464
|
+
"my-lists",
|
|
465
|
+
t,
|
|
466
|
+
r
|
|
467
|
+
],
|
|
468
|
+
queryFn: async () => (await a(`query HokMyLists($kind: HokListKind, $pagination: PaginationInput) {
|
|
469
|
+
hokMyLists(kind: $kind, pagination: $pagination) {
|
|
470
|
+
items { ${m} }
|
|
471
|
+
${h}
|
|
472
|
+
}
|
|
473
|
+
}`, {
|
|
474
|
+
kind: t,
|
|
475
|
+
pagination: r
|
|
476
|
+
}, i)).hokMyLists
|
|
477
|
+
});
|
|
478
|
+
}, K = () => {
|
|
479
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
480
|
+
return t({
|
|
481
|
+
mutationFn: async (e) => (await a(`mutation HokCreateList($input: HokCreateListInput!) {
|
|
482
|
+
hokCreateList(input: $input) { ${m} }
|
|
483
|
+
}`, { input: e }, i)).hokCreateList,
|
|
200
484
|
onSuccess: () => {
|
|
201
|
-
|
|
485
|
+
n.invalidateQueries({ queryKey: [o, "my-lists"] });
|
|
202
486
|
}
|
|
203
487
|
});
|
|
204
|
-
},
|
|
205
|
-
let
|
|
206
|
-
return t(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
488
|
+
}, q = () => {
|
|
489
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
490
|
+
return t({
|
|
491
|
+
mutationFn: async (e) => (await a("mutation HokDeleteList($id: ID!) { hokDeleteList(id: $id) }", { id: e }, i)).hokDeleteList,
|
|
492
|
+
onSuccess: () => {
|
|
493
|
+
n.invalidateQueries({ queryKey: [o, "my-lists"] });
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
}, J = (t) => {
|
|
497
|
+
let { apiGatewayUrl: r } = e();
|
|
498
|
+
return n({
|
|
499
|
+
queryKey: [
|
|
500
|
+
o,
|
|
501
|
+
"my-watch-progress",
|
|
502
|
+
t
|
|
503
|
+
],
|
|
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
|
|
505
|
+
});
|
|
506
|
+
}, Y = () => {
|
|
507
|
+
let { apiGatewayUrl: t } = e();
|
|
508
|
+
return n({
|
|
509
|
+
queryKey: [o, "health"],
|
|
510
|
+
queryFn: async () => (await a("query HokHealth { hokHealth }", {}, t)).hokHealth,
|
|
511
|
+
staleTime: 60 * 1e3
|
|
512
|
+
});
|
|
219
513
|
};
|
|
220
514
|
//#endregion
|
|
221
|
-
export {
|
|
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 };
|
|
222
516
|
|
|
223
517
|
//# sourceMappingURL=useHookMoviesApi.js.map
|