@daffodil/driver 0.90.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.
- package/README.md +16 -1
- package/fesm2022/daffodil-driver-in-memory.mjs +93 -2
- package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-driver-magento.mjs +297 -217
- package/fesm2022/daffodil-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify-testing.mjs +65 -16
- package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify.mjs +1149 -1282
- package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
- package/in-memory/index.d.ts +80 -3
- package/magento/index.d.ts +114 -32
- package/package.json +1 -1
- package/shopify/index.d.ts +1836 -2037
- package/shopify/testing/index.d.ts +53 -14
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import * as _daffodil_driver_shopify from '@daffodil/driver/shopify';
|
|
2
|
-
import { ShopifyImageNode, ShopifyProductImages,
|
|
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
|
-
|
|
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
|
|
46
|
+
declare class MockShopifyMoney implements ShopifyMoneyV2 {
|
|
29
47
|
amount: number;
|
|
30
|
-
currencyCode:
|
|
48
|
+
currencyCode: ShopifyCurrencyCode;
|
|
31
49
|
}
|
|
32
|
-
declare class ShopifyMoneyFactory extends DaffModelFactory<
|
|
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.
|
|
41
|
-
minVariantPrice: _daffodil_driver_shopify.
|
|
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
|
-
|
|
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
|
-
|
|
79
|
+
images: _daffodil_driver_shopify.ShopifyProductImages;
|
|
80
|
+
isGiftCard: boolean;
|
|
81
|
+
media: any;
|
|
82
|
+
metafields: any[];
|
|
57
83
|
onlineStoreUrl: string;
|
|
58
|
-
|
|
84
|
+
options: any[];
|
|
59
85
|
priceRange: _daffodil_driver_shopify.ShopifyProductPriceRange;
|
|
60
|
-
|
|
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
|
-
|
|
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
|
}
|