@daffodil/driver 0.88.1 → 0.90.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 +3 -3
- package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-hubspot.mjs.map +1 -1
- package/fesm2022/daffodil-driver-in-memory.mjs +7 -7
- 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 +13 -13
- package/fesm2022/daffodil-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify-testing.mjs +18 -18
- package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
- package/fesm2022/daffodil-driver-shopify.mjs +95 -30
- 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/hubspot/index.d.ts +68 -1
- package/hubspot/testing/index.d.ts +21 -1
- package/in-memory/index.d.ts +162 -1
- package/index.d.ts +64 -1
- package/magento/index.d.ts +176 -1
- package/magento/testing/index.d.ts +23 -1
- package/package.json +1 -1
- package/shopify/index.d.ts +8331 -1
- package/shopify/testing/index.d.ts +80 -1
- package/errors/bad-input.d.ts +0 -6
- package/errors/codes.d.ts +0 -3
- package/errors/network-error.class.d.ts +0 -9
- package/errors/public_api.d.ts +0 -3
- package/http-client-cache/noop.service.d.ts +0 -12
- package/http-client-cache/public_api.d.ts +0 -3
- package/http-client-cache/service.token.d.ts +0 -2
- package/http-client-cache/service.type.d.ts +0 -10
- package/hubspot/hubspot-forms.provider.d.ts +0 -9
- package/hubspot/hubspot-forms.service.d.ts +0 -23
- package/hubspot/models/config.d.ts +0 -5
- package/hubspot/models/forms.d.ts +0 -8
- package/hubspot/models/hubspot-request.d.ts +0 -15
- package/hubspot/models/hubspot-response.d.ts +0 -9
- package/hubspot/public_api.d.ts +0 -6
- package/hubspot/testing/factories/hubspot-response.factory.d.ts +0 -18
- package/hubspot/testing/factories/public_api.d.ts +0 -1
- package/hubspot/testing/public_api.d.ts +0 -1
- package/hubspot/transformers/json-builder.d.ts +0 -2
- package/in-memory/backend/backends.token.d.ts +0 -2
- package/in-memory/backend/data-service.type.d.ts +0 -23
- package/in-memory/backend/delegate.class.d.ts +0 -27
- package/in-memory/backend/public_api.d.ts +0 -6
- package/in-memory/backend/root.service.d.ts +0 -19
- package/in-memory/backend/routeable.type.d.ts +0 -25
- package/in-memory/backend/type.d.ts +0 -6
- package/in-memory/config/default.d.ts +0 -2
- package/in-memory/config/public_api.d.ts +0 -3
- package/in-memory/config/token.d.ts +0 -2
- package/in-memory/config/type.d.ts +0 -15
- package/in-memory/driver/base.class.d.ts +0 -14
- package/in-memory/driver/public_api.d.ts +0 -1
- package/in-memory/module.d.ts +0 -12
- package/in-memory/provider.d.ts +0 -19
- package/in-memory/public_api.d.ts +0 -5
- package/magento/apollo/create-http-link.d.ts +0 -8
- package/magento/apollo/possible-types.d.ts +0 -37
- package/magento/apollo/type-policies.d.ts +0 -10
- package/magento/errors/error.class.d.ts +0 -9
- package/magento/errors/public_api.d.ts +0 -3
- package/magento/errors/transform-graphql.d.ts +0 -3
- package/magento/errors/transform.d.ts +0 -5
- package/magento/fragments/money.d.ts +0 -1
- package/magento/fragments/page-info.d.ts +0 -1
- package/magento/fragments/public_api.d.ts +0 -2
- package/magento/graphql/cache-header/cache-header-apollo-link.d.ts +0 -17
- package/magento/graphql/cache.service.d.ts +0 -14
- package/magento/graphql/cacheable-operations/apollo-cacheable-operations-link-generator.d.ts +0 -15
- package/magento/graphql/cacheable-operations/cacheable-operations-token.d.ts +0 -9
- package/magento/graphql/public_api.d.ts +0 -5
- package/magento/graphql/type-policies.d.ts +0 -12
- package/magento/magento.module.d.ts +0 -9
- package/magento/models/discount.d.ts +0 -6
- package/magento/models/filter-input.type.d.ts +0 -6
- package/magento/models/money.d.ts +0 -5
- package/magento/models/page-info.d.ts +0 -6
- package/magento/models/public_api.d.ts +0 -5
- package/magento/models/sort.enum.d.ts +0 -4
- package/magento/provider.d.ts +0 -14
- package/magento/public_api.d.ts +0 -8
- package/magento/schema/schema.d.ts +0 -21
- package/magento/testing/factories/discount.factory.d.ts +0 -14
- package/magento/testing/factories/money.factory.d.ts +0 -13
- package/magento/testing/factories/page-info.factory.d.ts +0 -8
- package/magento/testing/factories/public_api.d.ts +0 -3
- package/magento/transforms/public_api.d.ts +0 -2
- package/magento/transforms/requests/public_api.d.ts +0 -1
- package/magento/transforms/requests/sort-direction.d.ts +0 -3
- package/magento/transforms/responses/page-info.d.ts +0 -3
- package/magento/transforms/responses/public_api.d.ts +0 -2
- package/magento/transforms/responses/sort-direction.d.ts +0 -3
- package/models/public_api.d.ts +0 -1
- package/models/response.interface.d.ts +0 -15
- package/public_api.d.ts +0 -3
- package/shopify/codegen/generated-shopify-types.d.ts +0 -8214
- package/shopify/codegen/public_api.d.ts +0 -1
- package/shopify/graphql/apollo-links/auth-link.d.ts +0 -8
- package/shopify/graphql/apollo-links/error-link.d.ts +0 -7
- package/shopify/graphql/apollo-links/http-link.d.ts +0 -8
- package/shopify/graphql/apollo-links/public_api.d.ts +0 -3
- package/shopify/graphql/provide-shopify-apollo-driver.d.ts +0 -8
- package/shopify/graphql/public_api.d.ts +0 -1
- package/shopify/models/image-node.d.ts +0 -5
- package/shopify/models/money.d.ts +0 -3
- package/shopify/models/product-graph.d.ts +0 -5
- package/shopify/models/product-images.d.ts +0 -5
- package/shopify/models/product-node.d.ts +0 -4
- package/shopify/models/product-price-range.d.ts +0 -5
- package/shopify/models/public_api.d.ts +0 -6
- package/shopify/public_api.d.ts +0 -4
- package/shopify/testing/factories/money.factory.d.ts +0 -13
- package/shopify/testing/factories/product-graph.factory.d.ts +0 -15
- package/shopify/testing/factories/product-image-node.factory.d.ts +0 -14
- package/shopify/testing/factories/product-images.factory.d.ts +0 -15
- package/shopify/testing/factories/product-node.factory.d.ts +0 -24
- package/shopify/testing/factories/product-price-range.factory.d.ts +0 -16
- package/shopify/testing/factories/public_api.d.ts +0 -6
- package/shopify/transforms/public_api.d.ts +0 -3
- package/shopify/transforms/shopify-handle-transform.d.ts +0 -7
- package/shopify/transforms/shopify-id-transform.d.ts +0 -10
- package/shopify/transforms/shopify-url-transform.d.ts +0 -9
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './generated-shopify-types';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApolloLink } from '@apollo/client/core';
|
|
2
|
-
/**
|
|
3
|
-
* Creates an Apollo authentication link that adds the Shopify Storefront API (public) access token to requests.
|
|
4
|
-
*
|
|
5
|
-
* @param accessToken - The Shopify Storefront API access token.
|
|
6
|
-
* @returns An ApolloLink instance that sets authentication headers.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createAuthLink(accessToken: string): ApolloLink;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApolloLink } from '@apollo/client/core';
|
|
2
|
-
/**
|
|
3
|
-
* Creates an Apollo HTTP link for GraphQL requests.
|
|
4
|
-
*
|
|
5
|
-
* @param url - The Shopify Storefront API endpoint URL for GraphQL requests.
|
|
6
|
-
* @returns An ApolloLink instance configured with the provided URL.
|
|
7
|
-
*/
|
|
8
|
-
export declare function createHttpLink(url: string): ApolloLink;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides an Apollo client configuration for Shopify's Storefront API.
|
|
3
|
-
*
|
|
4
|
-
* @param domain - The Shopify store domain (e.g. "https://daffodil-demo-alpha.myshopify.com")
|
|
5
|
-
* @param accessToken - The Shopify Storefront API access token.
|
|
6
|
-
* @returns An Apollo client provider configured with a Shopify store domain and Storefront API access token.
|
|
7
|
-
*/
|
|
8
|
-
export declare function provideShopifyApolloDriver(domain: string, accessToken: string): import("@angular/core").Provider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { provideShopifyApolloDriver } from './provide-shopify-apollo-driver';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { ShopifyProductNode } from './product-node';
|
|
2
|
-
export { ShopifyProductGraph } from './product-graph';
|
|
3
|
-
export { ShopifyImageNode } from './image-node';
|
|
4
|
-
export { ShopifyProductImages } from './product-images';
|
|
5
|
-
export { ShopifyProductPriceRange } from './product-price-range';
|
|
6
|
-
export { ShopifyMoneyV2 as ShopifyMoney } from './money';
|
package/shopify/public_api.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { ShopifyMoney, CurrencyCode } from '@daffodil/driver/shopify';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
declare class MockShopifyMoney implements ShopifyMoney {
|
|
5
|
-
amount: number;
|
|
6
|
-
currencyCode: CurrencyCode;
|
|
7
|
-
}
|
|
8
|
-
export declare class ShopifyMoneyFactory extends DaffModelFactory<ShopifyMoney, typeof MockShopifyMoney> {
|
|
9
|
-
constructor();
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyMoneyFactory, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyMoneyFactory>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { ShopifyProductGraph } from '@daffodil/driver/shopify';
|
|
3
|
-
import { ShopifyProductNodeFactory } from './product-node.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
declare class MockShopifyProductGraph implements ShopifyProductGraph {
|
|
6
|
-
protected shopifyProductNodeFactory: ShopifyProductNodeFactory;
|
|
7
|
-
nodes: import("@daffodil/driver/shopify").ShopifyProductNode[];
|
|
8
|
-
constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory);
|
|
9
|
-
}
|
|
10
|
-
export declare class ShopifyProductGraphFactory extends DaffModelFactory<ShopifyProductGraph, typeof MockShopifyProductGraph> {
|
|
11
|
-
constructor(shopifyProductNodeFactory: ShopifyProductNodeFactory);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductGraphFactory, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductGraphFactory>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { ShopifyImageNode } from '@daffodil/driver/shopify';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
declare class MockShopifyProductImageNode implements ShopifyImageNode {
|
|
5
|
-
id: string;
|
|
6
|
-
url: string;
|
|
7
|
-
altText: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class ShopifyProductImageNodeFactory extends DaffModelFactory<ShopifyImageNode, typeof MockShopifyProductImageNode> {
|
|
10
|
-
constructor();
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductImageNodeFactory, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductImageNodeFactory>;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { ShopifyProductImages } from '@daffodil/driver/shopify';
|
|
3
|
-
import { ShopifyProductImageNodeFactory } from './product-image-node.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
declare class MockShopifyProductImages implements ShopifyProductImages {
|
|
6
|
-
protected shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory;
|
|
7
|
-
nodes: import("@daffodil/driver/shopify").ShopifyImageNode[];
|
|
8
|
-
constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory);
|
|
9
|
-
}
|
|
10
|
-
export declare class ShopifyProductImagesFactory extends DaffModelFactory<ShopifyProductImages, typeof MockShopifyProductImages> {
|
|
11
|
-
constructor(shopifyProductImageNodeFactory: ShopifyProductImageNodeFactory);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductImagesFactory, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductImagesFactory>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { ShopifyProductNode } from '@daffodil/driver/shopify';
|
|
3
|
-
import { ShopifyProductImagesFactory } from './product-images.factory';
|
|
4
|
-
import { ShopifyProductPriceRangeFactory } from './product-price-range.factory';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
declare class MockShopifyProductNode implements ShopifyProductNode {
|
|
7
|
-
protected shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory;
|
|
8
|
-
protected shopifyProductImagesFactory: ShopifyProductImagesFactory;
|
|
9
|
-
title: string;
|
|
10
|
-
handle: string;
|
|
11
|
-
id: string;
|
|
12
|
-
description: string;
|
|
13
|
-
onlineStoreUrl: string;
|
|
14
|
-
availableForSale: boolean;
|
|
15
|
-
priceRange: import("@daffodil/driver/shopify").ShopifyProductPriceRange;
|
|
16
|
-
images: import("@daffodil/driver/shopify").ShopifyProductImages;
|
|
17
|
-
constructor(shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory, shopifyProductImagesFactory: ShopifyProductImagesFactory);
|
|
18
|
-
}
|
|
19
|
-
export declare class ShopifyProductNodeFactory extends DaffModelFactory<ShopifyProductNode, typeof MockShopifyProductNode> {
|
|
20
|
-
constructor(shopifyProductPriceRangeFactory: ShopifyProductPriceRangeFactory, shopifyProductImagesFactory: ShopifyProductImagesFactory);
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductNodeFactory, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductNodeFactory>;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
2
|
-
import { ShopifyProductPriceRange } from '@daffodil/driver/shopify';
|
|
3
|
-
import { ShopifyMoneyFactory } from './money.factory';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
declare class MockShopifyProductPriceRange implements ShopifyProductPriceRange {
|
|
6
|
-
protected shopifyMoneyFactory: ShopifyMoneyFactory;
|
|
7
|
-
maxVariantPrice: import("@daffodil/driver/shopify").ShopifyMoney;
|
|
8
|
-
minVariantPrice: import("@daffodil/driver/shopify").ShopifyMoney;
|
|
9
|
-
constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
|
|
10
|
-
}
|
|
11
|
-
export declare class ShopifyProductPriceRangeFactory extends DaffModelFactory<ShopifyProductPriceRange, typeof MockShopifyProductPriceRange> {
|
|
12
|
-
constructor(shopifyMoneyFactory: ShopifyMoneyFactory);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyProductPriceRangeFactory, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyProductPriceRangeFactory>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { ShopifyProductGraphFactory } from './product-graph.factory';
|
|
2
|
-
export { ShopifyProductNodeFactory } from './product-node.factory';
|
|
3
|
-
export { ShopifyProductPriceRangeFactory } from './product-price-range.factory';
|
|
4
|
-
export { ShopifyProductImagesFactory } from './product-images.factory';
|
|
5
|
-
export { ShopifyProductImageNodeFactory } from './product-image-node.factory';
|
|
6
|
-
export { ShopifyMoneyFactory } from './money.factory';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transforms a DaffIdentifiable id and object type into a Shopify object id
|
|
3
|
-
*
|
|
4
|
-
* See {@link DaffIdentifiable} for more information on the requirements for the id argument.
|
|
5
|
-
*
|
|
6
|
-
* @param id - string
|
|
7
|
-
* @param type - string
|
|
8
|
-
* @returns string
|
|
9
|
-
*/
|
|
10
|
-
export declare const shopifyIdTransformer: (id: string, type: string) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transforms a DaffLocatable url into a Shopify handle string
|
|
3
|
-
*
|
|
4
|
-
* See {@link DaffLocatable} for more information on the requirements for the url argument.
|
|
5
|
-
*
|
|
6
|
-
* @param url - string
|
|
7
|
-
* @returns string
|
|
8
|
-
*/
|
|
9
|
-
export declare const shopifyUrlTransformer: (url: string) => string;
|