sales-frontend-api 0.0.174 → 0.0.176

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/server.js CHANGED
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  ));
29
29
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
30
30
 
31
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
31
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
32
32
  var require_cookies = __commonJS({
33
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
33
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports, module) {
34
34
  var __defProp2 = Object.defineProperty;
35
35
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
36
36
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -354,9 +354,9 @@ var require_cookies = __commonJS({
354
354
  }
355
355
  });
356
356
 
357
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/cookies.js
357
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/cookies.js
358
358
  var require_cookies2 = __commonJS({
359
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
359
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports) {
360
360
  Object.defineProperty(exports, "__esModule", {
361
361
  value: true
362
362
  });
@@ -381,9 +381,9 @@ var require_cookies2 = __commonJS({
381
381
  }
382
382
  });
383
383
 
384
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
384
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
385
385
  var require_reflect = __commonJS({
386
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
386
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports) {
387
387
  Object.defineProperty(exports, "__esModule", {
388
388
  value: true
389
389
  });
@@ -414,9 +414,9 @@ var require_reflect = __commonJS({
414
414
  }
415
415
  });
416
416
 
417
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/async-local-storage.js
417
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/async-local-storage.js
418
418
  var require_async_local_storage = __commonJS({
419
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/async-local-storage.js"(exports) {
419
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/async-local-storage.js"(exports) {
420
420
  Object.defineProperty(exports, "__esModule", {
421
421
  value: true
422
422
  });
@@ -486,9 +486,9 @@ var require_async_local_storage = __commonJS({
486
486
  }
487
487
  });
488
488
 
489
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js
489
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js
490
490
  var require_work_async_storage_instance = __commonJS({
491
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports) {
491
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js"(exports) {
492
492
  Object.defineProperty(exports, "__esModule", {
493
493
  value: true
494
494
  });
@@ -503,9 +503,9 @@ var require_work_async_storage_instance = __commonJS({
503
503
  }
504
504
  });
505
505
 
506
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage.external.js
506
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage.external.js
507
507
  var require_work_async_storage_external = __commonJS({
508
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports) {
508
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-async-storage.external.js"(exports) {
509
509
  Object.defineProperty(exports, "__esModule", {
510
510
  value: true
511
511
  });
@@ -519,9 +519,9 @@ var require_work_async_storage_external = __commonJS({
519
519
  }
520
520
  });
521
521
 
522
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
522
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
523
523
  var require_work_unit_async_storage_instance = __commonJS({
524
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports) {
524
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js"(exports) {
525
525
  Object.defineProperty(exports, "__esModule", {
526
526
  value: true
527
527
  });
@@ -536,9 +536,9 @@ var require_work_unit_async_storage_instance = __commonJS({
536
536
  }
537
537
  });
538
538
 
539
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/app-router-headers.js
539
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/app-router-headers.js
540
540
  var require_app_router_headers = __commonJS({
541
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/app-router-headers.js"(exports, module) {
541
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/app-router-headers.js"(exports, module) {
542
542
  Object.defineProperty(exports, "__esModule", {
543
543
  value: true
544
544
  });
@@ -628,9 +628,9 @@ var require_app_router_headers = __commonJS({
628
628
  }
629
629
  });
630
630
 
631
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
631
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
632
632
  var require_work_unit_async_storage_external = __commonJS({
633
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports) {
633
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js"(exports) {
634
634
  Object.defineProperty(exports, "__esModule", {
635
635
  value: true
636
636
  });
@@ -743,9 +743,9 @@ var require_work_unit_async_storage_external = __commonJS({
743
743
  }
744
744
  });
745
745
 
746
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js
746
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js
747
747
  var require_request_cookies = __commonJS({
748
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js"(exports) {
748
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js"(exports) {
749
749
  Object.defineProperty(exports, "__esModule", {
750
750
  value: true
751
751
  });
@@ -2329,9 +2329,9 @@ var require_react = __commonJS({
2329
2329
  }
2330
2330
  });
2331
2331
 
2332
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/hooks-server-context.js
2332
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/hooks-server-context.js
2333
2333
  var require_hooks_server_context = __commonJS({
2334
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/hooks-server-context.js"(exports, module) {
2334
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/hooks-server-context.js"(exports, module) {
2335
2335
  Object.defineProperty(exports, "__esModule", {
2336
2336
  value: true
2337
2337
  });
@@ -2369,9 +2369,9 @@ var require_hooks_server_context = __commonJS({
2369
2369
  }
2370
2370
  });
2371
2371
 
2372
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/static-generation-bailout.js
2372
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/static-generation-bailout.js
2373
2373
  var require_static_generation_bailout = __commonJS({
2374
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/static-generation-bailout.js"(exports, module) {
2374
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/client/components/static-generation-bailout.js"(exports, module) {
2375
2375
  Object.defineProperty(exports, "__esModule", {
2376
2376
  value: true
2377
2377
  });
@@ -2409,9 +2409,9 @@ var require_static_generation_bailout = __commonJS({
2409
2409
  }
2410
2410
  });
2411
2411
 
2412
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/dynamic-rendering-utils.js
2412
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/dynamic-rendering-utils.js
2413
2413
  var require_dynamic_rendering_utils = __commonJS({
2414
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports) {
2414
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/dynamic-rendering-utils.js"(exports) {
2415
2415
  Object.defineProperty(exports, "__esModule", {
2416
2416
  value: true
2417
2417
  });
@@ -2474,9 +2474,9 @@ var require_dynamic_rendering_utils = __commonJS({
2474
2474
  }
2475
2475
  });
2476
2476
 
2477
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/metadata/metadata-constants.js
2477
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/metadata/metadata-constants.js
2478
2478
  var require_metadata_constants = __commonJS({
2479
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/metadata/metadata-constants.js"(exports) {
2479
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/metadata/metadata-constants.js"(exports) {
2480
2480
  Object.defineProperty(exports, "__esModule", {
2481
2481
  value: true
2482
2482
  });
@@ -2503,9 +2503,9 @@ var require_metadata_constants = __commonJS({
2503
2503
  }
2504
2504
  });
2505
2505
 
2506
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/scheduler.js
2506
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/scheduler.js
2507
2507
  var require_scheduler = __commonJS({
2508
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/scheduler.js"(exports) {
2508
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/lib/scheduler.js"(exports) {
2509
2509
  Object.defineProperty(exports, "__esModule", {
2510
2510
  value: true
2511
2511
  });
@@ -2558,9 +2558,9 @@ var require_scheduler = __commonJS({
2558
2558
  }
2559
2559
  });
2560
2560
 
2561
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/dynamic-rendering.js
2561
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/dynamic-rendering.js
2562
2562
  var require_dynamic_rendering = __commonJS({
2563
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports) {
2563
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports) {
2564
2564
  Object.defineProperty(exports, "__esModule", {
2565
2565
  value: true
2566
2566
  });
@@ -3013,9 +3013,9 @@ ${stack}`;
3013
3013
  }
3014
3014
  });
3015
3015
 
3016
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js
3016
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js
3017
3017
  var require_create_deduped_by_callsite_server_error_logger = __commonJS({
3018
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js"(exports) {
3018
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js"(exports) {
3019
3019
  Object.defineProperty(exports, "__esModule", {
3020
3020
  value: true
3021
3021
  });
@@ -3103,9 +3103,9 @@ var require_create_deduped_by_callsite_server_error_logger = __commonJS({
3103
3103
  }
3104
3104
  });
3105
3105
 
3106
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js
3106
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js
3107
3107
  var require_after_task_async_storage_instance = __commonJS({
3108
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js"(exports) {
3108
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js"(exports) {
3109
3109
  Object.defineProperty(exports, "__esModule", {
3110
3110
  value: true
3111
3111
  });
@@ -3120,9 +3120,9 @@ var require_after_task_async_storage_instance = __commonJS({
3120
3120
  }
3121
3121
  });
3122
3122
 
3123
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage.external.js
3123
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage.external.js
3124
3124
  var require_after_task_async_storage_external = __commonJS({
3125
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage.external.js"(exports) {
3125
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/app-render/after-task-async-storage.external.js"(exports) {
3126
3126
  Object.defineProperty(exports, "__esModule", {
3127
3127
  value: true
3128
3128
  });
@@ -3136,9 +3136,9 @@ var require_after_task_async_storage_external = __commonJS({
3136
3136
  }
3137
3137
  });
3138
3138
 
3139
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/utils.js
3139
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/utils.js
3140
3140
  var require_utils = __commonJS({
3141
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/utils.js"(exports) {
3141
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/utils.js"(exports) {
3142
3142
  Object.defineProperty(exports, "__esModule", {
3143
3143
  value: true
3144
3144
  });
@@ -3194,9 +3194,9 @@ var require_utils = __commonJS({
3194
3194
  }
3195
3195
  });
3196
3196
 
3197
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/cookies.js
3197
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/cookies.js
3198
3198
  var require_cookies3 = __commonJS({
3199
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/cookies.js"(exports) {
3199
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/cookies.js"(exports) {
3200
3200
  Object.defineProperty(exports, "__esModule", {
3201
3201
  value: true
3202
3202
  });
@@ -3607,9 +3607,9 @@ var require_cookies3 = __commonJS({
3607
3607
  }
3608
3608
  });
3609
3609
 
3610
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/headers.js
3610
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/headers.js
3611
3611
  var require_headers = __commonJS({
3612
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/headers.js"(exports) {
3612
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/web/spec-extension/adapters/headers.js"(exports) {
3613
3613
  Object.defineProperty(exports, "__esModule", {
3614
3614
  value: true
3615
3615
  });
@@ -3773,9 +3773,9 @@ var require_headers = __commonJS({
3773
3773
  }
3774
3774
  });
3775
3775
 
3776
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/headers.js
3776
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/headers.js
3777
3777
  var require_headers2 = __commonJS({
3778
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/headers.js"(exports) {
3778
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/headers.js"(exports) {
3779
3779
  Object.defineProperty(exports, "__esModule", {
3780
3780
  value: true
3781
3781
  });
@@ -4093,9 +4093,9 @@ var require_headers2 = __commonJS({
4093
4093
  }
4094
4094
  });
4095
4095
 
4096
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/draft-mode.js
4096
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/draft-mode.js
4097
4097
  var require_draft_mode = __commonJS({
4098
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/draft-mode.js"(exports) {
4098
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/dist/server/request/draft-mode.js"(exports) {
4099
4099
  Object.defineProperty(exports, "__esModule", {
4100
4100
  value: true
4101
4101
  });
@@ -4316,9 +4316,9 @@ var require_draft_mode = __commonJS({
4316
4316
  }
4317
4317
  });
4318
4318
 
4319
- // ../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/headers.js
4319
+ // ../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/headers.js
4320
4320
  var require_headers3 = __commonJS({
4321
- "../../node_modules/.pnpm/next@15.3.4_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/headers.js"(exports, module) {
4321
+ "../../node_modules/.pnpm/next@15.3.4_@babel+core@7.29.0_@opentelemetry+api@1.9.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.86.3/node_modules/next/headers.js"(exports, module) {
4322
4322
  module.exports.cookies = require_cookies3().cookies;
4323
4323
  module.exports.headers = require_headers2().headers;
4324
4324
  module.exports.draftMode = require_draft_mode().draftMode;
@@ -4641,5 +4641,3 @@ react/cjs/react.development.js:
4641
4641
  */
4642
4642
 
4643
4643
  export { AT, FetchInstance, HeaderFunc, HeaderManagerAsync, HttpClientFetch, HttpError, HttpServerAxios, cookieServer, customHeaderNames };
4644
- //# sourceMappingURL=server.js.map
4645
- //# sourceMappingURL=server.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sales-frontend-api",
3
- "version": "0.0.174",
3
+ "version": "0.0.176",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",
@@ -59,22 +59,23 @@
59
59
  "typescript": "5.8.2",
60
60
  "@tanstack/react-query": "^5.81.2",
61
61
  "eslint-config-sales-frontend-eslint-config-v8": "^0.0.8",
62
- "sales-frontend-bridge": "0.0.116",
63
- "sales-frontend-stores": "0.0.13",
62
+ "sales-frontend-bridge": "0.0.117",
63
+ "sales-frontend-stores": "0.0.15",
64
64
  "sales-frontend-typescript-config": "0.0.2",
65
- "sales-frontend-utils": "0.0.68",
66
- "sales-frontend-vitest-config": "0.0.2"
65
+ "sales-frontend-utils": "0.0.69",
66
+ "sales-frontend-vitest-config": "0.0.3"
67
67
  },
68
68
  "dependencies": {
69
69
  "axios": "^1.10.0",
70
- "sales-frontend-utils": "0.0.68",
71
- "sales-frontend-debug": "0.0.73",
72
- "sales-frontend-sentry": "0.0.16"
70
+ "sales-frontend-http-client": "0.0.2",
71
+ "sales-frontend-utils": "0.0.69",
72
+ "sales-frontend-debug": "0.0.75",
73
+ "sales-frontend-sentry": "0.0.18"
73
74
  },
74
75
  "peerDependencies": {
75
76
  "@tanstack/react-query": ">=5.0.0",
76
- "sales-frontend-bridge": "0.0.116",
77
- "sales-frontend-stores": "0.0.13"
77
+ "sales-frontend-bridge": "0.0.117",
78
+ "sales-frontend-stores": "0.0.15"
78
79
  },
79
80
  "scripts": {
80
81
  "lint": "eslint . --max-warnings 0",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/http-client/header/header.types.ts","../src/http-client/header/header-manager.ts","../src/http-client/axios/http-client-axios.ts","../src/http-client/auth/auth-client.ts"],"names":["getCookie","setCookie","SentryLogController","axios","config","addRequestLog","useClientSessionStore","getDspExecutionEnvironment","Bridge","addErrorLog","addResponseLog","AxiosError","error","isDspApp","isDebugByFilterName","getServicePath"],"mappings":";;;;;;;;;;;;;;;;;;AAGO,IAAM,iBAAoB,GAAA;AAAA,EAC/B,iBAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,iBAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA;AAEO,IAAM,EAAK,GAAA,IAAA;;;ACbX,IAAM,gBAAN,MAAoB;AAAA,EAIzB,WAAA,CAAY,QAAoB,MAAoB,EAAA;AAHpD,IAAQ,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AACR,IAAQ,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AAGN,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AACd,IAAA,IAAA,CAAK,MAAS,GAA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JsaFJXRVZQTW1SQ1gxaFRlbkpZVUV0UFJVcHJhazVvU2tKUGNGTjBibnA2Y2xaakxVRnliMjVSUlY5V1JESlRXblp5ZVRRMlNXazBSVmttWmowd01WTk5Ua2RHUmxGRlYxTlFOelpMUWtsTFdrWkpXVUUzU1ZkWldGTklWa0ZUSm1NOUpUSkdKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwiaSI6eyJpIjoiNTdkZmVhM2QtZDA2Yi00YWRlLWIxZjEtYjE4NDA4MmNlN2VjIn19\n */\nexport const customHeaderNames = [\n 'Accept-Language',\n 'DeviceId',\n 'LoginType',\n 'PlatformName',\n 'PlatformVersion',\n 'AppVersion',\n 'DeviceModel',\n 'FormFactor',\n 'LoginChannel'\n];\n\nexport const AT = 'AT';\nexport type GetterSync = (keyName: string) => string;\nexport type SetterSync = (keyName: string, value: string) => void;\n\nexport type GetterAsync = (keyName: string) => Promise<string> | string;\nexport type SetterAsync = (keyName: string, value: string) => Promise<void> | void;\n","import { AT, customHeaderNames, GetterSync, SetterSync } from './header.types';\n\nexport class HeaderManager {\n private getter: GetterSync;\n private setter: SetterSync;\n\n constructor(getter: GetterSync, setter: SetterSync) {\n this.getter = getter;\n this.setter = setter;\n }\n\n /**\n * 커스텀 헤더를 동기적으로 설정합니다.\n */\n setCustomHeaders(): void {\n customHeaderNames.forEach((headerName) => {\n const customHeaderKey = `X-Channel-${headerName}`;\n const headerValue = this.getter(customHeaderKey);\n if (headerValue) {\n this.setter(customHeaderKey, headerValue);\n }\n });\n }\n\n /**\n * 인증 토큰을 동기적으로 설정합니다.\n */\n setAuthToken(): void {\n const token = this.getter(AT);\n if (token) {\n this.setter('Authorization', `Bearer ${token}`);\n }\n }\n\n /**\n * 모든 헤더를 동기적으로 설정합니다.\n */\n setAllHeaders(): void {\n this.setCustomHeaders();\n this.setAuthToken();\n }\n}\n","import axios from 'axios';\nimport { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport { Bridge } from 'sales-frontend-bridge';\nimport { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { PostSentryParams, SentryLogController } from 'sales-frontend-sentry';\nimport { useClientSessionStore } from 'sales-frontend-stores';\nimport { getCookie, getDspExecutionEnvironment, isDspApp, setCookie } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType, HttpClientHandlerParams, HttpClientOptions } from './types';\n\nlet isRefreshed = true;\nconst axiosQueue: AxiosQueueType[] = [];\n\n/**\n * 쿠키에서 값을 가져오고, 없으면 기본값을 쿠키에 설정 후 반환하는 헬퍼 함수\n * @param key 쿠키 키\n * @param defaultValue 쿠키 값이 없을 때 사용할 기본값\n * @returns 쿠키 값 또는 기본값\n */\nconst getOrSetCookie = (key: string, defaultValue: string): string => {\n let value = getCookie(key);\n if (!value) {\n value = defaultValue;\n setCookie(key, value, { path: '/' });\n }\n\n return value;\n};\n\nconst authErrorHandler = () => {\n console.error('Authentication error occurred.');\n};\n\n/**\n * 전자청약\n * CSR용 http-client 입니다.\n * cookie , redirect , tokem 처리 방식은 CSR 환경에 맞게 구현됩니다.\n */\nexport class HttpClientAxios {\n config: AxiosRequestConfig;\n headerManager: HeaderManager;\n options?: HttpClientOptions;\n\n\n /**\n * axios의 request interceptor 동작시, 헤더에 주입될 헤더의 key,value\n */\n headers: Record<string, string> = {};\n\n /**\n * api연동을 수행할 실제 객체(axios, fetch 등의 다른 라이브러리로 교체가능한 영역)\n * 현재 버전에서는 axios를 사용하여 구현됨.\n */\n api: AxiosInstance;\n sentryLogger?: SentryLogController;\n\n constructor(config: AxiosRequestConfig = {}, options?: HttpClientOptions) {\n this.config = config;\n this.options = options;\n if (options?.useSentry && options?.sentryConfig) {\n this.sentryLogger = new SentryLogController(options.sentryConfig);\n } else if (options?.useSentry && !options?.sentryConfig) {\n console.warn('[HttpClientAxios] sentryConfig is required when useSentry is true')\n }\n\n\n /**\n * 헤더매니저 셋팅\n */\n const getter: HeaderManager['getter'] = (key) => {\n return getCookie(key);\n };\n const setter: HeaderManager['setter'] = (key, value) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n };\n this.headerManager = new HeaderManager(getter, setter);\n\n /**\n * api수행객체 최초 생성,\n * 공통으로 적용할 설정값이 있는경우 셋팅\n */\n this.api = axios.create({\n withCredentials: false,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n console.log('config url', config.url);\n const debugMode = getCookie('dsp-debug-mode') === 'on';\n\n /** 디버깅용 로그 */\n await addRequestLog(config);\n\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n if (debugRefreshQueueOff) {\n isRefreshed = true;\n }\n\n /**\n * AT토큰 주입\n */\n const authClient = new AuthClient();\n const authorization = await authClient.getAT();\n if (authorization) {\n config.headers['Authorization'] = authorization;\n }\n\n if (debugMode) {\n console.log('debugMode header setting!');\n /**\n * 주소가 debugMode 경우 테스트용 헤더 삽입\n */\n config.headers['x-channel-appversion'] = getOrSetCookie('x-channel-appversion', '3.1');\n config.headers['x-channel-deviceid'] = getOrSetCookie('x-channel-deviceid', 'deviceid');\n config.headers['x-channel-devicemodel'] = getOrSetCookie('x-channel-devicemodel', 'iPHONE13');\n config.headers['x-channel-formfactor'] = getOrSetCookie('x-channel-formfactor', 'Phone');\n config.headers['x-channel-loginchannel'] = getOrSetCookie('x-channel-loginchannel', 'DSP');\n config.headers['x-channel-logintype'] = getOrSetCookie('x-channel-logintype', 'ONPA_PIN');\n config.headers['x-channel-platformname'] = getOrSetCookie('x-channel-platformname', 'IOS');\n config.headers['x-channel-platformversion'] = getOrSetCookie('x-channel-platformversion', '15.4.1');\n config.headers['x-channel-screenid'] = getOrSetCookie('x-channel-screenid', location.pathname);\n config.headers['x-channel-business-work-division-code'] = getOrSetCookie(\n 'x-channel-business-work-division-code',\n 'DEA'\n );\n } else {\n const session = useClientSessionStore.getState().clientSession;\n\n config.headers['x-channel-appversion'] = session.appVersion;\n config.headers['x-channel-deviceid'] = session.deviceId;\n config.headers['x-channel-devicemodel'] = session.deviceModel;\n config.headers['x-channel-formfactor'] = session.formFactor;\n config.headers['x-channel-loginchannel'] = session.loginChannel;\n config.headers['x-channel-logintype'] = session.loginType;\n config.headers['x-channel-platformname'] = session.platformName;\n config.headers['x-channel-platformversion'] = session.platformVersion;\n config.headers['x-channel-screenid'] = location.pathname;\n config.headers['x-channel-business-work-division-code'] = session.businessWorkDivisionCode;\n }\n\n /**\n * 커스텀헤더 주입\n */\n // this.headerManager.setCustomHeaders();\n /**\n *\n * this.headers설정된 값을 config headers에 주입\n */\n const headerEntries = Object.entries(this.headers);\n headerEntries.forEach(([key, value]) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n });\n\n /**\n * isRefreshed가 false이면(= 에러발생하여 token재발행중을 의미)\n * 새로운 요청들을 처리하지 않고,큐에 저장\n * 401에러 Queue처리 Request interceptor 등록\n */\n if (!isRefreshed && !config.url?.includes('internal/api/auth/refresh')) {\n console.log('request 401 큐처리');\n\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n // 세션 연장(for 영업포털 세션)\n if (getDspExecutionEnvironment() === 'iframe') {\n Bridge.iframe.dspKeepCallerSession();\n }\n\n return config;\n },\n async (error) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n console.log('request error');\n this.sentryLogging({\n logType: 'error',\n error\n }, {\n error,\n });\n\n return Promise.reject(error);\n }\n );\n\n /**\n * 인터셉터 응답 처리\n */\n this.api.interceptors.response.use(\n async (response: AxiosResponse) => {\n /** 디버깅용 로그 */\n await addResponseLog(response);\n if (response.data.isSuccess === false) {\n /**\n * 200 응답이라도 , isSuccess === false인 경우 에러로 reject\n */\n const axiosError = new AxiosError();\n axiosError.response = response;\n axiosError.config = response.config;\n axiosError.message = response.data.message;\n axiosError.code = response.status.toString();\n axiosError.request = response.request;\n this.sentryLogging({\n logType: 'error',\n error: axiosError,\n extraData: {\n axiosResponse: response\n }\n }, {\n response,\n });\n\n return Promise.reject(axiosError);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n console.log('error');\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n const retry_request = originalRequest?.params?.retry_request === 'true';\n console.log('retry_request', retry_request);\n /**\n * 401에러 Queue처리\n */\n if (\n error.response?.status === 401 &&\n !debugRefreshQueueOff &&\n !retry_request &&\n !originalRequest?.url?.includes('internal/api/auth/refresh')\n ) {\n console.log('error 401 큐처리');\n isRefreshed = false;\n const client = new AuthClient();\n client\n .refreshToken()\n .then(() => {\n /**\n * 토큰 갱신 성공, 플래그를 true로 설정\n */\n isRefreshed = true;\n\n /**\n * 큐에 쌓여있던 모든 요청 재시도\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n /**\n * api 인스턴스를 통해 요청을 재시도합니다. 따라서 재요청들은 다시 인터셉터를 타게 됩니다.\n * 신규토큰을 주입받고 정상처리\n * @todo 재시도후 reject시에는 로그인페이지로 보내는 브릿지 함수를 호출하도록 처리가 필요해보임.\n *\n * @note 11/07 : 무한루프이슈 해결을 위해 , 새로운 인스턴스를 사용하도록 수정\n */\n // add param 'retry_request' to prevent infinite loop\n p.config.params = {\n ...p.config.params,\n retry_request: 'true'\n };\n\n this.api\n .request(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * 큐에 쌓여있던 모든 요청 reject처리\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n p.reject(error);\n }\n }\n\n if (isDspApp()) {\n //native 브릿지함수 호출\n // * 별도의 함수 호출 없이 앱에서 처리\n } else {\n //각 도메인 환경에 맞는 핸들러 주입필요\n authErrorHandler();\n }\n\n this.sentryLogging({\n logType: 'error',\n error\n }, {\n error,\n });\n\n return Promise.reject(error);\n });\n\n return new Promise((resolve, reject) => {\n if (originalRequest) {\n axiosQueue.push({ resolve, reject, config: originalRequest });\n }\n });\n } else {\n console.log('error 401 큐처리 없음');\n this.sentryLogging({\n logType: 'error',\n error\n }, {\n error,\n });\n\n\n return Promise.reject(error);\n }\n }\n );\n }\n\n sentryLogging(params: PostSentryParams, handlerParams?: HttpClientHandlerParams) {\n /**\n * @description 센트리 사용여부\n */\n if (this.options?.useSentry === false) {\n return;\n }\n\n if (!this.sentryLogger) {\n console.warn('[HttpClientAxios] sentryLogger is not initialized');\n\n return;\n }\n\n /**\n * @description 핸들러가 없으면 센트리로 로그 바로전송\n */\n if (typeof this.options?.handler !== 'function') {\n return this.sentryLogger.postSentry(params);\n }\n\n /**\n * 핸들러는 있는데, handlerParams가 없는 경우, 콘솔 경고\n */\n if (typeof this.options?.handler === 'function' && !handlerParams) {\n console.warn('[HttpClientAxios] handlerParams is required when handler is provided');\n\n return;\n }\n\n /**\n * 핸들러가 있고, handlerParams가 있는 경우, 핸들러 실행결과에 따라 센트리전송\n */\n if (typeof this.options?.handler === 'function' && handlerParams) {\n const isSendSentry = this.options?.handler(handlerParams);\n\n /**\n * @description 핸들러가 true를 반환하면 센트리로 로그 전송\n */\n if (isSendSentry) {\n return this.sentryLogger.postSentry(params);\n }\n }\n }\n\n setHeaders(headers: Record<string, string>) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n }\n}\n","import { Bridge } from 'sales-frontend-bridge';\nimport { isDebugByFilterName } from 'sales-frontend-debug';\nimport { getCookie, getServicePath, isDspApp } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\n\nexport class AuthClient {\n defaultTokenType = 'Bearer';\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspApp();\n }\n\n getAuthorizationFromCookie() {\n const accessToken = getCookie('accessToken');\n\n return accessToken ? `${this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n async getAuthorizationFromBridge() {\n const { tokenType, accessToken } = await Bridge.native.getAccessToken();\n\n return accessToken ? `${tokenType || this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugModeAuthTokenFromCookie = isDebugByFilterName('auth-token');\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugModeAuthTokenFromCookie) {\n console.log('debugMode token setting!');\n\n return this.getAuthorizationFromCookie();\n }\n\n if (this.isApp()) {\n return await this.getAuthorizationFromBridge();\n } else {\n /**\n * DSP 앱 외에는 쿠키 참조\n */\n return this.getAuthorizationFromCookie();\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n */\n async refreshToken(): Promise<void> {\n if (this.isApp()) {\n // 영업지원 앱인 경우 브릿지를 통해 토큰 갱신\n await Bridge.native.refreshAccessToken();\n } else {\n // 신규 앱(FP플래너, 영업포털, 순수 웹) 외에는 내부 api 호출로 토큰 갱신\n const httpClient = new HttpClientAxios();\n\n await httpClient.api.post(`${getServicePath()}/internal/api/auth/refresh`);\n }\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/http-client/header/header.types.ts","../src/http-client/header/header-manager.ts","../src/http-client/axios/http-client-axios.ts","../src/http-client/auth/auth-client.ts"],"names":["config","error","isDspApp","getCookie","Bridge"],"mappings":";;;;;;;;;;;;AAGO,IAAM,iBAAoB,GAAA;AAAA,EAC/B,iBAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,iBAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA;AAEO,IAAM,EAAK,GAAA,IAA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OS0yLiUyMEJyaWRnZSUyMFNwZWMlMjAxLmxvb3A%2FbmF2PWN6MGxNa1pqYjI1MFpXNTBjM1J2Y21GblpTVXlSa05UVUY5aVl6STBOREF4TXkxa01EVTFMVFF6TldNdFlqWTNOQzB4Wm1RM05HSXpZV1EzTTJNbVpEMWlJVVV3UVd0MlJsaFJXRVZQTW1SQ1gxaFRlbkpZVUV0UFJVcHJhazVvU2tKUGNGTjBibnA2Y2xaakxVRnliMjVSUlY5V1JESlRXblp5ZVRRMlNXazBSVmttWmowd01WTk5Ua2RHUmxGRlYxTlFOelpMUWtsTFdrWkpXVUUzU1ZkWldGTklWa0ZUSm1NOUpUSkdKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwiaSI6eyJpIjoiNTdkZmVhM2QtZDA2Yi00YWRlLWIxZjEtYjE4NDA4MmNlN2VjIn19\n */\nexport const customHeaderNames = [\n 'Accept-Language',\n 'DeviceId',\n 'LoginType',\n 'PlatformName',\n 'PlatformVersion',\n 'AppVersion',\n 'DeviceModel',\n 'FormFactor',\n 'LoginChannel'\n];\n\nexport const AT = 'AT';\nexport type GetterSync = (keyName: string) => string;\nexport type SetterSync = (keyName: string, value: string) => void;\n\nexport type GetterAsync = (keyName: string) => Promise<string> | string;\nexport type SetterAsync = (keyName: string, value: string) => Promise<void> | void;\n","import { AT, customHeaderNames, GetterSync, SetterSync } from './header.types';\n\nexport class HeaderManager {\n private getter: GetterSync;\n private setter: SetterSync;\n\n constructor(getter: GetterSync, setter: SetterSync) {\n this.getter = getter;\n this.setter = setter;\n }\n\n /**\n * 커스텀 헤더를 동기적으로 설정합니다.\n */\n setCustomHeaders(): void {\n customHeaderNames.forEach((headerName) => {\n const customHeaderKey = `X-Channel-${headerName}`;\n const headerValue = this.getter(customHeaderKey);\n if (headerValue) {\n this.setter(customHeaderKey, headerValue);\n }\n });\n }\n\n /**\n * 인증 토큰을 동기적으로 설정합니다.\n */\n setAuthToken(): void {\n const token = this.getter(AT);\n if (token) {\n this.setter('Authorization', `Bearer ${token}`);\n }\n }\n\n /**\n * 모든 헤더를 동기적으로 설정합니다.\n */\n setAllHeaders(): void {\n this.setCustomHeaders();\n this.setAuthToken();\n }\n}\n","import axios from 'axios';\nimport { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport { Bridge } from 'sales-frontend-bridge';\nimport { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { PostSentryParams, SentryLogController } from 'sales-frontend-sentry';\nimport { useClientSessionStore } from 'sales-frontend-stores';\nimport { getCookie, getDspExecutionEnvironment, isDspApp, setCookie } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType, HttpClientHandlerParams, HttpClientOptions } from './types';\n\nlet isRefreshed = true;\nconst axiosQueue: AxiosQueueType[] = [];\n\n/**\n * 쿠키에서 값을 가져오고, 없으면 기본값을 쿠키에 설정 후 반환하는 헬퍼 함수\n * @param key 쿠키 키\n * @param defaultValue 쿠키 값이 없을 때 사용할 기본값\n * @returns 쿠키 값 또는 기본값\n */\nconst getOrSetCookie = (key: string, defaultValue: string): string => {\n let value = getCookie(key);\n if (!value) {\n value = defaultValue;\n setCookie(key, value, { path: '/' });\n }\n\n return value;\n};\n\nconst authErrorHandler = () => {\n console.error('Authentication error occurred.');\n};\n\n/**\n * 전자청약\n * CSR용 http-client 입니다.\n * cookie , redirect , tokem 처리 방식은 CSR 환경에 맞게 구현됩니다.\n */\nexport class HttpClientAxios {\n config: AxiosRequestConfig;\n headerManager: HeaderManager;\n options?: HttpClientOptions;\n\n\n /**\n * axios의 request interceptor 동작시, 헤더에 주입될 헤더의 key,value\n */\n headers: Record<string, string> = {};\n\n /**\n * api연동을 수행할 실제 객체(axios, fetch 등의 다른 라이브러리로 교체가능한 영역)\n * 현재 버전에서는 axios를 사용하여 구현됨.\n */\n api: AxiosInstance;\n sentryLogger?: SentryLogController;\n\n constructor(config: AxiosRequestConfig = {}, options?: HttpClientOptions) {\n this.config = config;\n this.options = options;\n if (options?.useSentry && options?.sentryConfig) {\n this.sentryLogger = new SentryLogController(options.sentryConfig);\n } else if (options?.useSentry && !options?.sentryConfig) {\n console.warn('[HttpClientAxios] sentryConfig is required when useSentry is true')\n }\n\n\n /**\n * 헤더매니저 셋팅\n */\n const getter: HeaderManager['getter'] = (key) => {\n return getCookie(key);\n };\n const setter: HeaderManager['setter'] = (key, value) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n };\n this.headerManager = new HeaderManager(getter, setter);\n\n /**\n * api수행객체 최초 생성,\n * 공통으로 적용할 설정값이 있는경우 셋팅\n */\n this.api = axios.create({\n withCredentials: false,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n console.log('config url', config.url);\n const debugMode = getCookie('dsp-debug-mode') === 'on';\n\n /** 디버깅용 로그 */\n await addRequestLog(config);\n\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n if (debugRefreshQueueOff) {\n isRefreshed = true;\n }\n\n /**\n * AT토큰 주입\n */\n const authClient = new AuthClient();\n const authorization = await authClient.getAT();\n if (authorization) {\n config.headers['Authorization'] = authorization;\n }\n\n if (debugMode) {\n console.log('debugMode header setting!');\n /**\n * 주소가 debugMode 경우 테스트용 헤더 삽입\n */\n config.headers['x-channel-appversion'] = getOrSetCookie('x-channel-appversion', '3.1');\n config.headers['x-channel-deviceid'] = getOrSetCookie('x-channel-deviceid', 'deviceid');\n config.headers['x-channel-devicemodel'] = getOrSetCookie('x-channel-devicemodel', 'iPHONE13');\n config.headers['x-channel-formfactor'] = getOrSetCookie('x-channel-formfactor', 'Phone');\n config.headers['x-channel-loginchannel'] = getOrSetCookie('x-channel-loginchannel', 'DSP');\n config.headers['x-channel-logintype'] = getOrSetCookie('x-channel-logintype', 'ONPA_PIN');\n config.headers['x-channel-platformname'] = getOrSetCookie('x-channel-platformname', 'IOS');\n config.headers['x-channel-platformversion'] = getOrSetCookie('x-channel-platformversion', '15.4.1');\n config.headers['x-channel-screenid'] = getOrSetCookie('x-channel-screenid', location.pathname);\n config.headers['x-channel-business-work-division-code'] = getOrSetCookie(\n 'x-channel-business-work-division-code',\n 'DEA'\n );\n } else {\n const session = useClientSessionStore.getState().clientSession;\n\n config.headers['x-channel-appversion'] = session.appVersion;\n config.headers['x-channel-deviceid'] = session.deviceId;\n config.headers['x-channel-devicemodel'] = session.deviceModel;\n config.headers['x-channel-formfactor'] = session.formFactor;\n config.headers['x-channel-loginchannel'] = session.loginChannel;\n config.headers['x-channel-logintype'] = session.loginType;\n config.headers['x-channel-platformname'] = session.platformName;\n config.headers['x-channel-platformversion'] = session.platformVersion;\n config.headers['x-channel-screenid'] = location.pathname;\n config.headers['x-channel-business-work-division-code'] = session.businessWorkDivisionCode;\n }\n\n /**\n * 커스텀헤더 주입\n */\n // this.headerManager.setCustomHeaders();\n /**\n *\n * this.headers설정된 값을 config headers에 주입\n */\n const headerEntries = Object.entries(this.headers);\n headerEntries.forEach(([key, value]) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n });\n\n /**\n * isRefreshed가 false이면(= 에러발생하여 token재발행중을 의미)\n * 새로운 요청들을 처리하지 않고,큐에 저장\n * 401에러 Queue처리 Request interceptor 등록\n */\n if (!isRefreshed && !config.url?.includes('internal/api/auth/refresh')) {\n console.log('request 401 큐처리');\n\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n // 세션 연장(for 영업포털 세션)\n if (getDspExecutionEnvironment() === 'iframe') {\n Bridge.iframe.dspKeepCallerSession();\n }\n\n return config;\n },\n async (error) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n console.log('request error');\n this.sentryLogging({\n logType: 'error',\n error\n }, {\n error,\n });\n\n return Promise.reject(error);\n }\n );\n\n /**\n * 인터셉터 응답 처리\n */\n this.api.interceptors.response.use(\n async (response: AxiosResponse) => {\n /** 디버깅용 로그 */\n await addResponseLog(response);\n if (response.data.isSuccess === false) {\n /**\n * 200 응답이라도 , isSuccess === false인 경우 에러로 reject\n */\n const axiosError = new AxiosError();\n axiosError.response = response;\n axiosError.config = response.config;\n axiosError.message = response.data.message;\n axiosError.code = response.status.toString();\n axiosError.request = response.request;\n this.sentryLogging({\n logType: 'error',\n error: axiosError,\n extraData: {\n axiosResponse: response\n }\n }, {\n response,\n });\n\n return Promise.reject(axiosError);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n console.log('error');\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n const retry_request = originalRequest?.params?.retry_request === 'true';\n console.log('retry_request', retry_request);\n /**\n * 401에러 Queue처리\n */\n if (\n error.response?.status === 401 &&\n !debugRefreshQueueOff &&\n !retry_request &&\n !originalRequest?.url?.includes('internal/api/auth/refresh')\n ) {\n console.log('error 401 큐처리');\n isRefreshed = false;\n const client = new AuthClient();\n client\n .refreshToken()\n .then(() => {\n /**\n * 토큰 갱신 성공, 플래그를 true로 설정\n */\n isRefreshed = true;\n\n /**\n * 큐에 쌓여있던 모든 요청 재시도\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n /**\n * api 인스턴스를 통해 요청을 재시도합니다. 따라서 재요청들은 다시 인터셉터를 타게 됩니다.\n * 신규토큰을 주입받고 정상처리\n * @todo 재시도후 reject시에는 로그인페이지로 보내는 브릿지 함수를 호출하도록 처리가 필요해보임.\n *\n * @note 11/07 : 무한루프이슈 해결을 위해 , 새로운 인스턴스를 사용하도록 수정\n */\n // add param 'retry_request' to prevent infinite loop\n p.config.params = {\n ...p.config.params,\n retry_request: 'true'\n };\n\n this.api\n .request(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * 큐에 쌓여있던 모든 요청 reject처리\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n p.reject(error);\n }\n }\n\n if (isDspApp()) {\n //native 브릿지함수 호출\n // * 별도의 함수 호출 없이 앱에서 처리\n } else {\n //각 도메인 환경에 맞는 핸들러 주입필요\n authErrorHandler();\n }\n\n this.sentryLogging({\n logType: 'error',\n error\n }, {\n error,\n });\n\n return Promise.reject(error);\n });\n\n return new Promise((resolve, reject) => {\n if (originalRequest) {\n axiosQueue.push({ resolve, reject, config: originalRequest });\n }\n });\n } else {\n console.log('error 401 큐처리 없음');\n this.sentryLogging({\n logType: 'error',\n error\n }, {\n error,\n });\n\n\n return Promise.reject(error);\n }\n }\n );\n }\n\n sentryLogging(params: PostSentryParams, handlerParams?: HttpClientHandlerParams) {\n /**\n * @description 센트리 사용여부\n */\n if (this.options?.useSentry === false) {\n return;\n }\n\n if (!this.sentryLogger) {\n console.warn('[HttpClientAxios] sentryLogger is not initialized');\n\n return;\n }\n\n /**\n * @description 핸들러가 없으면 센트리로 로그 바로전송\n */\n if (typeof this.options?.handler !== 'function') {\n return this.sentryLogger.postSentry(params);\n }\n\n /**\n * 핸들러는 있는데, handlerParams가 없는 경우, 콘솔 경고\n */\n if (typeof this.options?.handler === 'function' && !handlerParams) {\n console.warn('[HttpClientAxios] handlerParams is required when handler is provided');\n\n return;\n }\n\n /**\n * 핸들러가 있고, handlerParams가 있는 경우, 핸들러 실행결과에 따라 센트리전송\n */\n if (typeof this.options?.handler === 'function' && handlerParams) {\n const isSendSentry = this.options?.handler(handlerParams);\n\n /**\n * @description 핸들러가 true를 반환하면 센트리로 로그 전송\n */\n if (isSendSentry) {\n return this.sentryLogger.postSentry(params);\n }\n }\n }\n\n setHeaders(headers: Record<string, string>) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n }\n}\n","import { Bridge } from 'sales-frontend-bridge';\nimport { isDebugByFilterName } from 'sales-frontend-debug';\nimport { getCookie, getServicePath, isDspApp } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\n\nexport class AuthClient {\n defaultTokenType = 'Bearer';\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspApp();\n }\n\n getAuthorizationFromCookie() {\n const accessToken = getCookie('accessToken');\n\n return accessToken ? `${this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n async getAuthorizationFromBridge() {\n const { tokenType, accessToken } = await Bridge.native.getAccessToken();\n\n return accessToken ? `${tokenType || this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugModeAuthTokenFromCookie = isDebugByFilterName('auth-token');\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugModeAuthTokenFromCookie) {\n console.log('debugMode token setting!');\n\n return this.getAuthorizationFromCookie();\n }\n\n if (this.isApp()) {\n return await this.getAuthorizationFromBridge();\n } else {\n /**\n * DSP 앱 외에는 쿠키 참조\n */\n return this.getAuthorizationFromCookie();\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n */\n async refreshToken(): Promise<void> {\n if (this.isApp()) {\n // 영업지원 앱인 경우 브릿지를 통해 토큰 갱신\n await Bridge.native.refreshAccessToken();\n } else {\n // 신규 앱(FP플래너, 영업포털, 순수 웹) 외에는 내부 api 호출로 토큰 갱신\n const httpClient = new HttpClientAxios();\n\n await httpClient.api.post(`${getServicePath()}/internal/api/auth/refresh`);\n }\n }\n}\n"]}