@daffodil/product 0.94.1 → 0.95.1
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/fesm2022/daffodil-product-driver-in-memory.mjs +200 -227
- package/fesm2022/daffodil-product-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-product-driver-magento-2.4.7-testing.mjs +444 -0
- package/fesm2022/daffodil-product-driver-magento-2.4.7-testing.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-magento-2.4.7.mjs +704 -0
- package/fesm2022/daffodil-product-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-product-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-product-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-product-driver-shopify.mjs +99 -127
- package/fesm2022/daffodil-product-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-product-driver-testing.mjs +117 -87
- package/fesm2022/daffodil-product-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-product-driver.mjs +22 -45
- package/fesm2022/daffodil-product-driver.mjs.map +1 -1
- package/fesm2022/daffodil-product-routing.mjs +347 -285
- package/fesm2022/daffodil-product-routing.mjs.map +1 -1
- package/fesm2022/daffodil-product-state-testing.mjs +189 -106
- package/fesm2022/daffodil-product-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-product-state.mjs +566 -659
- package/fesm2022/daffodil-product-state.mjs.map +1 -1
- package/fesm2022/daffodil-product-testing.mjs +316 -276
- package/fesm2022/daffodil-product-testing.mjs.map +1 -1
- package/fesm2022/daffodil-product.mjs +8 -29
- package/fesm2022/daffodil-product.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-product-driver-in-memory.d.ts +65 -75
- package/types/daffodil-product-driver-magento-2.4.7-testing.d.ts +105 -0
- package/types/daffodil-product-driver-magento-2.4.7.d.ts +337 -0
- package/types/daffodil-product-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-product-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-product-driver-shopify.d.ts +31 -43
- package/types/daffodil-product-driver-testing.d.ts +28 -26
- package/types/daffodil-product-driver.d.ts +50 -61
- package/types/daffodil-product-routing.d.ts +101 -110
- package/types/daffodil-product-state-testing.d.ts +45 -43
- package/types/daffodil-product-state.d.ts +347 -375
- package/types/daffodil-product-testing.d.ts +82 -89
- package/types/daffodil-product.d.ts +93 -102
- package/fesm2022/daffodil-product-driver-magento-testing.mjs +0 -275
- package/fesm2022/daffodil-product-driver-magento-testing.mjs.map +0 -1
- package/fesm2022/daffodil-product-driver-magento.mjs +0 -855
- package/fesm2022/daffodil-product-driver-magento.mjs.map +0 -1
- package/types/daffodil-product-driver-magento-testing.d.ts +0 -114
- package/types/daffodil-product-driver-magento.d.ts +0 -396
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import * as apollo_angular from 'apollo-angular';
|
|
2
|
-
import { Apollo } from 'apollo-angular';
|
|
3
|
-
import { DocumentNode } from 'graphql';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { DaffProduct } from '@daffodil/product';
|
|
6
|
-
import { DaffProductDriverResponse, DaffProductServiceInterface } from '@daffodil/product/driver';
|
|
7
|
-
import * as _angular_core from '@angular/core';
|
|
8
|
-
import { ModuleWithProviders, Provider } from '@angular/core';
|
|
9
|
-
import * as i1 from '@angular/common';
|
|
10
|
-
import { GraphQlApolloValidator } from '@daffodil/core/graphql';
|
|
11
|
-
import { DaffFilterRequest, DaffFilter, DaffSortDirectionEnum, DaffCollectionMetadata } from '@daffodil/core';
|
|
12
|
-
import { MagentoSearchResultPageInfo } from '@daffodil/driver/magento';
|
|
13
|
-
|
|
14
|
-
declare const MAGENTO_PRODUCT_CONFIG_TOKEN: _angular_core.InjectionToken<DaffProductMagentoDriverConfig>;
|
|
15
|
-
declare const provideMagentoProductConfig: <R extends DaffProductMagentoDriverConfig = DaffProductMagentoDriverConfig>(config: Partial<R> | _angular_core.InjectionToken<Partial<R>>) => _angular_core.FactoryProvider;
|
|
16
|
-
/**
|
|
17
|
-
* An interface for providing @daffodil/product/driver/magento with necessary config values.
|
|
18
|
-
*/
|
|
19
|
-
interface DaffProductMagentoDriverConfig {
|
|
20
|
-
/**
|
|
21
|
-
* The fully-qualified base URL for media assets, such as product images.
|
|
22
|
-
* e.g. https://api.daff.io/media/
|
|
23
|
-
*/
|
|
24
|
-
baseMediaUrl: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare enum MagentoProductStockStatusEnum {
|
|
28
|
-
InStock = "IN_STOCK",
|
|
29
|
-
OutOfStock = "OUT_OF_STOCK"
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* A stripped down version of the Magento product.
|
|
33
|
-
* The product preview is intended for loading lists of products
|
|
34
|
-
* that do not need the full amount of information that would be
|
|
35
|
-
* necessary for a product page, for example.
|
|
36
|
-
*/
|
|
37
|
-
interface MagentoProductPreview {
|
|
38
|
-
__typename: string;
|
|
39
|
-
uid: string;
|
|
40
|
-
name: string;
|
|
41
|
-
sku: string;
|
|
42
|
-
url_key: string;
|
|
43
|
-
url_suffix: string;
|
|
44
|
-
image: {
|
|
45
|
-
url: string;
|
|
46
|
-
label: string;
|
|
47
|
-
};
|
|
48
|
-
price_range: {
|
|
49
|
-
maximum_price: {
|
|
50
|
-
regular_price: {
|
|
51
|
-
value: number;
|
|
52
|
-
currency: any;
|
|
53
|
-
};
|
|
54
|
-
discount: {
|
|
55
|
-
amount_off: number;
|
|
56
|
-
percent_off: number;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
stock_status?: MagentoProductStockStatusEnum;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare enum MagentoProductTypeEnum {
|
|
64
|
-
BundledProduct = "BundleProduct",
|
|
65
|
-
ConfigurableProduct = "ConfigurableProduct",
|
|
66
|
-
SimpleProduct = "SimpleProduct"
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* An object for defining what the product service requests and retrieves from a magento backend.
|
|
70
|
-
*/
|
|
71
|
-
interface MagentoProduct extends MagentoProductPreview {
|
|
72
|
-
meta_title?: string;
|
|
73
|
-
meta_description?: string;
|
|
74
|
-
canonical_url?: string;
|
|
75
|
-
media_gallery_entries?: {
|
|
76
|
-
label: string;
|
|
77
|
-
file: string;
|
|
78
|
-
position: number;
|
|
79
|
-
disabled: boolean;
|
|
80
|
-
uid: string;
|
|
81
|
-
}[];
|
|
82
|
-
short_description?: {
|
|
83
|
-
html: string;
|
|
84
|
-
};
|
|
85
|
-
description?: {
|
|
86
|
-
html: string;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
type DaffMagentoProductResponseExtraTransform<T extends MagentoProduct = MagentoProduct, V extends DaffProductDriverResponse = DaffProductDriverResponse> = (daffProductResponse: DaffProductDriverResponse, magentoProduct: T, mediaUrl: string) => V;
|
|
91
|
-
|
|
92
|
-
type DaffMagentoProductResponseTransform<T extends MagentoProduct = MagentoProduct, V extends DaffProductDriverResponse = DaffProductDriverResponse> = (magentoProduct: T, mediaUrl: string) => V;
|
|
93
|
-
|
|
94
|
-
type DaffMagentoProductExtraTransform<T extends MagentoProduct = MagentoProduct, V extends DaffProduct = DaffProduct> = (daffProduct: DaffProduct, magentoProduct: T, mediaUrl: string) => V;
|
|
95
|
-
|
|
96
|
-
type DaffMagentoProductTransform<T extends MagentoProduct = MagentoProduct, V extends DaffProduct = DaffProduct> = (magentoProduct: T, mediaUrl: string) => V;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Transforms the magento MagentoProduct from the magento product query into a DaffProduct.
|
|
100
|
-
*
|
|
101
|
-
* @param product a magento product
|
|
102
|
-
*/
|
|
103
|
-
declare class DaffMagentoSimpleProductTransformers {
|
|
104
|
-
private productPreviewTransform;
|
|
105
|
-
constructor(productPreviewTransform: DaffMagentoProductTransform);
|
|
106
|
-
transformMagentoSimpleProduct(product: MagentoProduct, mediaUrl: string): DaffProduct;
|
|
107
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffMagentoSimpleProductTransformers, never>;
|
|
108
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DaffMagentoSimpleProductTransformers>;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Transforms the magento MagentoProduct from the magento product query into a DaffProduct.
|
|
113
|
-
*
|
|
114
|
-
* @param product a magento product
|
|
115
|
-
*/
|
|
116
|
-
declare class DaffMagentoProductsTransformer {
|
|
117
|
-
private magentoSimpleProductTransformers;
|
|
118
|
-
constructor(magentoSimpleProductTransformers: DaffMagentoSimpleProductTransformers);
|
|
119
|
-
transformMagentoProduct(product: MagentoProduct, mediaUrl: string): DaffProduct;
|
|
120
|
-
/**
|
|
121
|
-
* Transforms many magento MagentoProducts from the magento product query into DaffProducts.
|
|
122
|
-
*/
|
|
123
|
-
transformManyMagentoProducts(products: MagentoProduct[], mediaUrl: string): DaffProduct[];
|
|
124
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffMagentoProductsTransformer, never>;
|
|
125
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DaffMagentoProductsTransformer>;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* A service for making magento apollo queries for products of type, {@link DaffProduct}.
|
|
130
|
-
*
|
|
131
|
-
* @inheritdoc
|
|
132
|
-
*/
|
|
133
|
-
declare class DaffMagentoProductService implements DaffProductServiceInterface {
|
|
134
|
-
private apollo;
|
|
135
|
-
private config;
|
|
136
|
-
private responseTransform;
|
|
137
|
-
private extraPageFragments;
|
|
138
|
-
private extraFragments;
|
|
139
|
-
private extraPreviewFragments;
|
|
140
|
-
private magentoProductsTransformer;
|
|
141
|
-
constructor(apollo: Apollo, config: DaffProductMagentoDriverConfig, responseTransform: DaffMagentoProductResponseTransform, extraPageFragments: DocumentNode[], extraFragments: DocumentNode[], extraPreviewFragments: DocumentNode[], magentoProductsTransformer: DaffMagentoProductsTransformer);
|
|
142
|
-
get(productId: DaffProduct['id']): Observable<DaffProductDriverResponse>;
|
|
143
|
-
getByUrl(url: DaffProduct['url']): Observable<DaffProductDriverResponse>;
|
|
144
|
-
getAll(): Observable<DaffProduct[]>;
|
|
145
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffMagentoProductService, never>;
|
|
146
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DaffMagentoProductService>;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* A module that provides the {@link DaffProductDriver} and {@link DaffProductMagentoDriverConfig} as the {@link DaffMagentoProductService} and
|
|
151
|
-
* {@link MAGENTO_PRODUCT_CONFIG_DEFAULT} respectively
|
|
152
|
-
*/
|
|
153
|
-
declare class DaffProductMagentoDriverModule {
|
|
154
|
-
static forRoot(config?: DaffProductMagentoDriverConfig): ModuleWithProviders<DaffProductMagentoDriverModule>;
|
|
155
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffProductMagentoDriverModule, never>;
|
|
156
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<DaffProductMagentoDriverModule, never, [typeof i1.CommonModule], never>;
|
|
157
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<DaffProductMagentoDriverModule>;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
declare const provideDaffProductMagentoDriver: (config?: DaffProductMagentoDriverConfig) => Provider[];
|
|
161
|
-
|
|
162
|
-
declare const DAFF_MAGENTO_GET_A_PRODUCT_QUERY_NAME = "MagentoGetAProduct";
|
|
163
|
-
declare const getProduct: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
164
|
-
|
|
165
|
-
declare enum MagentoProductFilterActionEnum {
|
|
166
|
-
Equal = "eq",
|
|
167
|
-
To = "to",
|
|
168
|
-
From = "from",
|
|
169
|
-
In = "in",
|
|
170
|
-
Match = "match"
|
|
171
|
-
}
|
|
172
|
-
interface MagentoProductFilters {
|
|
173
|
-
[x: string]: MagentoFilterAction;
|
|
174
|
-
}
|
|
175
|
-
type MagentoFilterAction = {
|
|
176
|
-
[key in MagentoProductFilterActionEnum]?: string | string[];
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
interface MagentoSimpleProduct extends MagentoProduct {
|
|
180
|
-
uid: string;
|
|
181
|
-
name: string;
|
|
182
|
-
sku: string;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
interface MagentoGetProductResponse {
|
|
186
|
-
__typename?: string;
|
|
187
|
-
products: {
|
|
188
|
-
__typename?: string;
|
|
189
|
-
items: MagentoProduct[];
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare enum MagentoProductFilterType {
|
|
194
|
-
Equal = "FilterEqualTypeInput",
|
|
195
|
-
Match = "FilterMatchTypeInput",
|
|
196
|
-
Range = "FilterRangeTypeInput"
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Filterable options for products.
|
|
201
|
-
*/
|
|
202
|
-
interface MagentoAggregation {
|
|
203
|
-
__typename?: string;
|
|
204
|
-
attribute_code: string;
|
|
205
|
-
type?: MagentoProductFilterType;
|
|
206
|
-
count?: number;
|
|
207
|
-
label?: string;
|
|
208
|
-
options?: MagentoAggregationOption[];
|
|
209
|
-
}
|
|
210
|
-
interface MagentoAggregationOption {
|
|
211
|
-
value: string;
|
|
212
|
-
count?: number;
|
|
213
|
-
label?: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface MagentoProductFilterTypeField {
|
|
217
|
-
name: string;
|
|
218
|
-
type: {
|
|
219
|
-
name: MagentoProductFilterType;
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
interface MagentoProductGetFilterTypesResponse {
|
|
224
|
-
__type: {
|
|
225
|
-
inputFields: MagentoProductFilterTypeField[];
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface MagentoProductSortFields {
|
|
230
|
-
__typename?: 'SortFields';
|
|
231
|
-
default: string;
|
|
232
|
-
options: MagentoSortOption[];
|
|
233
|
-
}
|
|
234
|
-
interface MagentoSortOption {
|
|
235
|
-
label: string;
|
|
236
|
-
value: string;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare enum MagentoSortDirectionEnum {
|
|
240
|
-
Ascending = "ASC",
|
|
241
|
-
Decending = "DESC"
|
|
242
|
-
}
|
|
243
|
-
interface MagentoSortFieldAction {
|
|
244
|
-
[x: string]: MagentoSortDirectionEnum;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
interface MagentoProductGetByUrlReponse {
|
|
248
|
-
__typename?: string;
|
|
249
|
-
route: MagentoProduct;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
interface MagentoProductGetByUrlVariables {
|
|
253
|
-
url: string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
declare const DAFF_MAGENTO_GET_A_PRODUCT_BY_URL_QUERY_NAME = "MagentoGetAProductByUrl";
|
|
257
|
-
declare const getProductByUrl: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<MagentoProductGetByUrlReponse, MagentoProductGetByUrlVariables>;
|
|
258
|
-
|
|
259
|
-
interface Shape$1 {
|
|
260
|
-
data: {
|
|
261
|
-
route: {
|
|
262
|
-
sku: true;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
type ValidatorFn$1 = GraphQlApolloValidator<MagentoProductGetByUrlReponse, Shape$1>;
|
|
267
|
-
declare const magentoProductGetByUrlValidator: ValidatorFn$1;
|
|
268
|
-
|
|
269
|
-
declare const DAFF_MAGENTO_GET_ALL_PRODUCTS_QUERY_NAME = "MagentoGetAllProducts";
|
|
270
|
-
declare const getAllProducts: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
271
|
-
|
|
272
|
-
declare const DAFF_MAGENTO_GET_FILTER_TYPES_QUERY_NAME = "MagentoGetProductFilterFieldTypes";
|
|
273
|
-
declare const MagentoProductGetFilterTypes: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
274
|
-
|
|
275
|
-
declare const magentoProductFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
276
|
-
|
|
277
|
-
declare const magentoProductPreviewFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
278
|
-
|
|
279
|
-
declare const magentoProductPageFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
280
|
-
|
|
281
|
-
declare const magentoProductAggregationsFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
282
|
-
|
|
283
|
-
declare const magentoProductSortFieldsFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
284
|
-
|
|
285
|
-
interface Shape {
|
|
286
|
-
data: {
|
|
287
|
-
products: {
|
|
288
|
-
items: true;
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
type ValidatorFn = GraphQlApolloValidator<MagentoGetProductResponse, Shape>;
|
|
293
|
-
declare const magentoProductGetAllValidator: ValidatorFn;
|
|
294
|
-
|
|
295
|
-
declare class MagentoProductAppliedFiltersTransformService {
|
|
296
|
-
transform(daffFilters: DaffFilterRequest[]): MagentoProductFilters;
|
|
297
|
-
/**
|
|
298
|
-
* Returns an In action for Equal type and a Match action for Match type.
|
|
299
|
-
*/
|
|
300
|
-
private getFilterAction;
|
|
301
|
-
/**
|
|
302
|
-
* Returns an array for Equal type and a string for Match type.
|
|
303
|
-
*/
|
|
304
|
-
private getFilterValue;
|
|
305
|
-
private getRangeFromValue;
|
|
306
|
-
private getRangeToValue;
|
|
307
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MagentoProductAppliedFiltersTransformService, never>;
|
|
308
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MagentoProductAppliedFiltersTransformService>;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Transforms the MagentoProduct from the magento product query into a DaffProductDriverResponse.
|
|
313
|
-
*
|
|
314
|
-
* @param product a magento product
|
|
315
|
-
*
|
|
316
|
-
*/
|
|
317
|
-
declare class DaffMagentoProductResponseTransformers {
|
|
318
|
-
private transformMagentoProduct;
|
|
319
|
-
constructor(transformMagentoProduct: DaffMagentoProductTransform);
|
|
320
|
-
transformMagentoProductResponse(product: MagentoProduct, mediaUrl: string): DaffProductDriverResponse;
|
|
321
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DaffMagentoProductResponseTransformers, never>;
|
|
322
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DaffMagentoProductResponseTransformers>;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
declare const magentoProductTransformAggregate: (aggregate: MagentoAggregation) => DaffFilter;
|
|
326
|
-
|
|
327
|
-
declare const magentoProductGetMatchedAttributeType: (aggregate: MagentoAggregation, inputFields: MagentoProductFilterTypeField[]) => MagentoProductFilterType;
|
|
328
|
-
|
|
329
|
-
declare function magentoProductAddMetadataTypesToAggregates(inputFields: MagentoProductFilterTypeField[], aggregations: MagentoAggregation[]): MagentoAggregation[];
|
|
330
|
-
|
|
331
|
-
declare const magentoAppliedSortOptionTransform: (appliedOption: string, appliedDirection: DaffSortDirectionEnum) => MagentoSortFieldAction;
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Builds a product collection metadata object.
|
|
335
|
-
*/
|
|
336
|
-
declare const magentoProductCollectionMetadataTransform: (aggregates: MagentoAggregation[], pageInfo: MagentoSearchResultPageInfo, sortFields: MagentoProductSortFields, products: MagentoProduct[], count: number, appliedSortOption?: string, appliedSortDirection?: DaffSortDirectionEnum) => DaffCollectionMetadata;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* The default configuration for the {@link DaffProductMagentoDriverConfig}.
|
|
340
|
-
*/
|
|
341
|
-
declare const MAGENTO_PRODUCT_CONFIG_DEFAULT: DaffProductMagentoDriverConfig;
|
|
342
|
-
|
|
343
|
-
declare const DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_RESPONSE_TRANSFORMS: _angular_core.InjectionToken<DaffMagentoProductResponseExtraTransform[]>;
|
|
344
|
-
declare const provideDaffProductMagentoExtraProductResponseTransforms: <R extends DaffMagentoProductResponseExtraTransform = DaffMagentoProductResponseExtraTransform>(...values: R[]) => Array<_angular_core.ValueProvider>;
|
|
345
|
-
|
|
346
|
-
declare const DAFF_PRODUCT_MAGENTO_PRODUCT_RESPONSE_TRANSFORM: _angular_core.InjectionToken<DaffMagentoProductResponseTransform>;
|
|
347
|
-
|
|
348
|
-
declare const DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PAGE_FRAGMENTS: _angular_core.InjectionToken<DocumentNode[]>;
|
|
349
|
-
declare const provideDaffProductMagentoExtraProductPageFragments: <R extends DocumentNode = DocumentNode>(...values: R[]) => Array<_angular_core.ValueProvider>;
|
|
350
|
-
|
|
351
|
-
declare const DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PREVIEW_FRAGMENTS: _angular_core.InjectionToken<DocumentNode[]>;
|
|
352
|
-
declare const provideDaffProductMagentoExtraProductPreviewFragments: <R extends DocumentNode = DocumentNode>(...values: R[]) => Array<_angular_core.ValueProvider>;
|
|
353
|
-
|
|
354
|
-
declare const DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PREVIEW_TRANSFORMS: _angular_core.InjectionToken<DaffMagentoProductExtraTransform[]>;
|
|
355
|
-
/**
|
|
356
|
-
* Provides extra product preview transforms for the Magento product driver.
|
|
357
|
-
*
|
|
358
|
-
* See {@link DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PREVIEW_TRANSFORMS}.
|
|
359
|
-
*
|
|
360
|
-
* @example
|
|
361
|
-
* ```ts
|
|
362
|
-
* providers: [
|
|
363
|
-
* ...provideDaffProductMagentoExtraProductPreviewTransforms(
|
|
364
|
-
* myExtraProductTransform
|
|
365
|
-
* )
|
|
366
|
-
* ]
|
|
367
|
-
* ```
|
|
368
|
-
*/
|
|
369
|
-
declare function provideDaffProductMagentoExtraProductPreviewTransforms<T extends MagentoProduct = MagentoProduct, V extends DaffProduct = DaffProduct>(...transforms: DaffMagentoProductExtraTransform<T, V>[]): Provider[];
|
|
370
|
-
|
|
371
|
-
declare const DAFF_PRODUCT_MAGENTO_PRODUCT_PREVIEW_TRANSFORM: _angular_core.InjectionToken<DaffMagentoProductTransform>;
|
|
372
|
-
|
|
373
|
-
declare const DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_FRAGMENTS: _angular_core.InjectionToken<DocumentNode[]>;
|
|
374
|
-
declare const provideDaffProductMagentoExtraProductFragments: <R extends DocumentNode = DocumentNode>(...values: R[]) => Array<_angular_core.ValueProvider>;
|
|
375
|
-
|
|
376
|
-
declare const DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_TRANSFORMS: _angular_core.InjectionToken<DaffMagentoProductExtraTransform[]>;
|
|
377
|
-
/**
|
|
378
|
-
* Provides extra product preview transforms for the Magento product driver.
|
|
379
|
-
*
|
|
380
|
-
* See {@link DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_TRANSFORMS}.
|
|
381
|
-
*
|
|
382
|
-
* @example
|
|
383
|
-
* ```ts
|
|
384
|
-
* providers: [
|
|
385
|
-
* ...provideDaffProductMagentoExtraProductTransforms(
|
|
386
|
-
* myExtraProductTransform
|
|
387
|
-
* )
|
|
388
|
-
* ]
|
|
389
|
-
* ```
|
|
390
|
-
*/
|
|
391
|
-
declare function provideDaffProductMagentoExtraProductTransforms<T extends MagentoProduct = MagentoProduct, V extends DaffProduct = DaffProduct>(...transforms: DaffMagentoProductExtraTransform<T, V>[]): Provider[];
|
|
392
|
-
|
|
393
|
-
declare const DAFF_PRODUCT_MAGENTO_PRODUCT_TRANSFORM: _angular_core.InjectionToken<DaffMagentoProductTransform>;
|
|
394
|
-
|
|
395
|
-
export { DAFF_MAGENTO_GET_ALL_PRODUCTS_QUERY_NAME, DAFF_MAGENTO_GET_A_PRODUCT_BY_URL_QUERY_NAME, DAFF_MAGENTO_GET_A_PRODUCT_QUERY_NAME, DAFF_MAGENTO_GET_FILTER_TYPES_QUERY_NAME, DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_FRAGMENTS, DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PAGE_FRAGMENTS, DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PREVIEW_FRAGMENTS, DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_PREVIEW_TRANSFORMS, DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_RESPONSE_TRANSFORMS, DAFF_PRODUCT_MAGENTO_EXTRA_PRODUCT_TRANSFORMS, DAFF_PRODUCT_MAGENTO_PRODUCT_PREVIEW_TRANSFORM, DAFF_PRODUCT_MAGENTO_PRODUCT_RESPONSE_TRANSFORM, DAFF_PRODUCT_MAGENTO_PRODUCT_TRANSFORM, DaffMagentoProductResponseTransformers, DaffMagentoProductService, DaffMagentoProductsTransformer, DaffMagentoSimpleProductTransformers, DaffProductMagentoDriverModule, MAGENTO_PRODUCT_CONFIG_DEFAULT, MAGENTO_PRODUCT_CONFIG_TOKEN, MagentoProductAppliedFiltersTransformService, MagentoProductFilterActionEnum, MagentoProductFilterType, MagentoProductGetFilterTypes, MagentoProductStockStatusEnum, MagentoProductTypeEnum, MagentoSortDirectionEnum, getAllProducts, getProduct, getProductByUrl, magentoAppliedSortOptionTransform, magentoProductAddMetadataTypesToAggregates, magentoProductAggregationsFragment, magentoProductCollectionMetadataTransform, magentoProductFragment, magentoProductGetAllValidator, magentoProductGetByUrlValidator, magentoProductGetMatchedAttributeType, magentoProductPageFragment, magentoProductPreviewFragment, magentoProductSortFieldsFragment, magentoProductTransformAggregate, provideDaffProductMagentoDriver, provideDaffProductMagentoExtraProductFragments, provideDaffProductMagentoExtraProductPageFragments, provideDaffProductMagentoExtraProductPreviewFragments, provideDaffProductMagentoExtraProductPreviewTransforms, provideDaffProductMagentoExtraProductResponseTransforms, provideDaffProductMagentoExtraProductTransforms, provideMagentoProductConfig };
|
|
396
|
-
export type { DaffMagentoProductExtraTransform, DaffMagentoProductResponseExtraTransform, DaffMagentoProductResponseTransform, DaffMagentoProductTransform, DaffProductMagentoDriverConfig, MagentoAggregation, MagentoAggregationOption, MagentoFilterAction, MagentoGetProductResponse, MagentoProduct, MagentoProductFilterTypeField, MagentoProductFilters, MagentoProductGetByUrlReponse, MagentoProductGetByUrlVariables, MagentoProductGetFilterTypesResponse, MagentoProductPreview, MagentoProductSortFields, MagentoSimpleProduct, MagentoSortFieldAction, MagentoSortOption };
|