nextemos 5.1.5 → 5.1.7

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.
@@ -16,5 +16,7 @@ export declare enum ProductApiFlags {
16
16
  JustDefaultImageDocument = 8192,
17
17
  JustDefaultVideoDocument = 16384,
18
18
  IsShowedListPage = 32768,
19
- IsShowedDetailPage = 65536
19
+ IsShowedDetailPage = 65536,
20
+ ReturnAllCategoryBuckets = 131072,
21
+ ReturnAllAttributes = 262144
20
22
  }
@@ -21,4 +21,6 @@ var ProductApiFlags;
21
21
  ProductApiFlags[ProductApiFlags["JustDefaultVideoDocument"] = 16384] = "JustDefaultVideoDocument";
22
22
  ProductApiFlags[ProductApiFlags["IsShowedListPage"] = 32768] = "IsShowedListPage";
23
23
  ProductApiFlags[ProductApiFlags["IsShowedDetailPage"] = 65536] = "IsShowedDetailPage";
24
+ ProductApiFlags[ProductApiFlags["ReturnAllCategoryBuckets"] = 131072] = "ReturnAllCategoryBuckets";
25
+ ProductApiFlags[ProductApiFlags["ReturnAllAttributes"] = 262144] = "ReturnAllAttributes";
24
26
  })(ProductApiFlags || (exports.ProductApiFlags = ProductApiFlags = {}));
@@ -68,13 +68,13 @@ const fetchRequest = () => {
68
68
  // Cache seçeneği varsa onu kullan
69
69
  if (options.cache)
70
70
  requestOptions.cache = options.cache;
71
- if (["debug", "info"].includes(FETCH_OPTIONS.LOG_LEVEL))
71
+ if (["debug", "info", "trace"].includes(FETCH_OPTIONS.LOG_LEVEL))
72
72
  console.log(`Fetch Request: ${method}`, apiURL.toString(), FETCH_OPTIONS.LOG_LEVEL === "debug" ? requestOptions : "");
73
73
  try {
74
74
  const response = yield fetch(apiURL.toString(), requestOptions);
75
75
  if (!response.ok) {
76
76
  const errorDetail = yield response.text();
77
- if (["debug", "info"].includes(FETCH_OPTIONS.LOG_LEVEL))
77
+ if (["debug", "info", "trace"].includes(FETCH_OPTIONS.LOG_LEVEL))
78
78
  console.log("Fetch Error: ", {
79
79
  api: apiURL,
80
80
  apiUrl: apiURL.toString(),
@@ -25,7 +25,7 @@ exports.defaultConfig = {
25
25
  ADDRESS: "address",
26
26
  BANNER: "banner",
27
27
  BLOG: "blog",
28
- CAMPAIGN: "campaign",
28
+ CAMPAIGN: "campaigngateway",
29
29
  ENVIRONMENT: "environment",
30
30
  LOCALIZATION: "localization",
31
31
  MEMBER: "member",
@@ -52,4 +52,5 @@ catch (error) {
52
52
  }
53
53
  // Merge with default config to ensure all required fields exist
54
54
  const NEXTEMOS_CONFIG = Object.assign(Object.assign({}, exports.defaultConfig), loadedConfig);
55
+ NEXTEMOS_CONFIG.KEYCLOAK.CLIENT_SECRET = process.env.KEYCLOAK_CLIENT_SECRET;
55
56
  exports.default = NEXTEMOS_CONFIG;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.1.5",
3
+ "version": "5.1.7",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",