@daffodil/driver 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.
Files changed (37) hide show
  1. package/fesm2022/daffodil-driver-hubspot-testing.mjs +53 -38
  2. package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
  3. package/fesm2022/daffodil-driver-hubspot.mjs +41 -60
  4. package/fesm2022/daffodil-driver-hubspot.mjs.map +1 -1
  5. package/fesm2022/daffodil-driver-in-memory.mjs +186 -258
  6. package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
  7. package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs +139 -0
  8. package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs.map +1 -0
  9. package/fesm2022/daffodil-driver-magento-2.4.7.mjs +543 -0
  10. package/fesm2022/daffodil-driver-magento-2.4.7.mjs.map +1 -0
  11. package/fesm2022/daffodil-driver-magento-auto-testing.mjs +7 -0
  12. package/fesm2022/daffodil-driver-magento-auto-testing.mjs.map +1 -0
  13. package/fesm2022/daffodil-driver-magento-auto.mjs +7 -0
  14. package/fesm2022/daffodil-driver-magento-auto.mjs.map +1 -0
  15. package/fesm2022/daffodil-driver-shopify-testing.mjs +359 -216
  16. package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
  17. package/fesm2022/daffodil-driver-shopify.mjs +1090 -2289
  18. package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
  19. package/fesm2022/daffodil-driver.mjs +55 -54
  20. package/fesm2022/daffodil-driver.mjs.map +1 -1
  21. package/package.json +1 -1
  22. package/types/daffodil-driver-hubspot-testing.d.ts +12 -15
  23. package/types/daffodil-driver-hubspot.d.ts +44 -52
  24. package/types/daffodil-driver-in-memory.d.ts +104 -121
  25. package/types/daffodil-driver-magento-2.4.7-testing.d.ts +18 -0
  26. package/types/daffodil-driver-magento-2.4.7.d.ts +189 -0
  27. package/types/daffodil-driver-magento-auto-testing.d.ts +1 -0
  28. package/types/daffodil-driver-magento-auto.d.ts +1 -0
  29. package/types/daffodil-driver-shopify-testing.d.ts +112 -121
  30. package/types/daffodil-driver-shopify.d.ts +6902 -6943
  31. package/types/daffodil-driver.d.ts +32 -42
  32. package/fesm2022/daffodil-driver-magento-testing.mjs +0 -79
  33. package/fesm2022/daffodil-driver-magento-testing.mjs.map +0 -1
  34. package/fesm2022/daffodil-driver-magento.mjs +0 -998
  35. package/fesm2022/daffodil-driver-magento.mjs.map +0 -1
  36. package/types/daffodil-driver-magento-testing.d.ts +0 -23
  37. package/types/daffodil-driver-magento.d.ts +0 -225
@@ -1,217 +1,360 @@
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
-
7
- class MockShopifyPageInfo {
8
- constructor() {
9
- this.endCursor = faker.lorem.word();
10
- this.hasNextPage = faker.datatype.boolean();
11
- this.hasPreviousPage = faker.datatype.boolean();
12
- this.startCursor = faker.lorem.word();
13
- }
14
- }
15
- class ShopifyPageInfoFactory extends DaffModelFactory {
16
- constructor() {
17
- super(MockShopifyPageInfo);
18
- }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyPageInfoFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
20
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyPageInfoFactory, providedIn: 'root' }); }
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyPageInfoFactory, decorators: [{
23
- type: Injectable,
24
- args: [{
25
- providedIn: 'root',
26
- }]
27
- }], ctorParameters: () => [] });
28
-
29
- class MockShopifyImageNode {
30
- constructor() {
31
- this.id = '';
32
- this.url = faker.image.url();
33
- this.altText = faker.lorem.words(5);
34
- this.originalSrc = faker.image.url();
35
- this.src = faker.image.url();
36
- this.transformedSrc = faker.image.url();
37
- }
38
- }
39
- class ShopifyImageNodeFactory extends DaffModelFactory {
40
- constructor() {
41
- super(MockShopifyImageNode);
42
- }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyImageNodeFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
44
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyImageNodeFactory, providedIn: 'root' }); }
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyImageNodeFactory, decorators: [{
47
- type: Injectable,
48
- args: [{
49
- providedIn: 'root',
50
- }]
51
- }], ctorParameters: () => [] });
52
-
53
- class MockShopifyMoney {
54
- constructor() {
55
- this.amount = parseFloat(faker.commerce.price());
56
- this.currencyCode = faker.helpers.objectValue(ShopifyCurrencyCode);
57
- }
58
- }
59
- class ShopifyMoneyFactory extends DaffModelFactory {
60
- constructor() {
61
- super(MockShopifyMoney);
62
- }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyMoneyFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
64
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyMoneyFactory, providedIn: 'root' }); }
65
- }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyMoneyFactory, decorators: [{
67
- type: Injectable,
68
- args: [{
69
- providedIn: 'root',
70
- }]
71
- }], ctorParameters: () => [] });
72
-
73
- class MockShopifyProductVariantsPriceRange {
74
- constructor(shopifyMoneyFactory) {
75
- this.shopifyMoneyFactory = shopifyMoneyFactory;
76
- this.maxVariantPrice = this.shopifyMoneyFactory.create();
77
- this.minVariantPrice = this.shopifyMoneyFactory.create();
78
- }
79
- }
80
- class ShopifyProductVariantsPriceRangeFactory extends DaffModelFactory {
81
- constructor(shopifyMoneyFactory) {
82
- super(MockShopifyProductVariantsPriceRange, shopifyMoneyFactory);
83
- }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductVariantsPriceRangeFactory, deps: [{ token: ShopifyMoneyFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
85
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductVariantsPriceRangeFactory, providedIn: 'root' }); }
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductVariantsPriceRangeFactory, decorators: [{
88
- type: Injectable,
89
- args: [{
90
- providedIn: 'root',
91
- }]
92
- }], ctorParameters: () => [{ type: ShopifyMoneyFactory }] });
93
-
94
- class MockShopifyProductNode {
95
- constructor(shopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory) {
96
- this.shopifyProductVariantsPriceRangeFactory = shopifyProductVariantsPriceRangeFactory;
97
- this.shopifyImageNodeFactory = shopifyImageNodeFactory;
98
- this.availableForSale = faker.datatype.boolean();
99
- this.collections = null;
100
- this.compareAtPriceRange = this.shopifyProductVariantsPriceRangeFactory.create();
101
- this.createdAt = faker.date.past();
102
- this.description = faker.commerce.productDescription();
103
- this.descriptionHtml = faker.commerce.productDescription();
104
- this.handle = shopifyHandleTransformer(faker.commerce.productName());
105
- this.id = shopifyIdTransformer(`${faker.number.int({ min: 100000000000 })}`, 'Product');
106
- this.images = {
107
- edges: [],
108
- nodes: this.shopifyImageNodeFactory.createMany().map(node => shopifyImageTransformer(node, 'ProductImage')),
109
- pageInfo: {
110
- hasNextPage: false,
111
- hasPreviousPage: false,
112
- },
113
- };
114
- this.isGiftCard = faker.datatype.boolean();
115
- this.media = null;
116
- this.metafields = [];
117
- this.onlineStoreUrl = faker.internet.domainName();
118
- this.options = [];
119
- this.priceRange = this.shopifyProductVariantsPriceRangeFactory.create();
120
- this.productType = faker.commerce.productMaterial();
121
- this.publishedAt = faker.date.past();
122
- this.requiresSellingPlan = faker.datatype.boolean();
123
- this.sellingPlanGroups = null;
124
- this.seo = {};
125
- this.tags = [];
126
- this.title = faker.commerce.productName();
127
- this.updatedAt = faker.date.past();
128
- this.variants = null;
129
- this.adjacentVariants = null;
130
- this.vendor = faker.company.name();
131
- }
132
- }
133
- class ShopifyProductNodeFactory extends DaffModelFactory {
134
- constructor(shopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory) {
135
- super(MockShopifyProductNode, shopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory);
136
- }
137
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductNodeFactory, deps: [{ token: ShopifyProductVariantsPriceRangeFactory }, { token: ShopifyImageNodeFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
138
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductNodeFactory, providedIn: 'root' }); }
139
- }
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductNodeFactory, decorators: [{
141
- type: Injectable,
142
- args: [{
143
- providedIn: 'root',
144
- }]
145
- }], ctorParameters: () => [{ type: ShopifyProductVariantsPriceRangeFactory }, { type: ShopifyImageNodeFactory }] });
146
-
147
- class MockShopifyProductGraph {
148
- constructor(shopifyProductNodeFactory, shopifyPageInfoFactory) {
149
- this.shopifyProductNodeFactory = shopifyProductNodeFactory;
150
- this.shopifyPageInfoFactory = shopifyPageInfoFactory;
151
- this.nodes = this.shopifyProductNodeFactory.createMany();
152
- this.edges = [];
153
- this.filters = [];
154
- this.pageInfo = this.shopifyPageInfoFactory.create();
155
- }
156
- }
157
- class ShopifyProductGraphFactory extends DaffModelFactory {
158
- constructor(shopifyProductNodeFactory, shopifyPageInfoFactory) {
159
- super(MockShopifyProductGraph, shopifyProductNodeFactory, shopifyPageInfoFactory);
160
- }
161
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductGraphFactory, deps: [{ token: ShopifyProductNodeFactory }, { token: ShopifyPageInfoFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
162
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductGraphFactory, providedIn: 'root' }); }
163
- }
164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ShopifyProductGraphFactory, decorators: [{
165
- type: Injectable,
166
- args: [{
167
- providedIn: 'root',
168
- }]
169
- }], ctorParameters: () => [{ type: ShopifyProductNodeFactory }, { type: ShopifyPageInfoFactory }] });
170
-
171
- class MockShopifyCategory {
172
- constructor(shopifyProductNodeFactory, shopifyImageNodeFactory) {
173
- this.shopifyProductNodeFactory = shopifyProductNodeFactory;
174
- this.shopifyImageNodeFactory = shopifyImageNodeFactory;
175
- this.title = faker.commerce.department();
176
- this.handle = shopifyHandleTransformer(faker.commerce.department());
177
- this.id = shopifyIdTransformer(`${faker.number.int({ min: 100000000000 })}`, 'Collection');
178
- this.description = faker.commerce.productDescription();
179
- this.descriptionHtml = faker.commerce.productDescription();
180
- this.onlineStoreUrl = faker.internet.domainName();
181
- this.image = shopifyImageTransformer(this.shopifyImageNodeFactory.create(), 'CollectionImage');
182
- this.products = {
183
- edges: [],
184
- nodes: this.shopifyProductNodeFactory.createMany(),
185
- filters: [],
186
- pageInfo: {
187
- hasNextPage: false,
188
- hasPreviousPage: false,
189
- },
190
- };
191
- this.metafield = null;
192
- this.metafields = [];
193
- this.seo = {};
194
- this.trackingParameters = null;
195
- this.updatedAt = faker.date.past();
196
- }
197
- }
198
- class DaffCategoryDriverShopifyCategoryFactory extends DaffModelFactory {
199
- constructor(shopifyProductNodeFactory, shopifyImageNodeFactory) {
200
- super(MockShopifyCategory, shopifyProductNodeFactory, shopifyImageNodeFactory);
201
- }
202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffCategoryDriverShopifyCategoryFactory, deps: [{ token: ShopifyProductNodeFactory }, { token: ShopifyImageNodeFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
203
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffCategoryDriverShopifyCategoryFactory, providedIn: 'root' }); }
204
- }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DaffCategoryDriverShopifyCategoryFactory, decorators: [{
206
- type: Injectable,
207
- args: [{
208
- providedIn: 'root',
209
- }]
210
- }], ctorParameters: () => [{ type: ShopifyProductNodeFactory }, { type: ShopifyImageNodeFactory }] });
211
-
212
- /**
213
- * Generated bundle index. Do not edit.
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
- //# sourceMappingURL=daffodil-driver-shopify-testing.mjs.map
359
+
360
+ //# sourceMappingURL=daffodil-driver-shopify-testing.mjs.map