@daffodil/driver 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-driver-hubspot-testing.mjs +53 -38
- package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-hubspot.mjs +41 -60
- package/fesm2022/daffodil-driver-hubspot.mjs.map +1 -1
- package/fesm2022/daffodil-driver-in-memory.mjs +186 -258
- package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs +139 -0
- package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-2.4.7.mjs +543 -0
- package/fesm2022/daffodil-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-driver-shopify-testing.mjs +359 -216
- package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify.mjs +1090 -2289
- package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-driver.mjs +55 -54
- package/fesm2022/daffodil-driver.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-driver-hubspot-testing.d.ts +12 -15
- package/types/daffodil-driver-hubspot.d.ts +44 -52
- package/types/daffodil-driver-in-memory.d.ts +104 -121
- package/types/daffodil-driver-magento-2.4.7-testing.d.ts +18 -0
- package/types/daffodil-driver-magento-2.4.7.d.ts +189 -0
- package/types/daffodil-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-driver-shopify-testing.d.ts +112 -121
- package/types/daffodil-driver-shopify.d.ts +6902 -6943
- package/types/daffodil-driver.d.ts +32 -42
- package/fesm2022/daffodil-driver-magento-testing.mjs +0 -79
- package/fesm2022/daffodil-driver-magento-testing.mjs.map +0 -1
- package/fesm2022/daffodil-driver-magento.mjs +0 -998
- package/fesm2022/daffodil-driver-magento.mjs.map +0 -1
- package/types/daffodil-driver-magento-testing.d.ts +0 -23
- package/types/daffodil-driver-magento.d.ts +0 -225
|
@@ -1,217 +1,360 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { Injectable } from
|
|
3
|
-
import { DaffModelFactory } from
|
|
4
|
-
import { faker } from
|
|
5
|
-
import { ShopifyCurrencyCode, shopifyHandleTransformer, shopifyIdTransformer, shopifyImageTransformer } from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
class
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import { DaffModelFactory } from "@daffodil/core/testing";
|
|
4
|
+
import { faker } from "@faker-js/faker/locale/en_US";
|
|
5
|
+
import { ShopifyCurrencyCode, shopifyHandleTransformer, shopifyIdTransformer, shopifyImageTransformer } from "@daffodil/driver/shopify";
|
|
6
|
+
var MockShopifyPageInfo = class {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.endCursor = faker.lorem.word();
|
|
9
|
+
this.hasNextPage = faker.datatype.boolean();
|
|
10
|
+
this.hasPreviousPage = faker.datatype.boolean();
|
|
11
|
+
this.startCursor = faker.lorem.word();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var ShopifyPageInfoFactory = class ShopifyPageInfoFactory extends DaffModelFactory {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(MockShopifyPageInfo);
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
|
+
minVersion: "12.0.0",
|
|
21
|
+
version: "22.2.4",
|
|
22
|
+
ngImport: i0,
|
|
23
|
+
type: ShopifyPageInfoFactory,
|
|
24
|
+
deps: [],
|
|
25
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
30
|
+
minVersion: "12.0.0",
|
|
31
|
+
version: "22.2.4",
|
|
32
|
+
ngImport: i0,
|
|
33
|
+
type: ShopifyPageInfoFactory,
|
|
34
|
+
providedIn: "root"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
39
|
+
minVersion: "12.0.0",
|
|
40
|
+
version: "22.2.4",
|
|
41
|
+
ngImport: i0,
|
|
42
|
+
type: ShopifyPageInfoFactory,
|
|
43
|
+
decorators: [{
|
|
44
|
+
type: Injectable,
|
|
45
|
+
args: [{ providedIn: "root" }]
|
|
46
|
+
}],
|
|
47
|
+
ctorParameters: () => []
|
|
48
|
+
});
|
|
49
|
+
var MockShopifyImageNode = class {
|
|
50
|
+
constructor() {
|
|
51
|
+
this.id = "";
|
|
52
|
+
this.url = faker.image.url();
|
|
53
|
+
this.altText = faker.lorem.words(5);
|
|
54
|
+
this.originalSrc = faker.image.url();
|
|
55
|
+
this.src = faker.image.url();
|
|
56
|
+
this.transformedSrc = faker.image.url();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var ShopifyImageNodeFactory = class ShopifyImageNodeFactory extends DaffModelFactory {
|
|
60
|
+
constructor() {
|
|
61
|
+
super(MockShopifyImageNode);
|
|
62
|
+
}
|
|
63
|
+
static {
|
|
64
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
65
|
+
minVersion: "12.0.0",
|
|
66
|
+
version: "22.2.4",
|
|
67
|
+
ngImport: i0,
|
|
68
|
+
type: ShopifyImageNodeFactory,
|
|
69
|
+
deps: [],
|
|
70
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
static {
|
|
74
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
75
|
+
minVersion: "12.0.0",
|
|
76
|
+
version: "22.2.4",
|
|
77
|
+
ngImport: i0,
|
|
78
|
+
type: ShopifyImageNodeFactory,
|
|
79
|
+
providedIn: "root"
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
84
|
+
minVersion: "12.0.0",
|
|
85
|
+
version: "22.2.4",
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
type: ShopifyImageNodeFactory,
|
|
88
|
+
decorators: [{
|
|
89
|
+
type: Injectable,
|
|
90
|
+
args: [{ providedIn: "root" }]
|
|
91
|
+
}],
|
|
92
|
+
ctorParameters: () => []
|
|
93
|
+
});
|
|
94
|
+
var MockShopifyMoney = class {
|
|
95
|
+
constructor() {
|
|
96
|
+
this.amount = parseFloat(faker.commerce.price());
|
|
97
|
+
this.currencyCode = faker.helpers.objectValue(ShopifyCurrencyCode);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
var ShopifyMoneyFactory = class ShopifyMoneyFactory extends DaffModelFactory {
|
|
101
|
+
constructor() {
|
|
102
|
+
super(MockShopifyMoney);
|
|
103
|
+
}
|
|
104
|
+
static {
|
|
105
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
106
|
+
minVersion: "12.0.0",
|
|
107
|
+
version: "22.2.4",
|
|
108
|
+
ngImport: i0,
|
|
109
|
+
type: ShopifyMoneyFactory,
|
|
110
|
+
deps: [],
|
|
111
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
static {
|
|
115
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
116
|
+
minVersion: "12.0.0",
|
|
117
|
+
version: "22.2.4",
|
|
118
|
+
ngImport: i0,
|
|
119
|
+
type: ShopifyMoneyFactory,
|
|
120
|
+
providedIn: "root"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
125
|
+
minVersion: "12.0.0",
|
|
126
|
+
version: "22.2.4",
|
|
127
|
+
ngImport: i0,
|
|
128
|
+
type: ShopifyMoneyFactory,
|
|
129
|
+
decorators: [{
|
|
130
|
+
type: Injectable,
|
|
131
|
+
args: [{ providedIn: "root" }]
|
|
132
|
+
}],
|
|
133
|
+
ctorParameters: () => []
|
|
134
|
+
});
|
|
135
|
+
var MockShopifyProductVariantsPriceRange = class {
|
|
136
|
+
constructor(shopifyMoneyFactory) {
|
|
137
|
+
this.shopifyMoneyFactory = shopifyMoneyFactory;
|
|
138
|
+
this.maxVariantPrice = this.shopifyMoneyFactory.create();
|
|
139
|
+
this.minVariantPrice = this.shopifyMoneyFactory.create();
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var ShopifyProductVariantsPriceRangeFactory = class ShopifyProductVariantsPriceRangeFactory extends DaffModelFactory {
|
|
143
|
+
constructor(shopifyMoneyFactory) {
|
|
144
|
+
super(MockShopifyProductVariantsPriceRange, shopifyMoneyFactory);
|
|
145
|
+
}
|
|
146
|
+
static {
|
|
147
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
148
|
+
minVersion: "12.0.0",
|
|
149
|
+
version: "22.2.4",
|
|
150
|
+
ngImport: i0,
|
|
151
|
+
type: ShopifyProductVariantsPriceRangeFactory,
|
|
152
|
+
deps: [{ token: ShopifyMoneyFactory }],
|
|
153
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
static {
|
|
157
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
158
|
+
minVersion: "12.0.0",
|
|
159
|
+
version: "22.2.4",
|
|
160
|
+
ngImport: i0,
|
|
161
|
+
type: ShopifyProductVariantsPriceRangeFactory,
|
|
162
|
+
providedIn: "root"
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
167
|
+
minVersion: "12.0.0",
|
|
168
|
+
version: "22.2.4",
|
|
169
|
+
ngImport: i0,
|
|
170
|
+
type: ShopifyProductVariantsPriceRangeFactory,
|
|
171
|
+
decorators: [{
|
|
172
|
+
type: Injectable,
|
|
173
|
+
args: [{ providedIn: "root" }]
|
|
174
|
+
}],
|
|
175
|
+
ctorParameters: () => [{ type: ShopifyMoneyFactory }]
|
|
176
|
+
});
|
|
177
|
+
var MockShopifyProductNode = class {
|
|
178
|
+
constructor(shopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory) {
|
|
179
|
+
this.shopifyProductVariantsPriceRangeFactory = shopifyProductVariantsPriceRangeFactory;
|
|
180
|
+
this.shopifyImageNodeFactory = shopifyImageNodeFactory;
|
|
181
|
+
this.availableForSale = faker.datatype.boolean();
|
|
182
|
+
this.collections = null;
|
|
183
|
+
this.compareAtPriceRange = this.shopifyProductVariantsPriceRangeFactory.create();
|
|
184
|
+
this.createdAt = faker.date.past();
|
|
185
|
+
this.description = faker.commerce.productDescription();
|
|
186
|
+
this.descriptionHtml = faker.commerce.productDescription();
|
|
187
|
+
this.handle = shopifyHandleTransformer(faker.commerce.productName());
|
|
188
|
+
this.id = shopifyIdTransformer(`${faker.number.int({ min: 1e11 })}`, "Product");
|
|
189
|
+
this.images = {
|
|
190
|
+
edges: [],
|
|
191
|
+
nodes: this.shopifyImageNodeFactory.createMany().map((node) => shopifyImageTransformer(node, "ProductImage")),
|
|
192
|
+
pageInfo: {
|
|
193
|
+
hasNextPage: false,
|
|
194
|
+
hasPreviousPage: false
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
this.isGiftCard = faker.datatype.boolean();
|
|
198
|
+
this.media = null;
|
|
199
|
+
this.metafields = [];
|
|
200
|
+
this.onlineStoreUrl = faker.internet.domainName();
|
|
201
|
+
this.options = [];
|
|
202
|
+
this.priceRange = this.shopifyProductVariantsPriceRangeFactory.create();
|
|
203
|
+
this.productType = faker.commerce.productMaterial();
|
|
204
|
+
this.publishedAt = faker.date.past();
|
|
205
|
+
this.requiresSellingPlan = faker.datatype.boolean();
|
|
206
|
+
this.sellingPlanGroups = null;
|
|
207
|
+
this.seo = {};
|
|
208
|
+
this.tags = [];
|
|
209
|
+
this.title = faker.commerce.productName();
|
|
210
|
+
this.updatedAt = faker.date.past();
|
|
211
|
+
this.variants = null;
|
|
212
|
+
this.adjacentVariants = null;
|
|
213
|
+
this.vendor = faker.company.name();
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
var ShopifyProductNodeFactory = class ShopifyProductNodeFactory extends DaffModelFactory {
|
|
217
|
+
constructor(shopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory) {
|
|
218
|
+
super(MockShopifyProductNode, shopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory);
|
|
219
|
+
}
|
|
220
|
+
static {
|
|
221
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
222
|
+
minVersion: "12.0.0",
|
|
223
|
+
version: "22.2.4",
|
|
224
|
+
ngImport: i0,
|
|
225
|
+
type: ShopifyProductNodeFactory,
|
|
226
|
+
deps: [{ token: ShopifyProductVariantsPriceRangeFactory }, { token: ShopifyImageNodeFactory }],
|
|
227
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
static {
|
|
231
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
232
|
+
minVersion: "12.0.0",
|
|
233
|
+
version: "22.2.4",
|
|
234
|
+
ngImport: i0,
|
|
235
|
+
type: ShopifyProductNodeFactory,
|
|
236
|
+
providedIn: "root"
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
241
|
+
minVersion: "12.0.0",
|
|
242
|
+
version: "22.2.4",
|
|
243
|
+
ngImport: i0,
|
|
244
|
+
type: ShopifyProductNodeFactory,
|
|
245
|
+
decorators: [{
|
|
246
|
+
type: Injectable,
|
|
247
|
+
args: [{ providedIn: "root" }]
|
|
248
|
+
}],
|
|
249
|
+
ctorParameters: () => [{ type: ShopifyProductVariantsPriceRangeFactory }, { type: ShopifyImageNodeFactory }]
|
|
250
|
+
});
|
|
251
|
+
var MockShopifyProductGraph = class {
|
|
252
|
+
constructor(shopifyProductNodeFactory, shopifyPageInfoFactory) {
|
|
253
|
+
this.shopifyProductNodeFactory = shopifyProductNodeFactory;
|
|
254
|
+
this.shopifyPageInfoFactory = shopifyPageInfoFactory;
|
|
255
|
+
this.nodes = this.shopifyProductNodeFactory.createMany();
|
|
256
|
+
this.edges = [];
|
|
257
|
+
this.filters = [];
|
|
258
|
+
this.pageInfo = this.shopifyPageInfoFactory.create();
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
var ShopifyProductGraphFactory = class ShopifyProductGraphFactory extends DaffModelFactory {
|
|
262
|
+
constructor(shopifyProductNodeFactory, shopifyPageInfoFactory) {
|
|
263
|
+
super(MockShopifyProductGraph, shopifyProductNodeFactory, shopifyPageInfoFactory);
|
|
264
|
+
}
|
|
265
|
+
static {
|
|
266
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
267
|
+
minVersion: "12.0.0",
|
|
268
|
+
version: "22.2.4",
|
|
269
|
+
ngImport: i0,
|
|
270
|
+
type: ShopifyProductGraphFactory,
|
|
271
|
+
deps: [{ token: ShopifyProductNodeFactory }, { token: ShopifyPageInfoFactory }],
|
|
272
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
static {
|
|
276
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
277
|
+
minVersion: "12.0.0",
|
|
278
|
+
version: "22.2.4",
|
|
279
|
+
ngImport: i0,
|
|
280
|
+
type: ShopifyProductGraphFactory,
|
|
281
|
+
providedIn: "root"
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
286
|
+
minVersion: "12.0.0",
|
|
287
|
+
version: "22.2.4",
|
|
288
|
+
ngImport: i0,
|
|
289
|
+
type: ShopifyProductGraphFactory,
|
|
290
|
+
decorators: [{
|
|
291
|
+
type: Injectable,
|
|
292
|
+
args: [{ providedIn: "root" }]
|
|
293
|
+
}],
|
|
294
|
+
ctorParameters: () => [{ type: ShopifyProductNodeFactory }, { type: ShopifyPageInfoFactory }]
|
|
295
|
+
});
|
|
296
|
+
var MockShopifyCategory = class {
|
|
297
|
+
constructor(shopifyProductNodeFactory, shopifyImageNodeFactory) {
|
|
298
|
+
this.shopifyProductNodeFactory = shopifyProductNodeFactory;
|
|
299
|
+
this.shopifyImageNodeFactory = shopifyImageNodeFactory;
|
|
300
|
+
this.title = faker.commerce.department();
|
|
301
|
+
this.handle = shopifyHandleTransformer(faker.commerce.department());
|
|
302
|
+
this.id = shopifyIdTransformer(`${faker.number.int({ min: 1e11 })}`, "Collection");
|
|
303
|
+
this.description = faker.commerce.productDescription();
|
|
304
|
+
this.descriptionHtml = faker.commerce.productDescription();
|
|
305
|
+
this.onlineStoreUrl = faker.internet.domainName();
|
|
306
|
+
this.image = shopifyImageTransformer(this.shopifyImageNodeFactory.create(), "CollectionImage");
|
|
307
|
+
this.products = {
|
|
308
|
+
edges: [],
|
|
309
|
+
nodes: this.shopifyProductNodeFactory.createMany(),
|
|
310
|
+
filters: [],
|
|
311
|
+
pageInfo: {
|
|
312
|
+
hasNextPage: false,
|
|
313
|
+
hasPreviousPage: false
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
this.metafield = null;
|
|
317
|
+
this.metafields = [];
|
|
318
|
+
this.seo = {};
|
|
319
|
+
this.trackingParameters = null;
|
|
320
|
+
this.updatedAt = faker.date.past();
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
var DaffCategoryDriverShopifyCategoryFactory = class DaffCategoryDriverShopifyCategoryFactory extends DaffModelFactory {
|
|
324
|
+
constructor(shopifyProductNodeFactory, shopifyImageNodeFactory) {
|
|
325
|
+
super(MockShopifyCategory, shopifyProductNodeFactory, shopifyImageNodeFactory);
|
|
326
|
+
}
|
|
327
|
+
static {
|
|
328
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
329
|
+
minVersion: "12.0.0",
|
|
330
|
+
version: "22.2.4",
|
|
331
|
+
ngImport: i0,
|
|
332
|
+
type: DaffCategoryDriverShopifyCategoryFactory,
|
|
333
|
+
deps: [{ token: ShopifyProductNodeFactory }, { token: ShopifyImageNodeFactory }],
|
|
334
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
static {
|
|
338
|
+
this.ɵprov = i0.ɵɵngDeclareInjectable({
|
|
339
|
+
minVersion: "12.0.0",
|
|
340
|
+
version: "22.2.4",
|
|
341
|
+
ngImport: i0,
|
|
342
|
+
type: DaffCategoryDriverShopifyCategoryFactory,
|
|
343
|
+
providedIn: "root"
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
348
|
+
minVersion: "12.0.0",
|
|
349
|
+
version: "22.2.4",
|
|
350
|
+
ngImport: i0,
|
|
351
|
+
type: DaffCategoryDriverShopifyCategoryFactory,
|
|
352
|
+
decorators: [{
|
|
353
|
+
type: Injectable,
|
|
354
|
+
args: [{ providedIn: "root" }]
|
|
355
|
+
}],
|
|
356
|
+
ctorParameters: () => [{ type: ShopifyProductNodeFactory }, { type: ShopifyImageNodeFactory }]
|
|
357
|
+
});
|
|
216
358
|
export { DaffCategoryDriverShopifyCategoryFactory, ShopifyImageNodeFactory, ShopifyMoneyFactory, ShopifyProductGraphFactory, ShopifyProductNodeFactory, ShopifyProductVariantsPriceRangeFactory };
|
|
217
|
-
|
|
359
|
+
|
|
360
|
+
//# sourceMappingURL=daffodil-driver-shopify-testing.mjs.map
|