@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.
Files changed (150) hide show
  1. package/dist/hookmovies/HookMoviesRoot.js +70 -118
  2. package/dist/hookmovies/HookMoviesRoot.js.map +1 -1
  3. package/dist/hookmovies/HookMoviesRoutes.js +63 -183
  4. package/dist/hookmovies/HookMoviesRoutes.js.map +1 -1
  5. package/dist/hookmovies/components/MetricsCard.js.map +1 -1
  6. package/dist/hookmovies/components/Pagination.js +36 -0
  7. package/dist/hookmovies/components/Pagination.js.map +1 -0
  8. package/dist/hookmovies/components/StateViews.js +36 -0
  9. package/dist/hookmovies/components/StateViews.js.map +1 -0
  10. package/dist/hookmovies/components/StatusBadge.js +26 -14
  11. package/dist/hookmovies/components/StatusBadge.js.map +1 -1
  12. package/dist/hookmovies/context/HookMoviesContext.js +22 -30
  13. package/dist/hookmovies/context/HookMoviesContext.js.map +1 -1
  14. package/dist/hookmovies/hooks/index.js +1 -0
  15. package/dist/hookmovies/hooks/useHookMoviesApi.js +463 -169
  16. package/dist/hookmovies/hooks/useHookMoviesApi.js.map +1 -1
  17. package/dist/hookmovies/index.js +2 -2
  18. package/dist/hookmovies/pages/HomePage.js +206 -885
  19. package/dist/hookmovies/pages/HomePage.js.map +1 -1
  20. package/dist/hookmovies/pages/auditions/AuditionCreatePage.js +206 -0
  21. package/dist/hookmovies/pages/auditions/AuditionCreatePage.js.map +1 -0
  22. package/dist/hookmovies/pages/auditions/AuditionDetailPage.js +266 -0
  23. package/dist/hookmovies/pages/auditions/AuditionDetailPage.js.map +1 -0
  24. package/dist/hookmovies/pages/auditions/AuditionsPage.js +137 -0
  25. package/dist/hookmovies/pages/auditions/AuditionsPage.js.map +1 -0
  26. package/dist/hookmovies/pages/catalog/PeoplePage.js +175 -0
  27. package/dist/hookmovies/pages/catalog/PeoplePage.js.map +1 -0
  28. package/dist/hookmovies/pages/catalog/StudiosPage.js +173 -0
  29. package/dist/hookmovies/pages/catalog/StudiosPage.js.map +1 -0
  30. package/dist/hookmovies/pages/catalog/TitleCreatePage.js +251 -0
  31. package/dist/hookmovies/pages/catalog/TitleCreatePage.js.map +1 -0
  32. package/dist/hookmovies/pages/catalog/TitleDetailPage.js +323 -0
  33. package/dist/hookmovies/pages/catalog/TitleDetailPage.js.map +1 -0
  34. package/dist/hookmovies/pages/catalog/TitlesPage.js +158 -0
  35. package/dist/hookmovies/pages/catalog/TitlesPage.js.map +1 -0
  36. package/dist/hookmovies/pages/distribution/RightsWindowsPage.js +294 -0
  37. package/dist/hookmovies/pages/distribution/RightsWindowsPage.js.map +1 -0
  38. package/dist/hookmovies/pages/engagement/ReviewsPage.js +242 -0
  39. package/dist/hookmovies/pages/engagement/ReviewsPage.js.map +1 -0
  40. package/dist/hookmovies/pages/library/EntitlementsPage.js +90 -0
  41. package/dist/hookmovies/pages/library/EntitlementsPage.js.map +1 -0
  42. package/dist/hookmovies/pages/library/ListsPage.js +209 -0
  43. package/dist/hookmovies/pages/library/ListsPage.js.map +1 -0
  44. package/dist/hookmovies/pages/productions/ProductionCreatePage.js +204 -0
  45. package/dist/hookmovies/pages/productions/ProductionCreatePage.js.map +1 -0
  46. package/dist/hookmovies/pages/productions/ProductionDetailPage.js +234 -0
  47. package/dist/hookmovies/pages/productions/ProductionDetailPage.js.map +1 -0
  48. package/dist/hookmovies/pages/productions/ProductionsPage.js +135 -0
  49. package/dist/hookmovies/pages/productions/ProductionsPage.js.map +1 -0
  50. package/dist/hookmovies/utils/formatters.js +14 -9
  51. package/dist/hookmovies/utils/formatters.js.map +1 -1
  52. package/dist/index.js +4 -4
  53. package/package.json +1 -1
  54. package/dist/hookmovies/components/InvestmentCard.js +0 -97
  55. package/dist/hookmovies/components/InvestmentCard.js.map +0 -1
  56. package/dist/hookmovies/mocks/data.js +0 -1517
  57. package/dist/hookmovies/mocks/data.js.map +0 -1
  58. package/dist/hookmovies/mocks/users.js +0 -34
  59. package/dist/hookmovies/mocks/users.js.map +0 -1
  60. package/dist/hookmovies/pages/admin/AdminAnalyticsPage.js +0 -646
  61. package/dist/hookmovies/pages/admin/AdminAnalyticsPage.js.map +0 -1
  62. package/dist/hookmovies/pages/admin/AdminDashboard.js +0 -671
  63. package/dist/hookmovies/pages/admin/AdminDashboard.js.map +0 -1
  64. package/dist/hookmovies/pages/admin/AdminFinancialPage.js +0 -422
  65. package/dist/hookmovies/pages/admin/AdminFinancialPage.js.map +0 -1
  66. package/dist/hookmovies/pages/admin/AdminOrdersPage.js +0 -661
  67. package/dist/hookmovies/pages/admin/AdminOrdersPage.js.map +0 -1
  68. package/dist/hookmovies/pages/admin/AdminProfilePage.js +0 -262
  69. package/dist/hookmovies/pages/admin/AdminProfilePage.js.map +0 -1
  70. package/dist/hookmovies/pages/admin/AdminSettingsPage.js +0 -650
  71. package/dist/hookmovies/pages/admin/AdminSettingsPage.js.map +0 -1
  72. package/dist/hookmovies/pages/admin/CartManagementPage.js +0 -869
  73. package/dist/hookmovies/pages/admin/CartManagementPage.js.map +0 -1
  74. package/dist/hookmovies/pages/admin/UserManagementPage.js +0 -893
  75. package/dist/hookmovies/pages/admin/UserManagementPage.js.map +0 -1
  76. package/dist/hookmovies/pages/cart-owner/AnalyticsDashboard.js +0 -836
  77. package/dist/hookmovies/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  78. package/dist/hookmovies/pages/cart-owner/BusinessSettingsPage.js +0 -704
  79. package/dist/hookmovies/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  80. package/dist/hookmovies/pages/cart-owner/CartOwnerDashboard.js +0 -801
  81. package/dist/hookmovies/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  82. package/dist/hookmovies/pages/cart-owner/CartOwnerProfilePage.js +0 -888
  83. package/dist/hookmovies/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  84. package/dist/hookmovies/pages/cart-owner/CartServiceConfigPage.js +0 -635
  85. package/dist/hookmovies/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  86. package/dist/hookmovies/pages/cart-owner/InventoryManagementPage.js +0 -912
  87. package/dist/hookmovies/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  88. package/dist/hookmovies/pages/cart-owner/OrderManagementPage.js +0 -913
  89. package/dist/hookmovies/pages/cart-owner/OrderManagementPage.js.map +0 -1
  90. package/dist/hookmovies/pages/cart-owner/StaffManagementPage.js +0 -832
  91. package/dist/hookmovies/pages/cart-owner/StaffManagementPage.js.map +0 -1
  92. package/dist/hookmovies/pages/common/HelpSupportPage.js +0 -1321
  93. package/dist/hookmovies/pages/common/HelpSupportPage.js.map +0 -1
  94. package/dist/hookmovies/pages/common/NotificationCenterPage.js +0 -666
  95. package/dist/hookmovies/pages/common/NotificationCenterPage.js.map +0 -1
  96. package/dist/hookmovies/pages/common/SettingsPage.js +0 -965
  97. package/dist/hookmovies/pages/common/SettingsPage.js.map +0 -1
  98. package/dist/hookmovies/pages/customer/BookingDetailsPage.js +0 -622
  99. package/dist/hookmovies/pages/customer/BookingDetailsPage.js.map +0 -1
  100. package/dist/hookmovies/pages/customer/CartDetailPage.js +0 -653
  101. package/dist/hookmovies/pages/customer/CartDetailPage.js.map +0 -1
  102. package/dist/hookmovies/pages/customer/CartDiscoveryPage.js +0 -557
  103. package/dist/hookmovies/pages/customer/CartDiscoveryPage.js.map +0 -1
  104. package/dist/hookmovies/pages/customer/CheckoutPage.js +0 -526
  105. package/dist/hookmovies/pages/customer/CheckoutPage.js.map +0 -1
  106. package/dist/hookmovies/pages/customer/CustomerDashboard.js +0 -537
  107. package/dist/hookmovies/pages/customer/CustomerDashboard.js.map +0 -1
  108. package/dist/hookmovies/pages/customer/CustomerProfilePage.js +0 -623
  109. package/dist/hookmovies/pages/customer/CustomerProfilePage.js.map +0 -1
  110. package/dist/hookmovies/pages/customer/DirectServiceBookingPage.js +0 -627
  111. package/dist/hookmovies/pages/customer/DirectServiceBookingPage.js.map +0 -1
  112. package/dist/hookmovies/pages/customer/FavoritesPage.js +0 -479
  113. package/dist/hookmovies/pages/customer/FavoritesPage.js.map +0 -1
  114. package/dist/hookmovies/pages/customer/OrderHistoryPage.js +0 -442
  115. package/dist/hookmovies/pages/customer/OrderHistoryPage.js.map +0 -1
  116. package/dist/hookmovies/pages/customer/OrderTrackingPage.js +0 -390
  117. package/dist/hookmovies/pages/customer/OrderTrackingPage.js.map +0 -1
  118. package/dist/hookmovies/pages/customer/PaymentMethodsPage.js +0 -490
  119. package/dist/hookmovies/pages/customer/PaymentMethodsPage.js.map +0 -1
  120. package/dist/hookmovies/pages/customer/ReviewsPage.js +0 -607
  121. package/dist/hookmovies/pages/customer/ReviewsPage.js.map +0 -1
  122. package/dist/hookmovies/pages/customer/SavedAddressesPage.js +0 -450
  123. package/dist/hookmovies/pages/customer/SavedAddressesPage.js.map +0 -1
  124. package/dist/hookmovies/pages/investor/InvestmentDetailsPage.js +0 -880
  125. package/dist/hookmovies/pages/investor/InvestmentDetailsPage.js.map +0 -1
  126. package/dist/hookmovies/pages/investor/InvestmentOpportunitiesPage.js +0 -940
  127. package/dist/hookmovies/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  128. package/dist/hookmovies/pages/investor/InvestorAnalyticsPage.js +0 -683
  129. package/dist/hookmovies/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  130. package/dist/hookmovies/pages/investor/InvestorDashboard.js +0 -457
  131. package/dist/hookmovies/pages/investor/InvestorDashboard.js.map +0 -1
  132. package/dist/hookmovies/pages/investor/InvestorInvestmentsPage.js +0 -401
  133. package/dist/hookmovies/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  134. package/dist/hookmovies/pages/investor/InvestorPortfolioPage.js +0 -571
  135. package/dist/hookmovies/pages/investor/InvestorPortfolioPage.js.map +0 -1
  136. package/dist/hookmovies/pages/investor/InvestorProfilePage.js +0 -1067
  137. package/dist/hookmovies/pages/investor/InvestorProfilePage.js.map +0 -1
  138. package/dist/hookmovies/pages/worker/TaskDetailsPage.js +0 -528
  139. package/dist/hookmovies/pages/worker/TaskDetailsPage.js.map +0 -1
  140. package/dist/hookmovies/pages/worker/WorkerDashboard.js +0 -670
  141. package/dist/hookmovies/pages/worker/WorkerDashboard.js.map +0 -1
  142. package/dist/hookmovies/pages/worker/WorkerOrdersPage.js +0 -676
  143. package/dist/hookmovies/pages/worker/WorkerOrdersPage.js.map +0 -1
  144. package/dist/hookmovies/pages/worker/WorkerProfilePage.js +0 -689
  145. package/dist/hookmovies/pages/worker/WorkerProfilePage.js.map +0 -1
  146. package/dist/hookmovies/pages/worker/WorkerSchedulePage.js +0 -579
  147. package/dist/hookmovies/pages/worker/WorkerSchedulePage.js.map +0 -1
  148. package/dist/hookmovies/store/hookmoviesStore.js +0 -38
  149. package/dist/hookmovies/store/hookmoviesStore.js.map +0 -1
  150. 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 { useMemo as t } from "react";
4
- import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
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 o = async (e, t, n) => {
8
- let r = await a({
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
- let { apiGatewayUrl: n } = e();
20
- return r({
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
- "hookmovies",
23
- "providers",
24
- t
24
+ o,
25
+ "titles",
26
+ t,
27
+ r
25
28
  ],
26
- queryFn: async () => (await o("query Providers($filter: HookMoviesProviderFilterInput) {\n listServiceProviders(filter: $filter, limit: 200) {\n id name slug category status rating totalRatings averageOrderValue serviceTypes location businessHours createdAt\n }\n }", { filter: t ? { query: t } : void 0 }, n)).listServiceProviders.map((e) => ({
27
- ...e,
28
- image: "https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=400",
29
- images: ["https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=400"],
30
- isOpen: e.status === "ACTIVE" || e.status === "VERIFIED",
31
- isVerified: e.status === "VERIFIED",
32
- distance: .5,
33
- estimatedTime: 20,
34
- createdAt: e.createdAt
35
- }))
36
- });
37
- }, c = (t) => {
38
- let { apiGatewayUrl: n } = e();
39
- return r({
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
- "hookmovies",
42
- "offerings",
45
+ o,
46
+ "title",
43
47
  t
44
48
  ],
45
- queryFn: async () => (await o("query Offerings($providerId: String) {\n listOfferings(providerId: $providerId, limit: 300) {\n id providerId kind name slug category description price originalPrice stock durationMinutes serviceType tags isAvailable metadata media\n }\n }", { providerId: t }, n)).listOfferings,
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
- }, l = (t = {}) => {
49
- let { apiGatewayUrl: n } = e();
50
- return r({
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
- "hookmovies",
53
- "orders",
54
- t.providerId,
55
- t.customerId
122
+ o,
123
+ "studios",
124
+ t
56
125
  ],
57
- queryFn: async () => (await o("query Orders($providerId: String, $customerId: String) {\n listOrders(providerId: $providerId, customerId: $customerId, limit: 200) {\n id orderNumber providerId customerId status paymentStatus fulfillmentType subtotal tax deliveryFee discount total notes timeline paymentMethod deliveryAddress createdAt\n provider { name }\n items { id offeringId name quantity unitPrice totalPrice customizations }\n }\n }", t, n)).listOrders.map((e) => ({
58
- id: e.id,
59
- cartId: e.providerId,
60
- cartName: e.provider?.name || "Unknown Cart",
61
- cartImage: "https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=100",
62
- items: e.items.map((e) => ({
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
- }, d = () => {
89
- let { apiGatewayUrl: t } = e();
90
- return r({
91
- queryKey: ["hookmovies", "investment-opportunities"],
92
- queryFn: async () => (await o("query Opportunities {\n listInvestmentOpportunities(limit: 200) {\n id providerId title description targetAmount raisedAmount minimumInvestment expectedReturnsPct lockInMonths riskLevel status expiresAt terms businessMetrics createdAt\n provider { name }\n }\n }", {}, t)).listInvestmentOpportunities.map((e) => ({
93
- id: e.id,
94
- cartId: e.providerId,
95
- cartName: e.provider?.name || "Unknown Cart",
96
- businessOwner: "Owner",
97
- targetAmount: e.targetAmount,
98
- raisedAmount: e.raisedAmount,
99
- minimumInvestment: e.minimumInvestment,
100
- expectedReturns: e.expectedReturnsPct,
101
- investmentPeriod: e.lockInMonths,
102
- riskLevel: e.riskLevel.toLowerCase(),
103
- description: e.description,
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
- "hookmovies",
118
- "investments",
150
+ o,
151
+ "people",
119
152
  t
120
153
  ],
121
- queryFn: async () => (await o("query Investments($investorId: String!) {\n listInvestments(investorId: $investorId) {\n id opportunityId amount currentValue expectedReturnsPct status investedAt maturedAt realizedReturns\n opportunity { provider { name } }\n }\n }", { investorId: t }, n)).listInvestments.map((e) => ({
122
- id: e.id,
123
- opportunityId: e.opportunityId,
124
- cartName: e.opportunity?.provider?.name || "Unknown Cart",
125
- investedAmount: e.amount,
126
- currentValue: e.currentValue,
127
- returns: e.realizedReturns,
128
- returnsPercentage: e.expectedReturnsPct,
129
- investmentDate: e.investedAt,
130
- status: e.status.toLowerCase()
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
- }, p = (t) => {
135
- let { apiGatewayUrl: n } = e();
136
- return r({
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
- "hookmovies",
139
- "worker-tasks",
269
+ o,
270
+ "audition-by-id",
140
271
  t
141
272
  ],
142
- queryFn: async () => (await o("query WorkerTasks($workerId: String!) {\n listWorkerTasks(workerId: $workerId, limit: 100) {\n id orderId providerId type description priority status assignedAt dueAt completedAt customerName customerPhone earnings distance notes\n provider { name }\n order { deliveryAddress }\n }\n }", { workerId: t }, n)).listWorkerTasks.map((e) => ({
143
- id: e.id,
144
- orderId: e.orderId,
145
- cartId: e.providerId,
146
- cartName: e.provider?.name || "Unknown Cart",
147
- type: e.type.toLowerCase(),
148
- description: e.description,
149
- priority: e.priority.toLowerCase(),
150
- status: e.status.toLowerCase(),
151
- assignedAt: e.assignedAt,
152
- dueAt: e.dueAt,
153
- completedAt: e.completedAt,
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
- }, m = (t) => {
164
- let { apiGatewayUrl: n } = e();
165
- return r({
287
+ }, M = (t) => {
288
+ let { apiGatewayUrl: r } = e();
289
+ return n({
166
290
  queryKey: [
167
- "hookmovies",
168
- "worker-stats",
291
+ o,
292
+ "applications",
169
293
  t
170
294
  ],
171
- queryFn: async () => (await o("query WorkerStats($workerId: String!) {\n hookmoviesWorkerStats(workerId: $workerId) {\n totalDeliveries totalEarnings averageRating completionRate todayTasks todayEarnings\n }\n }", { workerId: t }, n)).hookmoviesWorkerStats,
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
- }, h = () => {
175
- let t = i(), { apiGatewayUrl: r } = e();
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
- mutationFn: async (e) => (await o("mutation PlaceOrder($input: HookMoviesPlaceOrderInput!) {\n placeOrder(input: $input) {\n id orderNumber status total createdAt\n }\n }", { input: e }, r)).placeOrder,
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
- t.invalidateQueries({ queryKey: ["hookmovies", "orders"] }), t.invalidateQueries({ queryKey: ["hookmovies", "dashboard-stats"] });
386
+ n.invalidateQueries({ queryKey: [o, "reviews"] });
180
387
  }
181
388
  });
182
- }, g = () => {
183
- let t = i(), { apiGatewayUrl: r } = e();
389
+ }, B = (t = {}, r = {
390
+ limit: 50,
391
+ offset: 0
392
+ }) => {
393
+ let { apiGatewayUrl: i } = e();
184
394
  return n({
185
- mutationFn: async ({ taskId: e, status: t }) => (await o("mutation UpdateTaskStatus($taskId: String!, $status: HookMoviesWorkerTaskStatus!) {\n hookmoviesUpdateWorkerTaskStatus(taskId: $taskId, status: $status) {\n id status\n }\n }", {
186
- taskId: e,
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
- }, r)).hookmoviesUpdateWorkerTaskStatus,
433
+ }, i)).hokTransitionRightsWindow,
189
434
  onSuccess: () => {
190
- t.invalidateQueries({ queryKey: ["hookmovies", "worker-tasks"] }), t.invalidateQueries({ queryKey: ["hookmovies", "worker-stats"] });
435
+ n.invalidateQueries({ queryKey: [o, "rights"] });
191
436
  }
192
437
  });
193
- }, _ = () => {
194
- let t = i(), { apiGatewayUrl: r } = e();
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
- mutationFn: async ({ workerId: e, action: t }) => (await o("mutation ClockInOut($workerId: String!, $action: HookMoviesClockAction!) {\n hookmoviesWorkerClockInOut(workerId: $workerId, action: $action) {\n success message\n }\n }", {
197
- workerId: e,
198
- action: t
199
- }, r)).hookmoviesWorkerClockInOut,
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
- t.invalidateQueries({ queryKey: ["hookmovies", "worker-schedules"] });
485
+ n.invalidateQueries({ queryKey: [o, "my-lists"] });
202
486
  }
203
487
  });
204
- }, v = () => {
205
- let { currentUser: n } = e(), r = s(), i = l({ customerId: n?.id }), a = u(), o = d(), c = f(n?.id || "");
206
- return t(() => ({
207
- providers: r,
208
- orders: i,
209
- dashboardStats: a,
210
- investmentOpportunities: o,
211
- investments: c
212
- }), [
213
- r,
214
- i,
215
- a,
216
- o,
217
- c
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 { u as useDashboardStats, v as useHookMoviesApi, d as useInvestmentOpportunities, f as useInvestments, c as useOfferings, l as useOrders, h as usePlaceOrder, s as useProviders, g as useUpdateWorkerTaskStatus, _ as useWorkerClockInOut, m as useWorkerStats, p as useWorkerTasks };
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