@burdenoff/microfe-coolandlovely 2026.628.1 → 2026.706.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/coolandlovely/components/Field.js.map +1 -1
  2. package/dist/coolandlovely/components/StateViews.js.map +1 -1
  3. package/dist/coolandlovely/context/CoolAndLovelyContext.js.map +1 -1
  4. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +149 -148
  5. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js.map +1 -1
  6. package/dist/coolandlovely/pages/HomePage.js.map +1 -1
  7. package/dist/coolandlovely/pages/brands/BrandDetailPage.js.map +1 -1
  8. package/dist/coolandlovely/pages/brands/BrandFormPage.js +1 -1
  9. package/dist/coolandlovely/pages/brands/BrandFormPage.js.map +1 -1
  10. package/dist/coolandlovely/pages/brands/BrandsListPage.js +5 -1
  11. package/dist/coolandlovely/pages/brands/BrandsListPage.js.map +1 -1
  12. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js.map +1 -1
  13. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js.map +1 -1
  14. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js.map +1 -1
  15. package/dist/coolandlovely/pages/collections/CollectionsListPage.js.map +1 -1
  16. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js.map +1 -1
  17. package/dist/coolandlovely/pages/items/StyleItemsListPage.js.map +1 -1
  18. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js.map +1 -1
  19. package/dist/coolandlovely/pages/looks/LookDetailPage.js.map +1 -1
  20. package/dist/coolandlovely/pages/looks/LookFormPage.js.map +1 -1
  21. package/dist/coolandlovely/pages/looks/LooksListPage.js +5 -1
  22. package/dist/coolandlovely/pages/looks/LooksListPage.js.map +1 -1
  23. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js.map +1 -1
  24. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -1
  25. package/package.json +1 -1
@@ -2,8 +2,9 @@ import { useCoolAndLovely as e } from "../context/CoolAndLovelyContext.js";
2
2
  import "../context/index.js";
3
3
  import { useMutation as t, useQuery as n, useQueryClient as r } from "@tanstack/react-query";
4
4
  import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
5
+ import { clearGraphqlFetchResponseCache as a } from "@burdenoff/fe-libs/shared/graphql/fetch";
5
6
  //#region src/coolandlovely/hooks/useCoolAndLovelyApi.ts
6
- var a = "coolandlovely", o = async (e, t, n) => {
7
+ var o = "coolandlovely", s = async (e, t, n) => {
7
8
  let r = await i({
8
9
  gateway: "workspace",
9
10
  baseUrl: n,
@@ -13,18 +14,18 @@ var a = "coolandlovely", o = async (e, t, n) => {
13
14
  });
14
15
  if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
15
16
  if (!r.data) throw Error("GraphQL response did not include data");
16
- return r.data;
17
- }, s = "\n id workspaceId name handle tagline bio aesthetics tags websiteUrl\n isFeatured status logo { id } cover { id } createdAt updatedAt\n", c = "\n id workspaceId brandId name description season status tags\n cover { id } publishAt endAt createdAt updatedAt\n", l = "\n id workspaceId brandId collectionId name description category status\n sku price currency colours sizes materials tags image { id }\n createdAt updatedAt\n", u = "\n id workspaceId authorId title caption occasion visibility isFeatured\n likeCount saveCount collaborationId image { id } tags publishedAt\n createdAt updatedAt\n", d = "\n id workspaceId brandId creatorId collectionId title brief role status\n compensation currency tags startDate endDate publishedAt createdAt updatedAt\n", f = "\n id workspaceId profileId name category source brandName colour size notes\n styleItemId timesWorn lastWornAt tags image { id } createdAt updatedAt\n", p = "\n id workspaceId ownerId displayName bio visibility stylePreferences\n palette favouriteBrands sizes createdAt updatedAt\n", m = "\n id workspaceId ownerId profileId name description visibility tags\n cover { id } createdAt updatedAt\n", h = (t = {}) => {
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
19
  let { apiGatewayUrl: r } = e();
19
20
  return n({
20
21
  queryKey: [
21
- a,
22
+ o,
22
23
  "brands",
23
24
  t
24
25
  ],
25
- queryFn: async () => (await o(`query CooListBrands($status: CooBrandStatus, $featured: Boolean, $pagination: PaginationInput) {
26
+ queryFn: async () => (await s(`query CooListBrands($status: CooBrandStatus, $featured: Boolean, $pagination: PaginationInput) {
26
27
  cooListBrands(status: $status, featured: $featured, pagination: $pagination) {
27
- items { ${s} }
28
+ items { ${c} }
28
29
  pageInfo { cursor hasMore }
29
30
  }
30
31
  }`, {
@@ -36,78 +37,78 @@ var a = "coolandlovely", o = async (e, t, n) => {
36
37
  }
37
38
  }, r)).cooListBrands
38
39
  });
39
- }, g = (t) => {
40
+ }, _ = (t) => {
40
41
  let { apiGatewayUrl: r } = e();
41
42
  return n({
42
43
  queryKey: [
43
- a,
44
+ o,
44
45
  "brand",
45
46
  t
46
47
  ],
47
- queryFn: async () => (await o(`query CooBrand($id: ID!) {
48
+ queryFn: async () => (await s(`query CooBrand($id: ID!) {
48
49
  cooBrand(id: $id) {
49
- ${s}
50
- collections { ${c} }
51
- items { ${l} }
50
+ ${c}
51
+ collections { ${l} }
52
+ items { ${u} }
52
53
  }
53
54
  }`, { id: t }, r)).cooBrand,
54
55
  enabled: !!t
55
56
  });
56
- }, _ = () => {
57
+ }, v = () => {
57
58
  let n = r(), { apiGatewayUrl: i } = e();
58
59
  return t({
59
- mutationFn: async (e) => (await o(`mutation CooCreateBrand($input: CooCreateBrandInput!) {
60
- cooCreateBrand(input: $input) { ${s} }
60
+ mutationFn: async (e) => (await s(`mutation CooCreateBrand($input: CooCreateBrandInput!) {
61
+ cooCreateBrand(input: $input) { ${c} }
61
62
  }`, { input: e }, i)).cooCreateBrand,
62
63
  onSuccess: () => {
63
- n.invalidateQueries({ queryKey: [a, "brands"] });
64
+ n.invalidateQueries({ queryKey: [o, "brands"] });
64
65
  }
65
66
  });
66
- }, v = () => {
67
+ }, y = () => {
67
68
  let n = r(), { apiGatewayUrl: i } = e();
68
69
  return t({
69
- mutationFn: async ({ id: e, input: t }) => (await o(`mutation CooUpdateBrand($id: ID!, $input: CooUpdateBrandInput!) {
70
- cooUpdateBrand(id: $id, input: $input) { ${s} }
70
+ mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateBrand($id: ID!, $input: CooUpdateBrandInput!) {
71
+ cooUpdateBrand(id: $id, input: $input) { ${c} }
71
72
  }`, {
72
73
  id: e,
73
74
  input: t
74
75
  }, i)).cooUpdateBrand,
75
76
  onSuccess: (e) => {
76
- n.invalidateQueries({ queryKey: [a, "brands"] }), n.invalidateQueries({ queryKey: [
77
- a,
77
+ n.invalidateQueries({ queryKey: [o, "brands"] }), n.invalidateQueries({ queryKey: [
78
+ o,
78
79
  "brand",
79
80
  e.id
80
81
  ] });
81
82
  }
82
83
  });
83
- }, y = () => {
84
+ }, b = () => {
84
85
  let n = r(), { apiGatewayUrl: i } = e();
85
86
  return t({
86
- mutationFn: async ({ id: e, status: t }) => (await o(`mutation CooTransitionBrand($id: ID!, $status: CooBrandStatus!) {
87
- cooTransitionBrand(id: $id, status: $status) { ${s} }
87
+ mutationFn: async ({ id: e, status: t }) => (await s(`mutation CooTransitionBrand($id: ID!, $status: CooBrandStatus!) {
88
+ cooTransitionBrand(id: $id, status: $status) { ${c} }
88
89
  }`, {
89
90
  id: e,
90
91
  status: t
91
92
  }, i)).cooTransitionBrand,
92
93
  onSuccess: (e) => {
93
- n.invalidateQueries({ queryKey: [a, "brands"] }), n.invalidateQueries({ queryKey: [
94
- a,
94
+ n.invalidateQueries({ queryKey: [o, "brands"] }), n.invalidateQueries({ queryKey: [
95
+ o,
95
96
  "brand",
96
97
  e.id
97
98
  ] });
98
99
  }
99
100
  });
100
- }, b = (t = {}) => {
101
+ }, x = (t = {}) => {
101
102
  let { apiGatewayUrl: r } = e();
102
103
  return n({
103
104
  queryKey: [
104
- a,
105
+ o,
105
106
  "collections",
106
107
  t
107
108
  ],
108
- queryFn: async () => (await o(`query CooListCollections($brandId: ID, $status: CooCollectionStatus) {
109
+ queryFn: async () => (await s(`query CooListCollections($brandId: ID, $status: CooCollectionStatus) {
109
110
  cooListCollections(brandId: $brandId, status: $status) {
110
- ${c}
111
+ ${l}
111
112
  brand { id name handle }
112
113
  }
113
114
  }`, {
@@ -115,73 +116,73 @@ var a = "coolandlovely", o = async (e, t, n) => {
115
116
  status: t.status
116
117
  }, r)).cooListCollections
117
118
  });
118
- }, x = (t) => {
119
+ }, S = (t) => {
119
120
  let { apiGatewayUrl: r } = e();
120
121
  return n({
121
122
  queryKey: [
122
- a,
123
+ o,
123
124
  "collection",
124
125
  t
125
126
  ],
126
- queryFn: async () => (await o(`query CooCollection($id: ID!) {
127
+ queryFn: async () => (await s(`query CooCollection($id: ID!) {
127
128
  cooCollection(id: $id) {
128
- ${c}
129
+ ${l}
129
130
  brand { id name handle }
130
- items { ${l} }
131
+ items { ${u} }
131
132
  }
132
133
  }`, { id: t }, r)).cooCollection,
133
134
  enabled: !!t
134
135
  });
135
- }, S = () => {
136
+ }, C = () => {
136
137
  let n = r(), { apiGatewayUrl: i } = e();
137
138
  return t({
138
- mutationFn: async (e) => (await o(`mutation CooCreateCollection($input: CooCreateCollectionInput!) {
139
- cooCreateCollection(input: $input) { ${c} }
139
+ mutationFn: async (e) => (await s(`mutation CooCreateCollection($input: CooCreateCollectionInput!) {
140
+ cooCreateCollection(input: $input) { ${l} }
140
141
  }`, { input: e }, i)).cooCreateCollection,
141
142
  onSuccess: () => {
142
- n.invalidateQueries({ queryKey: [a, "collections"] });
143
+ n.invalidateQueries({ queryKey: [o, "collections"] });
143
144
  }
144
145
  });
145
- }, C = () => {
146
+ }, w = () => {
146
147
  let n = r(), { apiGatewayUrl: i } = e();
147
148
  return t({
148
- mutationFn: async ({ id: e, input: t }) => (await o(`mutation CooUpdateCollection($id: ID!, $input: CooUpdateCollectionInput!) {
149
- cooUpdateCollection(id: $id, input: $input) { ${c} }
149
+ mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateCollection($id: ID!, $input: CooUpdateCollectionInput!) {
150
+ cooUpdateCollection(id: $id, input: $input) { ${l} }
150
151
  }`, {
151
152
  id: e,
152
153
  input: t
153
154
  }, i)).cooUpdateCollection,
154
155
  onSuccess: (e) => {
155
- n.invalidateQueries({ queryKey: [a, "collections"] }), n.invalidateQueries({ queryKey: [
156
- a,
156
+ n.invalidateQueries({ queryKey: [o, "collections"] }), n.invalidateQueries({ queryKey: [
157
+ o,
157
158
  "collection",
158
159
  e.id
159
160
  ] });
160
161
  }
161
162
  });
162
- }, w = () => {
163
+ }, T = () => {
163
164
  let n = r(), { apiGatewayUrl: i } = e();
164
165
  return t({
165
- mutationFn: async (e) => (await o(`mutation CooPublishCollection($id: ID!) {
166
- cooPublishCollection(id: $id) { ${c} }
166
+ mutationFn: async (e) => (await s(`mutation CooPublishCollection($id: ID!) {
167
+ cooPublishCollection(id: $id) { ${l} }
167
168
  }`, { id: e }, i)).cooPublishCollection,
168
169
  onSuccess: (e) => {
169
- n.invalidateQueries({ queryKey: [a, "collections"] }), n.invalidateQueries({ queryKey: [
170
- a,
170
+ n.invalidateQueries({ queryKey: [o, "collections"] }), n.invalidateQueries({ queryKey: [
171
+ o,
171
172
  "collection",
172
173
  e.id
173
174
  ] });
174
175
  }
175
176
  });
176
- }, T = (t = {}) => {
177
+ }, E = (t = {}) => {
177
178
  let { apiGatewayUrl: r } = e();
178
179
  return n({
179
180
  queryKey: [
180
- a,
181
+ o,
181
182
  "style-items",
182
183
  t
183
184
  ],
184
- queryFn: async () => (await o(`query CooListStyleItems(
185
+ queryFn: async () => (await s(`query CooListStyleItems(
185
186
  $brandId: ID, $collectionId: ID, $category: CooStyleCategory,
186
187
  $status: CooStyleItemStatus, $pagination: PaginationInput
187
188
  ) {
@@ -189,7 +190,7 @@ var a = "coolandlovely", o = async (e, t, n) => {
189
190
  brandId: $brandId, collectionId: $collectionId, category: $category,
190
191
  status: $status, pagination: $pagination
191
192
  ) {
192
- items { ${l} brand { id name handle } }
193
+ items { ${u} brand { id name handle } }
193
194
  pageInfo { cursor hasMore }
194
195
  }
195
196
  }`, {
@@ -203,71 +204,71 @@ var a = "coolandlovely", o = async (e, t, n) => {
203
204
  }
204
205
  }, r)).cooListStyleItems
205
206
  });
206
- }, E = (t) => {
207
+ }, D = (t) => {
207
208
  let { apiGatewayUrl: r } = e();
208
209
  return n({
209
210
  queryKey: [
210
- a,
211
+ o,
211
212
  "style-item",
212
213
  t
213
214
  ],
214
- queryFn: async () => (await o(`query CooStyleItem($id: ID!) {
215
+ queryFn: async () => (await s(`query CooStyleItem($id: ID!) {
215
216
  cooStyleItem(id: $id) {
216
- ${l}
217
+ ${u}
217
218
  brand { id name handle }
218
219
  collection { id name }
219
220
  }
220
221
  }`, { id: t }, r)).cooStyleItem,
221
222
  enabled: !!t
222
223
  });
223
- }, D = () => {
224
+ }, O = () => {
224
225
  let n = r(), { apiGatewayUrl: i } = e();
225
226
  return t({
226
- mutationFn: async (e) => (await o(`mutation CooCreateStyleItem($input: CooCreateStyleItemInput!) {
227
- cooCreateStyleItem(input: $input) { ${l} }
227
+ mutationFn: async (e) => (await s(`mutation CooCreateStyleItem($input: CooCreateStyleItemInput!) {
228
+ cooCreateStyleItem(input: $input) { ${u} }
228
229
  }`, { input: e }, i)).cooCreateStyleItem,
229
230
  onSuccess: () => {
230
- n.invalidateQueries({ queryKey: [a, "style-items"] });
231
+ n.invalidateQueries({ queryKey: [o, "style-items"] });
231
232
  }
232
233
  });
233
- }, O = () => {
234
+ }, k = () => {
234
235
  let n = r(), { apiGatewayUrl: i } = e();
235
236
  return t({
236
- mutationFn: async ({ id: e, input: t }) => (await o(`mutation CooUpdateStyleItem($id: ID!, $input: CooUpdateStyleItemInput!) {
237
- cooUpdateStyleItem(id: $id, input: $input) { ${l} }
237
+ mutationFn: async ({ id: e, input: t }) => (await s(`mutation CooUpdateStyleItem($id: ID!, $input: CooUpdateStyleItemInput!) {
238
+ cooUpdateStyleItem(id: $id, input: $input) { ${u} }
238
239
  }`, {
239
240
  id: e,
240
241
  input: t
241
242
  }, i)).cooUpdateStyleItem,
242
243
  onSuccess: (e) => {
243
- n.invalidateQueries({ queryKey: [a, "style-items"] }), n.invalidateQueries({ queryKey: [
244
- a,
244
+ n.invalidateQueries({ queryKey: [o, "style-items"] }), n.invalidateQueries({ queryKey: [
245
+ o,
245
246
  "style-item",
246
247
  e.id
247
248
  ] });
248
249
  }
249
250
  });
250
- }, k = () => {
251
+ }, A = () => {
251
252
  let n = r(), { apiGatewayUrl: i } = e();
252
253
  return t({
253
- mutationFn: async (e) => (await o("mutation CooArchiveStyleItem($id: ID!) { cooArchiveStyleItem(id: $id) }", { id: e }, i)).cooArchiveStyleItem,
254
+ mutationFn: async (e) => (await s("mutation CooArchiveStyleItem($id: ID!) { cooArchiveStyleItem(id: $id) }", { id: e }, i)).cooArchiveStyleItem,
254
255
  onSuccess: () => {
255
- n.invalidateQueries({ queryKey: [a, "style-items"] });
256
+ n.invalidateQueries({ queryKey: [o, "style-items"] });
256
257
  }
257
258
  });
258
- }, A = (t = {}) => {
259
+ }, j = (t = {}) => {
259
260
  let { apiGatewayUrl: r } = e();
260
261
  return n({
261
262
  queryKey: [
262
- a,
263
+ o,
263
264
  "looks",
264
265
  t
265
266
  ],
266
- queryFn: async () => (await o(`query CooListLooks(
267
+ queryFn: async () => (await s(`query CooListLooks(
267
268
  $authorId: ID, $occasion: CooLookOccasion, $featured: Boolean, $pagination: PaginationInput
268
269
  ) {
269
270
  cooListLooks(authorId: $authorId, occasion: $occasion, featured: $featured, pagination: $pagination) {
270
- items { ${u} }
271
+ items { ${d} }
271
272
  pageInfo { cursor hasMore }
272
273
  }
273
274
  }`, {
@@ -280,17 +281,17 @@ var a = "coolandlovely", o = async (e, t, n) => {
280
281
  }
281
282
  }, r)).cooListLooks
282
283
  });
283
- }, j = (t) => {
284
+ }, M = (t) => {
284
285
  let { apiGatewayUrl: r } = e();
285
286
  return n({
286
287
  queryKey: [
287
- a,
288
+ o,
288
289
  "look",
289
290
  t
290
291
  ],
291
- queryFn: async () => (await o(`query CooLook($id: ID!) {
292
+ queryFn: async () => (await s(`query CooLook($id: ID!) {
292
293
  cooLook(id: $id) {
293
- ${u}
294
+ ${d}
294
295
  items {
295
296
  id lookId styleItemId position styling
296
297
  styleItem { id name category price currency }
@@ -299,59 +300,59 @@ var a = "coolandlovely", o = async (e, t, n) => {
299
300
  }`, { id: t }, r)).cooLook,
300
301
  enabled: !!t
301
302
  });
302
- }, M = () => {
303
+ }, N = () => {
303
304
  let n = r(), { apiGatewayUrl: i } = e();
304
305
  return t({
305
- mutationFn: async (e) => (await o(`mutation CooCreateLook($input: CooCreateLookInput!) {
306
- cooCreateLook(input: $input) { ${u} }
306
+ mutationFn: async (e) => (await s(`mutation CooCreateLook($input: CooCreateLookInput!) {
307
+ cooCreateLook(input: $input) { ${d} }
307
308
  }`, { input: e }, i)).cooCreateLook,
308
309
  onSuccess: () => {
309
- n.invalidateQueries({ queryKey: [a, "looks"] });
310
+ n.invalidateQueries({ queryKey: [o, "looks"] });
310
311
  }
311
312
  });
312
- }, N = () => {
313
+ }, P = () => {
313
314
  let n = r(), { apiGatewayUrl: i } = e();
314
315
  return t({
315
- mutationFn: async (e) => (await o(`mutation CooPublishLook($id: ID!) { cooPublishLook(id: $id) { ${u} } }`, { id: e }, i)).cooPublishLook,
316
+ mutationFn: async (e) => (await s(`mutation CooPublishLook($id: ID!) { cooPublishLook(id: $id) { ${d} } }`, { id: e }, i)).cooPublishLook,
316
317
  onSuccess: (e) => {
317
- n.invalidateQueries({ queryKey: [a, "looks"] }), n.invalidateQueries({ queryKey: [
318
- a,
318
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [
319
+ o,
319
320
  "look",
320
321
  e.id
321
322
  ] });
322
323
  }
323
324
  });
324
- }, P = () => {
325
+ }, F = () => {
325
326
  let n = r(), { apiGatewayUrl: i } = e();
326
327
  return t({
327
- mutationFn: async (e) => (await o(`mutation CooLikeLook($id: ID!) { cooLikeLook(id: $id) { ${u} } }`, { id: e }, i)).cooLikeLook,
328
+ mutationFn: async (e) => (await s(`mutation CooLikeLook($id: ID!) { cooLikeLook(id: $id) { ${d} } }`, { id: e }, i)).cooLikeLook,
328
329
  onSuccess: (e) => {
329
- n.invalidateQueries({ queryKey: [a, "looks"] }), n.invalidateQueries({ queryKey: [
330
- a,
330
+ n.invalidateQueries({ queryKey: [o, "looks"] }), n.invalidateQueries({ queryKey: [
331
+ o,
331
332
  "look",
332
333
  e.id
333
334
  ] });
334
335
  }
335
336
  });
336
- }, F = () => {
337
+ }, I = () => {
337
338
  let n = r(), { apiGatewayUrl: i } = e();
338
339
  return t({
339
- mutationFn: async (e) => (await o("mutation CooDeleteLook($id: ID!) { cooDeleteLook(id: $id) }", { id: e }, i)).cooDeleteLook,
340
+ mutationFn: async (e) => (await s("mutation CooDeleteLook($id: ID!) { cooDeleteLook(id: $id) }", { id: e }, i)).cooDeleteLook,
340
341
  onSuccess: () => {
341
- n.invalidateQueries({ queryKey: [a, "looks"] });
342
+ n.invalidateQueries({ queryKey: [o, "looks"] });
342
343
  }
343
344
  });
344
- }, I = (t = {}) => {
345
+ }, L = (t = {}) => {
345
346
  let { apiGatewayUrl: r } = e();
346
347
  return n({
347
348
  queryKey: [
348
- a,
349
+ o,
349
350
  "collaborations",
350
351
  t
351
352
  ],
352
- queryFn: async () => (await o(`query CooListCollaborations($brandId: ID, $creatorId: ID, $status: CooCollaborationStatus) {
353
+ queryFn: async () => (await s(`query CooListCollaborations($brandId: ID, $creatorId: ID, $status: CooCollaborationStatus) {
353
354
  cooListCollaborations(brandId: $brandId, creatorId: $creatorId, status: $status) {
354
- ${d}
355
+ ${f}
355
356
  brand { id name handle }
356
357
  }
357
358
  }`, {
@@ -360,150 +361,150 @@ var a = "coolandlovely", o = async (e, t, n) => {
360
361
  status: t.status
361
362
  }, r)).cooListCollaborations
362
363
  });
363
- }, L = (t) => {
364
+ }, R = (t) => {
364
365
  let { apiGatewayUrl: r } = e();
365
366
  return n({
366
367
  queryKey: [
367
- a,
368
+ o,
368
369
  "collaboration",
369
370
  t
370
371
  ],
371
- queryFn: async () => (await o(`query CooCollaboration($id: ID!) {
372
+ queryFn: async () => (await s(`query CooCollaboration($id: ID!) {
372
373
  cooCollaboration(id: $id) {
373
- ${d}
374
+ ${f}
374
375
  brand { id name handle }
375
- looks { ${u} }
376
+ looks { ${d} }
376
377
  }
377
378
  }`, { id: t }, r)).cooCollaboration,
378
379
  enabled: !!t
379
380
  });
380
- }, R = () => {
381
+ }, z = () => {
381
382
  let n = r(), { apiGatewayUrl: i } = e();
382
383
  return t({
383
- mutationFn: async (e) => (await o(`mutation CooCreateCollaboration($input: CooCreateCollaborationInput!) {
384
- cooCreateCollaboration(input: $input) { ${d} }
384
+ mutationFn: async (e) => (await s(`mutation CooCreateCollaboration($input: CooCreateCollaborationInput!) {
385
+ cooCreateCollaboration(input: $input) { ${f} }
385
386
  }`, { input: e }, i)).cooCreateCollaboration,
386
387
  onSuccess: () => {
387
- n.invalidateQueries({ queryKey: [a, "collaborations"] });
388
+ n.invalidateQueries({ queryKey: [o, "collaborations"] });
388
389
  }
389
390
  });
390
- }, z = () => {
391
+ }, B = () => {
391
392
  let n = r(), { apiGatewayUrl: i } = e();
392
393
  return t({
393
- mutationFn: async ({ id: e, status: t }) => (await o(`mutation CooTransitionCollaboration($id: ID!, $status: CooCollaborationStatus!) {
394
- cooTransitionCollaboration(id: $id, status: $status) { ${d} }
394
+ mutationFn: async ({ id: e, status: t }) => (await s(`mutation CooTransitionCollaboration($id: ID!, $status: CooCollaborationStatus!) {
395
+ cooTransitionCollaboration(id: $id, status: $status) { ${f} }
395
396
  }`, {
396
397
  id: e,
397
398
  status: t
398
399
  }, i)).cooTransitionCollaboration,
399
400
  onSuccess: (e) => {
400
- n.invalidateQueries({ queryKey: [a, "collaborations"] }), n.invalidateQueries({ queryKey: [
401
- a,
401
+ n.invalidateQueries({ queryKey: [o, "collaborations"] }), n.invalidateQueries({ queryKey: [
402
+ o,
402
403
  "collaboration",
403
404
  e.id
404
405
  ] });
405
406
  }
406
407
  });
407
- }, B = (t = {}) => {
408
+ }, V = (t = {}) => {
408
409
  let { apiGatewayUrl: r } = e();
409
410
  return n({
410
411
  queryKey: [
411
- a,
412
+ o,
412
413
  "wardrobe",
413
414
  t
414
415
  ],
415
- queryFn: async () => (await o(`query CooListWardrobeItems($category: CooStyleCategory, $source: CooWardrobeSource) {
416
- cooListWardrobeItems(category: $category, source: $source) { ${f} }
416
+ queryFn: async () => (await s(`query CooListWardrobeItems($category: CooStyleCategory, $source: CooWardrobeSource) {
417
+ cooListWardrobeItems(category: $category, source: $source) { ${p} }
417
418
  }`, {
418
419
  category: t.category,
419
420
  source: t.source
420
421
  }, r)).cooListWardrobeItems
421
422
  });
422
- }, V = () => {
423
+ }, H = () => {
423
424
  let n = r(), { apiGatewayUrl: i } = e();
424
425
  return t({
425
- mutationFn: async (e) => (await o(`mutation CooCreateWardrobeItem($input: CooCreateWardrobeItemInput!) {
426
- cooCreateWardrobeItem(input: $input) { ${f} }
426
+ mutationFn: async (e) => (await s(`mutation CooCreateWardrobeItem($input: CooCreateWardrobeItemInput!) {
427
+ cooCreateWardrobeItem(input: $input) { ${p} }
427
428
  }`, { input: e }, i)).cooCreateWardrobeItem,
428
429
  onSuccess: () => {
429
- n.invalidateQueries({ queryKey: [a, "wardrobe"] });
430
+ n.invalidateQueries({ queryKey: [o, "wardrobe"] });
430
431
  }
431
432
  });
432
- }, H = () => {
433
+ }, U = () => {
433
434
  let n = r(), { apiGatewayUrl: i } = e();
434
435
  return t({
435
- mutationFn: async (e) => (await o(`mutation CooLogWardrobeWear($id: ID!) {
436
- cooLogWardrobeWear(id: $id) { ${f} }
436
+ mutationFn: async (e) => (await s(`mutation CooLogWardrobeWear($id: ID!) {
437
+ cooLogWardrobeWear(id: $id) { ${p} }
437
438
  }`, { id: e }, i)).cooLogWardrobeWear,
438
439
  onSuccess: () => {
439
- n.invalidateQueries({ queryKey: [a, "wardrobe"] });
440
+ n.invalidateQueries({ queryKey: [o, "wardrobe"] });
440
441
  }
441
442
  });
442
- }, U = () => {
443
+ }, W = () => {
443
444
  let n = r(), { apiGatewayUrl: i } = e();
444
445
  return t({
445
- mutationFn: async (e) => (await o("mutation CooRemoveWardrobeItem($id: ID!) { cooRemoveWardrobeItem(id: $id) }", { id: e }, i)).cooRemoveWardrobeItem,
446
+ mutationFn: async (e) => (await s("mutation CooRemoveWardrobeItem($id: ID!) { cooRemoveWardrobeItem(id: $id) }", { id: e }, i)).cooRemoveWardrobeItem,
446
447
  onSuccess: () => {
447
- n.invalidateQueries({ queryKey: [a, "wardrobe"] });
448
+ n.invalidateQueries({ queryKey: [o, "wardrobe"] });
448
449
  }
449
450
  });
450
- }, W = () => {
451
+ }, G = () => {
451
452
  let { apiGatewayUrl: t } = e();
452
453
  return n({
453
- queryKey: [a, "my-style-profile"],
454
- queryFn: async () => (await o(`query CooMyStyleProfile { cooMyStyleProfile { ${p} } }`, {}, t)).cooMyStyleProfile
454
+ queryKey: [o, "my-style-profile"],
455
+ queryFn: async () => (await s(`query CooMyStyleProfile { cooMyStyleProfile { ${m} } }`, {}, t)).cooMyStyleProfile
455
456
  });
456
- }, G = () => {
457
+ }, K = () => {
457
458
  let n = r(), { apiGatewayUrl: i } = e();
458
459
  return t({
459
- mutationFn: async (e) => (await o(`mutation CooUpsertStyleProfile($input: CooUpsertStyleProfileInput!) {
460
- cooUpsertStyleProfile(input: $input) { ${p} }
460
+ mutationFn: async (e) => (await s(`mutation CooUpsertStyleProfile($input: CooUpsertStyleProfileInput!) {
461
+ cooUpsertStyleProfile(input: $input) { ${m} }
461
462
  }`, { input: e }, i)).cooUpsertStyleProfile,
462
463
  onSuccess: () => {
463
- n.invalidateQueries({ queryKey: [a, "my-style-profile"] });
464
+ n.invalidateQueries({ queryKey: [o, "my-style-profile"] });
464
465
  }
465
466
  });
466
- }, K = (t) => {
467
+ }, q = (t) => {
467
468
  let { apiGatewayUrl: r } = e();
468
469
  return n({
469
470
  queryKey: [
470
- a,
471
+ o,
471
472
  "lookbooks",
472
473
  t
473
474
  ],
474
- queryFn: async () => (await o(`query CooListLookbooks($ownerId: ID) {
475
- cooListLookbooks(ownerId: $ownerId) { ${m} }
475
+ queryFn: async () => (await s(`query CooListLookbooks($ownerId: ID) {
476
+ cooListLookbooks(ownerId: $ownerId) { ${h} }
476
477
  }`, { ownerId: t }, r)).cooListLookbooks
477
478
  });
478
- }, q = () => {
479
+ }, J = () => {
479
480
  let n = r(), { apiGatewayUrl: i } = e();
480
481
  return t({
481
- mutationFn: async (e) => (await o(`mutation CooCreateLookbook($input: CooCreateLookbookInput!) {
482
- cooCreateLookbook(input: $input) { ${m} }
482
+ mutationFn: async (e) => (await s(`mutation CooCreateLookbook($input: CooCreateLookbookInput!) {
483
+ cooCreateLookbook(input: $input) { ${h} }
483
484
  }`, { input: e }, i)).cooCreateLookbook,
484
485
  onSuccess: () => {
485
- n.invalidateQueries({ queryKey: [a, "lookbooks"] });
486
+ n.invalidateQueries({ queryKey: [o, "lookbooks"] });
486
487
  }
487
488
  });
488
- }, J = () => {
489
+ }, Y = () => {
489
490
  let n = r(), { apiGatewayUrl: i } = e();
490
491
  return t({
491
- mutationFn: async (e) => (await o("mutation CooRemoveLookbookEntry($id: ID!) { cooRemoveLookbookEntry(id: $id) }", { id: e }, i)).cooRemoveLookbookEntry,
492
+ mutationFn: async (e) => (await s("mutation CooRemoveLookbookEntry($id: ID!) { cooRemoveLookbookEntry(id: $id) }", { id: e }, i)).cooRemoveLookbookEntry,
492
493
  onSuccess: () => {
493
- n.invalidateQueries({ queryKey: [a, "lookbook"] });
494
+ n.invalidateQueries({ queryKey: [o, "lookbook"] });
494
495
  }
495
496
  });
496
- }, Y = (t) => {
497
+ }, X = (t) => {
497
498
  let { apiGatewayUrl: r } = e();
498
499
  return n({
499
500
  queryKey: [
500
- a,
501
+ o,
501
502
  "lookbook",
502
503
  t
503
504
  ],
504
- queryFn: async () => (await o(`query CooLookbook($id: ID!) {
505
+ queryFn: async () => (await s(`query CooLookbook($id: ID!) {
505
506
  cooLookbook(id: $id) {
506
- ${m}
507
+ ${h}
507
508
  entries { id lookbookId lookId styleItemId note position createdAt updatedAt }
508
509
  }
509
510
  }`, { id: t }, r)).cooLookbook,
@@ -511,6 +512,6 @@ var a = "coolandlovely", o = async (e, t, n) => {
511
512
  });
512
513
  };
513
514
  //#endregion
514
- export { k as useArchiveStyleItem, g as useBrand, h as useBrands, L as useCollaboration, I as useCollaborations, x as useCollection, b as useCollections, _ as useCreateBrand, R as useCreateCollaboration, S as useCreateCollection, M as useCreateLook, q as useCreateLookbook, D as useCreateStyleItem, V as useCreateWardrobeItem, F as useDeleteLook, P as useLikeLook, H as useLogWardrobeWear, j as useLook, Y as useLookbook, K as useLookbooks, A as useLooks, W as useMyStyleProfile, w as usePublishCollection, N as usePublishLook, J as useRemoveLookbookEntry, U as useRemoveWardrobeItem, E as useStyleItem, T as useStyleItems, y as useTransitionBrand, z as useTransitionCollaboration, v as useUpdateBrand, C as useUpdateCollection, O as useUpdateStyleItem, G as useUpsertStyleProfile, B as useWardrobeItems };
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 };
515
516
 
516
517
  //# sourceMappingURL=useCoolAndLovelyApi.js.map