ultracart_rest_api_v2_typescript 4.1.181 → 4.1.182

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.181
2
+ ## ultracart_rest_api_v2_typescript@4.1.182
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.181 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.182 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -84,6 +84,7 @@ Not every change is committed to every SDK.
84
84
 
85
85
  | Version | Date | Comments |
86
86
  | --: | :-: | --- |
87
+ | 4.1.182 | 10/02/2026 | sfvb internal testing |
87
88
  | 4.1.181 | 10/02/2026 | sfvb internal testing |
88
89
  | 4.1.180 | 10/02/2026 | sfvb internal builder |
89
90
  | 4.1.179 | 10/01/2026 | sfvb internal testing |
@@ -1957,7 +1957,7 @@ export interface SfvbApiInterface {
1957
1957
  */
1958
1958
  removeSfvbPageItems(requestParameters: RemoveSfvbPageItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbPageItemsResponse>;
1959
1959
  /**
1960
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
1960
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
1961
1961
  * @summary Render a CJSON node to HTML
1962
1962
  * @param {number} storefrontOid
1963
1963
  * @param {number} themeOid
@@ -1968,7 +1968,7 @@ export interface SfvbApiInterface {
1968
1968
  */
1969
1969
  renderSfvbWidgetsRaw(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbRenderResponse>>;
1970
1970
  /**
1971
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
1971
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
1972
1972
  * Render a CJSON node to HTML
1973
1973
  */
1974
1974
  renderSfvbWidgets(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRenderResponse>;
@@ -3107,12 +3107,12 @@ export declare class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface
3107
3107
  */
3108
3108
  removeSfvbPageItems(requestParameters: RemoveSfvbPageItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbPageItemsResponse>;
3109
3109
  /**
3110
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
3110
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
3111
3111
  * Render a CJSON node to HTML
3112
3112
  */
3113
3113
  renderSfvbWidgetsRaw(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbRenderResponse>>;
3114
3114
  /**
3115
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
3115
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
3116
3116
  * Render a CJSON node to HTML
3117
3117
  */
3118
3118
  renderSfvbWidgets(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRenderResponse>;
@@ -6032,7 +6032,7 @@ var SfvbApi = /** @class */ (function (_super) {
6032
6032
  });
6033
6033
  };
6034
6034
  /**
6035
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
6035
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
6036
6036
  * Render a CJSON node to HTML
6037
6037
  */
6038
6038
  SfvbApi.prototype.renderSfvbWidgetsRaw = function (requestParameters, initOverrides) {
@@ -6081,7 +6081,7 @@ var SfvbApi = /** @class */ (function (_super) {
6081
6081
  });
6082
6082
  };
6083
6083
  /**
6084
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
6084
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
6085
6085
  * Render a CJSON node to HTML
6086
6086
  */
6087
6087
  SfvbApi.prototype.renderSfvbWidgets = function (requestParameters, initOverrides) {
@@ -75,6 +75,12 @@ export interface SfvbRenderRequest {
75
75
  * @memberof SfvbRenderRequest
76
76
  */
77
77
  context_upsell_offer_oid?: number;
78
+ /**
79
+ * True renders every branch the way the builder shows it, for styling content a shopper only sometimes sees. Omitted or false renders what a shopper sees, with conditions, prices and sale state evaluated against the context item.
80
+ * @type {boolean}
81
+ * @memberof SfvbRenderRequest
82
+ */
83
+ edit_mode?: boolean;
78
84
  /**
79
85
  * Language ISO code. Defaults to ENG.
80
86
  * @type {string}
@@ -42,6 +42,7 @@ function SfvbRenderRequestFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'context_order_id': !(0, runtime_1.exists)(json, 'context_order_id') ? undefined : json['context_order_id'],
43
43
  'context_page_number': !(0, runtime_1.exists)(json, 'context_page_number') ? undefined : json['context_page_number'],
44
44
  'context_upsell_offer_oid': !(0, runtime_1.exists)(json, 'context_upsell_offer_oid') ? undefined : json['context_upsell_offer_oid'],
45
+ 'edit_mode': !(0, runtime_1.exists)(json, 'edit_mode') ? undefined : json['edit_mode'],
45
46
  'language_iso_code': !(0, runtime_1.exists)(json, 'language_iso_code') ? undefined : json['language_iso_code'],
46
47
  'uri': !(0, runtime_1.exists)(json, 'uri') ? undefined : json['uri'],
47
48
  };
@@ -65,6 +66,7 @@ function SfvbRenderRequestToJSON(value) {
65
66
  'context_order_id': value.context_order_id,
66
67
  'context_page_number': value.context_page_number,
67
68
  'context_upsell_offer_oid': value.context_upsell_offer_oid,
69
+ 'edit_mode': value.edit_mode,
68
70
  'language_iso_code': value.language_iso_code,
69
71
  'uri': value.uri,
70
72
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.181",
3
+ "version": "4.1.182",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -2523,7 +2523,7 @@ export interface SfvbApiInterface {
2523
2523
  removeSfvbPageItems(requestParameters: RemoveSfvbPageItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbPageItemsResponse>;
2524
2524
 
2525
2525
  /**
2526
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
2526
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
2527
2527
  * @summary Render a CJSON node to HTML
2528
2528
  * @param {number} storefrontOid
2529
2529
  * @param {number} themeOid
@@ -2535,7 +2535,7 @@ export interface SfvbApiInterface {
2535
2535
  renderSfvbWidgetsRaw(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbRenderResponse>>;
2536
2536
 
2537
2537
  /**
2538
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
2538
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
2539
2539
  * Render a CJSON node to HTML
2540
2540
  */
2541
2541
  renderSfvbWidgets(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRenderResponse>;
@@ -7335,7 +7335,7 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
7335
7335
  }
7336
7336
 
7337
7337
  /**
7338
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
7338
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
7339
7339
  * Render a CJSON node to HTML
7340
7340
  */
7341
7341
  async renderSfvbWidgetsRaw(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SfvbRenderResponse>> {
@@ -7378,7 +7378,7 @@ export class SfvbApi extends runtime.BaseAPI implements SfvbApiInterface {
7378
7378
  }
7379
7379
 
7380
7380
  /**
7381
- * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
7381
+ * Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why. By default the node renders as a shopper sees it, with conditions, prices and sale state evaluated against the context item. Set edit_mode to render every branch the way the builder shows it, for styling content a shopper only sometimes sees.
7382
7382
  * Render a CJSON node to HTML
7383
7383
  */
7384
7384
  async renderSfvbWidgets(requestParameters: RenderSfvbWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SfvbRenderResponse> {
@@ -79,6 +79,12 @@ export interface SfvbRenderRequest {
79
79
  * @memberof SfvbRenderRequest
80
80
  */
81
81
  context_upsell_offer_oid?: number;
82
+ /**
83
+ * True renders every branch the way the builder shows it, for styling content a shopper only sometimes sees. Omitted or false renders what a shopper sees, with conditions, prices and sale state evaluated against the context item.
84
+ * @type {boolean}
85
+ * @memberof SfvbRenderRequest
86
+ */
87
+ edit_mode?: boolean;
82
88
  /**
83
89
  * Language ISO code. Defaults to ENG.
84
90
  * @type {string}
@@ -124,6 +130,7 @@ export function SfvbRenderRequestFromJSONTyped(json: any, ignoreDiscriminator: b
124
130
  'context_order_id': !exists(json, 'context_order_id') ? undefined : json['context_order_id'],
125
131
  'context_page_number': !exists(json, 'context_page_number') ? undefined : json['context_page_number'],
126
132
  'context_upsell_offer_oid': !exists(json, 'context_upsell_offer_oid') ? undefined : json['context_upsell_offer_oid'],
133
+ 'edit_mode': !exists(json, 'edit_mode') ? undefined : json['edit_mode'],
127
134
  'language_iso_code': !exists(json, 'language_iso_code') ? undefined : json['language_iso_code'],
128
135
  'uri': !exists(json, 'uri') ? undefined : json['uri'],
129
136
  };
@@ -148,6 +155,7 @@ export function SfvbRenderRequestToJSON(value?: SfvbRenderRequest | null): any {
148
155
  'context_order_id': value.context_order_id,
149
156
  'context_page_number': value.context_page_number,
150
157
  'context_upsell_offer_oid': value.context_upsell_offer_oid,
158
+ 'edit_mode': value.edit_mode,
151
159
  'language_iso_code': value.language_iso_code,
152
160
  'uri': value.uri,
153
161
  };