@platform-x-shp/shopify-adapter 0.6.0 → 0.6.1

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.
@@ -11,7 +11,7 @@ export interface MintedSession {
11
11
  export interface DeliverySsoConfig {
12
12
  /**
13
13
  * Public base URL this module's Shopify-callback route is reachable at —
14
- * e.g. `https://dev.hep-ecommerce-service.hcl-x.com/hep-ecommerce-service/auth/delivery`.
14
+ * e.g. `https://dev.hep-ecommerce-service.hcl-x.com/hep-ecommerce-service/delivery/auth`.
15
15
  * `/shopify/callback` is appended to build the `redirect_uri` sent to
16
16
  * Shopify, which must exactly match what's registered in the Customer
17
17
  * Account API app's allowed redirect URIs.
@@ -19,7 +19,7 @@ export interface DeliverySsoConfig {
19
19
  callbackBaseUrl: string;
20
20
  /**
21
21
  * Path the router below is mounted at (e.g.
22
- * `/hep-ecommerce-service/auth/delivery`) — used only to scope the session
22
+ * `/hep-ecommerce-service/delivery/auth`) — used only to scope the session
23
23
  * cookie, so it isn't sent on unrelated routes.
24
24
  */
25
25
  sessionCookiePath: string;
@@ -35,7 +35,7 @@ export declare function beginDeliverySso(siteName: string, returnUrl: string, co
35
35
  * callback (GET `/shopify/callback`), and the SPA's own credentialed calls
36
36
  * to mint (POST `/session`) and end (POST `/logout`) a bearer. Mount this at
37
37
  * `config.callbackBaseUrl`'s path (e.g.
38
- * `/hep-ecommerce-service/auth/delivery`) so the routes resolve to exactly
38
+ * `/hep-ecommerce-service/delivery/auth`) so the routes resolve to exactly
39
39
  * the URLs `config` describes. `beginDeliverySso` is a plain function, not a
40
40
  * route here — call it from your own GraphQL/REST mutation, same as every
41
41
  * other write in this package.
@@ -324,7 +324,7 @@ function sessionCors(config) {
324
324
  * callback (GET `/shopify/callback`), and the SPA's own credentialed calls
325
325
  * to mint (POST `/session`) and end (POST `/logout`) a bearer. Mount this at
326
326
  * `config.callbackBaseUrl`'s path (e.g.
327
- * `/hep-ecommerce-service/auth/delivery`) so the routes resolve to exactly
327
+ * `/hep-ecommerce-service/delivery/auth`) so the routes resolve to exactly
328
328
  * the URLs `config` describes. `beginDeliverySso` is a plain function, not a
329
329
  * route here — call it from your own GraphQL/REST mutation, same as every
330
330
  * other write in this package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-x-shp/shopify-adapter",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Shopify commerce adapter — Admin API client, read-model mappers, tenant-config resolution, and Keycloak/PlatformX auth verification, consumed by hep-ecommerce-service. Self-contained: does not depend on shp-auth-client.",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",