@q2devel/q2-core 1.0.18 → 1.0.20
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/dist/api/content/getBanners.js +1 -1
- package/dist/api/products/getProducts.d.ts.map +1 -1
- package/dist/api/products/getProducts.js +4 -2
- package/dist/api/user/getUserCart.d.ts +1 -0
- package/dist/api/user/getUserCart.d.ts.map +1 -0
- package/dist/api/user/getUserCart.js +1 -0
- package/dist/types/ResetPassword.d.ts +8 -0
- package/dist/types/ResetPassword.d.ts.map +1 -0
- package/dist/types/ResetPassword.js +1 -0
- package/dist/types/content/ResetPassword.d.ts +8 -0
- package/dist/types/content/ResetPassword.d.ts.map +1 -0
- package/dist/types/content/ResetPassword.js +1 -0
- package/package.json +1 -1
- package/dist/api/products/product-detail/QuestionForm.service copy.d.ts +0 -4
- package/dist/api/products/product-detail/QuestionForm.service copy.d.ts.map +0 -1
- package/dist/api/products/product-detail/QuestionForm.service copy.js +0 -6
|
@@ -22,7 +22,7 @@ export const getBanners = async (ctx, { location, mapFn }) => {
|
|
|
22
22
|
id: item.drupal_internal__mid,
|
|
23
23
|
uuid: item.id,
|
|
24
24
|
type: item.type,
|
|
25
|
-
name: item.
|
|
25
|
+
name: item.filed_title,
|
|
26
26
|
field_description: item.field_description,
|
|
27
27
|
field_link: {
|
|
28
28
|
uri: item.field_link?.uri?.replace('internal:', ''),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProducts.d.ts","sourceRoot":"","sources":["../../../api/products/getProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAKtD,KAAK,iBAAiB,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU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AE,MAAM,CAAA;KACpB,CAAC,CAAA;IACF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC5E,CAAA;AAED,eAAO,MAAM,WAAW,GACpB,KAAK,WAAW,EAChB,oHAmBG,iBAAiB,KACrB,OAAO,CAAC,OAAO,EAAE,CA+DnB,CAAA;AAED,KAAK,qBAAqB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,eAAe,GACxB,KAAK,WAAW,EAChB,4BAA6C,qBAAqB,KACnE,OAAO,CAAC,MAAM,CAsChB,CAAA"}
|
|
@@ -50,10 +50,11 @@ export const getProducts = async (ctx, { locale, categoryId, productId, searchTe
|
|
|
50
50
|
params.addSort(sortData.title, sortData.direction);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
const queryString = params.getQueryString();
|
|
53
54
|
const url = currentLocale === ctx.defaultLocale
|
|
54
55
|
? `/jsonapi/index/variation`
|
|
55
56
|
: `/${currentLocale}/jsonapi/index/variation`;
|
|
56
|
-
const { data } = await ctx.axios.get(`${url}?${
|
|
57
|
+
const { data } = await ctx.axios.get(queryString ? `${url}?${queryString}` : url);
|
|
57
58
|
const resolvedProducts = mapIncludedResources(data, 5);
|
|
58
59
|
const mappedProducts = await Promise.all(resolvedProducts.map(async (item) => {
|
|
59
60
|
const base = mapProduct(item.product_id, item, ctx);
|
|
@@ -88,10 +89,11 @@ export const getProductCount = async (ctx, { categoryId = [], tag = '', cache =
|
|
|
88
89
|
params.addFilter(`product_id.${tag}`, '1');
|
|
89
90
|
}
|
|
90
91
|
params.addFilter('langcode', ctx.locale).addPageLimit(1);
|
|
92
|
+
const queryString = params.getQueryString();
|
|
91
93
|
const url = ctx.locale === ctx.defaultLocale
|
|
92
94
|
? `/jsonapi/index/variation`
|
|
93
95
|
: `/${ctx.locale}/jsonapi/index/variation`;
|
|
94
|
-
const { data } = await ctx.axios.get(`${url}?${
|
|
96
|
+
const { data } = await ctx.axios.get(queryString ? `${url}?${queryString}` : url);
|
|
95
97
|
if (cache && ctx.setCache) {
|
|
96
98
|
await ctx.setCache(cacheKey, data.meta?.count ?? 0);
|
|
97
99
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=getUserCart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserCart.d.ts","sourceRoot":"","sources":["../../../api/user/getUserCart.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../types/ResetPassword.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../types/content/ResetPassword.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
-
import { ProductDetailQuestionForm } from "./QuestionFormService.types";
|
|
3
|
-
export declare const sendProductDetailQuestionForm: (axiosInstance: AxiosInstance, request: ProductDetailQuestionForm, config?: AxiosRequestConfig) => Promise<void>;
|
|
4
|
-
//# sourceMappingURL=QuestionForm.service%20copy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuestionForm.service copy.d.ts","sourceRoot":"","sources":["../../../../api/products/product-detail/QuestionForm.service copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,eAAO,MAAM,6BAA6B,GACtC,eAAe,aAAa,EAC5B,SAAS,yBAAyB,EAClC,SAAQ,kBAAuB,KAChC,OAAO,CAAC,IAAI,CAKd,CAAA"}
|