@daffodil/driver 0.89.0 → 0.91.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,12 +1,27 @@
1
1
  import * as _daffodil_driver_shopify from '@daffodil/driver/shopify';
2
- import { ShopifyImageNode, ShopifyProductImages, ShopifyMoney, CurrencyCode, ShopifyProductPriceRange, ShopifyProductNode, ShopifyProductGraph } from '@daffodil/driver/shopify';
2
+ import { ShopifyPageInfo, ShopifyImageNode, ShopifyProductImages, ShopifyMoneyV2, ShopifyCurrencyCode, ShopifyProductPriceRange, ShopifyProductNode, ShopifyProductGraph } from '@daffodil/driver/shopify';
3
3
  import { DaffModelFactory } from '@daffodil/core/testing';
4
4
  import * as i0 from '@angular/core';
5
5
 
6
+ declare class MockShopifyPageInfo implements ShopifyPageInfo {
7
+ endCursor: string;
8
+ hasNextPage: boolean;
9
+ hasPreviousPage: boolean;
10
+ startCursor: string;
11
+ }
12
+ declare class ShopifyPageInfoFactory extends DaffModelFactory<ShopifyPageInfo, typeof MockShopifyPageInfo> {
13
+ constructor();
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyPageInfoFactory, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyPageInfoFactory>;
16
+ }
17
+
6
18
  declare class MockShopifyProductImageNode implements ShopifyImageNode {
7
19
  id: string;
8
20
  url: string;
9
21
  altText: string;
22
+ originalSrc: string;
23
+ src: string;
24
+ transformedSrc: string;
10
25
  }
11
26
  declare class ShopifyProductImageNodeFactory extends DaffModelFactory<ShopifyImageNode, typeof MockShopifyProductImageNode> {
12
27
  constructor();
@@ -16,20 +31,23 @@ declare class ShopifyProductImageNodeFactory extends DaffModelFactory<ShopifyIma
16
31
 
17
32
  declare class MockShopifyProductImages implements ShopifyProductImages {
18
33
  protected shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory;
34
+ protected shopifyPageInfoFactory: ShopifyPageInfoFactory;
19
35
  nodes: _daffodil_driver_shopify.ShopifyImageNode[];
20
- constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory);
36
+ edges: any[];
37
+ pageInfo: _daffodil_driver_shopify.ShopifyPageInfo;
38
+ constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
21
39
  }
22
40
  declare class ShopifyProductImagesFactory extends DaffModelFactory<ShopifyProductImages, typeof MockShopifyProductImages> {
23
- constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory);
41
+ constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
24
42
  static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductImagesFactory, never>;
25
43
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductImagesFactory>;
26
44
  }
27
45
 
28
- declare class MockShopifyMoney implements ShopifyMoney {
46
+ declare class MockShopifyMoney implements ShopifyMoneyV2 {
29
47
  amount: number;
30
- currencyCode: CurrencyCode;
48
+ currencyCode: ShopifyCurrencyCode;
31
49
  }
32
- declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoney, typeof MockShopifyMoney> {
50
+ declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoneyV2, typeof MockShopifyMoney> {
33
51
  constructor();
34
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyMoneyFactory, never>;
35
53
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyMoneyFactory>;
@@ -37,8 +55,8 @@ declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoney, typeof
37
55
 
38
56
  declare class MockShopifyProductPriceRange implements ShopifyProductPriceRange {
39
57
  protected shopifyMoneyFactory: ShopifyMoneyFactory;
40
- maxVariantPrice: _daffodil_driver_shopify.ShopifyMoney;
41
- minVariantPrice: _daffodil_driver_shopify.ShopifyMoney;
58
+ maxVariantPrice: _daffodil_driver_shopify.ShopifyMoneyV2;
59
+ minVariantPrice: _daffodil_driver_shopify.ShopifyMoneyV2;
42
60
  constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
43
61
  }
44
62
  declare class ShopifyProductPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductPriceRange> {
@@ -50,14 +68,31 @@ declare class ShopifyProductPriceRangeFactory extends DaffModelFactory<ShopifyPr
50
68
  declare class MockShopifyProductNode implements ShopifyProductNode {
51
69
  protected shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory;
52
70
  protected shopifyProductImagesFactory: ShopifyProductImagesFactory;
53
- title: string;
71
+ availableForSale: boolean;
72
+ collections: any;
73
+ compareAtPriceRange: _daffodil_driver_shopify.ShopifyProductPriceRange;
74
+ createdAt: Date;
75
+ description: string;
76
+ descriptionHtml: string;
54
77
  handle: string;
55
78
  id: string;
56
- description: string;
79
+ images: _daffodil_driver_shopify.ShopifyProductImages;
80
+ isGiftCard: boolean;
81
+ media: any;
82
+ metafields: any[];
57
83
  onlineStoreUrl: string;
58
- availableForSale: boolean;
84
+ options: any[];
59
85
  priceRange: _daffodil_driver_shopify.ShopifyProductPriceRange;
60
- images: _daffodil_driver_shopify.ShopifyProductImages;
86
+ productType: string;
87
+ publishedAt: Date;
88
+ requiresSellingPlan: boolean;
89
+ sellingPlanGroups: any;
90
+ seo: {};
91
+ tags: any[];
92
+ title: string;
93
+ updatedAt: Date;
94
+ variants: any;
95
+ vendor: string;
61
96
  constructor(shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory, shopifyProductImagesFactory: ShopifyProductImagesFactory);
62
97
  }
63
98
  declare class ShopifyProductNodeFactory extends DaffModelFactory<ShopifyProductNode, typeof MockShopifyProductNode> {
@@ -68,11 +103,15 @@ declare class ShopifyProductNodeFactory extends DaffModelFactory<ShopifyProductN
68
103
 
69
104
  declare class MockShopifyProductGraph implements ShopifyProductGraph {
70
105
  protected shopifyProductNodeFactory: ShopifyProductNodeFactory;
106
+ protected shopifyPageInfoFactory: ShopifyPageInfoFactory;
71
107
  nodes: _daffodil_driver_shopify.ShopifyProductNode[];
72
- constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory);
108
+ edges: any[];
109
+ filters: any[];
110
+ pageInfo: _daffodil_driver_shopify.ShopifyPageInfo;
111
+ constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
73
112
  }
74
113
  declare class ShopifyProductGraphFactory extends DaffModelFactory<ShopifyProductGraph, typeof MockShopifyProductGraph> {
75
- constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory);
114
+ constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
76
115
  static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductGraphFactory, never>;
77
116
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductGraphFactory>;
78
117
  }