@daffodil/driver 0.91.0 → 0.92.3-rc.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.
@@ -1,5 +1,5 @@
1
1
  import * as _daffodil_driver_shopify from '@daffodil/driver/shopify';
2
- import { ShopifyPageInfo, ShopifyImageNode, ShopifyProductImages, ShopifyMoneyV2, ShopifyCurrencyCode, ShopifyProductPriceRange, ShopifyProductNode, ShopifyProductGraph } from '@daffodil/driver/shopify';
2
+ import { ShopifyPageInfo, ShopifyImageNode, ShopifyMoneyV2, ShopifyCurrencyCode, ShopifyProductPriceRange, ShopifyProductNode, ShopifyProductGraph, ShopifyCategory } from '@daffodil/driver/shopify';
3
3
  import { DaffModelFactory } from '@daffodil/core/testing';
4
4
  import * as i0 from '@angular/core';
5
5
 
@@ -15,7 +15,7 @@ declare class ShopifyPageInfoFactory extends DaffModelFactory<ShopifyPageInfo, t
15
15
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyPageInfoFactory>;
16
16
  }
17
17
 
18
- declare class MockShopifyProductImageNode implements ShopifyImageNode {
18
+ declare class MockShopifyImageNode implements ShopifyImageNode {
19
19
  id: string;
20
20
  url: string;
21
21
  altText: string;
@@ -23,24 +23,10 @@ declare class MockShopifyProductImageNode implements ShopifyImageNode {
23
23
  src: string;
24
24
  transformedSrc: string;
25
25
  }
26
- declare class ShopifyProductImageNodeFactory extends DaffModelFactory<ShopifyImageNode, typeof MockShopifyProductImageNode> {
26
+ declare class ShopifyImageNodeFactory extends DaffModelFactory<ShopifyImageNode, typeof MockShopifyImageNode> {
27
27
  constructor();
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductImageNodeFactory, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductImageNodeFactory>;
30
- }
31
-
32
- declare class MockShopifyProductImages implements ShopifyProductImages {
33
- protected shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory;
34
- protected shopifyPageInfoFactory: ShopifyPageInfoFactory;
35
- nodes: _daffodil_driver_shopify.ShopifyImageNode[];
36
- edges: any[];
37
- pageInfo: _daffodil_driver_shopify.ShopifyPageInfo;
38
- constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
39
- }
40
- declare class ShopifyProductImagesFactory extends DaffModelFactory<ShopifyProductImages, typeof MockShopifyProductImages> {
41
- constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
42
- static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductImagesFactory, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductImagesFactory>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyImageNodeFactory, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyImageNodeFactory>;
44
30
  }
45
31
 
46
32
  declare class MockShopifyMoney implements ShopifyMoneyV2 {
@@ -53,21 +39,21 @@ declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoneyV2, typeo
53
39
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyMoneyFactory>;
54
40
  }
55
41
 
56
- declare class MockShopifyProductPriceRange implements ShopifyProductPriceRange {
42
+ declare class MockShopifyProductVariantsPriceRange implements ShopifyProductPriceRange {
57
43
  protected shopifyMoneyFactory: ShopifyMoneyFactory;
58
44
  maxVariantPrice: _daffodil_driver_shopify.ShopifyMoneyV2;
59
45
  minVariantPrice: _daffodil_driver_shopify.ShopifyMoneyV2;
60
46
  constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
61
47
  }
62
- declare class ShopifyProductPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductPriceRange> {
48
+ declare class ShopifyProductVariantsPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductVariantsPriceRange> {
63
49
  constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
64
- static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductPriceRangeFactory, never>;
65
- static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductPriceRangeFactory>;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductVariantsPriceRangeFactory, never>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductVariantsPriceRangeFactory>;
66
52
  }
67
53
 
68
54
  declare class MockShopifyProductNode implements ShopifyProductNode {
69
- protected shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory;
70
- protected shopifyProductImagesFactory: ShopifyProductImagesFactory;
55
+ protected shopifyProductVariantsPriceRangeFactory: ShopifyProductVariantsPriceRangeFactory;
56
+ protected shopifyImageNodeFactory: ShopifyImageNodeFactory;
71
57
  availableForSale: boolean;
72
58
  collections: any;
73
59
  compareAtPriceRange: _daffodil_driver_shopify.ShopifyProductPriceRange;
@@ -76,7 +62,14 @@ declare class MockShopifyProductNode implements ShopifyProductNode {
76
62
  descriptionHtml: string;
77
63
  handle: string;
78
64
  id: string;
79
- images: _daffodil_driver_shopify.ShopifyProductImages;
65
+ images: {
66
+ edges: any[];
67
+ nodes: any[];
68
+ pageInfo: {
69
+ hasNextPage: boolean;
70
+ hasPreviousPage: boolean;
71
+ };
72
+ };
80
73
  isGiftCard: boolean;
81
74
  media: any;
82
75
  metafields: any[];
@@ -92,11 +85,12 @@ declare class MockShopifyProductNode implements ShopifyProductNode {
92
85
  title: string;
93
86
  updatedAt: Date;
94
87
  variants: any;
88
+ adjacentVariants: any;
95
89
  vendor: string;
96
- constructor(shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory, shopifyProductImagesFactory: ShopifyProductImagesFactory);
90
+ constructor(shopifyProductVariantsPriceRangeFactory: ShopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
97
91
  }
98
92
  declare class ShopifyProductNodeFactory extends DaffModelFactory<ShopifyProductNode, typeof MockShopifyProductNode> {
99
- constructor(shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory, shopifyProductImagesFactory: ShopifyProductImagesFactory);
93
+ constructor(shopifyProductVariantsPriceRangeFactory: ShopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
100
94
  static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductNodeFactory, never>;
101
95
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductNodeFactory>;
102
96
  }
@@ -116,4 +110,36 @@ declare class ShopifyProductGraphFactory extends DaffModelFactory<ShopifyProduct
116
110
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductGraphFactory>;
117
111
  }
118
112
 
119
- export { ShopifyMoneyFactory, ShopifyProductGraphFactory, ShopifyProductImageNodeFactory, ShopifyProductImagesFactory, ShopifyProductNodeFactory, ShopifyProductPriceRangeFactory };
113
+ declare class MockShopifyCategory implements ShopifyCategory {
114
+ protected shopifyProductNodeFactory: ShopifyProductNodeFactory;
115
+ protected shopifyImageNodeFactory: ShopifyImageNodeFactory;
116
+ title: string;
117
+ handle: string;
118
+ id: string;
119
+ description: string;
120
+ descriptionHtml: string;
121
+ onlineStoreUrl: string;
122
+ image: any;
123
+ products: {
124
+ edges: any[];
125
+ nodes: _daffodil_driver_shopify.ShopifyProductNode[];
126
+ filters: any[];
127
+ pageInfo: {
128
+ hasNextPage: boolean;
129
+ hasPreviousPage: boolean;
130
+ };
131
+ };
132
+ metafield: any;
133
+ metafields: any[];
134
+ seo: {};
135
+ trackingParameters: any;
136
+ updatedAt: Date;
137
+ constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
138
+ }
139
+ declare class DaffCategoryDriverShopifyCategoryFactory extends DaffModelFactory<ShopifyCategory, typeof MockShopifyCategory> {
140
+ constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
141
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffCategoryDriverShopifyCategoryFactory, never>;
142
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffCategoryDriverShopifyCategoryFactory>;
143
+ }
144
+
145
+ export { DaffCategoryDriverShopifyCategoryFactory, ShopifyImageNodeFactory, ShopifyMoneyFactory, ShopifyProductGraphFactory, ShopifyProductNodeFactory, ShopifyProductVariantsPriceRangeFactory };