@burdenoff/microfe-coolandlovely 2026.1027.2 → 2026.1028.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/coolandlovely/components/StoreListingCard.d.ts +9 -0
- package/dist/coolandlovely/components/StoreListingCard.d.ts.map +1 -0
- package/dist/coolandlovely/components/StoreListingCard.js +63 -0
- package/dist/coolandlovely/components/StoreListingCard.js.map +1 -0
- package/dist/coolandlovely/components/index.d.ts +1 -0
- package/dist/coolandlovely/components/index.d.ts.map +1 -1
- package/dist/coolandlovely/components/index.js +1 -0
- package/dist/coolandlovely/hooks/index.d.ts +1 -1
- package/dist/coolandlovely/hooks/index.d.ts.map +1 -1
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +8 -0
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts.map +1 -1
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +109 -87
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts.map +1 -1
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +113 -111
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -1
- package/dist/coolandlovely/types/index.d.ts +9 -0
- package/dist/coolandlovely/types/index.d.ts.map +1 -1
- package/dist/generated/global-types.d.ts +4944 -1626
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.d.ts +98128 -34631
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CooStyleItem } from '../types';
|
|
3
|
+
|
|
4
|
+
interface StoreListingCardProps {
|
|
5
|
+
item: Pick<CooStyleItem, 'id' | 'storeProductId' | 'storeListingStatus' | 'storeSyncStatus' | 'storeSyncedAt'>;
|
|
6
|
+
}
|
|
7
|
+
export declare const StoreListingCard: FC<StoreListingCardProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=StoreListingCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreListingCard.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/components/StoreListingCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAa7C,UAAU,qBAAqB;IAC7B,IAAI,EAAE,IAAI,CACR,YAAY,EACZ,IAAI,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,eAAe,CACrF,CAAC;CACH;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiHtD,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { cn as e } from "../utils/cn.js";
|
|
2
|
+
import { useSyncStyleItemStoreListing as t } from "../hooks/useCoolAndLovelyApi.js";
|
|
3
|
+
import { useTr as n } from "../hooks/useTr.js";
|
|
4
|
+
import "../hooks/index.js";
|
|
5
|
+
import { formatDate as r } from "../utils/formatters.js";
|
|
6
|
+
import { AlertTriangle as i, CheckCircle2 as a, EyeOff as o, Loader2 as s, RefreshCw as c, Store as l } from "lucide-react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
import { GlassCard as f } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
//#region src/coolandlovely/components/StoreListingCard.tsx
|
|
10
|
+
var p = {
|
|
11
|
+
success: "bg-status-success-bg-subtle text-status-success-text",
|
|
12
|
+
warning: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
13
|
+
error: "bg-status-error-bg-subtle text-status-error-text",
|
|
14
|
+
neutral: "bg-bg-sunken text-text-secondary"
|
|
15
|
+
}, m = ({ item: m }) => {
|
|
16
|
+
let h = n(), g = t(), _ = m.storeSyncStatus === "FAILED", v = m.storeSyncStatus === "PENDING", y, b, x;
|
|
17
|
+
_ ? (y = "error", b = h("coolandlovely.storeListing.failed", "Sync failed"), x = h("coolandlovely.storeListing.failedHint", "The latest changes could not be sent to the Burdenoff store. Sync now, or they are sent again with the next change to this piece.")) : v ? (y = "neutral", b = h("coolandlovely.storeListing.pending", "Syncing with the Burdenoff store"), x = h("coolandlovely.storeListing.pendingHint", "The listing is being updated. Refresh in a moment to see the result.")) : m.storeListingStatus === "PUBLISHED" ? (y = "success", b = h("coolandlovely.storeListing.published", "Listed in the Burdenoff store"), x = h("coolandlovely.storeListing.publishedHint", "Shoppers can find this piece in the store. Its listing links back here, and CoolAndLovely handles checkout.")) : m.storeListingStatus === "UNLISTED" ? (y = "warning", b = h("coolandlovely.storeListing.unlisted", "Hidden while out of stock"), x = h("coolandlovely.storeListing.unlistedHint", "The listing is kept but hidden from the store until the piece is back in stock.")) : m.storeListingStatus === "ARCHIVED" ? (y = "neutral", b = h("coolandlovely.storeListing.archived", "Taken down from the Burdenoff store"), x = h("coolandlovely.storeListing.archivedHint", "Only pieces that are on sale, with a price, in a live brand storefront are listed.")) : (y = "neutral", b = h("coolandlovely.storeListing.notListed", "Not listed in the Burdenoff store"), x = h("coolandlovely.storeListing.notListedHint", "Pieces that are on sale, with a price, in a live brand storefront are listed automatically."));
|
|
18
|
+
let S = _ ? i : v ? s : y === "success" ? a : y === "warning" ? o : l;
|
|
19
|
+
return /* @__PURE__ */ d(f, {
|
|
20
|
+
treatment: "plain",
|
|
21
|
+
className: "space-y-3 p-5",
|
|
22
|
+
"data-testid": "coo-store-listing-card",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ u("h3", {
|
|
25
|
+
className: "text-sm font-semibold text-text-primary",
|
|
26
|
+
children: h("coolandlovely.storeListing.title", "Burdenoff store")
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ d("span", {
|
|
29
|
+
className: e("inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium", p[y]),
|
|
30
|
+
"data-testid": "coo-store-listing-status",
|
|
31
|
+
children: [/* @__PURE__ */ u(S, {
|
|
32
|
+
className: e("h-3.5 w-3.5", v && "animate-spin"),
|
|
33
|
+
"aria-hidden": "true"
|
|
34
|
+
}), b]
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ u("p", {
|
|
37
|
+
className: "text-sm text-text-secondary",
|
|
38
|
+
children: x
|
|
39
|
+
}),
|
|
40
|
+
m.storeSyncedAt && /* @__PURE__ */ u("p", {
|
|
41
|
+
className: "text-xs text-text-secondary",
|
|
42
|
+
children: h("coolandlovely.storeListing.lastSynced", "Last synced {{date}}", { date: r(m.storeSyncedAt) })
|
|
43
|
+
}),
|
|
44
|
+
_ && /* @__PURE__ */ d("button", {
|
|
45
|
+
type: "button",
|
|
46
|
+
disabled: g.isPending,
|
|
47
|
+
onClick: () => g.mutate(m.id),
|
|
48
|
+
"data-testid": "coo-store-listing-sync",
|
|
49
|
+
className: "inline-flex w-full items-center justify-center gap-2 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:opacity-50",
|
|
50
|
+
children: [g.isPending ? /* @__PURE__ */ u(s, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ u(c, { className: "h-4 w-4" }), h("coolandlovely.storeListing.syncNow", "Sync now")]
|
|
51
|
+
}),
|
|
52
|
+
g.isError && /* @__PURE__ */ u("p", {
|
|
53
|
+
role: "alert",
|
|
54
|
+
className: "text-xs text-status-error-text",
|
|
55
|
+
children: h("coolandlovely.storeListing.syncError", "Could not reach the store right now. Try again in a moment.")
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { m as StoreListingCard };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=StoreListingCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreListingCard.js","names":[],"sources":["../../../src/coolandlovely/components/StoreListingCard.tsx"],"sourcesContent":["/**\n * StoreListingCard — a piece's listing in the Burdenoff store catalogue (BOFF-3430 / BOFF-9666).\n * @module coolandlovely/components\n *\n * On-sale pieces of a live brand storefront are mirrored into the Burdenoff store as discovery\n * listings that link back here; CoolAndLovely stays the seller. The service keeps the listing in\n * sync on every change of the piece or its brand and records the outcome on the piece. This card\n * shows that state and offers \"Sync now\" when the last push failed.\n */\n\nimport type { FC } from 'react';\nimport { AlertTriangle, CheckCircle2, EyeOff, Loader2, RefreshCw, Store } from 'lucide-react';\nimport { GlassCard } from '@burdenoff/fe-libs/ui';\n\nimport { useTr } from '../hooks';\nimport { useSyncStyleItemStoreListing } from '../hooks/useCoolAndLovelyApi';\nimport type { CooStyleItem } from '../types';\nimport { cn } from '../utils/cn';\nimport { formatDate } from '../utils/formatters';\n\ntype Tone = 'success' | 'warning' | 'error' | 'neutral';\n\nconst toneStyles: Record<Tone, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n error: 'bg-status-error-bg-subtle text-status-error-text',\n neutral: 'bg-bg-sunken text-text-secondary',\n};\n\ninterface StoreListingCardProps {\n item: Pick<\n CooStyleItem,\n 'id' | 'storeProductId' | 'storeListingStatus' | 'storeSyncStatus' | 'storeSyncedAt'\n >;\n}\n\nexport const StoreListingCard: FC<StoreListingCardProps> = ({ item }) => {\n const tr = useTr();\n const sync = useSyncStyleItemStoreListing();\n\n const failed = item.storeSyncStatus === 'FAILED';\n const pending = item.storeSyncStatus === 'PENDING';\n\n let tone: Tone;\n let label: string;\n let hint: string;\n if (failed) {\n tone = 'error';\n label = tr('coolandlovely.storeListing.failed', 'Sync failed');\n hint = tr(\n 'coolandlovely.storeListing.failedHint',\n 'The latest changes could not be sent to the Burdenoff store. Sync now, or they are sent again with the next change to this piece.'\n );\n } else if (pending) {\n tone = 'neutral';\n label = tr('coolandlovely.storeListing.pending', 'Syncing with the Burdenoff store');\n hint = tr(\n 'coolandlovely.storeListing.pendingHint',\n 'The listing is being updated. Refresh in a moment to see the result.'\n );\n } else if (item.storeListingStatus === 'PUBLISHED') {\n tone = 'success';\n label = tr('coolandlovely.storeListing.published', 'Listed in the Burdenoff store');\n hint = tr(\n 'coolandlovely.storeListing.publishedHint',\n 'Shoppers can find this piece in the store. Its listing links back here, and CoolAndLovely handles checkout.'\n );\n } else if (item.storeListingStatus === 'UNLISTED') {\n tone = 'warning';\n label = tr('coolandlovely.storeListing.unlisted', 'Hidden while out of stock');\n hint = tr(\n 'coolandlovely.storeListing.unlistedHint',\n 'The listing is kept but hidden from the store until the piece is back in stock.'\n );\n } else if (item.storeListingStatus === 'ARCHIVED') {\n tone = 'neutral';\n label = tr('coolandlovely.storeListing.archived', 'Taken down from the Burdenoff store');\n hint = tr(\n 'coolandlovely.storeListing.archivedHint',\n 'Only pieces that are on sale, with a price, in a live brand storefront are listed.'\n );\n } else {\n tone = 'neutral';\n label = tr('coolandlovely.storeListing.notListed', 'Not listed in the Burdenoff store');\n hint = tr(\n 'coolandlovely.storeListing.notListedHint',\n 'Pieces that are on sale, with a price, in a live brand storefront are listed automatically.'\n );\n }\n\n const Icon = failed\n ? AlertTriangle\n : pending\n ? Loader2\n : tone === 'success'\n ? CheckCircle2\n : tone === 'warning'\n ? EyeOff\n : Store;\n\n return (\n <GlassCard treatment=\"plain\" className=\"space-y-3 p-5\" data-testid=\"coo-store-listing-card\">\n <h3 className=\"text-sm font-semibold text-text-primary\">\n {tr('coolandlovely.storeListing.title', 'Burdenoff store')}\n </h3>\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium',\n toneStyles[tone]\n )}\n data-testid=\"coo-store-listing-status\"\n >\n <Icon className={cn('h-3.5 w-3.5', pending && 'animate-spin')} aria-hidden=\"true\" />\n {label}\n </span>\n <p className=\"text-sm text-text-secondary\">{hint}</p>\n {item.storeSyncedAt && (\n <p className=\"text-xs text-text-secondary\">\n {tr('coolandlovely.storeListing.lastSynced', 'Last synced {{date}}', {\n date: formatDate(item.storeSyncedAt),\n })}\n </p>\n )}\n {failed && (\n <button\n type=\"button\"\n disabled={sync.isPending}\n onClick={() => sync.mutate(item.id)}\n data-testid=\"coo-store-listing-sync\"\n className=\"inline-flex w-full items-center justify-center gap-2 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken disabled:opacity-50\"\n >\n {sync.isPending ? (\n <Loader2 className=\"h-4 w-4 animate-spin\" />\n ) : (\n <RefreshCw className=\"h-4 w-4\" />\n )}\n {tr('coolandlovely.storeListing.syncNow', 'Sync now')}\n </button>\n )}\n {sync.isError && (\n <p role=\"alert\" className=\"text-xs text-status-error-text\">\n {tr(\n 'coolandlovely.storeListing.syncError',\n 'Could not reach the store right now. Try again in a moment.'\n )}\n </p>\n )}\n </GlassCard>\n );\n};\n"],"mappings":";;;;;;;;;AAsBA,IAAM,IAAmC;CACvC,SAAS;CACT,SAAS;CACT,OAAO;CACP,SAAS;CACV,EASY,KAA+C,EAAE,cAAW;CACvE,IAAM,IAAK,GAAO,EACZ,IAAO,GAA8B,EAErC,IAAS,EAAK,oBAAoB,UAClC,IAAU,EAAK,oBAAoB,WAErC,GACA,GACA;AACJ,CAAI,KACF,IAAO,SACP,IAAQ,EAAG,qCAAqC,cAAc,EAC9D,IAAO,EACL,yCACA,oIACD,IACQ,KACT,IAAO,WACP,IAAQ,EAAG,sCAAsC,mCAAmC,EACpF,IAAO,EACL,0CACA,uEACD,IACQ,EAAK,uBAAuB,eACrC,IAAO,WACP,IAAQ,EAAG,wCAAwC,gCAAgC,EACnF,IAAO,EACL,4CACA,8GACD,IACQ,EAAK,uBAAuB,cACrC,IAAO,WACP,IAAQ,EAAG,uCAAuC,4BAA4B,EAC9E,IAAO,EACL,2CACA,kFACD,IACQ,EAAK,uBAAuB,cACrC,IAAO,WACP,IAAQ,EAAG,uCAAuC,sCAAsC,EACxF,IAAO,EACL,2CACA,qFACD,KAED,IAAO,WACP,IAAQ,EAAG,wCAAwC,oCAAoC,EACvF,IAAO,EACL,4CACA,8FACD;CAGH,IAAM,IAAO,IACT,IACA,IACE,IACA,MAAS,YACP,IACA,MAAS,YACP,IACA;AAEV,QACE,kBAAC,GAAD;EAAW,WAAU;EAAQ,WAAU;EAAgB,eAAY;YAAnE;GACE,kBAAC,MAAD;IAAI,WAAU;cACX,EAAG,oCAAoC,kBAAkB;IACvD,CAAA;GACL,kBAAC,QAAD;IACE,WAAW,EACT,+EACA,EAAW,GACZ;IACD,eAAY;cALd,CAOE,kBAAC,GAAD;KAAM,WAAW,EAAG,eAAe,KAAW,eAAe;KAAE,eAAY;KAAS,CAAA,EACnF,EACI;;GACP,kBAAC,KAAD;IAAG,WAAU;cAA+B;IAAS,CAAA;GACpD,EAAK,iBACJ,kBAAC,KAAD;IAAG,WAAU;cACV,EAAG,yCAAyC,wBAAwB,EACnE,MAAM,EAAW,EAAK,cAAc,EACrC,CAAC;IACA,CAAA;GAEL,KACC,kBAAC,UAAD;IACE,MAAK;IACL,UAAU,EAAK;IACf,eAAe,EAAK,OAAO,EAAK,GAAG;IACnC,eAAY;IACZ,WAAU;cALZ,CAOG,EAAK,YACJ,kBAAC,GAAD,EAAS,WAAU,wBAAyB,CAAA,GAE5C,kBAAC,GAAD,EAAW,WAAU,WAAY,CAAA,EAElC,EAAG,sCAAsC,WAAW,CAC9C;;GAEV,EAAK,WACJ,kBAAC,KAAD;IAAG,MAAK;IAAQ,WAAU;cACvB,EACC,wCACA,8DACD;IACC,CAAA;GAEI"}
|
|
@@ -29,4 +29,5 @@ export { ShopItemCard } from './ShopItemCard';
|
|
|
29
29
|
export { ColourSwatchRow } from './ColourSwatchRow';
|
|
30
30
|
export { VisibilityChip } from './VisibilityChip';
|
|
31
31
|
export { FeedbackWidget } from './FeedbackWidget';
|
|
32
|
+
export { StoreListingCard } from './StoreListingCard';
|
|
32
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,M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AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Hooks Index
|
|
3
3
|
* @module coolandlovely/hooks
|
|
4
4
|
*/
|
|
5
|
-
export { useBrands, useBrand, useCreateBrand, useUpdateBrand, useTransitionBrand, useArchiveBrand, useCollections, useCollection, useCreateCollection, useUpdateCollection, usePublishCollection, useArchiveCollection, useStyleItems, useStyleItem, useCreateStyleItem, useUpdateStyleItem, useArchiveStyleItem, useLooks, useLooksWithItems, useLook, useCreateLook, useUpdateLook, usePublishLook, useLikeLook, useUnlikeLook, useSaveLook, useUnsaveLook, useDeleteLook, useCollaborations, useCollaboration, useCreateCollaboration, useUpdateCollaboration, useTransitionCollaboration, useDeleteCollaboration, useWardrobeItems, useCreateWardrobeItem, useUpdateWardrobeItem, useLogWardrobeWear, useRemoveWardrobeItem, useMyStyleProfile, useStyleProfile, useStyleProfileByOwner, useUpsertStyleProfile, useLookbooks, useLookbook, useCreateLookbook, useAddLookbookEntry, useRemoveLookbookEntry, useDeleteLookbook, useIsFollowing, useFollow, useUnfollow, useMyFollowing, useMyFollowers, useSearchStyleItems, useSearchLooks, useApproveBrand, useRejectBrand, useReviewCollaboration, useFeatureStyleItem, useUnfeatureStyleItem, } from './useCoolAndLovelyApi';
|
|
5
|
+
export { useBrands, useBrand, useCreateBrand, useUpdateBrand, useTransitionBrand, useArchiveBrand, useCollections, useCollection, useCreateCollection, useUpdateCollection, usePublishCollection, useArchiveCollection, useStyleItems, useStyleItem, useCreateStyleItem, useUpdateStyleItem, useArchiveStyleItem, useSyncStyleItemStoreListing, useLooks, useLooksWithItems, useLook, useCreateLook, useUpdateLook, usePublishLook, useLikeLook, useUnlikeLook, useSaveLook, useUnsaveLook, useDeleteLook, useCollaborations, useCollaboration, useCreateCollaboration, useUpdateCollaboration, useTransitionCollaboration, useDeleteCollaboration, useWardrobeItems, useCreateWardrobeItem, useUpdateWardrobeItem, useLogWardrobeWear, useRemoveWardrobeItem, useMyStyleProfile, useStyleProfile, useStyleProfileByOwner, useUpsertStyleProfile, useLookbooks, useLookbook, useCreateLookbook, useAddLookbookEntry, useRemoveLookbookEntry, useDeleteLookbook, useIsFollowing, useFollow, useUnfollow, useMyFollowing, useMyFollowers, useSearchStyleItems, useSearchLooks, useApproveBrand, useRejectBrand, useReviewCollaboration, useFeatureStyleItem, useUnfeatureStyleItem, } from './useCoolAndLovelyApi';
|
|
6
6
|
export type { ListBrandsArgs, ListCollectionsArgs, ListStyleItemsArgs, ListLooksArgs, ListCollaborationsArgs, ListWardrobeArgs, SearchStyleItemsArgs, SearchLooksArgs, } from './useCoolAndLovelyApi';
|
|
7
7
|
export { uploadImageToFiles, useFileUrl, COO_FILE_FOLDERS } from './useFiles';
|
|
8
8
|
export type { UploadedImage, CooFileFolder } from './useFiles';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,eAAe,EAEf,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EAEpB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,eAAe,EAEf,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EAEpB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAE5B,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EAEb,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EAEtB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EAErB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EAErB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EAEjB,cAAc,EACd,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EAEd,mBAAmB,EACnB,cAAc,EAEd,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9E,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG/D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACjE,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -47,6 +47,14 @@ export declare const useUpdateStyleItem: () => import('@tanstack/react-query').U
|
|
|
47
47
|
id: string;
|
|
48
48
|
input: CooUpdateStyleItemInput;
|
|
49
49
|
}, unknown>;
|
|
50
|
+
/**
|
|
51
|
+
* Re-drive the push of a piece to its Burdenoff store catalogue listing
|
|
52
|
+
* (`cooSyncStyleItemStoreListing`, BOFF-3430). Listings normally follow every
|
|
53
|
+
* change automatically; this is the manual retry for a FAILED sync. The
|
|
54
|
+
* service records a failed push on the piece rather than throwing, so the
|
|
55
|
+
* returned item carries the new outcome either way.
|
|
56
|
+
*/
|
|
57
|
+
export declare const useSyncStyleItemStoreListing: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, string, unknown>;
|
|
50
58
|
export declare const useArchiveStyleItem: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
51
59
|
export interface ListLooksArgs {
|
|
52
60
|
authorId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCoolAndLovelyApi.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useCoolAndLovelyApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,OAAO,KAAK,EACV,wBAAwB,EACxB,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAEhB,sBAAsB,EACtB,aAAa,EAEb,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,OAAO,EACP,iBAAiB,EAEjB,eAAe,EACf,WAAW,EAEX,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EAEf,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,eAAe,EAEf,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,SAAS,GAAU,KAAK,EACnC,OAAO,MAAM,EACb,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,MAAM,KACf,OAAO,CAAC,KAAK,CAwBf,CAAC;
|
|
1
|
+
{"version":3,"file":"useCoolAndLovelyApi.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useCoolAndLovelyApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,OAAO,KAAK,EACV,wBAAwB,EACxB,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAEhB,sBAAsB,EACtB,aAAa,EAEb,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,0BAA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