@daffodil/driver 0.88.1 → 0.89.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.
Files changed (125) hide show
  1. package/fesm2022/daffodil-driver-hubspot-testing.mjs +3 -3
  2. package/fesm2022/daffodil-driver-hubspot-testing.mjs.map +1 -1
  3. package/fesm2022/daffodil-driver-hubspot.mjs.map +1 -1
  4. package/fesm2022/daffodil-driver-in-memory.mjs +7 -7
  5. package/fesm2022/daffodil-driver-in-memory.mjs.map +1 -1
  6. package/fesm2022/daffodil-driver-magento-testing.mjs +9 -9
  7. package/fesm2022/daffodil-driver-magento-testing.mjs.map +1 -1
  8. package/fesm2022/daffodil-driver-magento.mjs +13 -13
  9. package/fesm2022/daffodil-driver-magento.mjs.map +1 -1
  10. package/fesm2022/daffodil-driver-shopify-testing.mjs +18 -18
  11. package/fesm2022/daffodil-driver-shopify-testing.mjs.map +1 -1
  12. package/fesm2022/daffodil-driver-shopify.mjs +37 -18
  13. package/fesm2022/daffodil-driver-shopify.mjs.map +1 -1
  14. package/fesm2022/daffodil-driver.mjs +3 -3
  15. package/fesm2022/daffodil-driver.mjs.map +1 -1
  16. package/hubspot/index.d.ts +68 -1
  17. package/hubspot/testing/index.d.ts +21 -1
  18. package/in-memory/index.d.ts +162 -1
  19. package/index.d.ts +64 -1
  20. package/magento/index.d.ts +176 -1
  21. package/magento/testing/index.d.ts +23 -1
  22. package/package.json +1 -1
  23. package/shopify/index.d.ts +8296 -1
  24. package/shopify/testing/index.d.ts +80 -1
  25. package/errors/bad-input.d.ts +0 -6
  26. package/errors/codes.d.ts +0 -3
  27. package/errors/network-error.class.d.ts +0 -9
  28. package/errors/public_api.d.ts +0 -3
  29. package/http-client-cache/noop.service.d.ts +0 -12
  30. package/http-client-cache/public_api.d.ts +0 -3
  31. package/http-client-cache/service.token.d.ts +0 -2
  32. package/http-client-cache/service.type.d.ts +0 -10
  33. package/hubspot/hubspot-forms.provider.d.ts +0 -9
  34. package/hubspot/hubspot-forms.service.d.ts +0 -23
  35. package/hubspot/models/config.d.ts +0 -5
  36. package/hubspot/models/forms.d.ts +0 -8
  37. package/hubspot/models/hubspot-request.d.ts +0 -15
  38. package/hubspot/models/hubspot-response.d.ts +0 -9
  39. package/hubspot/public_api.d.ts +0 -6
  40. package/hubspot/testing/factories/hubspot-response.factory.d.ts +0 -18
  41. package/hubspot/testing/factories/public_api.d.ts +0 -1
  42. package/hubspot/testing/public_api.d.ts +0 -1
  43. package/hubspot/transformers/json-builder.d.ts +0 -2
  44. package/in-memory/backend/backends.token.d.ts +0 -2
  45. package/in-memory/backend/data-service.type.d.ts +0 -23
  46. package/in-memory/backend/delegate.class.d.ts +0 -27
  47. package/in-memory/backend/public_api.d.ts +0 -6
  48. package/in-memory/backend/root.service.d.ts +0 -19
  49. package/in-memory/backend/routeable.type.d.ts +0 -25
  50. package/in-memory/backend/type.d.ts +0 -6
  51. package/in-memory/config/default.d.ts +0 -2
  52. package/in-memory/config/public_api.d.ts +0 -3
  53. package/in-memory/config/token.d.ts +0 -2
  54. package/in-memory/config/type.d.ts +0 -15
  55. package/in-memory/driver/base.class.d.ts +0 -14
  56. package/in-memory/driver/public_api.d.ts +0 -1
  57. package/in-memory/module.d.ts +0 -12
  58. package/in-memory/provider.d.ts +0 -19
  59. package/in-memory/public_api.d.ts +0 -5
  60. package/magento/apollo/create-http-link.d.ts +0 -8
  61. package/magento/apollo/possible-types.d.ts +0 -37
  62. package/magento/apollo/type-policies.d.ts +0 -10
  63. package/magento/errors/error.class.d.ts +0 -9
  64. package/magento/errors/public_api.d.ts +0 -3
  65. package/magento/errors/transform-graphql.d.ts +0 -3
  66. package/magento/errors/transform.d.ts +0 -5
  67. package/magento/fragments/money.d.ts +0 -1
  68. package/magento/fragments/page-info.d.ts +0 -1
  69. package/magento/fragments/public_api.d.ts +0 -2
  70. package/magento/graphql/cache-header/cache-header-apollo-link.d.ts +0 -17
  71. package/magento/graphql/cache.service.d.ts +0 -14
  72. package/magento/graphql/cacheable-operations/apollo-cacheable-operations-link-generator.d.ts +0 -15
  73. package/magento/graphql/cacheable-operations/cacheable-operations-token.d.ts +0 -9
  74. package/magento/graphql/public_api.d.ts +0 -5
  75. package/magento/graphql/type-policies.d.ts +0 -12
  76. package/magento/magento.module.d.ts +0 -9
  77. package/magento/models/discount.d.ts +0 -6
  78. package/magento/models/filter-input.type.d.ts +0 -6
  79. package/magento/models/money.d.ts +0 -5
  80. package/magento/models/page-info.d.ts +0 -6
  81. package/magento/models/public_api.d.ts +0 -5
  82. package/magento/models/sort.enum.d.ts +0 -4
  83. package/magento/provider.d.ts +0 -14
  84. package/magento/public_api.d.ts +0 -8
  85. package/magento/schema/schema.d.ts +0 -21
  86. package/magento/testing/factories/discount.factory.d.ts +0 -14
  87. package/magento/testing/factories/money.factory.d.ts +0 -13
  88. package/magento/testing/factories/page-info.factory.d.ts +0 -8
  89. package/magento/testing/factories/public_api.d.ts +0 -3
  90. package/magento/transforms/public_api.d.ts +0 -2
  91. package/magento/transforms/requests/public_api.d.ts +0 -1
  92. package/magento/transforms/requests/sort-direction.d.ts +0 -3
  93. package/magento/transforms/responses/page-info.d.ts +0 -3
  94. package/magento/transforms/responses/public_api.d.ts +0 -2
  95. package/magento/transforms/responses/sort-direction.d.ts +0 -3
  96. package/models/public_api.d.ts +0 -1
  97. package/models/response.interface.d.ts +0 -15
  98. package/public_api.d.ts +0 -3
  99. package/shopify/codegen/generated-shopify-types.d.ts +0 -8214
  100. package/shopify/codegen/public_api.d.ts +0 -1
  101. package/shopify/graphql/apollo-links/auth-link.d.ts +0 -8
  102. package/shopify/graphql/apollo-links/error-link.d.ts +0 -7
  103. package/shopify/graphql/apollo-links/http-link.d.ts +0 -8
  104. package/shopify/graphql/apollo-links/public_api.d.ts +0 -3
  105. package/shopify/graphql/provide-shopify-apollo-driver.d.ts +0 -8
  106. package/shopify/graphql/public_api.d.ts +0 -1
  107. package/shopify/models/image-node.d.ts +0 -5
  108. package/shopify/models/money.d.ts +0 -3
  109. package/shopify/models/product-graph.d.ts +0 -5
  110. package/shopify/models/product-images.d.ts +0 -5
  111. package/shopify/models/product-node.d.ts +0 -4
  112. package/shopify/models/product-price-range.d.ts +0 -5
  113. package/shopify/models/public_api.d.ts +0 -6
  114. package/shopify/public_api.d.ts +0 -4
  115. package/shopify/testing/factories/money.factory.d.ts +0 -13
  116. package/shopify/testing/factories/product-graph.factory.d.ts +0 -15
  117. package/shopify/testing/factories/product-image-node.factory.d.ts +0 -14
  118. package/shopify/testing/factories/product-images.factory.d.ts +0 -15
  119. package/shopify/testing/factories/product-node.factory.d.ts +0 -24
  120. package/shopify/testing/factories/product-price-range.factory.d.ts +0 -16
  121. package/shopify/testing/factories/public_api.d.ts +0 -6
  122. package/shopify/transforms/public_api.d.ts +0 -3
  123. package/shopify/transforms/shopify-handle-transform.d.ts +0 -7
  124. package/shopify/transforms/shopify-id-transform.d.ts +0 -10
  125. package/shopify/transforms/shopify-url-transform.d.ts +0 -9
@@ -1,5 +0,0 @@
1
- export { DaffMagentoApolloCacheableOperationsLinkGenerator } from './cacheable-operations/apollo-cacheable-operations-link-generator';
2
- export * from './cacheable-operations/cacheable-operations-token';
3
- export * from './type-policies';
4
- export * from './cache.service';
5
- export * from './cache-header/cache-header-apollo-link';
@@ -1,12 +0,0 @@
1
- import { TypePolicies } from '@apollo/client/core';
2
- /**
3
- * Custom type policies that allow us to have more granular control
4
- * over how ApolloClient reads from and writes to the cache.
5
- *
6
- * This is applicable to Magento 2.4.3 and up.
7
- * Heavily based on https://github.com/magento/pwa-studio/blob/99270701b2b607551f2e5881af272ed48ba7064c/packages/peregrine/lib/Apollo/policies/index.js.
8
- *
9
- * https://www.apollographql.com/docs/react/caching/cache-configuration/#typepolicy-fields
10
- * https://www.apollographql.com/docs/react/caching/cache-field-behavior/
11
- */
12
- export declare const DAFF_MAGENTO_2_4_3_TYPE_POLICIES: TypePolicies;
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @deprecated in favor of {@link provideMagentoDriver} Deprecated in version 0.88.0. Will be removed in version 0.91.0.
4
- */
5
- export declare class DaffDriverMagentoModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffDriverMagentoModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffDriverMagentoModule, never, never, never>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffDriverMagentoModule>;
9
- }
@@ -1,6 +0,0 @@
1
- import { MagentoMoney } from './money';
2
- export interface MagentoDiscount {
3
- __typename?: string;
4
- amount: MagentoMoney;
5
- label: string;
6
- }
@@ -1,6 +0,0 @@
1
- export interface MagentoFilterInput {
2
- typename?: 'FilterStringTypeInput';
3
- eq?: string;
4
- in?: string;
5
- match?: string;
6
- }
@@ -1,5 +0,0 @@
1
- export interface MagentoMoney {
2
- __typename?: string;
3
- value: number;
4
- currency: string;
5
- }
@@ -1,6 +0,0 @@
1
- export interface MagentoSearchResultPageInfo {
2
- __typename?: 'SearchResultPageInfo';
3
- current_page: number;
4
- page_size: number;
5
- total_pages: number;
6
- }
@@ -1,5 +0,0 @@
1
- export { MagentoMoney } from './money';
2
- export { MagentoDiscount } from './discount';
3
- export { MagentoSearchResultPageInfo } from './page-info';
4
- export { MagentoFilterInput } from './filter-input.type';
5
- export * from './sort.enum';
@@ -1,4 +0,0 @@
1
- export declare enum MagentoSortEnum {
2
- ASC = "ASC",
3
- DESC = "DESC"
4
- }
@@ -1,14 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- import { PossibleTypesMap, TypePolicies, UriFunction } from '@apollo/client/core';
3
- export interface DaffMagentoDriverConfig {
4
- possibleTypes: PossibleTypesMap;
5
- typePolicies: TypePolicies;
6
- }
7
- /**
8
- * Sets up the Magento Daffodil driver configuration for Magento's GraphQl API.
9
- *
10
- * Under the hood, this creates an Apollo Client configuration.
11
- *
12
- * @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
13
- */
14
- export declare function provideMagentoDriver(endpoint: string | InjectionToken<string | UriFunction>, options?: DaffMagentoDriverConfig): Provider[];
@@ -1,8 +0,0 @@
1
- export { schema } from './schema/schema';
2
- export { provideMagentoDriver } from './provider';
3
- export * from './errors/public_api';
4
- export * from './models/public_api';
5
- export * from './graphql/public_api';
6
- export * from './transforms/public_api';
7
- export * from './fragments/public_api';
8
- export * from './magento.module';
@@ -1,21 +0,0 @@
1
- export declare const schema: {
2
- possibleTypes: {
3
- CartAddressInterface: string[];
4
- CartItemInterface: string[];
5
- ProductInterface: string[];
6
- CategoryInterface: string[];
7
- MediaGalleryInterface: string[];
8
- ProductLinksInterface: string[];
9
- CreditMemoItemInterface: string[];
10
- OrderItemInterface: string[];
11
- InvoiceItemInterface: string[];
12
- ShipmentItemInterface: string[];
13
- AggregationOptionInterface: string[];
14
- LayerFilterItemInterface: string[];
15
- PhysicalProductInterface: string[];
16
- CustomizableOptionInterface: string[];
17
- CustomizableProductInterface: string[];
18
- SwatchDataInterface: string[];
19
- SwatchLayerFilterItemInterface: string[];
20
- };
21
- };
@@ -1,14 +0,0 @@
1
- import { DaffModelFactory } from '@daffodil/core/testing';
2
- import { MagentoDiscount, MagentoMoney } from '@daffodil/driver/magento';
3
- import * as i0 from "@angular/core";
4
- export declare class MockMagentoDiscount implements MagentoDiscount {
5
- __typename: string;
6
- amount: MagentoMoney;
7
- label: string;
8
- private money;
9
- }
10
- export declare class MagentoDiscountFactory extends DaffModelFactory<MagentoDiscount> {
11
- constructor();
12
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoDiscountFactory, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoDiscountFactory>;
14
- }
@@ -1,13 +0,0 @@
1
- import { DaffModelFactory } from '@daffodil/core/testing';
2
- import { MagentoMoney } from '@daffodil/driver/magento';
3
- import * as i0 from "@angular/core";
4
- export declare class MockMagentoMoney implements MagentoMoney {
5
- __typename: string;
6
- value: number;
7
- currency: string;
8
- }
9
- export declare class MagentoMoneyFactory extends DaffModelFactory<MagentoMoney> {
10
- constructor();
11
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoMoneyFactory, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoMoneyFactory>;
13
- }
@@ -1,8 +0,0 @@
1
- import { DaffModelFactory } from '@daffodil/core/testing';
2
- import { MagentoSearchResultPageInfo } from '@daffodil/driver/magento';
3
- import * as i0 from "@angular/core";
4
- export declare class MagentoSearchResultPageInfoFactory extends DaffModelFactory<MagentoSearchResultPageInfo> {
5
- constructor();
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MagentoSearchResultPageInfoFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<MagentoSearchResultPageInfoFactory>;
8
- }
@@ -1,3 +0,0 @@
1
- export { MagentoMoneyFactory } from './money.factory';
2
- export { MagentoDiscountFactory } from './discount.factory';
3
- export { MagentoSearchResultPageInfoFactory } from './page-info.factory';
@@ -1,2 +0,0 @@
1
- export * from './responses/public_api';
2
- export * from './requests/public_api';
@@ -1 +0,0 @@
1
- export * from './sort-direction';
@@ -1,3 +0,0 @@
1
- import { DaffSortDirectionEnum } from '@daffodil/core';
2
- import { MagentoSortEnum } from '../../models/public_api';
3
- export declare function magentoSortDirectionRequestTransform(direction: DaffSortDirectionEnum): MagentoSortEnum;
@@ -1,3 +0,0 @@
1
- import { DaffCollectionMetadata } from '@daffodil/core';
2
- import { MagentoSearchResultPageInfo } from '../../models/public_api';
3
- export declare function magentoPageInfoTransform(pageInfo: MagentoSearchResultPageInfo): Pick<DaffCollectionMetadata, 'pageSize' | 'currentPage' | 'totalPages'>;
@@ -1,2 +0,0 @@
1
- export { magentoPageInfoTransform } from './page-info';
2
- export * from './sort-direction';
@@ -1,3 +0,0 @@
1
- import { DaffSortDirectionEnum } from '@daffodil/core';
2
- import { MagentoSortEnum } from '../../models/public_api';
3
- export declare function magentoSortDirectionResponseTransform(direction: MagentoSortEnum): DaffSortDirectionEnum;
@@ -1 +0,0 @@
1
- export { DaffDriverResponse } from './response.interface';
@@ -1,15 +0,0 @@
1
- import { DaffError } from '@daffodil/core';
2
- /**
3
- * A driver response.
4
- * Can contain a response, errors, or both.
5
- */
6
- export interface DaffDriverResponse<T> {
7
- /**
8
- * The body of the response.
9
- */
10
- response?: T;
11
- /**
12
- * A list of errors that occured during the driver call.
13
- */
14
- errors: DaffError[];
15
- }
package/public_api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './errors/public_api';
2
- export * from './models/public_api';
3
- export * from './http-client-cache/public_api';