@daffodil/external-router 0.94.1 → 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.
- package/fesm2022/daffodil-external-router-driver-in-memory.mjs +70 -88
- package/fesm2022/daffodil-external-router-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver-magento-2.4.1.mjs +117 -118
- package/fesm2022/daffodil-external-router-driver-magento-2.4.1.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver-magento-2.4.2.mjs +117 -118
- package/fesm2022/daffodil-external-router-driver-magento-2.4.2.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver-magento-2.4.3.mjs +216 -266
- package/fesm2022/daffodil-external-router-driver-magento-2.4.3.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-external-router-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-external-router-driver-magento.mjs +6 -18
- package/fesm2022/daffodil-external-router-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver-shopify.mjs +49 -39
- package/fesm2022/daffodil-external-router-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver-testing.mjs +118 -115
- package/fesm2022/daffodil-external-router-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-driver.mjs +8 -32
- package/fesm2022/daffodil-external-router-driver.mjs.map +1 -1
- package/fesm2022/daffodil-external-router-routing.mjs +31 -66
- package/fesm2022/daffodil-external-router-routing.mjs.map +1 -1
- package/fesm2022/daffodil-external-router.mjs +37 -81
- package/fesm2022/daffodil-external-router.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-external-router-driver-in-memory.d.ts +15 -21
- package/types/daffodil-external-router-driver-magento-2.4.1.d.ts +29 -25
- package/types/daffodil-external-router-driver-magento-2.4.2.d.ts +29 -25
- package/types/daffodil-external-router-driver-magento-2.4.3.d.ts +25 -28
- package/types/daffodil-external-router-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-external-router-driver-magento.d.ts +251 -263
- package/types/daffodil-external-router-driver-shopify.d.ts +10 -14
- package/types/daffodil-external-router-driver-testing.d.ts +22 -27
- package/types/daffodil-external-router-driver.d.ts +12 -19
- package/types/daffodil-external-router-routing.d.ts +4 -7
- package/types/daffodil-external-router.d.ts +72 -86
|
@@ -1,281 +1,269 @@
|
|
|
1
|
-
interface MagentoUrlResolver {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
export interface MagentoUrlResolver {
|
|
2
|
+
relative_url: string;
|
|
3
|
+
type: string;
|
|
4
|
+
redirectCode: number;
|
|
5
|
+
/**
|
|
6
|
+
* In v2.4.2 this became the standard id field
|
|
7
|
+
*/
|
|
8
|
+
entity_uid?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The original id field from Magento
|
|
11
|
+
*/
|
|
12
|
+
id?: number;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
CMS_PAGE = "CMS_PAGE"
|
|
14
|
+
export declare enum MagentoUrlRewriteEntityTypeEnum {
|
|
15
|
+
PRODUCT = "PRODUCT",
|
|
16
|
+
CATEGORY = "CATEGORY",
|
|
17
|
+
CMS_PAGE = "CMS_PAGE"
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
urlResolver: MagentoUrlResolver;
|
|
19
|
+
export interface MagentoUrlResolverResponse {
|
|
20
|
+
urlResolver: MagentoUrlResolver;
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
interface MagentoCategoryRouteProduct {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
23
|
+
/**
|
|
24
|
+
* The relative path for the route.
|
|
25
|
+
*/
|
|
26
|
+
relative_url: string;
|
|
27
|
+
/**
|
|
28
|
+
* The type of route, typically PRODUCT, CATEGORY or CMS_PAGE
|
|
29
|
+
*/
|
|
30
|
+
type: 'PRODUCT';
|
|
31
|
+
/**
|
|
32
|
+
* The HTTP code for the page.
|
|
33
|
+
*/
|
|
34
|
+
redirect_code: number;
|
|
35
|
+
/**
|
|
36
|
+
* In v2.4.3 this became the standard field across types
|
|
37
|
+
*/
|
|
38
|
+
uid: string;
|
|
39
|
+
/**
|
|
40
|
+
* The canonical url of the route.
|
|
41
|
+
*/
|
|
42
|
+
canonical_url: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the route
|
|
45
|
+
*/
|
|
46
|
+
name: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The title of the route
|
|
49
|
+
*/
|
|
50
|
+
meta_title: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The sku of a product.
|
|
53
|
+
*/
|
|
54
|
+
sku: string;
|
|
55
|
+
/**
|
|
56
|
+
* The number of reviews of a product.
|
|
57
|
+
*/
|
|
58
|
+
review_count: number;
|
|
59
|
+
/**
|
|
60
|
+
* The rating of a product.
|
|
61
|
+
*/
|
|
62
|
+
rating_summary: number;
|
|
63
|
+
/**
|
|
64
|
+
* The images of a product.
|
|
65
|
+
*/
|
|
66
|
+
image: {
|
|
67
|
+
url: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* The price of the item.
|
|
71
|
+
*/
|
|
72
|
+
price_range: {
|
|
73
|
+
maximum_price: {
|
|
74
|
+
final_price: {
|
|
75
|
+
currency: string;
|
|
76
|
+
value: number;
|
|
77
|
+
};
|
|
78
|
+
regular_price: {
|
|
79
|
+
currency: string;
|
|
80
|
+
value: number;
|
|
81
|
+
};
|
|
71
82
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
regular_price: {
|
|
82
|
-
currency: string;
|
|
83
|
-
value: number;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
minimum_price: {
|
|
87
|
-
final_price: {
|
|
88
|
-
currency: string;
|
|
89
|
-
value: number;
|
|
90
|
-
};
|
|
91
|
-
regular_price: {
|
|
92
|
-
currency: string;
|
|
93
|
-
value: number;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
83
|
+
minimum_price: {
|
|
84
|
+
final_price: {
|
|
85
|
+
currency: string;
|
|
86
|
+
value: number;
|
|
87
|
+
};
|
|
88
|
+
regular_price: {
|
|
89
|
+
currency: string;
|
|
90
|
+
value: number;
|
|
91
|
+
};
|
|
96
92
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The type of route.
|
|
96
|
+
*/
|
|
97
|
+
__typename: string;
|
|
101
98
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
};
|
|
99
|
+
export interface MagentoCategoryRoute {
|
|
100
|
+
/**
|
|
101
|
+
* The relative path for the route.
|
|
102
|
+
*/
|
|
103
|
+
relative_url: string;
|
|
104
|
+
/**
|
|
105
|
+
* The type of route, typically PRODUCT, CATEGORY or CMS_PAGE
|
|
106
|
+
*/
|
|
107
|
+
type: 'CATEGORY';
|
|
108
|
+
/**
|
|
109
|
+
* The HTTP code for the page.
|
|
110
|
+
*/
|
|
111
|
+
redirect_code: number;
|
|
112
|
+
/**
|
|
113
|
+
* In v2.4.3 this became the standard field across types
|
|
114
|
+
*/
|
|
115
|
+
uid?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The canonical url of the route.
|
|
118
|
+
*/
|
|
119
|
+
canonical_url?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The meta description of the route
|
|
122
|
+
*/
|
|
123
|
+
meta_description?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The name of the route
|
|
126
|
+
*/
|
|
127
|
+
name?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The title of the route
|
|
130
|
+
*/
|
|
131
|
+
meta_title?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The list of items in the category.
|
|
134
|
+
*/
|
|
135
|
+
products: {
|
|
136
|
+
items: MagentoCategoryRouteProduct[];
|
|
137
|
+
};
|
|
142
138
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
url_key?: string;
|
|
139
|
+
export interface MagentoCmsPageRoute {
|
|
140
|
+
/**
|
|
141
|
+
* The relative path for the route.
|
|
142
|
+
*/
|
|
143
|
+
relative_url: string;
|
|
144
|
+
/**
|
|
145
|
+
* The type of route, typically PRODUCT, CATEGORY or CMS_PAGE
|
|
146
|
+
*/
|
|
147
|
+
type: 'CMS_PAGE';
|
|
148
|
+
/**
|
|
149
|
+
* The HTTP code for the page.
|
|
150
|
+
*/
|
|
151
|
+
redirect_code: number;
|
|
152
|
+
content?: string;
|
|
153
|
+
content_heading?: string;
|
|
154
|
+
identifier?: string;
|
|
155
|
+
meta_description?: string;
|
|
156
|
+
meta_keywords?: string;
|
|
157
|
+
meta_title?: string;
|
|
158
|
+
page_layout?: string;
|
|
159
|
+
title?: string;
|
|
160
|
+
url_key?: string;
|
|
166
161
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
162
|
+
export interface MagentoProductRoute {
|
|
163
|
+
/**
|
|
164
|
+
* The relative path for the route.
|
|
165
|
+
*/
|
|
166
|
+
relative_url: string;
|
|
167
|
+
/**
|
|
168
|
+
* The type of route, typically PRODUCT, CATEGORY or CMS_PAGE
|
|
169
|
+
*/
|
|
170
|
+
type: 'PRODUCT';
|
|
171
|
+
/**
|
|
172
|
+
* The HTTP code for the page.
|
|
173
|
+
*/
|
|
174
|
+
redirect_code: number;
|
|
175
|
+
/**
|
|
176
|
+
* In v2.4.3 this became the standard field across types
|
|
177
|
+
*/
|
|
178
|
+
uid: string;
|
|
179
|
+
/**
|
|
180
|
+
* The canonical url of the route.
|
|
181
|
+
*/
|
|
182
|
+
canonical_url: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* The meta description of the route
|
|
185
|
+
*/
|
|
186
|
+
meta_description: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* The name of the route
|
|
189
|
+
*/
|
|
190
|
+
name: string;
|
|
191
|
+
/**
|
|
192
|
+
* The title of the route
|
|
193
|
+
*/
|
|
194
|
+
meta_title: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* The sku of a product.
|
|
197
|
+
*/
|
|
198
|
+
sku: string;
|
|
199
|
+
/**
|
|
200
|
+
* The number of reviews of a product.
|
|
201
|
+
*/
|
|
202
|
+
review_count: number | null;
|
|
203
|
+
/**
|
|
204
|
+
* The rating of a product.
|
|
205
|
+
*/
|
|
206
|
+
rating_summary: number | null;
|
|
207
|
+
/**
|
|
208
|
+
* The images of a product.
|
|
209
|
+
*/
|
|
210
|
+
image?: {
|
|
211
|
+
url: string;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* The type of route.
|
|
215
|
+
*/
|
|
216
|
+
__typename: string;
|
|
217
|
+
/**
|
|
218
|
+
* The price of the item.
|
|
219
|
+
*/
|
|
220
|
+
price_range: {
|
|
221
|
+
maximum_price: {
|
|
222
|
+
final_price: {
|
|
223
|
+
currency: string;
|
|
224
|
+
value: number;
|
|
225
|
+
};
|
|
226
|
+
regular_price: {
|
|
227
|
+
currency: string;
|
|
228
|
+
value: number;
|
|
229
|
+
};
|
|
218
230
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
final_price: {
|
|
229
|
-
currency: string;
|
|
230
|
-
value: number;
|
|
231
|
-
};
|
|
232
|
-
regular_price: {
|
|
233
|
-
currency: string;
|
|
234
|
-
value: number;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
minimum_price: {
|
|
238
|
-
final_price: {
|
|
239
|
-
currency: string;
|
|
240
|
-
value: number;
|
|
241
|
-
};
|
|
242
|
-
regular_price: {
|
|
243
|
-
currency: string;
|
|
244
|
-
value: number;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
231
|
+
minimum_price: {
|
|
232
|
+
final_price: {
|
|
233
|
+
currency: string;
|
|
234
|
+
value: number;
|
|
235
|
+
};
|
|
236
|
+
regular_price: {
|
|
237
|
+
currency: string;
|
|
238
|
+
value: number;
|
|
239
|
+
};
|
|
247
240
|
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* The stock status of a product.
|
|
244
|
+
*/
|
|
245
|
+
stock_status: 'IN_STOCK' | 'OUT_OF_STOCK';
|
|
252
246
|
}
|
|
253
|
-
|
|
254
247
|
interface MagentoRoutable {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
248
|
+
/**
|
|
249
|
+
* The relative path for the route.
|
|
250
|
+
*/
|
|
251
|
+
relative_url: string;
|
|
252
|
+
/**
|
|
253
|
+
* The type of route, typically PRODUCT, CATEGORY or CMS_PAGE
|
|
254
|
+
*/
|
|
255
|
+
type: 'UNKNOWN' | null;
|
|
256
|
+
/**
|
|
257
|
+
* The HTTP code for the page.
|
|
258
|
+
*/
|
|
259
|
+
redirect_code: number;
|
|
267
260
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
interface MagentoRouteResponse {
|
|
272
|
-
route: MagentoRoute;
|
|
261
|
+
export type MagentoRoute = MagentoRoutable | MagentoProductRoute | MagentoCategoryRoute | MagentoCmsPageRoute;
|
|
262
|
+
export interface MagentoRouteResponse {
|
|
263
|
+
route: MagentoRoute;
|
|
273
264
|
}
|
|
274
|
-
|
|
275
265
|
/**
|
|
276
266
|
* Transforms a Magento redirect code to the appropriate HTTP status code.
|
|
277
267
|
*/
|
|
278
|
-
declare const magentoTransformRedirectToHttpCode: (code: number) => number;
|
|
279
|
-
|
|
280
|
-
export { MagentoUrlRewriteEntityTypeEnum, magentoTransformRedirectToHttpCode };
|
|
281
|
-
export type { MagentoCategoryRoute, MagentoCmsPageRoute, MagentoProductRoute, MagentoRoute, MagentoRouteResponse, MagentoUrlResolver, MagentoUrlResolverResponse };
|
|
268
|
+
export declare const magentoTransformRedirectToHttpCode: (code: number) => number;
|
|
269
|
+
export {};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { DaffExternallyResolvableUrl } from
|
|
3
|
-
import { DaffExternalRouterDriverInterface } from
|
|
4
|
-
import * as i0 from
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffShopifyExternalRouterDriver>;
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DaffExternallyResolvableUrl } from "@daffodil/external-router";
|
|
3
|
+
import { DaffExternalRouterDriverInterface } from "@daffodil/external-router/driver";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { EnvironmentProviders, Provider } from "@angular/core";
|
|
6
|
+
export declare class DaffShopifyExternalRouterDriver implements DaffExternalRouterDriverInterface {
|
|
7
|
+
resolve(url: string): Observable<DaffExternallyResolvableUrl>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffShopifyExternalRouterDriver, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
declare const provideDaffExternalRouterShopifyDriver: () => (Provider | EnvironmentProviders)[];
|
|
14
|
-
|
|
15
|
-
export { DaffShopifyExternalRouterDriver, provideDaffExternalRouterShopifyDriver };
|
|
11
|
+
export declare const provideDaffExternalRouterShopifyDriver: () => (Provider | EnvironmentProviders)[];
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { DaffExternalRouteType, DaffExternallyResolvableUrl } from
|
|
3
|
-
import { DaffExternalRouterDriverInterface } from
|
|
4
|
-
import * as i0 from
|
|
5
|
-
import {
|
|
6
|
-
import * as i1 from
|
|
7
|
-
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DaffExternalRouteType, DaffExternallyResolvableUrl } from "@daffodil/external-router";
|
|
3
|
+
import { DaffExternalRouterDriverInterface } from "@daffodil/external-router/driver";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { EnvironmentProviders, InjectionToken, ModuleWithProviders } from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
8
7
|
/**
|
|
9
8
|
* The configuration for the testing driver. It is a dictionary of "url": "type",
|
|
10
9
|
* pairs, where the URL is a URL-safe routeable path, e.g. "sweatshirts" or "t-shirts"
|
|
11
10
|
* and the type is a known type to your application, e.g. "CATEGORY".
|
|
12
11
|
*/
|
|
13
|
-
interface DaffExternalRouterDriverTestingConfig {
|
|
14
|
-
|
|
12
|
+
export interface DaffExternalRouterDriverTestingConfig {
|
|
13
|
+
[url: string]: DaffExternalRouteType | DaffExternallyResolvableUrl;
|
|
15
14
|
}
|
|
16
|
-
|
|
17
15
|
/**
|
|
18
16
|
* The DaffExternalRouterTestingDriver is responsible for translating an
|
|
19
17
|
* arbitrary URI into a DaffExternallyResolvableUrl in testing environments.
|
|
@@ -22,29 +20,26 @@ interface DaffExternalRouterDriverTestingConfig {
|
|
|
22
20
|
*
|
|
23
21
|
* @see {@link DaffExternalRouterTestingDriver}
|
|
24
22
|
*/
|
|
25
|
-
declare class DaffExternalRouterTestingDriver implements DaffExternalRouterDriverInterface {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
export declare class DaffExternalRouterTestingDriver implements DaffExternalRouterDriverInterface {
|
|
24
|
+
private testingConfiguration;
|
|
25
|
+
constructor(testingConfiguration?: DaffExternalRouterDriverTestingConfig);
|
|
26
|
+
resolve(url: string): Observable<DaffExternallyResolvableUrl>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffExternalRouterTestingDriver, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
/**
|
|
34
31
|
* The `DaffExternalRouterDriverTestingModule` is an importable NgModule that can
|
|
35
32
|
* be used to configure the {@link DaffExternalRouterTestingDriver}.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated in favor of {@link provideDaffExternalRouterTestingDriver} Deprecated in version 0.95.0. Will be removed in version 0.98.0.
|
|
36
35
|
*/
|
|
37
|
-
declare class DaffExternalRouterDriverTestingModule {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
export declare class DaffExternalRouterDriverTestingModule {
|
|
37
|
+
static forRoot(config: DaffExternalRouterDriverTestingConfig): ModuleWithProviders<DaffExternalRouterDriverTestingModule>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffExternalRouterDriverTestingModule, never>;
|
|
39
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffExternalRouterDriverTestingModule, never, [typeof i1.CommonModule], never>;
|
|
40
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffExternalRouterDriverTestingModule>;
|
|
42
41
|
}
|
|
43
|
-
|
|
44
42
|
/**
|
|
45
43
|
* Provides a testing implementation of {@link DaffExternalRouterDriver}
|
|
46
44
|
*/
|
|
47
|
-
declare const provideDaffExternalRouterTestingDriver: (config: DaffExternalRouterDriverTestingConfig | InjectionToken<DaffExternalRouterDriverTestingConfig>) => EnvironmentProviders;
|
|
48
|
-
|
|
49
|
-
export { DaffExternalRouterDriverTestingModule, DaffExternalRouterTestingDriver, provideDaffExternalRouterTestingDriver };
|
|
50
|
-
export type { DaffExternalRouterDriverTestingConfig };
|
|
45
|
+
export declare const provideDaffExternalRouterTestingDriver: (config: DaffExternalRouterDriverTestingConfig | InjectionToken<DaffExternalRouterDriverTestingConfig>) => EnvironmentProviders;
|