ultracart_rest_api_v2_typescript 4.1.225 → 4.1.226

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.225
2
+ ## ultracart_rest_api_v2_typescript@4.1.226
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.225 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.226 --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.226 | 11/04/2026 | sfvb internal testing |
87
88
  | 4.1.225 | 11/03/2026 | sfvb internal testing |
88
89
  | 4.1.224 | 11/03/2026 | sfvb internal testing |
89
90
  | 4.1.223 | 11/03/2026 | sfvb internal testing |
@@ -27,6 +27,12 @@ export interface SfvbTrackingProvider {
27
27
  * @memberof SfvbTrackingProvider
28
28
  */
29
29
  admin_path?: string;
30
+ /**
31
+ * On a dry run, whether the real write needs an approved tracking_provider.change request.
32
+ * @type {boolean}
33
+ * @memberof SfvbTrackingProvider
34
+ */
35
+ approval_needed?: boolean;
30
36
  /**
31
37
  * On a write, each setting it changed, or would change on a dry run. Secrets read only set or cleared.
32
38
  * @type {Array<SfvbTrackingChange>}
@@ -39,6 +39,7 @@ function SfvbTrackingProviderFromJSONTyped(json, ignoreDiscriminator) {
39
39
  }
40
40
  return {
41
41
  'admin_path': !(0, runtime_1.exists)(json, 'admin_path') ? undefined : json['admin_path'],
42
+ 'approval_needed': !(0, runtime_1.exists)(json, 'approval_needed') ? undefined : json['approval_needed'],
42
43
  'changes': !(0, runtime_1.exists)(json, 'changes') ? undefined : (json['changes'].map(SfvbTrackingChange_1.SfvbTrackingChangeFromJSON)),
43
44
  'configured': !(0, runtime_1.exists)(json, 'configured') ? undefined : json['configured'],
44
45
  'consent': !(0, runtime_1.exists)(json, 'consent') ? undefined : (0, SfvbTrackingProviderConsent_1.SfvbTrackingProviderConsentFromJSON)(json['consent']),
@@ -66,6 +67,7 @@ function SfvbTrackingProviderToJSON(value) {
66
67
  }
67
68
  return {
68
69
  'admin_path': value.admin_path,
70
+ 'approval_needed': value.approval_needed,
69
71
  'changes': value.changes === undefined ? undefined : (value.changes.map(SfvbTrackingChange_1.SfvbTrackingChangeToJSON)),
70
72
  'configured': value.configured,
71
73
  'consent': (0, SfvbTrackingProviderConsent_1.SfvbTrackingProviderConsentToJSON)(value.consent),
@@ -81,6 +81,12 @@ export interface SfvbTrackingProviderField {
81
81
  * @memberof SfvbTrackingProviderField
82
82
  */
83
83
  type?: string;
84
+ /**
85
+ * Present only when this storefront can't turn the field on, and why. Turning it off still works.
86
+ * @type {string}
87
+ * @memberof SfvbTrackingProviderField
88
+ */
89
+ unavailable_reason?: string;
84
90
  /**
85
91
  * The stored value. Booleans are true or false. Null when blank. Never present for a secret.
86
92
  * @type {string}
@@ -43,6 +43,7 @@ function SfvbTrackingProviderFieldFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'set': !(0, runtime_1.exists)(json, 'set') ? undefined : json['set'],
44
44
  'sink': !(0, runtime_1.exists)(json, 'sink') ? undefined : json['sink'],
45
45
  'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
46
+ 'unavailable_reason': !(0, runtime_1.exists)(json, 'unavailable_reason') ? undefined : json['unavailable_reason'],
46
47
  'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
47
48
  'writable': !(0, runtime_1.exists)(json, 'writable') ? undefined : json['writable'],
48
49
  };
@@ -67,6 +68,7 @@ function SfvbTrackingProviderFieldToJSON(value) {
67
68
  'set': value.set,
68
69
  'sink': value.sink,
69
70
  'type': value.type,
71
+ 'unavailable_reason': value.unavailable_reason,
70
72
  'value': value.value,
71
73
  'writable': value.writable,
72
74
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.225",
3
+ "version": "4.1.226",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -62,6 +62,12 @@ export interface SfvbTrackingProvider {
62
62
  * @memberof SfvbTrackingProvider
63
63
  */
64
64
  admin_path?: string;
65
+ /**
66
+ * On a dry run, whether the real write needs an approved tracking_provider.change request.
67
+ * @type {boolean}
68
+ * @memberof SfvbTrackingProvider
69
+ */
70
+ approval_needed?: boolean;
65
71
  /**
66
72
  * On a write, each setting it changed, or would change on a dry run. Secrets read only set or cleared.
67
73
  * @type {Array<SfvbTrackingChange>}
@@ -176,6 +182,7 @@ export function SfvbTrackingProviderFromJSONTyped(json: any, ignoreDiscriminator
176
182
  return {
177
183
 
178
184
  'admin_path': !exists(json, 'admin_path') ? undefined : json['admin_path'],
185
+ 'approval_needed': !exists(json, 'approval_needed') ? undefined : json['approval_needed'],
179
186
  'changes': !exists(json, 'changes') ? undefined : ((json['changes'] as Array<any>).map(SfvbTrackingChangeFromJSON)),
180
187
  'configured': !exists(json, 'configured') ? undefined : json['configured'],
181
188
  'consent': !exists(json, 'consent') ? undefined : SfvbTrackingProviderConsentFromJSON(json['consent']),
@@ -204,6 +211,7 @@ export function SfvbTrackingProviderToJSON(value?: SfvbTrackingProvider | null):
204
211
  return {
205
212
 
206
213
  'admin_path': value.admin_path,
214
+ 'approval_needed': value.approval_needed,
207
215
  'changes': value.changes === undefined ? undefined : ((value.changes as Array<any>).map(SfvbTrackingChangeToJSON)),
208
216
  'configured': value.configured,
209
217
  'consent': SfvbTrackingProviderConsentToJSON(value.consent),
@@ -85,6 +85,12 @@ export interface SfvbTrackingProviderField {
85
85
  * @memberof SfvbTrackingProviderField
86
86
  */
87
87
  type?: string;
88
+ /**
89
+ * Present only when this storefront can't turn the field on, and why. Turning it off still works.
90
+ * @type {string}
91
+ * @memberof SfvbTrackingProviderField
92
+ */
93
+ unavailable_reason?: string;
88
94
  /**
89
95
  * The stored value. Booleans are true or false. Null when blank. Never present for a secret.
90
96
  * @type {string}
@@ -131,6 +137,7 @@ export function SfvbTrackingProviderFieldFromJSONTyped(json: any, ignoreDiscrimi
131
137
  'set': !exists(json, 'set') ? undefined : json['set'],
132
138
  'sink': !exists(json, 'sink') ? undefined : json['sink'],
133
139
  'type': !exists(json, 'type') ? undefined : json['type'],
140
+ 'unavailable_reason': !exists(json, 'unavailable_reason') ? undefined : json['unavailable_reason'],
134
141
  'value': !exists(json, 'value') ? undefined : json['value'],
135
142
  'writable': !exists(json, 'writable') ? undefined : json['writable'],
136
143
  };
@@ -156,6 +163,7 @@ export function SfvbTrackingProviderFieldToJSON(value?: SfvbTrackingProviderFiel
156
163
  'set': value.set,
157
164
  'sink': value.sink,
158
165
  'type': value.type,
166
+ 'unavailable_reason': value.unavailable_reason,
159
167
  'value': value.value,
160
168
  'writable': value.writable,
161
169
  };