@kasuvia/sdk 0.0.8 → 0.0.9

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 (176) hide show
  1. package/README.md +42 -15
  2. package/dist/AddressAutocomplete-CjcqPElD.d.mts +46 -0
  3. package/dist/AddressAutocomplete-CvJHuRkf.d.ts +46 -0
  4. package/dist/components/index.d.mts +497 -0
  5. package/dist/components/index.d.ts +497 -0
  6. package/dist/components/index.js +4217 -0
  7. package/dist/components/index.js.map +1 -0
  8. package/dist/components/index.mjs +4194 -0
  9. package/dist/components/index.mjs.map +1 -0
  10. package/dist/config/server.d.mts +26 -0
  11. package/dist/config/server.d.ts +26 -0
  12. package/dist/config/server.js +38 -0
  13. package/dist/config/server.js.map +1 -0
  14. package/dist/config/server.mjs +13 -0
  15. package/dist/config/server.mjs.map +1 -0
  16. package/dist/hooks/index.d.mts +393 -160
  17. package/dist/hooks/index.d.ts +393 -160
  18. package/dist/hooks/index.js +2792 -2137
  19. package/dist/hooks/index.js.map +1 -1
  20. package/dist/hooks/index.mjs +2734 -2121
  21. package/dist/hooks/index.mjs.map +1 -1
  22. package/dist/index-CNW_LINy.d.mts +578 -0
  23. package/dist/index-CNW_LINy.d.ts +578 -0
  24. package/dist/{index-C1chUA3P.d.mts → index-F7N6UItS.d.mts} +1 -1
  25. package/dist/{index-C1chUA3P.d.ts → index-F7N6UItS.d.ts} +1 -1
  26. package/dist/index-NkI10J_E.d.mts +40 -0
  27. package/dist/index-NkI10J_E.d.ts +40 -0
  28. package/dist/index.d.mts +20437 -103
  29. package/dist/index.d.ts +20437 -103
  30. package/dist/index.js +2111 -1802
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +2006 -1786
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/media.service-Cx7dQjzX.d.mts +1393 -0
  35. package/dist/media.service-mrBFJ2UQ.d.ts +1393 -0
  36. package/dist/services/index.d.mts +908 -2
  37. package/dist/services/index.d.ts +908 -2
  38. package/dist/services/index.js +1492 -1686
  39. package/dist/services/index.js.map +1 -1
  40. package/dist/services/index.mjs +1431 -1670
  41. package/dist/services/index.mjs.map +1 -1
  42. package/package.json +46 -6
  43. package/src/components/bespoke/BespokeAvailabilityBadge.tsx +32 -0
  44. package/src/components/bespoke/BespokeProgressTracker.tsx +58 -0
  45. package/src/components/bespoke/index.ts +3 -0
  46. package/src/components/booking/SlotPicker.tsx +97 -0
  47. package/src/components/booking/index.ts +1 -0
  48. package/src/components/cart/CartItem.tsx +81 -0
  49. package/src/components/cart/CartSidebar.tsx +115 -0
  50. package/src/components/cart/CartTypeMismatchBanner.tsx +55 -0
  51. package/src/components/cart/index.ts +3 -0
  52. package/src/components/index.ts +8 -0
  53. package/src/components/orders/DeliverableReviewer.tsx +139 -0
  54. package/src/components/orders/index.ts +1 -0
  55. package/src/components/product/ProductCard.tsx +350 -0
  56. package/src/components/product/ProductGrid.tsx +84 -0
  57. package/src/components/product/index.ts +2 -0
  58. package/src/components/shared/AddressAutocomplete.tsx +212 -0
  59. package/src/components/shared/AnalyticsScripts.tsx +56 -0
  60. package/src/components/shared/CookieConsentBanner.tsx +98 -0
  61. package/src/components/shared/ImageEditorModal.tsx +1066 -0
  62. package/src/components/shared/ImageViewerModal.tsx +598 -0
  63. package/src/components/shared/LucideReactIcon.tsx +52 -0
  64. package/src/components/shared/MapPinDrop.tsx +101 -0
  65. package/src/components/shared/MultiSelectPicker.tsx +193 -0
  66. package/src/components/shared/OfflineBanner.tsx +46 -0
  67. package/src/components/shared/SearchableInput.tsx +153 -0
  68. package/src/components/shared/SearchablePopover.tsx +166 -0
  69. package/src/components/shared/SmartImage.tsx +311 -0
  70. package/src/components/shared/TruncatedValue.tsx +27 -0
  71. package/src/components/shared/UnsavedChangesGuard.tsx +138 -0
  72. package/src/components/shared/index.ts +15 -0
  73. package/src/components/skeletons/CardSkeleton.tsx +26 -0
  74. package/src/components/skeletons/CartItemSkeleton.tsx +26 -0
  75. package/src/components/skeletons/OrderItemSkeleton.tsx +26 -0
  76. package/src/components/skeletons/ProductCardSkeleton.tsx +26 -0
  77. package/src/components/skeletons/TableSkeleton.tsx +42 -0
  78. package/src/components/skeletons/index.ts +5 -0
  79. package/src/config/index.ts +22 -4
  80. package/src/config/server.ts +45 -0
  81. package/src/context/sdk-context.tsx +5 -2
  82. package/src/generated/auth-openapi.ts +2935 -0
  83. package/src/generated/cart-openapi.ts +652 -0
  84. package/src/generated/cms-openapi.ts +1668 -0
  85. package/src/generated/crm-openapi.ts +986 -0
  86. package/src/generated/graphql.ts +126 -0
  87. package/src/generated/index.ts +11 -0
  88. package/src/generated/media-openapi.ts +613 -0
  89. package/src/generated/notification-openapi.ts +862 -0
  90. package/src/generated/payment-openapi.ts +2713 -0
  91. package/src/generated/store-openapi.ts +9510 -0
  92. package/src/graphql/operations/collections.graphql +32 -0
  93. package/src/graphql/operations/products.graphql +197 -0
  94. package/src/graphql/operations/wishlist.graphql +25 -0
  95. package/src/hooks/index.ts +9 -2
  96. package/src/hooks/use-auth.ts +163 -69
  97. package/src/hooks/use-bespoke-availability.ts +39 -22
  98. package/src/hooks/use-business-config.ts +51 -0
  99. package/src/hooks/use-cart.ts +310 -238
  100. package/src/hooks/use-cms.ts +107 -127
  101. package/src/hooks/use-collections.ts +35 -55
  102. package/src/hooks/use-consultations.ts +9 -136
  103. package/src/hooks/use-countries.ts +19 -28
  104. package/src/hooks/use-currencies.ts +8 -20
  105. package/src/hooks/use-customer-address.ts +64 -0
  106. package/src/hooks/use-feedback.ts +34 -0
  107. package/src/hooks/use-languages.ts +26 -39
  108. package/src/hooks/use-media-upload.ts +23 -0
  109. package/src/hooks/use-notification-stream.ts +88 -0
  110. package/src/hooks/use-notifications.ts +163 -0
  111. package/src/hooks/use-order-stream.ts +29 -29
  112. package/src/hooks/use-orders.ts +91 -73
  113. package/src/hooks/use-payment.ts +116 -84
  114. package/src/hooks/use-products.ts +65 -269
  115. package/src/hooks/use-push-notifications.ts +122 -0
  116. package/src/hooks/use-reviews.ts +175 -0
  117. package/src/hooks/use-service-booking.ts +109 -132
  118. package/src/hooks/use-states.ts +16 -30
  119. package/src/hooks/use-wishlist.ts +44 -69
  120. package/src/index.ts +15 -11
  121. package/src/services/auth.service.ts +422 -132
  122. package/src/services/bespoke.service.ts +69 -10
  123. package/src/services/cart.service.ts +155 -186
  124. package/src/services/cms.service.ts +41 -50
  125. package/src/services/collection.service.ts +25 -63
  126. package/src/services/config.service.ts +10 -21
  127. package/src/services/consultation.service.ts +36 -93
  128. package/src/services/feedback.service.ts +76 -0
  129. package/src/services/index.ts +7 -1
  130. package/src/services/legal.service.ts +62 -0
  131. package/src/services/logistics.service.ts +235 -53
  132. package/src/services/media.service.ts +115 -0
  133. package/src/services/notifications.service.ts +204 -20
  134. package/src/services/order.service.ts +498 -127
  135. package/src/services/payment.service.ts +149 -100
  136. package/src/services/product.service.ts +157 -814
  137. package/src/services/review.service.ts +211 -0
  138. package/src/services/service-booking.service.ts +198 -99
  139. package/src/services/wishlist.service.ts +27 -74
  140. package/src/types/auth/index.ts +161 -18
  141. package/src/types/business/index.ts +9 -1
  142. package/src/types/cms/index.ts +91 -6
  143. package/src/types/cms/legal.ts +18 -0
  144. package/src/types/consultations/index.ts +60 -68
  145. package/src/types/index.ts +5 -3
  146. package/src/types/media/index.ts +35 -3
  147. package/src/types/payments/index.ts +80 -16
  148. package/src/types/reviews/index.ts +116 -0
  149. package/src/types/services/index.ts +113 -38
  150. package/src/types/store/checkout.ts +53 -0
  151. package/src/types/store/index.ts +273 -52
  152. package/src/types/store/invoice.ts +31 -0
  153. package/src/types/store/shipping.ts +84 -3
  154. package/src/types/ui/index.ts +1 -1
  155. package/src/utils/checkout.ts +19 -3
  156. package/src/utils/cookieConsent.ts +34 -0
  157. package/src/utils/format.ts +408 -0
  158. package/src/utils/geolocation.ts +134 -0
  159. package/src/utils/graphql-url.ts +47 -0
  160. package/src/utils/guest-session.ts +59 -0
  161. package/src/utils/http-client.ts +147 -0
  162. package/src/utils/index.ts +11 -4
  163. package/src/utils/status-colors.ts +79 -0
  164. package/src/utils/token-refresh.ts +115 -0
  165. package/src/utils/validators.ts +13 -0
  166. package/src/utils/youtube.ts +18 -0
  167. package/dist/index-C5YO9gTl.d.mts +0 -507
  168. package/dist/index-C5YO9gTl.d.ts +0 -507
  169. package/dist/index-CefG7_xq.d.mts +0 -793
  170. package/dist/index-DeHCf3zI.d.ts +0 -793
  171. package/src/graphql/collections.graphql.ts +0 -48
  172. package/src/graphql/index.ts +0 -7
  173. package/src/graphql/products.graphql.ts +0 -860
  174. package/src/graphql/wishlist.graphql.ts +0 -34
  175. package/src/hooks/use-consultation-stream.ts +0 -142
  176. package/src/types/bespoke/index.ts +0 -39
@@ -1,507 +0,0 @@
1
- /**
2
- * Shipping and delivery types for the storefront
3
- */
4
- interface ShippingRate {
5
- id: string;
6
- carrier_name: string;
7
- carrier_logo: string;
8
- carrier_rate_description: string;
9
- carrier_slug: string;
10
- amount: number;
11
- currency: string;
12
- delivery_time: string;
13
- delivery_eta: number;
14
- pickup_time: string;
15
- pickup_eta: number;
16
- pickup_available: boolean;
17
- dropoff_available?: boolean;
18
- dropoff_required?: boolean;
19
- }
20
- interface ShippingRatesResponse {
21
- status: boolean;
22
- message: string;
23
- data: ShippingRate[];
24
- }
25
- interface DeliveryAddress {
26
- first_name: string;
27
- last_name: string;
28
- phone: string;
29
- street: string;
30
- city: string;
31
- state: string;
32
- lga: string;
33
- country: string;
34
- postal: string;
35
- }
36
- interface AddressValidationErrorData {
37
- message: string;
38
- errorType?: 'state' | 'city' | 'general';
39
- cities?: Array<{
40
- name: string;
41
- city_id: string;
42
- stateCode: string;
43
- countryCode: string;
44
- }>;
45
- states?: Array<{
46
- name: string;
47
- code: string;
48
- countryCode: string;
49
- }>;
50
- }
51
-
52
- type ProductType = "physical" | "digital" | "service" | "bespoke";
53
- declare enum ServiceTypeEnum {
54
- APPOINTMENT = "appointment",
55
- PROJECT = "project",
56
- RECURRING = "recurring"
57
- }
58
- type ServiceType = ServiceTypeEnum | 'appointment' | 'project' | 'recurring';
59
- declare enum ServiceLocationTypeEnum {
60
- REMOTE = "remote",
61
- PHYSICAL = "physical",
62
- BOTH = "both"
63
- }
64
- type ServiceLocationType = ServiceLocationTypeEnum | 'remote' | 'physical' | 'both';
65
- declare enum ServiceRecurringIntervalEnum {
66
- WEEKLY = "weekly",
67
- MONTHLY = "monthly",
68
- YEARLY = "yearly"
69
- }
70
- type ServiceRecurringInterval = ServiceRecurringIntervalEnum | 'weekly' | 'monthly' | 'yearly' | '';
71
- interface Address {
72
- street: string;
73
- city: string;
74
- state: string;
75
- country: string;
76
- zip?: string;
77
- }
78
- interface Collection {
79
- id: string;
80
- business_id?: string;
81
- name: string;
82
- slug: string;
83
- description?: string;
84
- image?: string;
85
- collection_type?: string;
86
- rules?: Record<string, unknown>;
87
- status?: string;
88
- sort_order?: number;
89
- created_at: string;
90
- updated_at: string;
91
- }
92
- interface Inventory {
93
- id: string;
94
- product_id: string;
95
- variant_id?: string;
96
- quantity: number;
97
- reserved: number;
98
- reorder_point: number;
99
- reorder_quantity: number;
100
- track_quantity: boolean;
101
- allow_backorder: boolean;
102
- available: number;
103
- is_in_stock: boolean;
104
- is_low_stock: boolean;
105
- updated_at: string;
106
- }
107
- interface ProductVariant {
108
- id: string;
109
- product_id: string;
110
- sku?: string;
111
- attributes: Record<string, string>;
112
- price?: number;
113
- images: string[];
114
- weight_kg?: number;
115
- is_active: boolean;
116
- inventory?: Inventory;
117
- created_at: string;
118
- updated_at: string;
119
- }
120
- interface CustomField {
121
- label: string;
122
- unit?: string;
123
- required: boolean;
124
- type?: string;
125
- key?: string;
126
- placeholder?: string;
127
- }
128
- interface Product {
129
- id: string;
130
- business_id: string;
131
- name: string;
132
- slug: string;
133
- description?: string;
134
- brand?: string;
135
- product_type: ProductType;
136
- requires_shipping: boolean;
137
- is_consumable: boolean;
138
- is_bespoke: boolean;
139
- is_physical?: boolean | null;
140
- base_price: number;
141
- currency: string;
142
- sale_price?: number;
143
- sale_start?: string;
144
- sale_end?: string;
145
- images: string[];
146
- tags: string[];
147
- custom_fields: CustomField[];
148
- is_published: boolean;
149
- is_featured: boolean;
150
- is_popular: boolean;
151
- is_new: boolean;
152
- is_temporary: boolean;
153
- digital_file_key?: string;
154
- download_limit?: number;
155
- download_expires_at?: string;
156
- service_type?: ServiceType | null;
157
- service_duration_minutes?: number | null;
158
- service_location_type?: ServiceLocationType | null;
159
- service_requires_consultation?: boolean;
160
- service_max_capacity_per_slot?: number | null;
161
- service_buffer_minutes?: number;
162
- service_is_recurring?: boolean;
163
- service_recurring_interval?: ServiceRecurringInterval | null;
164
- service_project_based?: boolean;
165
- weight_kg: number;
166
- length_cm?: number;
167
- width_cm?: number;
168
- height_cm?: number;
169
- created_at: string;
170
- updated_at: string;
171
- variants: ProductVariant[];
172
- collections: Collection[];
173
- }
174
- interface ListParams {
175
- page?: number;
176
- pageSize?: number;
177
- search?: string;
178
- ordering?: string;
179
- collectionSlug?: string;
180
- excludeProductId?: string;
181
- }
182
- interface PaginatedResponse<T> {
183
- items: T[];
184
- total: number;
185
- page: number;
186
- page_size: number;
187
- total_pages: number;
188
- }
189
- interface CartItem {
190
- id: string;
191
- product_id: string;
192
- product_slug: string;
193
- product_name: string;
194
- image?: string;
195
- variant_id?: string;
196
- variant_attributes?: string | Record<string, string>;
197
- unit_price: number;
198
- quantity: number;
199
- custom_measurements?: string;
200
- is_bespoke: boolean;
201
- created_at: string;
202
- updated_at: string;
203
- }
204
- interface CartResponse {
205
- items: CartItem[];
206
- subtotal: number;
207
- total: number;
208
- item_count: number;
209
- product_type?: string;
210
- }
211
- interface WishlistItem {
212
- id: string;
213
- product_id: string;
214
- notes?: string;
215
- created_at: string;
216
- product_name?: string;
217
- product_slug?: string;
218
- product_price?: number;
219
- product_image?: string;
220
- }
221
- interface WishlistListResponse {
222
- items: WishlistItem[];
223
- total: number;
224
- page: number;
225
- page_size: number;
226
- total_pages: number;
227
- }
228
- interface WishlistCheckResponse {
229
- in_wishlist: boolean;
230
- }
231
- type OrderStatus = 'pending' | 'confirmed' | 'processing' | 'packed' | 'picked_up' | 'in_transit' | 'shipped' | 'delivered' | 'voided' | 'refunded' | 'failed';
232
- type BespokeStageKey = "received" | "development" | "finished" | "dispatched";
233
- interface OrderItem {
234
- id: string;
235
- productName: string;
236
- image: string;
237
- quantity: number;
238
- price: number;
239
- }
240
- interface Order {
241
- id: string;
242
- display_id?: string;
243
- items: OrderItem[];
244
- total: number;
245
- status: OrderStatus;
246
- customerEmail: string;
247
- customerName: string;
248
- createdAt: number;
249
- updatedAt: number;
250
- deliveryMethod?: string;
251
- trackingNumber?: string;
252
- deliveryAddress?: string;
253
- shippingAddress?: DeliveryAddress;
254
- cancellationReason?: string;
255
- hasBespoke?: boolean;
256
- bespokeStage?: BespokeStageKey;
257
- bespokeBrief?: string;
258
- deliveryStatus?: string;
259
- carrierName?: string;
260
- terminalShipmentId?: string;
261
- guestToken?: string;
262
- guestEmail?: string;
263
- guestPhone?: string;
264
- guestName?: string;
265
- }
266
- interface CheckoutCustomer {
267
- first_name: string;
268
- last_name: string;
269
- email: string;
270
- phone: string;
271
- }
272
- interface ShippingLocation {
273
- street: string;
274
- city: string;
275
- state: string;
276
- lga: string;
277
- country: string;
278
- postal: string;
279
- }
280
- interface FindOrderParams {
281
- email: string;
282
- order_id: string;
283
- }
284
- interface CreateOrderParams {
285
- customer_id?: string | null;
286
- status?: string;
287
- shipping_address?: DeliveryAddress;
288
- checkout_session_id?: string;
289
- items: Array<{
290
- product_id: string;
291
- product_name: string;
292
- quantity: number;
293
- unit_price: number;
294
- variant_id?: string;
295
- variant_details?: Record<string, unknown>;
296
- custom_measurements?: Record<string, unknown>;
297
- }>;
298
- delivery_method?: string;
299
- delivery_address?: string;
300
- total?: number;
301
- payment_method?: string;
302
- shipping_rate_id?: string;
303
- guest_token?: string;
304
- guest_email?: string;
305
- guest_phone?: string;
306
- guest_name?: string;
307
- product_type?: string;
308
- bespoke_brief?: string;
309
- bespoke_reference_images?: string[];
310
- bespoke_measurements?: Record<string, string>;
311
- bespoke_preferred_timeline?: string;
312
- bespoke_special_instructions?: string;
313
- }
314
-
315
- /**
316
- * Kasuvia SDK Configuration
317
- *
318
- * Stateless configuration - no module-scoped state.
319
- * All configuration is passed as parameters to SDK functions.
320
- *
321
- * SECURITY NOTE: Backend URLs should never be exposed to the browser.
322
- * They should only be used on the server side or in Next.js API routes.
323
- */
324
- interface SdkConfig {
325
- businessId: string;
326
- storefrontApiKey: string;
327
- backendUrls: {
328
- auth: string;
329
- store: string;
330
- payment: string;
331
- notifications: string;
332
- cms: string;
333
- };
334
- }
335
-
336
- /**
337
- * @file types/payments/index.ts
338
- * @description All customer-facing payment types for the Kasuvia Payment System.
339
- *
340
- * Auth model:
341
- * - X-Storefront-Key → identifies the business storefront
342
- * - X-Business-ID → tenant context
343
- * No business-owner JWT used here — these are CUSTOMER-facing types.
344
- *
345
- * Payment flow:
346
- * Customer → Business Owner : Monnify (NGN) | Flutterwave (non-NGN)
347
- * Business Owner → Kasuvia : Subscription (separate, JWT-auth)
348
- * Kasuvia → Business Owner : Payout (separate, JWT-auth)
349
- */
350
- interface Currency {
351
- code: string;
352
- name: string;
353
- symbol: string;
354
- decimals: number;
355
- is_active: boolean;
356
- }
357
- interface SupportedCurrenciesResponse {
358
- currencies: Currency[];
359
- }
360
- interface BackendLanguage {
361
- code: string;
362
- label: string;
363
- flag: string;
364
- }
365
- interface SupportedLang {
366
- code: string;
367
- appCode: string;
368
- label: string;
369
- native: string;
370
- flag: string;
371
- }
372
- interface SupportedLanguagesResponse {
373
- languages: BackendLanguage[];
374
- }
375
- interface DVACreateRequest {
376
- order_id?: string;
377
- amount: number;
378
- customer_email: string;
379
- customer_name?: string;
380
- /** Defaults to NGN — DVA is Monnify-only */
381
- currency?: string;
382
- /** Idempotency key to prevent duplicate DVA creation */
383
- idempotency_key?: string;
384
- }
385
- interface PaymentInitiateRequest {
386
- amount: number;
387
- currency: string;
388
- customer_email: string;
389
- customer_name?: string;
390
- order_id?: string;
391
- quote_id?: string;
392
- /** Window origin of the storefront — used as gateway redirect base URL */
393
- storefront_origin?: string;
394
- metadata?: Record<string, string | number | boolean>;
395
- /** Idempotency key to prevent duplicate payment initiation */
396
- idempotency_key?: string;
397
- }
398
- interface ConversionQuote {
399
- id: string;
400
- business_id: string;
401
- from_currency: string;
402
- to_currency: string;
403
- rate: number;
404
- original_amount: number;
405
- converted_amount: number;
406
- is_used: boolean;
407
- expires_at: string;
408
- created_at: string;
409
- }
410
- interface DVADetails {
411
- account_number: string;
412
- bank_name: string;
413
- account_name: string;
414
- reference: string;
415
- amount: number;
416
- transaction_id: string;
417
- expires_at: string;
418
- }
419
- interface PaymentInitiateResponse {
420
- id: string;
421
- gateway_ref: string;
422
- gateway: string;
423
- status: string;
424
- /** Normalised top-level checkout URL for gateway redirect */
425
- checkout_url: string;
426
- }
427
- interface TransactionVerifyResponse {
428
- id: string;
429
- status: string;
430
- amount: number;
431
- currency: string;
432
- gateway_ref: string;
433
- gateway?: string;
434
- order_id?: string;
435
- escrow_status?: string;
436
- escrow_release_date?: string;
437
- metadata_json?: Record<string, unknown>;
438
- }
439
-
440
- /**
441
- * CMS Types
442
- *
443
- * Types for kasuvia-cms integration - dynamic content models and entries
444
- */
445
- interface CmsField {
446
- name: string;
447
- label: string;
448
- type: string;
449
- required: boolean;
450
- config: Record<string, any>;
451
- sub_fields?: CmsField[];
452
- }
453
- interface CmsModelPermissions {
454
- read: boolean;
455
- create: boolean;
456
- update: boolean;
457
- delete: boolean;
458
- }
459
- interface CmsModelPublicApiPermissions {
460
- public_api: CmsModelPermissions;
461
- }
462
- interface CmsModel {
463
- id: string;
464
- business_id: string;
465
- model_slug: string;
466
- display_name: string;
467
- description: string | null;
468
- fields: CmsField[];
469
- permissions: CmsModelPublicApiPermissions;
470
- }
471
- interface CmsEntry {
472
- id: string;
473
- business_id: string;
474
- model_slug: string;
475
- data: Record<string, any>;
476
- created_at: string;
477
- updated_at: string;
478
- created_by: string | null;
479
- }
480
- interface CmsEntryListResponse {
481
- entries: CmsEntry[];
482
- total: number;
483
- page: number;
484
- page_size: number;
485
- }
486
- interface CmsIcon {
487
- id: string;
488
- name: string;
489
- category: string;
490
- tags: string[];
491
- }
492
- interface CmsIconListResponse {
493
- icons: CmsIcon[];
494
- total: number;
495
- }
496
- interface ListCmsEntriesParams {
497
- page?: number;
498
- page_size?: number;
499
- }
500
- interface CreateCmsEntryParams {
501
- data: Record<string, any>;
502
- }
503
- interface UpdateCmsEntryParams {
504
- data: Record<string, any>;
505
- }
506
-
507
- export { type WishlistItem as $, type Address as A, type BackendLanguage as B, type CheckoutCustomer as C, type DeliveryAddress as D, type ProductType as E, type FindOrderParams as F, type ProductVariant as G, type SdkConfig as H, type Inventory as I, type ServiceLocationType as J, ServiceLocationTypeEnum as K, type ListCmsEntriesParams as L, type ServiceRecurringInterval as M, ServiceRecurringIntervalEnum as N, type Order as O, type PaginatedResponse as P, type ServiceType as Q, ServiceTypeEnum as R, type ShippingLocation as S, type ShippingRate as T, type ShippingRatesResponse as U, type SupportedCurrenciesResponse as V, type SupportedLang as W, type SupportedLanguagesResponse as X, type TransactionVerifyResponse as Y, type UpdateCmsEntryParams as Z, type WishlistCheckResponse as _, type AddressValidationErrorData as a, type WishlistListResponse as a0, type BespokeStageKey as b, type CartItem as c, type CartResponse as d, type CmsEntry as e, type CmsEntryListResponse as f, type CmsField as g, type CmsIcon as h, type CmsIconListResponse as i, type CmsModel as j, type CmsModelPermissions as k, type CmsModelPublicApiPermissions as l, type Collection as m, type ConversionQuote as n, type CreateCmsEntryParams as o, type CreateOrderParams as p, type Currency as q, type CustomField as r, type DVACreateRequest as s, type DVADetails as t, type ListParams as u, type OrderItem as v, type OrderStatus as w, type PaymentInitiateRequest as x, type PaymentInitiateResponse as y, type Product as z };