@burdenoff/microfe-coolandlovely 2026.1024.2 → 2026.1024.3
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/coolandlovely/CoolAndLovelyRoot.d.ts +5 -0
- package/dist/coolandlovely/CoolAndLovelyRoot.d.ts.map +1 -0
- package/dist/coolandlovely/CoolAndLovelyRoot.js +92 -68
- package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -1
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +4 -0
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts.map +1 -0
- package/dist/coolandlovely/CoolAndLovelyRoutes.js +25 -9
- package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -1
- package/dist/coolandlovely/components/ActivityTrail.d.ts +24 -0
- package/dist/coolandlovely/components/ActivityTrail.d.ts.map +1 -0
- package/dist/coolandlovely/components/ActorName.d.ts +14 -0
- package/dist/coolandlovely/components/ActorName.d.ts.map +1 -0
- package/dist/coolandlovely/components/AddToCartPanel.d.ts +10 -0
- package/dist/coolandlovely/components/AddToCartPanel.d.ts.map +1 -0
- package/dist/coolandlovely/components/AddToCartPanel.js +97 -0
- package/dist/coolandlovely/components/AddToCartPanel.js.map +1 -0
- package/dist/coolandlovely/components/AddToLookbookButton.d.ts +10 -0
- package/dist/coolandlovely/components/AddToLookbookButton.d.ts.map +1 -0
- package/dist/coolandlovely/components/BrandCard.d.ts +11 -0
- package/dist/coolandlovely/components/BrandCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/BrandCover.d.ts +17 -0
- package/dist/coolandlovely/components/BrandCover.d.ts.map +1 -0
- package/dist/coolandlovely/components/BrandCreatorAvatars.d.ts +14 -0
- package/dist/coolandlovely/components/BrandCreatorAvatars.d.ts.map +1 -0
- package/dist/coolandlovely/components/CollectionCard.d.ts +11 -0
- package/dist/coolandlovely/components/CollectionCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/ColourSwatchRow.d.ts +11 -0
- package/dist/coolandlovely/components/ColourSwatchRow.d.ts.map +1 -0
- package/dist/coolandlovely/components/Comments.d.ts +14 -0
- package/dist/coolandlovely/components/Comments.d.ts.map +1 -0
- package/dist/coolandlovely/components/EmptyState.d.ts +14 -0
- package/dist/coolandlovely/components/EmptyState.d.ts.map +1 -0
- package/dist/coolandlovely/components/FeedbackWidget.d.ts +4 -0
- package/dist/coolandlovely/components/FeedbackWidget.d.ts.map +1 -0
- package/dist/coolandlovely/components/Field.d.ts +71 -0
- package/dist/coolandlovely/components/Field.d.ts.map +1 -0
- package/dist/coolandlovely/components/FileImage.d.ts +10 -0
- package/dist/coolandlovely/components/FileImage.d.ts.map +1 -0
- package/dist/coolandlovely/components/FollowButton.d.ts +11 -0
- package/dist/coolandlovely/components/FollowButton.d.ts.map +1 -0
- package/dist/coolandlovely/components/ImageUploadField.d.ts +21 -0
- package/dist/coolandlovely/components/ImageUploadField.d.ts.map +1 -0
- package/dist/coolandlovely/components/LookCard.d.ts +19 -0
- package/dist/coolandlovely/components/LookCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/LookbookCard.d.ts +11 -0
- package/dist/coolandlovely/components/LookbookCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/MetricsCard.d.ts +23 -0
- package/dist/coolandlovely/components/MetricsCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/PageLayout.d.ts +17 -0
- package/dist/coolandlovely/components/PageLayout.d.ts.map +1 -0
- package/dist/coolandlovely/components/PayForOrder.d.ts +11 -0
- package/dist/coolandlovely/components/PayForOrder.d.ts.map +1 -0
- package/dist/coolandlovely/components/PayForOrder.js +118 -0
- package/dist/coolandlovely/components/PayForOrder.js.map +1 -0
- package/dist/coolandlovely/components/ShopItemCard.d.ts +15 -0
- package/dist/coolandlovely/components/ShopItemCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/StateViews.d.ts +16 -0
- package/dist/coolandlovely/components/StateViews.d.ts.map +1 -0
- package/dist/coolandlovely/components/StatusBadge.d.ts +9 -0
- package/dist/coolandlovely/components/StatusBadge.d.ts.map +1 -0
- package/dist/coolandlovely/components/StatusBadge.js +4 -0
- package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
- package/dist/coolandlovely/components/StepTracker.d.ts +12 -0
- package/dist/coolandlovely/components/StepTracker.d.ts.map +1 -0
- package/dist/coolandlovely/components/TagList.d.ts +12 -0
- package/dist/coolandlovely/components/TagList.d.ts.map +1 -0
- package/dist/coolandlovely/components/Thumbnail.d.ts +23 -0
- package/dist/coolandlovely/components/Thumbnail.d.ts.map +1 -0
- package/dist/coolandlovely/components/VisibilityChip.d.ts +10 -0
- package/dist/coolandlovely/components/VisibilityChip.d.ts.map +1 -0
- package/dist/coolandlovely/components/WardrobeItemCard.d.ts +14 -0
- package/dist/coolandlovely/components/WardrobeItemCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/index.d.ts +32 -0
- package/dist/coolandlovely/components/index.d.ts.map +1 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +16 -0
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts.map +1 -0
- package/dist/coolandlovely/context/index.d.ts +6 -0
- package/dist/coolandlovely/context/index.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/index.d.ts +15 -0
- package/dist/coolandlovely/hooks/index.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useActivity.d.ts +39 -0
- package/dist/coolandlovely/hooks/useActivity.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useAssistantEntity.d.ts +24 -0
- package/dist/coolandlovely/hooks/useAssistantEntity.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useComments.d.ts +37 -0
- package/dist/coolandlovely/hooks/useComments.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useCommerceApi.d.ts +27 -0
- package/dist/coolandlovely/hooks/useCommerceApi.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useCommerceApi.js +121 -0
- package/dist/coolandlovely/hooks/useCommerceApi.js.map +1 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +178 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +1 -1
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
- package/dist/coolandlovely/hooks/useFiles.d.ts +62 -0
- package/dist/coolandlovely/hooks/useFiles.d.ts.map +1 -0
- package/dist/coolandlovely/hooks/useTr.d.ts +2 -0
- package/dist/coolandlovely/hooks/useTr.d.ts.map +1 -0
- package/dist/coolandlovely/index.d.ts +11 -0
- package/dist/coolandlovely/index.d.ts.map +1 -0
- package/dist/coolandlovely/pages/HomePage.d.ts +10 -0
- package/dist/coolandlovely/pages/HomePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminBrandsPage.d.ts +9 -0
- package/dist/coolandlovely/pages/admin/AdminBrandsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.d.ts +9 -0
- package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.d.ts +9 -0
- package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/admin/index.d.ts +8 -0
- package/dist/coolandlovely/pages/admin/index.d.ts.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandDetailPage.d.ts +9 -0
- package/dist/coolandlovely/pages/brands/BrandDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandFormPage.d.ts +9 -0
- package/dist/coolandlovely/pages/brands/BrandFormPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/brands/BrandsListPage.d.ts +9 -0
- package/dist/coolandlovely/pages/brands/BrandsListPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.d.ts +9 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.d.ts +11 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.d.ts +9 -0
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.d.ts +9 -0
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionFormPage.d.ts +9 -0
- package/dist/coolandlovely/pages/collections/CollectionFormPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/collections/CollectionsListPage.d.ts +8 -0
- package/dist/coolandlovely/pages/collections/CollectionsListPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/commerce/CartPage.d.ts +10 -0
- package/dist/coolandlovely/pages/commerce/CartPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/commerce/CartPage.js +283 -0
- package/dist/coolandlovely/pages/commerce/CartPage.js.map +1 -0
- package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.js +185 -0
- package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.js.map +1 -0
- package/dist/coolandlovely/pages/commerce/OrdersPage.d.ts +11 -0
- package/dist/coolandlovely/pages/commerce/OrdersPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/commerce/OrdersPage.js +280 -0
- package/dist/coolandlovely/pages/commerce/OrdersPage.js.map +1 -0
- package/dist/coolandlovely/pages/discover/DiscoverPage.d.ts +14 -0
- package/dist/coolandlovely/pages/discover/DiscoverPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts +9 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +114 -106
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/items/StyleItemFormPage.d.ts +10 -0
- package/dist/coolandlovely/pages/items/StyleItemFormPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/items/StyleItemsListPage.d.ts +9 -0
- package/dist/coolandlovely/pages/items/StyleItemsListPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.d.ts +12 -0
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.d.ts +10 -0
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.d.ts +11 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/looks/LookDetailPage.js +1 -1
- package/dist/coolandlovely/pages/looks/LookDetailPage.js.map +1 -1
- package/dist/coolandlovely/pages/looks/LookFormPage.d.ts +10 -0
- package/dist/coolandlovely/pages/looks/LookFormPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/looks/LooksListPage.d.ts +9 -0
- package/dist/coolandlovely/pages/looks/LooksListPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.d.ts +17 -0
- package/dist/coolandlovely/pages/profile/StyleProfilePage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/trends/TrendsPage.d.ts +11 -0
- package/dist/coolandlovely/pages/trends/TrendsPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.d.ts +10 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.d.ts.map +1 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.d.ts +12 -0
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.d.ts.map +1 -0
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts +56 -0
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts.map +1 -0
- package/dist/coolandlovely/store/index.d.ts +6 -0
- package/dist/coolandlovely/store/index.d.ts.map +1 -0
- package/dist/coolandlovely/types/commerce.d.ts +137 -0
- package/dist/coolandlovely/types/commerce.d.ts.map +1 -0
- package/dist/coolandlovely/types/index.d.ts +527 -0
- package/dist/coolandlovely/types/index.d.ts.map +1 -0
- package/dist/coolandlovely/utils/cn.d.ts +4 -0
- package/dist/coolandlovely/utils/cn.d.ts.map +1 -0
- package/dist/coolandlovely/utils/formatters.d.ts +101 -0
- package/dist/coolandlovely/utils/formatters.d.ts.map +1 -0
- package/dist/coolandlovely/utils/icons.d.ts +6 -0
- package/dist/coolandlovely/utils/icons.d.ts.map +1 -0
- package/dist/coolandlovely/utils/index.d.ts +10 -0
- package/dist/coolandlovely/utils/index.d.ts.map +1 -0
- package/dist/coolandlovely/utils/navigation.d.ts +20 -0
- package/dist/coolandlovely/utils/navigation.d.ts.map +1 -0
- package/dist/coolandlovely/utils/paymentProviders.d.ts +74 -0
- package/dist/coolandlovely/utils/paymentProviders.d.ts.map +1 -0
- package/dist/coolandlovely/utils/paymentProviders.js +42 -0
- package/dist/coolandlovely/utils/paymentProviders.js.map +1 -0
- package/dist/coolandlovely/utils/sparkline.d.ts +31 -0
- package/dist/coolandlovely/utils/sparkline.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +23527 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/services/createSandboxAssistantTransport.d.ts +24 -0
- package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/stories/BrandCard.stories.d.ts +10 -0
- package/dist/stories/BrandCard.stories.d.ts.map +1 -0
- package/dist/stories/CollectionCard.stories.d.ts +10 -0
- package/dist/stories/CollectionCard.stories.d.ts.map +1 -0
- package/dist/stories/DiscoverPage.stories.d.ts +11 -0
- package/dist/stories/DiscoverPage.stories.d.ts.map +1 -0
- package/dist/stories/FeedbackWidget.stories.d.ts +9 -0
- package/dist/stories/FeedbackWidget.stories.d.ts.map +1 -0
- package/dist/stories/LookCard.stories.d.ts +10 -0
- package/dist/stories/LookCard.stories.d.ts.map +1 -0
- package/dist/stories/LookbookCard.stories.d.ts +10 -0
- package/dist/stories/LookbookCard.stories.d.ts.map +1 -0
- package/dist/stories/MetricsCard.stories.d.ts +10 -0
- package/dist/stories/MetricsCard.stories.d.ts.map +1 -0
- package/dist/stories/ShopItemCard.stories.d.ts +9 -0
- package/dist/stories/ShopItemCard.stories.d.ts.map +1 -0
- package/dist/stories/StatusBadge.stories.d.ts +11 -0
- package/dist/stories/StatusBadge.stories.d.ts.map +1 -0
- package/dist/stories/VisibilityChip.stories.d.ts +10 -0
- package/dist/stories/VisibilityChip.stories.d.ts.map +1 -0
- package/dist/stories/WardrobeItemCard.stories.d.ts +11 -0
- package/dist/stories/WardrobeItemCard.stories.d.ts.map +1 -0
- package/dist/stories/__fixtures__/coolandlovely.d.ts +15 -0
- package/dist/stories/__fixtures__/coolandlovely.d.ts.map +1 -0
- package/dist/utils/pageContext.d.ts +58 -0
- package/dist/utils/pageContext.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { useCoolAndLovely as e } from "../context/CoolAndLovelyContext.js";
|
|
2
|
+
import "../context/index.js";
|
|
3
|
+
import { coolQuery as t } from "./useCoolAndLovelyApi.js";
|
|
4
|
+
import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
|
|
5
|
+
//#region src/coolandlovely/hooks/useCommerceApi.ts
|
|
6
|
+
var a = "coolandlovely", o = "\n items {\n id styleItemId quantity size colour lookId unitPrice currency lineTotal isPurchasable\n styleItem { id name status image { id } brand { id name } }\n }\n itemCount subtotal currency canCheckout blockedReason\n", s = "\n id orderNumber status currency subtotal taxAmount total itemCount\n shippingName shippingAddress buyerNote paymentProvider paidAt cancelledAt createdAt updatedAt\n items {\n id styleItemId brandId name sku image { id } size colour unitPrice quantity lineTotal\n lookId isCreatorAttributed\n }\n", c = `
|
|
7
|
+
order { ${s} }
|
|
8
|
+
provider providerOrderId razorpayKeyId clientSecret stripePublishableKey subtotal taxAmount total currency
|
|
9
|
+
`, l = () => {
|
|
10
|
+
let { apiGatewayUrl: n } = e();
|
|
11
|
+
return r({
|
|
12
|
+
queryKey: [a, "cart"],
|
|
13
|
+
queryFn: async () => (await t(`query CooMyCart { cooMyCart { ${o} } }`, {}, n)).cooMyCart
|
|
14
|
+
});
|
|
15
|
+
}, u = (r, o) => {
|
|
16
|
+
let { apiGatewayUrl: s } = e(), c = i();
|
|
17
|
+
return n({
|
|
18
|
+
mutationFn: async (e) => {
|
|
19
|
+
let n = (await t(r, e, s))[o];
|
|
20
|
+
if (!n) throw Error("The cart could not be updated");
|
|
21
|
+
return n;
|
|
22
|
+
},
|
|
23
|
+
onSuccess: (e) => {
|
|
24
|
+
c.setQueryData([a, "cart"], e);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}, d = () => u(`mutation CooAddToCart($input: CooAddToCartInput!) { cooAddToCart(input: $input) { ${o} } }`, "cooAddToCart"), f = () => u(`mutation CooUpdateCartItem($id: ID!, $quantity: Int!) {
|
|
28
|
+
cooUpdateCartItem(id: $id, quantity: $quantity) { ${o} }
|
|
29
|
+
}`, "cooUpdateCartItem"), p = () => u(`mutation CooRemoveCartItem($id: ID!) { cooRemoveCartItem(id: $id) { ${o} } }`, "cooRemoveCartItem"), m = (n) => {
|
|
30
|
+
let { apiGatewayUrl: i } = e();
|
|
31
|
+
return r({
|
|
32
|
+
queryKey: [
|
|
33
|
+
a,
|
|
34
|
+
"orders",
|
|
35
|
+
n ?? "ALL"
|
|
36
|
+
],
|
|
37
|
+
queryFn: async () => (await t(`query CooMyOrders($status: CooOrderStatus, $pagination: PaginationInput) {
|
|
38
|
+
cooMyOrders(status: $status, pagination: $pagination) {
|
|
39
|
+
items { ${s} }
|
|
40
|
+
pageInfo { cursor hasMore }
|
|
41
|
+
}
|
|
42
|
+
}`, {
|
|
43
|
+
status: n,
|
|
44
|
+
pagination: {
|
|
45
|
+
limit: 50,
|
|
46
|
+
offset: 0
|
|
47
|
+
}
|
|
48
|
+
}, i)).cooMyOrders
|
|
49
|
+
});
|
|
50
|
+
}, h = (n) => {
|
|
51
|
+
let { apiGatewayUrl: i } = e();
|
|
52
|
+
return r({
|
|
53
|
+
queryKey: [
|
|
54
|
+
a,
|
|
55
|
+
"order",
|
|
56
|
+
n
|
|
57
|
+
],
|
|
58
|
+
enabled: !!n,
|
|
59
|
+
queryFn: async () => (await t(`query CooMyOrder($id: ID!) { cooMyOrder(id: $id) { ${s} } }`, { id: n }, i)).cooMyOrder
|
|
60
|
+
});
|
|
61
|
+
}, g = () => {
|
|
62
|
+
let e = i();
|
|
63
|
+
return (t) => {
|
|
64
|
+
e.setQueryData([
|
|
65
|
+
a,
|
|
66
|
+
"order",
|
|
67
|
+
t.id
|
|
68
|
+
], t), e.invalidateQueries({ queryKey: [a, "orders"] }), e.invalidateQueries({ queryKey: [a, "cart"] });
|
|
69
|
+
};
|
|
70
|
+
}, _ = () => {
|
|
71
|
+
let { apiGatewayUrl: r } = e(), i = g();
|
|
72
|
+
return n({
|
|
73
|
+
mutationFn: async (e) => (await t(`mutation CooCheckout($input: CooCheckoutInput!) { cooCheckout(input: $input) { ${c} } }`, { input: e }, r)).cooCheckout,
|
|
74
|
+
onSuccess: (e) => i(e.order)
|
|
75
|
+
});
|
|
76
|
+
}, v = () => {
|
|
77
|
+
let { apiGatewayUrl: r } = e(), i = g();
|
|
78
|
+
return n({
|
|
79
|
+
mutationFn: async (e) => (await t(`mutation CooResumeOrderPayment($id: ID!) { cooResumeOrderPayment(id: $id) { ${c} } }`, { id: e }, r)).cooResumeOrderPayment,
|
|
80
|
+
onSuccess: (e) => i(e.order)
|
|
81
|
+
});
|
|
82
|
+
}, y = () => {
|
|
83
|
+
let { apiGatewayUrl: r } = e();
|
|
84
|
+
return n({
|
|
85
|
+
mutationFn: async (e) => (await t(`mutation CooSyncOrderPayment($id: ID!) { cooSyncOrderPayment(id: $id) { ${s} } }`, { id: e }, r)).cooSyncOrderPayment,
|
|
86
|
+
onSuccess: g()
|
|
87
|
+
});
|
|
88
|
+
}, b = () => {
|
|
89
|
+
let { apiGatewayUrl: r } = e();
|
|
90
|
+
return n({
|
|
91
|
+
mutationFn: async (e) => (await t(`mutation CooCancelOrder($id: ID!) { cooCancelOrder(id: $id) { ${s} } }`, { id: e }, r)).cooCancelOrder,
|
|
92
|
+
onSuccess: g()
|
|
93
|
+
});
|
|
94
|
+
}, x = () => {
|
|
95
|
+
let { apiGatewayUrl: n } = e();
|
|
96
|
+
return r({
|
|
97
|
+
queryKey: [a, "creator-earnings"],
|
|
98
|
+
queryFn: async () => (await t("query CooMyCreatorEarnings($pagination: PaginationInput) {\n cooMyCreatorEarnings(pagination: $pagination) {\n items {\n id orderId orderNumber lookId collaborationId commissionRate saleAmount amount currency\n availableAt billingSyncStatus createdAt\n }\n pageInfo { cursor hasMore }\n }\n }", { pagination: {
|
|
99
|
+
limit: 50,
|
|
100
|
+
offset: 0
|
|
101
|
+
} }, n)).cooMyCreatorEarnings
|
|
102
|
+
});
|
|
103
|
+
}, S = () => {
|
|
104
|
+
let { apiGatewayUrl: n } = e();
|
|
105
|
+
return r({
|
|
106
|
+
queryKey: [a, "creator-earnings-summary"],
|
|
107
|
+
queryFn: async () => (await t("query CooMyCreatorEarningsSummary {\n cooMyCreatorEarningsSummary {\n commissionRate holdDays currency totalLifetimeAmount availableAmount pendingAmount\n reservedAmount paidAmount pendingPayoutCount unsyncedCount billingAvailable\n }\n }", {}, n)).cooMyCreatorEarningsSummary
|
|
108
|
+
});
|
|
109
|
+
}, C = () => {
|
|
110
|
+
let { apiGatewayUrl: r } = e(), o = i();
|
|
111
|
+
return n({
|
|
112
|
+
mutationFn: async (e) => (await t("mutation CooRequestCreatorPayout($input: CooRequestCreatorPayoutInput!) {\n cooRequestCreatorPayout(input: $input) { id status requestedAmount currency createdAt }\n }", { input: e }, r)).cooRequestCreatorPayout,
|
|
113
|
+
onSuccess: () => {
|
|
114
|
+
o.invalidateQueries({ queryKey: [a, "creator-earnings-summary"] });
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { d as useAddToCart, b as useCancelOrder, _ as useCheckout, l as useMyCart, x as useMyCreatorEarnings, S as useMyCreatorEarningsSummary, h as useMyOrder, m as useMyOrders, p as useRemoveCartItem, C as useRequestCreatorPayout, v as useResumeOrderPayment, y as useSyncOrderPayment, f as useUpdateCartItem };
|
|
120
|
+
|
|
121
|
+
//# sourceMappingURL=useCommerceApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommerceApi.js","names":[],"sources":["../../../src/coolandlovely/hooks/useCommerceApi.ts"],"sourcesContent":["/**\n * Commerce API hooks (BOFF-3370)\n * @module coolandlovely/hooks\n *\n * React Query layer over the self-scoped commerce fields of `wspace-coolandlovely-svc`:\n * the shopper's cart, checkout and orders, and the creator's look commissions + payouts.\n * The client never decides that an order is paid — it opens the provider's checkout that\n * global-billing prepared and then asks the backend to settle against billing's record.\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { useCoolAndLovely } from '../context';\nimport type {\n CooAddToCartInput,\n CooCart,\n CooCheckoutInput,\n CooCreatorEarningConnection,\n CooCreatorEarningsSummary,\n CooCreatorPayout,\n CooOrder,\n CooOrderCheckout,\n CooOrderConnection,\n CooOrderStatus,\n} from '../types';\nimport { coolQuery } from './useCoolAndLovelyApi';\n\nconst QK = 'coolandlovely';\n\nconst CART_FIELDS = `\n items {\n id styleItemId quantity size colour lookId unitPrice currency lineTotal isPurchasable\n styleItem { id name status image { id } brand { id name } }\n }\n itemCount subtotal currency canCheckout blockedReason\n`;\n\nconst ORDER_FIELDS = `\n id orderNumber status currency subtotal taxAmount total itemCount\n shippingName shippingAddress buyerNote paymentProvider paidAt cancelledAt createdAt updatedAt\n items {\n id styleItemId brandId name sku image { id } size colour unitPrice quantity lineTotal\n lookId isCreatorAttributed\n }\n`;\n\nconst CHECKOUT_FIELDS = `\n order { ${ORDER_FIELDS} }\n provider providerOrderId razorpayKeyId clientSecret stripePublishableKey subtotal taxAmount total currency\n`;\n\n// ---------------------------------------------------------------------------\n// Cart\n// ---------------------------------------------------------------------------\n\nexport const useMyCart = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n return useQuery({\n queryKey: [QK, 'cart'],\n queryFn: async () => {\n const data = await coolQuery<{ cooMyCart: CooCart }>(\n `query CooMyCart { cooMyCart { ${CART_FIELDS} } }`,\n {},\n apiGatewayUrl\n );\n return data.cooMyCart;\n },\n });\n};\n\n/** Every cart mutation answers with the fresh cart, which is written straight into the cache. */\nconst useCartMutation = <TVars>(document: string, field: string) => {\n const { apiGatewayUrl } = useCoolAndLovely();\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: async (variables: TVars) => {\n const data = await coolQuery<Record<string, CooCart>>(\n document,\n variables as Record<string, unknown>,\n apiGatewayUrl\n );\n const cart = data[field];\n if (!cart) throw new Error('The cart could not be updated');\n return cart;\n },\n onSuccess: (cart) => {\n queryClient.setQueryData([QK, 'cart'], cart);\n },\n });\n};\n\nexport const useAddToCart = () =>\n useCartMutation<{ input: CooAddToCartInput }>(\n `mutation CooAddToCart($input: CooAddToCartInput!) { cooAddToCart(input: $input) { ${CART_FIELDS} } }`,\n 'cooAddToCart'\n );\n\nexport const useUpdateCartItem = () =>\n useCartMutation<{ id: string; quantity: number }>(\n `mutation CooUpdateCartItem($id: ID!, $quantity: Int!) {\n cooUpdateCartItem(id: $id, quantity: $quantity) { ${CART_FIELDS} }\n }`,\n 'cooUpdateCartItem'\n );\n\nexport const useRemoveCartItem = () =>\n useCartMutation<{ id: string }>(\n `mutation CooRemoveCartItem($id: ID!) { cooRemoveCartItem(id: $id) { ${CART_FIELDS} } }`,\n 'cooRemoveCartItem'\n );\n\n// ---------------------------------------------------------------------------\n// Orders + checkout\n// ---------------------------------------------------------------------------\n\nexport const useMyOrders = (status?: CooOrderStatus) => {\n const { apiGatewayUrl } = useCoolAndLovely();\n return useQuery({\n queryKey: [QK, 'orders', status ?? 'ALL'],\n queryFn: async () => {\n const data = await coolQuery<{ cooMyOrders: CooOrderConnection }>(\n `query CooMyOrders($status: CooOrderStatus, $pagination: PaginationInput) {\n cooMyOrders(status: $status, pagination: $pagination) {\n items { ${ORDER_FIELDS} }\n pageInfo { cursor hasMore }\n }\n }`,\n { status, pagination: { limit: 50, offset: 0 } },\n apiGatewayUrl\n );\n return data.cooMyOrders;\n },\n });\n};\n\nexport const useMyOrder = (id: string | undefined) => {\n const { apiGatewayUrl } = useCoolAndLovely();\n return useQuery({\n queryKey: [QK, 'order', id],\n enabled: !!id,\n queryFn: async () => {\n const data = await coolQuery<{ cooMyOrder: CooOrder | null }>(\n `query CooMyOrder($id: ID!) { cooMyOrder(id: $id) { ${ORDER_FIELDS} } }`,\n { id },\n apiGatewayUrl\n );\n return data.cooMyOrder;\n },\n });\n};\n\nconst useOrderInvalidation = () => {\n const queryClient = useQueryClient();\n return (order: CooOrder) => {\n queryClient.setQueryData([QK, 'order', order.id], order);\n void queryClient.invalidateQueries({ queryKey: [QK, 'orders'] });\n void queryClient.invalidateQueries({ queryKey: [QK, 'cart'] });\n };\n};\n\nexport const useCheckout = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n const settle = useOrderInvalidation();\n return useMutation({\n mutationFn: async (input: CooCheckoutInput) => {\n const data = await coolQuery<{ cooCheckout: CooOrderCheckout }>(\n `mutation CooCheckout($input: CooCheckoutInput!) { cooCheckout(input: $input) { ${CHECKOUT_FIELDS} } }`,\n { input },\n apiGatewayUrl\n );\n return data.cooCheckout;\n },\n onSuccess: (checkout) => settle(checkout.order),\n });\n};\n\nexport const useResumeOrderPayment = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n const settle = useOrderInvalidation();\n return useMutation({\n mutationFn: async (id: string) => {\n const data = await coolQuery<{ cooResumeOrderPayment: CooOrderCheckout }>(\n `mutation CooResumeOrderPayment($id: ID!) { cooResumeOrderPayment(id: $id) { ${CHECKOUT_FIELDS} } }`,\n { id },\n apiGatewayUrl\n );\n return data.cooResumeOrderPayment;\n },\n onSuccess: (checkout) => settle(checkout.order),\n });\n};\n\nexport const useSyncOrderPayment = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n const settle = useOrderInvalidation();\n return useMutation({\n mutationFn: async (id: string) => {\n const data = await coolQuery<{ cooSyncOrderPayment: CooOrder }>(\n `mutation CooSyncOrderPayment($id: ID!) { cooSyncOrderPayment(id: $id) { ${ORDER_FIELDS} } }`,\n { id },\n apiGatewayUrl\n );\n return data.cooSyncOrderPayment;\n },\n onSuccess: settle,\n });\n};\n\nexport const useCancelOrder = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n const settle = useOrderInvalidation();\n return useMutation({\n mutationFn: async (id: string) => {\n const data = await coolQuery<{ cooCancelOrder: CooOrder }>(\n `mutation CooCancelOrder($id: ID!) { cooCancelOrder(id: $id) { ${ORDER_FIELDS} } }`,\n { id },\n apiGatewayUrl\n );\n return data.cooCancelOrder;\n },\n onSuccess: settle,\n });\n};\n\n// ---------------------------------------------------------------------------\n// Creator earnings + payouts\n// ---------------------------------------------------------------------------\n\nexport const useMyCreatorEarnings = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n return useQuery({\n queryKey: [QK, 'creator-earnings'],\n queryFn: async () => {\n const data = await coolQuery<{ cooMyCreatorEarnings: CooCreatorEarningConnection }>(\n `query CooMyCreatorEarnings($pagination: PaginationInput) {\n cooMyCreatorEarnings(pagination: $pagination) {\n items {\n id orderId orderNumber lookId collaborationId commissionRate saleAmount amount currency\n availableAt billingSyncStatus createdAt\n }\n pageInfo { cursor hasMore }\n }\n }`,\n { pagination: { limit: 50, offset: 0 } },\n apiGatewayUrl\n );\n return data.cooMyCreatorEarnings;\n },\n });\n};\n\nexport const useMyCreatorEarningsSummary = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n return useQuery({\n queryKey: [QK, 'creator-earnings-summary'],\n queryFn: async () => {\n const data = await coolQuery<{ cooMyCreatorEarningsSummary: CooCreatorEarningsSummary }>(\n `query CooMyCreatorEarningsSummary {\n cooMyCreatorEarningsSummary {\n commissionRate holdDays currency totalLifetimeAmount availableAmount pendingAmount\n reservedAmount paidAmount pendingPayoutCount unsyncedCount billingAvailable\n }\n }`,\n {},\n apiGatewayUrl\n );\n return data.cooMyCreatorEarningsSummary;\n },\n });\n};\n\nexport const useRequestCreatorPayout = () => {\n const { apiGatewayUrl } = useCoolAndLovely();\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: async (input: { amount: number; currency: string; notes?: string | null }) => {\n const data = await coolQuery<{ cooRequestCreatorPayout: CooCreatorPayout }>(\n `mutation CooRequestCreatorPayout($input: CooRequestCreatorPayoutInput!) {\n cooRequestCreatorPayout(input: $input) { id status requestedAmount currency createdAt }\n }`,\n { input },\n apiGatewayUrl\n );\n return data.cooRequestCreatorPayout;\n },\n onSuccess: () => {\n void queryClient.invalidateQueries({ queryKey: [QK, 'creator-earnings-summary'] });\n },\n });\n};\n"],"mappings":";;;;;AA2BA,IAAM,IAAK,iBAEL,IAAc,2OAQd,IAAe,uTASf,IAAkB;YACZ,EAAa;;GAQZ,UAAkB;CAC7B,IAAM,EAAE,qBAAkB,GAAkB;AAC5C,QAAO,EAAS;EACd,UAAU,CAAC,GAAI,OAAO;EACtB,SAAS,aACM,MAAM,EACjB,iCAAiC,EAAY,OAC7C,EAAE,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AAO,OACJ,MAAM,EACjB,2LAGA,EAAE,UAAO,EACT,EACD,EACW;EAEd,iBAAiB;AACV,KAAY,kBAAkB,EAAE,UAAU,CAAC,GAAI,2BAA2B,EAAE,CAAC;;EAErF,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { CooAddLookbookEntryInput, CooBrand, CooBrandConnection, CooBrandStatus, CooCollaboration, CooCollaborationStatus, CooCollection, CooCollectionStatus, CooCreateBrandInput, CooCreateCollaborationInput, CooCreateCollectionInput, CooCreateLookInput, CooCreateLookbookInput, CooCreateStyleItemInput, CooCreateWardrobeItemInput, CooLook, CooLookConnection, CooLookOccasion, CooLookbook, CooStyleCategory, CooStyleItem, CooStyleItemConnection, CooStyleItemStatus, CooStyleProfile, CooUpdateBrandInput, CooUpdateCollaborationInput, CooUpdateCollectionInput, CooUpdateLookInput, CooUpdateStyleItemInput, CooUpdateWardrobeItemInput, CooUpsertStyleProfileInput, CooWardrobeItem, CooWardrobeSource, PaginationInput, CooSearchStyleItemsInput, CooSearchLooksInput, CooReviewCollaborationInput } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const coolQuery: <TData>(query: string, variables: Record<string, unknown>, baseUrl?: string) => Promise<TData>;
|
|
4
|
+
export interface ListBrandsArgs {
|
|
5
|
+
status?: CooBrandStatus;
|
|
6
|
+
featured?: boolean;
|
|
7
|
+
pagination?: PaginationInput;
|
|
8
|
+
}
|
|
9
|
+
export declare const useBrands: (args?: ListBrandsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooBrandConnection>, Error>;
|
|
10
|
+
export declare const useBrand: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooBrand | null>, Error>;
|
|
11
|
+
export declare const useCreateBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, CooCreateBrandInput, unknown>;
|
|
12
|
+
export declare const useUpdateBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, {
|
|
13
|
+
id: string;
|
|
14
|
+
input: CooUpdateBrandInput;
|
|
15
|
+
}, unknown>;
|
|
16
|
+
export declare const useTransitionBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, {
|
|
17
|
+
id: string;
|
|
18
|
+
status: CooBrandStatus;
|
|
19
|
+
}, unknown>;
|
|
20
|
+
export declare const useArchiveBrand: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
21
|
+
export interface ListCollectionsArgs {
|
|
22
|
+
brandId?: string;
|
|
23
|
+
status?: CooCollectionStatus;
|
|
24
|
+
}
|
|
25
|
+
export declare const useCollections: (args?: ListCollectionsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollection[]>, Error>;
|
|
26
|
+
export declare const useCollection: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollection | null>, Error>;
|
|
27
|
+
export declare const useCreateCollection: () => import('@tanstack/react-query').UseMutationResult<CooCollection, Error, CooCreateCollectionInput, unknown>;
|
|
28
|
+
export declare const useUpdateCollection: () => import('@tanstack/react-query').UseMutationResult<CooCollection, Error, {
|
|
29
|
+
id: string;
|
|
30
|
+
input: CooUpdateCollectionInput;
|
|
31
|
+
}, unknown>;
|
|
32
|
+
export declare const usePublishCollection: () => import('@tanstack/react-query').UseMutationResult<CooCollection, Error, string, unknown>;
|
|
33
|
+
export declare const useArchiveCollection: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
34
|
+
export interface ListStyleItemsArgs {
|
|
35
|
+
brandId?: string;
|
|
36
|
+
collectionId?: string;
|
|
37
|
+
category?: CooStyleCategory;
|
|
38
|
+
status?: CooStyleItemStatus;
|
|
39
|
+
pagination?: PaginationInput;
|
|
40
|
+
}
|
|
41
|
+
export declare const useStyleItems: (args?: ListStyleItemsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleItemConnection>, Error>;
|
|
42
|
+
export declare const useStyleItem: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleItem | null>, Error>;
|
|
43
|
+
export declare const useCreateStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, CooCreateStyleItemInput, unknown>;
|
|
44
|
+
export declare const useUpdateStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, {
|
|
45
|
+
id: string;
|
|
46
|
+
input: CooUpdateStyleItemInput;
|
|
47
|
+
}, unknown>;
|
|
48
|
+
export declare const useArchiveStyleItem: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
49
|
+
export interface ListLooksArgs {
|
|
50
|
+
authorId?: string;
|
|
51
|
+
occasion?: CooLookOccasion;
|
|
52
|
+
featured?: boolean;
|
|
53
|
+
pagination?: PaginationInput;
|
|
54
|
+
}
|
|
55
|
+
export declare const useLooks: (args?: ListLooksArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooLookConnection>, Error>;
|
|
56
|
+
export declare const useLook: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooLook | null>, Error>;
|
|
57
|
+
export declare const useLooksWithItems: (args?: ListLooksArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
58
|
+
items: CooLook[];
|
|
59
|
+
pageInfo: import('../types').CooPageInfo;
|
|
60
|
+
}>, Error>;
|
|
61
|
+
export declare const useCreateLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, CooCreateLookInput, unknown>;
|
|
62
|
+
export declare const useUpdateLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, {
|
|
63
|
+
id: string;
|
|
64
|
+
input: CooUpdateLookInput;
|
|
65
|
+
}, unknown>;
|
|
66
|
+
export declare const usePublishLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
67
|
+
export declare const useLikeLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
68
|
+
export declare const useUnlikeLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
69
|
+
export declare const useSaveLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
70
|
+
export declare const useUnsaveLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
71
|
+
export declare const useDeleteLook: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
72
|
+
export interface ListCollaborationsArgs {
|
|
73
|
+
brandId?: string;
|
|
74
|
+
creatorId?: string;
|
|
75
|
+
status?: CooCollaborationStatus;
|
|
76
|
+
}
|
|
77
|
+
export declare const useCollaborations: (args?: ListCollaborationsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollaboration[]>, Error>;
|
|
78
|
+
export declare const useCollaboration: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollaboration | null>, Error>;
|
|
79
|
+
export declare const useCreateCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, CooCreateCollaborationInput, unknown>;
|
|
80
|
+
export declare const useUpdateCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, {
|
|
81
|
+
id: string;
|
|
82
|
+
input: CooUpdateCollaborationInput;
|
|
83
|
+
}, unknown>;
|
|
84
|
+
export declare const useTransitionCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, {
|
|
85
|
+
id: string;
|
|
86
|
+
status: CooCollaborationStatus;
|
|
87
|
+
}, unknown>;
|
|
88
|
+
/** Delete a still-PROPOSED collaboration (the svc rejects this once it has moved past PROPOSED). */
|
|
89
|
+
export declare const useDeleteCollaboration: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
90
|
+
export interface ListWardrobeArgs {
|
|
91
|
+
category?: CooStyleCategory;
|
|
92
|
+
source?: CooWardrobeSource;
|
|
93
|
+
}
|
|
94
|
+
export declare const useWardrobeItems: (args?: ListWardrobeArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooWardrobeItem[]>, Error>;
|
|
95
|
+
export declare const useCreateWardrobeItem: () => import('@tanstack/react-query').UseMutationResult<CooWardrobeItem, Error, CooCreateWardrobeItemInput, unknown>;
|
|
96
|
+
export declare const useUpdateWardrobeItem: () => import('@tanstack/react-query').UseMutationResult<CooWardrobeItem, Error, {
|
|
97
|
+
id: string;
|
|
98
|
+
input: CooUpdateWardrobeItemInput;
|
|
99
|
+
}, unknown>;
|
|
100
|
+
export declare const useLogWardrobeWear: () => import('@tanstack/react-query').UseMutationResult<CooWardrobeItem, Error, string, unknown>;
|
|
101
|
+
export declare const useRemoveWardrobeItem: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
102
|
+
export declare const useMyStyleProfile: () => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile | null>, Error>;
|
|
103
|
+
/**
|
|
104
|
+
* A style profile by its own id, honoring CooVisibility (PRIVATE/FOLLOWERS
|
|
105
|
+
* gated server-side). Returns null when not found or not visible to the
|
|
106
|
+
* caller. Disabled until `id` is provided.
|
|
107
|
+
*/
|
|
108
|
+
export declare const useStyleProfile: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile | null>, Error>;
|
|
109
|
+
/**
|
|
110
|
+
* Same visibility gate as `useStyleProfile`, looked up by the profile
|
|
111
|
+
* owner's actor id — powers `/profile/:userId` (the public profile route
|
|
112
|
+
* reached from an author's name/avatar on a Look/Discover/Collaboration
|
|
113
|
+
* card). Disabled until `ownerId` is provided.
|
|
114
|
+
*/
|
|
115
|
+
export declare const useStyleProfileByOwner: (ownerId: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile | null>, Error>;
|
|
116
|
+
export declare const useUpsertStyleProfile: () => import('@tanstack/react-query').UseMutationResult<CooStyleProfile, Error, CooUpsertStyleProfileInput, unknown>;
|
|
117
|
+
export declare const useLookbooks: (ownerId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
118
|
+
entries: import('../types').CooLookbookEntry[];
|
|
119
|
+
id: string;
|
|
120
|
+
workspaceId: string;
|
|
121
|
+
ownerId: string;
|
|
122
|
+
profileId: string;
|
|
123
|
+
name: string;
|
|
124
|
+
description: string | null;
|
|
125
|
+
visibility: import('..').CooVisibility;
|
|
126
|
+
tags: string[];
|
|
127
|
+
cover: import('../types').CooFileRef | null;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
updatedAt: string;
|
|
130
|
+
}[]>, Error>;
|
|
131
|
+
export declare const useCreateLookbook: () => import('@tanstack/react-query').UseMutationResult<CooLookbook, Error, CooCreateLookbookInput, unknown>;
|
|
132
|
+
export declare const useAddLookbookEntry: () => import('@tanstack/react-query').UseMutationResult<{
|
|
133
|
+
id: string;
|
|
134
|
+
lookbookId: string;
|
|
135
|
+
}, Error, CooAddLookbookEntryInput, unknown>;
|
|
136
|
+
export declare const useRemoveLookbookEntry: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
137
|
+
/** Whether the caller currently follows `followeeId`. */
|
|
138
|
+
export declare const useIsFollowing: (followeeId: string | undefined) => import('@tanstack/react-query').UseQueryResult<boolean, Error>;
|
|
139
|
+
export declare const useFollow: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
140
|
+
export declare const useUnfollow: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
141
|
+
/** Style profiles of people the caller follows. */
|
|
142
|
+
export declare const useMyFollowing: () => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile[]>, Error>;
|
|
143
|
+
/** Style profiles of people following the caller. */
|
|
144
|
+
export declare const useMyFollowers: () => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile[]>, Error>;
|
|
145
|
+
export declare const useLookbook: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
146
|
+
entries: import('../types').CooLookbookEntry[];
|
|
147
|
+
id: string;
|
|
148
|
+
workspaceId: string;
|
|
149
|
+
ownerId: string;
|
|
150
|
+
profileId: string;
|
|
151
|
+
name: string;
|
|
152
|
+
description: string | null;
|
|
153
|
+
visibility: import('..').CooVisibility;
|
|
154
|
+
tags: string[];
|
|
155
|
+
cover: import('../types').CooFileRef | null;
|
|
156
|
+
createdAt: string;
|
|
157
|
+
updatedAt: string;
|
|
158
|
+
} | null>, Error>;
|
|
159
|
+
export declare const useDeleteLookbook: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
160
|
+
export interface SearchStyleItemsArgs {
|
|
161
|
+
input: CooSearchStyleItemsInput;
|
|
162
|
+
pagination?: PaginationInput;
|
|
163
|
+
}
|
|
164
|
+
export declare const useSearchStyleItems: (args: SearchStyleItemsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleItemConnection>, Error>;
|
|
165
|
+
export interface SearchLooksArgs {
|
|
166
|
+
input: CooSearchLooksInput;
|
|
167
|
+
pagination?: PaginationInput;
|
|
168
|
+
}
|
|
169
|
+
export declare const useSearchLooks: (args: SearchLooksArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooLookConnection>, Error>;
|
|
170
|
+
export declare const useApproveBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, string, unknown>;
|
|
171
|
+
export declare const useRejectBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, string, unknown>;
|
|
172
|
+
export declare const useReviewCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, {
|
|
173
|
+
id: string;
|
|
174
|
+
input: CooReviewCollaborationInput;
|
|
175
|
+
}, unknown>;
|
|
176
|
+
export declare const useFeatureStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, string, unknown>;
|
|
177
|
+
export declare const useUnfeatureStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, string, unknown>;
|
|
178
|
+
//# sourceMappingURL=useCoolAndLovelyApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,eAAe,sFAqBnD,CAAC;AAMF,eAAO,MAAM,eAAe,2FAiB3B,CAAC;AAEF,eAAO,MAAM,cAAc,2FAiB1B,CAAC;AAEF,eAAO,MAAM,sBAAsB;QAIS,MAAM;WAAS,2BAA2B;WAerF,CAAC;AAEF,eAAO,MAAM,mBAAmB,+FAiB/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,+FAiBjC,CAAC"}
|
|
@@ -868,6 +868,6 @@ var o = "coolandlovely", s = async (e, t, n) => {
|
|
|
868
868
|
});
|
|
869
869
|
};
|
|
870
870
|
//#endregion
|
|
871
|
-
export { se as useAddLookbookEntry, _e as useApproveBrand, T as useArchiveCollection, A as useArchiveStyleItem, te as useBrand, ee as useBrands, U as useCollaboration, H as useCollaborations, x as useCollection, b as useCollections, _ as useCreateBrand, W as useCreateCollaboration, S as useCreateCollection, P as useCreateLook, oe as useCreateLookbook, O as useCreateStyleItem, J as useCreateWardrobeItem, K as useDeleteCollaboration, V as useDeleteLook, me as useDeleteLookbook, be as useFeatureStyleItem, de as useFollow, ue as useIsFollowing, L as useLikeLook, Y as useLogWardrobeWear, M as useLook, $ as useLookbook, ae as useLookbooks, j as useLooks, N as useLooksWithItems, pe as useMyFollowing, Z as useMyStyleProfile, w as usePublishCollection, I as usePublishLook, ve as useRejectBrand, ce as useRemoveLookbookEntry, X as useRemoveWardrobeItem, ye as useReviewCollaboration, z as useSaveLook, ge as useSearchLooks, he as useSearchStyleItems, D as useStyleItem, E as useStyleItems, re as useStyleProfileByOwner, y as useTransitionBrand, G as useTransitionCollaboration, xe as useUnfeatureStyleItem, fe as useUnfollow, R as useUnlikeLook, B as useUnsaveLook, v as useUpdateBrand, ne as useUpdateCollaboration, C as useUpdateCollection, F as useUpdateLook, k as useUpdateStyleItem, ie as useUpsertStyleProfile, q as useWardrobeItems };
|
|
871
|
+
export { s as coolQuery, se as useAddLookbookEntry, _e as useApproveBrand, T as useArchiveCollection, A as useArchiveStyleItem, te as useBrand, ee as useBrands, U as useCollaboration, H as useCollaborations, x as useCollection, b as useCollections, _ as useCreateBrand, W as useCreateCollaboration, S as useCreateCollection, P as useCreateLook, oe as useCreateLookbook, O as useCreateStyleItem, J as useCreateWardrobeItem, K as useDeleteCollaboration, V as useDeleteLook, me as useDeleteLookbook, be as useFeatureStyleItem, de as useFollow, ue as useIsFollowing, L as useLikeLook, Y as useLogWardrobeWear, M as useLook, $ as useLookbook, ae as useLookbooks, j as useLooks, N as useLooksWithItems, pe as useMyFollowing, Z as useMyStyleProfile, w as usePublishCollection, I as usePublishLook, ve as useRejectBrand, ce as useRemoveLookbookEntry, X as useRemoveWardrobeItem, ye as useReviewCollaboration, z as useSaveLook, ge as useSearchLooks, he as useSearchStyleItems, D as useStyleItem, E as useStyleItems, re as useStyleProfileByOwner, y as useTransitionBrand, G as useTransitionCollaboration, xe as useUnfeatureStyleItem, fe as useUnfollow, R as useUnlikeLook, B as useUnsaveLook, v as useUpdateBrand, ne as useUpdateCollaboration, C as useUpdateCollection, F as useUpdateLook, k as useUpdateStyleItem, ie as useUpsertStyleProfile, q as useWardrobeItems };
|
|
872
872
|
|
|
873
873
|
//# sourceMappingURL=useCoolAndLovelyApi.js.map
|