@plentymarkets/shop-api 0.114.0 → 0.116.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/lib/api/__tests__/unit/doSaveBlocks.unit.spec.d.ts +2 -0
  2. package/lib/api/__tests__/unit/doSaveBlocks.unit.spec.d.ts.map +1 -0
  3. package/lib/api/__tests__/unit/getBlocks.unit.spec.d.ts +2 -0
  4. package/lib/api/__tests__/unit/getBlocks.unit.spec.d.ts.map +1 -0
  5. package/lib/api/doSaveBlocks/index.d.ts +2 -1
  6. package/lib/api/doSaveBlocks/index.d.ts.map +1 -1
  7. package/lib/api/getBlocks/index.d.ts +2 -0
  8. package/lib/api/getBlocks/index.d.ts.map +1 -1
  9. package/lib/api/getTranslations/index.d.ts +25 -0
  10. package/lib/api/getTranslations/index.d.ts.map +1 -0
  11. package/lib/api/index.d.ts +1 -0
  12. package/lib/api/index.d.ts.map +1 -1
  13. package/lib/index.cjs.js +52 -3
  14. package/lib/index.cjs.js.map +1 -1
  15. package/lib/index.es.js +52 -4
  16. package/lib/index.es.js.map +1 -1
  17. package/lib/types/api/blocks.d.ts +2 -0
  18. package/lib/types/api/blocks.d.ts.map +1 -1
  19. package/lib/types/api/index.d.ts +1 -0
  20. package/lib/types/api/index.d.ts.map +1 -1
  21. package/lib/types/api/translations.d.ts +4 -0
  22. package/lib/types/api/translations.d.ts.map +1 -0
  23. package/package.json +2 -2
  24. package/server/api/__tests__/unit/doSaveBlocks.unit.spec.d.ts +2 -0
  25. package/server/api/__tests__/unit/doSaveBlocks.unit.spec.d.ts.map +1 -0
  26. package/server/api/__tests__/unit/getBlocks.unit.spec.d.ts +2 -0
  27. package/server/api/__tests__/unit/getBlocks.unit.spec.d.ts.map +1 -0
  28. package/server/api/doSaveBlocks/index.d.ts +2 -1
  29. package/server/api/doSaveBlocks/index.d.ts.map +1 -1
  30. package/server/api/getBlocks/index.d.ts +2 -0
  31. package/server/api/getBlocks/index.d.ts.map +1 -1
  32. package/server/api/getTranslations/index.d.ts +25 -0
  33. package/server/api/getTranslations/index.d.ts.map +1 -0
  34. package/server/api/index.d.ts +1 -0
  35. package/server/api/index.d.ts.map +1 -1
  36. package/server/index.js +52 -3
  37. package/server/index.js.map +1 -1
  38. package/server/types/api/blocks.d.ts +2 -0
  39. package/server/types/api/blocks.d.ts.map +1 -1
  40. package/server/types/api/index.d.ts +1 -0
  41. package/server/types/api/index.d.ts.map +1 -1
  42. package/server/types/api/translations.d.ts +4 -0
  43. package/server/types/api/translations.d.ts.map +1 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=doSaveBlocks.unit.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doSaveBlocks.unit.spec.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/unit/doSaveBlocks.unit.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getBlocks.unit.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBlocks.unit.spec.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/unit/getBlocks.unit.spec.ts"],"names":[],"mappings":""}
@@ -12,6 +12,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
12
12
  * entityType: category/item/immutable.
13
13
  * entityId: id of the category/item.
14
14
  * blocks: blocks JSON.
15
+
15
16
  *
16
17
  * @returns
17
18
  * Category facets.
@@ -21,7 +22,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
21
22
  * const { data } = await useSdk().plentysystems.doSaveBlocks({
22
23
  * identifier: "index",
23
24
  * entityType: "immutable",
24
- * blocks: [],
25
+ * blocks: []
25
26
  * });
26
27
  * ```
27
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doSaveBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,YACd,+BAA+B,UAChC,kBAAkB,KACzB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAmBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doSaveBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,YACd,+BAA+B,UAChC,kBAAkB,KACzB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAmBvB,CAAC"}
@@ -10,6 +10,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
10
10
  * @param { GetBlocksParams } params
11
11
  * identifier: id of the category/item or url of immutable page.
12
12
  * type: category/item/immutable.
13
+ * blocks: blocks to fetch, comma-separated list of block names (e.g., 'TextCard,Carousel').
13
14
  *
14
15
  * @returns
15
16
  * Category facets.
@@ -19,6 +20,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
19
20
  * const { data } = await useSdk().plentysystems.getBlocks({
20
21
  * identifier: 'shipping',
21
22
  * type: "immutable",
23
+ * blocks: 'TextCard,Carousel'
22
24
  * });
23
25
  * ```
24
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,IAAI,EAEJ,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,SAAS,YACX,+BAA+B,UAChC,eAAe,KACtB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAuBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,IAAI,EAEJ,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,YACX,+BAA+B,UAChC,eAAe,KACtB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAiCvB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { Data, GetTranslationsParams } from '../../types/api';
2
+ import { PlentysystemsIntegrationContext } from '../../types/context';
3
+ /**
4
+ * Method getTranslations - Used to get the translations.
5
+ *
6
+ * @remarks
7
+ * * Calls /rest/storefront/i18n/translations/{locale} endpoint.
8
+ * * Method should be used to get the translations for application.
9
+ *
10
+ * @param context
11
+ * @param { GetTranslationsParams } params
12
+ * locale: locale of the translations to fetch.
13
+ *
14
+ * @returns
15
+ * translations string.
16
+ *
17
+ * @example
18
+ * ``` ts
19
+ * const { data } = await useSdk().plentysystems.getTranslations({
20
+ * locale: 'en',
21
+ * });
22
+ * ```
23
+ */
24
+ export declare const getTranslations: (context: PlentysystemsIntegrationContext, params: GetTranslationsParams) => Promise<Data<string>>;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getTranslations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EAEJ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,YACjB,+BAA+B,UAChC,qBAAqB,KAC5B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAkBtB,CAAC"}
@@ -98,5 +98,6 @@ export { doPatchMolliePayment } from './doPatchMolliePayment';
98
98
  export { getMolliePaymentAndUpdateStatus } from './getMolliePaymentAndUpdateStatus';
99
99
  export { getPackstations } from './getPackstations';
100
100
  export { doHandlePayPalPaymentFundingSources } from './doHandlePayPalPaymentFundingSources';
101
+ export { getTranslations } from './getTranslations';
101
102
  export * from './paypalModule';
102
103
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,M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s.js CHANGED
@@ -2613,6 +2613,7 @@ const doCaptureMolliePayment = async (context, params) => {
2613
2613
  * @param { GetBlocksParams } params
2614
2614
  * identifier: id of the category/item or url of immutable page.
2615
2615
  * type: category/item/immutable.
2616
+ * blocks: blocks to fetch, comma-separated list of block names (e.g., 'TextCard,Carousel').
2616
2617
  *
2617
2618
  * @returns
2618
2619
  * Category facets.
@@ -2622,6 +2623,7 @@ const doCaptureMolliePayment = async (context, params) => {
2622
2623
  * const { data } = await useSdk().plentysystems.getBlocks({
2623
2624
  * identifier: 'shipping',
2624
2625
  * type: "immutable",
2626
+ * blocks: 'TextCard,Carousel'
2625
2627
  * });
2626
2628
  * ```
2627
2629
  */
@@ -2629,13 +2631,19 @@ const getBlocks = async (context, params) => {
2629
2631
  try {
2630
2632
  const identifier = params.identifier;
2631
2633
  const url = new URL(`/rest/storefront/blocks/${identifier}`, context.config.api.url);
2632
- url.searchParams.set('type', params.type);
2634
+ if (params.type) {
2635
+ url.searchParams.set('type', params.type);
2636
+ }
2637
+ if (params.blocks) {
2638
+ url.searchParams.append('blocks', params.blocks);
2639
+ }
2633
2640
  const { data } = await context.client.get(url.href);
2634
2641
  return { data: data.data.blocks };
2635
2642
  }
2636
2643
  catch (error) {
2637
2644
  const statusCode = error?.response?.status.toString() || '500';
2638
- const message = error?.response?.data?.error?.message || error.message;
2645
+ const message = error?.response?.data?.error?.message ||
2646
+ error.message;
2639
2647
  throw new ApiError({
2640
2648
  key: 'unknownError',
2641
2649
  code: statusCode,
@@ -2657,6 +2665,7 @@ const getBlocks = async (context, params) => {
2657
2665
  * entityType: category/item/immutable.
2658
2666
  * entityId: id of the category/item.
2659
2667
  * blocks: blocks JSON.
2668
+
2660
2669
  *
2661
2670
  * @returns
2662
2671
  * Category facets.
@@ -2666,7 +2675,7 @@ const getBlocks = async (context, params) => {
2666
2675
  * const { data } = await useSdk().plentysystems.doSaveBlocks({
2667
2676
  * identifier: "index",
2668
2677
  * entityType: "immutable",
2669
- * blocks: [],
2678
+ * blocks: []
2670
2679
  * });
2671
2680
  * ```
2672
2681
  */
@@ -2924,6 +2933,45 @@ const doHandlePayPalPaymentFundingSources = async (context, params) => {
2924
2933
  return { data: data };
2925
2934
  };
2926
2935
 
2936
+ /**
2937
+ * Method getTranslations - Used to get the translations.
2938
+ *
2939
+ * @remarks
2940
+ * * Calls /rest/storefront/i18n/translations/{locale} endpoint.
2941
+ * * Method should be used to get the translations for application.
2942
+ *
2943
+ * @param context
2944
+ * @param { GetTranslationsParams } params
2945
+ * locale: locale of the translations to fetch.
2946
+ *
2947
+ * @returns
2948
+ * translations string.
2949
+ *
2950
+ * @example
2951
+ * ``` ts
2952
+ * const { data } = await useSdk().plentysystems.getTranslations({
2953
+ * locale: 'en',
2954
+ * });
2955
+ * ```
2956
+ */
2957
+ const getTranslations = async (context, params) => {
2958
+ try {
2959
+ const url = new URL(`/rest/storefront/i18n/translations/${params.locale}`, context.config.api.url);
2960
+ const { data } = await context.client.get(url.href);
2961
+ return { data: data };
2962
+ }
2963
+ catch (error) {
2964
+ const statusCode = error?.response?.status.toString() || '500';
2965
+ const message = error?.response?.data?.error?.message || error.message;
2966
+ throw new ApiError({
2967
+ key: 'unknownError',
2968
+ code: statusCode,
2969
+ message: message,
2970
+ cause: '',
2971
+ });
2972
+ }
2973
+ };
2974
+
2927
2975
  /**
2928
2976
  * Method doCreatePayPalOrder - Used to create a PayPal order.
2929
2977
  *
@@ -6376,6 +6424,7 @@ exports.getRobots = getRobots$2;
6376
6424
  exports.getSearch = getSearch;
6377
6425
  exports.getSession = getSession;
6378
6426
  exports.getShippingProvider = getShippingProvider$1;
6427
+ exports.getTranslations = getTranslations;
6379
6428
  exports.getWishlist = getWishlist;
6380
6429
  exports.heroesGetters = heroesGetters;
6381
6430
  exports.legalGetters = legalGetters;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/index.es.js CHANGED
@@ -2605,6 +2605,7 @@ const doCaptureMolliePayment = async (context, params) => {
2605
2605
  * @param { GetBlocksParams } params
2606
2606
  * identifier: id of the category/item or url of immutable page.
2607
2607
  * type: category/item/immutable.
2608
+ * blocks: blocks to fetch, comma-separated list of block names (e.g., 'TextCard,Carousel').
2608
2609
  *
2609
2610
  * @returns
2610
2611
  * Category facets.
@@ -2614,6 +2615,7 @@ const doCaptureMolliePayment = async (context, params) => {
2614
2615
  * const { data } = await useSdk().plentysystems.getBlocks({
2615
2616
  * identifier: 'shipping',
2616
2617
  * type: "immutable",
2618
+ * blocks: 'TextCard,Carousel'
2617
2619
  * });
2618
2620
  * ```
2619
2621
  */
@@ -2621,13 +2623,19 @@ const getBlocks = async (context, params) => {
2621
2623
  try {
2622
2624
  const identifier = params.identifier;
2623
2625
  const url = new URL(`/rest/storefront/blocks/${identifier}`, context.config.api.url);
2624
- url.searchParams.set('type', params.type);
2626
+ if (params.type) {
2627
+ url.searchParams.set('type', params.type);
2628
+ }
2629
+ if (params.blocks) {
2630
+ url.searchParams.append('blocks', params.blocks);
2631
+ }
2625
2632
  const { data } = await context.client.get(url.href);
2626
2633
  return { data: data.data.blocks };
2627
2634
  }
2628
2635
  catch (error) {
2629
2636
  const statusCode = error?.response?.status.toString() || '500';
2630
- const message = error?.response?.data?.error?.message || error.message;
2637
+ const message = error?.response?.data?.error?.message ||
2638
+ error.message;
2631
2639
  throw new ApiError({
2632
2640
  key: 'unknownError',
2633
2641
  code: statusCode,
@@ -2649,6 +2657,7 @@ const getBlocks = async (context, params) => {
2649
2657
  * entityType: category/item/immutable.
2650
2658
  * entityId: id of the category/item.
2651
2659
  * blocks: blocks JSON.
2660
+
2652
2661
  *
2653
2662
  * @returns
2654
2663
  * Category facets.
@@ -2658,7 +2667,7 @@ const getBlocks = async (context, params) => {
2658
2667
  * const { data } = await useSdk().plentysystems.doSaveBlocks({
2659
2668
  * identifier: "index",
2660
2669
  * entityType: "immutable",
2661
- * blocks: [],
2670
+ * blocks: []
2662
2671
  * });
2663
2672
  * ```
2664
2673
  */
@@ -2916,6 +2925,45 @@ const doHandlePayPalPaymentFundingSources = async (context, params) => {
2916
2925
  return { data: data };
2917
2926
  };
2918
2927
 
2928
+ /**
2929
+ * Method getTranslations - Used to get the translations.
2930
+ *
2931
+ * @remarks
2932
+ * * Calls /rest/storefront/i18n/translations/{locale} endpoint.
2933
+ * * Method should be used to get the translations for application.
2934
+ *
2935
+ * @param context
2936
+ * @param { GetTranslationsParams } params
2937
+ * locale: locale of the translations to fetch.
2938
+ *
2939
+ * @returns
2940
+ * translations string.
2941
+ *
2942
+ * @example
2943
+ * ``` ts
2944
+ * const { data } = await useSdk().plentysystems.getTranslations({
2945
+ * locale: 'en',
2946
+ * });
2947
+ * ```
2948
+ */
2949
+ const getTranslations = async (context, params) => {
2950
+ try {
2951
+ const url = new URL(`/rest/storefront/i18n/translations/${params.locale}`, context.config.api.url);
2952
+ const { data } = await context.client.get(url.href);
2953
+ return { data: data };
2954
+ }
2955
+ catch (error) {
2956
+ const statusCode = error?.response?.status.toString() || '500';
2957
+ const message = error?.response?.data?.error?.message || error.message;
2958
+ throw new ApiError({
2959
+ key: 'unknownError',
2960
+ code: statusCode,
2961
+ message: message,
2962
+ cause: '',
2963
+ });
2964
+ }
2965
+ };
2966
+
2919
2967
  /**
2920
2968
  * Method doCreatePayPalOrder - Used to create a PayPal order.
2921
2969
  *
@@ -6260,5 +6308,5 @@ const barcodeGetters = {
6260
6308
  getReferrers,
6261
6309
  };
6262
6310
 
6263
- export { AddressOptionType, AddressType, ApiError, additionalInformationGetters, bannerGetters, barcodeGetters, cartGetters, categoryEntryGetters, categoryGetters, categoryTreeGetters, companyGetters, cookieBarGetters, countryGetters, deleteAddress, deleteAllCartItems, deleteCart, deleteCartItem, deleteCategory, deleteCoupon, deleteNewsletterSubscription, deleteReview, deleteWishlistItem, doAcceptOffer, doAddCartItem, doAddCartItems, doAddCategory, doAddCoupon, doAddWishlistItem, doAdditionalInformation, doApplyConfiguration, doApprovePayPalTransaction, doAttachMolliePaymentToOrder, doAttachPaymentToOrder, doCaptureMolliePayment, doCapturePayPalOrder, doCapturePayPalOrderV2, doChangeUserPassword, doCreateMolliePaymentFromBasket, doCreateMolliePaymentFromOrder, doCreatePayPalCreditCardTransaction, doCreatePayPalOrder, doCreatePayPalTransaction, doCreatePlentyPaymentFromMolliePayment, doCreatePlentyPaymentFromPayPalOrder, doCustomerContactMail, doEmailConfirmation, doExecutePayment, doHandleAllowPaymentApplePay, doHandleAllowPaymentGooglePay, doHandlePayPalPaymentFundingSources, doLogin, doLoginAsGuest, doLogoutUser, doMakeOrderReturn, doMigrateGuestOrderToCustomer, doOrderAgainInformation, doPatchMolliePayment, doPlaceOrder, doPreparePayment, doRegisterUser, doRejectOffer, doReview, doSaveAddress, doSaveBlocks, doSavePreferredDeliveryServices, doSubscribeNewsletter, doUploadOrderPropertyFile, facetGetters, forgotPasswordGetters, getActiveShippingCountries, getAddresses$1 as getAddresses, getAggregatedCountries, getAuthenticatedReview, getBlocks, getCart, getCategoriesSearch, getCategoryById, getCategoryTemplate, getCategoryTree, getExecutePayPalOrder, getFacet, getInit, getLegalTexts, getMolliePayment, getMolliePaymentAndUpdateStatus, getMollieSettings, getOffer, getOrder, getOrderDocument, getOrderPropertyFile, getOrders$1 as getOrders, getPackstations, getPayPalDataClientToken, getPayPalFraudId, getPayPalMerchantAndClientIds, getPayPalOrder, getPayPalOrderDetails, getPaymentProviders, getPreferredDeliveryLocationShippingProfiles, getPreferredDeliveryServices$1 as getPreferredDeliveryServices, getPreferredDeliveryShippingProfiles, getProduct, getReturnReasons$1 as getReturnReasons, getReturns, getReview, getReviewAverage, getRobots$2 as getRobots, getSearch, getSession, getShippingProvider$1 as getShippingProvider, getWishlist, heroesGetters, legalGetters, localesGetters, manufacturerGetters, offerGetters, orderDocumentGetters, orderGetters, paginationGetters, paymentProviderGetters, paypalGetters, productAttributeGetters, productBundleGetters, productGetters, productImageGetters, productPriceGetters, productPropertyGetters, productSeoSettingsGetters, returnGetters, reviewGetters, robotGetters, setCartItemQuantity, setCategorySettings, setCategoryTemplate, setCheckoutAddress, setConfiguration, setMobilePaymentProviderList, setPaymentProvider, setReview, setShippingProvider, shippingProviderGetters, tagGetters, userAddressGetters, userGetters, wishlistGetters };
6311
+ export { AddressOptionType, AddressType, ApiError, additionalInformationGetters, bannerGetters, barcodeGetters, cartGetters, categoryEntryGetters, categoryGetters, categoryTreeGetters, companyGetters, cookieBarGetters, countryGetters, deleteAddress, deleteAllCartItems, deleteCart, deleteCartItem, deleteCategory, deleteCoupon, deleteNewsletterSubscription, deleteReview, deleteWishlistItem, doAcceptOffer, doAddCartItem, doAddCartItems, doAddCategory, doAddCoupon, doAddWishlistItem, doAdditionalInformation, doApplyConfiguration, doApprovePayPalTransaction, doAttachMolliePaymentToOrder, doAttachPaymentToOrder, doCaptureMolliePayment, doCapturePayPalOrder, doCapturePayPalOrderV2, doChangeUserPassword, doCreateMolliePaymentFromBasket, doCreateMolliePaymentFromOrder, doCreatePayPalCreditCardTransaction, doCreatePayPalOrder, doCreatePayPalTransaction, doCreatePlentyPaymentFromMolliePayment, doCreatePlentyPaymentFromPayPalOrder, doCustomerContactMail, doEmailConfirmation, doExecutePayment, doHandleAllowPaymentApplePay, doHandleAllowPaymentGooglePay, doHandlePayPalPaymentFundingSources, doLogin, doLoginAsGuest, doLogoutUser, doMakeOrderReturn, doMigrateGuestOrderToCustomer, doOrderAgainInformation, doPatchMolliePayment, doPlaceOrder, doPreparePayment, doRegisterUser, doRejectOffer, doReview, doSaveAddress, doSaveBlocks, doSavePreferredDeliveryServices, doSubscribeNewsletter, doUploadOrderPropertyFile, facetGetters, forgotPasswordGetters, getActiveShippingCountries, getAddresses$1 as getAddresses, getAggregatedCountries, getAuthenticatedReview, getBlocks, getCart, getCategoriesSearch, getCategoryById, getCategoryTemplate, getCategoryTree, getExecutePayPalOrder, getFacet, getInit, getLegalTexts, getMolliePayment, getMolliePaymentAndUpdateStatus, getMollieSettings, getOffer, getOrder, getOrderDocument, getOrderPropertyFile, getOrders$1 as getOrders, getPackstations, getPayPalDataClientToken, getPayPalFraudId, getPayPalMerchantAndClientIds, getPayPalOrder, getPayPalOrderDetails, getPaymentProviders, getPreferredDeliveryLocationShippingProfiles, getPreferredDeliveryServices$1 as getPreferredDeliveryServices, getPreferredDeliveryShippingProfiles, getProduct, getReturnReasons$1 as getReturnReasons, getReturns, getReview, getReviewAverage, getRobots$2 as getRobots, getSearch, getSession, getShippingProvider$1 as getShippingProvider, getTranslations, getWishlist, heroesGetters, legalGetters, localesGetters, manufacturerGetters, offerGetters, orderDocumentGetters, orderGetters, paginationGetters, paymentProviderGetters, paypalGetters, productAttributeGetters, productBundleGetters, productGetters, productImageGetters, productPriceGetters, productPropertyGetters, productSeoSettingsGetters, returnGetters, reviewGetters, robotGetters, setCartItemQuantity, setCategorySettings, setCategoryTemplate, setCheckoutAddress, setConfiguration, setMobilePaymentProviderList, setPaymentProvider, setReview, setShippingProvider, shippingProviderGetters, tagGetters, userAddressGetters, userGetters, wishlistGetters };
6264
6312
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  export interface GetBlocksParams {
2
2
  identifier: string | number;
3
3
  type: string;
4
+ blocks?: string;
4
5
  }
5
6
  export interface Block {
6
7
  name: string;
@@ -8,6 +9,7 @@ export interface Block {
8
9
  configuration?: unknown;
9
10
  meta: {
10
11
  uuid: string;
12
+ isGlobalTemplate?: boolean;
11
13
  };
12
14
  content: unknown;
13
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../src/types/api/blocks.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;KACb,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../src/types/api/blocks.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -40,4 +40,5 @@ export * from './mollie';
40
40
  export * from './blocks';
41
41
  export * from './categoriesSearch';
42
42
  export * from './endpoints';
43
+ export * from './translations';
43
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface GetTranslationsParams {
2
+ locale: string;
3
+ }
4
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/api/translations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plentymarkets/shop-api",
3
- "version": "0.114.0",
3
+ "version": "0.116.0",
4
4
  "sideEffects": false,
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -46,5 +46,5 @@
46
46
  "lib/**/*",
47
47
  "server/**/*"
48
48
  ],
49
- "gitHead": "0ef34d121c8e17ffeec0adcc329d94a69559febc"
49
+ "gitHead": "586c03d529739a983ba7228e3fa0b9406917c43c"
50
50
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=doSaveBlocks.unit.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doSaveBlocks.unit.spec.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/unit/doSaveBlocks.unit.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getBlocks.unit.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBlocks.unit.spec.d.ts","sourceRoot":"","sources":["../../../../src/api/__tests__/unit/getBlocks.unit.spec.ts"],"names":[],"mappings":""}
@@ -12,6 +12,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
12
12
  * entityType: category/item/immutable.
13
13
  * entityId: id of the category/item.
14
14
  * blocks: blocks JSON.
15
+
15
16
  *
16
17
  * @returns
17
18
  * Category facets.
@@ -21,7 +22,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
21
22
  * const { data } = await useSdk().plentysystems.doSaveBlocks({
22
23
  * identifier: "index",
23
24
  * entityType: "immutable",
24
- * blocks: [],
25
+ * blocks: []
25
26
  * });
26
27
  * ```
27
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doSaveBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,YACd,+BAA+B,UAChC,kBAAkB,KACzB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAmBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/doSaveBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,YACd,+BAA+B,UAChC,kBAAkB,KACzB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAmBvB,CAAC"}
@@ -10,6 +10,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
10
10
  * @param { GetBlocksParams } params
11
11
  * identifier: id of the category/item or url of immutable page.
12
12
  * type: category/item/immutable.
13
+ * blocks: blocks to fetch, comma-separated list of block names (e.g., 'TextCard,Carousel').
13
14
  *
14
15
  * @returns
15
16
  * Category facets.
@@ -19,6 +20,7 @@ import { PlentysystemsIntegrationContext } from '../../types/context';
19
20
  * const { data } = await useSdk().plentysystems.getBlocks({
20
21
  * identifier: 'shipping',
21
22
  * type: "immutable",
23
+ * blocks: 'TextCard,Carousel'
22
24
  * });
23
25
  * ```
24
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,IAAI,EAEJ,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,SAAS,YACX,+BAA+B,UAChC,eAAe,KACtB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAuBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getBlocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,IAAI,EAEJ,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,YACX,+BAA+B,UAChC,eAAe,KACtB,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAiCvB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { Data, GetTranslationsParams } from '../../types/api';
2
+ import { PlentysystemsIntegrationContext } from '../../types/context';
3
+ /**
4
+ * Method getTranslations - Used to get the translations.
5
+ *
6
+ * @remarks
7
+ * * Calls /rest/storefront/i18n/translations/{locale} endpoint.
8
+ * * Method should be used to get the translations for application.
9
+ *
10
+ * @param context
11
+ * @param { GetTranslationsParams } params
12
+ * locale: locale of the translations to fetch.
13
+ *
14
+ * @returns
15
+ * translations string.
16
+ *
17
+ * @example
18
+ * ``` ts
19
+ * const { data } = await useSdk().plentysystems.getTranslations({
20
+ * locale: 'en',
21
+ * });
22
+ * ```
23
+ */
24
+ export declare const getTranslations: (context: PlentysystemsIntegrationContext, params: GetTranslationsParams) => Promise<Data<string>>;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/getTranslations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EAEJ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,YACjB,+BAA+B,UAChC,qBAAqB,KAC5B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAkBtB,CAAC"}
@@ -98,5 +98,6 @@ export { doPatchMolliePayment } from './doPatchMolliePayment';
98
98
  export { getMolliePaymentAndUpdateStatus } from './getMolliePaymentAndUpdateStatus';
99
99
  export { getPackstations } from './getPackstations';
100
100
  export { doHandlePayPalPaymentFundingSources } from './doHandlePayPalPaymentFundingSources';
101
+ export { getTranslations } from './getTranslations';
101
102
  export * from './paypalModule';
102
103
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACp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gBAAgB,CAAC"}
package/server/index.js CHANGED
@@ -2617,6 +2617,7 @@ const doCaptureMolliePayment = async (context, params) => {
2617
2617
  * @param { GetBlocksParams } params
2618
2618
  * identifier: id of the category/item or url of immutable page.
2619
2619
  * type: category/item/immutable.
2620
+ * blocks: blocks to fetch, comma-separated list of block names (e.g., 'TextCard,Carousel').
2620
2621
  *
2621
2622
  * @returns
2622
2623
  * Category facets.
@@ -2626,6 +2627,7 @@ const doCaptureMolliePayment = async (context, params) => {
2626
2627
  * const { data } = await useSdk().plentysystems.getBlocks({
2627
2628
  * identifier: 'shipping',
2628
2629
  * type: "immutable",
2630
+ * blocks: 'TextCard,Carousel'
2629
2631
  * });
2630
2632
  * ```
2631
2633
  */
@@ -2633,13 +2635,19 @@ const getBlocks = async (context, params) => {
2633
2635
  try {
2634
2636
  const identifier = params.identifier;
2635
2637
  const url = new URL(`/rest/storefront/blocks/${identifier}`, context.config.api.url);
2636
- url.searchParams.set('type', params.type);
2638
+ if (params.type) {
2639
+ url.searchParams.set('type', params.type);
2640
+ }
2641
+ if (params.blocks) {
2642
+ url.searchParams.append('blocks', params.blocks);
2643
+ }
2637
2644
  const { data } = await context.client.get(url.href);
2638
2645
  return { data: data.data.blocks };
2639
2646
  }
2640
2647
  catch (error) {
2641
2648
  const statusCode = error?.response?.status.toString() || '500';
2642
- const message = error?.response?.data?.error?.message || error.message;
2649
+ const message = error?.response?.data?.error?.message ||
2650
+ error.message;
2643
2651
  throw new ApiError({
2644
2652
  key: 'unknownError',
2645
2653
  code: statusCode,
@@ -2661,6 +2669,7 @@ const getBlocks = async (context, params) => {
2661
2669
  * entityType: category/item/immutable.
2662
2670
  * entityId: id of the category/item.
2663
2671
  * blocks: blocks JSON.
2672
+
2664
2673
  *
2665
2674
  * @returns
2666
2675
  * Category facets.
@@ -2670,7 +2679,7 @@ const getBlocks = async (context, params) => {
2670
2679
  * const { data } = await useSdk().plentysystems.doSaveBlocks({
2671
2680
  * identifier: "index",
2672
2681
  * entityType: "immutable",
2673
- * blocks: [],
2682
+ * blocks: []
2674
2683
  * });
2675
2684
  * ```
2676
2685
  */
@@ -2928,6 +2937,45 @@ const doHandlePayPalPaymentFundingSources = async (context, params) => {
2928
2937
  return { data: data };
2929
2938
  };
2930
2939
 
2940
+ /**
2941
+ * Method getTranslations - Used to get the translations.
2942
+ *
2943
+ * @remarks
2944
+ * * Calls /rest/storefront/i18n/translations/{locale} endpoint.
2945
+ * * Method should be used to get the translations for application.
2946
+ *
2947
+ * @param context
2948
+ * @param { GetTranslationsParams } params
2949
+ * locale: locale of the translations to fetch.
2950
+ *
2951
+ * @returns
2952
+ * translations string.
2953
+ *
2954
+ * @example
2955
+ * ``` ts
2956
+ * const { data } = await useSdk().plentysystems.getTranslations({
2957
+ * locale: 'en',
2958
+ * });
2959
+ * ```
2960
+ */
2961
+ const getTranslations = async (context, params) => {
2962
+ try {
2963
+ const url = new URL(`/rest/storefront/i18n/translations/${params.locale}`, context.config.api.url);
2964
+ const { data } = await context.client.get(url.href);
2965
+ return { data: data };
2966
+ }
2967
+ catch (error) {
2968
+ const statusCode = error?.response?.status.toString() || '500';
2969
+ const message = error?.response?.data?.error?.message || error.message;
2970
+ throw new ApiError({
2971
+ key: 'unknownError',
2972
+ code: statusCode,
2973
+ message: message,
2974
+ cause: '',
2975
+ });
2976
+ }
2977
+ };
2978
+
2931
2979
  /**
2932
2980
  * Method doCreatePayPalOrder - Used to create a PayPal order.
2933
2981
  *
@@ -3149,6 +3197,7 @@ var api = /*#__PURE__*/Object.freeze({
3149
3197
  getMolliePaymentAndUpdateStatus: getMolliePaymentAndUpdateStatus,
3150
3198
  getPackstations: getPackstations,
3151
3199
  doHandlePayPalPaymentFundingSources: doHandlePayPalPaymentFundingSources,
3200
+ getTranslations: getTranslations,
3152
3201
  doCreatePayPalOrder: doCreatePayPalOrder,
3153
3202
  doCreatePlentyPaymentFromPayPalOrder: doCreatePlentyPaymentFromPayPalOrder,
3154
3203
  getPayPalOrder: getPayPalOrder,
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  export interface GetBlocksParams {
2
2
  identifier: string | number;
3
3
  type: string;
4
+ blocks?: string;
4
5
  }
5
6
  export interface Block {
6
7
  name: string;
@@ -8,6 +9,7 @@ export interface Block {
8
9
  configuration?: unknown;
9
10
  meta: {
10
11
  uuid: string;
12
+ isGlobalTemplate?: boolean;
11
13
  };
12
14
  content: unknown;
13
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../src/types/api/blocks.ts"],"names":[],"mappings":"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GAAG,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -40,4 +40,5 @@ export * from './mollie';
40
40
  export * from './blocks';
41
41
  export * from './categoriesSearch';
42
42
  export * from './endpoints';
43
+ export * from './translations';
43
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;A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Ac,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface GetTranslationsParams {
2
+ locale: string;
3
+ }
4
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/api/translations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB"}