@thryveai/theme-interfaces 2.7.155 → 2.7.156

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/dist/index.d.ts CHANGED
@@ -27,6 +27,9 @@ import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettings
27
27
  import { ISharedSettings } from "./interfaces/shared-settings.interfaces";
28
28
  import { AdminSharedSettingsTemplateSFUI } from "./storefront/SFUISharedSettingsTemplate.AdminUi";
29
29
  import { IAdminSharedSettingsTemplate } from "./interfaces/shared-settings-interfaces";
30
+ export declare type DeepPartial<T> = {
31
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
32
+ };
30
33
  export { DefaultSharedSettingsConfig, DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, AdminSharedSettingsTemplateSFUI, };
31
34
  export { CMSComponentNames, CMSNames };
32
35
  export { ProductAttrToIcons, ProductAttributes };
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from "../index";
1
2
  import { IAccountPageV2, IAddressesSettingsV2, IAdminOnlyV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IWelcomeModalV2, IPerformanceSettingsV2, IIntegrationSettings } from "./retailer-settings.interfaces";
2
3
  export interface IDefaultRetailerSettingsVersion2 {
3
4
  accountPage: IAccountPageV2;
@@ -13,3 +14,4 @@ export interface IDefaultRetailerSettingsVersion2 {
13
14
  performance: IPerformanceSettingsV2;
14
15
  integrations: IIntegrationSettings;
15
16
  }
17
+ export declare type RetailerSettingsForSchema = Record<string, DeepPartial<IDefaultRetailerSettingsVersion2>>;
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from "../index";
1
2
  import { IconNames } from "./icons.interfaces";
2
3
  export interface IDefaultTheme extends IInitializedEmptyDefaultTheme {
3
4
  theme: IDefaultThemeInterface;
@@ -733,4 +734,6 @@ export interface IDefaultEmbeddedFontSource {
733
734
  url: string;
734
735
  format: string;
735
736
  }
737
+ export declare type DefaultImagesForSchema = DeepPartial<IDefaultThemeImages>;
738
+ export declare type DefaultThemeForSchema = DeepPartial<IDefaultThemeInterface>;
736
739
  export {};
@@ -1,3 +1,4 @@
1
+ import { DeepPartial } from "../index";
1
2
  export declare type IIconsObject = {
2
3
  [iconName in IconNames]: string;
3
4
  };
@@ -6,3 +7,4 @@ export declare type PaymentCards = "AmExpCard" | "ApplePay" | "DiscoverCard" | "
6
7
  export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ApplePay" | "ArrowDown" | "ArrowUp" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "CheckCircle" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Credit" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "EBT" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "GooglePay" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "InstacartLogo" | "Instagram" | "InstructionsFilled" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "Orders" | "PastPurchases" | "PayPal" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "RecommendedSub" | "Remove" | "Reserve" | "ReserveDate" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Subscription" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "TikTok" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons | LanguageFlags;
7
8
  export declare type ProductAttributeIcons = "GlutenFree" | "Organic" | "Local" | "DairyFree" | "DiabetesFriendly" | "EggFree" | "FairTrade" | "NoArtificialIngredients" | "Halal" | "HeartHealth" | "NoHighFructoseCornSyrup" | "KetoFriendly" | "Kosher" | "LactoseFree" | "LowFODMAP" | "LowSodium" | "NoAddedSugar" | "NonGMO" | "Paleo" | "PeanutFree" | "PlantGoodness" | "SoyFree" | "Vegan" | "WholeGrain" | "BottleDeposit" | "LimitedIngredients" | "MinimallyProcessed" | "Fsa";
8
9
  export declare type LanguageFlags = "en-au" | "en-ca" | "en-gb" | "en-ie" | "en-us" | "es-es" | "es-mx" | "es-us" | "fr-ca";
10
+ export declare type DefaultIconsForSchema = DeepPartial<{} & IIconsObject>;
@@ -1,7 +1,6 @@
1
1
  import { CMSNames } from "../storefront/contentEngineComponents";
2
2
  import { ProductAttributes } from "../storefront/productBadgeAttributes";
3
3
  import { IconNames, PaymentCards } from "./icons.interfaces";
4
- import { NumberRange } from "./theme.interfaces";
5
4
  export interface IRetailerSettings {
6
5
  accountPage?: IAccountPageSettings;
7
6
  additionalCharges?: boolean;
@@ -424,7 +423,7 @@ export interface ISiteSettingsV2 {
424
423
  anonymousCart: boolean;
425
424
  ctaButtons: ICtaButtons | null | undefined;
426
425
  cmsLazyLoadRows: number;
427
- daysToRemainSignedIn: NumberRange<1, 999>;
426
+ daysToRemainSignedIn: number;
428
427
  defaultCountry: IDefaultCounty;
429
428
  defaultLanguage: string;
430
429
  defaultSearchParams: IDefaultSearchParams;
@@ -471,6 +470,7 @@ export interface IWelcomeModalV2 {
471
470
  href: string;
472
471
  target: LinkTarget;
473
472
  icon: string;
473
+ id?: string;
474
474
  }
475
475
  export interface IIntegrationSettings {
476
476
  prodX: IProdX;
@@ -1,5 +1,7 @@
1
+ import { DeepPartial } from "../index";
1
2
  import { IPartialKeys, ITemplateObject } from "./admin-settings-interfaces";
2
3
  import { ISharedSettings } from "./shared-settings.interfaces";
3
4
  declare type IAdminSharedSettings = IPartialKeys<ISharedSettings>;
4
5
  export declare type IAdminSharedSettingsTemplate = ITemplateObject<IAdminSharedSettings>;
6
+ export declare type SharedSettingsForSchema = Record<string, DeepPartial<ISharedSettings>>;
5
7
  export {};
@@ -712,7 +712,5 @@ export interface IEmbeddedFontSource {
712
712
  url?: string;
713
713
  format?: string;
714
714
  }
715
- declare type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc["length"]]>;
716
- export declare type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
717
715
  export declare type IDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
718
716
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.155",
3
+ "version": "2.7.156",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",
@@ -24,6 +24,7 @@
24
24
  "imagemin": "7.0.1",
25
25
  "imagemin-svgo": "9.0.0",
26
26
  "svgo": "3.0.2",
27
+ "ts-json-schema-generator": "2.3.0",
27
28
  "ts-node": "^10.8.1",
28
29
  "typescript": "4.6.3"
29
30
  },