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