@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.
- package/README.md +16 -1
- package/fesm2022/daffodil-driver-hubspot-testing.mjs +3 -3
- package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-in-memory.mjs +100 -9
- package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-driver-magento-testing.mjs +9 -9
- package/fesm2022/daffodil-driver-magento-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-magento.mjs +359 -281
- package/fesm2022/daffodil-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify-testing.mjs +128 -53
- package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify.mjs +1440 -1432
- package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-driver.mjs +3 -3
- package/fesm2022/daffodil-driver.mjs.map +1 -1
- package/in-memory/index.d.ts +80 -3
- package/magento/index.d.ts +112 -36
- package/package.json +1 -1
- package/shopify/index.d.ts +4318 -3116
- package/shopify/testing/index.d.ts +101 -36
|
@@ -1,80 +1,145 @@
|
|
|
1
1
|
import * as _daffodil_driver_shopify from '@daffodil/driver/shopify';
|
|
2
|
-
import {
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
declare class MockShopifyPageInfo implements ShopifyPageInfo {
|
|
7
|
+
endCursor: string;
|
|
8
|
+
hasNextPage: boolean;
|
|
9
|
+
hasPreviousPage: boolean;
|
|
10
|
+
startCursor: string;
|
|
10
11
|
}
|
|
11
|
-
declare class
|
|
12
|
+
declare class ShopifyPageInfoFactory extends DaffModelFactory<ShopifyPageInfo, typeof MockShopifyPageInfo> {
|
|
12
13
|
constructor();
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyPageInfoFactory, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyPageInfoFactory>;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
declare class
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
23
|
-
constructor(
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
25
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
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
|
|
32
|
+
declare class MockShopifyMoney implements ShopifyMoneyV2 {
|
|
29
33
|
amount: number;
|
|
30
|
-
currencyCode:
|
|
34
|
+
currencyCode: ShopifyCurrencyCode;
|
|
31
35
|
}
|
|
32
|
-
declare class ShopifyMoneyFactory extends DaffModelFactory<
|
|
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
|
|
42
|
+
declare class MockShopifyProductVariantsPriceRange implements ShopifyProductPriceRange {
|
|
39
43
|
protected shopifyMoneyFactory: ShopifyMoneyFactory;
|
|
40
|
-
maxVariantPrice: _daffodil_driver_shopify.
|
|
41
|
-
minVariantPrice: _daffodil_driver_shopify.
|
|
44
|
+
maxVariantPrice: _daffodil_driver_shopify.ShopifyMoneyV2;
|
|
45
|
+
minVariantPrice: _daffodil_driver_shopify.ShopifyMoneyV2;
|
|
42
46
|
constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
|
|
43
47
|
}
|
|
44
|
-
declare class
|
|
48
|
+
declare class ShopifyProductVariantsPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductVariantsPriceRange> {
|
|
45
49
|
constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
47
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
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
|
|
52
|
-
protected
|
|
53
|
-
|
|
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
|
-
|
|
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
|
-
|
|
77
|
+
options: any[];
|
|
59
78
|
priceRange: _daffodil_driver_shopify.ShopifyProductPriceRange;
|
|
60
|
-
|
|
61
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|