@crayonscodetech/cms-sdk 1.0.8 → 1.0.10
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/README.md +167 -33
- package/dist/index.cjs +332 -207
- package/dist/index.d.cts +175 -42
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +175 -42
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +329 -182
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -19
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LucideProps } from "lucide-react";
|
|
3
1
|
//#region src/types/pagination.d.ts
|
|
4
2
|
interface PaginationMeta {
|
|
5
3
|
page: number;
|
|
@@ -36,7 +34,7 @@ interface Header {
|
|
|
36
34
|
site_id: string;
|
|
37
35
|
nav_links: NavLink[];
|
|
38
36
|
ctas: Cta[];
|
|
39
|
-
extra: Record<string,
|
|
37
|
+
extra: Record<string, unknown>;
|
|
40
38
|
}
|
|
41
39
|
//#endregion
|
|
42
40
|
//#region src/types/footer.d.ts
|
|
@@ -57,7 +55,7 @@ interface Footer {
|
|
|
57
55
|
id: string;
|
|
58
56
|
site_id: string;
|
|
59
57
|
nav_groups: FooterNavGroup[];
|
|
60
|
-
extra: Record<string,
|
|
58
|
+
extra: Record<string, unknown>;
|
|
61
59
|
}
|
|
62
60
|
//#endregion
|
|
63
61
|
//#region src/types/site-config.d.ts
|
|
@@ -97,6 +95,20 @@ interface SiteConfig {
|
|
|
97
95
|
contact: ContactConfig;
|
|
98
96
|
}
|
|
99
97
|
//#endregion
|
|
98
|
+
//#region src/constants/pageTypes.d.ts
|
|
99
|
+
/**
|
|
100
|
+
* Page type identifiers. Mirrors cms-backend/src/constants/pageTypes.ts.
|
|
101
|
+
*
|
|
102
|
+
* `pageTypes` are the singleton types — a site may have at most one page of
|
|
103
|
+
* each, enforced on create by the backend (cms/page/page.routes.ts). Attempting
|
|
104
|
+
* a second one is rejected with "A page with type "<type>" already exists for
|
|
105
|
+
* this site". `custom` is the only repeatable type.
|
|
106
|
+
*/
|
|
107
|
+
declare const pageTypes: readonly ["home", "about", "contact", "services", "blog", "team", "gallery", "events", "clients-partners", "testimonial", "faq"];
|
|
108
|
+
/** The full set accepted by the backend's page validator. */
|
|
109
|
+
declare const allPageTypes: readonly ["home", "about", "contact", "services", "blog", "team", "gallery", "events", "clients-partners", "testimonial", "faq", "custom"];
|
|
110
|
+
type PageType = (typeof allPageTypes)[number];
|
|
111
|
+
//#endregion
|
|
100
112
|
//#region src/types/cms-page.d.ts
|
|
101
113
|
interface CTA {
|
|
102
114
|
type: string;
|
|
@@ -255,6 +267,12 @@ interface CollectionGroupSection {
|
|
|
255
267
|
subtitle?: string | null;
|
|
256
268
|
collection_groups: string[];
|
|
257
269
|
}
|
|
270
|
+
interface AlbumGroupSection {
|
|
271
|
+
section_heading?: string | null;
|
|
272
|
+
title: string;
|
|
273
|
+
subtitle?: string | null;
|
|
274
|
+
album_ids: string[];
|
|
275
|
+
}
|
|
258
276
|
type Section = {
|
|
259
277
|
id: string;
|
|
260
278
|
variant?: string | null;
|
|
@@ -345,6 +363,11 @@ type Section = {
|
|
|
345
363
|
variant?: string | null;
|
|
346
364
|
type: "collection-group";
|
|
347
365
|
content: CollectionGroupSection;
|
|
366
|
+
} | {
|
|
367
|
+
id: string;
|
|
368
|
+
variant?: string | null;
|
|
369
|
+
type: "album-group";
|
|
370
|
+
content: AlbumGroupSection;
|
|
348
371
|
};
|
|
349
372
|
interface SEO {
|
|
350
373
|
title: string;
|
|
@@ -359,11 +382,11 @@ interface Page {
|
|
|
359
382
|
title: string;
|
|
360
383
|
subtitle: string | null;
|
|
361
384
|
sections: Section[];
|
|
362
|
-
page_type:
|
|
385
|
+
page_type: PageType;
|
|
363
386
|
status: "draft" | "published" | "archived";
|
|
364
387
|
seo: SEO | null;
|
|
365
|
-
settings: Record<string,
|
|
366
|
-
extra?: Record<string,
|
|
388
|
+
settings: Record<string, unknown> | null;
|
|
389
|
+
extra?: Record<string, unknown> | null;
|
|
367
390
|
created_at: string;
|
|
368
391
|
updated_at: string;
|
|
369
392
|
}
|
|
@@ -371,7 +394,10 @@ type PageListItem = Omit<Page, "sections">;
|
|
|
371
394
|
//#endregion
|
|
372
395
|
//#region src/types/about.d.ts
|
|
373
396
|
interface AboutValue {
|
|
374
|
-
image
|
|
397
|
+
image?: {
|
|
398
|
+
url?: string;
|
|
399
|
+
alt?: string;
|
|
400
|
+
};
|
|
375
401
|
icon: string;
|
|
376
402
|
title: string;
|
|
377
403
|
description: string;
|
|
@@ -420,6 +446,8 @@ interface Service {
|
|
|
420
446
|
link_text?: string | null;
|
|
421
447
|
link_url?: string | null;
|
|
422
448
|
order: number;
|
|
449
|
+
is_published: boolean;
|
|
450
|
+
published_at?: string | null;
|
|
423
451
|
created_at: string;
|
|
424
452
|
updated_at: string;
|
|
425
453
|
seo: ProductSEO | null;
|
|
@@ -468,7 +496,10 @@ interface Category {
|
|
|
468
496
|
slug: string;
|
|
469
497
|
description?: string | null;
|
|
470
498
|
order: number;
|
|
471
|
-
|
|
499
|
+
seo?: ProductSEO | null;
|
|
500
|
+
extra?: (Record<string, unknown> & {
|
|
501
|
+
sections?: Section[];
|
|
502
|
+
}) | null;
|
|
472
503
|
created_at: string;
|
|
473
504
|
updated_at: string;
|
|
474
505
|
}
|
|
@@ -515,7 +546,9 @@ interface Album {
|
|
|
515
546
|
created_at: string;
|
|
516
547
|
updated_at: string;
|
|
517
548
|
items?: AlbumItem[];
|
|
518
|
-
extra?:
|
|
549
|
+
extra?: (Record<string, unknown> & {
|
|
550
|
+
sections?: Section[];
|
|
551
|
+
}) | null;
|
|
519
552
|
}
|
|
520
553
|
interface AlbumItem {
|
|
521
554
|
id: string;
|
|
@@ -539,7 +572,10 @@ interface BrandGroup {
|
|
|
539
572
|
order: number;
|
|
540
573
|
created_at: string;
|
|
541
574
|
updated_at: string;
|
|
542
|
-
|
|
575
|
+
seo?: ProductSEO | null;
|
|
576
|
+
extra?: (Record<string, unknown> & {
|
|
577
|
+
sections?: Section[];
|
|
578
|
+
}) | null;
|
|
543
579
|
brands?: Brand[];
|
|
544
580
|
}
|
|
545
581
|
interface Brand {
|
|
@@ -572,7 +608,7 @@ interface Testimonial {
|
|
|
572
608
|
is_published: boolean;
|
|
573
609
|
created_at: string;
|
|
574
610
|
updated_at: string;
|
|
575
|
-
extra:
|
|
611
|
+
extra: Record<string, unknown> | null;
|
|
576
612
|
}
|
|
577
613
|
//#endregion
|
|
578
614
|
//#region src/types/event.d.ts
|
|
@@ -630,6 +666,10 @@ interface FaqGroup {
|
|
|
630
666
|
description: string | null;
|
|
631
667
|
order: number;
|
|
632
668
|
faqs: Faq[];
|
|
669
|
+
seo?: ProductSEO | null;
|
|
670
|
+
extra?: {
|
|
671
|
+
sections: Section[];
|
|
672
|
+
} | null;
|
|
633
673
|
created_at: string;
|
|
634
674
|
updated_at: string;
|
|
635
675
|
}
|
|
@@ -671,6 +711,15 @@ interface ContactPayload {
|
|
|
671
711
|
subject?: string | null;
|
|
672
712
|
message: string;
|
|
673
713
|
type?: string;
|
|
714
|
+
/**
|
|
715
|
+
* Cloudflare Turnstile token from the widget on your form.
|
|
716
|
+
*
|
|
717
|
+
* Required whenever the site has Turnstile enabled — check with
|
|
718
|
+
* `fetchContactConfig(siteId)`. Submitting without one is rejected with 403
|
|
719
|
+
* (`CmsError`), and the token is single-use: on a failed submit, reset the
|
|
720
|
+
* widget before retrying rather than resending the same value.
|
|
721
|
+
*/
|
|
722
|
+
turnstile_token?: string;
|
|
674
723
|
}
|
|
675
724
|
interface Contact extends ContactPayload {
|
|
676
725
|
id: string;
|
|
@@ -679,6 +728,36 @@ interface Contact extends ContactPayload {
|
|
|
679
728
|
created_at: string;
|
|
680
729
|
updated_at: string;
|
|
681
730
|
}
|
|
731
|
+
/**
|
|
732
|
+
* Public Turnstile settings for a site's contact form, from
|
|
733
|
+
* GET /:site_id/contact-config/.
|
|
734
|
+
*
|
|
735
|
+
* Named to avoid colliding with `ContactConfig` in ./site-config, which is the
|
|
736
|
+
* site's displayed contact details (phone, email, socials) and unrelated.
|
|
737
|
+
*
|
|
738
|
+
* `enabled` with a null `site_key` means the site is misconfigured: the widget
|
|
739
|
+
* cannot render and submissions will be rejected. Treat it as "do not show the
|
|
740
|
+
* form" rather than "no captcha needed".
|
|
741
|
+
*/
|
|
742
|
+
interface PublicContactConfig {
|
|
743
|
+
turnstile: {
|
|
744
|
+
enabled: boolean;
|
|
745
|
+
site_key: string | null;
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
/** Attachment caps enforced by the API; mirrored here to fail fast client-side. */
|
|
749
|
+
declare const MAX_CONTACT_ATTACHMENTS = 3;
|
|
750
|
+
/**
|
|
751
|
+
* Total attachment budget, measured on RAW bytes.
|
|
752
|
+
*
|
|
753
|
+
* Attachments are forwarded onto the notification email, so the ceiling is
|
|
754
|
+
* Cloudflare Email's 5 MiB message limit — but the wire format is base64, 4/3
|
|
755
|
+
* the size. 3 MiB raw leaves headroom; 4 MiB encoded to ~5.33 MiB and was
|
|
756
|
+
* already over. Keep in step with MAX_CONTACT_ATTACHMENTS_TOTAL_BYTES in
|
|
757
|
+
* cms-backend/src/constants/limits.ts.
|
|
758
|
+
*/
|
|
759
|
+
declare const MAX_CONTACT_ATTACHMENTS_TOTAL_BYTES: number;
|
|
760
|
+
declare const CONTACT_ATTACHMENT_MIME_ALLOWLIST: readonly string[];
|
|
682
761
|
//#endregion
|
|
683
762
|
//#region src/types/product.d.ts
|
|
684
763
|
type ProductStatus = "draft" | "published" | "archived" | "out_of_stock";
|
|
@@ -857,7 +936,9 @@ interface PlaceOrderPayload {
|
|
|
857
936
|
customer_phone?: string | null;
|
|
858
937
|
notes?: string | null;
|
|
859
938
|
discount?: number | null;
|
|
860
|
-
|
|
939
|
+
/** Flat string map only — the API validates `Record<string, string>` on a
|
|
940
|
+
* strict schema, so nested objects, numbers and arrays are rejected (400). */
|
|
941
|
+
metadata?: Record<string, string>;
|
|
861
942
|
}
|
|
862
943
|
interface CartItem {
|
|
863
944
|
variant: ProductVariant;
|
|
@@ -873,30 +954,88 @@ interface StoreSettings {
|
|
|
873
954
|
}
|
|
874
955
|
//#endregion
|
|
875
956
|
//#region src/types/sitemap.d.ts
|
|
876
|
-
interface
|
|
957
|
+
interface SitemapBase {
|
|
958
|
+
updatedAt: string;
|
|
959
|
+
}
|
|
960
|
+
interface SitemapBlogItem extends SitemapBase {
|
|
877
961
|
slug: string;
|
|
878
962
|
image: string | null;
|
|
879
963
|
title: string;
|
|
880
964
|
}
|
|
881
|
-
interface SitemapPageItem {
|
|
965
|
+
interface SitemapPageItem extends SitemapBase {
|
|
882
966
|
url: string;
|
|
883
967
|
title: string;
|
|
884
968
|
}
|
|
885
|
-
interface SitemapProductItem {
|
|
969
|
+
interface SitemapProductItem extends SitemapBase {
|
|
886
970
|
slug: string;
|
|
887
971
|
image: string | null;
|
|
888
972
|
name: string;
|
|
889
973
|
}
|
|
890
|
-
interface SitemapCollectionItem {
|
|
974
|
+
interface SitemapCollectionItem extends SitemapBase {
|
|
891
975
|
slug: string;
|
|
892
976
|
image: string | null;
|
|
893
977
|
name: string;
|
|
894
978
|
}
|
|
979
|
+
interface SitemapServiceItem extends SitemapBase {
|
|
980
|
+
slug: string;
|
|
981
|
+
image: string | null;
|
|
982
|
+
title: string;
|
|
983
|
+
}
|
|
984
|
+
interface SitemapEventItem extends SitemapBase {
|
|
985
|
+
slug: string;
|
|
986
|
+
image: string | null;
|
|
987
|
+
title: string;
|
|
988
|
+
}
|
|
989
|
+
interface SitemapAlbumItem extends SitemapBase {
|
|
990
|
+
slug: string;
|
|
991
|
+
image: string | null;
|
|
992
|
+
title: string;
|
|
993
|
+
}
|
|
994
|
+
interface SitemapTeamMemberItem extends SitemapBase {
|
|
995
|
+
slug: string;
|
|
996
|
+
image: string | null;
|
|
997
|
+
title: string;
|
|
998
|
+
}
|
|
999
|
+
interface SitemapTeamCategoryItem extends SitemapBase {
|
|
1000
|
+
slug: string;
|
|
1001
|
+
title: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface SitemapBrandGroupItem extends SitemapBase {
|
|
1004
|
+
slug: string;
|
|
1005
|
+
title: string;
|
|
1006
|
+
}
|
|
1007
|
+
interface SitemapProductCategoryItem extends SitemapBase {
|
|
1008
|
+
slug: string;
|
|
1009
|
+
image: string | null;
|
|
1010
|
+
title: string;
|
|
1011
|
+
}
|
|
1012
|
+
interface SitemapProductBrandItem extends SitemapBase {
|
|
1013
|
+
slug: string;
|
|
1014
|
+
image: string | null;
|
|
1015
|
+
title: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface SitemapResourceMap {
|
|
1018
|
+
blogs: SitemapBlogItem;
|
|
1019
|
+
pages: SitemapPageItem;
|
|
1020
|
+
services: SitemapServiceItem;
|
|
1021
|
+
events: SitemapEventItem;
|
|
1022
|
+
albums: SitemapAlbumItem;
|
|
1023
|
+
"team-members": SitemapTeamMemberItem;
|
|
1024
|
+
"team-categories": SitemapTeamCategoryItem;
|
|
1025
|
+
"brand-groups": SitemapBrandGroupItem;
|
|
1026
|
+
products: SitemapProductItem;
|
|
1027
|
+
collections: SitemapCollectionItem;
|
|
1028
|
+
"product-categories": SitemapProductCategoryItem;
|
|
1029
|
+
"product-brands": SitemapProductBrandItem;
|
|
1030
|
+
}
|
|
1031
|
+
type SitemapResource = keyof SitemapResourceMap;
|
|
1032
|
+
type SitemapItem<R extends SitemapResource = SitemapResource> = SitemapResourceMap[R];
|
|
895
1033
|
//#endregion
|
|
896
1034
|
//#region src/core/client.d.ts
|
|
897
1035
|
interface FetchOptions extends RequestInit {
|
|
898
1036
|
revalidate?: number;
|
|
899
1037
|
tags?: string[];
|
|
1038
|
+
retries?: number;
|
|
900
1039
|
}
|
|
901
1040
|
interface CmsClientConfig {
|
|
902
1041
|
baseUrl: string;
|
|
@@ -917,6 +1056,7 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
917
1056
|
page?: number;
|
|
918
1057
|
}, options?: FetchOptions) => Promise<PaginatedResponse<PageListItem>>;
|
|
919
1058
|
fetchPageByUrl: (siteId: string, urlPath: string, options?: FetchOptions) => Promise<Page | null>;
|
|
1059
|
+
fetchPageByType: (siteId: string, pageType: PageType, options?: FetchOptions) => Promise<Page | null>;
|
|
920
1060
|
fetchAboutUs: (siteId: string, options?: FetchOptions) => Promise<AboutUsData | null>;
|
|
921
1061
|
fetchServices: (siteId: string, params?: {
|
|
922
1062
|
page?: number;
|
|
@@ -949,9 +1089,15 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
949
1089
|
search?: string;
|
|
950
1090
|
}, options?: FetchOptions) => Promise<PaginatedResponse<Album>>;
|
|
951
1091
|
fetchAlbumItems: (siteId: string, params: {
|
|
1092
|
+
/** Album slug. */
|
|
952
1093
|
album?: string;
|
|
1094
|
+
/** Comma-separated list of album IDs (e.g., "id1,id2") */
|
|
953
1095
|
album_id?: string;
|
|
954
1096
|
page?: number;
|
|
1097
|
+
/**
|
|
1098
|
+
* Defaults to 10 server-side (max 100) — pass an explicit value to get a
|
|
1099
|
+
* whole album, or several albums' worth for an album-group section.
|
|
1100
|
+
*/
|
|
955
1101
|
limit?: number;
|
|
956
1102
|
}, options?: FetchOptions) => Promise<PaginatedResponse<AlbumItem>>;
|
|
957
1103
|
fetchBrandGroups: (siteId: string, params?: {
|
|
@@ -987,7 +1133,8 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
987
1133
|
fetchRedirects: (siteId: string, options?: FetchOptions) => Promise<Redirect[]>;
|
|
988
1134
|
resolveRedirect: (siteId: string, sourcePath: string, options?: FetchOptions) => Promise<ResolvedRedirect | null>;
|
|
989
1135
|
reportRedirect404: (siteId: string, sourcePath: string, referrer?: string, options?: FetchOptions) => Promise<Redirect404Log | null>;
|
|
990
|
-
submitContactForm: (siteId: string, payload: ContactPayload, options?: FetchOptions) => Promise<Contact
|
|
1136
|
+
submitContactForm: (siteId: string, payload: ContactPayload, attachments?: File[], options?: FetchOptions) => Promise<Contact>;
|
|
1137
|
+
fetchContactConfig: (siteId: string, options?: FetchOptions) => Promise<PublicContactConfig | null>;
|
|
991
1138
|
fetchStoreSettings: (siteId: string, options?: FetchOptions) => Promise<StoreSettings | null>;
|
|
992
1139
|
fetchProductCategories: (siteId: string, params?: {
|
|
993
1140
|
page?: number;
|
|
@@ -1045,6 +1192,10 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
1045
1192
|
availability?: "in_stock" | "out_of_stock";
|
|
1046
1193
|
}, options?: FetchOptions) => Promise<CollectionDetail | null>;
|
|
1047
1194
|
placeOrder: (siteId: string, payload: PlaceOrderPayload, options?: FetchOptions) => Promise<Order | null>;
|
|
1195
|
+
fetchSitemap: <R extends SitemapResource>(siteId: string, resource: R, params?: {
|
|
1196
|
+
page?: number;
|
|
1197
|
+
limit?: number;
|
|
1198
|
+
}, options?: FetchOptions) => Promise<PaginatedResponse<SitemapResourceMap[R]>>;
|
|
1048
1199
|
fetchSitemapBlogs: (siteId: string, params?: {
|
|
1049
1200
|
page?: number;
|
|
1050
1201
|
limit?: number;
|
|
@@ -1061,18 +1212,13 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
1061
1212
|
page?: number;
|
|
1062
1213
|
limit?: number;
|
|
1063
1214
|
}, options?: FetchOptions) => Promise<PaginatedResponse<SitemapCollectionItem>>;
|
|
1064
|
-
fetch: <T>(endpoint: string, options?: FetchOptions
|
|
1065
|
-
fetchPaginated: <T>(endpoint: string, options?: FetchOptions
|
|
1215
|
+
fetch: <T>(endpoint: string, options?: FetchOptions) => Promise<T | null>;
|
|
1216
|
+
fetchPaginated: <T>(endpoint: string, options?: FetchOptions) => Promise<PaginatedResponse<T>>;
|
|
1066
1217
|
utils: {
|
|
1067
1218
|
buildQueryString: (params: Record<string, string | number | string[] | number[] | undefined | null>) => string;
|
|
1068
1219
|
};
|
|
1069
1220
|
};
|
|
1070
1221
|
//#endregion
|
|
1071
|
-
//#region src/constants/pageTypes.d.ts
|
|
1072
|
-
declare const pageTypes: readonly ["home", "about", "contact"];
|
|
1073
|
-
declare const defaultPageTypes: readonly ["home", "about", "contact", "services", "blog", "team", "gallery", "events"];
|
|
1074
|
-
declare const allPageTypes: readonly ["home", "about", "contact", "custom", "services", "blog", "team", "gallery", "events"];
|
|
1075
|
-
//#endregion
|
|
1076
1222
|
//#region src/constants/index.d.ts
|
|
1077
1223
|
declare const PAGINATION: {
|
|
1078
1224
|
readonly DEFAULT_PAGE: 1;
|
|
@@ -1169,22 +1315,9 @@ interface UpdateSitePayload {
|
|
|
1169
1315
|
domain?: string;
|
|
1170
1316
|
}
|
|
1171
1317
|
//#endregion
|
|
1172
|
-
//#region src/
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
*/
|
|
1176
|
-
declare const ICON_MAP: Record<string, React.ComponentType<LucideProps>>;
|
|
1177
|
-
interface IconProps extends LucideProps {
|
|
1178
|
-
/** The name of the icon (from the ICON_MAP keys) */
|
|
1179
|
-
name: string;
|
|
1180
|
-
/** Fallback icon name if the provided name is not found */
|
|
1181
|
-
fallback?: string;
|
|
1182
|
-
}
|
|
1183
|
-
/**
|
|
1184
|
-
* Dynamic Icon component that renders Lucide icons by name.
|
|
1185
|
-
* Useful for CMS-driven icons where names are stored as strings.
|
|
1186
|
-
*/
|
|
1187
|
-
declare function Icon({ name, fallback, ...props }: IconProps): React.ReactElement<LucideProps, string | React.JSXElementConstructor<any>>;
|
|
1318
|
+
//#region src/types/icon.d.ts
|
|
1319
|
+
declare const ICON_NAMES: readonly ["Home", "User", "Settings", "Mail", "Bell", "Calendar", "Star", "Heart", "Bookmark", "Search", "Filter", "Download", "Upload", "Trash", "Edit", "Plus", "Minus", "Check", "X", "ChevronRight", "ChevronLeft", "ChevronUp", "ChevronDown", "ChevronsUpDown", "ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown", "File", "Folder", "Image", "Video", "Music", "Lock", "Unlock", "Eye", "EyeOff", "Sun", "Moon", "Cloud", "Zap", "Activity", "TrendingUp", "TrendingDown", "BarChart", "PieChart", "Database", "Server", "Wifi", "Battery", "Camera", "Mic", "Phone", "MessageSquare", "Send", "Share", "Link", "ExternalLink", "Globe", "MapPin", "Users", "ShoppingCart", "CreditCard", "Package", "Briefcase", "Target", "Flag", "Clipboard", "List", "Grid", "Layout", "Layers", "Copy", "Save", "RefreshCw", "Maximize", "Code", "AlertCircle", "Info", "HelpCircle", "CheckCircle", "XCircle", "Menu", "MoreVertical", "MoreHorizontal", "PlayCircle", "PauseCircle", "LogIn", "LogOut", "UserPlus", "UserMinus", "Tag", "Award", "Gift", "Truck", "Clock", "Handshake", "Stethoscope", "Microscope", "GraduationCap", "BookOpen", "Building2", "Trees", "HeartHandshake", "Brain", "Lightbulb"];
|
|
1320
|
+
type IconName = (typeof ICON_NAMES)[number];
|
|
1188
1321
|
//#endregion
|
|
1189
|
-
export { ANIMATION, APIResponse, AboutSection, AboutStat, AboutUsData, AboutValue, Album, AlbumItem, Blog, BlogSection, Brand, BrandGroup, Branding, CACHE, CONTACT_SUBJECTS, CTA, CTAContent, CartItem, Category, ClientsSection, CmsClientConfig, CmsError, Collection, CollectionDetail, CollectionGroupSection, CollectionItem, CollectionListItem, CompanyInfo, Contact, ContactConfig, ContactPayload, CreateSitePayload, Cta, CustomContent, Event, Faq, FaqGroup, FaqSection, FetchOptions, Footer, FooterNavChild, FooterNavGroup, FooterNavGroupLink, GallerySection, GenericSection, HTTP_STATUS, Header, HeroContent, HistoryItem, HistorySection,
|
|
1322
|
+
export { ANIMATION, APIResponse, AboutSection, AboutStat, AboutUsData, AboutValue, Album, AlbumGroupSection, AlbumItem, Blog, BlogSection, Brand, BrandGroup, Branding, CACHE, CONTACT_ATTACHMENT_MIME_ALLOWLIST, CONTACT_SUBJECTS, CTA, CTAContent, CartItem, Category, ClientsSection, CmsClientConfig, CmsError, Collection, CollectionDetail, CollectionGroupSection, CollectionItem, CollectionListItem, CompanyInfo, Contact, ContactConfig, ContactPayload, CreateSitePayload, Cta, CustomContent, Event, Faq, FaqGroup, FaqSection, FetchOptions, Footer, FooterNavChild, FooterNavGroup, FooterNavGroupLink, GallerySection, GenericSection, HTTP_STATUS, Header, HeroContent, HistoryItem, HistorySection, ICON_NAMES, IconName, Image, LocationConfig, MAX_CONTACT_ATTACHMENTS, MAX_CONTACT_ATTACHMENTS_TOTAL_BYTES, MEDIA, MarqueeItem, MarqueeSection, MultiValueItem, MultiValueSection, NavChild, NavGrandChild, NavLink, Order, OrderItem, OrderStatus, PAGINATION, Page, PageListItem, PageType, PaginatedResponse, PaginationInfo, PaginationMeta, PlaceOrderPayload, Product, ProductBrand, ProductCategory, ProductExtraData, ProductImage, ProductListItem, ProductSEO, ProductSectionFilter, ProductStatus, ProductVariant, ProductVariantListItem, ProductsSection, PublicContactConfig, PublicProductVariant, Redirect, Redirect404Log, RedirectStatusCode, ResolvedRedirect, RichContentSection, SEARCH, SEO, Section, Service, ServicesSection, ShippingAddress, SingleDataAPIResponse, Site, SiteConfig, SitemapAlbumItem, SitemapBlogItem, SitemapBrandGroupItem, SitemapCollectionItem, SitemapEventItem, SitemapItem, SitemapPageItem, SitemapProductBrandItem, SitemapProductCategoryItem, SitemapProductItem, SitemapResource, SitemapResourceMap, SitemapServiceItem, SitemapTeamCategoryItem, SitemapTeamMemberItem, Social, SocialLink, StoreSettings, TeamMember, TeamSection, Testimonial, TestimonialsSection, UpdateSitePayload, UserSiteRole, WorkingHours, allPageTypes, createCmsClient, pageTypes };
|
|
1190
1323
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/pagination.ts","../src/types/header.ts","../src/types/footer.ts","../src/types/site-config.ts","../src/types/cms-page.ts","../src/types/about.ts","../src/types/seo.ts","../src/types/service.ts","../src/types/blog.ts","../src/types/category.ts","../src/types/team-member.ts","../src/types/album.ts","../src/types/brand.ts","../src/types/testimonials.ts","../src/types/event.ts","../src/types/faq.ts","../src/types/faq-group.ts","../src/types/redirect.ts","../src/types/contact.ts","../src/types/product.ts","../src/types/product-category.ts","../src/types/product-brand.ts","../src/types/collection.ts","../src/types/order.ts","../src/types/store-setting.ts","../src/types/sitemap.ts","../src/core/client.ts","../src/constants/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/pagination.ts","../src/types/header.ts","../src/types/footer.ts","../src/types/site-config.ts","../src/constants/pageTypes.ts","../src/types/cms-page.ts","../src/types/about.ts","../src/types/seo.ts","../src/types/service.ts","../src/types/blog.ts","../src/types/category.ts","../src/types/team-member.ts","../src/types/album.ts","../src/types/brand.ts","../src/types/testimonials.ts","../src/types/event.ts","../src/types/faq.ts","../src/types/faq-group.ts","../src/types/redirect.ts","../src/types/contact.ts","../src/types/product.ts","../src/types/product-category.ts","../src/types/product-brand.ts","../src/types/collection.ts","../src/types/order.ts","../src/types/store-setting.ts","../src/types/sitemap.ts","../src/core/client.ts","../src/constants/index.ts","../src/types/api-response.ts","../src/types/company-info.ts","../src/types/site.ts","../src/types/icon.ts"],"mappings":";UAAiB;EACf;EACA;EACA;;KAIU,iBAAiB;UAEZ,kBAAkB;EACjC,MAAM;EACN,YAAY;;;;UCXG;EACf;EACA;;UAGe;EACf;EACA;EACA,WAAW;;UAGI;EACf;EACA;EACA,WAAW;;UAGI;EACf;EACA;;UAGe;EACf;EACA;EACA,WAAW;EACX,MAAM;EACN,OAAO;;;;UC3BQ;EACf;EACA;;UAGe;EACf;EACA;EACA,UAAU;;UAGK;EACf;EACA,OAAO;;UAGQ;EACf;EACA;EACA,YAAY;EACZ,OAAO;;;;UCpBQ;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAWe;EACf;EACA;EACA,SAAS;EACT,WAAW;EACX,gBAAgB;;UAGD;EACf;EACA;EACA;EACA;EACA,MAAM;EACN,SAAS;;;;;;;;;;;;cCtCE;;cAeA;KAED,mBAAmB;;;UCvBd;EACf;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,KAAK;EACL;EACA;IACE;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;IACN;IACA;IACA;IACA;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA,KAAK;EACL,OAAO;EACP;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe,oBAAoB;EACnC;EACA;;UAGe,uBAAuB;EACtC;;UAGe,mBAAmB;EAClC;;UAGe,oBAAoB;EACnC;;UAGe,uBAAuB;EACtC;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,KAAK;;UAGU;EACf;EACA;EACA,OAAO;EACP,MAAM,QAAQ;EACd;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,QAAQ;EACR,QAAQ;;UAGO;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,OAAO;;UAGQ;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,OAAO;;KAGG;UAEK;EACf;EACA;EACA;EACA,SAAS;EACT;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;KAGU;EACN;EAAY;EAAyB;EAAc,SAAS;;EAC5D;EAAY;EAAyB;EAAgB,SAAS;;EAC9D;EAAY;EAAyB;EAAa,SAAS;;EAC3D;EAAY;EAAyB;EAAqB,SAAS;;EACnE;EAAY;EAAyB;EAAiB,SAAS;;EAC/D;EAAY;EAAyB;EAAqB,SAAS;;EACnE;EAAY;EAAyB;EAAc,SAAS;;EAC5D;EAAY;EAAyB;EAAiB,SAAS;;EAC/D;EAAY;EAAyB;EAAiB,SAAS;;EAC/D;EAAY;EAAyB;EAAe,SAAS;;EAC7D;EAAY;EAAyB;EAAc,SAAS;;EAC5D;EAAY;EAAyB;EAAsB,SAAS;;EACpE;EAAY;EAAyB;EAAe,SAAS;;EAC7D;EAAY;EAAyB;EAAa,SAAS;;EAC3D;EAAY;EAAyB;EAAiB,SAAS;;EAC/D;EAAY;EAAyB;EAAiB,SAAS;;EAC/D;EAAY;EAAyB;EAAkB,SAAS;;EAEhE;EACA;EACA;EACA,SAAS;;EAGT;EACA;EACA;EACA,SAAS;;UAGE;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA,UAAU;EACV,WAAW;EACX;EACA,KAAK;EACL,UAAU;EACV,QAAQ;EACR;EACA;;KAIU,eAAe,KAAK;;;UCrPf;EACf;IAAU;IAAc;;EACxB;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR,QAAQ;EACR,QAAQ;;;;UCzBO;EACf;EACA;EACA;EACA;;UAGe,yBAAyB;;;UCJzB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,KAAK;EACL;IACE,UAAU;;;;;UCrBG;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE,UAAU;IACV;MACE;MACA;MACA;;;;;;UCzBW;EACf;EACA;EACA;EACA;EACA;EACA;EACA,MAAM;EACN,SAAS;IAA4B,WAAW;;EAChD;EACA;;;;UCbe;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,QAAQ;EACR;EACA;;;;UCnBe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR,SAAS;IAA4B,WAAW;;;UAGjC;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;UC3Be;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAM;EACN,SAAS;IAA4B,WAAW;;EAChD,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;UC5Be;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;;;;UCdQ;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE,UAAU;;;;;UChCG;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;UCJe;EACf;EACA;EACA;EACA;EACA;EACA,MAAM;EACN,MAAM;EACN;IACE,UAAU;;EAEZ;EACA;;;;KChBU;UAEK;EACf;EACA;EACA;EACA;EACA,aAAa;EACb;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA,QAAQ;EACR;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;UC7Be;EACf;EACA;EACA;EACA;EACA;;;;;;;;;EASA;;UAGe,gBAAgB;EAC/B;EACA;EACA;EACA;EACA;;;;;;;;;;;;;UAce;EACf;IACE;IACA;;;;cAKS;;;;;;;;;;cAUA;cACA;;;KCrDD;UAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;EACb;EACA,iBAAiB,eAAe;EAChC;EACA;EACA;EACA;EACA,QAAQ;;KAIE,uBAAuB,KAAK;EACtC;EACA;;KAIU,yBAAyB,KACnC;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA,KAAK;EACL,OAAO;EACP;EACA,WAAW;;UAGI,gBAAgB,KAAK;EACpC;EACA;EACA;EACA;EACA;EACA,WAAW;;;;UCtEI;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,KAAK;EACL,OAAO;EACP;EACA;EACA;;;;UCZe;EACf;EACA;EACA;EACA;EACA;EACA;EACA,KAAK;EACL,OAAO;EACP;EACA;;;;UCRe;EACf;EACA;EACA;EACA;EACA,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,KAAK;EACL,OAAO;EACP;EACA;EACA;EACA;IAAW;;;UAGI,yBAAyB,KAAK;EAC7C,OAAO;EACP,aAAa;;KAGH,aAAa;;;KChCb;UAQK;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA,kBAAkB;EAClB,QAAQ;EACR;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA,OAAO;;UAGQ;EACf;EACA;EACA,kBAAkB;EAClB,OAAO;IACL;IACA;;EAEF;EACA;EACA;;;EAGA,WAAW;;UAGI;EACf,SAAS;EACT,SAAS;EACT;;;;UCvEe;EACf;EACA;EACA;;;;UCHQ;EACR;;UAGe,wBAAwB;EACvC;EACA;EACA;;UAGe,wBAAwB;EACvC;EACA;;UAKe,2BAA2B;EAC1C;EACA;EACA;;UAGe,8BAA8B;EAC7C;EACA;EACA;;UAGe,2BAA2B;EAC1C;EACA;EACA;;UAGe,yBAAyB;EACxC;EACA;EACA;;UAGe,yBAAyB;EACxC;EACA;EACA;;UAGe,8BAA8B;EAC7C;EACA;EACA;;UAGe,gCAAgC;EAC/C;EACA;;UAGe,8BAA8B;EAC7C;EACA;;UAGe,mCAAmC;EAClD;EACA;EACA;;UAGe,gCAAgC;EAC/C;EACA;EACA;;UAGe;EACf,OAAO;EACP,OAAO;EACP,UAAU;EACV,QAAQ;EACR,QAAQ;EACR,gBAAgB;EAChB,m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