From 39d019662d0e4d243bb3316ae5fb4a19a82f9582 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 2 Mar 2026 14:09:26 -0800 Subject: [PATCH 1/3] =?UTF-8?q?=E2=8F=A9=20regen=20to=20API=201.0.436?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + codegen/templates/Configuration.ts | 1 + codegen/templates/models/SdkConfiguration.ts | 1 + docs/classes/Resources.Configuration.html | 6 +++--- docs/classes/Resources.Me.html | 6 +++--- docs/classes/Resources.Subscriptions.html | 6 +++--- docs/interfaces/CookieOptions.html | 12 ++++++------ docs/interfaces/Resources.SortableMap.html | 4 ++-- docs/interfaces/SdkConfiguration.html | 15 ++++++++------- docs/variables/Configuration.html | 2 +- src/configuration.ts | 1 + src/models/SdkConfiguration.ts | 1 + src/models/Sortable.ts | 4 ++-- 13 files changed, 33 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 386b5da0..078c9c7b 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,7 @@ Simply set the options you need to override and the SDK will merge it with the d import { Configuration } from 'ordercloud-javascript-sdk'; Configuration.Set({ + // This URL can be found on your dashboard or in the upper right hand context menu of your OrderCloud application in Sitecore Portal. baseApiUrl: 'https://sandboxapi.ordercloud.io', timeoutInMilliseconds: 20 * 1000 }) diff --git a/codegen/templates/Configuration.ts b/codegen/templates/Configuration.ts index ad2aa7dd..8407d407 100644 --- a/codegen/templates/Configuration.ts +++ b/codegen/templates/Configuration.ts @@ -2,6 +2,7 @@ import { SdkConfiguration } from './models' class Configuration { private defaultConfig: SdkConfiguration = { + // This URL can be found on your dashboard or in the upper right hand context menu of your OrderCloud application in Sitecore Portal. baseApiUrl: 'https://api.ordercloud.io', apiVersion: 'v1', timeoutInMilliseconds: 60 * 1000, // 60 seconds by default diff --git a/codegen/templates/models/SdkConfiguration.ts b/codegen/templates/models/SdkConfiguration.ts index ecf0c910..78b8c67a 100644 --- a/codegen/templates/models/SdkConfiguration.ts +++ b/codegen/templates/models/SdkConfiguration.ts @@ -4,6 +4,7 @@ export interface SdkConfiguration { /** * The apiurl that will be used to talk to the ordercloud API. * It may be useful to change this to interact with different environments + * This URL can be found on your dashboard or in the upper right hand context menu of your OrderCloud application in Sitecore Portal. * * Defaults to: https://api.ordercloud.io */ diff --git a/docs/classes/Resources.Configuration.html b/docs/classes/Resources.Configuration.html index 24fb6d33..a9cf1602 100644 --- a/docs/classes/Resources.Configuration.html +++ b/docs/classes/Resources.Configuration.html @@ -43,7 +43,7 @@

Properties

config: SdkConfiguration = ...
+
  • Defined in Configuration.ts:18
  • defaultConfig: SdkConfiguration = ...
    +
  • Defined in Configuration.ts:38
  • Returns void

    +
  • Defined in Configuration.ts:29
  • +
  • Defined in models/SdkConfiguration.ts:70
  • prefix?: string

    prefix for all cookies set by ordercloud

    +
  • Defined in models/SdkConfiguration.ts:64
  • samesite?: "none" | "strict" | "lax"
    @@ -65,7 +65,7 @@
    +
  • Defined in models/SdkConfiguration.ts:59
  • secure?: boolean
    @@ -73,7 +73,7 @@
    +
  • Defined in models/SdkConfiguration.ts:53
  • +
  • Defined in models/SdkConfiguration.ts:26
  • cookieOptions?: CookieOptions
    +
  • Defined in models/SdkConfiguration.ts:40
  • timeoutInMilliseconds?: number
    @@ -84,7 +85,7 @@
    +
  • Defined in models/SdkConfiguration.ts:33
  • +
  • Defined in Configuration.ts:49