@daffodil/product 0.94.1-rc.0 → 0.95.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.
Files changed (46) hide show
  1. package/fesm2022/daffodil-product-driver-in-memory.mjs +200 -227
  2. package/fesm2022/daffodil-product-driver-in-memory.mjs.map +1 -1
  3. package/fesm2022/daffodil-product-driver-magento-2.4.7-testing.mjs +444 -0
  4. package/fesm2022/daffodil-product-driver-magento-2.4.7-testing.mjs.map +1 -0
  5. package/fesm2022/daffodil-product-driver-magento-2.4.7.mjs +704 -0
  6. package/fesm2022/daffodil-product-driver-magento-2.4.7.mjs.map +1 -0
  7. package/fesm2022/daffodil-product-driver-magento-auto-testing.mjs +7 -0
  8. package/fesm2022/daffodil-product-driver-magento-auto-testing.mjs.map +1 -0
  9. package/fesm2022/daffodil-product-driver-magento-auto.mjs +7 -0
  10. package/fesm2022/daffodil-product-driver-magento-auto.mjs.map +1 -0
  11. package/fesm2022/daffodil-product-driver-shopify.mjs +99 -127
  12. package/fesm2022/daffodil-product-driver-shopify.mjs.map +1 -1
  13. package/fesm2022/daffodil-product-driver-testing.mjs +117 -87
  14. package/fesm2022/daffodil-product-driver-testing.mjs.map +1 -1
  15. package/fesm2022/daffodil-product-driver.mjs +22 -45
  16. package/fesm2022/daffodil-product-driver.mjs.map +1 -1
  17. package/fesm2022/daffodil-product-routing.mjs +347 -285
  18. package/fesm2022/daffodil-product-routing.mjs.map +1 -1
  19. package/fesm2022/daffodil-product-state-testing.mjs +189 -106
  20. package/fesm2022/daffodil-product-state-testing.mjs.map +1 -1
  21. package/fesm2022/daffodil-product-state.mjs +566 -659
  22. package/fesm2022/daffodil-product-state.mjs.map +1 -1
  23. package/fesm2022/daffodil-product-testing.mjs +316 -276
  24. package/fesm2022/daffodil-product-testing.mjs.map +1 -1
  25. package/fesm2022/daffodil-product.mjs +8 -29
  26. package/fesm2022/daffodil-product.mjs.map +1 -1
  27. package/package.json +1 -1
  28. package/types/daffodil-product-driver-in-memory.d.ts +65 -75
  29. package/types/daffodil-product-driver-magento-2.4.7-testing.d.ts +105 -0
  30. package/types/daffodil-product-driver-magento-2.4.7.d.ts +337 -0
  31. package/types/daffodil-product-driver-magento-auto-testing.d.ts +1 -0
  32. package/types/daffodil-product-driver-magento-auto.d.ts +1 -0
  33. package/types/daffodil-product-driver-shopify.d.ts +31 -43
  34. package/types/daffodil-product-driver-testing.d.ts +28 -26
  35. package/types/daffodil-product-driver.d.ts +50 -61
  36. package/types/daffodil-product-routing.d.ts +101 -110
  37. package/types/daffodil-product-state-testing.d.ts +45 -43
  38. package/types/daffodil-product-state.d.ts +347 -375
  39. package/types/daffodil-product-testing.d.ts +82 -89
  40. package/types/daffodil-product.d.ts +93 -102
  41. package/fesm2022/daffodil-product-driver-magento-testing.mjs +0 -275
  42. package/fesm2022/daffodil-product-driver-magento-testing.mjs.map +0 -1
  43. package/fesm2022/daffodil-product-driver-magento.mjs +0 -855
  44. package/fesm2022/daffodil-product-driver-magento.mjs.map +0 -1
  45. package/types/daffodil-product-driver-magento-testing.d.ts +0 -114
  46. package/types/daffodil-product-driver-magento.d.ts +0 -396
@@ -1,109 +1,106 @@
1
- import * as _ngrx_store from '@ngrx/store';
2
- import { Action, Store, ActionReducerMap, MetaReducer, ActionReducer, MemoizedSelector } from '@ngrx/store';
3
- import { DaffStateError, ErrorTransformer, DaffStoreFacade, DaffOperationState, DaffOperationStateFacadeInterface, DaffState, DaffOperationStateSelectors, daffTransformErrorToStateError } from '@daffodil/core/state';
4
- import { DaffProduct } from '@daffodil/product';
5
- import { DaffProductDriverResponse, DaffProductServiceInterface } from '@daffodil/product/driver';
6
- import * as i2 from '@ngrx/effects';
7
- import { Actions } from '@ngrx/effects';
8
- import { Observable } from 'rxjs';
9
- import * as i0 from '@angular/core';
10
- import { EntityState, EntityAdapter } from '@ngrx/entity';
11
- import * as _daffodil_product_types_daffodil_product from '@daffodil/product/types/daffodil-product';
12
-
1
+ import * as i1 from "@ngrx/store";
2
+ import { Action, ActionReducer, ActionReducerMap, MemoizedSelector, MetaReducer, Store } from "@ngrx/store";
3
+ import { DaffOperationState, DaffOperationStateFacadeInterface, DaffOperationStateSelectors, DaffState, DaffStateError, DaffStoreFacade, ErrorTransformer, daffTransformErrorToStateError } from "@daffodil/core/state";
4
+ import { DaffProduct } from "@daffodil/product";
5
+ import { DaffProductDriverResponse, DaffProductServiceInterface } from "@daffodil/product/driver";
6
+ import * as i2 from "@ngrx/effects";
7
+ import { Actions } from "@ngrx/effects";
8
+ import { Observable } from "rxjs";
9
+ import * as i0 from "@angular/core";
10
+ import { EnvironmentProviders } from "@angular/core";
11
+ import { EntityAdapter, EntityState } from "@ngrx/entity";
13
12
  /**
14
13
  * Action types for Product Grid Actions.
15
14
  */
16
- declare enum DaffProductGridActionTypes {
17
- ProductGridLoadAction = "[@daffodil/product] ProductGrid Load Action",
18
- ProductGridLoadSuccessAction = "[@daffodil/product] ProductGrid Load Success Action",
19
- ProductGridLoadFailureAction = "[@daffodil/product] ProductGrid Load Failure Action",
20
- ProductGridResetAction = "[@daffodil/product] ProductGrid Reset Action"
15
+ export declare enum DaffProductGridActionTypes {
16
+ ProductGridLoadAction = "[@daffodil/product] ProductGrid Load Action",
17
+ ProductGridLoadSuccessAction = "[@daffodil/product] ProductGrid Load Success Action",
18
+ ProductGridLoadFailureAction = "[@daffodil/product] ProductGrid Load Failure Action",
19
+ ProductGridResetAction = "[@daffodil/product] ProductGrid Reset Action"
21
20
  }
22
21
  /**
23
22
  * Triggers a request for an array of products.
24
23
  */
25
- declare class DaffProductGridLoad implements Action {
26
- readonly type = DaffProductGridActionTypes.ProductGridLoadAction;
27
- constructor();
24
+ export declare class DaffProductGridLoad implements Action {
25
+ readonly type = DaffProductGridActionTypes.ProductGridLoadAction;
26
+ constructor();
28
27
  }
29
28
  /**
30
29
  * An action called when a request for of an array of products succeeded.
31
30
  *
32
31
  * @param payload - An array of Products
33
32
  */
34
- declare class DaffProductGridLoadSuccess<T extends DaffProduct = DaffProduct> implements Action {
35
- payload: T[];
36
- readonly type = DaffProductGridActionTypes.ProductGridLoadSuccessAction;
37
- constructor(payload: T[]);
33
+ export declare class DaffProductGridLoadSuccess<T extends DaffProduct = DaffProduct> implements Action {
34
+ payload: T[];
35
+ readonly type = DaffProductGridActionTypes.ProductGridLoadSuccessAction;
36
+ constructor(payload: T[]);
38
37
  }
39
38
  /**
40
39
  * An action called when a request for an array of products failed.
41
40
  *
42
41
  * @param payload - An error message
43
42
  */
44
- declare class DaffProductGridLoadFailure implements Action {
45
- payload: DaffStateError;
46
- readonly type = DaffProductGridActionTypes.ProductGridLoadFailureAction;
47
- constructor(payload: DaffStateError);
43
+ export declare class DaffProductGridLoadFailure implements Action {
44
+ payload: DaffStateError;
45
+ readonly type = DaffProductGridActionTypes.ProductGridLoadFailureAction;
46
+ constructor(payload: DaffStateError);
48
47
  }
49
48
  /**
50
49
  * Resets the state of the product grid redux store to its initial state.
51
50
  */
52
- declare class DaffProductGridReset implements Action {
53
- readonly type = DaffProductGridActionTypes.ProductGridResetAction;
54
- constructor();
51
+ export declare class DaffProductGridReset implements Action {
52
+ readonly type = DaffProductGridActionTypes.ProductGridResetAction;
53
+ constructor();
55
54
  }
56
- type DaffProductGridActions<T extends DaffProduct = DaffProduct> = DaffProductGridLoad | DaffProductGridLoadSuccess<T> | DaffProductGridLoadFailure | DaffProductGridReset;
57
-
55
+ export type DaffProductGridActions<T extends DaffProduct = DaffProduct> = DaffProductGridLoad | DaffProductGridLoadSuccess<T> | DaffProductGridLoadFailure | DaffProductGridReset;
58
56
  /**
59
57
  * Action types for Product Actions.
60
58
  */
61
- declare enum DaffProductActionTypes {
62
- ProductLoadAction = "[@daffodil/product] Product Load Action",
63
- ProductLoadSuccessAction = "[@daffodil/product] Product Load Success Action",
64
- ProductLoadFailureAction = "[@daffodil/product] Product Load Failure Action"
59
+ export declare enum DaffProductActionTypes {
60
+ ProductLoadAction = "[@daffodil/product] Product Load Action",
61
+ ProductLoadSuccessAction = "[@daffodil/product] Product Load Success Action",
62
+ ProductLoadFailureAction = "[@daffodil/product] Product Load Failure Action"
65
63
  }
66
64
  /**
67
65
  * Triggers a request for a Product.
68
66
  *
69
67
  * @param payload - Id of requested Product
70
68
  */
71
- declare class DaffProductLoad implements Action {
72
- payload: string;
73
- readonly type = DaffProductActionTypes.ProductLoadAction;
74
- constructor(payload: string);
69
+ export declare class DaffProductLoad implements Action {
70
+ payload: string;
71
+ readonly type = DaffProductActionTypes.ProductLoadAction;
72
+ constructor(payload: string);
75
73
  }
76
74
  /**
77
75
  * An action called when a request for a Product succeeded.
78
76
  *
79
77
  * @param payload - A Product
80
78
  */
81
- declare class DaffProductLoadSuccess<T extends DaffProduct = DaffProduct> implements Action {
82
- payload: DaffProductDriverResponse<T>;
83
- readonly type = DaffProductActionTypes.ProductLoadSuccessAction;
84
- constructor(payload: DaffProductDriverResponse<T>);
79
+ export declare class DaffProductLoadSuccess<T extends DaffProduct = DaffProduct> implements Action {
80
+ payload: DaffProductDriverResponse<T>;
81
+ readonly type = DaffProductActionTypes.ProductLoadSuccessAction;
82
+ constructor(payload: DaffProductDriverResponse<T>);
85
83
  }
86
84
  /**
87
85
  * An action called when a request for a Product failed.
88
86
  *
89
87
  * @param payload - An error message
90
88
  */
91
- declare class DaffProductLoadFailure implements Action {
92
- payload: DaffStateError;
93
- readonly type = DaffProductActionTypes.ProductLoadFailureAction;
94
- constructor(payload: DaffStateError);
89
+ export declare class DaffProductLoadFailure implements Action {
90
+ payload: DaffStateError;
91
+ readonly type = DaffProductActionTypes.ProductLoadFailureAction;
92
+ constructor(payload: DaffStateError);
95
93
  }
96
- type DaffProductActions<T extends DaffProduct = DaffProduct> = DaffProductLoad | DaffProductLoadSuccess<T> | DaffProductLoadFailure;
97
-
94
+ export type DaffProductActions<T extends DaffProduct = DaffProduct> = DaffProductLoad | DaffProductLoadSuccess<T> | DaffProductLoadFailure;
98
95
  /**
99
96
  * Action types for Product Page Actions.
100
97
  */
101
- declare enum DaffProductPageActionTypes {
102
- ProductPageLoadByUrlAction = "[@daffodil/product] Product Page Load By URL Action",
103
- ProductPageLoadAction = "[@daffodil/product] Product Page Load Action",
104
- ProductPageLoadSuccessAction = "[@daffodil/product] Product Page Load Success Action",
105
- ProductPageLoadFailureAction = "[@daffodil/product] Product Page Load Failure Action",
106
- UpdateQtyAction = "[@daffodil/product] Product Page Update Qty Action"
98
+ export declare enum DaffProductPageActionTypes {
99
+ ProductPageLoadByUrlAction = "[@daffodil/product] Product Page Load By URL Action",
100
+ ProductPageLoadAction = "[@daffodil/product] Product Page Load Action",
101
+ ProductPageLoadSuccessAction = "[@daffodil/product] Product Page Load Success Action",
102
+ ProductPageLoadFailureAction = "[@daffodil/product] Product Page Load Failure Action",
103
+ UpdateQtyAction = "[@daffodil/product] Product Page Update Qty Action"
107
104
  }
108
105
  /**
109
106
  * An action triggered to initialize a product page load.
@@ -111,10 +108,10 @@ declare enum DaffProductPageActionTypes {
111
108
  *
112
109
  * @param payload - URL of the requested product
113
110
  */
114
- declare class DaffProductPageLoadByUrl<T extends DaffProduct = DaffProduct> implements Action {
115
- payload: T['url'];
116
- readonly type = DaffProductPageActionTypes.ProductPageLoadByUrlAction;
117
- constructor(payload: T['url']);
111
+ export declare class DaffProductPageLoadByUrl<T extends DaffProduct = DaffProduct> implements Action {
112
+ payload: T['url'];
113
+ readonly type = DaffProductPageActionTypes.ProductPageLoadByUrlAction;
114
+ constructor(payload: T['url']);
118
115
  }
119
116
  /**
120
117
  * An action triggered to initialize a product page load.
@@ -122,207 +119,200 @@ declare class DaffProductPageLoadByUrl<T extends DaffProduct = DaffProduct> impl
122
119
  *
123
120
  * @param payload - Id of the requested product
124
121
  */
125
- declare class DaffProductPageLoad implements Action {
126
- payload: string;
127
- readonly type = DaffProductPageActionTypes.ProductPageLoadAction;
128
- constructor(payload: string);
122
+ export declare class DaffProductPageLoad implements Action {
123
+ payload: string;
124
+ readonly type = DaffProductPageActionTypes.ProductPageLoadAction;
125
+ constructor(payload: string);
129
126
  }
130
127
  /**
131
128
  * An action triggered upon a successful product page request.
132
129
  *
133
130
  * @param payload - A DaffProduct
134
131
  */
135
- declare class DaffProductPageLoadSuccess<T extends DaffProduct = DaffProduct> implements Action {
136
- payload: DaffProductDriverResponse<T>;
137
- readonly type = DaffProductPageActionTypes.ProductPageLoadSuccessAction;
138
- constructor(payload: DaffProductDriverResponse<T>);
132
+ export declare class DaffProductPageLoadSuccess<T extends DaffProduct = DaffProduct> implements Action {
133
+ payload: DaffProductDriverResponse<T>;
134
+ readonly type = DaffProductPageActionTypes.ProductPageLoadSuccessAction;
135
+ constructor(payload: DaffProductDriverResponse<T>);
139
136
  }
140
137
  /**
141
138
  * An action triggered upon a failed product page request.
142
139
  *
143
140
  * @param payload - an error message
144
141
  */
145
- declare class DaffProductPageLoadFailure implements Action {
146
- payload: DaffStateError;
147
- readonly type = DaffProductPageActionTypes.ProductPageLoadFailureAction;
148
- constructor(payload: DaffStateError);
142
+ export declare class DaffProductPageLoadFailure implements Action {
143
+ payload: DaffStateError;
144
+ readonly type = DaffProductPageActionTypes.ProductPageLoadFailureAction;
145
+ constructor(payload: DaffStateError);
149
146
  }
150
147
  /**
151
148
  * Update the qty of the current product.
152
149
  *
153
150
  * @param payload - The qty of the product.
151
+ * @deprecated Deprecated in version 0.95.0. Will be removed in version 0.98.0.
154
152
  */
155
- declare class DaffProductPageUpdateQty implements Action {
156
- payload: number;
157
- readonly type = DaffProductPageActionTypes.UpdateQtyAction;
158
- constructor(payload: number);
153
+ export declare class DaffProductPageUpdateQty implements Action {
154
+ payload: number;
155
+ readonly type = DaffProductPageActionTypes.UpdateQtyAction;
156
+ constructor(payload: number);
159
157
  }
160
- type DaffProductPageActions<T extends DaffProduct = DaffProduct> = DaffProductPageLoadByUrl<T> | DaffProductPageLoad | DaffProductPageLoadSuccess<T> | DaffProductPageLoadFailure | DaffProductPageUpdateQty;
161
-
158
+ export type DaffProductPageActions<T extends DaffProduct = DaffProduct> = DaffProductPageLoadByUrl<T> | DaffProductPageLoad | DaffProductPageLoadSuccess<T> | DaffProductPageLoadFailure | DaffProductPageUpdateQty;
162
159
  /**
163
160
  * Effects for handling product grid actions and for triggering corresponding service requests.
164
161
  *
165
162
  * @param action$ - Redux action object
166
163
  * @param driver - A product service driver
167
164
  */
168
- declare class DaffProductGridEffects<T extends DaffProduct> {
169
- private actions$;
170
- private driver;
171
- private errorMatcher;
172
- constructor(actions$: Actions, driver: DaffProductServiceInterface<T>, errorMatcher: ErrorTransformer);
173
- /**
174
- * Handles ProductGridLoadAction by making a service call for products and returning a success or failure action
175
- * to the action stream.
176
- *
177
- * @returns An Observable of a DaffProductGridAction
178
- */
179
- loadAll$: Observable<any>;
180
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductGridEffects<any>, never>;
181
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffProductGridEffects<any>>;
182
- }
183
-
165
+ export declare class DaffProductGridEffects<T extends DaffProduct> {
166
+ private actions$;
167
+ private driver;
168
+ private errorMatcher;
169
+ constructor(actions$: Actions, driver: DaffProductServiceInterface<T>, errorMatcher: ErrorTransformer);
170
+ /**
171
+ * Handles ProductGridLoadAction by making a service call for products and returning a success or failure action
172
+ * to the action stream.
173
+ *
174
+ * @returns An Observable of a DaffProductGridAction
175
+ */
176
+ loadAll$: Observable<any>;
177
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductGridEffects<any>, never>;
178
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
179
+ }
184
180
  /**
185
181
  * Effects for handling product actions and for triggering corresponding service requests.
186
182
  *
187
183
  * @param action$ - Redux action object
188
184
  * @param driver - A product service driver
189
185
  */
190
- declare class DaffProductEffects<T extends DaffProduct> {
191
- private actions$;
192
- private driver;
193
- private errorMatcher;
194
- constructor(actions$: Actions, driver: DaffProductServiceInterface<T>, errorMatcher: ErrorTransformer);
195
- /**
196
- * Handles ProductLoadAction by making a service call for a product and returning a success or
197
- * failure action to the action stream.
198
- *
199
- * @returns An Observable of a ProductLoadAction
200
- */
201
- load$: Observable<any>;
202
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductEffects<any>, never>;
203
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffProductEffects<any>>;
204
- }
205
-
186
+ export declare class DaffProductEffects<T extends DaffProduct> {
187
+ private actions$;
188
+ private driver;
189
+ private errorMatcher;
190
+ constructor(actions$: Actions, driver: DaffProductServiceInterface<T>, errorMatcher: ErrorTransformer);
191
+ /**
192
+ * Handles ProductLoadAction by making a service call for a product and returning a success or
193
+ * failure action to the action stream.
194
+ *
195
+ * @returns An Observable of a ProductLoadAction
196
+ */
197
+ load$: Observable<any>;
198
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductEffects<any>, never>;
199
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
200
+ }
206
201
  /**
207
202
  * A facade for getting state about a particular product.
208
203
  */
209
- interface DaffProductFacadeInterface<T extends DaffProduct = DaffProduct> extends DaffStoreFacade<Action> {
210
- /**
211
- * Get a product.
212
- *
213
- * @param id a product id
214
- */
215
- getProduct(id: T['id']): Observable<T>;
216
- /**
217
- * Get the original price for a product.
218
- *
219
- * @param id a product id
220
- */
221
- getPrice(id: T['id']): Observable<number>;
222
- /**
223
- * Whether a particular product has a discount.
224
- *
225
- * @param id a product id
226
- */
227
- hasDiscount(id: T['id']): Observable<boolean>;
228
- /**
229
- * Get the discount amount of a product.
230
- *
231
- * @param id a product id
232
- */
233
- getDiscountAmount(id: T['id']): Observable<number>;
234
- /**
235
- * Get the discounted price for a product.
236
- *
237
- * @param id a product id
238
- */
239
- getDiscountedPrice(id: T['id']): Observable<number>;
240
- /**
241
- * Get the discount percent of a product.
242
- *
243
- * @param id a product id
244
- */
245
- getDiscountPercent(id: T['id']): Observable<number>;
246
- /**
247
- * Whether a product is out of stock.
248
- *
249
- * @param id a product id
250
- */
251
- isOutOfStock(id: T['id']): Observable<boolean>;
252
- }
253
-
204
+ export interface DaffProductFacadeInterface<T extends DaffProduct = DaffProduct> extends DaffStoreFacade<Action> {
205
+ /**
206
+ * Get a product.
207
+ *
208
+ * @param id a product id
209
+ */
210
+ getProduct(id: T['id']): Observable<T>;
211
+ /**
212
+ * Get the original price for a product.
213
+ *
214
+ * @param id a product id
215
+ */
216
+ getPrice(id: T['id']): Observable<number>;
217
+ /**
218
+ * Whether a particular product has a discount.
219
+ *
220
+ * @param id a product id
221
+ */
222
+ hasDiscount(id: T['id']): Observable<boolean>;
223
+ /**
224
+ * Get the discount amount of a product.
225
+ *
226
+ * @param id a product id
227
+ */
228
+ getDiscountAmount(id: T['id']): Observable<number>;
229
+ /**
230
+ * Get the discounted price for a product.
231
+ *
232
+ * @param id a product id
233
+ */
234
+ getDiscountedPrice(id: T['id']): Observable<number>;
235
+ /**
236
+ * Get the discount percent of a product.
237
+ *
238
+ * @param id a product id
239
+ */
240
+ getDiscountPercent(id: T['id']): Observable<number>;
241
+ /**
242
+ * Whether a product is out of stock.
243
+ *
244
+ * @param id a product id
245
+ */
246
+ isOutOfStock(id: T['id']): Observable<boolean>;
247
+ }
254
248
  /**
255
249
  * An interface describing product redux state. This state describes the current product that is loaded for a product page.
256
250
  */
257
- interface DaffProductReducerState extends DaffOperationState {
258
- /**
259
- * The id of the current product.
260
- */
261
- currentProductId: DaffProduct['id'];
262
- /**
263
- * The quantity chosen for the current product.
264
- */
265
- qty: number;
251
+ export interface DaffProductReducerState extends DaffOperationState {
252
+ /**
253
+ * The id of the current product.
254
+ */
255
+ currentProductId: DaffProduct['id'];
256
+ /**
257
+ * The quantity chosen for the current product.
258
+ *
259
+ * @deprecated Deprecated in version 0.95.0. Will be removed in version 0.98.0.
260
+ */
261
+ qty: number;
266
262
  }
267
-
268
263
  /**
269
264
  * Interface for product grid redux state.
270
265
  */
271
- interface DaffProductGridReducerState<T extends DaffProduct = DaffProduct> {
272
- /**
273
- * The array of products that have already been loaded.
274
- */
275
- products: T[];
276
- /**
277
- * Whether a grid of products is loading.
278
- */
279
- loading: boolean;
280
- /**
281
- * Errors associated with loading a grid of products.
282
- */
283
- errors: DaffStateError[];
284
- }
285
-
286
- declare const DAFF_PRODUCT_STORE_FEATURE_KEY = "daffProduct";
287
-
266
+ export interface DaffProductGridReducerState<T extends DaffProduct = DaffProduct> {
267
+ /**
268
+ * The array of products that have already been loaded.
269
+ */
270
+ products: T[];
271
+ /**
272
+ * Whether a grid of products is loading.
273
+ */
274
+ loading: boolean;
275
+ /**
276
+ * Errors associated with loading a grid of products.
277
+ */
278
+ errors: DaffStateError[];
279
+ }
280
+ export declare const DAFF_PRODUCT_STORE_FEATURE_KEY = "daffProduct";
288
281
  /**
289
282
  * Interface for the redux store of the product feature area.
290
283
  */
291
- interface DaffProductReducersState<T extends DaffProduct = DaffProduct> {
292
- products: EntityState<T>;
293
- productGrid: DaffProductGridReducerState<T>;
294
- product: DaffProductReducerState;
284
+ export interface DaffProductReducersState<T extends DaffProduct = DaffProduct> {
285
+ products: EntityState<T>;
286
+ productGrid: DaffProductGridReducerState<T>;
287
+ product: DaffProductReducerState;
295
288
  }
296
- interface DaffProductStateRootSlice<T extends DaffProduct = DaffProduct> {
297
- [DAFF_PRODUCT_STORE_FEATURE_KEY]: DaffProductReducersState<T>;
289
+ export interface DaffProductStateRootSlice<T extends DaffProduct = DaffProduct> {
290
+ [DAFF_PRODUCT_STORE_FEATURE_KEY]: DaffProductReducersState<T>;
298
291
  }
299
-
300
292
  /**
301
293
  * A facade for getting state about a particular product.
302
294
  *
303
295
  * @inheritdoc
304
296
  */
305
- declare class DaffProductFacade<T extends DaffProduct = DaffProduct> implements DaffProductFacadeInterface<T> {
306
- private store;
307
- private selectors;
308
- constructor(store: Store<DaffProductStateRootSlice<T>>);
309
- getProduct(id: T['id']): Observable<T>;
310
- getPrice(id: T['id']): Observable<number>;
311
- hasDiscount(id: T['id']): Observable<boolean>;
312
- getDiscountAmount(id: T['id']): Observable<number>;
313
- getDiscountedPrice(id: T['id']): Observable<number>;
314
- getDiscountPercent(id: T['id']): Observable<number>;
315
- isOutOfStock(id: T['id']): Observable<boolean>;
316
- dispatch(action: Action): void;
317
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductFacade<any>, never>;
318
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffProductFacade<any>>;
319
- }
320
-
297
+ export declare class DaffProductFacade<T extends DaffProduct = DaffProduct> implements DaffProductFacadeInterface<T> {
298
+ private store;
299
+ private selectors;
300
+ constructor(store: Store<DaffProductStateRootSlice<T>>);
301
+ getProduct(id: T['id']): Observable<T>;
302
+ getPrice(id: T['id']): Observable<number>;
303
+ hasDiscount(id: T['id']): Observable<boolean>;
304
+ getDiscountAmount(id: T['id']): Observable<number>;
305
+ getDiscountedPrice(id: T['id']): Observable<number>;
306
+ getDiscountPercent(id: T['id']): Observable<number>;
307
+ isOutOfStock(id: T['id']): Observable<boolean>;
308
+ dispatch(action: Action): void;
309
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductFacade<any>, never>;
310
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
311
+ }
321
312
  /**
322
313
  * Returns state values from all product related reducers.
323
314
  */
324
- declare const daffProductReducers: ActionReducerMap<DaffProductReducersState>;
325
-
315
+ export declare const daffProductReducers: ActionReducerMap<DaffProductReducersState>;
326
316
  /**
327
317
  * Reducer function that catches actions and changes/overwrites product grid state.
328
318
  *
@@ -330,13 +320,11 @@ declare const daffProductReducers: ActionReducerMap<DaffProductReducersState>;
330
320
  * @param action a product grid action
331
321
  * @returns Product grid state
332
322
  */
333
- declare function daffProductGridReducer<T extends DaffProduct>(state: DaffProductGridReducerState<any>, action: DaffProductGridActions<T>): DaffProductGridReducerState<T>;
334
-
323
+ export declare function daffProductGridReducer<T extends DaffProduct>(state: DaffProductGridReducerState<any>, action: DaffProductGridActions<T>): DaffProductGridReducerState<T>;
335
324
  /**
336
325
  * Product Adapter for changing/overwriting entity state.
337
326
  */
338
- declare const daffProductEntitiesAdapter: <T extends DaffProduct>() => EntityAdapter<T>;
339
-
327
+ export declare const daffProductEntitiesAdapter: <T extends DaffProduct>() => EntityAdapter<T>;
340
328
  /**
341
329
  * Reducer function that catches actions and changes/overwrites product entities state.
342
330
  *
@@ -344,12 +332,11 @@ declare const daffProductEntitiesAdapter: <T extends DaffProduct>() => EntityAda
344
332
  * @param action ProductGrid, BestSellers, or Product actions
345
333
  * @returns Product entities state
346
334
  */
347
- declare function daffProductEntitiesReducer<T extends DaffProduct>(state: EntityState<T>, action: DaffProductGridActions<T> | DaffProductActions<T> | DaffProductPageActions<T>): EntityState<T>;
348
-
335
+ export declare function daffProductEntitiesReducer<T extends DaffProduct>(state: EntityState<T>, action: DaffProductGridActions<T> | DaffProductActions<T> | DaffProductPageActions<T>): EntityState<T>;
349
336
  /**
350
337
  * Initial values of the product state.
351
338
  */
352
- declare const daffProductReducerInitialState: DaffProductReducerState;
339
+ export declare const daffProductReducerInitialState: DaffProductReducerState;
353
340
  /**
354
341
  * Reducer function that catches actions and changes/overwrites product state.
355
342
  *
@@ -357,219 +344,204 @@ declare const daffProductReducerInitialState: DaffProductReducerState;
357
344
  * @param action a product action
358
345
  * @returns product state
359
346
  */
360
- declare function daffProductReducer<T extends DaffProduct>(state: DaffProductReducerState, action: DaffProductPageActions<T>): DaffProductReducerState;
361
-
362
- declare const DAFF_PRODUCT_META_REDUCERS: i0.InjectionToken<MetaReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>>[]>;
363
- declare const daffProductProvideMetaReducers: <R extends MetaReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>> = MetaReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>>>(...values: R[]) => Array<i0.ValueProvider>;
364
- declare const daffProductProvideMetaReducerFactories: <R extends MetaReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>> = MetaReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>>>(...factories: (() => R)[]) => Array<i0.FactoryProvider>;
365
-
366
- declare const DAFF_PRODUCT_EXTRA_REDUCERS: i0.InjectionToken<ActionReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>, _ngrx_store.Action<string>>[]>;
367
- declare const daffProductProvideExtraReducers: <R extends ActionReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>, _ngrx_store.Action<string>> = ActionReducer<DaffProductReducersState<_daffodil_product_types_daffodil_product.DaffProduct>, _ngrx_store.Action<string>>>(...values: R[]) => Array<i0.ValueProvider>;
368
-
347
+ export declare function daffProductReducer<T extends DaffProduct>(state: DaffProductReducerState, action: DaffProductPageActions<T>): DaffProductReducerState;
348
+ export declare const DAFF_PRODUCT_META_REDUCERS: import("@angular/core").InjectionToken<MetaReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>>[]>, daffProductProvideMetaReducers: <R extends MetaReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>> = MetaReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>, daffProductProvideMetaReducerFactories: <R extends MetaReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>> = MetaReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>>>(...factories: (() => R)[]) => Array<import("@angular/core").FactoryProvider>;
349
+ export declare const DAFF_PRODUCT_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>, import("@ngrx/store").Action<string>>[]>, daffProductProvideExtraReducers: <R extends ActionReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>, import("@ngrx/store").Action<string>> = ActionReducer<DaffProductReducersState<import("@daffodil/product/types/daffodil-product").DaffProduct>, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
369
350
  /**
370
351
  * A facade for getting state about a particular product.
371
352
  */
372
- interface DaffProductPageFacadeInterface<T extends DaffProduct = DaffProduct> extends DaffOperationStateFacadeInterface<DaffProductReducerState> {
373
- /**
374
- * The product loaded for the product page.
375
- */
376
- product$: Observable<T>;
353
+ export interface DaffProductPageFacadeInterface<T extends DaffProduct = DaffProduct> extends DaffOperationStateFacadeInterface<DaffProductReducerState> {
354
+ /**
355
+ * The product loaded for the product page.
356
+ */
357
+ product$: Observable<T>;
377
358
  }
378
-
379
359
  /**
380
360
  * A facade for getting state about a particular product.
381
361
  *
382
362
  * @inheritdoc
383
363
  */
384
- declare class DaffProductPageFacade<T extends DaffProduct = DaffProduct> implements DaffProductPageFacadeInterface<T> {
385
- private store;
386
- loadingState$: Observable<DaffState>;
387
- loading$: Observable<boolean>;
388
- mutating$: Observable<boolean>;
389
- resolving$: Observable<boolean>;
390
- errors$: Observable<DaffStateError[]>;
391
- hasErrors$: Observable<boolean>;
392
- product$: Observable<T>;
393
- private selectors;
394
- constructor(store: Store<DaffProductStateRootSlice<T>>);
395
- dispatch(action: Action): void;
396
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductPageFacade<any>, never>;
397
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffProductPageFacade<any>>;
398
- }
399
-
400
- interface DaffProductGridFacadeInterface<T extends DaffProduct = DaffProduct> extends DaffStoreFacade<Action> {
401
- /**
402
- * The loading state for retrieving a list of products.
403
- */
404
- loading$: Observable<boolean>;
405
- /**
406
- * The state for a list of products.
407
- */
408
- products$: Observable<T[]>;
409
- }
410
-
364
+ export declare class DaffProductPageFacade<T extends DaffProduct = DaffProduct> implements DaffProductPageFacadeInterface<T> {
365
+ private store;
366
+ loadingState$: Observable<DaffState>;
367
+ loading$: Observable<boolean>;
368
+ mutating$: Observable<boolean>;
369
+ resolving$: Observable<boolean>;
370
+ errors$: Observable<DaffStateError[]>;
371
+ hasErrors$: Observable<boolean>;
372
+ product$: Observable<T>;
373
+ private selectors;
374
+ constructor(store: Store<DaffProductStateRootSlice<T>>);
375
+ dispatch(action: Action): void;
376
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductPageFacade<any>, never>;
377
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
378
+ }
379
+ export interface DaffProductGridFacadeInterface<T extends DaffProduct = DaffProduct> extends DaffStoreFacade<Action> {
380
+ /**
381
+ * The loading state for retrieving a list of products.
382
+ */
383
+ loading$: Observable<boolean>;
384
+ /**
385
+ * The state for a list of products.
386
+ */
387
+ products$: Observable<T[]>;
388
+ }
411
389
  /**
412
390
  * A facade for accessing state for a list of products from an application component.
413
391
  *
414
392
  * @inheritdoc
415
393
  */
416
- declare class DaffProductGridFacade<T extends DaffProduct = DaffProduct> implements DaffProductGridFacadeInterface<T> {
417
- private store;
418
- loading$: Observable<boolean>;
419
- products$: Observable<T[]>;
420
- constructor(store: Store<DaffProductStateRootSlice<T>>);
421
- dispatch(action: Action): void;
422
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductGridFacade<any>, never>;
423
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffProductGridFacade<any>>;
394
+ export declare class DaffProductGridFacade<T extends DaffProduct = DaffProduct> implements DaffProductGridFacadeInterface<T> {
395
+ private store;
396
+ loading$: Observable<boolean>;
397
+ products$: Observable<T[]>;
398
+ constructor(store: Store<DaffProductStateRootSlice<T>>);
399
+ dispatch(action: Action): void;
400
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductGridFacade<any>, never>;
401
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
424
402
  }
425
-
426
403
  /**
427
404
  * An interface for selectors related to the current product page.
428
405
  */
429
- interface DaffProductPageMemoizedSelectors<T extends DaffProduct = DaffProduct> extends DaffOperationStateSelectors<DaffProductStateRootSlice, DaffProductReducerState> {
430
- /**
431
- * Selects the entire state object for the product page feature area.
432
- */
433
- selectCurrentProductState: MemoizedSelector<DaffProductStateRootSlice, DaffProductReducerState>;
434
- /**
435
- * Selects the id of the current product.
436
- */
437
- selectCurrentProductId: MemoizedSelector<DaffProductStateRootSlice, T['id']>;
438
- /**
439
- * Selects the current product, which is the product loaded for a product page.
440
- */
441
- selectCurrentProduct: MemoizedSelector<DaffProductStateRootSlice, T>;
406
+ export interface DaffProductPageMemoizedSelectors<T extends DaffProduct = DaffProduct> extends DaffOperationStateSelectors<DaffProductStateRootSlice, DaffProductReducerState> {
407
+ /**
408
+ * Selects the entire state object for the product page feature area.
409
+ */
410
+ selectCurrentProductState: MemoizedSelector<DaffProductStateRootSlice, DaffProductReducerState>;
411
+ /**
412
+ * Selects the id of the current product.
413
+ */
414
+ selectCurrentProductId: MemoizedSelector<DaffProductStateRootSlice, T['id']>;
415
+ /**
416
+ * Selects the current product, which is the product loaded for a product page.
417
+ */
418
+ selectCurrentProduct: MemoizedSelector<DaffProductStateRootSlice, T>;
442
419
  }
443
420
  /**
444
421
  * A function that returns all selectors related to the product page.
445
422
  * Returns {@link DaffProductPageMemoizedSelectors}.
446
423
  */
447
- declare const getDaffProductPageSelectors: <T extends DaffProduct>() => DaffProductPageMemoizedSelectors<T>;
448
-
424
+ export declare const getDaffProductPageSelectors: <T extends DaffProduct>() => DaffProductPageMemoizedSelectors<T>;
449
425
  /**
450
426
  * An interface for selectors related to product entities and prices for simple products.
451
427
  */
452
- interface DaffProductEntitiesMemoizedSelectors<T extends DaffProduct = DaffProduct> {
453
- /**
454
- * Selects the ngrx entities state for products.
455
- */
456
- selectProductEntitiesState: MemoizedSelector<DaffProductStateRootSlice<T>, EntityState<T>>;
457
- /**
458
- * Selects all ids for products in state.
459
- */
460
- selectProductIds: MemoizedSelector<DaffProductStateRootSlice<T>, EntityState<T>['ids']>;
461
- /**
462
- * Selects the ngrx entities for all products in state.
463
- */
464
- selectProductEntities: MemoizedSelector<DaffProductStateRootSlice<T>, EntityState<T>['entities']>;
465
- /**
466
- * Selects all products in state as an array.
467
- */
468
- selectAllProducts: MemoizedSelector<DaffProductStateRootSlice<T>, T[]>;
469
- /**
470
- * Selects the total number of products in state.
471
- */
472
- selectProductTotal: MemoizedSelector<DaffProductStateRootSlice<T>, number>;
473
- /**
474
- * Selects a product by id.
475
- *
476
- * @param productId the id of the product.
477
- */
478
- selectProduct: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, T>;
479
- /**
480
- * Selects the price of a product.
481
- *
482
- * @param productId the id of the product.
483
- */
484
- selectProductPrice: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
485
- /**
486
- * Selects the discount of a product as some amount of currency.
487
- *
488
- * @param productId the id of the product.
489
- */
490
- selectProductDiscountAmount: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
491
- /**
492
- * Selects the discounted price of a product.
493
- *
494
- * @param productId the id of the product.
495
- */
496
- selectProductDiscountedPrice: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
497
- /**
498
- * Selects the discount of a product as a percent of the original price.
499
- *
500
- * @param productId the id of the product.
501
- */
502
- selectProductDiscountPercent: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
503
- /**
504
- * Selects whether or not the product has a discount.
505
- *
506
- * @param productId the id of the product.
507
- */
508
- selectProductHasDiscount: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, boolean>;
509
- /**
510
- * Selects whether or not a product is out of stock.
511
- *
512
- * @param productId the id of the product.
513
- */
514
- selectIsProductOutOfStock: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, boolean>;
428
+ export interface DaffProductEntitiesMemoizedSelectors<T extends DaffProduct = DaffProduct> {
429
+ /**
430
+ * Selects the ngrx entities state for products.
431
+ */
432
+ selectProductEntitiesState: MemoizedSelector<DaffProductStateRootSlice<T>, EntityState<T>>;
433
+ /**
434
+ * Selects all ids for products in state.
435
+ */
436
+ selectProductIds: MemoizedSelector<DaffProductStateRootSlice<T>, EntityState<T>['ids']>;
437
+ /**
438
+ * Selects the ngrx entities for all products in state.
439
+ */
440
+ selectProductEntities: MemoizedSelector<DaffProductStateRootSlice<T>, EntityState<T>['entities']>;
441
+ /**
442
+ * Selects all products in state as an array.
443
+ */
444
+ selectAllProducts: MemoizedSelector<DaffProductStateRootSlice<T>, T[]>;
445
+ /**
446
+ * Selects the total number of products in state.
447
+ */
448
+ selectProductTotal: MemoizedSelector<DaffProductStateRootSlice<T>, number>;
449
+ /**
450
+ * Selects a product by id.
451
+ *
452
+ * @param productId the id of the product.
453
+ */
454
+ selectProduct: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, T>;
455
+ /**
456
+ * Selects the price of a product.
457
+ *
458
+ * @param productId the id of the product.
459
+ */
460
+ selectProductPrice: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
461
+ /**
462
+ * Selects the discount of a product as some amount of currency.
463
+ *
464
+ * @param productId the id of the product.
465
+ */
466
+ selectProductDiscountAmount: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
467
+ /**
468
+ * Selects the discounted price of a product.
469
+ *
470
+ * @param productId the id of the product.
471
+ */
472
+ selectProductDiscountedPrice: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
473
+ /**
474
+ * Selects the discount of a product as a percent of the original price.
475
+ *
476
+ * @param productId the id of the product.
477
+ */
478
+ selectProductDiscountPercent: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, number>;
479
+ /**
480
+ * Selects whether or not the product has a discount.
481
+ *
482
+ * @param productId the id of the product.
483
+ */
484
+ selectProductHasDiscount: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, boolean>;
485
+ /**
486
+ * Selects whether or not a product is out of stock.
487
+ *
488
+ * @param productId the id of the product.
489
+ */
490
+ selectIsProductOutOfStock: (productId: T['id']) => MemoizedSelector<DaffProductStateRootSlice<T>, boolean>;
515
491
  }
516
492
  /**
517
493
  * A function that returns all selectors related to product entities and simple product prices.
518
494
  */
519
- declare const getDaffProductEntitiesSelectors: <T extends DaffProduct>() => DaffProductEntitiesMemoizedSelectors<T>;
520
-
495
+ export declare const getDaffProductEntitiesSelectors: <T extends DaffProduct>() => DaffProductEntitiesMemoizedSelectors<T>;
521
496
  /**
522
497
  * An interface for the entire product feature state.
523
498
  */
524
- interface DaffProductFeatureMemoizedSelector<T extends DaffProduct = DaffProduct> {
525
- selectProductState: MemoizedSelector<Record<string, any>, DaffProductReducersState<T>>;
499
+ export interface DaffProductFeatureMemoizedSelector<T extends DaffProduct = DaffProduct> {
500
+ selectProductState: MemoizedSelector<Record<string, any>, DaffProductReducersState<T>>;
526
501
  }
527
502
  /**
528
503
  * A function that returns a selector for the entire product feature state.
529
504
  */
530
- declare const getDaffProductFeatureSelector: <T extends DaffProduct>() => DaffProductFeatureMemoizedSelector<T>;
531
-
505
+ export declare const getDaffProductFeatureSelector: <T extends DaffProduct>() => DaffProductFeatureMemoizedSelector<T>;
532
506
  /**
533
507
  * An interface for selectors related to loading a grid of products.
534
508
  */
535
- interface DaffProductGridMemoizedSelectors<T extends DaffProduct = DaffProduct> {
536
- /**
537
- * Selects the redux state for the product grid feature area. Returns {@link DaffProductGridReducerState}.
538
- */
539
- selectProductGridState: MemoizedSelector<DaffProductStateRootSlice<T>, DaffProductGridReducerState<T>>;
540
- /**
541
- * Selects whether any product grid requests are loading.
542
- */
543
- selectProductGridLoadingState: MemoizedSelector<DaffProductStateRootSlice<T>, boolean>;
509
+ export interface DaffProductGridMemoizedSelectors<T extends DaffProduct = DaffProduct> {
510
+ /**
511
+ * Selects the redux state for the product grid feature area. Returns {@link DaffProductGridReducerState}.
512
+ */
513
+ selectProductGridState: MemoizedSelector<DaffProductStateRootSlice<T>, DaffProductGridReducerState<T>>;
514
+ /**
515
+ * Selects whether any product grid requests are loading.
516
+ */
517
+ selectProductGridLoadingState: MemoizedSelector<DaffProductStateRootSlice<T>, boolean>;
544
518
  }
545
519
  /**
546
520
  * A function that returns all selectors related to loading a grid of products.
547
521
  * Returns {@link DaffProductGridMemoizedSelectors}.
548
522
  */
549
- declare const getDaffProductGridSelectors: <T extends DaffProduct>() => DaffProductGridMemoizedSelectors<T>;
550
-
523
+ export declare const getDaffProductGridSelectors: <T extends DaffProduct>() => DaffProductGridMemoizedSelectors<T>;
551
524
  /**
552
525
  * An interface for all selectors in the entire product feature area.
553
526
  */
554
- interface DaffProductAllSelectors<T extends DaffProduct = DaffProduct> extends DaffProductPageMemoizedSelectors<T>, DaffProductEntitiesMemoizedSelectors<T>, DaffProductGridMemoizedSelectors<T>, DaffProductFeatureMemoizedSelector<T> {
555
- }
527
+ export interface DaffProductAllSelectors<T extends DaffProduct = DaffProduct> extends DaffProductPageMemoizedSelectors<T>, DaffProductEntitiesMemoizedSelectors<T>, DaffProductGridMemoizedSelectors<T>, DaffProductFeatureMemoizedSelector<T> {}
556
528
  /**
557
529
  * A function that returns all selectors in the entire product feature area.
558
530
  * Returns {@link DaffProductAllSelectors}.
559
531
  */
560
- declare const getDaffProductSelectors: <T extends DaffProduct = DaffProduct>() => DaffProductAllSelectors<T>;
561
-
562
- declare const DAFF_PRODUCT_ERROR_MATCHER: i0.InjectionToken<typeof daffTransformErrorToStateError>;
563
- declare const provideDaffProductErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => i0.ValueProvider;
564
-
532
+ export declare const getDaffProductSelectors: <T extends DaffProduct = DaffProduct>() => DaffProductAllSelectors<T>;
533
+ export declare const DAFF_PRODUCT_ERROR_MATCHER: import("@angular/core").InjectionToken<typeof daffTransformErrorToStateError>, provideDaffProductErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => import("@angular/core").ValueProvider;
565
534
  /**
566
535
  * A module that provides the default reducers and effects for the product redux state.
536
+ *
537
+ * @deprecated in favor of {@link provideDaffProductState} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
567
538
  */
568
- declare class DaffProductStateModule {
569
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductStateModule, never>;
570
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffProductStateModule, never, [typeof _ngrx_store.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
571
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffProductStateModule>;
539
+ export declare class DaffProductStateModule {
540
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffProductStateModule, never>;
541
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffProductStateModule, never, [typeof i1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
542
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffProductStateModule>;
572
543
  }
573
-
574
- export { DAFF_PRODUCT_ERROR_MATCHER, DAFF_PRODUCT_EXTRA_REDUCERS, DAFF_PRODUCT_META_REDUCERS, DAFF_PRODUCT_STORE_FEATURE_KEY, DaffProductActionTypes, DaffProductEffects, DaffProductFacade, DaffProductGridActionTypes, DaffProductGridEffects, DaffProductGridFacade, DaffProductGridLoad, DaffProductGridLoadFailure, DaffProductGridLoadSuccess, DaffProductGridReset, DaffProductLoad, DaffProductLoadFailure, DaffProductLoadSuccess, DaffProductPageActionTypes, DaffProductPageFacade, DaffProductPageLoad, DaffProductPageLoadByUrl, DaffProductPageLoadFailure, DaffProductPageLoadSuccess, DaffProductPageUpdateQty, DaffProductStateModule, daffProductEntitiesAdapter, daffProductEntitiesReducer, daffProductGridReducer, daffProductProvideExtraReducers, daffProductProvideMetaReducerFactories, daffProductProvideMetaReducers, daffProductReducer, daffProductReducerInitialState, daffProductReducers, getDaffProductEntitiesSelectors, getDaffProductFeatureSelector, getDaffProductGridSelectors, getDaffProductPageSelectors, getDaffProductSelectors, provideDaffProductErrorMatcher };
575
- export type { DaffProductActions, DaffProductAllSelectors, DaffProductEntitiesMemoizedSelectors, DaffProductFacadeInterface, DaffProductFeatureMemoizedSelector, DaffProductGridActions, DaffProductGridFacadeInterface, DaffProductGridMemoizedSelectors, DaffProductGridReducerState, DaffProductPageActions, DaffProductPageFacadeInterface, DaffProductPageMemoizedSelectors, DaffProductReducerState, DaffProductReducersState, DaffProductStateRootSlice };
544
+ /**
545
+ * Provides the default reducers and effects for the product redux state.
546
+ */
547
+ export declare const provideDaffProductState: () => EnvironmentProviders;