@unchainedshop/api 4.0.0-rc.13 → 4.0.0-rc.15
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/lib/express/createERCMetadataMiddleware.d.ts.map +1 -1
- package/lib/express/createERCMetadataMiddleware.js +10 -9
- package/lib/express/createERCMetadataMiddleware.js.map +1 -1
- package/lib/fastify/bulkImportHandler.js +1 -1
- package/lib/fastify/bulkImportHandler.js.map +1 -1
- package/lib/fastify/ercMetadataHandler.js +1 -1
- package/lib/fastify/ercMetadataHandler.js.map +1 -1
- package/lib/fastify/tempUploadHandler.js +1 -1
- package/lib/fastify/tempUploadHandler.js.map +1 -1
- package/lib/mcp/tools/order/schemas.d.ts +2 -2
- package/lib/mcp/tools/product/schemas.d.ts +62 -62
- package/lib/mcp/tools/system/schemas.d.ts +36 -6
- package/lib/mcp/tools/system/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/system/schemas.js +4 -6
- package/lib/mcp/tools/system/schemas.js.map +1 -1
- package/lib/mcp/tools/system/types.d.ts +8 -2
- package/lib/mcp/tools/system/types.d.ts.map +1 -1
- package/lib/mcp/tools/users/schemas.d.ts +2 -2
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.js +78 -5
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.js.map +1 -1
- package/lib/resolvers/mutations/index.d.ts +4 -1
- package/lib/resolvers/mutations/index.d.ts.map +1 -1
- package/lib/resolvers/mutations/index.js +8 -2
- package/lib/resolvers/mutations/index.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCart.js +6 -6
- package/lib/resolvers/mutations/orders/updateCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCartDeliveryPickUp.d.ts +8 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryPickUp.d.ts.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryPickUp.js +38 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryPickUp.js.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryShipping.d.ts +8 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryShipping.d.ts.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryShipping.js +38 -0
- package/lib/resolvers/mutations/orders/updateCartDeliveryShipping.js.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentGeneric.d.ts +7 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentGeneric.d.ts.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentGeneric.js +37 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentGeneric.js.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentInvoice.d.ts +7 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentInvoice.d.ts.map +1 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentInvoice.js +37 -0
- package/lib/resolvers/mutations/orders/updateCartPaymentInvoice.js.map +1 -0
- package/lib/resolvers/mutations/products/updateProductCommerce.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.js +11 -2
- package/lib/resolvers/mutations/products/updateProductCommerce.js.map +1 -1
- package/lib/resolvers/queries/orders/orderStatistics.d.ts +3 -1
- package/lib/resolvers/queries/orders/orderStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/orderStatistics.js +3 -2
- package/lib/resolvers/queries/orders/orderStatistics.js.map +1 -1
- package/lib/resolvers/type/index.d.ts +52 -0
- package/lib/resolvers/type/index.d.ts.map +1 -1
- package/lib/resolvers/type/index.js +2 -0
- package/lib/resolvers/type/index.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-types.js +0 -1
- package/lib/resolvers/type/order/order-payment-types.js.map +1 -1
- package/lib/resolvers/type/order/order-statistics-types.d.ts +34 -0
- package/lib/resolvers/type/order/order-statistics-types.d.ts.map +1 -0
- package/lib/resolvers/type/order/order-statistics-types.js +68 -0
- package/lib/resolvers/type/order/order-statistics-types.js.map +1 -0
- package/lib/resolvers/type/product/product-bundle-types.d.ts +20 -0
- package/lib/resolvers/type/product/product-bundle-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-bundle-types.js +2 -2
- package/lib/resolvers/type/product/product-bundle-types.js.map +1 -1
- package/lib/schema/mutation.d.ts.map +1 -1
- package/lib/schema/mutation.js +36 -7
- package/lib/schema/mutation.js.map +1 -1
- package/lib/schema/query.js +2 -2
- package/lib/schema/types/events.d.ts.map +1 -1
- package/lib/schema/types/events.js +7 -1
- package/lib/schema/types/events.js.map +1 -1
- package/lib/schema/types/order/order.d.ts.map +1 -1
- package/lib/schema/types/order/order.js +9 -1
- package/lib/schema/types/order/order.js.map +1 -1
- package/lib/schema/types/payment.d.ts.map +1 -1
- package/lib/schema/types/payment.js +0 -5
- package/lib/schema/types/payment.js.map +1 -1
- package/lib/schema/types/product/bundle-product.d.ts.map +1 -1
- package/lib/schema/types/product/bundle-product.js +18 -7
- package/lib/schema/types/product/bundle-product.js.map +1 -1
- package/package.json +17 -12
- package/src/express/createERCMetadataMiddleware.ts +11 -9
- package/src/fastify/bulkImportHandler.ts +1 -1
- package/src/fastify/ercMetadataHandler.ts +1 -1
- package/src/fastify/tempUploadHandler.ts +1 -1
- package/src/mcp/tools/system/schemas.ts +4 -6
- package/src/mcp/tools/system/types.ts +8 -2
- package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +100 -7
- package/src/resolvers/mutations/index.ts +8 -2
- package/src/resolvers/mutations/orders/updateCart.ts +6 -6
- package/src/resolvers/mutations/orders/updateCartDeliveryPickUp.ts +51 -0
- package/src/resolvers/mutations/orders/updateCartDeliveryShipping.ts +51 -0
- package/src/resolvers/mutations/orders/updateCartPaymentGeneric.ts +50 -0
- package/src/resolvers/mutations/orders/updateCartPaymentInvoice.ts +50 -0
- package/src/resolvers/mutations/products/updateProductCommerce.ts +12 -4
- package/src/resolvers/queries/orders/orderStatistics.ts +3 -3
- package/src/resolvers/type/index.ts +2 -0
- package/src/resolvers/type/order/order-payment-types.ts +0 -1
- package/src/resolvers/type/order/order-statistics-types.ts +99 -0
- package/src/resolvers/type/product/product-bundle-types.ts +2 -2
- package/src/schema/mutation.ts +36 -7
- package/src/schema/query.ts +2 -2
- package/src/schema/types/events.ts +7 -1
- package/src/schema/types/order/order.ts +9 -1
- package/src/schema/types/payment.ts +0 -5
- package/src/schema/types/product/bundle-product.ts +18 -7
- package/src/resolvers/mutations/orders/updateOrderPaymentCard.ts +0 -37
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { log } from '@unchainedshop/logger';
|
|
2
|
-
import {
|
|
2
|
+
import { ProductTypes } from '@unchainedshop/core-products';
|
|
3
|
+
import { ProductNotFoundError, InvalidIdError, ProductWrongTypeError } from '../../../errors.js';
|
|
3
4
|
export default async function updateProductCommerce(root, { commerce, productId }, { modules, userId }) {
|
|
4
5
|
log(`mutation updateProductCommerce ${productId}`, { userId });
|
|
5
6
|
if (!productId)
|
|
6
7
|
throw new InvalidIdError({ productId });
|
|
7
|
-
|
|
8
|
+
const product = await modules.products.findProduct({ productId });
|
|
9
|
+
if (!product)
|
|
8
10
|
throw new ProductNotFoundError({ productId });
|
|
11
|
+
if (product.type === ProductTypes.ConfigurableProduct) {
|
|
12
|
+
throw new ProductWrongTypeError({
|
|
13
|
+
productId: productId,
|
|
14
|
+
received: product.type,
|
|
15
|
+
required: { not: ProductTypes.ConfigurableProduct },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
9
18
|
await modules.products.update(productId, { commerce });
|
|
10
19
|
return modules.products.findProduct({ productId });
|
|
11
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateProductCommerce.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/products/updateProductCommerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"updateProductCommerce.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/products/updateProductCommerce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAmB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGjG,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,qBAAqB,CACjD,IAAW,EACX,EAAE,QAAQ,EAAE,SAAS,EAAoD,EACzE,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,kCAAkC,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAE/D,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAClE,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,oBAAoB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAE5D,IAAI,OAAO,CAAC,IAAI,KAAK,YAAY,CAAC,mBAAmB,EAAE,CAAC;QACtD,MAAM,IAAI,qBAAqB,CAAC;YAC9B,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,OAAO,CAAC,IAAI;YACtB,QAAQ,EAAE,EAAE,GAAG,EAAE,YAAY,CAAC,mBAAmB,EAAE;SACpD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -2,5 +2,7 @@ import { Context } from '../../../context.js';
|
|
|
2
2
|
import { DateFilterInput } from '@unchainedshop/utils';
|
|
3
3
|
export default function orderStatistics(root: never, params: {
|
|
4
4
|
dateRange?: DateFilterInput;
|
|
5
|
-
}, {
|
|
5
|
+
}, { userId }: Context): Promise<{
|
|
6
|
+
dateRange: DateFilterInput;
|
|
7
|
+
}>;
|
|
6
8
|
//# sourceMappingURL=orderStatistics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderStatistics.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/queries/orders/orderStatistics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,wBAA8B,eAAe,CAC3C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE,eAAe,CAAA;CAAE,EACvC,EAAE,
|
|
1
|
+
{"version":3,"file":"orderStatistics.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/queries/orders/orderStatistics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,wBAA8B,eAAe,CAC3C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE,eAAe,CAAA;CAAE,EACvC,EAAE,MAAM,EAAE,EAAE,OAAO;;GAQpB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { log } from '@unchainedshop/logger';
|
|
2
|
-
export default async function orderStatistics(root, params, {
|
|
2
|
+
export default async function orderStatistics(root, params, { userId }) {
|
|
3
|
+
const { dateRange } = params || {};
|
|
3
4
|
log(`query orderStatistics `, {
|
|
4
5
|
userId,
|
|
5
6
|
...(params?.dateRange || {}),
|
|
6
7
|
});
|
|
7
|
-
return
|
|
8
|
+
return { dateRange };
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=orderStatistics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orderStatistics.js","sourceRoot":"","sources":["../../../../src/resolvers/queries/orders/orderStatistics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAI5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,eAAe,CAC3C,IAAW,EACX,MAAuC,EACvC,EAAE,
|
|
1
|
+
{"version":3,"file":"orderStatistics.js","sourceRoot":"","sources":["../../../../src/resolvers/queries/orders/orderStatistics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAI5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,eAAe,CAC3C,IAAW,EACX,MAAuC,EACvC,EAAE,MAAM,EAAW;IAEnB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IACnC,GAAG,CAAC,wBAAwB,EAAE;QAC5B,MAAM;QACN,GAAG,CAAC,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC;KAC7B,CAAC,CAAC;IACH,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC"}
|
|
@@ -50,6 +50,26 @@ declare const types: {
|
|
|
50
50
|
Bookmark: import("./bookmark-types.js").BookmarkHelperTypes;
|
|
51
51
|
BundleProduct: {
|
|
52
52
|
bundleItems(product: any): import("@unchainedshop/core-products").ProductBundleItem[];
|
|
53
|
+
catalogPrice(product: import("@unchainedshop/core-products").Product, { quantity, currencyCode: forcedCurrencyCode }: {
|
|
54
|
+
quantity?: number;
|
|
55
|
+
currencyCode?: string;
|
|
56
|
+
}, requestContext: import("../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
57
|
+
simulatedPrice(product: import("@unchainedshop/core-products").Product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
|
|
58
|
+
quantity?: number;
|
|
59
|
+
currencyCode?: string;
|
|
60
|
+
useNetPrice?: boolean;
|
|
61
|
+
configuration?: import("@unchainedshop/core-products").ProductConfiguration[];
|
|
62
|
+
}, requestContext: import("../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
63
|
+
leveledCatalogPrices(product: import("@unchainedshop/core-products").Product, { currencyCode: forcedCurrencyCode }: {
|
|
64
|
+
currencyCode?: string;
|
|
65
|
+
}, requestContext: import("../../context.js").Context): Promise<{
|
|
66
|
+
minQuantity: number;
|
|
67
|
+
maxQuantity: number;
|
|
68
|
+
price: import("@unchainedshop/core-products").ProductPrice;
|
|
69
|
+
}[]>;
|
|
70
|
+
salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string;
|
|
71
|
+
salesQuantityPerUnit({ commerce }: import("@unchainedshop/core-products").Product): string;
|
|
72
|
+
defaultOrderQuantity({ commerce }: import("@unchainedshop/core-products").Product): number;
|
|
53
73
|
__resolveType: (product: import("@unchainedshop/core-products").Product) => string;
|
|
54
74
|
proxies(product: import("@unchainedshop/core-products").Product, _: never, context: import("../../context.js").Context): Promise<import("@unchainedshop/core-products").Product[]>;
|
|
55
75
|
assortmentPaths(product: import("@unchainedshop/core-products").Product, params: {
|
|
@@ -817,6 +837,38 @@ declare const types: {
|
|
|
817
837
|
user: any;
|
|
818
838
|
}): any;
|
|
819
839
|
};
|
|
840
|
+
OrderStatistics: {
|
|
841
|
+
newCount: ({ dateRange }: {
|
|
842
|
+
dateRange: any;
|
|
843
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
844
|
+
checkoutCount: ({ dateRange }: {
|
|
845
|
+
dateRange: any;
|
|
846
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
847
|
+
rejectCount: ({ dateRange }: {
|
|
848
|
+
dateRange: any;
|
|
849
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
850
|
+
confirmCount: ({ dateRange }: {
|
|
851
|
+
dateRange: any;
|
|
852
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
853
|
+
fulfillCount: ({ dateRange }: {
|
|
854
|
+
dateRange: any;
|
|
855
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
856
|
+
newRecords: ({ dateRange }: {
|
|
857
|
+
dateRange: any;
|
|
858
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
859
|
+
checkoutRecords: ({ dateRange }: {
|
|
860
|
+
dateRange: any;
|
|
861
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
862
|
+
rejectRecords: ({ dateRange }: {
|
|
863
|
+
dateRange: any;
|
|
864
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
865
|
+
confirmRecords: ({ dateRange }: {
|
|
866
|
+
dateRange: any;
|
|
867
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
868
|
+
fulfilledRecords: ({ dateRange }: {
|
|
869
|
+
dateRange: any;
|
|
870
|
+
}, _p: any, { modules }: import("../../context.js").Context) => Promise<any>;
|
|
871
|
+
};
|
|
820
872
|
};
|
|
821
873
|
export default types;
|
|
822
874
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/index.ts"],"names":[],"mappings":"AAuEA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;gBA1C+C,CAAC;;;;uBAW1D,CAAC;;;uBAKO,CAAC;uBAA2B,CAAC;;;mBAC6B,CAAC;;;;;;;;;;;;;;;;;;uBAzCnD,CAAC;;;;;;;;oBADwC,CAAC;wBAC3D,CAAC;;;oBAQsB,CAAC;wBACxB,CAAC;uBAA2B,CAAC;yBAA8B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AUxB,CAAC;;;uBAQxB,CAAC;iBAAsB,CAAA;kBAAsB,CAAC;gBACrC,CAAC;;;uBAI6B,CAAC;;;wBAGc,CAAC;;;;;;;uBAaA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA5CjC,CAAC;+BAA6C,CAAC;oBAC1C,CAAC;4BAChB,CAAC;;;;;;4BAOV,CAAC;+BAA6C,CAAC;oBAClC,CAAC;;;;;;;;;;;;oBAfqC,CAAC;wBAC3D,CAAC;;;oBAQsB,CAAC;wBACxB,CAAC;uBAA2B,CAAC;yBAA8B,CAAC;;;wBAavD,CAAC;;;;;;;;;;;;uBAb2C,CAAC;;;;;;;gBAUxB,CAAC;;;uBAQxB,CAAC;iBAAsB,CAAA;kBAAsB,CAAC;gBACrC,CAAC;;;uBAI6B,CAAC;;;wBAGc,CAAC;;;;;;;uBAaA,CAAC;;;;;;;;;;4BApCZ,CAAC;+BAC/B,CAAC;oBAAqC,CAAC;;;;oBAdE,CAAC;wBAC3D,CAAC;;;oBAQsB,CAAC;wBACxB,CAAC;uBAA2B,CAAC;yBAA8B,CAAC;;;wBAavD,CAAC;;;;;;;;;;;;uBAb2C,CAAC;;;;;;;gBAUxB,CAAC;;;uBAQxB,CAAC;iBAAsB,CAAA;kBAAsB,CAAC;gBACrC,CAAC;;;uBAI6B,CAAC;;;wBAGc,CAAC;;;;;;;uBAaA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyF1D,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -67,6 +67,7 @@ import { Token } from './token-types.js';
|
|
|
67
67
|
import { Web3Address } from './web3-address.js';
|
|
68
68
|
import { LoginMethodResponse } from './login-method-response-types.js';
|
|
69
69
|
import { ProductSearchResult } from './product-search-result-types.js';
|
|
70
|
+
import { OrderStatistics } from './order/order-statistics-types.js';
|
|
70
71
|
const types = {
|
|
71
72
|
Assortment,
|
|
72
73
|
AssortmentFilter,
|
|
@@ -137,6 +138,7 @@ const types = {
|
|
|
137
138
|
Media,
|
|
138
139
|
Web3Address,
|
|
139
140
|
LoginMethodResponse,
|
|
141
|
+
OrderStatistics,
|
|
140
142
|
};
|
|
141
143
|
export default types;
|
|
142
144
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/type/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,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nB,eAAe;CAChB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-payment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/order/order-payment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"order-payment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/order/order-payment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAS9E,eAAO,MAAM,YAAY;yBACI,gBAAgB,eAAe,OAAO;CAWlE,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { PaymentProviderType } from '@unchainedshop/core-payment';
|
|
|
2
2
|
import { objectInvert } from '@unchainedshop/utils';
|
|
3
3
|
const OrderPaymentMap = {
|
|
4
4
|
OrderPaymentGeneric: PaymentProviderType.GENERIC,
|
|
5
|
-
OrderPaymentCard: PaymentProviderType.CARD,
|
|
6
5
|
OrderPaymentInvoice: PaymentProviderType.INVOICE,
|
|
7
6
|
};
|
|
8
7
|
export const OrderPayment = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-payment-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/order/order-payment-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,eAAe,GAAG;IACtB,mBAAmB,EAAE,mBAAmB,CAAC,OAAO;IAChD,
|
|
1
|
+
{"version":3,"file":"order-payment-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/order/order-payment-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,eAAe,GAAG;IACtB,mBAAmB,EAAE,mBAAmB,CAAC,OAAO;IAChD,mBAAmB,EAAE,mBAAmB,CAAC,OAAO;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,aAAa,EAAE,KAAK,EAAE,GAAqB,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QACnE,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC;YACxD,iBAAiB,EAAE,GAAG,CAAC,iBAAiB;SACzC,CAAC,CAAC;QAEH,MAAM,oBAAoB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;QAC3D,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,oBAAoB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Context } from '../../../context.js';
|
|
2
|
+
export declare const OrderStatistics: {
|
|
3
|
+
newCount: ({ dateRange }: {
|
|
4
|
+
dateRange: any;
|
|
5
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
6
|
+
checkoutCount: ({ dateRange }: {
|
|
7
|
+
dateRange: any;
|
|
8
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
9
|
+
rejectCount: ({ dateRange }: {
|
|
10
|
+
dateRange: any;
|
|
11
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
12
|
+
confirmCount: ({ dateRange }: {
|
|
13
|
+
dateRange: any;
|
|
14
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
15
|
+
fulfillCount: ({ dateRange }: {
|
|
16
|
+
dateRange: any;
|
|
17
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
18
|
+
newRecords: ({ dateRange }: {
|
|
19
|
+
dateRange: any;
|
|
20
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
21
|
+
checkoutRecords: ({ dateRange }: {
|
|
22
|
+
dateRange: any;
|
|
23
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
24
|
+
rejectRecords: ({ dateRange }: {
|
|
25
|
+
dateRange: any;
|
|
26
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
27
|
+
confirmRecords: ({ dateRange }: {
|
|
28
|
+
dateRange: any;
|
|
29
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
30
|
+
fulfilledRecords: ({ dateRange }: {
|
|
31
|
+
dateRange: any;
|
|
32
|
+
}, _p: any, { modules }: Context) => Promise<any>;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=order-statistics-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-statistics-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/order/order-statistics-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAoE9C,eAAO,MAAM,eAAe;;;6BACuB,OAAO;;;6BAGF,OAAO;;;6BAGT,OAAO;;;6BAGN,OAAO;;;6BAGP,OAAO;;;6BAGT,OAAO;;;6BAGF,OAAO;;;6BAGT,OAAO;;;6BAGN,OAAO;;;6BAGL,OAAO;CAEjE,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
function buildDateMatch(dateField, dateRange) {
|
|
2
|
+
if (!dateRange?.start && !dateRange?.end)
|
|
3
|
+
return { [dateField]: { $exists: true } };
|
|
4
|
+
const rangeMatch = {};
|
|
5
|
+
if (dateRange?.start)
|
|
6
|
+
rangeMatch.$gte = new Date(dateRange.start);
|
|
7
|
+
if (dateRange?.end)
|
|
8
|
+
rangeMatch.$lte = new Date(dateRange.end);
|
|
9
|
+
return { [dateField]: rangeMatch };
|
|
10
|
+
}
|
|
11
|
+
async function aggregateOrders(modules, dateField, dateRange, options) {
|
|
12
|
+
const match = buildDateMatch(dateField, dateRange);
|
|
13
|
+
const pipeline = [{ $match: match }];
|
|
14
|
+
if (options?.includeCarts) {
|
|
15
|
+
match.status = null;
|
|
16
|
+
match.orderNumber = null;
|
|
17
|
+
}
|
|
18
|
+
if (options?.includeAmount) {
|
|
19
|
+
pipeline.push({
|
|
20
|
+
$addFields: {
|
|
21
|
+
orderTotal: {
|
|
22
|
+
$reduce: {
|
|
23
|
+
input: { $ifNull: ['$calculation', []] },
|
|
24
|
+
initialValue: 0,
|
|
25
|
+
in: { $add: ['$$value', { $ifNull: ['$$this.amount', 0] }] },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
pipeline.push({
|
|
31
|
+
$group: {
|
|
32
|
+
_id: {
|
|
33
|
+
date: { $dateToString: { format: '%Y-%m-%d', date: `$${dateField}` } },
|
|
34
|
+
currency: '$currencyCode',
|
|
35
|
+
},
|
|
36
|
+
totalAmount: { $sum: '$orderTotal' },
|
|
37
|
+
count: { $sum: 1 },
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
pipeline.push({
|
|
41
|
+
$project: {
|
|
42
|
+
_id: 0,
|
|
43
|
+
date: '$_id.date',
|
|
44
|
+
total: { amount: '$totalAmount', currencyCode: '$_id.currency' },
|
|
45
|
+
count: 1,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
pipeline.push({ $sort: { date: 1 } });
|
|
49
|
+
return modules.orders.aggregateOrders({ pipeline });
|
|
50
|
+
}
|
|
51
|
+
// Just count total orders
|
|
52
|
+
pipeline.push({ $count: 'count' });
|
|
53
|
+
const result = await modules.orders.aggregateOrders({ pipeline });
|
|
54
|
+
return result[0]?.count ?? 0;
|
|
55
|
+
}
|
|
56
|
+
export const OrderStatistics = {
|
|
57
|
+
newCount: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'created', dateRange, { includeCarts: true }),
|
|
58
|
+
checkoutCount: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'ordered', dateRange),
|
|
59
|
+
rejectCount: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'rejected', dateRange),
|
|
60
|
+
confirmCount: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'confirmed', dateRange),
|
|
61
|
+
fulfillCount: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'fullfilled', dateRange),
|
|
62
|
+
newRecords: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'created', dateRange, { includeAmount: true, includeCarts: true }),
|
|
63
|
+
checkoutRecords: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'ordered', dateRange, { includeAmount: true }),
|
|
64
|
+
rejectRecords: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'rejected', dateRange, { includeAmount: true }),
|
|
65
|
+
confirmRecords: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'confirmed', dateRange, { includeAmount: true }),
|
|
66
|
+
fulfilledRecords: async ({ dateRange }, _p, { modules }) => aggregateOrders(modules, 'fullfilled', dateRange, { includeAmount: true }),
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=order-statistics-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-statistics-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/order/order-statistics-types.ts"],"names":[],"mappings":"AAEA,SAAS,cAAc,CAAC,SAAiB,EAAE,SAA4C;IACrF,IAAI,CAAC,SAAS,EAAE,KAAK,IAAI,CAAC,SAAS,EAAE,GAAG;QAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC;IAEpF,MAAM,UAAU,GAAwB,EAAE,CAAC;IAC3C,IAAI,SAAS,EAAE,K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AE,OAAO,EAAW,EAAE,EAAE,CAClE,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;CAC7E,CAAC"}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { ProductBundleItem } from '@unchainedshop/core-products';
|
|
2
2
|
export declare const BundleProduct: {
|
|
3
3
|
bundleItems(product: any): ProductBundleItem[];
|
|
4
|
+
catalogPrice(product: import("@unchainedshop/core-products").Product, { quantity, currencyCode: forcedCurrencyCode }: {
|
|
5
|
+
quantity?: number;
|
|
6
|
+
currencyCode?: string;
|
|
7
|
+
}, requestContext: import("../../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
8
|
+
simulatedPrice(product: import("@unchainedshop/core-products").Product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
|
|
9
|
+
quantity?: number;
|
|
10
|
+
currencyCode?: string;
|
|
11
|
+
useNetPrice?: boolean;
|
|
12
|
+
configuration?: import("@unchainedshop/core-products").ProductConfiguration[];
|
|
13
|
+
}, requestContext: import("../../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
14
|
+
leveledCatalogPrices(product: import("@unchainedshop/core-products").Product, { currencyCode: forcedCurrencyCode }: {
|
|
15
|
+
currencyCode?: string;
|
|
16
|
+
}, requestContext: import("../../../context.js").Context): Promise<{
|
|
17
|
+
minQuantity: number;
|
|
18
|
+
maxQuantity: number;
|
|
19
|
+
price: import("@unchainedshop/core-products").ProductPrice;
|
|
20
|
+
}[]>;
|
|
21
|
+
salesUnit({ commerce }: import("@unchainedshop/core-products").Product): string;
|
|
22
|
+
salesQuantityPerUnit({ commerce }: import("@unchainedshop/core-products").Product): string;
|
|
23
|
+
defaultOrderQuantity({ commerce }: import("@unchainedshop/core-products").Product): number;
|
|
4
24
|
__resolveType: (product: import("@unchainedshop/core-products").Product) => string;
|
|
5
25
|
proxies(product: import("@unchainedshop/core-products").Product, _: never, context: import("../../../context.js").Context): Promise<import("@unchainedshop/core-products").Product[]>;
|
|
6
26
|
assortmentPaths(product: import("@unchainedshop/core-products").Product, params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-bundle-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,eAAO,MAAM,aAAa;+BAGF,iBAAiB,EAAE
|
|
1
|
+
{"version":3,"file":"product-bundle-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,eAAO,MAAM,aAAa;+BAGF,iBAAiB,EAAE;;gBAIkC,CAAC;oBAAsB,CAAC;;;gBAA+e,CAAC;oBAA4B,CAAC;mBAA2B,CAAC;qBAA8B,CAAC;;;oBAA4yB,CAAC;;;;;;;;;;;;mBAAxzB,CAAC;;;;;;;YAAwoB,CAAC;;;mBAAmiB,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAA8T,CAAC;;;oBAAuP,CAAC;;;;;;;mBAAu6B,CAAC;;CADh3G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-bundle-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"product-bundle-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,WAAW;IAEd,WAAW,CAAC,OAAO;QACjB,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../src/schema/mutation.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"mutation.d.ts","sourceRoot":"","sources":["../../src/schema/mutation.ts"],"names":[],"mappings":";AAAA,wBAm5BE"}
|
package/lib/schema/mutation.js
CHANGED
|
@@ -226,12 +226,44 @@ export default [
|
|
|
226
226
|
doesn’t exists new delivery provider will be created with the provided ID.
|
|
227
227
|
"""
|
|
228
228
|
setOrderDeliveryProvider(orderId: ID!, deliveryProviderId: ID!): Order!
|
|
229
|
+
@deprecated(reason: "Use updateCart or updateCartDelivery* mutations instead")
|
|
229
230
|
|
|
230
231
|
"""
|
|
231
232
|
Change the payment method/provider to an order. If the payment provider
|
|
232
233
|
doesn’t exists new payment provider will be created with the provided ID.
|
|
233
234
|
"""
|
|
234
235
|
setOrderPaymentProvider(orderId: ID!, paymentProviderId: ID!): Order!
|
|
236
|
+
@deprecated(reason: "Use updateCart or updateCartPayment* mutations instead")
|
|
237
|
+
|
|
238
|
+
"""
|
|
239
|
+
Update the cart by changing the delivery provider and using a shipping specific configuration
|
|
240
|
+
"""
|
|
241
|
+
updateCartDeliveryShipping(
|
|
242
|
+
orderId: ID
|
|
243
|
+
deliveryProviderId: ID!
|
|
244
|
+
address: AddressInput
|
|
245
|
+
meta: JSON
|
|
246
|
+
): Order!
|
|
247
|
+
|
|
248
|
+
"""
|
|
249
|
+
Update the cart by changing the delivery provider and using a pick up specific configuration
|
|
250
|
+
"""
|
|
251
|
+
updateCartDeliveryPickUp(
|
|
252
|
+
orderId: ID
|
|
253
|
+
deliveryProviderId: ID!
|
|
254
|
+
orderPickUpLocationId: ID!
|
|
255
|
+
meta: JSON
|
|
256
|
+
): Order!
|
|
257
|
+
|
|
258
|
+
"""
|
|
259
|
+
Update the cart by changing the payment provider and using an invoice-type specific configuration
|
|
260
|
+
"""
|
|
261
|
+
updateCartPaymentInvoice(orderId: ID, paymentProviderId: ID!, meta: JSON): Order!
|
|
262
|
+
|
|
263
|
+
"""
|
|
264
|
+
Update the cart by changing the payment provider and using a generic specific configuration
|
|
265
|
+
"""
|
|
266
|
+
updateCartPaymentGeneric(orderId: ID, paymentProviderId: ID!, meta: JSON): Order!
|
|
235
267
|
|
|
236
268
|
"""
|
|
237
269
|
Update a Shipping Delivery Provider's specific configuration
|
|
@@ -240,7 +272,7 @@ export default [
|
|
|
240
272
|
orderDeliveryId: ID!
|
|
241
273
|
address: AddressInput
|
|
242
274
|
meta: JSON
|
|
243
|
-
): OrderDeliveryShipping!
|
|
275
|
+
): OrderDeliveryShipping! @deprecated(reason: "Use updateCartDeliveryShipping instead")
|
|
244
276
|
|
|
245
277
|
"""
|
|
246
278
|
Update a Pick Up Delivery Provider's specific configuration
|
|
@@ -249,22 +281,19 @@ export default [
|
|
|
249
281
|
orderDeliveryId: ID!
|
|
250
282
|
orderPickUpLocationId: ID!
|
|
251
283
|
meta: JSON
|
|
252
|
-
): OrderDeliveryPickUp!
|
|
253
|
-
|
|
254
|
-
"""
|
|
255
|
-
Update a Card Payment Provider's specific configuration
|
|
256
|
-
"""
|
|
257
|
-
updateOrderPaymentCard(orderPaymentId: ID!, meta: JSON): OrderPaymentCard!
|
|
284
|
+
): OrderDeliveryPickUp! @deprecated(reason: "Use updateCartDeliveryPickUp instead")
|
|
258
285
|
|
|
259
286
|
"""
|
|
260
287
|
Update an Invoice Payment Provider's specific configuration
|
|
261
288
|
"""
|
|
262
289
|
updateOrderPaymentInvoice(orderPaymentId: ID!, meta: JSON): OrderPaymentInvoice!
|
|
290
|
+
@deprecated(reason: "Use updateCartPaymentInvoice instead")
|
|
263
291
|
|
|
264
292
|
"""
|
|
265
293
|
Update a Generic Payment Provider's specific configuration
|
|
266
294
|
"""
|
|
267
295
|
updateOrderPaymentGeneric(orderPaymentId: ID!, meta: JSON): OrderPaymentGeneric!
|
|
296
|
+
@deprecated(reason: "Use updateCartPaymentGeneric instead")
|
|
268
297
|
|
|
269
298
|
"""
|
|
270
299
|
Remove an order while it's still open
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../src/schema/mutation.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../src/schema/mutation.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAi5Bb;CACF,CAAC"}
|
package/lib/schema/query.js
CHANGED
|
@@ -480,14 +480,14 @@ export default [
|
|
|
480
480
|
limit: Int = 10
|
|
481
481
|
offset: Int = 0
|
|
482
482
|
queryString: String
|
|
483
|
-
created:
|
|
483
|
+
created: DateFilterInput
|
|
484
484
|
sort: [SortOptionInput!]
|
|
485
485
|
): [Event!]!
|
|
486
486
|
|
|
487
487
|
"""
|
|
488
488
|
Get total count of all emitted events
|
|
489
489
|
"""
|
|
490
|
-
eventsCount(types: [String!], queryString: String, created:
|
|
490
|
+
eventsCount(types: [String!], queryString: String, created: DateFilterInput): Int!
|
|
491
491
|
|
|
492
492
|
"""
|
|
493
493
|
Determines if a token is valid/active for reset password
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/schema/types/events.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/schema/types/events.ts"],"names":[],"mappings":";AAAA,wBAwBE"}
|
|
@@ -11,9 +11,15 @@ export default [
|
|
|
11
11
|
created: Timestamp!
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
type EventStatisticReport {
|
|
15
|
+
date: Date!
|
|
16
|
+
count: Int!
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
type EventStatistics {
|
|
15
|
-
|
|
20
|
+
detail: [EventStatisticReport!]!
|
|
16
21
|
emitCount: Int!
|
|
22
|
+
type: String
|
|
17
23
|
}
|
|
18
24
|
`,
|
|
19
25
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/schema/types/events.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/schema/types/events.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;GAsBb;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/schema/types/order/order.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/schema/types/order/order.ts"],"names":[],"mappings":";AAAA,wBAoGE"}
|
|
@@ -81,13 +81,21 @@ export default [
|
|
|
81
81
|
updated: DateTime
|
|
82
82
|
user: User
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
type OrderStatisticsRecord {
|
|
85
|
+
date: String!
|
|
86
|
+
total: Price!
|
|
87
|
+
}
|
|
85
88
|
type OrderStatistics {
|
|
86
89
|
newCount: Int!
|
|
87
90
|
checkoutCount: Int!
|
|
88
91
|
rejectCount: Int!
|
|
89
92
|
confirmCount: Int!
|
|
90
93
|
fulfillCount: Int!
|
|
94
|
+
confirmRecords: [OrderStatisticsRecord!]!
|
|
95
|
+
checkoutRecords: [OrderStatisticsRecord!]!
|
|
96
|
+
rejectRecords: [OrderStatisticsRecord!]!
|
|
97
|
+
newRecords: [OrderStatisticsRecord!]!
|
|
98
|
+
fulfilledRecords: [OrderStatisticsRecord!]!
|
|
91
99
|
}
|
|
92
100
|
`,
|
|
93
101
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../src/schema/types/order/order.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../src/schema/types/order/order.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGb;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../src/schema/types/payment.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../src/schema/types/payment.ts"],"names":[],"mappings":";AAAA,wBAuDE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/schema/types/payment.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/schema/types/payment.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDb;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-product.d.ts","sourceRoot":"","sources":["../../../../src/schema/types/product/bundle-product.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"bundle-product.d.ts","sourceRoot":"","sources":["../../../../src/schema/types/product/bundle-product.ts"],"names":[],"mappings":";AAAA,wBAkDE"}
|
|
@@ -13,14 +13,18 @@ export default [
|
|
|
13
13
|
published: DateTime
|
|
14
14
|
media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
|
|
15
15
|
texts(forceLocale: Locale): ProductTexts
|
|
16
|
+
catalogPrice(quantity: Int = 1, currencyCode: String): Price
|
|
17
|
+
leveledCatalogPrices(currencyCode: String): [PriceLevel!]!
|
|
18
|
+
simulatedPrice(
|
|
19
|
+
currencyCode: String
|
|
20
|
+
useNetPrice: Boolean = false
|
|
21
|
+
quantity: Int = 1
|
|
22
|
+
configuration: [ProductConfigurationParameterInput!]
|
|
23
|
+
): Price @cacheControl(scope: PRIVATE, maxAge: 10)
|
|
24
|
+
salesUnit: String
|
|
25
|
+
salesQuantityPerUnit: String
|
|
26
|
+
defaultOrderQuantity: Int
|
|
16
27
|
bundleItems: [ProductBundleItem!]
|
|
17
|
-
reviews(
|
|
18
|
-
limit: Int = 10
|
|
19
|
-
offset: Int = 0
|
|
20
|
-
sort: [SortOptionInput!]
|
|
21
|
-
queryString: String
|
|
22
|
-
): [ProductReview!]!
|
|
23
|
-
reviewsCount(queryString: String): Int!
|
|
24
28
|
assortmentPaths: [ProductAssortmentPath!]!
|
|
25
29
|
proxies: [ConfigurableOrBundleProduct!]!
|
|
26
30
|
siblings(
|
|
@@ -29,6 +33,13 @@ export default [
|
|
|
29
33
|
offset: Int = 0
|
|
30
34
|
includeInactive: Boolean = false
|
|
31
35
|
): [Product!]!
|
|
36
|
+
reviews(
|
|
37
|
+
limit: Int = 10
|
|
38
|
+
offset: Int = 0
|
|
39
|
+
sort: [SortOptionInput!]
|
|
40
|
+
queryString: String
|
|
41
|
+
): [ProductReview!]!
|
|
42
|
+
reviewsCount(queryString: String): Int!
|
|
32
43
|
}
|
|
33
44
|
|
|
34
45
|
type ProductBundleItem @cacheControl(maxAge: 180) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-product.js","sourceRoot":"","sources":["../../../../src/schema/types/product/bundle-product.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"bundle-product.js","sourceRoot":"","sources":["../../../../src/schema/types/product/bundle-product.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDb;CACF,CAAC"}
|