1- interface SegmentData {
1+ export type SegmentData = {
22 campaigns ?: any
33 channel : string
44 priceTables ?: any
5- utm_campaign : string
5+ utm_campaign : string | null
66 regionId ?: string
7- utm_source : string
8- utmi_campaign : string
7+ utm_source : string | null
8+ utmi_campaign : string | null
99 currencyCode : string
1010 currencySymbol : string
1111 countryCode : string
1212 cultureInfo : string
1313 [ key : string ] : any
1414}
1515
16- interface ElasticImage {
17- name : string
18- value : string
19- }
20-
21- enum IndexingType {
22- API = 'API' ,
23- XML = 'XML' ,
24- }
16+ export type IndexingType = 'API' | 'XML'
2517
26- interface SearchResultArgs extends AdvertisementOptions {
18+ export interface SearchResultArgs extends AdvertisementOptions {
2719 attributePath ?: string
2820 query ?: string
2921 page ?: number
@@ -48,17 +40,12 @@ interface SearchResultArgs extends AdvertisementOptions {
4840 showSponsored ?: boolean
4941}
5042
51- interface BannersArgs {
52- fullText : string
53- attributePath : string
54- }
55-
5643interface RegionSeller {
5744 id : string
5845 name : string
5946}
6047
61- interface SuggestionProductsArgs {
48+ export interface SuggestionProductsArgs {
6249 fullText : string
6350 facetKey ?: string
6451 facetValue ?: string
@@ -77,27 +64,23 @@ interface SuggestionProductsArgs {
7764 advertisementOptions : AdvertisementOptions
7865}
7966
80- interface SuggestionSearchesArgs {
81- term : string
82- }
83-
8467interface SelectedFacet {
8568 value : string
8669 key : string
8770}
8871
89- interface Options {
72+ export interface Options {
9073 allowRedirect ?: boolean
9174}
9275
93- interface AdvertisementOptions {
76+ export interface AdvertisementOptions {
9477 showSponsored ?: boolean
9578 sponsoredCount ?: number
9679 repeatSponsoredProducts ?: boolean
9780 advertisementPlacement ?: string
9881}
9982
100- interface FacetsInput {
83+ export interface FacetsInput {
10184 map : string
10285 selectedFacets : SelectedFacet [ ]
10386 fullText : string
@@ -109,11 +92,11 @@ interface FacetsInput {
10992 categoryTreeBehavior : 'default' | 'show' | 'hide'
11093}
11194
112- interface ProductsInput extends SearchArgs {
95+ export interface ProductsInput extends SearchArgs {
11396 advertisementOptions ?: AdvertisementOptions
11497}
11598
116- interface ProductSearchInput {
99+ export interface ProductSearchInput {
117100 query : string
118101 from : number
119102 to : number
@@ -130,146 +113,4 @@ interface ProductSearchInput {
130113 options ?: Options
131114 showSponsored ?: boolean
132115 advertisementOptions ?: AdvertisementOptions
133- }
134-
135- interface ElasticAttribute {
136- visible : boolean
137- active : boolean
138- key : string
139- label : string
140- type : string
141- values : ElasticAttributeValue [ ]
142- originalKey : string
143- originalLabel : string
144- minValue ?: number
145- maxValue ?: number
146- }
147-
148- interface ElasticAttributeValue {
149- count : number
150- active : boolean
151- key : string
152- label : string
153- id : string
154- originalKey ?: string
155- originalLabel ?: string
156- }
157-
158- interface Breadcrumb {
159- href : string
160- name : string
161- }
162-
163- interface BiggySearchProduct {
164- name : string
165- id : string
166- timestamp : number
167- product : string
168- description : string
169- reference : string
170- url : string
171- link : string
172- oldPrice : number
173- price : number
174- stock : number
175- brand : string
176- brandId : string
177- installment ?: BiggyInstallment
178- measurementUnit : string
179- unitMultiplier : number
180- tax : number
181- images : BiggyProductImage [ ]
182- skus : BiggySearchSKU [ ]
183- categories : string [ ]
184- categoryIds : string [ ]
185- extraData : BiggyProductExtraData [ ]
186- productSpecifications : string [ ]
187- specificationGroups : string
188- textAttributes : BiggyTextAttribute [ ]
189- numberAttributes : BiggyTextAttribute [ ]
190- split : BiggySplit
191- categoryTrees : BiggyCategoryTree [ ]
192- clusterHighlights : Record < string , string >
193- }
194-
195- interface BiggySplit {
196- labelKey : string
197- labelValue : string
198- }
199-
200- interface BiggyProductImage {
201- name : string
202- value : string
203- }
204-
205- interface BiggyProductExtraData {
206- key : string
207- value : string
208- }
209-
210- interface BiggySearchSKU {
211- name : string
212- nameComplete : string
213- complementName ?: string
214- id : string
215- ean ?: string
216- reference : string
217- image : string
218- images : BiggyProductImage [ ]
219- videos ?: string [ ]
220- stock : number
221- oldPrice : number
222- price : number
223- measurementUnit : string
224- unitMultiplier : number
225- link : string
226- attributes : BiggySKUAttribute [ ]
227- sellers : BiggySeller [ ]
228- policies : BiggyPolicy [ ]
229- }
230-
231- interface BiggySKUAttribute {
232- key : string
233- value : string
234- }
235-
236- interface BiggySeller {
237- id : string
238- name : string
239- oldPrice : number
240- price : number
241- stock : number
242- tax : number
243- default : boolean
244- teasers ?: object [ ]
245- installment ?: BiggyInstallment
246- }
247-
248- interface BiggyInstallment {
249- value : number
250- count : number
251- interest : boolean
252- }
253-
254- interface BiggyPolicy {
255- id : string
256- sellers : BiggySeller [ ]
257- }
258-
259- interface BiggyTextAttribute {
260- labelKey : string
261- labelValue : string
262- key : string
263- value : string
264- isFilter : boolean
265- id : string
266- valueId : string
267- isSku : boolean
268- joinedKey : string
269- joinedValue : string
270- }
271-
272- interface BiggyCategoryTree {
273- categoryNames : string [ ]
274- categoryIds : string [ ]
275- }
116+ }
0 commit comments