ultracart_rest_api_v2_typescript 4.1.140 → 4.1.141

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.140
2
+ ## ultracart_rest_api_v2_typescript@4.1.141
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.140 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.141 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.141 | 08/26/2026 | sfvb - internal testing |
88
89
  | 4.1.140 | 08/26/2026 | sfvb - internal testing |
89
90
  | 4.1.139 | 08/26/2026 | sfvb - internal testing |
90
91
  | 4.1.138 | 08/26/2026 | sfvb - internal testing |
@@ -34,6 +34,24 @@ export interface SfvbWhoamiResponse {
34
34
  * @memberof SfvbWhoamiResponse
35
35
  */
36
36
  authenticationType?: string;
37
+ /**
38
+ * True when this token may write a target that is currently live - an active upsell offer, an email on a delivering flow, the active theme, the storefront root. Never infer this; it is the difference between a draft edit and a shopper visible change.
39
+ * @type {boolean}
40
+ * @memberof SfvbWhoamiResponse
41
+ */
42
+ canPublish?: boolean;
43
+ /**
44
+ * True when this token may read. Do not infer this from the requested scope name.
45
+ * @type {boolean}
46
+ * @memberof SfvbWhoamiResponse
47
+ */
48
+ canRead?: boolean;
49
+ /**
50
+ * True when this token may write. Writing a target that is not currently live needs only this.
51
+ * @type {boolean}
52
+ * @memberof SfvbWhoamiResponse
53
+ */
54
+ canWrite?: boolean;
37
55
  /**
38
56
  * Device scope name, when this is a device flow token.
39
57
  * @type {string}
@@ -36,6 +36,9 @@ function SfvbWhoamiResponseFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'actingAsUser': !(0, runtime_1.exists)(json, 'actingAsUser') ? undefined : json['actingAsUser'],
37
37
  'applicationName': !(0, runtime_1.exists)(json, 'applicationName') ? undefined : json['applicationName'],
38
38
  'authenticationType': !(0, runtime_1.exists)(json, 'authenticationType') ? undefined : json['authenticationType'],
39
+ 'canPublish': !(0, runtime_1.exists)(json, 'canPublish') ? undefined : json['canPublish'],
40
+ 'canRead': !(0, runtime_1.exists)(json, 'canRead') ? undefined : json['canRead'],
41
+ 'canWrite': !(0, runtime_1.exists)(json, 'canWrite') ? undefined : json['canWrite'],
39
42
  'deviceScope': !(0, runtime_1.exists)(json, 'deviceScope') ? undefined : json['deviceScope'],
40
43
  'login': !(0, runtime_1.exists)(json, 'login') ? undefined : json['login'],
41
44
  'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
@@ -57,6 +60,9 @@ function SfvbWhoamiResponseToJSON(value) {
57
60
  'actingAsUser': value.actingAsUser,
58
61
  'applicationName': value.applicationName,
59
62
  'authenticationType': value.authenticationType,
63
+ 'canPublish': value.canPublish,
64
+ 'canRead': value.canRead,
65
+ 'canWrite': value.canWrite,
60
66
  'deviceScope': value.deviceScope,
61
67
  'login': value.login,
62
68
  'merchantId': value.merchantId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.140",
3
+ "version": "4.1.141",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -44,6 +44,24 @@ export interface SfvbWhoamiResponse {
44
44
  * @memberof SfvbWhoamiResponse
45
45
  */
46
46
  authenticationType?: string;
47
+ /**
48
+ * True when this token may write a target that is currently live - an active upsell offer, an email on a delivering flow, the active theme, the storefront root. Never infer this; it is the difference between a draft edit and a shopper visible change.
49
+ * @type {boolean}
50
+ * @memberof SfvbWhoamiResponse
51
+ */
52
+ canPublish?: boolean;
53
+ /**
54
+ * True when this token may read. Do not infer this from the requested scope name.
55
+ * @type {boolean}
56
+ * @memberof SfvbWhoamiResponse
57
+ */
58
+ canRead?: boolean;
59
+ /**
60
+ * True when this token may write. Writing a target that is not currently live needs only this.
61
+ * @type {boolean}
62
+ * @memberof SfvbWhoamiResponse
63
+ */
64
+ canWrite?: boolean;
47
65
  /**
48
66
  * Device scope name, when this is a device flow token.
49
67
  * @type {string}
@@ -112,6 +130,9 @@ export function SfvbWhoamiResponseFromJSONTyped(json: any, ignoreDiscriminator:
112
130
  'actingAsUser': !exists(json, 'actingAsUser') ? undefined : json['actingAsUser'],
113
131
  'applicationName': !exists(json, 'applicationName') ? undefined : json['applicationName'],
114
132
  'authenticationType': !exists(json, 'authenticationType') ? undefined : json['authenticationType'],
133
+ 'canPublish': !exists(json, 'canPublish') ? undefined : json['canPublish'],
134
+ 'canRead': !exists(json, 'canRead') ? undefined : json['canRead'],
135
+ 'canWrite': !exists(json, 'canWrite') ? undefined : json['canWrite'],
115
136
  'deviceScope': !exists(json, 'deviceScope') ? undefined : json['deviceScope'],
116
137
  'login': !exists(json, 'login') ? undefined : json['login'],
117
138
  'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
@@ -134,6 +155,9 @@ export function SfvbWhoamiResponseToJSON(value?: SfvbWhoamiResponse | null): any
134
155
  'actingAsUser': value.actingAsUser,
135
156
  'applicationName': value.applicationName,
136
157
  'authenticationType': value.authenticationType,
158
+ 'canPublish': value.canPublish,
159
+ 'canRead': value.canRead,
160
+ 'canWrite': value.canWrite,
137
161
  'deviceScope': value.deviceScope,
138
162
  'login': value.login,
139
163
  'merchantId': value.merchantId,