@burdenoff/microfe-coolandlovely 2026.706.1 → 2026.706.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.
Files changed (89) hide show
  1. package/dist/coolandlovely/CoolAndLovelyRoot.js +62 -46
  2. package/dist/coolandlovely/CoolAndLovelyRoot.js.map +1 -1
  3. package/dist/coolandlovely/CoolAndLovelyRoutes.js +14 -6
  4. package/dist/coolandlovely/CoolAndLovelyRoutes.js.map +1 -1
  5. package/dist/coolandlovely/components/ActorName.js +29 -0
  6. package/dist/coolandlovely/components/ActorName.js.map +1 -0
  7. package/dist/coolandlovely/components/AddToLookbookButton.js +81 -0
  8. package/dist/coolandlovely/components/AddToLookbookButton.js.map +1 -0
  9. package/dist/coolandlovely/components/BrandCover.js +39 -0
  10. package/dist/coolandlovely/components/BrandCover.js.map +1 -0
  11. package/dist/coolandlovely/components/BrandCreatorAvatars.js +57 -0
  12. package/dist/coolandlovely/components/BrandCreatorAvatars.js.map +1 -0
  13. package/dist/coolandlovely/components/ColourSwatchRow.js +86 -0
  14. package/dist/coolandlovely/components/ColourSwatchRow.js.map +1 -0
  15. package/dist/coolandlovely/components/Comments.js +109 -0
  16. package/dist/coolandlovely/components/Comments.js.map +1 -0
  17. package/dist/coolandlovely/components/Field.js +22 -2
  18. package/dist/coolandlovely/components/Field.js.map +1 -1
  19. package/dist/coolandlovely/components/FileImage.js +17 -0
  20. package/dist/coolandlovely/components/FileImage.js.map +1 -0
  21. package/dist/coolandlovely/components/FollowButton.js +24 -0
  22. package/dist/coolandlovely/components/FollowButton.js.map +1 -0
  23. package/dist/coolandlovely/components/ImageUploadField.js +153 -0
  24. package/dist/coolandlovely/components/ImageUploadField.js.map +1 -0
  25. package/dist/coolandlovely/components/LookCard.js +77 -0
  26. package/dist/coolandlovely/components/LookCard.js.map +1 -0
  27. package/dist/coolandlovely/components/MetricsCard.js +1 -1
  28. package/dist/coolandlovely/components/MetricsCard.js.map +1 -1
  29. package/dist/coolandlovely/components/ShopItemCard.js +45 -0
  30. package/dist/coolandlovely/components/ShopItemCard.js.map +1 -0
  31. package/dist/coolandlovely/components/StepTracker.js +35 -0
  32. package/dist/coolandlovely/components/StepTracker.js.map +1 -0
  33. package/dist/coolandlovely/components/Thumbnail.js +25 -14
  34. package/dist/coolandlovely/components/Thumbnail.js.map +1 -1
  35. package/dist/coolandlovely/components/VisibilityChip.js +32 -0
  36. package/dist/coolandlovely/components/VisibilityChip.js.map +1 -0
  37. package/dist/coolandlovely/hooks/index.js +2 -0
  38. package/dist/coolandlovely/hooks/useComments.js +68 -0
  39. package/dist/coolandlovely/hooks/useComments.js.map +1 -0
  40. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +155 -60
  41. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
  42. package/dist/coolandlovely/hooks/useFiles.js +111 -0
  43. package/dist/coolandlovely/hooks/useFiles.js.map +1 -0
  44. package/dist/coolandlovely/pages/HomePage.js +130 -133
  45. package/dist/coolandlovely/pages/HomePage.js.map +1 -1
  46. package/dist/coolandlovely/pages/brands/BrandDetailPage.js +261 -228
  47. package/dist/coolandlovely/pages/brands/BrandDetailPage.js.map +1 -1
  48. package/dist/coolandlovely/pages/brands/BrandFormPage.js +146 -104
  49. package/dist/coolandlovely/pages/brands/BrandFormPage.js.map +1 -1
  50. package/dist/coolandlovely/pages/brands/BrandsListPage.js +13 -11
  51. package/dist/coolandlovely/pages/brands/BrandsListPage.js.map +1 -1
  52. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +117 -95
  53. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js.map +1 -1
  54. package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js +1 -1
  55. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js +50 -43
  56. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js.map +1 -1
  57. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js +134 -107
  58. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js.map +1 -1
  59. package/dist/coolandlovely/pages/collections/CollectionFormPage.js +117 -102
  60. package/dist/coolandlovely/pages/collections/CollectionFormPage.js.map +1 -1
  61. package/dist/coolandlovely/pages/collections/CollectionsListPage.js +59 -54
  62. package/dist/coolandlovely/pages/collections/CollectionsListPage.js.map +1 -1
  63. package/dist/coolandlovely/pages/discover/DiscoverPage.js +223 -0
  64. package/dist/coolandlovely/pages/discover/DiscoverPage.js.map +1 -0
  65. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +176 -144
  66. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -1
  67. package/dist/coolandlovely/pages/items/StyleItemFormPage.js +144 -130
  68. package/dist/coolandlovely/pages/items/StyleItemFormPage.js.map +1 -1
  69. package/dist/coolandlovely/pages/items/StyleItemsListPage.js +73 -62
  70. package/dist/coolandlovely/pages/items/StyleItemsListPage.js.map +1 -1
  71. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js +215 -102
  72. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js.map +1 -1
  73. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js +115 -86
  74. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js.map +1 -1
  75. package/dist/coolandlovely/pages/looks/LookDetailPage.js +217 -155
  76. package/dist/coolandlovely/pages/looks/LookDetailPage.js.map +1 -1
  77. package/dist/coolandlovely/pages/looks/LookFormPage.js +147 -96
  78. package/dist/coolandlovely/pages/looks/LookFormPage.js.map +1 -1
  79. package/dist/coolandlovely/pages/looks/LooksListPage.js +60 -95
  80. package/dist/coolandlovely/pages/looks/LooksListPage.js.map +1 -1
  81. package/dist/coolandlovely/pages/profile/StyleProfilePage.js +376 -146
  82. package/dist/coolandlovely/pages/profile/StyleProfilePage.js.map +1 -1
  83. package/dist/coolandlovely/pages/trends/TrendsPage.js +249 -0
  84. package/dist/coolandlovely/pages/trends/TrendsPage.js.map +1 -0
  85. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js +136 -88
  86. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js.map +1 -1
  87. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +75 -74
  88. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -1
  89. package/package.json +1 -1
@@ -15,7 +15,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
15
15
  if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
16
16
  if (!r.data) throw Error("GraphQL response did not include data");
17
17
  return /^\s*mutation\b/.test(e) && a(), r.data;
18
- }, c = "\n id workspaceId name handle tagline bio aesthetics tags websiteUrl\n isFeatured status logo { id } cover { id } createdAt updatedAt\n", l = "\n id workspaceId brandId name description season status tags\n cover { id } publishAt endAt createdAt updatedAt\n", u = "\n id workspaceId brandId collectionId name description category status\n sku price currency colours sizes materials tags image { id }\n createdAt updatedAt\n", d = "\n id workspaceId authorId title caption occasion visibility isFeatured\n likeCount saveCount collaborationId image { id } tags publishedAt\n createdAt updatedAt\n", f = "\n id workspaceId brandId creatorId collectionId title brief role status\n compensation currency tags startDate endDate publishedAt createdAt updatedAt\n", p = "\n id workspaceId profileId name category source brandName colour size notes\n styleItemId timesWorn lastWornAt tags image { id } createdAt updatedAt\n", m = "\n id workspaceId ownerId displayName bio visibility stylePreferences\n palette favouriteBrands sizes createdAt updatedAt\n", h = "\n id workspaceId ownerId profileId name description visibility tags\n cover { id } createdAt updatedAt\n", g = (t = {}) => {
18
+ }, c = "\n id workspaceId name handle tagline bio aesthetics tags websiteUrl\n isFeatured status logo { id } cover { id } createdAt updatedAt\n", l = "\n id workspaceId brandId name description season status tags\n cover { id } publishAt endAt createdAt updatedAt\n", u = "\n id workspaceId brandId collectionId name description category status\n sku price currency colours sizes materials tags image { id }\n createdAt updatedAt\n", d = "\n id workspaceId authorId title caption occasion visibility isFeatured\n likeCount saveCount collaborationId image { id } tags publishedAt\n createdAt updatedAt\n", f = "\n id workspaceId lookId styleItemId position styling createdAt updatedAt\n styleItem { id name category price currency brand { id name handle } image { id } }\n", p = "\n id workspaceId brandId creatorId collectionId title brief role status\n compensation currency tags startDate endDate publishedAt createdAt updatedAt\n", m = "\n id workspaceId profileId name category source brandName colour size notes\n styleItemId timesWorn lastWornAt tags image { id } createdAt updatedAt\n", h = "\n id workspaceId ownerId displayName bio visibility stylePreferences\n palette favouriteBrands sizes createdAt updatedAt\n isFollowedByMe followerCount followingCount\n", g = "\n id workspaceId ownerId profileId name description visibility tags\n cover { id } createdAt updatedAt\n", _ = (t = {}) => {
19
19
  let { apiGatewayUrl: r } = e();
20
20
  return n({
21
21
  queryKey: [
@@ -37,7 +37,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
37
37
  }
38
38
  }, r)).cooListBrands
39
39
  });
40
- }, _ = (t) => {
40
+ }, v = (t) => {
41
41
  let { apiGatewayUrl: r } = e();
42
42
  return n({
43
43
  queryKey: [
@@ -54,7 +54,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
54
54
  }`, { id: t }, r)).cooBrand,
55
55
  enabled: !!t
56
56
  });
57
- }, v = () => {
57
+ }, y = () => {
58
58
  let n = r(), { apiGatewayUrl: i } = e();
59
59
  return t({
60
60
  mutationFn: async (e) => (await s(`mutation CooCreateBrand($input: CooCreateBrandInput!) {
@@ -64,7 +64,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
64
64
  n.invalidateQueries({ queryKey: [o, "brands"] });
65
65
  }
66
66
  });
67
- }, y = () => {
67
+ }, b = () => {
68
68
  let n = r(), { apiGatewayUrl: i } = e();
69
69
  return t({
70
70
  mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateBrand($id: ID!, $input: CooUpdateBrandInput!) {
@@ -81,7 +81,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
81
81
  ] });
82
82
  }
83
83
  });
84
- }, b = () => {
84
+ }, x = () => {
85
85
  let n = r(), { apiGatewayUrl: i } = e();
86
86
  return t({
87
87
  mutationFn: async ({ id: e, status: t }) => (await s(`mutation CooTransitionBrand($id: ID!, $status: CooBrandStatus!) {
@@ -98,7 +98,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
98
98
  ] });
99
99
  }
100
100
  });
101
- }, x = (t = {}) => {
101
+ }, S = (t = {}) => {
102
102
  let { apiGatewayUrl: r } = e();
103
103
  return n({
104
104
  queryKey: [
@@ -116,7 +116,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
116
116
  status: t.status
117
117
  }, r)).cooListCollections
118
118
  });
119
- }, S = (t) => {
119
+ }, C = (t) => {
120
120
  let { apiGatewayUrl: r } = e();
121
121
  return n({
122
122
  queryKey: [
@@ -133,7 +133,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
133
133
  }`, { id: t }, r)).cooCollection,
134
134
  enabled: !!t
135
135
  });
136
- }, C = () => {
136
+ }, w = () => {
137
137
  let n = r(), { apiGatewayUrl: i } = e();
138
138
  return t({
139
139
  mutationFn: async (e) => (await s(`mutation CooCreateCollection($input: CooCreateCollectionInput!) {
@@ -143,7 +143,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
143
143
  n.invalidateQueries({ queryKey: [o, "collections"] });
144
144
  }
145
145
  });
146
- }, w = () => {
146
+ }, T = () => {
147
147
  let n = r(), { apiGatewayUrl: i } = e();
148
148
  return t({
149
149
  mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateCollection($id: ID!, $input: CooUpdateCollectionInput!) {
@@ -160,7 +160,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
160
160
  ] });
161
161
  }
162
162
  });
163
- }, T = () => {
163
+ }, E = () => {
164
164
  let n = r(), { apiGatewayUrl: i } = e();
165
165
  return t({
166
166
  mutationFn: async (e) => (await s(`mutation CooPublishCollection($id: ID!) {
@@ -174,7 +174,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
174
174
  ] });
175
175
  }
176
176
  });
177
- }, E = (t = {}) => {
177
+ }, D = (t = {}) => {
178
178
  let { apiGatewayUrl: r } = e();
179
179
  return n({
180
180
  queryKey: [
@@ -204,7 +204,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
204
204
  }
205
205
  }, r)).cooListStyleItems
206
206
  });
207
- }, D = (t) => {
207
+ }, O = (t) => {
208
208
  let { apiGatewayUrl: r } = e();
209
209
  return n({
210
210
  queryKey: [
@@ -221,7 +221,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
221
221
  }`, { id: t }, r)).cooStyleItem,
222
222
  enabled: !!t
223
223
  });
224
- }, O = () => {
224
+ }, k = () => {
225
225
  let n = r(), { apiGatewayUrl: i } = e();
226
226
  return t({
227
227
  mutationFn: async (e) => (await s(`mutation CooCreateStyleItem($input: CooCreateStyleItemInput!) {
@@ -231,7 +231,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
231
231
  n.invalidateQueries({ queryKey: [o, "style-items"] });
232
232
  }
233
233
  });
234
- }, k = () => {
234
+ }, A = () => {
235
235
  let n = r(), { apiGatewayUrl: i } = e();
236
236
  return t({
237
237
  mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateStyleItem($id: ID!, $input: CooUpdateStyleItemInput!) {
@@ -248,7 +248,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
248
248
  ] });
249
249
  }
250
250
  });
251
- }, A = () => {
251
+ }, j = () => {
252
252
  let n = r(), { apiGatewayUrl: i } = e();
253
253
  return t({
254
254
  mutationFn: async (e) => (await s("mutation CooArchiveStyleItem($id: ID!) { cooArchiveStyleItem(id: $id) }", { id: e }, i)).cooArchiveStyleItem,
@@ -256,7 +256,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
256
256
  n.invalidateQueries({ queryKey: [o, "style-items"] });
257
257
  }
258
258
  });
259
- }, j = (t = {}) => {
259
+ }, M = (t = {}) => {
260
260
  let { apiGatewayUrl: r } = e();
261
261
  return n({
262
262
  queryKey: [
@@ -281,7 +281,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
281
281
  }
282
282
  }, r)).cooListLooks
283
283
  });
284
- }, M = (t) => {
284
+ }, N = (t) => {
285
285
  let { apiGatewayUrl: r } = e();
286
286
  return n({
287
287
  queryKey: [
@@ -292,57 +292,96 @@ var o = "coolandlovely", s = async (e, t, n) => {
292
292
  queryFn: async () => (await s(`query CooLook($id: ID!) {
293
293
  cooLook(id: $id) {
294
294
  ${d}
295
- items {
296
- id lookId styleItemId position styling
297
- styleItem { id name category price currency }
298
- }
295
+ items { ${f} }
299
296
  }
300
297
  }`, { id: t }, r)).cooLook,
301
298
  enabled: !!t
302
299
  });
303
- }, N = () => {
300
+ }, P = (t = {}) => {
301
+ let { apiGatewayUrl: r } = e();
302
+ return n({
303
+ queryKey: [
304
+ o,
305
+ "looks-with-items",
306
+ t
307
+ ],
308
+ queryFn: async () => (await s(`query CooListLooksWithItems(
309
+ $authorId: ID, $occasion: CooLookOccasion, $featured: Boolean, $pagination: PaginationInput
310
+ ) {
311
+ cooListLooks(authorId: $authorId, occasion: $occasion, featured: $featured, pagination: $pagination) {
312
+ items { ${d} items { ${f} } }
313
+ pageInfo { cursor hasMore }
314
+ }
315
+ }`, {
316
+ authorId: t.authorId,
317
+ occasion: t.occasion,
318
+ featured: t.featured,
319
+ pagination: t.pagination ?? {
320
+ limit: 50,
321
+ offset: 0
322
+ }
323
+ }, r)).cooListLooks
324
+ });
325
+ }, F = () => {
304
326
  let n = r(), { apiGatewayUrl: i } = e();
305
327
  return t({
306
328
  mutationFn: async (e) => (await s(`mutation CooCreateLook($input: CooCreateLookInput!) {
307
329
  cooCreateLook(input: $input) { ${d} }
308
330
  }`, { input: e }, i)).cooCreateLook,
309
331
  onSuccess: () => {
310
- n.invalidateQueries({ queryKey: [o, "looks"] });
332
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [o, "looks-with-items"] });
311
333
  }
312
334
  });
313
- }, P = () => {
335
+ }, I = () => {
336
+ let n = r(), { apiGatewayUrl: i } = e();
337
+ return t({
338
+ mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateLook($id: ID!, $input: CooUpdateLookInput!) {
339
+ cooUpdateLook(id: $id, input: $input) { ${d} }
340
+ }`, {
341
+ id: e,
342
+ input: t
343
+ }, i)).cooUpdateLook,
344
+ onSuccess: (e) => {
345
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [o, "looks-with-items"] }), n.invalidateQueries({ queryKey: [
346
+ o,
347
+ "look",
348
+ e.id
349
+ ] });
350
+ }
351
+ });
352
+ }, ee = () => {
314
353
  let n = r(), { apiGatewayUrl: i } = e();
315
354
  return t({
316
355
  mutationFn: async (e) => (await s(`mutation CooPublishLook($id: ID!) { cooPublishLook(id: $id) { ${d} } }`, { id: e }, i)).cooPublishLook,
317
356
  onSuccess: (e) => {
318
- n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [
357
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [o, "looks-with-items"] }), n.invalidateQueries({ queryKey: [
319
358
  o,
320
359
  "look",
321
360
  e.id
322
361
  ] });
323
362
  }
324
363
  });
325
- }, F = () => {
364
+ }, L = () => {
326
365
  let n = r(), { apiGatewayUrl: i } = e();
327
366
  return t({
328
367
  mutationFn: async (e) => (await s(`mutation CooLikeLook($id: ID!) { cooLikeLook(id: $id) { ${d} } }`, { id: e }, i)).cooLikeLook,
329
368
  onSuccess: (e) => {
330
- n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [
369
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [o, "looks-with-items"] }), n.invalidateQueries({ queryKey: [
331
370
  o,
332
371
  "look",
333
372
  e.id
334
373
  ] });
335
374
  }
336
375
  });
337
- }, I = () => {
376
+ }, R = () => {
338
377
  let n = r(), { apiGatewayUrl: i } = e();
339
378
  return t({
340
379
  mutationFn: async (e) => (await s("mutation CooDeleteLook($id: ID!) { cooDeleteLook(id: $id) }", { id: e }, i)).cooDeleteLook,
341
380
  onSuccess: () => {
342
- n.invalidateQueries({ queryKey: [o, "looks"] });
381
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [o, "looks-with-items"] });
343
382
  }
344
383
  });
345
- }, L = (t = {}) => {
384
+ }, z = (t = {}) => {
346
385
  let { apiGatewayUrl: r } = e();
347
386
  return n({
348
387
  queryKey: [
@@ -352,8 +391,8 @@ var o = "coolandlovely", s = async (e, t, n) => {
352
391
  ],
353
392
  queryFn: async () => (await s(`query CooListCollaborations($brandId: ID, $creatorId: ID, $status: CooCollaborationStatus) {
354
393
  cooListCollaborations(brandId: $brandId, creatorId: $creatorId, status: $status) {
355
- ${f}
356
- brand { id name handle }
394
+ ${p}
395
+ brand { id name handle logo { id } }
357
396
  }
358
397
  }`, {
359
398
  brandId: t.brandId,
@@ -361,7 +400,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
361
400
  status: t.status
362
401
  }, r)).cooListCollaborations
363
402
  });
364
- }, R = (t) => {
403
+ }, B = (t) => {
365
404
  let { apiGatewayUrl: r } = e();
366
405
  return n({
367
406
  queryKey: [
@@ -371,28 +410,28 @@ var o = "coolandlovely", s = async (e, t, n) => {
371
410
  ],
372
411
  queryFn: async () => (await s(`query CooCollaboration($id: ID!) {
373
412
  cooCollaboration(id: $id) {
374
- ${f}
375
- brand { id name handle }
413
+ ${p}
414
+ brand { id name handle logo { id } }
376
415
  looks { ${d} }
377
416
  }
378
417
  }`, { id: t }, r)).cooCollaboration,
379
418
  enabled: !!t
380
419
  });
381
- }, z = () => {
420
+ }, V = () => {
382
421
  let n = r(), { apiGatewayUrl: i } = e();
383
422
  return t({
384
423
  mutationFn: async (e) => (await s(`mutation CooCreateCollaboration($input: CooCreateCollaborationInput!) {
385
- cooCreateCollaboration(input: $input) { ${f} }
424
+ cooCreateCollaboration(input: $input) { ${p} }
386
425
  }`, { input: e }, i)).cooCreateCollaboration,
387
426
  onSuccess: () => {
388
427
  n.invalidateQueries({ queryKey: [o, "collaborations"] });
389
428
  }
390
429
  });
391
- }, B = () => {
430
+ }, H = () => {
392
431
  let n = r(), { apiGatewayUrl: i } = e();
393
432
  return t({
394
433
  mutationFn: async ({ id: e, status: t }) => (await s(`mutation CooTransitionCollaboration($id: ID!, $status: CooCollaborationStatus!) {
395
- cooTransitionCollaboration(id: $id, status: $status) { ${f} }
434
+ cooTransitionCollaboration(id: $id, status: $status) { ${p} }
396
435
  }`, {
397
436
  id: e,
398
437
  status: t
@@ -405,7 +444,7 @@ var o = "coolandlovely", s = async (e, t, n) => {
405
444
  ] });
406
445
  }
407
446
  });
408
- }, V = (t = {}) => {
447
+ }, U = (t = {}) => {
409
448
  let { apiGatewayUrl: r } = e();
410
449
  return n({
411
450
  queryKey: [
@@ -414,33 +453,33 @@ var o = "coolandlovely", s = async (e, t, n) => {
414
453
  t
415
454
  ],
416
455
  queryFn: async () => (await s(`query CooListWardrobeItems($category: CooStyleCategory, $source: CooWardrobeSource) {
417
- cooListWardrobeItems(category: $category, source: $source) { ${p} }
456
+ cooListWardrobeItems(category: $category, source: $source) { ${m} }
418
457
  }`, {
419
458
  category: t.category,
420
459
  source: t.source
421
460
  }, r)).cooListWardrobeItems
422
461
  });
423
- }, H = () => {
462
+ }, W = () => {
424
463
  let n = r(), { apiGatewayUrl: i } = e();
425
464
  return t({
426
465
  mutationFn: async (e) => (await s(`mutation CooCreateWardrobeItem($input: CooCreateWardrobeItemInput!) {
427
- cooCreateWardrobeItem(input: $input) { ${p} }
466
+ cooCreateWardrobeItem(input: $input) { ${m} }
428
467
  }`, { input: e }, i)).cooCreateWardrobeItem,
429
468
  onSuccess: () => {
430
469
  n.invalidateQueries({ queryKey: [o, "wardrobe"] });
431
470
  }
432
471
  });
433
- }, U = () => {
472
+ }, G = () => {
434
473
  let n = r(), { apiGatewayUrl: i } = e();
435
474
  return t({
436
475
  mutationFn: async (e) => (await s(`mutation CooLogWardrobeWear($id: ID!) {
437
- cooLogWardrobeWear(id: $id) { ${p} }
476
+ cooLogWardrobeWear(id: $id) { ${m} }
438
477
  }`, { id: e }, i)).cooLogWardrobeWear,
439
478
  onSuccess: () => {
440
479
  n.invalidateQueries({ queryKey: [o, "wardrobe"] });
441
480
  }
442
481
  });
443
- }, W = () => {
482
+ }, K = () => {
444
483
  let n = r(), { apiGatewayUrl: i } = e();
445
484
  return t({
446
485
  mutationFn: async (e) => (await s("mutation CooRemoveWardrobeItem($id: ID!) { cooRemoveWardrobeItem(id: $id) }", { id: e }, i)).cooRemoveWardrobeItem,
@@ -448,23 +487,23 @@ var o = "coolandlovely", s = async (e, t, n) => {
448
487
  n.invalidateQueries({ queryKey: [o, "wardrobe"] });
449
488
  }
450
489
  });
451
- }, G = () => {
490
+ }, q = () => {
452
491
  let { apiGatewayUrl: t } = e();
453
492
  return n({
454
493
  queryKey: [o, "my-style-profile"],
455
- queryFn: async () => (await s(`query CooMyStyleProfile { cooMyStyleProfile { ${m} } }`, {}, t)).cooMyStyleProfile
494
+ queryFn: async () => (await s(`query CooMyStyleProfile { cooMyStyleProfile { ${h} } }`, {}, t)).cooMyStyleProfile
456
495
  });
457
- }, K = () => {
496
+ }, J = () => {
458
497
  let n = r(), { apiGatewayUrl: i } = e();
459
498
  return t({
460
499
  mutationFn: async (e) => (await s(`mutation CooUpsertStyleProfile($input: CooUpsertStyleProfileInput!) {
461
- cooUpsertStyleProfile(input: $input) { ${m} }
500
+ cooUpsertStyleProfile(input: $input) { ${h} }
462
501
  }`, { input: e }, i)).cooUpsertStyleProfile,
463
502
  onSuccess: () => {
464
503
  n.invalidateQueries({ queryKey: [o, "my-style-profile"] });
465
504
  }
466
505
  });
467
- }, q = (t) => {
506
+ }, Y = (t) => {
468
507
  let { apiGatewayUrl: r } = e();
469
508
  return n({
470
509
  queryKey: [
@@ -473,28 +512,84 @@ var o = "coolandlovely", s = async (e, t, n) => {
473
512
  t
474
513
  ],
475
514
  queryFn: async () => (await s(`query CooListLookbooks($ownerId: ID) {
476
- cooListLookbooks(ownerId: $ownerId) { ${h} }
515
+ cooListLookbooks(ownerId: $ownerId) {
516
+ ${g}
517
+ entries { id workspaceId lookbookId lookId styleItemId note position createdAt updatedAt }
518
+ }
477
519
  }`, { ownerId: t }, r)).cooListLookbooks
478
520
  });
479
- }, J = () => {
521
+ }, X = () => {
480
522
  let n = r(), { apiGatewayUrl: i } = e();
481
523
  return t({
482
524
  mutationFn: async (e) => (await s(`mutation CooCreateLookbook($input: CooCreateLookbookInput!) {
483
- cooCreateLookbook(input: $input) { ${h} }
525
+ cooCreateLookbook(input: $input) { ${g} }
484
526
  }`, { input: e }, i)).cooCreateLookbook,
485
527
  onSuccess: () => {
486
528
  n.invalidateQueries({ queryKey: [o, "lookbooks"] });
487
529
  }
488
530
  });
489
- }, Y = () => {
531
+ }, Z = () => {
532
+ let n = r(), { apiGatewayUrl: i } = e();
533
+ return t({
534
+ mutationFn: async (e) => (await s("mutation CooAddLookbookEntry($input: CooAddLookbookEntryInput!) {\n cooAddLookbookEntry(input: $input) {\n id lookbookId lookId styleItemId note position createdAt updatedAt\n }\n }", { input: e }, i)).cooAddLookbookEntry,
535
+ onSuccess: (e) => {
536
+ n.invalidateQueries({ queryKey: [o, "lookbooks"] }), n.invalidateQueries({ queryKey: [o, "lookbook"] }), n.invalidateQueries({ queryKey: [
537
+ o,
538
+ "lookbook",
539
+ e.lookbookId
540
+ ] });
541
+ }
542
+ });
543
+ }, Q = () => {
490
544
  let n = r(), { apiGatewayUrl: i } = e();
491
545
  return t({
492
546
  mutationFn: async (e) => (await s("mutation CooRemoveLookbookEntry($id: ID!) { cooRemoveLookbookEntry(id: $id) }", { id: e }, i)).cooRemoveLookbookEntry,
493
547
  onSuccess: () => {
494
- n.invalidateQueries({ queryKey: [o, "lookbook"] });
548
+ n.invalidateQueries({ queryKey: [o, "lookbooks"] }), n.invalidateQueries({ queryKey: [o, "lookbook"] });
549
+ }
550
+ });
551
+ }, $ = "\n id workspaceId ownerId displayName bio visibility\n stylePreferences palette favouriteBrands\n isFollowedByMe followerCount followingCount\n", te = (t) => {
552
+ let { apiGatewayUrl: r } = e();
553
+ return n({
554
+ queryKey: [
555
+ o,
556
+ "is-following",
557
+ t
558
+ ],
559
+ enabled: !!t,
560
+ queryFn: async () => (await s("query CooIsFollowing($followeeId: ID!) { cooIsFollowing(followeeId: $followeeId) }", { followeeId: t }, r)).cooIsFollowing
561
+ });
562
+ }, ne = () => {
563
+ let n = r(), { apiGatewayUrl: i } = e();
564
+ return t({
565
+ mutationFn: async (e) => (await s("mutation CooFollow($followeeId: ID!) { cooFollow(followeeId: $followeeId) }", { followeeId: e }, i)).cooFollow,
566
+ onSuccess: (e, t) => {
567
+ n.invalidateQueries({ queryKey: [
568
+ o,
569
+ "is-following",
570
+ t
571
+ ] }), n.invalidateQueries({ queryKey: [o, "my-following"] }), n.invalidateQueries({ queryKey: [o, "my-followers"] }), n.invalidateQueries({ queryKey: [o, "my-style-profile"] });
495
572
  }
496
573
  });
497
- }, X = (t) => {
574
+ }, re = () => {
575
+ let n = r(), { apiGatewayUrl: i } = e();
576
+ return t({
577
+ mutationFn: async (e) => (await s("mutation CooUnfollow($followeeId: ID!) { cooUnfollow(followeeId: $followeeId) }", { followeeId: e }, i)).cooUnfollow,
578
+ onSuccess: (e, t) => {
579
+ n.invalidateQueries({ queryKey: [
580
+ o,
581
+ "is-following",
582
+ t
583
+ ] }), n.invalidateQueries({ queryKey: [o, "my-following"] }), n.invalidateQueries({ queryKey: [o, "my-followers"] }), n.invalidateQueries({ queryKey: [o, "my-style-profile"] });
584
+ }
585
+ });
586
+ }, ie = () => {
587
+ let { apiGatewayUrl: t } = e();
588
+ return n({
589
+ queryKey: [o, "my-following"],
590
+ queryFn: async () => (await s(`query CooMyFollowing { cooMyFollowing { ${$} } }`, {}, t)).cooMyFollowing
591
+ });
592
+ }, ae = (t) => {
498
593
  let { apiGatewayUrl: r } = e();
499
594
  return n({
500
595
  queryKey: [
@@ -504,14 +599,14 @@ var o = "coolandlovely", s = async (e, t, n) => {
504
599
  ],
505
600
  queryFn: async () => (await s(`query CooLookbook($id: ID!) {
506
601
  cooLookbook(id: $id) {
507
- ${h}
508
- entries { id lookbookId lookId styleItemId note position createdAt updatedAt }
602
+ ${g}
603
+ entries { id workspaceId lookbookId lookId styleItemId note position createdAt updatedAt }
509
604
  }
510
605
  }`, { id: t }, r)).cooLookbook,
511
606
  enabled: !!t
512
607
  });
513
608
  };
514
609
  //#endregion
515
- export { A as useArchiveStyleItem, _ as useBrand, g as useBrands, R as useCollaboration, L as useCollaborations, S as useCollection, x as useCollections, v as useCreateBrand, z as useCreateCollaboration, C as useCreateCollection, N as useCreateLook, J as useCreateLookbook, O as useCreateStyleItem, H as useCreateWardrobeItem, I as useDeleteLook, F as useLikeLook, U as useLogWardrobeWear, M as useLook, X as useLookbook, q as useLookbooks, j as useLooks, G as useMyStyleProfile, T as usePublishCollection, P as usePublishLook, Y as useRemoveLookbookEntry, W as useRemoveWardrobeItem, D as useStyleItem, E as useStyleItems, b as useTransitionBrand, B as useTransitionCollaboration, y as useUpdateBrand, w as useUpdateCollection, k as useUpdateStyleItem, K as useUpsertStyleProfile, V as useWardrobeItems };
610
+ export { Z as useAddLookbookEntry, j as useArchiveStyleItem, v as useBrand, _ as useBrands, B as useCollaboration, z as useCollaborations, C as useCollection, S as useCollections, y as useCreateBrand, V as useCreateCollaboration, w as useCreateCollection, F as useCreateLook, X as useCreateLookbook, k as useCreateStyleItem, W as useCreateWardrobeItem, R as useDeleteLook, ne as useFollow, te as useIsFollowing, L as useLikeLook, G as useLogWardrobeWear, N as useLook, ae as useLookbook, Y as useLookbooks, M as useLooks, P as useLooksWithItems, ie as useMyFollowing, q as useMyStyleProfile, E as usePublishCollection, ee as usePublishLook, Q as useRemoveLookbookEntry, K as useRemoveWardrobeItem, O as useStyleItem, D as useStyleItems, x as useTransitionBrand, H as useTransitionCollaboration, re as useUnfollow, b as useUpdateBrand, T as useUpdateCollection, I as useUpdateLook, A as useUpdateStyleItem, J as useUpsertStyleProfile, U as useWardrobeItems };
516
611
 
517
612
  //# sourceMappingURL=useCoolAndLovelyApi.js.map