@daffodil/driver 0.87.2 → 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 (120) 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 +52 -15
  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 +482 -48
  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 -25
  47. package/in-memory/backend/public_api.d.ts +0 -6
  48. package/in-memory/backend/root.service.d.ts +0 -17
  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 -6
  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/public_api.d.ts +0 -4
  59. package/magento/errors/error.class.d.ts +0 -9
  60. package/magento/errors/public_api.d.ts +0 -3
  61. package/magento/errors/transform-graphql.d.ts +0 -3
  62. package/magento/errors/transform.d.ts +0 -5
  63. package/magento/fragments/money.d.ts +0 -1
  64. package/magento/fragments/page-info.d.ts +0 -1
  65. package/magento/fragments/public_api.d.ts +0 -2
  66. package/magento/graphql/cache-header/cache-header-apollo-link.d.ts +0 -17
  67. package/magento/graphql/cache.service.d.ts +0 -14
  68. package/magento/graphql/cacheable-operations/apollo-cacheable-operations-link-generator.d.ts +0 -15
  69. package/magento/graphql/cacheable-operations/cacheable-operations-token.d.ts +0 -9
  70. package/magento/graphql/public_api.d.ts +0 -5
  71. package/magento/graphql/type-policies.d.ts +0 -12
  72. package/magento/magento.module.d.ts +0 -6
  73. package/magento/models/discount.d.ts +0 -6
  74. package/magento/models/filter-input.type.d.ts +0 -6
  75. package/magento/models/money.d.ts +0 -5
  76. package/magento/models/page-info.d.ts +0 -6
  77. package/magento/models/public_api.d.ts +0 -5
  78. package/magento/models/sort.enum.d.ts +0 -4
  79. package/magento/public_api.d.ts +0 -7
  80. package/magento/schema/schema.d.ts +0 -21
  81. package/magento/testing/factories/discount.factory.d.ts +0 -14
  82. package/magento/testing/factories/money.factory.d.ts +0 -13
  83. package/magento/testing/factories/page-info.factory.d.ts +0 -8
  84. package/magento/testing/factories/public_api.d.ts +0 -3
  85. package/magento/transforms/public_api.d.ts +0 -2
  86. package/magento/transforms/requests/public_api.d.ts +0 -1
  87. package/magento/transforms/requests/sort-direction.d.ts +0 -3
  88. package/magento/transforms/responses/page-info.d.ts +0 -3
  89. package/magento/transforms/responses/public_api.d.ts +0 -2
  90. package/magento/transforms/responses/sort-direction.d.ts +0 -3
  91. package/models/public_api.d.ts +0 -1
  92. package/models/response.interface.d.ts +0 -15
  93. package/public_api.d.ts +0 -3
  94. package/shopify/codegen/generated-shopify-types.d.ts +0 -8214
  95. package/shopify/codegen/public_api.d.ts +0 -1
  96. package/shopify/graphql/apollo-links/auth-link.d.ts +0 -8
  97. package/shopify/graphql/apollo-links/error-link.d.ts +0 -7
  98. package/shopify/graphql/apollo-links/http-link.d.ts +0 -8
  99. package/shopify/graphql/apollo-links/public_api.d.ts +0 -3
  100. package/shopify/graphql/provide-shopify-apollo-driver.d.ts +0 -8
  101. package/shopify/graphql/public_api.d.ts +0 -1
  102. package/shopify/models/image-node.d.ts +0 -5
  103. package/shopify/models/money.d.ts +0 -3
  104. package/shopify/models/product-graph.d.ts +0 -5
  105. package/shopify/models/product-images.d.ts +0 -5
  106. package/shopify/models/product-node.d.ts +0 -4
  107. package/shopify/models/product-price-range.d.ts +0 -5
  108. package/shopify/models/public_api.d.ts +0 -6
  109. package/shopify/public_api.d.ts +0 -4
  110. package/shopify/testing/factories/money.factory.d.ts +0 -13
  111. package/shopify/testing/factories/product-graph.factory.d.ts +0 -15
  112. package/shopify/testing/factories/product-image-node.factory.d.ts +0 -14
  113. package/shopify/testing/factories/product-images.factory.d.ts +0 -15
  114. package/shopify/testing/factories/product-node.factory.d.ts +0 -24
  115. package/shopify/testing/factories/product-price-range.factory.d.ts +0 -16
  116. package/shopify/testing/factories/public_api.d.ts +0 -6
  117. package/shopify/transforms/public_api.d.ts +0 -3
  118. package/shopify/transforms/shopify-handle-transform.d.ts +0 -7
  119. package/shopify/transforms/shopify-id-transform.d.ts +0 -10
  120. package/shopify/transforms/shopify-url-transform.d.ts +0 -9
@@ -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';