@daffodil/customer-order 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.
- package/driver/index.d.ts +31 -1
- package/driver/magento/2-4-5/index.d.ts +158 -1
- package/driver/magento/2-4-5/testing/index.d.ts +57 -1
- package/driver/magento/2-4-6/index.d.ts +209 -1
- package/driver/magento/2-4-6/testing/index.d.ts +57 -1
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-5-testing.mjs +7 -6
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-5-testing.mjs.map +1 -1
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-5.mjs +10 -10
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-5.mjs.map +1 -1
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-6-testing.mjs +7 -6
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-6-testing.mjs.map +1 -1
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-6.mjs +10 -10
- package/fesm2022/daffodil-customer-order-driver-magento-2-4-6.mjs.map +1 -1
- package/fesm2022/daffodil-customer-order-driver.mjs.map +1 -1
- package/fesm2022/daffodil-customer-order-state.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
- package/state/index.d.ts +7 -1
- package/driver/errors/address-not-found.d.ts +0 -10
- package/driver/errors/invalid-api-response.d.ts +0 -10
- package/driver/errors/map.d.ts +0 -9
- package/driver/errors/public_api.d.ts +0 -3
- package/driver/magento/2-4-5/driver.module.d.ts +0 -9
- package/driver/magento/2-4-5/errors/public_api.d.ts +0 -1
- package/driver/magento/2-4-5/errors/transform.d.ts +0 -2
- package/driver/magento/2-4-5/injection-tokens/fragments/order.token.d.ts +0 -2
- package/driver/magento/2-4-5/injection-tokens/public_api.d.ts +0 -3
- package/driver/magento/2-4-5/injection-tokens/transforms/extra.token.d.ts +0 -2
- package/driver/magento/2-4-5/injection-tokens/transforms/token.d.ts +0 -2
- package/driver/magento/2-4-5/interfaces/order-extra-transform.type.d.ts +0 -3
- package/driver/magento/2-4-5/interfaces/order-transform.type.d.ts +0 -3
- package/driver/magento/2-4-5/interfaces/public_api.d.ts +0 -2
- package/driver/magento/2-4-5/models/public_api.d.ts +0 -2
- package/driver/magento/2-4-5/models/requests/customer-orders-filter-input.type.d.ts +0 -5
- package/driver/magento/2-4-5/models/requests/public_api.d.ts +0 -1
- package/driver/magento/2-4-5/models/responses/customer-orders.type.d.ts +0 -7
- package/driver/magento/2-4-5/models/responses/get-customer-order.type.d.ts +0 -9
- package/driver/magento/2-4-5/models/responses/get-customer-orders.type.d.ts +0 -7
- package/driver/magento/2-4-5/models/responses/order.type.d.ts +0 -18
- package/driver/magento/2-4-5/models/responses/public_api.d.ts +0 -4
- package/driver/magento/2-4-5/order.service.d.ts +0 -29
- package/driver/magento/2-4-5/public_api.d.ts +0 -9
- package/driver/magento/2-4-5/queries/fragments/customer-order.d.ts +0 -1
- package/driver/magento/2-4-5/queries/fragments/public_api.d.ts +0 -1
- package/driver/magento/2-4-5/queries/get-customer-order.d.ts +0 -3
- package/driver/magento/2-4-5/queries/get-customer-orders.d.ts +0 -3
- package/driver/magento/2-4-5/queries/public_api.d.ts +0 -3
- package/driver/magento/2-4-5/testing/factories/order.factory.d.ts +0 -35
- package/driver/magento/2-4-5/testing/factories/orders.factory.d.ts +0 -21
- package/driver/magento/2-4-5/testing/factories/public_api.d.ts +0 -2
- package/driver/magento/2-4-5/testing/public_api.d.ts +0 -1
- package/driver/magento/2-4-5/transforms/public_api.d.ts +0 -1
- package/driver/magento/2-4-5/transforms/responses/order-collection.d.ts +0 -11
- package/driver/magento/2-4-5/transforms/responses/order.d.ts +0 -39
- package/driver/magento/2-4-5/transforms/responses/public_api.d.ts +0 -2
- package/driver/magento/2-4-5/validators/get-order.d.ts +0 -3
- package/driver/magento/2-4-5/validators/get-orders.d.ts +0 -3
- package/driver/magento/2-4-5/validators/public_api.d.ts +0 -1
- package/driver/magento/2-4-6/constants/sort/fields.d.ts +0 -2
- package/driver/magento/2-4-6/driver.module.d.ts +0 -9
- package/driver/magento/2-4-6/errors/public_api.d.ts +0 -1
- package/driver/magento/2-4-6/errors/transform.d.ts +0 -2
- package/driver/magento/2-4-6/injection-tokens/fragments/order.token.d.ts +0 -19
- package/driver/magento/2-4-6/injection-tokens/public_api.d.ts +0 -3
- package/driver/magento/2-4-6/injection-tokens/transforms/extra.token.d.ts +0 -21
- package/driver/magento/2-4-6/injection-tokens/transforms/token.d.ts +0 -6
- package/driver/magento/2-4-6/interfaces/order-extra-transform.type.d.ts +0 -3
- package/driver/magento/2-4-6/interfaces/order-transform.type.d.ts +0 -3
- package/driver/magento/2-4-6/interfaces/public_api.d.ts +0 -2
- package/driver/magento/2-4-6/models/public_api.d.ts +0 -2
- package/driver/magento/2-4-6/models/requests/customer-orders-filter-input.type.d.ts +0 -5
- package/driver/magento/2-4-6/models/requests/public_api.d.ts +0 -3
- package/driver/magento/2-4-6/models/requests/sort.type.d.ts +0 -6
- package/driver/magento/2-4-6/models/requests/sortable-field.enum.d.ts +0 -4
- package/driver/magento/2-4-6/models/responses/customer-orders.type.d.ts +0 -7
- package/driver/magento/2-4-6/models/responses/order.type.d.ts +0 -18
- package/driver/magento/2-4-6/models/responses/public_api.d.ts +0 -2
- package/driver/magento/2-4-6/order.service.d.ts +0 -29
- package/driver/magento/2-4-6/public_api.d.ts +0 -9
- package/driver/magento/2-4-6/queries/fragments/customer-order.d.ts +0 -1
- package/driver/magento/2-4-6/queries/fragments/public_api.d.ts +0 -1
- package/driver/magento/2-4-6/queries/get-customer-order/public_api.d.ts +0 -3
- package/driver/magento/2-4-6/queries/get-customer-order/query.d.ts +0 -5
- package/driver/magento/2-4-6/queries/get-customer-order/response.type.d.ts +0 -9
- package/driver/magento/2-4-6/queries/get-customer-order/variables.type.d.ts +0 -3
- package/driver/magento/2-4-6/queries/get-customer-orders/public_api.d.ts +0 -3
- package/driver/magento/2-4-6/queries/get-customer-orders/query.d.ts +0 -5
- package/driver/magento/2-4-6/queries/get-customer-orders/response.type.d.ts +0 -7
- package/driver/magento/2-4-6/queries/get-customer-orders/variables.type.d.ts +0 -6
- package/driver/magento/2-4-6/queries/public_api.d.ts +0 -3
- package/driver/magento/2-4-6/testing/factories/order.factory.d.ts +0 -35
- package/driver/magento/2-4-6/testing/factories/orders.factory.d.ts +0 -21
- package/driver/magento/2-4-6/testing/factories/public_api.d.ts +0 -2
- package/driver/magento/2-4-6/testing/public_api.d.ts +0 -1
- package/driver/magento/2-4-6/transforms/public_api.d.ts +0 -1
- package/driver/magento/2-4-6/transforms/responses/order-collection.d.ts +0 -12
- package/driver/magento/2-4-6/transforms/responses/order.d.ts +0 -39
- package/driver/magento/2-4-6/transforms/responses/public_api.d.ts +0 -2
- package/driver/magento/2-4-6/validators/get-order.d.ts +0 -3
- package/driver/magento/2-4-6/validators/get-orders.d.ts +0 -3
- package/driver/magento/2-4-6/validators/public_api.d.ts +0 -1
- package/driver/public_api.d.ts +0 -1
- package/public_api.d.ts +0 -1
- package/state/injection-tokens/error-matcher.token.d.ts +0 -2
- package/state/injection-tokens/public_api.d.ts +0 -1
- package/state/public_api.d.ts +0 -1
package/driver/index.d.ts
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import { DaffInheritableError, DaffError } from '@daffodil/core';
|
|
2
|
+
|
|
3
|
+
declare const DAFF_CUSTOMER_INVALID_API_RESPONSE_ERROR_CODE = "DAFF_CUSTOMER_INVALID_API_RESPONSE";
|
|
4
|
+
/**
|
|
5
|
+
* A general error indicating that the platform returned a response which cannot be processed.
|
|
6
|
+
*/
|
|
7
|
+
declare class DaffCustomerInvalidAPIResponseError extends DaffInheritableError implements DaffError {
|
|
8
|
+
message: string;
|
|
9
|
+
readonly code: string;
|
|
10
|
+
constructor(message: string);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const DAFF_CUSTOMER_ADDRESS_NOT_FOUND_ERROR_CODE = "DAFF_CUSTOMER_ADDRESS_NOT_FOUND";
|
|
14
|
+
/**
|
|
15
|
+
* An error indicating that the requested address cannot be found.
|
|
16
|
+
*/
|
|
17
|
+
declare class DaffCustomerAddressNotFoundError extends DaffInheritableError implements DaffError {
|
|
18
|
+
message: string;
|
|
19
|
+
readonly code: string;
|
|
20
|
+
constructor(message: string);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A mapping from error codes to error class constructors.
|
|
25
|
+
*/
|
|
26
|
+
declare const DaffCustomerOrderDriverErrorMap: {
|
|
27
|
+
DAFF_CUSTOMER_INVALID_API_RESPONSE: typeof DaffCustomerInvalidAPIResponseError;
|
|
28
|
+
DAFF_CUSTOMER_ADDRESS_NOT_FOUND: typeof DaffCustomerAddressNotFoundError;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { DAFF_CUSTOMER_ADDRESS_NOT_FOUND_ERROR_CODE, DAFF_CUSTOMER_INVALID_API_RESPONSE_ERROR_CODE, DaffCustomerAddressNotFoundError, DaffCustomerInvalidAPIResponseError, DaffCustomerOrderDriverErrorMap };
|
|
@@ -1 +1,158 @@
|
|
|
1
|
-
|
|
1
|
+
import { MagentoFilterInput, MagentoSearchResultPageInfo, MagentoDiscount } from '@daffodil/driver/magento';
|
|
2
|
+
import { DaffOrderTotal, DaffOrderCoupon, DaffConfigurableOrderItemAttribute, DaffCompositeOrderItemOption, DaffOrderItemType, DaffOrderItem, DaffOrderAddress, DaffOrderShipmentItem, DaffOrderShipmentTracking, DaffOrderShipment, DaffOrderPayment, DaffOrderInvoice, DaffOrder, DaffOrderCollection } from '@daffodil/order';
|
|
3
|
+
import { MagentoOrderItem, MagentoOrderAddress, MagentoOrderShipment, MagentoOrderPayment, MagentoOrderCredit, MagentoOrderInvoice, MagentoOrderTotal, MagentoOrderItemOption, MagentoOrderBundleItemSelectedOption, MagentoOrderShipmentItem, MagentoOrderShipmentTracking, MagentoOrderInvoiceItem, MagentoOrderCreditItem, DaffOrderMagentoService } from '@daffodil/order/driver/magento/2-4-1';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
6
|
+
import * as apollo_angular from 'apollo-angular';
|
|
7
|
+
import { Apollo } from 'apollo-angular';
|
|
8
|
+
import { DocumentNode } from 'graphql';
|
|
9
|
+
import * as _daffodil_core from '@daffodil/core';
|
|
10
|
+
import { DaffCollectionRequest } from '@daffodil/core';
|
|
11
|
+
import { DaffCustomerInvalidAPIResponseError } from '@daffodil/customer-order/driver';
|
|
12
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
13
|
+
import { Observable } from 'rxjs';
|
|
14
|
+
import { DaffAuthStorageService } from '@daffodil/auth';
|
|
15
|
+
import { DaffOrderServiceInterface } from '@daffodil/order/driver';
|
|
16
|
+
import * as i1 from '@angular/common';
|
|
17
|
+
|
|
18
|
+
interface MagentoCustomerOrdersFilterInput {
|
|
19
|
+
typename?: 'CustomerOrdersFilterInput ';
|
|
20
|
+
number: MagentoFilterInput;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface MagentoCustomerOrder {
|
|
24
|
+
__typename?: 'CustomerOrder';
|
|
25
|
+
id: string;
|
|
26
|
+
order_date: string;
|
|
27
|
+
status: string;
|
|
28
|
+
carrier?: string;
|
|
29
|
+
number: string;
|
|
30
|
+
shipping_method?: string;
|
|
31
|
+
items?: MagentoOrderItem[];
|
|
32
|
+
billing_address: MagentoOrderAddress;
|
|
33
|
+
shipping_address?: MagentoOrderAddress;
|
|
34
|
+
shipments?: MagentoOrderShipment[];
|
|
35
|
+
payment_methods?: MagentoOrderPayment[];
|
|
36
|
+
credit_memos?: MagentoOrderCredit[];
|
|
37
|
+
invoices: MagentoOrderInvoice[];
|
|
38
|
+
total?: MagentoOrderTotal;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface MagentoCustomerOrders {
|
|
42
|
+
page_info: MagentoSearchResultPageInfo;
|
|
43
|
+
total_count: number;
|
|
44
|
+
items: MagentoCustomerOrder[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface MagentoGetCustomerOrdersResponse {
|
|
48
|
+
customer: {
|
|
49
|
+
email: string;
|
|
50
|
+
orders: MagentoCustomerOrders;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface MagentoGetCustomerOrderResponse {
|
|
55
|
+
customer: {
|
|
56
|
+
email: string;
|
|
57
|
+
orders: {
|
|
58
|
+
items: [MagentoCustomerOrder];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare function daffMagentoCustomerOrderTransformTotals(totals: MagentoOrderTotal): DaffOrderTotal[];
|
|
64
|
+
declare function daffMagentoCustomerOrderTransformCouponDiscount(discount: MagentoDiscount): DaffOrderCoupon;
|
|
65
|
+
declare function daffMagentoCustomerOrderTransformConfigurableOption(option: MagentoOrderItemOption): DaffConfigurableOrderItemAttribute;
|
|
66
|
+
declare function daffMagentoCustomerOrderTransformBundleOption(option: MagentoOrderBundleItemSelectedOption): DaffCompositeOrderItemOption;
|
|
67
|
+
declare function daffMagentoCustomerOrderTransformAdditionalItemFields(item: MagentoOrderItem): {
|
|
68
|
+
type: DaffOrderItemType;
|
|
69
|
+
options: DaffCompositeOrderItemOption[];
|
|
70
|
+
attributes?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
type: DaffOrderItemType;
|
|
73
|
+
attributes: DaffConfigurableOrderItemAttribute[];
|
|
74
|
+
options?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
type: DaffOrderItemType;
|
|
77
|
+
options?: undefined;
|
|
78
|
+
attributes?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
type?: undefined;
|
|
81
|
+
options?: undefined;
|
|
82
|
+
attributes?: undefined;
|
|
83
|
+
};
|
|
84
|
+
declare function daffMagentoCustomerOrderTransformItem(item: MagentoOrderItem, order: MagentoCustomerOrder, qty: number): DaffOrderItem;
|
|
85
|
+
declare function daffMagentoCustomerOrderTransformAddress(address: MagentoOrderAddress, order: MagentoCustomerOrder): DaffOrderAddress;
|
|
86
|
+
declare function daffMagentoCustomerOrderTransformShipmentItem(shipmentItem: MagentoOrderShipmentItem, order: MagentoCustomerOrder): DaffOrderShipmentItem;
|
|
87
|
+
declare function daffMagentoCustomerOrderTransformShipmentTracking(tracking: MagentoOrderShipmentTracking): DaffOrderShipmentTracking;
|
|
88
|
+
declare function daffMagentoCustomerOrderTransformShipment(shipment: MagentoOrderShipment, order: MagentoCustomerOrder): DaffOrderShipment;
|
|
89
|
+
declare function daffMagentoCustomerOrderTransformPayment(payment: MagentoOrderPayment, order: MagentoCustomerOrder): DaffOrderPayment;
|
|
90
|
+
declare function daffMagentoCustomerOrderTransformInvoiceItem(invoiceItem: MagentoOrderInvoiceItem, order: MagentoCustomerOrder): DaffOrderShipmentItem;
|
|
91
|
+
declare function daffMagentoCustomerOrderTransformInvoice(invoice: MagentoOrderInvoice, order: MagentoCustomerOrder, payment: MagentoOrderPayment): DaffOrderInvoice;
|
|
92
|
+
declare function daffMagentoCustomerOrderTransformCreditItem(creditItem: MagentoOrderCreditItem, order: MagentoCustomerOrder): DaffOrderShipmentItem;
|
|
93
|
+
declare function daffMagentoCustomerOrderTransformCredit(credit: MagentoOrderCredit, order: MagentoCustomerOrder): DaffOrderInvoice;
|
|
94
|
+
/**
|
|
95
|
+
* Transforms the MagentoCustomerOrder from the magento order query into a DaffOrder.
|
|
96
|
+
*/
|
|
97
|
+
declare function daffMagentoCustomerOrderTransformOrder(order: MagentoCustomerOrder, email: string): DaffOrder;
|
|
98
|
+
|
|
99
|
+
type DaffMagentoCustomerOrderExtraTransform<T extends MagentoCustomerOrder = MagentoCustomerOrder, V extends DaffOrder = DaffOrder> = (daffOrder: DaffOrder, magentoOrder: T, email: string) => V;
|
|
100
|
+
|
|
101
|
+
type DaffMagentoCustomerOrderTransform<T extends MagentoCustomerOrder = MagentoCustomerOrder, V extends DaffOrder = DaffOrder> = (magentoOrder: T, email: string) => V;
|
|
102
|
+
|
|
103
|
+
declare class MagentoCustomerOrderCollectionTransformer {
|
|
104
|
+
private orderTransform;
|
|
105
|
+
constructor(orderTransform: DaffMagentoCustomerOrderTransform);
|
|
106
|
+
transform(response: MagentoGetCustomerOrdersResponse): DaffOrderCollection;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerOrderCollectionTransformer, never>;
|
|
108
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerOrderCollectionTransformer>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare const magentoCustomerOrderFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
112
|
+
|
|
113
|
+
declare const MAGENTO_GET_CUSTOMER_ORDERS_QUERY_NAME = "MagentoGetCustomerOrders";
|
|
114
|
+
declare const getCustomerOrders: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
115
|
+
|
|
116
|
+
declare const MAGENTO_GET_CUSTOMER_ORDER_QUERY_NAME = "MagentoGetCustomerOrder";
|
|
117
|
+
declare const getCustomerOrder: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
118
|
+
|
|
119
|
+
declare function transformMagentoReviewsError(error: any): _daffodil_core.DaffError | DaffCustomerInvalidAPIResponseError;
|
|
120
|
+
|
|
121
|
+
declare const validateGetCustomerOrdersResponse: (response: ApolloQueryResult<MagentoGetCustomerOrdersResponse>) => ApolloQueryResult<MagentoGetCustomerOrdersResponse>;
|
|
122
|
+
|
|
123
|
+
declare const DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_FRAGMENTS: i0.InjectionToken<DocumentNode[]>;
|
|
124
|
+
declare const provideDaffCustomerOrderMagentoExtraOrderFragments: <R extends DocumentNode = DocumentNode>(...values: R[]) => Array<i0.ValueProvider>;
|
|
125
|
+
|
|
126
|
+
declare const DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_TRANSFORMS: i0.InjectionToken<DaffMagentoCustomerOrderExtraTransform[]>;
|
|
127
|
+
declare const provideDaffCustomerOrderMagentoExtraOrderTransforms: <R extends DaffMagentoCustomerOrderExtraTransform = DaffMagentoCustomerOrderExtraTransform>(...values: R[]) => Array<i0.ValueProvider>;
|
|
128
|
+
|
|
129
|
+
declare const DAFF_CUSTOMER_ORDER_MAGENTO_ORDER_TRANSFORM: i0.InjectionToken<DaffMagentoCustomerOrderTransform>;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* A service for making Magento GraphQL queries for customers.
|
|
133
|
+
*
|
|
134
|
+
* @inheritdoc
|
|
135
|
+
*/
|
|
136
|
+
declare class DaffCustomerOrderMagentoService implements DaffOrderServiceInterface {
|
|
137
|
+
private apollo;
|
|
138
|
+
private authStorage;
|
|
139
|
+
private guestDriver;
|
|
140
|
+
private extraFragments;
|
|
141
|
+
private transformer;
|
|
142
|
+
private orderTransform;
|
|
143
|
+
constructor(apollo: Apollo, authStorage: DaffAuthStorageService, guestDriver: DaffOrderMagentoService, extraFragments: DocumentNode[], transformer: MagentoCustomerOrderCollectionTransformer, orderTransform: DaffMagentoCustomerOrderTransform);
|
|
144
|
+
list(cartId?: string, request?: DaffCollectionRequest): Observable<DaffOrderCollection>;
|
|
145
|
+
get(orderId: string, cartId?: string): Observable<DaffOrder>;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerOrderMagentoService, never>;
|
|
147
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerOrderMagentoService>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare class DaffCustomerOrderMagentoDriverModule {
|
|
151
|
+
static forRoot(): ModuleWithProviders<DaffCustomerOrderMagentoDriverModule>;
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerOrderMagentoDriverModule, never>;
|
|
153
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCustomerOrderMagentoDriverModule, never, [typeof i1.CommonModule], never>;
|
|
154
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCustomerOrderMagentoDriverModule>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export { DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_FRAGMENTS, DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_TRANSFORMS, DAFF_CUSTOMER_ORDER_MAGENTO_ORDER_TRANSFORM, DaffCustomerOrderMagentoDriverModule, DaffCustomerOrderMagentoService, MAGENTO_GET_CUSTOMER_ORDERS_QUERY_NAME, MAGENTO_GET_CUSTOMER_ORDER_QUERY_NAME, MagentoCustomerOrderCollectionTransformer, daffMagentoCustomerOrderTransformAdditionalItemFields, daffMagentoCustomerOrderTransformAddress, daffMagentoCustomerOrderTransformBundleOption, daffMagentoCustomerOrderTransformConfigurableOption, daffMagentoCustomerOrderTransformCouponDiscount, daffMagentoCustomerOrderTransformCredit, daffMagentoCustomerOrderTransformCreditItem, daffMagentoCustomerOrderTransformInvoice, daffMagentoCustomerOrderTransformInvoiceItem, daffMagentoCustomerOrderTransformItem, daffMagentoCustomerOrderTransformOrder, daffMagentoCustomerOrderTransformPayment, daffMagentoCustomerOrderTransformShipment, daffMagentoCustomerOrderTransformShipmentItem, daffMagentoCustomerOrderTransformShipmentTracking, daffMagentoCustomerOrderTransformTotals, getCustomerOrder, getCustomerOrders, magentoCustomerOrderFragment, provideDaffCustomerOrderMagentoExtraOrderFragments, provideDaffCustomerOrderMagentoExtraOrderTransforms, transformMagentoReviewsError, validateGetCustomerOrdersResponse };
|
|
158
|
+
export type { DaffMagentoCustomerOrderExtraTransform, DaffMagentoCustomerOrderTransform, MagentoCustomerOrder, MagentoCustomerOrders, MagentoCustomerOrdersFilterInput, MagentoGetCustomerOrderResponse, MagentoGetCustomerOrdersResponse };
|
|
@@ -1 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _daffodil_order_driver_magento_2_4_1 from '@daffodil/order/driver/magento/2-4-1';
|
|
2
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
+
import { MagentoCustomerOrder, MagentoCustomerOrders } from '@daffodil/customer-order/driver/magento/2-4-5';
|
|
4
|
+
import { MagentoOrderTotalFactory, MagentoOrderItemFactory, MagentoOrderAddressFactory, MagentoOrderShipmentFactory, MagentoOrderPaymentFactory, MagentoOrderInvoiceFactory, MagentoOrderCreditFactory } from '@daffodil/order/driver/magento/2-4-1/testing';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { MagentoSearchResultPageInfo } from '@daffodil/driver/magento';
|
|
7
|
+
import { MagentoSearchResultPageInfoFactory } from '@daffodil/driver/magento/testing';
|
|
8
|
+
|
|
9
|
+
declare class MockMagentoCustomerOrder implements MagentoCustomerOrder {
|
|
10
|
+
protected totalFactory: MagentoOrderTotalFactory;
|
|
11
|
+
protected itemFactory: MagentoOrderItemFactory;
|
|
12
|
+
protected addressFactory: MagentoOrderAddressFactory;
|
|
13
|
+
protected shipmentFactory: MagentoOrderShipmentFactory;
|
|
14
|
+
protected paymentFactory: MagentoOrderPaymentFactory;
|
|
15
|
+
protected invoiceFactory: MagentoOrderInvoiceFactory;
|
|
16
|
+
protected creditFactory: MagentoOrderCreditFactory;
|
|
17
|
+
protected _numberOfSuborders: number;
|
|
18
|
+
__typename: "CustomerOrder";
|
|
19
|
+
id: string;
|
|
20
|
+
order_date: string;
|
|
21
|
+
status: string;
|
|
22
|
+
carrier: string;
|
|
23
|
+
number: string;
|
|
24
|
+
shipping_method: string;
|
|
25
|
+
total: _daffodil_order_driver_magento_2_4_1.MagentoOrderTotal;
|
|
26
|
+
items: _daffodil_order_driver_magento_2_4_1.MagentoOrderItem[];
|
|
27
|
+
billing_address: _daffodil_order_driver_magento_2_4_1.MagentoOrderAddress;
|
|
28
|
+
shipping_address: _daffodil_order_driver_magento_2_4_1.MagentoOrderAddress;
|
|
29
|
+
shipments: _daffodil_order_driver_magento_2_4_1.MagentoOrderShipment[];
|
|
30
|
+
payment_methods: _daffodil_order_driver_magento_2_4_1.MagentoOrderPayment[];
|
|
31
|
+
invoices: _daffodil_order_driver_magento_2_4_1.MagentoOrderInvoice[];
|
|
32
|
+
credit_memos: _daffodil_order_driver_magento_2_4_1.MagentoOrderCredit[];
|
|
33
|
+
constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
|
|
34
|
+
}
|
|
35
|
+
declare class MagentoCustomerOrderFactory extends DaffModelFactory<MagentoCustomerOrder> {
|
|
36
|
+
constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerOrderFactory, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerOrderFactory>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class MockMagentoCustomerOrders implements MagentoCustomerOrders {
|
|
42
|
+
protected orderFactory: MagentoCustomerOrderFactory;
|
|
43
|
+
protected pageInfoFactory: MagentoSearchResultPageInfoFactory;
|
|
44
|
+
items: MagentoCustomerOrder[];
|
|
45
|
+
page_info: MagentoSearchResultPageInfo;
|
|
46
|
+
total_count: number;
|
|
47
|
+
constructor(orderFactory: MagentoCustomerOrderFactory, pageInfoFactory: MagentoSearchResultPageInfoFactory);
|
|
48
|
+
private createReviews;
|
|
49
|
+
private createPageInfo;
|
|
50
|
+
}
|
|
51
|
+
declare class MagentoCustomerOrdersFactory extends DaffModelFactory<MagentoCustomerOrders> {
|
|
52
|
+
constructor(orderFactory: MagentoCustomerOrderFactory, pageInfoFactory: MagentoSearchResultPageInfoFactory);
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerOrdersFactory, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerOrdersFactory>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { MagentoCustomerOrderFactory, MagentoCustomerOrdersFactory, MockMagentoCustomerOrder, MockMagentoCustomerOrders };
|
|
@@ -1 +1,209 @@
|
|
|
1
|
-
|
|
1
|
+
import { MagentoFilterInput, MagentoSortEnum, MagentoSearchResultPageInfo, MagentoDiscount } from '@daffodil/driver/magento';
|
|
2
|
+
import { DaffOrderTotal, DaffOrderCoupon, DaffConfigurableOrderItemAttribute, DaffCompositeOrderItemOption, DaffOrderItemType, DaffOrderItem, DaffOrderAddress, DaffOrderShipmentItem, DaffOrderShipmentTracking, DaffOrderShipment, DaffOrderPayment, DaffOrderInvoice, DaffOrder, DaffOrderCollection } from '@daffodil/order';
|
|
3
|
+
import { MagentoOrderItem, MagentoOrderAddress, MagentoOrderShipment, MagentoOrderPayment, MagentoOrderCredit, MagentoOrderInvoice, MagentoOrderTotal, MagentoOrderItemOption, MagentoOrderBundleItemSelectedOption, MagentoOrderShipmentItem, MagentoOrderShipmentTracking, MagentoOrderInvoiceItem, MagentoOrderCreditItem, DaffOrderMagentoService } from '@daffodil/order/driver/magento/2-4-1';
|
|
4
|
+
import * as _daffodil_core from '@daffodil/core';
|
|
5
|
+
import { DaffCollectionRequest } from '@daffodil/core';
|
|
6
|
+
import * as i0 from '@angular/core';
|
|
7
|
+
import { Provider, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
8
|
+
import * as apollo_angular from 'apollo-angular';
|
|
9
|
+
import { Apollo } from 'apollo-angular';
|
|
10
|
+
import { DocumentNode } from 'graphql';
|
|
11
|
+
import { DaffCustomerInvalidAPIResponseError } from '@daffodil/customer-order/driver';
|
|
12
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
13
|
+
import { Observable } from 'rxjs';
|
|
14
|
+
import { DaffAuthStorageService } from '@daffodil/auth';
|
|
15
|
+
import { DaffOrderServiceInterface } from '@daffodil/order/driver';
|
|
16
|
+
import * as i1 from '@angular/common';
|
|
17
|
+
|
|
18
|
+
interface MagentoCustomerOrdersFilterInput {
|
|
19
|
+
typename?: 'CustomerOrdersFilterInput ';
|
|
20
|
+
number: MagentoFilterInput;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare enum MagentoCustomerOrderSortableField {
|
|
24
|
+
NUMBER = "NUMBER",
|
|
25
|
+
CREATED_AT = "CREATED_AT"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface MagentoCustomerOrderSortInput {
|
|
29
|
+
sort_direction: MagentoSortEnum;
|
|
30
|
+
sort_field: MagentoCustomerOrderSortableField;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface MagentoCustomerOrder {
|
|
34
|
+
__typename?: 'CustomerOrder';
|
|
35
|
+
id: string;
|
|
36
|
+
order_date: string;
|
|
37
|
+
status: string;
|
|
38
|
+
carrier?: string;
|
|
39
|
+
number: string;
|
|
40
|
+
shipping_method?: string;
|
|
41
|
+
items?: MagentoOrderItem[];
|
|
42
|
+
billing_address: MagentoOrderAddress;
|
|
43
|
+
shipping_address?: MagentoOrderAddress;
|
|
44
|
+
shipments?: MagentoOrderShipment[];
|
|
45
|
+
payment_methods?: MagentoOrderPayment[];
|
|
46
|
+
credit_memos?: MagentoOrderCredit[];
|
|
47
|
+
invoices: MagentoOrderInvoice[];
|
|
48
|
+
total?: MagentoOrderTotal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface MagentoCustomerOrders {
|
|
52
|
+
page_info: MagentoSearchResultPageInfo;
|
|
53
|
+
total_count: number;
|
|
54
|
+
items: MagentoCustomerOrder[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare function daffMagentoCustomerOrderTransformTotals(totals: MagentoOrderTotal): DaffOrderTotal[];
|
|
58
|
+
declare function daffMagentoCustomerOrderTransformCouponDiscount(discount: MagentoDiscount): DaffOrderCoupon;
|
|
59
|
+
declare function daffMagentoCustomerOrderTransformConfigurableOption(option: MagentoOrderItemOption): DaffConfigurableOrderItemAttribute;
|
|
60
|
+
declare function daffMagentoCustomerOrderTransformBundleOption(option: MagentoOrderBundleItemSelectedOption): DaffCompositeOrderItemOption;
|
|
61
|
+
declare function daffMagentoCustomerOrderTransformAdditionalItemFields(item: MagentoOrderItem): {
|
|
62
|
+
type: DaffOrderItemType;
|
|
63
|
+
options: DaffCompositeOrderItemOption[];
|
|
64
|
+
attributes?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
type: DaffOrderItemType;
|
|
67
|
+
attributes: DaffConfigurableOrderItemAttribute[];
|
|
68
|
+
options?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
type: DaffOrderItemType;
|
|
71
|
+
options?: undefined;
|
|
72
|
+
attributes?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
type?: undefined;
|
|
75
|
+
options?: undefined;
|
|
76
|
+
attributes?: undefined;
|
|
77
|
+
};
|
|
78
|
+
declare function daffMagentoCustomerOrderTransformItem(item: MagentoOrderItem, order: MagentoCustomerOrder, qty: number): DaffOrderItem;
|
|
79
|
+
declare function daffMagentoCustomerOrderTransformAddress(address: MagentoOrderAddress, order: MagentoCustomerOrder): DaffOrderAddress;
|
|
80
|
+
declare function daffMagentoCustomerOrderTransformShipmentItem(shipmentItem: MagentoOrderShipmentItem, order: MagentoCustomerOrder): DaffOrderShipmentItem;
|
|
81
|
+
declare function daffMagentoCustomerOrderTransformShipmentTracking(tracking: MagentoOrderShipmentTracking): DaffOrderShipmentTracking;
|
|
82
|
+
declare function daffMagentoCustomerOrderTransformShipment(shipment: MagentoOrderShipment, order: MagentoCustomerOrder): DaffOrderShipment;
|
|
83
|
+
declare function daffMagentoCustomerOrderTransformPayment(payment: MagentoOrderPayment, order: MagentoCustomerOrder): DaffOrderPayment;
|
|
84
|
+
declare function daffMagentoCustomerOrderTransformInvoiceItem(invoiceItem: MagentoOrderInvoiceItem, order: MagentoCustomerOrder): DaffOrderShipmentItem;
|
|
85
|
+
declare function daffMagentoCustomerOrderTransformInvoice(invoice: MagentoOrderInvoice, order: MagentoCustomerOrder, payment: MagentoOrderPayment): DaffOrderInvoice;
|
|
86
|
+
declare function daffMagentoCustomerOrderTransformCreditItem(creditItem: MagentoOrderCreditItem, order: MagentoCustomerOrder): DaffOrderShipmentItem;
|
|
87
|
+
declare function daffMagentoCustomerOrderTransformCredit(credit: MagentoOrderCredit, order: MagentoCustomerOrder): DaffOrderInvoice;
|
|
88
|
+
/**
|
|
89
|
+
* Transforms the MagentoCustomerOrder from the magento order query into a DaffOrder.
|
|
90
|
+
*/
|
|
91
|
+
declare function daffMagentoCustomerOrderTransformOrder(order: MagentoCustomerOrder, email: string): DaffOrder;
|
|
92
|
+
|
|
93
|
+
type DaffMagentoCustomerOrderExtraTransform<T extends MagentoCustomerOrder = MagentoCustomerOrder, V extends DaffOrder = DaffOrder> = (daffOrder: DaffOrder, magentoOrder: T, email: string) => V;
|
|
94
|
+
|
|
95
|
+
type DaffMagentoCustomerOrderTransform<T extends MagentoCustomerOrder = MagentoCustomerOrder, V extends DaffOrder = DaffOrder> = (magentoOrder: T, email: string) => V;
|
|
96
|
+
|
|
97
|
+
declare const magentoCustomerOrderFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
|
|
98
|
+
|
|
99
|
+
interface MagentoGetCustomerOrdersResponse {
|
|
100
|
+
customer: {
|
|
101
|
+
email: string;
|
|
102
|
+
orders: MagentoCustomerOrders;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface MagentoCustomerOrderListQueryVariables {
|
|
107
|
+
currentPage?: number;
|
|
108
|
+
pageSize?: number;
|
|
109
|
+
sort?: MagentoCustomerOrderSortInput;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare const MAGENTO_GET_CUSTOMER_ORDERS_QUERY_NAME = "MagentoGetCustomerOrders";
|
|
113
|
+
declare const getCustomerOrders: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<MagentoGetCustomerOrdersResponse, MagentoCustomerOrderListQueryVariables>;
|
|
114
|
+
|
|
115
|
+
interface MagentoGetCustomerOrderResponse {
|
|
116
|
+
customer: {
|
|
117
|
+
email: string;
|
|
118
|
+
orders: {
|
|
119
|
+
items: [MagentoCustomerOrder];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface MagentoCustomerOrderGetQueryVariables {
|
|
125
|
+
id: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare const MAGENTO_GET_CUSTOMER_ORDER_QUERY_NAME = "MagentoGetCustomerOrder";
|
|
129
|
+
declare const getCustomerOrder: (extraProductFragments?: DocumentNode[]) => apollo_angular.TypedDocumentNode<MagentoGetCustomerOrderResponse, MagentoCustomerOrderGetQueryVariables>;
|
|
130
|
+
|
|
131
|
+
declare class MagentoCustomerOrderCollectionTransformer {
|
|
132
|
+
private orderTransform;
|
|
133
|
+
constructor(orderTransform: DaffMagentoCustomerOrderTransform);
|
|
134
|
+
transform(response: MagentoGetCustomerOrdersResponse, request: DaffCollectionRequest): DaffOrderCollection;
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerOrderCollectionTransformer, never>;
|
|
136
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerOrderCollectionTransformer>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare function transformMagentoReviewsError(error: any): _daffodil_core.DaffError | DaffCustomerInvalidAPIResponseError;
|
|
140
|
+
|
|
141
|
+
declare const validateGetCustomerOrdersResponse: (response: ApolloQueryResult<MagentoGetCustomerOrdersResponse>) => ApolloQueryResult<MagentoGetCustomerOrdersResponse>;
|
|
142
|
+
|
|
143
|
+
declare const DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_FRAGMENTS: i0.InjectionToken<DocumentNode[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Provides extra GraphQL fragments for the Magento order driver.
|
|
146
|
+
*
|
|
147
|
+
* See {@link DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_FRAGMENTS}.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```ts
|
|
151
|
+
* providers: [
|
|
152
|
+
* ...provideDaffCustomerOrderMagentoExtraOrderFragments(
|
|
153
|
+
* myExtraOrderFragment
|
|
154
|
+
* )
|
|
155
|
+
* ]
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
declare function provideDaffCustomerOrderMagentoExtraOrderFragments(...fragments: DocumentNode[]): Provider[];
|
|
159
|
+
|
|
160
|
+
declare const DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_TRANSFORMS: i0.InjectionToken<DaffMagentoCustomerOrderExtraTransform[]>;
|
|
161
|
+
/**
|
|
162
|
+
* Provides extra customer order preview transforms for the Magento customer order driver.
|
|
163
|
+
*
|
|
164
|
+
* See {@link DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_TRANSFORMS}.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```ts
|
|
168
|
+
* providers: [
|
|
169
|
+
* ...provideDaffCustomerOrderMagentoExtraOrderTransforms(
|
|
170
|
+
* myExtraOrderTransform
|
|
171
|
+
* )
|
|
172
|
+
* ]
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
declare function provideDaffCustomerOrderMagentoExtraOrderTransforms<T extends MagentoCustomerOrder = MagentoCustomerOrder, V extends DaffOrder = DaffOrder>(...transforms: DaffMagentoCustomerOrderExtraTransform<T, V>[]): Provider[];
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* An internal token to combine the Magento preview transform with the injected transforms.
|
|
179
|
+
*/
|
|
180
|
+
declare const DAFF_CUSTOMER_ORDER_MAGENTO_ORDER_TRANSFORM: InjectionToken<DaffMagentoCustomerOrderTransform>;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* A service for making Magento GraphQL queries for customers.
|
|
184
|
+
*
|
|
185
|
+
* @inheritdoc
|
|
186
|
+
*/
|
|
187
|
+
declare class DaffCustomerOrderMagentoService implements DaffOrderServiceInterface {
|
|
188
|
+
private apollo;
|
|
189
|
+
private authStorage;
|
|
190
|
+
private guestDriver;
|
|
191
|
+
private extraFragments;
|
|
192
|
+
private transformer;
|
|
193
|
+
private orderTransform;
|
|
194
|
+
constructor(apollo: Apollo, authStorage: DaffAuthStorageService, guestDriver: DaffOrderMagentoService, extraFragments: DocumentNode[], transformer: MagentoCustomerOrderCollectionTransformer, orderTransform: DaffMagentoCustomerOrderTransform);
|
|
195
|
+
list(cartId?: string, request?: DaffCollectionRequest): Observable<DaffOrderCollection>;
|
|
196
|
+
get(orderId: string, cartId?: string): Observable<DaffOrder>;
|
|
197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerOrderMagentoService, never>;
|
|
198
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffCustomerOrderMagentoService>;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare class DaffCustomerOrderMagentoDriverModule {
|
|
202
|
+
static forRoot(): ModuleWithProviders<DaffCustomerOrderMagentoDriverModule>;
|
|
203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCustomerOrderMagentoDriverModule, never>;
|
|
204
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCustomerOrderMagentoDriverModule, never, [typeof i1.CommonModule], never>;
|
|
205
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCustomerOrderMagentoDriverModule>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export { DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_FRAGMENTS, DAFF_CUSTOMER_ORDER_MAGENTO_EXTRA_ORDER_TRANSFORMS, DAFF_CUSTOMER_ORDER_MAGENTO_ORDER_TRANSFORM, DaffCustomerOrderMagentoDriverModule, DaffCustomerOrderMagentoService, MAGENTO_GET_CUSTOMER_ORDERS_QUERY_NAME, MAGENTO_GET_CUSTOMER_ORDER_QUERY_NAME, MagentoCustomerOrderCollectionTransformer, MagentoCustomerOrderSortableField, daffMagentoCustomerOrderTransformAdditionalItemFields, daffMagentoCustomerOrderTransformAddress, daffMagentoCustomerOrderTransformBundleOption, daffMagentoCustomerOrderTransformConfigurableOption, daffMagentoCustomerOrderTransformCouponDiscount, daffMagentoCustomerOrderTransformCredit, daffMagentoCustomerOrderTransformCreditItem, daffMagentoCustomerOrderTransformInvoice, daffMagentoCustomerOrderTransformInvoiceItem, daffMagentoCustomerOrderTransformItem, daffMagentoCustomerOrderTransformOrder, daffMagentoCustomerOrderTransformPayment, daffMagentoCustomerOrderTransformShipment, daffMagentoCustomerOrderTransformShipmentItem, daffMagentoCustomerOrderTransformShipmentTracking, daffMagentoCustomerOrderTransformTotals, getCustomerOrder, getCustomerOrders, magentoCustomerOrderFragment, provideDaffCustomerOrderMagentoExtraOrderFragments, provideDaffCustomerOrderMagentoExtraOrderTransforms, transformMagentoReviewsError, validateGetCustomerOrdersResponse };
|
|
209
|
+
export type { DaffMagentoCustomerOrderExtraTransform, DaffMagentoCustomerOrderTransform, MagentoCustomerOrder, MagentoCustomerOrderGetQueryVariables, MagentoCustomerOrderListQueryVariables, MagentoCustomerOrderSortInput, MagentoCustomerOrders, MagentoCustomerOrdersFilterInput, MagentoGetCustomerOrderResponse, MagentoGetCustomerOrdersResponse };
|
|
@@ -1 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _daffodil_order_driver_magento_2_4_1 from '@daffodil/order/driver/magento/2-4-1';
|
|
2
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
+
import { MagentoCustomerOrder, MagentoCustomerOrders } from '@daffodil/customer-order/driver/magento/2-4-6';
|
|
4
|
+
import { MagentoOrderTotalFactory, MagentoOrderItemFactory, MagentoOrderAddressFactory, MagentoOrderShipmentFactory, MagentoOrderPaymentFactory, MagentoOrderInvoiceFactory, MagentoOrderCreditFactory } from '@daffodil/order/driver/magento/2-4-1/testing';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { MagentoSearchResultPageInfo } from '@daffodil/driver/magento';
|
|
7
|
+
import { MagentoSearchResultPageInfoFactory } from '@daffodil/driver/magento/testing';
|
|
8
|
+
|
|
9
|
+
declare class MockMagentoCustomerOrder implements MagentoCustomerOrder {
|
|
10
|
+
protected totalFactory: MagentoOrderTotalFactory;
|
|
11
|
+
protected itemFactory: MagentoOrderItemFactory;
|
|
12
|
+
protected addressFactory: MagentoOrderAddressFactory;
|
|
13
|
+
protected shipmentFactory: MagentoOrderShipmentFactory;
|
|
14
|
+
protected paymentFactory: MagentoOrderPaymentFactory;
|
|
15
|
+
protected invoiceFactory: MagentoOrderInvoiceFactory;
|
|
16
|
+
protected creditFactory: MagentoOrderCreditFactory;
|
|
17
|
+
protected _numberOfSuborders: number;
|
|
18
|
+
__typename: "CustomerOrder";
|
|
19
|
+
id: string;
|
|
20
|
+
order_date: string;
|
|
21
|
+
status: string;
|
|
22
|
+
carrier: string;
|
|
23
|
+
number: string;
|
|
24
|
+
shipping_method: string;
|
|
25
|
+
total: _daffodil_order_driver_magento_2_4_1.MagentoOrderTotal;
|
|
26
|
+
items: _daffodil_order_driver_magento_2_4_1.MagentoOrderItem[];
|
|
27
|
+
billing_address: _daffodil_order_driver_magento_2_4_1.MagentoOrderAddress;
|
|
28
|
+
shipping_address: _daffodil_order_driver_magento_2_4_1.MagentoOrderAddress;
|
|
29
|
+
shipments: _daffodil_order_driver_magento_2_4_1.MagentoOrderShipment[];
|
|
30
|
+
payment_methods: _daffodil_order_driver_magento_2_4_1.MagentoOrderPayment[];
|
|
31
|
+
invoices: _daffodil_order_driver_magento_2_4_1.MagentoOrderInvoice[];
|
|
32
|
+
credit_memos: _daffodil_order_driver_magento_2_4_1.MagentoOrderCredit[];
|
|
33
|
+
constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
|
|
34
|
+
}
|
|
35
|
+
declare class MagentoCustomerOrderFactory extends DaffModelFactory<MagentoCustomerOrder> {
|
|
36
|
+
constructor(totalFactory: MagentoOrderTotalFactory, itemFactory: MagentoOrderItemFactory, addressFactory: MagentoOrderAddressFactory, shipmentFactory: MagentoOrderShipmentFactory, paymentFactory: MagentoOrderPaymentFactory, invoiceFactory: MagentoOrderInvoiceFactory, creditFactory: MagentoOrderCreditFactory);
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerOrderFactory, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerOrderFactory>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class MockMagentoCustomerOrders implements MagentoCustomerOrders {
|
|
42
|
+
protected orderFactory: MagentoCustomerOrderFactory;
|
|
43
|
+
protected pageInfoFactory: MagentoSearchResultPageInfoFactory;
|
|
44
|
+
items: MagentoCustomerOrder[];
|
|
45
|
+
page_info: MagentoSearchResultPageInfo;
|
|
46
|
+
total_count: number;
|
|
47
|
+
constructor(orderFactory: MagentoCustomerOrderFactory, pageInfoFactory: MagentoSearchResultPageInfoFactory);
|
|
48
|
+
private createReviews;
|
|
49
|
+
private createPageInfo;
|
|
50
|
+
}
|
|
51
|
+
declare class MagentoCustomerOrdersFactory extends DaffModelFactory<MagentoCustomerOrders> {
|
|
52
|
+
constructor(orderFactory: MagentoCustomerOrderFactory, pageInfoFactory: MagentoSearchResultPageInfoFactory);
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MagentoCustomerOrdersFactory, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MagentoCustomerOrdersFactory>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { MagentoCustomerOrderFactory, MagentoCustomerOrdersFactory, MockMagentoCustomerOrder, MockMagentoCustomerOrders };
|
|
@@ -20,6 +20,7 @@ class MockMagentoCustomerOrder {
|
|
|
20
20
|
this.order_date = faker.date.past().toString();
|
|
21
21
|
this.status = faker.lorem.word();
|
|
22
22
|
this.carrier = faker.lorem.word();
|
|
23
|
+
// eslint-disable-next-line id-blacklist
|
|
23
24
|
this.number = faker.string.uuid();
|
|
24
25
|
this.shipping_method = faker.lorem.word();
|
|
25
26
|
this.total = this.totalFactory.create({
|
|
@@ -39,10 +40,10 @@ class MagentoCustomerOrderFactory extends DaffModelFactory {
|
|
|
39
40
|
constructor(totalFactory, itemFactory, addressFactory, shipmentFactory, paymentFactory, invoiceFactory, creditFactory) {
|
|
40
41
|
super(MockMagentoCustomerOrder, totalFactory, itemFactory, addressFactory, shipmentFactory, paymentFactory, invoiceFactory, creditFactory);
|
|
41
42
|
}
|
|
42
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
43
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MagentoCustomerOrderFactory, deps: [{ token: i1.MagentoOrderTotalFactory }, { token: i1.MagentoOrderItemFactory }, { token: i1.MagentoOrderAddressFactory }, { token: i1.MagentoOrderShipmentFactory }, { token: i1.MagentoOrderPaymentFactory }, { token: i1.MagentoOrderInvoiceFactory }, { token: i1.MagentoOrderCreditFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MagentoCustomerOrderFactory, providedIn: 'root' }); }
|
|
44
45
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MagentoCustomerOrderFactory, decorators: [{
|
|
46
47
|
type: Injectable,
|
|
47
48
|
args: [{
|
|
48
49
|
providedIn: 'root',
|
|
@@ -68,10 +69,10 @@ class MagentoCustomerOrdersFactory extends DaffModelFactory {
|
|
|
68
69
|
constructor(orderFactory, pageInfoFactory) {
|
|
69
70
|
super(MockMagentoCustomerOrders, orderFactory, pageInfoFactory);
|
|
70
71
|
}
|
|
71
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
72
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
72
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MagentoCustomerOrdersFactory, deps: [{ token: MagentoCustomerOrderFactory }, { token: i2.MagentoSearchResultPageInfoFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
73
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MagentoCustomerOrdersFactory, providedIn: 'root' }); }
|
|
73
74
|
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: MagentoCustomerOrdersFactory, decorators: [{
|
|
75
76
|
type: Injectable,
|
|
76
77
|
args: [{
|
|
77
78
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-customer-order-driver-magento-2-4-5-testing.mjs","sources":["../../../libs/customer-order/driver/magento/2-4-5/testing/src/factories/order.factory.ts","../../../libs/customer-order/driver/magento/2-4-5/testing/src/factories/orders.factory.ts","../../../libs/customer-order/driver/magento/2-4-5/testing/src/daffodil-customer-order-driver-magento-2-4-5-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { MagentoCustomerOrder } from '@daffodil/customer-order/driver/magento/2-4-5';\nimport {\n MagentoOrderAddressFactory,\n MagentoOrderInvoiceFactory,\n MagentoOrderItemFactory,\n MagentoOrderPaymentFactory,\n MagentoOrderShipmentFactory,\n MagentoOrderTotalFactory,\n MagentoOrderCreditFactory,\n} from '@daffodil/order/driver/magento/2-4-1/testing';\n\nexport class MockMagentoCustomerOrder implements MagentoCustomerOrder {\n protected _numberOfSuborders = faker.number.int({ min: 1, max: 3 });\n __typename = <const>'CustomerOrder';\n id = faker.string.uuid();\n order_date = faker.date.past().toString();\n status = faker.lorem.word();\n carrier = faker.lorem.word();\n number = faker.string.uuid();\n shipping_method = faker.lorem.word();\n total = this.totalFactory.create({\n __typename: 'OrderTotal',\n });\n items = this.itemFactory.createMany(faker.number.int({ min: 1, max: 5 }));\n billing_address = this.addressFactory.create();\n shipping_address = this.addressFactory.create();\n shipments = this.shipmentFactory.createMany(this._numberOfSuborders);\n payment_methods = this.paymentFactory.createMany(this._numberOfSuborders);\n invoices = this.invoiceFactory.createMany(this._numberOfSuborders);\n credit_memos = this.creditFactory.createMany(faker.number.int({ min: 1, max: this._numberOfSuborders }));\n\n constructor(\n protected totalFactory: MagentoOrderTotalFactory,\n protected itemFactory: MagentoOrderItemFactory,\n protected addressFactory: MagentoOrderAddressFactory,\n protected shipmentFactory: MagentoOrderShipmentFactory,\n protected paymentFactory: MagentoOrderPaymentFactory,\n protected invoiceFactory: MagentoOrderInvoiceFactory,\n protected creditFactory: MagentoOrderCreditFactory,\n ) {}\n};\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MagentoCustomerOrderFactory extends DaffModelFactory<MagentoCustomerOrder>{\n constructor(\n totalFactory: MagentoOrderTotalFactory,\n itemFactory: MagentoOrderItemFactory,\n addressFactory: MagentoOrderAddressFactory,\n shipmentFactory: MagentoOrderShipmentFactory,\n paymentFactory: MagentoOrderPaymentFactory,\n invoiceFactory: MagentoOrderInvoiceFactory,\n creditFactory: MagentoOrderCreditFactory,\n ) {\n super(\n MockMagentoCustomerOrder,\n totalFactory,\n itemFactory,\n addressFactory,\n shipmentFactory,\n paymentFactory,\n invoiceFactory,\n creditFactory,\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n MagentoCustomerOrders,\n MagentoCustomerOrder,\n} from '@daffodil/customer-order/driver/magento/2-4-5';\nimport { MagentoSearchResultPageInfo } from '@daffodil/driver/magento';\nimport { MagentoSearchResultPageInfoFactory } from '@daffodil/driver/magento/testing';\n\nimport { MagentoCustomerOrderFactory } from './order.factory';\n\nexport class MockMagentoCustomerOrders implements MagentoCustomerOrders {\n items = this.createReviews();\n page_info = this.createPageInfo();\n total_count = this.items.length;\n\n constructor(\n protected orderFactory: MagentoCustomerOrderFactory,\n protected pageInfoFactory: MagentoSearchResultPageInfoFactory,\n ) {}\n\n private createReviews(): MagentoCustomerOrder[] {\n return this.orderFactory.createMany(faker.number.int({ min: 3, max: 5 }));\n }\n\n private createPageInfo(): MagentoSearchResultPageInfo {\n return this.pageInfoFactory.create();\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MagentoCustomerOrdersFactory extends DaffModelFactory<MagentoCustomerOrders> {\n constructor(\n orderFactory: MagentoCustomerOrderFactory,\n pageInfoFactory: MagentoSearchResultPageInfoFactory,\n ) {\n super(MockMagentoCustomerOrders, orderFactory, pageInfoFactory);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.MagentoCustomerOrderFactory"],"mappings":";;;;;;;MAea,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"daffodil-customer-order-driver-magento-2-4-5-testing.mjs","sources":["../../../libs/customer-order/driver/magento/2-4-5/testing/src/factories/order.factory.ts","../../../libs/customer-order/driver/magento/2-4-5/testing/src/factories/orders.factory.ts","../../../libs/customer-order/driver/magento/2-4-5/testing/src/daffodil-customer-order-driver-magento-2-4-5-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { MagentoCustomerOrder } from '@daffodil/customer-order/driver/magento/2-4-5';\nimport {\n MagentoOrderAddressFactory,\n MagentoOrderInvoiceFactory,\n MagentoOrderItemFactory,\n MagentoOrderPaymentFactory,\n MagentoOrderShipmentFactory,\n MagentoOrderTotalFactory,\n MagentoOrderCreditFactory,\n} from '@daffodil/order/driver/magento/2-4-1/testing';\n\nexport class MockMagentoCustomerOrder implements MagentoCustomerOrder {\n protected _numberOfSuborders = faker.number.int({ min: 1, max: 3 });\n __typename = <const>'CustomerOrder';\n id = faker.string.uuid();\n order_date = faker.date.past().toString();\n status = faker.lorem.word();\n carrier = faker.lorem.word();\n // eslint-disable-next-line id-blacklist\n number = faker.string.uuid();\n shipping_method = faker.lorem.word();\n total = this.totalFactory.create({\n __typename: 'OrderTotal',\n });\n items = this.itemFactory.createMany(faker.number.int({ min: 1, max: 5 }));\n billing_address = this.addressFactory.create();\n shipping_address = this.addressFactory.create();\n shipments = this.shipmentFactory.createMany(this._numberOfSuborders);\n payment_methods = this.paymentFactory.createMany(this._numberOfSuborders);\n invoices = this.invoiceFactory.createMany(this._numberOfSuborders);\n credit_memos = this.creditFactory.createMany(faker.number.int({ min: 1, max: this._numberOfSuborders }));\n\n constructor(\n protected totalFactory: MagentoOrderTotalFactory,\n protected itemFactory: MagentoOrderItemFactory,\n protected addressFactory: MagentoOrderAddressFactory,\n protected shipmentFactory: MagentoOrderShipmentFactory,\n protected paymentFactory: MagentoOrderPaymentFactory,\n protected invoiceFactory: MagentoOrderInvoiceFactory,\n protected creditFactory: MagentoOrderCreditFactory,\n ) {}\n};\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MagentoCustomerOrderFactory extends DaffModelFactory<MagentoCustomerOrder>{\n constructor(\n totalFactory: MagentoOrderTotalFactory,\n itemFactory: MagentoOrderItemFactory,\n addressFactory: MagentoOrderAddressFactory,\n shipmentFactory: MagentoOrderShipmentFactory,\n paymentFactory: MagentoOrderPaymentFactory,\n invoiceFactory: MagentoOrderInvoiceFactory,\n creditFactory: MagentoOrderCreditFactory,\n ) {\n super(\n MockMagentoCustomerOrder,\n totalFactory,\n itemFactory,\n addressFactory,\n shipmentFactory,\n paymentFactory,\n invoiceFactory,\n creditFactory,\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n MagentoCustomerOrders,\n MagentoCustomerOrder,\n} from '@daffodil/customer-order/driver/magento/2-4-5';\nimport { MagentoSearchResultPageInfo } from '@daffodil/driver/magento';\nimport { MagentoSearchResultPageInfoFactory } from '@daffodil/driver/magento/testing';\n\nimport { MagentoCustomerOrderFactory } from './order.factory';\n\nexport class MockMagentoCustomerOrders implements MagentoCustomerOrders {\n items = this.createReviews();\n page_info = this.createPageInfo();\n total_count = this.items.length;\n\n constructor(\n protected orderFactory: MagentoCustomerOrderFactory,\n protected pageInfoFactory: MagentoSearchResultPageInfoFactory,\n ) {}\n\n private createReviews(): MagentoCustomerOrder[] {\n return this.orderFactory.createMany(faker.number.int({ min: 3, max: 5 }));\n }\n\n private createPageInfo(): MagentoSearchResultPageInfo {\n return this.pageInfoFactory.create();\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MagentoCustomerOrdersFactory extends DaffModelFactory<MagentoCustomerOrders> {\n constructor(\n orderFactory: MagentoCustomerOrderFactory,\n pageInfoFactory: MagentoSearchResultPageInfoFactory,\n ) {\n super(MockMagentoCustomerOrders, orderFactory, pageInfoFactory);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.MagentoCustomerOrderFactory"],"mappings":"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"}
|