ultracart_rest_api_v2_typescript 4.1.130 → 4.1.132

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.130
2
+ ## ultracart_rest_api_v2_typescript@4.1.132
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.130 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.132 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.132 | 08/18/2026 | customer activity bug fix |
89
+ | 4.1.131 | 08/18/2026 | customer activity now returns the SF communications active flag and last_activity_dts |
88
90
  | 4.1.130 | 08/17/2026 | order api - new method to obtain customer activity similar to the customer endpoint for a profile |
89
91
  | 4.1.129 | 08/13/2026 | ChannelPartnerOrder and OrderChannelPartner were missing a property |
90
92
  | 4.1.128 | 08/13/2026 | channel partner - added arbitrary discount to ChannelPartnerOrder |
@@ -19,6 +19,12 @@ import { Property } from './Property';
19
19
  * @interface CustomerActivity
20
20
  */
21
21
  export interface CustomerActivity {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof CustomerActivity
26
+ */
27
+ active?: boolean;
22
28
  /**
23
29
  *
24
30
  * @type {Array<Activity>}
@@ -37,6 +43,12 @@ export interface CustomerActivity {
37
43
  * @memberof CustomerActivity
38
44
  */
39
45
  global_unsubscribed_dts?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CustomerActivity
50
+ */
51
+ last_activity_dts?: string;
40
52
  /**
41
53
  *
42
54
  * @type {Array<ListSegmentMembership>}
@@ -36,9 +36,11 @@ function CustomerActivityFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
+ 'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
39
40
  'activities': !(0, runtime_1.exists)(json, 'activities') ? undefined : (json['activities'].map(Activity_1.ActivityFromJSON)),
40
41
  'global_unsubscribed': !(0, runtime_1.exists)(json, 'global_unsubscribed') ? undefined : json['global_unsubscribed'],
41
42
  'global_unsubscribed_dts': !(0, runtime_1.exists)(json, 'global_unsubscribed_dts') ? undefined : json['global_unsubscribed_dts'],
43
+ 'last_activity_dts': !(0, runtime_1.exists)(json, 'last_activity_dts') ? undefined : json['last_activity_dts'],
42
44
  'memberships': !(0, runtime_1.exists)(json, 'memberships') ? undefined : (json['memberships'].map(ListSegmentMembership_1.ListSegmentMembershipFromJSON)),
43
45
  'metrics': !(0, runtime_1.exists)(json, 'metrics') ? undefined : (json['metrics'].map(Metric_1.MetricFromJSON)),
44
46
  'properties_list': !(0, runtime_1.exists)(json, 'properties_list') ? undefined : (json['properties_list'].map(Property_1.PropertyFromJSON)),
@@ -57,9 +59,11 @@ function CustomerActivityToJSON(value) {
57
59
  return null;
58
60
  }
59
61
  return {
62
+ 'active': value.active,
60
63
  'activities': value.activities === undefined ? undefined : (value.activities.map(Activity_1.ActivityToJSON)),
61
64
  'global_unsubscribed': value.global_unsubscribed,
62
65
  'global_unsubscribed_dts': value.global_unsubscribed_dts,
66
+ 'last_activity_dts': value.last_activity_dts,
63
67
  'memberships': value.memberships === undefined ? undefined : (value.memberships.map(ListSegmentMembership_1.ListSegmentMembershipToJSON)),
64
68
  'metrics': value.metrics === undefined ? undefined : (value.metrics.map(Metric_1.MetricToJSON)),
65
69
  'properties_list': value.properties_list === undefined ? undefined : (value.properties_list.map(Property_1.PropertyToJSON)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.130",
3
+ "version": "4.1.132",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -44,6 +44,12 @@ import {
44
44
  * @interface CustomerActivity
45
45
  */
46
46
  export interface CustomerActivity {
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof CustomerActivity
51
+ */
52
+ active?: boolean;
47
53
  /**
48
54
  *
49
55
  * @type {Array<Activity>}
@@ -62,6 +68,12 @@ export interface CustomerActivity {
62
68
  * @memberof CustomerActivity
63
69
  */
64
70
  global_unsubscribed_dts?: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof CustomerActivity
75
+ */
76
+ last_activity_dts?: string;
65
77
  /**
66
78
  *
67
79
  * @type {Array<ListSegmentMembership>}
@@ -127,9 +139,11 @@ export function CustomerActivityFromJSONTyped(json: any, ignoreDiscriminator: bo
127
139
  }
128
140
  return {
129
141
 
142
+ 'active': !exists(json, 'active') ? undefined : json['active'],
130
143
  'activities': !exists(json, 'activities') ? undefined : ((json['activities'] as Array<any>).map(ActivityFromJSON)),
131
144
  'global_unsubscribed': !exists(json, 'global_unsubscribed') ? undefined : json['global_unsubscribed'],
132
145
  'global_unsubscribed_dts': !exists(json, 'global_unsubscribed_dts') ? undefined : json['global_unsubscribed_dts'],
146
+ 'last_activity_dts': !exists(json, 'last_activity_dts') ? undefined : json['last_activity_dts'],
133
147
  'memberships': !exists(json, 'memberships') ? undefined : ((json['memberships'] as Array<any>).map(ListSegmentMembershipFromJSON)),
134
148
  'metrics': !exists(json, 'metrics') ? undefined : ((json['metrics'] as Array<any>).map(MetricFromJSON)),
135
149
  'properties_list': !exists(json, 'properties_list') ? undefined : ((json['properties_list'] as Array<any>).map(PropertyFromJSON)),
@@ -149,9 +163,11 @@ export function CustomerActivityToJSON(value?: CustomerActivity | null): any {
149
163
  }
150
164
  return {
151
165
 
166
+ 'active': value.active,
152
167
  'activities': value.activities === undefined ? undefined : ((value.activities as Array<any>).map(ActivityToJSON)),
153
168
  'global_unsubscribed': value.global_unsubscribed,
154
169
  'global_unsubscribed_dts': value.global_unsubscribed_dts,
170
+ 'last_activity_dts': value.last_activity_dts,
155
171
  'memberships': value.memberships === undefined ? undefined : ((value.memberships as Array<any>).map(ListSegmentMembershipToJSON)),
156
172
  'metrics': value.metrics === undefined ? undefined : ((value.metrics as Array<any>).map(MetricToJSON)),
157
173
  'properties_list': value.properties_list === undefined ? undefined : ((value.properties_list as Array<any>).map(PropertyToJSON)),