@thryveai/theme-interfaces 2.0.1 → 2.1.0

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.
@@ -0,0 +1,3 @@
1
+ import { IDefaultRetailerSettings } from '../interfaces/default-settings.interfaces';
2
+ declare const DefaultConfigSFUI: IDefaultRetailerSettings;
3
+ export default DefaultConfigSFUI;
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var DefaultConfigSFUI = {
4
+ advertSettings: {},
5
+ timeslotModalSettings: {
6
+ showOnAddToCart: false,
7
+ timeslotRequiredToAddToCart: false,
8
+ timeslotRequiredToViewCartReview: false
9
+ },
10
+ accountPage: {
11
+ loyaltyTab: {
12
+ disabledEdit: false,
13
+ enabled: false,
14
+ loyaltyNumberLength: 11,
15
+ loyaltyNumberPrefix: '',
16
+ loyaltyValidationType: []
17
+ }
18
+ },
19
+ addresses: {
20
+ addressValidationTypes: {
21
+ addressLine1: ['alphaNumeric', 'required'],
22
+ addressLine2: ['alphaNumeric'],
23
+ city: ['alphaNumeric', 'required'],
24
+ countyProvinceState: ['usState', 'required'],
25
+ familyName: ['alphaOnly', 'required'],
26
+ firstName: ['alphaOnly', 'required'],
27
+ instructions: ['alphaNumeric'],
28
+ phoneNumber: ['usPhone', 'required'],
29
+ postCode: ['usPostCode', 'required']
30
+ },
31
+ canadianAddressCompleteKey: undefined,
32
+ eircodeUrl: undefined,
33
+ integration: {
34
+ addNewAddressUrl: undefined,
35
+ deleteAddressUrl: undefined,
36
+ editAddressUrl: undefined
37
+ },
38
+ useAddressValidation: true
39
+ },
40
+ addressValidationTypes: {
41
+ addressLine1: ['alphaNumeric', 'required'],
42
+ addressLine2: ['alphaNumeric'],
43
+ city: ['alphaNumeric', 'required'],
44
+ countyProvinceState: ['usState', 'required'],
45
+ familyName: ['alphaOnly', 'required'],
46
+ firstName: ['alphaOnly', 'required'],
47
+ instructions: ['alphaNumeric'],
48
+ phoneNumber: ['usPhone', 'required'],
49
+ postCode: ['usPostCode', 'required']
50
+ },
51
+ addressIntegration: {
52
+ enabled: false,
53
+ addressFinderType: 'AUS',
54
+ getAddressesUrl: 'https://api.addressfinder.io/api/au/address/autocomplete/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&q={searchQuery}&format=json&gnaf=1',
55
+ getLocationUrl: 'https://api.addressfinder.io/api/au/address/metadata/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&format=json&id={id}&au_paf=0&gps=0'
56
+ },
57
+ allowInStorePurchases: false,
58
+ allowPastPurchases: true,
59
+ buildNumber: 'default',
60
+ cacheTimeMins: 1,
61
+ canadianAddressCompleteKey: undefined,
62
+ checkoutV1: false,
63
+ disableAddressOnDelivery: false,
64
+ favoritesV1: false,
65
+ checkout: {
66
+ numericPhonePayload: false
67
+ },
68
+ checkoutValidation: {
69
+ instructions: ['alphaNumeric', 'notWhiteSpacesOnly'],
70
+ phoneNumber: ['usPhone', 'required'],
71
+ smsNumber: []
72
+ },
73
+ ctaButtons: null,
74
+ defaultCountry: 'USA',
75
+ defaultSearchParams: {
76
+ page: '1',
77
+ q: '*',
78
+ skip: '0',
79
+ take: '30'
80
+ },
81
+ defaultShoppingMode: 'pickup',
82
+ defaultStoreLocation: {
83
+ latitude: 0,
84
+ longitude: 0
85
+ },
86
+ disableTprPrice: false,
87
+ documentTitle: 'ThryveAI Commerce',
88
+ eircode: undefined,
89
+ enable3dSecure: false,
90
+ enableGoogleTranslate: false,
91
+ enableNewsletterSignup: false,
92
+ enableNotifications: false,
93
+ enableVouchers: false,
94
+ errorLoggingLevel: 'error',
95
+ externalStoreSelectorUrl: undefined,
96
+ flipp: null,
97
+ gtmId: undefined,
98
+ hideTaxOnSummary: false,
99
+ houseAccountRegExValidation: '.',
100
+ idpTarget: '_self',
101
+ idpUrl: undefined,
102
+ instacartUrl: undefined,
103
+ isPlanningOnly: false,
104
+ layout: {
105
+ footerVersion: 'default'
106
+ },
107
+ limitProductCardTitleHeight: true,
108
+ loggingLevelClient: 'error',
109
+ loggingLevelServer: 'error',
110
+ mainHeaderHeight: 110,
111
+ mapZoom: 8,
112
+ minimumCreditCardAmount: 1.0,
113
+ nutritionZone: 'us',
114
+ paymentCards: {
115
+ AmExpCard: true,
116
+ DiscoverCard: true,
117
+ MasterCard: true,
118
+ VisaCard: true
119
+ },
120
+ pdpDetailsLayout: {
121
+ desktop: {
122
+ left: [
123
+ 'productSalesInfo',
124
+ 'productDescription',
125
+ 'productIngredients',
126
+ 'productNutrition',
127
+ 'sodiumWarning',
128
+ 'productNumber'
129
+ ],
130
+ right: ['recommendations']
131
+ },
132
+ mobile: {
133
+ left: [
134
+ 'productSalesInfo',
135
+ 'productDescription',
136
+ 'productNumber',
137
+ 'sodiumWarning',
138
+ 'recommendations'
139
+ ],
140
+ right: [
141
+ 'productIngredients',
142
+ 'productNutrition',
143
+ 'recommendations',
144
+ 'productNumber'
145
+ ]
146
+ }
147
+ },
148
+ productCardTitleHeight: 40,
149
+ registrationFields: [],
150
+ retailerCountry: 'us',
151
+ retailerName: 'default',
152
+ daysToRemainSignedIn: 30,
153
+ searchPreview: {
154
+ desktop: {
155
+ products: true,
156
+ suggestions: true
157
+ },
158
+ mobile: {
159
+ products: true,
160
+ suggestions: true
161
+ }
162
+ },
163
+ secondTierAuthorization: undefined,
164
+ showCheckoutPromoCode: true,
165
+ showImgOnOrder: false,
166
+ smsNotifications: {
167
+ enabled: false,
168
+ getEnrollmentUrl: '',
169
+ postEnrollmentUrl: ''
170
+ },
171
+ subHeaderHeight: 0,
172
+ promoTemplateVersion: 1,
173
+ useAddressValidation: true,
174
+ restrictMapPlacesResults: {
175
+ fetchNearStoresSettings: {
176
+ kmRange: 20,
177
+ totalTake: 30
178
+ }
179
+ },
180
+ globalAnimations: {
181
+ confetti: {
182
+ enableConfettiAnimation: true
183
+ }
184
+ },
185
+ googleAutocompleteSettings: {},
186
+ smartbanner: {
187
+ enabled: false,
188
+ author: '',
189
+ button: '',
190
+ buttonUrlApple: '',
191
+ buttonUrlGoogle: '',
192
+ closeLabel: '',
193
+ iconApple: '',
194
+ iconGoogle: '',
195
+ price: '',
196
+ priceSuffixApple: '',
197
+ priceSuffixGoogle: '',
198
+ title: ''
199
+ },
200
+ features: { clientCache: false },
201
+ specialRequestItems: false,
202
+ additionalCharges: false,
203
+ sodiumWarning: {
204
+ isEnabled: false,
205
+ threshold: 2300
206
+ },
207
+ productCards: {
208
+ gridRowLength: {
209
+ tablet: 3,
210
+ desktop: 5,
211
+ mobile: 1
212
+ },
213
+ carouselsRowLength: {
214
+ desktop: 6,
215
+ tablet: 4,
216
+ mobile: 1
217
+ },
218
+ productCard: {
219
+ enabled: false,
220
+ layouts: {
221
+ ContainersGrid: 'default',
222
+ ContainersCarousel: 'default'
223
+ }
224
+ }
225
+ },
226
+ layouts: {
227
+ cartSummary: {
228
+ showTaxTotal: true,
229
+ showTaxGroups: true
230
+ },
231
+ couponGallery: {
232
+ enabled: false,
233
+ galleryIsIframe: false
234
+ }
235
+ },
236
+ adminPanelOnly: {
237
+ bannerName: '',
238
+ logoUrl: ''
239
+ },
240
+ productCardv2: false
241
+ };
242
+ exports.default = DefaultConfigSFUI;
@@ -66,7 +66,7 @@ var defaultConfig = {
66
66
  numericPhonePayload: false
67
67
  },
68
68
  checkoutValidation: {
69
- instructions: ['alphaNumeric', 'notWhiteSpacesOnly'],
69
+ instructions: ['alphaNumeric'],
70
70
  phoneNumber: ['usPhone', 'required'],
71
71
  smsNumber: []
72
72
  },
@@ -0,0 +1,3 @@
1
+ import { IDefaultRetailerSettings } from './interfaces/default-settings.interfaces';
2
+ declare const DefaultConfigSFUI: IDefaultRetailerSettings;
3
+ export default DefaultConfigSFUI;
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var DefaultConfigSFUI = {
4
+ advertSettings: {},
5
+ timeslotModalSettings: {
6
+ showOnAddToCart: false,
7
+ timeslotRequiredToAddToCart: false,
8
+ timeslotRequiredToViewCartReview: false
9
+ },
10
+ accountPage: {
11
+ loyaltyTab: {
12
+ disabledEdit: false,
13
+ enabled: false,
14
+ loyaltyNumberLength: 11,
15
+ loyaltyNumberPrefix: '',
16
+ loyaltyValidationType: []
17
+ }
18
+ },
19
+ addresses: {
20
+ addressValidationTypes: {
21
+ addressLine1: ['alphaNumeric', 'required'],
22
+ addressLine2: ['alphaNumeric'],
23
+ city: ['alphaNumeric', 'required'],
24
+ countyProvinceState: ['usState', 'required'],
25
+ familyName: ['alphaOnly', 'required'],
26
+ firstName: ['alphaOnly', 'required'],
27
+ instructions: ['alphaNumeric'],
28
+ phoneNumber: ['usPhone', 'required'],
29
+ postCode: ['usPostCode', 'required']
30
+ },
31
+ canadianAddressCompleteKey: undefined,
32
+ eircodeUrl: undefined,
33
+ integration: {
34
+ addNewAddressUrl: undefined,
35
+ deleteAddressUrl: undefined,
36
+ editAddressUrl: undefined
37
+ },
38
+ useAddressValidation: true
39
+ },
40
+ addressValidationTypes: {
41
+ addressLine1: ['alphaNumeric', 'required'],
42
+ addressLine2: ['alphaNumeric'],
43
+ city: ['alphaNumeric', 'required'],
44
+ countyProvinceState: ['usState', 'required'],
45
+ familyName: ['alphaOnly', 'required'],
46
+ firstName: ['alphaOnly', 'required'],
47
+ instructions: ['alphaNumeric'],
48
+ phoneNumber: ['usPhone', 'required'],
49
+ postCode: ['usPostCode', 'required']
50
+ },
51
+ addressIntegration: {
52
+ enabled: false,
53
+ addressFinderType: 'AUS',
54
+ getAddressesUrl: 'https://api.addressfinder.io/api/au/address/autocomplete/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&q={searchQuery}&format=json&gnaf=1',
55
+ getLocationUrl: 'https://api.addressfinder.io/api/au/address/metadata/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&format=json&id={id}&au_paf=0&gps=0'
56
+ },
57
+ allowInStorePurchases: false,
58
+ allowPastPurchases: true,
59
+ buildNumber: 'default',
60
+ cacheTimeMins: 1,
61
+ canadianAddressCompleteKey: undefined,
62
+ checkoutV1: false,
63
+ disableAddressOnDelivery: false,
64
+ favoritesV1: false,
65
+ checkout: {
66
+ numericPhonePayload: false
67
+ },
68
+ checkoutValidation: {
69
+ instructions: ['alphaNumeric'],
70
+ phoneNumber: ['usPhone', 'required'],
71
+ smsNumber: []
72
+ },
73
+ ctaButtons: null,
74
+ defaultCountry: 'USA',
75
+ defaultSearchParams: {
76
+ page: '1',
77
+ q: '*',
78
+ skip: '0',
79
+ take: '30'
80
+ },
81
+ defaultShoppingMode: 'pickup',
82
+ defaultStoreLocation: {
83
+ latitude: 0,
84
+ longitude: 0
85
+ },
86
+ disableTprPrice: false,
87
+ documentTitle: 'ThryveAI Commerce',
88
+ eircode: undefined,
89
+ enable3dSecure: false,
90
+ enableGoogleTranslate: false,
91
+ enableNewsletterSignup: false,
92
+ enableNotifications: false,
93
+ enableVouchers: false,
94
+ errorLoggingLevel: 'error',
95
+ externalStoreSelectorUrl: undefined,
96
+ flipp: null,
97
+ gtmId: undefined,
98
+ hideTaxOnSummary: false,
99
+ houseAccountRegExValidation: '.',
100
+ idpTarget: '_self',
101
+ idpUrl: undefined,
102
+ instacartUrl: undefined,
103
+ isPlanningOnly: false,
104
+ layout: {
105
+ footerVersion: 'default'
106
+ },
107
+ limitProductCardTitleHeight: true,
108
+ loggingLevelClient: 'error',
109
+ loggingLevelServer: 'error',
110
+ mainHeaderHeight: 110,
111
+ mapZoom: 8,
112
+ minimumCreditCardAmount: 1.0,
113
+ nutritionZone: 'us',
114
+ paymentCards: {
115
+ AmExpCard: true,
116
+ DiscoverCard: true,
117
+ MasterCard: true,
118
+ VisaCard: true
119
+ },
120
+ pdpDetailsLayout: {
121
+ desktop: {
122
+ left: [
123
+ 'productSalesInfo',
124
+ 'productDescription',
125
+ 'productIngredients',
126
+ 'productNutrition',
127
+ 'sodiumWarning',
128
+ 'productNumber'
129
+ ],
130
+ right: ['recommendations']
131
+ },
132
+ mobile: {
133
+ left: [
134
+ 'productSalesInfo',
135
+ 'productDescription',
136
+ 'productNumber',
137
+ 'sodiumWarning',
138
+ 'recommendations'
139
+ ],
140
+ right: [
141
+ 'productIngredients',
142
+ 'productNutrition',
143
+ 'recommendations',
144
+ 'productNumber'
145
+ ]
146
+ }
147
+ },
148
+ productCardTitleHeight: 40,
149
+ registrationFields: [],
150
+ retailerCountry: 'us',
151
+ retailerName: 'default',
152
+ daysToRemainSignedIn: 30,
153
+ searchPreview: {
154
+ desktop: {
155
+ products: true,
156
+ suggestions: true
157
+ },
158
+ mobile: {
159
+ products: true,
160
+ suggestions: true
161
+ }
162
+ },
163
+ secondTierAuthorization: undefined,
164
+ showCheckoutPromoCode: true,
165
+ showImgOnOrder: false,
166
+ smsNotifications: {
167
+ enabled: false,
168
+ getEnrollmentUrl: '',
169
+ postEnrollmentUrl: ''
170
+ },
171
+ subHeaderHeight: 0,
172
+ promoTemplateVersion: 1,
173
+ useAddressValidation: true,
174
+ restrictMapPlacesResults: {
175
+ fetchNearStoresSettings: {
176
+ kmRange: 20,
177
+ totalTake: 30
178
+ }
179
+ },
180
+ globalAnimations: {
181
+ confetti: {
182
+ enableConfettiAnimation: true
183
+ }
184
+ },
185
+ googleAutocompleteSettings: {},
186
+ smartbanner: {
187
+ enabled: false,
188
+ author: '',
189
+ button: '',
190
+ buttonUrlApple: '',
191
+ buttonUrlGoogle: '',
192
+ closeLabel: '',
193
+ iconApple: '',
194
+ iconGoogle: '',
195
+ price: '',
196
+ priceSuffixApple: '',
197
+ priceSuffixGoogle: '',
198
+ title: ''
199
+ },
200
+ features: { clientCache: false },
201
+ specialRequestItems: false,
202
+ additionalCharges: false,
203
+ sodiumWarning: {
204
+ isEnabled: false,
205
+ threshold: 2300
206
+ },
207
+ productCards: {
208
+ gridRowLength: {
209
+ tablet: 3,
210
+ desktop: 5,
211
+ mobile: 1
212
+ },
213
+ carouselsRowLength: {
214
+ desktop: 6,
215
+ tablet: 4,
216
+ mobile: 1
217
+ },
218
+ productCard: {
219
+ enabled: false,
220
+ layouts: {
221
+ ContainersGrid: 'default',
222
+ ContainersCarousel: 'default'
223
+ }
224
+ }
225
+ },
226
+ layouts: {
227
+ cartSummary: {
228
+ showTaxTotal: true,
229
+ showTaxGroups: true
230
+ },
231
+ couponGallery: {
232
+ enabled: false,
233
+ galleryIsIframe: false
234
+ }
235
+ },
236
+ adminPanelOnly: {
237
+ bannerName: '',
238
+ logoUrl: ''
239
+ },
240
+ productCardv2: false
241
+ };
242
+ exports.default = DefaultConfigSFUI;
@@ -0,0 +1,2 @@
1
+ declare const DefaultConfigSTS: any;
2
+ export default DefaultConfigSTS;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var DefaultConfigSTS = {
4
+ registrationFields: [],
5
+ operatingZone: 'none',
6
+ customTermPolicy: ''
7
+ };
8
+ exports.default = DefaultConfigSTS;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,17 @@
1
- import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
1
+ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
2
2
  import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
3
- import DefaultSettings from "./defaultSettings";
4
- import { AdminTemplateInputTypes, AdminSettingsTemplate } from "./storefrontUiSettingsTemplateForAdminPanel";
5
- import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow } from "./interfaces/retailer-settings.interfaces";
3
+ import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
4
+ import DefaultConfigSFUI from "./Storefront/defaultSettingsStorefront";
5
+ import DefaultConfigSTS from "./sts/defaultSettingsSts";
6
+ import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./Storefront/SFUISettingsTemplate.AdminUi";
7
+ import { AdminSettingsTemplateSTS } from "./sts/STSSettingsTemplate.AdminUi";
8
+ import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow } from "./interfaces/retailer-settings.interfaces";
6
9
  import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./interfaces/icons.interfaces";
7
10
  import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./interfaces/theme.interfaces";
8
11
  import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IIconPosition } from "./interfaces/default-theme.interface";
9
- export { DefaultSettings, AdminSettingsTemplate, AdminTemplateInputTypes };
10
- export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType, };
11
- export { IDefaultRetailerSettings };
12
+ export { DefaultConfigSFUI, DefaultConfigSTS, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes };
13
+ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, };
14
+ export { IDefaultRetailerSettings, IDefaultStsSettings };
12
15
  export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition };
13
16
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
14
- export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData };
17
+ export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData };
package/dist/index.js CHANGED
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconNamesToFiles = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplate = exports.DefaultSettings = void 0;
4
- var defaultSettings_1 = require("./defaultSettings");
5
- exports.DefaultSettings = defaultSettings_1.default;
6
- var storefrontUiSettingsTemplateForAdminPanel_1 = require("./storefrontUiSettingsTemplateForAdminPanel");
7
- Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return storefrontUiSettingsTemplateForAdminPanel_1.AdminTemplateInputTypes; } });
8
- Object.defineProperty(exports, "AdminSettingsTemplate", { enumerable: true, get: function () { return storefrontUiSettingsTemplateForAdminPanel_1.AdminSettingsTemplate; } });
3
+ exports.IconNamesToFiles = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
4
+ var defaultSettingsStorefront_1 = require("./Storefront/defaultSettingsStorefront");
5
+ exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
6
+ var defaultSettingsSts_1 = require("./sts/defaultSettingsSts");
7
+ exports.DefaultConfigSTS = defaultSettingsSts_1.default;
8
+ var SFUISettingsTemplate_AdminUi_1 = require("./Storefront/SFUISettingsTemplate.AdminUi");
9
+ Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes; } });
10
+ Object.defineProperty(exports, "AdminSettingsTemplateSFUI", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminSettingsTemplateSFUI; } });
11
+ var STSSettingsTemplate_AdminUi_1 = require("./sts/STSSettingsTemplate.AdminUi");
12
+ Object.defineProperty(exports, "AdminSettingsTemplateSTS", { enumerable: true, get: function () { return STSSettingsTemplate_AdminUi_1.AdminSettingsTemplateSTS; } });
9
13
  var icons_interfaces_1 = require("./interfaces/icons.interfaces");
10
14
  Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
@@ -59,3 +59,9 @@ export interface IAdminControl {
59
59
  };
60
60
  }
61
61
  export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "string";
62
+ export interface IAdminSettingsTemplateSTS {
63
+ hasEUTerms: IAdminControl;
64
+ hasTwoStepRegistration: IAdminControl;
65
+ customTermPolicy: IAdminControl;
66
+ gtmId: IAdminControl;
67
+ }
@@ -0,0 +1,11 @@
1
+ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType } from './admin-settings-interfaces';
2
+ import { IDefaultRetailerSettings } from './default-settings.interfaces';
3
+ import { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType } from "./retailer-settings.interfaces";
4
+ import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./icons.interfaces";
5
+ import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./theme.interfaces";
6
+ import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource } from "./default-theme.interface";
7
+ export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, };
8
+ export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
9
+ export { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, };
10
+ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType };
11
+ export { IDefaultRetailerSettings };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IconNamesToFiles = void 0;
4
+ var icons_interfaces_1 = require("./icons.interfaces");
5
+ Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
@@ -260,7 +260,7 @@ export interface IRestrictMapPlaces {
260
260
  totalTake: number;
261
261
  };
262
262
  }
263
- export declare type IValidationType = IValidateDateRange | IValidateLength | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly";
263
+ export declare type IValidationType = IValidateDateRange | IValidateLength | IValidateMultipleLengths | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly";
264
264
  export declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
265
265
  export declare type INutritionZone = "us" | "eu" | "au" | "ca";
266
266
  export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
@@ -268,6 +268,10 @@ export declare type IValidateLength = {
268
268
  _type: "less" | "more" | "exact";
269
269
  length: number;
270
270
  };
271
+ export declare type IValidateMultipleLengths = {
272
+ _type: "multi";
273
+ multiLength: number[];
274
+ };
271
275
  export declare type IValidateDateRange = {
272
276
  _type: "overYears";
273
277
  overYears: number;
@@ -0,0 +1,6 @@
1
+ export interface IDefaultStsSettings {
2
+ customTermPolicy: string;
3
+ gtmId: string;
4
+ hasEUTerms: boolean;
5
+ hasTwoStepRegistration: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { IAdminSettingsTemplateSTS } from "../interfaces/admin-settings-interfaces";
2
+ export declare const AdminSettingsTemplateSTS: IAdminSettingsTemplateSTS;