Vue Storefront is now Alokai! Learn More
sfcc-sdk

sfcc-sdk

1.5.0ri:link

Minor Changesri:link

  • 3ab14a3: Integrate with the getUrlMapping SCAPI endpoint

Patch Changesri:link

  • Updated dependencies 3ab14a3
  • Updated dependencies cf3a63d
    • @vsf-enterprise/sfcc-types@1.5.0

1.4.0ri:link

Minor Changesri:link

  • b04ab3e: Integrates the Omnichannel Inventory endpoints that can be used on the storefront to check a product's availability, reserve stock, update, transfer or release reservations

Patch Changesri:link

  • Updated dependencies b04ab3e
    • @vsf-enterprise/sfcc-types@1.4.0

1.3.0ri:link

Minor Changesri:link

  • fecf119: CHANGED Installed Alokai Logger. To learn more about logger, visit Alokai Logger.

1.2.0ri:link

Minor Changesri:link

  • 7446123: Exposes SDK methods and API endpoints for the shopper context functionality

Patch Changesri:link

  • Updated dependencies 7446123
    • @vsf-enterprise/sfcc-types@1.3.0

1.1.0ri:link

Minor Changesri:link

  • 6fd908e: - Expose an SDK method and API endpoint ensureAccessTokenValidity. It accepts no parameter and has no response body, its purpose is to be the first called method in the consumer app's lifecycle. If there are no JWTs in the request headers (either in cookies or custom headers), guest JWTs will be generated and returned as cookies; if there are preexisting tokens, they will go through validation and will be refreshed if needed. This will allow any following requests that happen in parallel during the first page request to reuse the same token instead of each one generating its own.
    • Enable long-lived logins using refresh tokens. Controlled by the optional opt-out disableLongLivedLogin setting in the middleware configuration. When enabled, guest tokens will always be refreshed when a refresh token is available. This mirrors the default functionality of the official SLAS plugin for SFCC.
    • Removes the USID parameter from refresh token calls, per instructions from the SFCC SLAS team
    • Completely disables OCAPI authentication when the SLAS token will be used for OCAPI calls. Until now we were generating both tokens even if only one of them would be used.

Patch Changesri:link

  • Updated dependencies 6fd908e
    • @vsf-enterprise/sfcc-types@1.1.0

1.0.0ri:link

Major Changesri:link

  • e747f29: Stable release of SalesForce integration

Minor Changesri:link

  • f621a97: Add an option to always get a basket by ID rather than using the customer baskets endpoint
  • d75751b: Adds a sign out SDK method to invalidate authenticated JWTs
  • 411b1d5: Adds support for placing orders in the updateOrder method
  • b2c76da: Add a method to update an order

Patch Changesri:link

  • 1be2f39: - CHANGED Deprecated the SfccModuleType interface. It is no longer necessary to use this type. It's going to be removed in the next major version after Oct 1, 2024.
    import { initSDK, buildModule } from "@vue-storefront/sdk";
    - import { sfccModule, SFCCModuleType } from "@vue-storefront/sfcc-sdk";
    + import { sfccModule } from "@vue-storefront/sfcc-sdk";
    
    const sdkConfig = {
    -  sfcc: buildModule<SFCCModuleType>(sfccModule, {
    +  sfcc: buildModule(sfccModule, {
        apiUrl: "http://localhost:8181/sfcc",
      }),
    };
    
    export const sdk = initSDK(sdkConfig);
    
    • CHANGED sfccModule has been deprecated. Use middlewareModule from @vue-storefront/sdk package instead.
    - import { initSDK, buildModule } from '@vue-storefront/sdk';
    - import { sfccModule, SFCCModuleType } from '@vsf-enterprise/sfcc-sdk'
    + import { initSDK, buildModule, middlewareModule } from '@vue-storefront/sdk';
    + import { Endpoints as SfccEndpoints } from '@vsf-enterprise/sfcc-api'; // In Alokai Storefront you should import it from `storefront-middleware/types.ts`
    
    const sdkConfig = {
      sfcc:
        buildModule(
    -      sfccModule,
    +      middlewareModule<SfccEndpoints>,
          { apiUrl: 'http://localhost:8181/sfcc' }
        )
    };
    
  • 7cb9f9f: Refactor API endpoints to follow the standartized universal module exports interface
  • Updated dependencies 9ca0a56
  • Updated dependencies e747f29
  • Updated dependencies f621a97
  • Updated dependencies d75751b
  • Updated dependencies 0bdc007
  • Updated dependencies e823b4e
  • Updated dependencies 411b1d5
  • Updated dependencies b2c76da
    • @vsf-enterprise/sfcc-types@1.0.0

1.0.0-rc.5ri:link

Minor Changesri:link

  • 411b1d5: Adds support for placing orders in the updateOrder method

Patch Changesri:link

  • Updated dependencies 411b1d5
    • @vsf-enterprise/sfcc-types@1.0.0-rc.6

1.0.0-rc.4ri:link

Minor Changesri:link

  • f621a97: Add an option to always get a basket by ID rather than using the customer baskets endpoint

Patch Changesri:link

  • Updated dependencies f621a97
    • @vsf-enterprise/sfcc-types@1.0.0-rc.5

1.0.0-rc.3ri:link

Patch Changesri:link

  • 1be2f39: - CHANGED Deprecated the SfccModuleType interface. It is no longer necessary to use this type. It's going to be removed in the next major version after Oct 1, 2024.
    import { initSDK, buildModule } from "@vue-storefront/sdk";
    - import { sfccModule, SFCCModuleType } from "@vue-storefront/sfcc-sdk";
    + import { sfccModule } from "@vue-storefront/sfcc-sdk";
    
    const sdkConfig = {
    -  sfcc: buildModule<SFCCModuleType>(sfccModule, {
    +  sfcc: buildModule(sfccModule, {
        apiUrl: "http://localhost:8181/sfcc",
      }),
    };
    
    export const sdk = initSDK(sdkConfig);
    
    • CHANGED sfccModule has been deprecated. Use middlewareModule from @vue-storefront/sdk package instead.
    - import { initSDK, buildModule } from '@vue-storefront/sdk';
    - import { sfccModule, SFCCModuleType } from '@vsf-enterprise/sfcc-sdk'
    + import { initSDK, buildModule, middlewareModule } from '@vue-storefront/sdk';
    + import { Endpoints as SfccEndpoints } from '@vsf-enterprise/sfcc-api'; // In Alokai Storefront you should import it from `storefront-middleware/types.ts`
    
    const sdkConfig = {
      sfcc:
        buildModule(
    -      sfccModule,
    +      middlewareModule<SfccEndpoints>,
          { apiUrl: 'http://localhost:8181/sfcc' }
        )
    };
    

1.0.0-rc.2ri:link

Minor Changesri:link

  • b2c76da: Add a method to update an order

Patch Changesri:link

  • Updated dependencies b2c76da
    • @vsf-enterprise/sfcc-types@1.0.0-rc.4

1.0.0-rc.1ri:link

Minor Changesri:link

  • added a sign out SDK method to invalidate authenticated JWTs

Patch Changesri:link

  • updated dependencies: @vsf-enterprise/sfcc-types@1.0.0-rc.1

1.0.0-rc.0ri:link

Major Changesri:link

  • stable release of SalesForce integration

Patch Changesri:link

  • updated dependencies: @vsf-enterprise/sfcc-types@1.0.0-rc.0