@crayonscodetech/cms-sdk 1.0.8 → 1.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.
- package/README.md +157 -26
- package/dist/index.cjs +294 -192
- package/dist/index.d.cts +141 -40
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +141 -40
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +291 -168
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -19
package/dist/index.d.cts
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,12 @@ interface SiteConfig {
|
|
|
97
95
|
contact: ContactConfig;
|
|
98
96
|
}
|
|
99
97
|
//#endregion
|
|
98
|
+
//#region src/constants/pageTypes.d.ts
|
|
99
|
+
declare const pageTypes: readonly ["home", "about", "contact"];
|
|
100
|
+
declare const defaultPageTypes: readonly ["home", "about", "contact", "services", "blog", "team", "gallery", "events"];
|
|
101
|
+
declare const allPageTypes: readonly ["home", "about", "contact", "custom", "services", "blog", "team", "gallery", "events"];
|
|
102
|
+
type PageType = typeof allPageTypes[number];
|
|
103
|
+
//#endregion
|
|
100
104
|
//#region src/types/cms-page.d.ts
|
|
101
105
|
interface CTA {
|
|
102
106
|
type: string;
|
|
@@ -255,6 +259,12 @@ interface CollectionGroupSection {
|
|
|
255
259
|
subtitle?: string | null;
|
|
256
260
|
collection_groups: string[];
|
|
257
261
|
}
|
|
262
|
+
interface AlbumGroupSection {
|
|
263
|
+
section_heading?: string | null;
|
|
264
|
+
title: string;
|
|
265
|
+
subtitle?: string | null;
|
|
266
|
+
album_ids: string[];
|
|
267
|
+
}
|
|
258
268
|
type Section = {
|
|
259
269
|
id: string;
|
|
260
270
|
variant?: string | null;
|
|
@@ -345,6 +355,11 @@ type Section = {
|
|
|
345
355
|
variant?: string | null;
|
|
346
356
|
type: "collection-group";
|
|
347
357
|
content: CollectionGroupSection;
|
|
358
|
+
} | {
|
|
359
|
+
id: string;
|
|
360
|
+
variant?: string | null;
|
|
361
|
+
type: "album-group";
|
|
362
|
+
content: AlbumGroupSection;
|
|
348
363
|
};
|
|
349
364
|
interface SEO {
|
|
350
365
|
title: string;
|
|
@@ -359,11 +374,11 @@ interface Page {
|
|
|
359
374
|
title: string;
|
|
360
375
|
subtitle: string | null;
|
|
361
376
|
sections: Section[];
|
|
362
|
-
page_type:
|
|
377
|
+
page_type: PageType;
|
|
363
378
|
status: "draft" | "published" | "archived";
|
|
364
379
|
seo: SEO | null;
|
|
365
|
-
settings: Record<string,
|
|
366
|
-
extra?: Record<string,
|
|
380
|
+
settings: Record<string, unknown> | null;
|
|
381
|
+
extra?: Record<string, unknown> | null;
|
|
367
382
|
created_at: string;
|
|
368
383
|
updated_at: string;
|
|
369
384
|
}
|
|
@@ -371,7 +386,10 @@ type PageListItem = Omit<Page, "sections">;
|
|
|
371
386
|
//#endregion
|
|
372
387
|
//#region src/types/about.d.ts
|
|
373
388
|
interface AboutValue {
|
|
374
|
-
image
|
|
389
|
+
image?: {
|
|
390
|
+
url?: string;
|
|
391
|
+
alt?: string;
|
|
392
|
+
};
|
|
375
393
|
icon: string;
|
|
376
394
|
title: string;
|
|
377
395
|
description: string;
|
|
@@ -420,6 +438,8 @@ interface Service {
|
|
|
420
438
|
link_text?: string | null;
|
|
421
439
|
link_url?: string | null;
|
|
422
440
|
order: number;
|
|
441
|
+
is_published: boolean;
|
|
442
|
+
published_at?: string | null;
|
|
423
443
|
created_at: string;
|
|
424
444
|
updated_at: string;
|
|
425
445
|
seo: ProductSEO | null;
|
|
@@ -515,7 +535,7 @@ interface Album {
|
|
|
515
535
|
created_at: string;
|
|
516
536
|
updated_at: string;
|
|
517
537
|
items?: AlbumItem[];
|
|
518
|
-
extra?:
|
|
538
|
+
extra?: Record<string, unknown> | null;
|
|
519
539
|
}
|
|
520
540
|
interface AlbumItem {
|
|
521
541
|
id: string;
|
|
@@ -539,7 +559,7 @@ interface BrandGroup {
|
|
|
539
559
|
order: number;
|
|
540
560
|
created_at: string;
|
|
541
561
|
updated_at: string;
|
|
542
|
-
extra?:
|
|
562
|
+
extra?: Record<string, unknown> | null;
|
|
543
563
|
brands?: Brand[];
|
|
544
564
|
}
|
|
545
565
|
interface Brand {
|
|
@@ -572,7 +592,7 @@ interface Testimonial {
|
|
|
572
592
|
is_published: boolean;
|
|
573
593
|
created_at: string;
|
|
574
594
|
updated_at: string;
|
|
575
|
-
extra:
|
|
595
|
+
extra: Record<string, unknown> | null;
|
|
576
596
|
}
|
|
577
597
|
//#endregion
|
|
578
598
|
//#region src/types/event.d.ts
|
|
@@ -671,6 +691,15 @@ interface ContactPayload {
|
|
|
671
691
|
subject?: string | null;
|
|
672
692
|
message: string;
|
|
673
693
|
type?: string;
|
|
694
|
+
/**
|
|
695
|
+
* Cloudflare Turnstile token from the widget on your form.
|
|
696
|
+
*
|
|
697
|
+
* Required whenever the site has Turnstile enabled — check with
|
|
698
|
+
* `fetchContactConfig(siteId)`. Submitting without one is rejected with 403
|
|
699
|
+
* (`CmsError`), and the token is single-use: on a failed submit, reset the
|
|
700
|
+
* widget before retrying rather than resending the same value.
|
|
701
|
+
*/
|
|
702
|
+
turnstile_token?: string;
|
|
674
703
|
}
|
|
675
704
|
interface Contact extends ContactPayload {
|
|
676
705
|
id: string;
|
|
@@ -679,6 +708,27 @@ interface Contact extends ContactPayload {
|
|
|
679
708
|
created_at: string;
|
|
680
709
|
updated_at: string;
|
|
681
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
* Public Turnstile settings for a site's contact form, from
|
|
713
|
+
* GET /:site_id/contact-config/.
|
|
714
|
+
*
|
|
715
|
+
* Named to avoid colliding with `ContactConfig` in ./site-config, which is the
|
|
716
|
+
* site's displayed contact details (phone, email, socials) and unrelated.
|
|
717
|
+
*
|
|
718
|
+
* `enabled` with a null `site_key` means the site is misconfigured: the widget
|
|
719
|
+
* cannot render and submissions will be rejected. Treat it as "do not show the
|
|
720
|
+
* form" rather than "no captcha needed".
|
|
721
|
+
*/
|
|
722
|
+
interface PublicContactConfig {
|
|
723
|
+
turnstile: {
|
|
724
|
+
enabled: boolean;
|
|
725
|
+
site_key: string | null;
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
/** Attachment caps enforced by the API; mirrored here to fail fast client-side. */
|
|
729
|
+
declare const MAX_CONTACT_ATTACHMENTS = 3;
|
|
730
|
+
declare const MAX_CONTACT_ATTACHMENTS_TOTAL_BYTES: number;
|
|
731
|
+
declare const CONTACT_ATTACHMENT_MIME_ALLOWLIST: readonly string[];
|
|
682
732
|
//#endregion
|
|
683
733
|
//#region src/types/product.d.ts
|
|
684
734
|
type ProductStatus = "draft" | "published" | "archived" | "out_of_stock";
|
|
@@ -873,30 +923,88 @@ interface StoreSettings {
|
|
|
873
923
|
}
|
|
874
924
|
//#endregion
|
|
875
925
|
//#region src/types/sitemap.d.ts
|
|
876
|
-
interface
|
|
926
|
+
interface SitemapBase {
|
|
927
|
+
updatedAt: string;
|
|
928
|
+
}
|
|
929
|
+
interface SitemapBlogItem extends SitemapBase {
|
|
877
930
|
slug: string;
|
|
878
931
|
image: string | null;
|
|
879
932
|
title: string;
|
|
880
933
|
}
|
|
881
|
-
interface SitemapPageItem {
|
|
934
|
+
interface SitemapPageItem extends SitemapBase {
|
|
882
935
|
url: string;
|
|
883
936
|
title: string;
|
|
884
937
|
}
|
|
885
|
-
interface SitemapProductItem {
|
|
938
|
+
interface SitemapProductItem extends SitemapBase {
|
|
886
939
|
slug: string;
|
|
887
940
|
image: string | null;
|
|
888
941
|
name: string;
|
|
889
942
|
}
|
|
890
|
-
interface SitemapCollectionItem {
|
|
943
|
+
interface SitemapCollectionItem extends SitemapBase {
|
|
891
944
|
slug: string;
|
|
892
945
|
image: string | null;
|
|
893
946
|
name: string;
|
|
894
947
|
}
|
|
948
|
+
interface SitemapServiceItem extends SitemapBase {
|
|
949
|
+
slug: string;
|
|
950
|
+
image: string | null;
|
|
951
|
+
title: string;
|
|
952
|
+
}
|
|
953
|
+
interface SitemapEventItem extends SitemapBase {
|
|
954
|
+
slug: string;
|
|
955
|
+
image: string | null;
|
|
956
|
+
title: string;
|
|
957
|
+
}
|
|
958
|
+
interface SitemapAlbumItem extends SitemapBase {
|
|
959
|
+
slug: string;
|
|
960
|
+
image: string | null;
|
|
961
|
+
title: string;
|
|
962
|
+
}
|
|
963
|
+
interface SitemapTeamMemberItem extends SitemapBase {
|
|
964
|
+
slug: string;
|
|
965
|
+
image: string | null;
|
|
966
|
+
title: string;
|
|
967
|
+
}
|
|
968
|
+
interface SitemapTeamCategoryItem extends SitemapBase {
|
|
969
|
+
slug: string;
|
|
970
|
+
title: string;
|
|
971
|
+
}
|
|
972
|
+
interface SitemapBrandGroupItem extends SitemapBase {
|
|
973
|
+
slug: string;
|
|
974
|
+
title: string;
|
|
975
|
+
}
|
|
976
|
+
interface SitemapProductCategoryItem extends SitemapBase {
|
|
977
|
+
slug: string;
|
|
978
|
+
image: string | null;
|
|
979
|
+
title: string;
|
|
980
|
+
}
|
|
981
|
+
interface SitemapProductBrandItem extends SitemapBase {
|
|
982
|
+
slug: string;
|
|
983
|
+
image: string | null;
|
|
984
|
+
title: string;
|
|
985
|
+
}
|
|
986
|
+
interface SitemapResourceMap {
|
|
987
|
+
blogs: SitemapBlogItem;
|
|
988
|
+
pages: SitemapPageItem;
|
|
989
|
+
services: SitemapServiceItem;
|
|
990
|
+
events: SitemapEventItem;
|
|
991
|
+
albums: SitemapAlbumItem;
|
|
992
|
+
"team-members": SitemapTeamMemberItem;
|
|
993
|
+
"team-categories": SitemapTeamCategoryItem;
|
|
994
|
+
"brand-groups": SitemapBrandGroupItem;
|
|
995
|
+
products: SitemapProductItem;
|
|
996
|
+
collections: SitemapCollectionItem;
|
|
997
|
+
"product-categories": SitemapProductCategoryItem;
|
|
998
|
+
"product-brands": SitemapProductBrandItem;
|
|
999
|
+
}
|
|
1000
|
+
type SitemapResource = keyof SitemapResourceMap;
|
|
1001
|
+
type SitemapItem<R extends SitemapResource = SitemapResource> = SitemapResourceMap[R];
|
|
895
1002
|
//#endregion
|
|
896
1003
|
//#region src/core/client.d.ts
|
|
897
1004
|
interface FetchOptions extends RequestInit {
|
|
898
1005
|
revalidate?: number;
|
|
899
1006
|
tags?: string[];
|
|
1007
|
+
retries?: number;
|
|
900
1008
|
}
|
|
901
1009
|
interface CmsClientConfig {
|
|
902
1010
|
baseUrl: string;
|
|
@@ -949,9 +1057,15 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
949
1057
|
search?: string;
|
|
950
1058
|
}, options?: FetchOptions) => Promise<PaginatedResponse<Album>>;
|
|
951
1059
|
fetchAlbumItems: (siteId: string, params: {
|
|
1060
|
+
/** Album slug. */
|
|
952
1061
|
album?: string;
|
|
1062
|
+
/** Comma-separated list of album IDs (e.g., "id1,id2") */
|
|
953
1063
|
album_id?: string;
|
|
954
1064
|
page?: number;
|
|
1065
|
+
/**
|
|
1066
|
+
* Defaults to 10 server-side (max 100) — pass an explicit value to get a
|
|
1067
|
+
* whole album, or several albums' worth for an album-group section.
|
|
1068
|
+
*/
|
|
955
1069
|
limit?: number;
|
|
956
1070
|
}, options?: FetchOptions) => Promise<PaginatedResponse<AlbumItem>>;
|
|
957
1071
|
fetchBrandGroups: (siteId: string, params?: {
|
|
@@ -987,7 +1101,8 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
987
1101
|
fetchRedirects: (siteId: string, options?: FetchOptions) => Promise<Redirect[]>;
|
|
988
1102
|
resolveRedirect: (siteId: string, sourcePath: string, options?: FetchOptions) => Promise<ResolvedRedirect | null>;
|
|
989
1103
|
reportRedirect404: (siteId: string, sourcePath: string, referrer?: string, options?: FetchOptions) => Promise<Redirect404Log | null>;
|
|
990
|
-
submitContactForm: (siteId: string, payload: ContactPayload, options?: FetchOptions) => Promise<Contact
|
|
1104
|
+
submitContactForm: (siteId: string, payload: ContactPayload, attachments?: File[], options?: FetchOptions) => Promise<Contact>;
|
|
1105
|
+
fetchContactConfig: (siteId: string, options?: FetchOptions) => Promise<PublicContactConfig | null>;
|
|
991
1106
|
fetchStoreSettings: (siteId: string, options?: FetchOptions) => Promise<StoreSettings | null>;
|
|
992
1107
|
fetchProductCategories: (siteId: string, params?: {
|
|
993
1108
|
page?: number;
|
|
@@ -1045,6 +1160,10 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
1045
1160
|
availability?: "in_stock" | "out_of_stock";
|
|
1046
1161
|
}, options?: FetchOptions) => Promise<CollectionDetail | null>;
|
|
1047
1162
|
placeOrder: (siteId: string, payload: PlaceOrderPayload, options?: FetchOptions) => Promise<Order | null>;
|
|
1163
|
+
fetchSitemap: <R extends SitemapResource>(siteId: string, resource: R, params?: {
|
|
1164
|
+
page?: number;
|
|
1165
|
+
limit?: number;
|
|
1166
|
+
}, options?: FetchOptions) => Promise<PaginatedResponse<SitemapResourceMap[R]>>;
|
|
1048
1167
|
fetchSitemapBlogs: (siteId: string, params?: {
|
|
1049
1168
|
page?: number;
|
|
1050
1169
|
limit?: number;
|
|
@@ -1061,18 +1180,13 @@ declare function createCmsClient(config: CmsClientConfig): {
|
|
|
1061
1180
|
page?: number;
|
|
1062
1181
|
limit?: number;
|
|
1063
1182
|
}, options?: FetchOptions) => Promise<PaginatedResponse<SitemapCollectionItem>>;
|
|
1064
|
-
fetch: <T>(endpoint: string, options?: FetchOptions
|
|
1065
|
-
fetchPaginated: <T>(endpoint: string, options?: FetchOptions
|
|
1183
|
+
fetch: <T>(endpoint: string, options?: FetchOptions) => Promise<T | null>;
|
|
1184
|
+
fetchPaginated: <T>(endpoint: string, options?: FetchOptions) => Promise<PaginatedResponse<T>>;
|
|
1066
1185
|
utils: {
|
|
1067
1186
|
buildQueryString: (params: Record<string, string | number | string[] | number[] | undefined | null>) => string;
|
|
1068
1187
|
};
|
|
1069
1188
|
};
|
|
1070
1189
|
//#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
1190
|
//#region src/constants/index.d.ts
|
|
1077
1191
|
declare const PAGINATION: {
|
|
1078
1192
|
readonly DEFAULT_PAGE: 1;
|
|
@@ -1169,22 +1283,9 @@ interface UpdateSitePayload {
|
|
|
1169
1283
|
domain?: string;
|
|
1170
1284
|
}
|
|
1171
1285
|
//#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>>;
|
|
1286
|
+
//#region src/types/icon.d.ts
|
|
1287
|
+
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"];
|
|
1288
|
+
type IconName = (typeof ICON_NAMES)[number];
|
|
1188
1289
|
//#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,
|
|
1290
|
+
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, defaultPageTypes, pageTypes };
|
|
1190
1291
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","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.cts","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;;;;cC9CE;cAEA;cASA;KAUD,kBAAkB;;;UCnBb;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;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A;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;;;;;;UC5BW;EACf;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;;;;UCTe;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,QAAQ;EACR;EACA;;;;UCrBe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR,QAAQ;;UAGO;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;UC5Be;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;UCxBe;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;;;;UCNe;EACf;EACA;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;;;;KCVU;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;cACA;cACA;;;KC5CD;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;EACA;;UAGe;EACf,SAAS;EACT,SAAS;EACT;;;;UCrEe;EACf;EACA;EACA;;;;UCHQ;EACR;;UAGe,wBAAwB;EACvC;EACA;EACA;;UAGe,wBAAwB;EACvC;EACA;;UAKe,2BAA2B;EAC1C;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