@daffodil/driver 0.94.1 → 0.95.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/fesm2022/daffodil-driver-hubspot-testing.mjs +53 -38
- package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-hubspot.mjs +41 -60
- package/fesm2022/daffodil-driver-hubspot.mjs.map +1 -1
- package/fesm2022/daffodil-driver-in-memory.mjs +186 -258
- package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs +139 -0
- package/fesm2022/daffodil-driver-magento-2.4.7-testing.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-2.4.7.mjs +543 -0
- package/fesm2022/daffodil-driver-magento-2.4.7.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-auto-testing.mjs +7 -0
- package/fesm2022/daffodil-driver-magento-auto-testing.mjs.map +1 -0
- package/fesm2022/daffodil-driver-magento-auto.mjs +7 -0
- package/fesm2022/daffodil-driver-magento-auto.mjs.map +1 -0
- package/fesm2022/daffodil-driver-shopify-testing.mjs +359 -216
- package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify.mjs +1090 -2289
- package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
- package/fesm2022/daffodil-driver.mjs +55 -54
- package/fesm2022/daffodil-driver.mjs.map +1 -1
- package/package.json +1 -1
- package/types/daffodil-driver-hubspot-testing.d.ts +12 -15
- package/types/daffodil-driver-hubspot.d.ts +44 -52
- package/types/daffodil-driver-in-memory.d.ts +104 -121
- package/types/daffodil-driver-magento-2.4.7-testing.d.ts +18 -0
- package/types/daffodil-driver-magento-2.4.7.d.ts +189 -0
- package/types/daffodil-driver-magento-auto-testing.d.ts +1 -0
- package/types/daffodil-driver-magento-auto.d.ts +1 -0
- package/types/daffodil-driver-shopify-testing.d.ts +112 -121
- package/types/daffodil-driver-shopify.d.ts +6902 -6943
- package/types/daffodil-driver.d.ts +32 -42
- package/fesm2022/daffodil-driver-magento-testing.mjs +0 -79
- package/fesm2022/daffodil-driver-magento-testing.mjs.map +0 -1
- package/fesm2022/daffodil-driver-magento.mjs +0 -998
- package/fesm2022/daffodil-driver-magento.mjs.map +0 -1
- package/types/daffodil-driver-magento-testing.d.ts +0 -23
- package/types/daffodil-driver-magento.d.ts +0 -225
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { EnvironmentProviders, InjectionToken, Provider, StateKey } from "@angular/core";
|
|
3
|
+
import { PossibleTypesMap, TypePolicies } from "@apollo/client/core";
|
|
4
|
+
import { HttpLink } from "apollo-angular/http";
|
|
5
|
+
import { ApolloClient, TypePolicies as TypePolicies$1 } from "@apollo/client";
|
|
6
|
+
import { ErrorLink } from "@apollo/client/link/error";
|
|
7
|
+
import { DaffCollectionMetadata, DaffError, DaffErrorCodeMap, DaffInheritableError, DaffSortDirectionEnum } from "@daffodil/core";
|
|
8
|
+
import { GraphQLFormattedError } from "graphql";
|
|
9
|
+
import { DaffDriverHttpClientCacheServiceInterface } from "@daffodil/driver";
|
|
10
|
+
export declare const MAGENTO_POSSIBLE_TYPES: {
|
|
11
|
+
possibleTypes: {
|
|
12
|
+
AggregationOptionInterface: string[];
|
|
13
|
+
AttributeSelectedOptionInterface: string[];
|
|
14
|
+
AttributeValueInterface: string[];
|
|
15
|
+
CartAddressInterface: string[];
|
|
16
|
+
CartItemInterface: string[];
|
|
17
|
+
CategoryInterface: string[];
|
|
18
|
+
CreditMemoItemInterface: string[];
|
|
19
|
+
CustomAttributeMetadataInterface: string[];
|
|
20
|
+
CustomAttributeOptionInterface: string[];
|
|
21
|
+
CustomizableOptionInterface: string[];
|
|
22
|
+
CustomizableProductInterface: string[];
|
|
23
|
+
Error: string[];
|
|
24
|
+
ErrorInterface: string[];
|
|
25
|
+
InvoiceItemInterface: string[];
|
|
26
|
+
LayerFilterItemInterface: string[];
|
|
27
|
+
MediaGalleryInterface: string[];
|
|
28
|
+
OrderItemInterface: string[];
|
|
29
|
+
PhysicalProductInterface: string[];
|
|
30
|
+
ProductInterface: string[];
|
|
31
|
+
ProductLinksInterface: string[];
|
|
32
|
+
RoutableInterface: string[];
|
|
33
|
+
ShipmentItemInterface: string[];
|
|
34
|
+
SwatchDataInterface: string[];
|
|
35
|
+
SwatchLayerFilterItemInterface: string[];
|
|
36
|
+
WishlistItemInterface: string[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* A non-exhaustive list of feature kinds that exist for {@link provideMagentoDriver}.
|
|
41
|
+
*/
|
|
42
|
+
export declare enum MagentoDriverFeatureKind {
|
|
43
|
+
CacheableOperations = "DaffMagentoDriverCacheableOperationsFeature",
|
|
44
|
+
CacheHeader = "DaffMagentoDriverCacheHeaderFeature",
|
|
45
|
+
ErrorHandler = "DaffMagentoDriverErrorHandlerFeature",
|
|
46
|
+
TransferState = "DaffMagentoDriverTransferStateFeature",
|
|
47
|
+
ExtraApolloOptions = "DaffMagentoDriverExtraApolloOptionsFeature"
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A feature for {@link provideMagentoDriver}.
|
|
51
|
+
*/
|
|
52
|
+
export interface MagentoDriverFeature {
|
|
53
|
+
ɵkind: MagentoDriverFeatureKind | string;
|
|
54
|
+
ɵproviders: Array<Provider | EnvironmentProviders>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Apollo client options except link and cache, creation of which is done by {@link provideMagentoDriver}.
|
|
58
|
+
*/
|
|
59
|
+
export type DaffDriverMagentoExtraApolloOptions = Omit<ApolloClient.Options, 'link' | 'cache'>;
|
|
60
|
+
export declare const DAFF_DRIVER_MAGENTO_EXTRA_APOLLO_OPTIONS: import("@angular/core").InjectionToken<DaffDriverMagentoExtraApolloOptions>, provideDaffDriverMagentoExtraApolloOptions: <R extends DaffDriverMagentoExtraApolloOptions = DaffDriverMagentoExtraApolloOptions>(value: R) => import("@angular/core").ValueProvider, provideDaffDriverMagentoExtraApolloOptionsFactory: <R extends DaffDriverMagentoExtraApolloOptions = DaffDriverMagentoExtraApolloOptions>(factory: () => R) => import("@angular/core").FactoryProvider;
|
|
61
|
+
/**
|
|
62
|
+
* A {@link provideMagentoDriver} feature that allow specifying {@link DaffDriverMagentoExtraApolloOptions}.
|
|
63
|
+
*/
|
|
64
|
+
export declare const withDaffDriverMagentoExtraApolloOptions: (options: DaffDriverMagentoExtraApolloOptions) => MagentoDriverFeature;
|
|
65
|
+
/**
|
|
66
|
+
* A {@link provideMagentoDriver} feature that sets up {@link provideDaffMagentoApolloCacheableOperations}.
|
|
67
|
+
*/
|
|
68
|
+
export declare const withOperationCache: (...extraOperations: Array<string>) => MagentoDriverFeature;
|
|
69
|
+
export declare const DAFF_DRIVER_MAGENTO_ERROR_HANDLER: import("@angular/core").InjectionToken<ErrorLink.ErrorHandler>, provideDaffDriverMagentoErrorHandler: <R extends ErrorLink.ErrorHandler = ErrorLink.ErrorHandler>(value: R) => import("@angular/core").ValueProvider;
|
|
70
|
+
/**
|
|
71
|
+
* A {@link provideMagentoDriver} feature that specifies the error handler.
|
|
72
|
+
*/
|
|
73
|
+
export declare const withDaffDriverMagentoErrorHandler: (handler: ErrorLink.ErrorHandler) => MagentoDriverFeature;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a magento driver feature for {@link provideMagentoDriver}.
|
|
76
|
+
*/
|
|
77
|
+
export declare function makeMagentoDriverFeature(kind: MagentoDriverFeatureKind | string, providers: Array<Provider | EnvironmentProviders>): MagentoDriverFeature;
|
|
78
|
+
export declare const DAFF_DRIVER_MAGENTO_TRANSFER_STATE_KEY: import("@angular/core").InjectionToken<StateKey<any>>, provideDaffDriverMagentoTransferStateKey: <R extends StateKey<any> = StateKey<any>>(value: R) => import("@angular/core").ValueProvider;
|
|
79
|
+
/**
|
|
80
|
+
* A {@link provideMagentoDriver} feature that sets up transfer state with the specified key.
|
|
81
|
+
*
|
|
82
|
+
* @param stateKey The key under which the Apollo state is stored.
|
|
83
|
+
*/
|
|
84
|
+
export declare const withDaffDriverMagentoTransferState: <T extends StateKey<any> = StateKey<any>>(stateKey: T) => MagentoDriverFeature;
|
|
85
|
+
/**
|
|
86
|
+
* Holds the logic for hydrating the Apollo cache with the server's transferred state.
|
|
87
|
+
* It is recommended to use {@link withDaffDriverMagentoTransferState} with {@link provideMagentoDriver}
|
|
88
|
+
* to provide this functionality automatically.
|
|
89
|
+
*/
|
|
90
|
+
export declare const provideDaffDriverMagentoTransferState: () => EnvironmentProviders;
|
|
91
|
+
export interface DaffMagentoDriverConfig extends HttpLink.Options {
|
|
92
|
+
possibleTypes?: PossibleTypesMap;
|
|
93
|
+
typePolicies?: TypePolicies;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Sets up the Magento Daffodil driver configuration for Magento's GraphQl API.
|
|
97
|
+
*
|
|
98
|
+
* Under the hood, this creates an Apollo Client configuration.
|
|
99
|
+
*
|
|
100
|
+
* @param endpoint - The Magento store domain (e.g. "https://www.my-store.com/graphql") or an injection token for a string or function that returns a string
|
|
101
|
+
*/
|
|
102
|
+
export declare function provideMagentoDriver(options: DaffMagentoDriverConfig | InjectionToken<DaffMagentoDriverConfig>, ...features: Array<MagentoDriverFeature>): EnvironmentProviders;
|
|
103
|
+
/**
|
|
104
|
+
* Transforms the passed error according to the lookup in the passed map.
|
|
105
|
+
*/
|
|
106
|
+
export declare function daffTransformMagentoError<T extends DaffErrorCodeMap>(error: any, map: T): DaffError;
|
|
107
|
+
export declare function daffMagentoTransformGraphQlError<T extends DaffErrorCodeMap>(error: GraphQLFormattedError, map: T): DaffError;
|
|
108
|
+
export declare const DAFF_DRIVER_MAGENTO_ERROR_CODE = "DAFF_DRIVER_MAGENTO_ERROR";
|
|
109
|
+
/**
|
|
110
|
+
* A very general error thrown when a more specific error type cannot be determined.
|
|
111
|
+
*/
|
|
112
|
+
export declare class DaffDriverMagentoError extends DaffInheritableError implements DaffError {
|
|
113
|
+
readonly code: string;
|
|
114
|
+
constructor(message?: string);
|
|
115
|
+
}
|
|
116
|
+
export interface MagentoMoney {
|
|
117
|
+
__typename?: string;
|
|
118
|
+
value: number;
|
|
119
|
+
currency: string;
|
|
120
|
+
}
|
|
121
|
+
export interface MagentoDiscount {
|
|
122
|
+
__typename?: string;
|
|
123
|
+
amount: MagentoMoney;
|
|
124
|
+
label: string;
|
|
125
|
+
}
|
|
126
|
+
export interface MagentoSearchResultPageInfo {
|
|
127
|
+
__typename?: 'SearchResultPageInfo';
|
|
128
|
+
current_page: number;
|
|
129
|
+
page_size: number;
|
|
130
|
+
total_pages: number;
|
|
131
|
+
}
|
|
132
|
+
export interface MagentoFilterInput {
|
|
133
|
+
typename?: 'FilterStringTypeInput';
|
|
134
|
+
eq?: string;
|
|
135
|
+
in?: string;
|
|
136
|
+
match?: string;
|
|
137
|
+
}
|
|
138
|
+
export declare enum MagentoSortEnum {
|
|
139
|
+
ASC = "ASC",
|
|
140
|
+
DESC = "DESC"
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* A request handler provider that will convert cacheable apollo operations into a format that Magento will understand as cacheable.
|
|
144
|
+
*/
|
|
145
|
+
export declare const provideDaffMagentoApolloCacheableOperations: () => import("@angular/core").EnvironmentProviders;
|
|
146
|
+
export declare const DAFF_MAGENTO_CACHEABLE_OPERATIONS: import("@angular/core").InjectionToken<string[]>, provideManyDaffMagentoCacheableOperations: <R extends string = string>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
147
|
+
/**
|
|
148
|
+
* Adds an operation name to the list of cacheable Magento operations. Use only with Angular 9+.
|
|
149
|
+
*/
|
|
150
|
+
export declare function provideDaffMagentoCacheableOperation(operationName: string): {
|
|
151
|
+
provide: import("@angular/core").InjectionToken<string[]>;
|
|
152
|
+
useValue: string;
|
|
153
|
+
multi: boolean;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Custom type policies that allow us to have more granular control
|
|
157
|
+
* over how ApolloClient reads from and writes to the cache.
|
|
158
|
+
*
|
|
159
|
+
* This is applicable to Magento 2.4.3 and up.
|
|
160
|
+
* Heavily based on https://github.com/magento/pwa-studio/blob/99270701b2b607551f2e5881af272ed48ba7064c/packages/peregrine/lib/Apollo/policies/index.js.
|
|
161
|
+
*
|
|
162
|
+
* https://www.apollographql.com/docs/react/caching/cache-configuration/#typepolicy-fields
|
|
163
|
+
* https://www.apollographql.com/docs/react/caching/cache-field-behavior/
|
|
164
|
+
*/
|
|
165
|
+
export declare const DAFF_MAGENTO_2_4_3_TYPE_POLICIES: TypePolicies$1;
|
|
166
|
+
/**
|
|
167
|
+
* Interacts with the Apollo client.
|
|
168
|
+
*
|
|
169
|
+
* @inheritdoc
|
|
170
|
+
*/
|
|
171
|
+
export declare class DaffDriverHttpClientCacheMagentoService implements DaffDriverHttpClientCacheServiceInterface {
|
|
172
|
+
private platformId;
|
|
173
|
+
constructor(platformId: string);
|
|
174
|
+
reset(): void;
|
|
175
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffDriverHttpClientCacheMagentoService, never>;
|
|
176
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
177
|
+
}
|
|
178
|
+
export declare const MAGENTO_CUSTOMER_CACHE_ID_HEADER = "X-Magento-Cache-Id";
|
|
179
|
+
/**
|
|
180
|
+
* Stores and sets the Magento cache ID header.
|
|
181
|
+
* This will set the `X-Magento-Cache-Id` header from the most recent value encountered
|
|
182
|
+
* on a response, if there was a response with that header set.
|
|
183
|
+
*/
|
|
184
|
+
export declare const provideDaffMagentoCacheHeader: () => import("@angular/core").EnvironmentProviders;
|
|
185
|
+
export declare function magentoPageInfoTransform(pageInfo: MagentoSearchResultPageInfo): Pick<DaffCollectionMetadata, 'pageSize' | 'currentPage' | 'totalPages'>;
|
|
186
|
+
export declare function magentoSortDirectionResponseTransform(direction: MagentoSortEnum): DaffSortDirectionEnum;
|
|
187
|
+
export declare function magentoSortDirectionRequestTransform(direction: DaffSortDirectionEnum): MagentoSortEnum;
|
|
188
|
+
export declare const magentoSearchResultPageInfoFragment: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
189
|
+
export declare const magentoMoneyFragment: import("apollo-angular").TypedDocumentNode<unknown, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -1,145 +1,136 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import * as i0 from '@angular/core';
|
|
5
|
-
|
|
1
|
+
import { DaffModelFactory } from "@daffodil/core/testing";
|
|
2
|
+
import { ShopifyCategory, ShopifyCurrencyCode, ShopifyImageNode, ShopifyMoneyV2, ShopifyPageInfo, ShopifyProductGraph, ShopifyProductNode, ShopifyProductPriceRange } from "@daffodil/driver/shopify";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
6
4
|
declare class MockShopifyPageInfo implements ShopifyPageInfo {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
endCursor: string;
|
|
6
|
+
hasNextPage: boolean;
|
|
7
|
+
hasPreviousPage: boolean;
|
|
8
|
+
startCursor: string;
|
|
11
9
|
}
|
|
12
10
|
declare class ShopifyPageInfoFactory extends DaffModelFactory<ShopifyPageInfo, typeof MockShopifyPageInfo> {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
constructor();
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyPageInfoFactory, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
declare class MockShopifyImageNode implements ShopifyImageNode {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
id: string;
|
|
17
|
+
url: string;
|
|
18
|
+
altText: string;
|
|
19
|
+
originalSrc: string;
|
|
20
|
+
src: string;
|
|
21
|
+
transformedSrc: string;
|
|
25
22
|
}
|
|
26
|
-
declare class ShopifyImageNodeFactory extends DaffModelFactory<ShopifyImageNode, typeof MockShopifyImageNode> {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
export declare class ShopifyImageNodeFactory extends DaffModelFactory<ShopifyImageNode, typeof MockShopifyImageNode> {
|
|
24
|
+
constructor();
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyImageNodeFactory, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
30
27
|
}
|
|
31
|
-
|
|
32
28
|
declare class MockShopifyMoney implements ShopifyMoneyV2 {
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
amount: number;
|
|
30
|
+
currencyCode: ShopifyCurrencyCode;
|
|
35
31
|
}
|
|
36
|
-
declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoneyV2, typeof MockShopifyMoney> {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
export declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoneyV2, typeof MockShopifyMoney> {
|
|
33
|
+
constructor();
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyMoneyFactory, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
40
36
|
}
|
|
41
|
-
|
|
42
37
|
declare class MockShopifyProductVariantsPriceRange implements ShopifyProductPriceRange {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
protected shopifyMoneyFactory: ShopifyMoneyFactory;
|
|
39
|
+
maxVariantPrice: import("@daffodil/driver/shopify").ShopifyMoneyV2;
|
|
40
|
+
minVariantPrice: import("@daffodil/driver/shopify").ShopifyMoneyV2;
|
|
41
|
+
constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
|
|
47
42
|
}
|
|
48
|
-
declare class ShopifyProductVariantsPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductVariantsPriceRange> {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
export declare class ShopifyProductVariantsPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductVariantsPriceRange> {
|
|
44
|
+
constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductVariantsPriceRangeFactory, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
52
47
|
}
|
|
53
|
-
|
|
54
48
|
declare class MockShopifyProductNode implements ShopifyProductNode {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
49
|
+
protected shopifyProductVariantsPriceRangeFactory: ShopifyProductVariantsPriceRangeFactory;
|
|
50
|
+
protected shopifyImageNodeFactory: ShopifyImageNodeFactory;
|
|
51
|
+
availableForSale: boolean;
|
|
52
|
+
collections: any;
|
|
53
|
+
compareAtPriceRange: import("@daffodil/driver/shopify").ShopifyProductPriceRange;
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
description: string;
|
|
56
|
+
descriptionHtml: string;
|
|
57
|
+
handle: string;
|
|
58
|
+
id: string;
|
|
59
|
+
images: {
|
|
60
|
+
edges: any[];
|
|
61
|
+
nodes: any[];
|
|
62
|
+
pageInfo: {
|
|
63
|
+
hasNextPage: boolean;
|
|
64
|
+
hasPreviousPage: boolean;
|
|
72
65
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
66
|
+
};
|
|
67
|
+
isGiftCard: boolean;
|
|
68
|
+
media: any;
|
|
69
|
+
metafields: any[];
|
|
70
|
+
onlineStoreUrl: string;
|
|
71
|
+
options: any[];
|
|
72
|
+
priceRange: import("@daffodil/driver/shopify").ShopifyProductPriceRange;
|
|
73
|
+
productType: string;
|
|
74
|
+
publishedAt: Date;
|
|
75
|
+
requiresSellingPlan: boolean;
|
|
76
|
+
sellingPlanGroups: any;
|
|
77
|
+
seo: {};
|
|
78
|
+
tags: any[];
|
|
79
|
+
title: string;
|
|
80
|
+
updatedAt: Date;
|
|
81
|
+
variants: any;
|
|
82
|
+
adjacentVariants: any;
|
|
83
|
+
vendor: string;
|
|
84
|
+
constructor(shopifyProductVariantsPriceRangeFactory: ShopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
|
|
91
85
|
}
|
|
92
|
-
declare class ShopifyProductNodeFactory extends DaffModelFactory<ShopifyProductNode, typeof MockShopifyProductNode> {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
export declare class ShopifyProductNodeFactory extends DaffModelFactory<ShopifyProductNode, typeof MockShopifyProductNode> {
|
|
87
|
+
constructor(shopifyProductVariantsPriceRangeFactory: ShopifyProductVariantsPriceRangeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductNodeFactory, never>;
|
|
89
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
96
90
|
}
|
|
97
|
-
|
|
98
91
|
declare class MockShopifyProductGraph implements ShopifyProductGraph {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
92
|
+
protected shopifyProductNodeFactory: ShopifyProductNodeFactory;
|
|
93
|
+
protected shopifyPageInfoFactory: ShopifyPageInfoFactory;
|
|
94
|
+
nodes: import("@daffodil/driver/shopify").ShopifyProductNode[];
|
|
95
|
+
edges: any[];
|
|
96
|
+
filters: any[];
|
|
97
|
+
pageInfo: import("@daffodil/driver/shopify").ShopifyPageInfo;
|
|
98
|
+
constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
|
|
106
99
|
}
|
|
107
|
-
declare class ShopifyProductGraphFactory extends DaffModelFactory<ShopifyProductGraph, typeof MockShopifyProductGraph> {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
export declare class ShopifyProductGraphFactory extends DaffModelFactory<ShopifyProductGraph, typeof MockShopifyProductGraph> {
|
|
101
|
+
constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyPageInfoFactory: ShopifyPageInfoFactory);
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductGraphFactory, never>;
|
|
103
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
111
104
|
}
|
|
112
|
-
|
|
113
105
|
declare class MockShopifyCategory implements ShopifyCategory {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
};
|
|
106
|
+
protected shopifyProductNodeFactory: ShopifyProductNodeFactory;
|
|
107
|
+
protected shopifyImageNodeFactory: ShopifyImageNodeFactory;
|
|
108
|
+
title: string;
|
|
109
|
+
handle: string;
|
|
110
|
+
id: string;
|
|
111
|
+
description: string;
|
|
112
|
+
descriptionHtml: string;
|
|
113
|
+
onlineStoreUrl: string;
|
|
114
|
+
image: any;
|
|
115
|
+
products: {
|
|
116
|
+
edges: any[];
|
|
117
|
+
nodes: import("@daffodil/driver/shopify").ShopifyProductNode[];
|
|
118
|
+
filters: any[];
|
|
119
|
+
pageInfo: {
|
|
120
|
+
hasNextPage: boolean;
|
|
121
|
+
hasPreviousPage: boolean;
|
|
131
122
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
123
|
+
};
|
|
124
|
+
metafield: any;
|
|
125
|
+
metafields: any[];
|
|
126
|
+
seo: {};
|
|
127
|
+
trackingParameters: any;
|
|
128
|
+
updatedAt: Date;
|
|
129
|
+
constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
|
|
138
130
|
}
|
|
139
|
-
declare class DaffCategoryDriverShopifyCategoryFactory extends DaffModelFactory<ShopifyCategory, typeof MockShopifyCategory> {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
131
|
+
export declare class DaffCategoryDriverShopifyCategoryFactory extends DaffModelFactory<ShopifyCategory, typeof MockShopifyCategory> {
|
|
132
|
+
constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory, shopifyImageNodeFactory: ShopifyImageNodeFactory);
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCategoryDriverShopifyCategoryFactory, never>;
|
|
134
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
143
135
|
}
|
|
144
|
-
|
|
145
|
-
export { DaffCategoryDriverShopifyCategoryFactory, ShopifyImageNodeFactory, ShopifyMoneyFactory, ShopifyProductGraphFactory, ShopifyProductNodeFactory, ShopifyProductVariantsPriceRangeFactory };
|
|
136
|
+
export {};
|