ultracart_rest_api_v2_typescript 4.1.130 → 4.1.131
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 +3 -2
- package/dist/models/Metric.d.ts +12 -0
- package/dist/models/Metric.js +4 -0
- package/package.json +1 -1
- package/src/models/Metric.ts +16 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.131
|
|
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.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.131 --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.131 | 08/18/2026 | customer activity now returns the SF communications active flag and last_activity_dts |
|
|
88
89
|
| 4.1.130 | 08/17/2026 | order api - new method to obtain customer activity similar to the customer endpoint for a profile |
|
|
89
90
|
| 4.1.129 | 08/13/2026 | ChannelPartnerOrder and OrderChannelPartner were missing a property |
|
|
90
91
|
| 4.1.128 | 08/13/2026 | channel partner - added arbitrary discount to ChannelPartnerOrder |
|
package/dist/models/Metric.d.ts
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface Metric
|
|
16
16
|
*/
|
|
17
17
|
export interface Metric {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof Metric
|
|
22
|
+
*/
|
|
23
|
+
active?: boolean;
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
* @type {number}
|
|
@@ -39,6 +45,12 @@ export interface Metric {
|
|
|
39
45
|
* @memberof Metric
|
|
40
46
|
*/
|
|
41
47
|
last_30_formatted?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Metric
|
|
52
|
+
*/
|
|
53
|
+
last_activity_dts?: string;
|
|
42
54
|
/**
|
|
43
55
|
*
|
|
44
56
|
* @type {string}
|
package/dist/models/Metric.js
CHANGED
|
@@ -32,10 +32,12 @@ function MetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
|
|
35
36
|
'all_time': !(0, runtime_1.exists)(json, 'all_time') ? undefined : json['all_time'],
|
|
36
37
|
'all_time_formatted': !(0, runtime_1.exists)(json, 'all_time_formatted') ? undefined : json['all_time_formatted'],
|
|
37
38
|
'last_30': !(0, runtime_1.exists)(json, 'last_30') ? undefined : json['last_30'],
|
|
38
39
|
'last_30_formatted': !(0, runtime_1.exists)(json, 'last_30_formatted') ? undefined : json['last_30_formatted'],
|
|
40
|
+
'last_activity_dts': !(0, runtime_1.exists)(json, 'last_activity_dts') ? undefined : json['last_activity_dts'],
|
|
39
41
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
40
42
|
'prior_30': !(0, runtime_1.exists)(json, 'prior_30') ? undefined : json['prior_30'],
|
|
41
43
|
'prior_30_formatted': !(0, runtime_1.exists)(json, 'prior_30_formatted') ? undefined : json['prior_30_formatted'],
|
|
@@ -51,10 +53,12 @@ function MetricToJSON(value) {
|
|
|
51
53
|
return null;
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
56
|
+
'active': value.active,
|
|
54
57
|
'all_time': value.all_time,
|
|
55
58
|
'all_time_formatted': value.all_time_formatted,
|
|
56
59
|
'last_30': value.last_30,
|
|
57
60
|
'last_30_formatted': value.last_30_formatted,
|
|
61
|
+
'last_activity_dts': value.last_activity_dts,
|
|
58
62
|
'name': value.name,
|
|
59
63
|
'prior_30': value.prior_30,
|
|
60
64
|
'prior_30_formatted': value.prior_30_formatted,
|
package/package.json
CHANGED
package/src/models/Metric.ts
CHANGED
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface Metric
|
|
20
20
|
*/
|
|
21
21
|
export interface Metric {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof Metric
|
|
26
|
+
*/
|
|
27
|
+
active?: boolean;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {number}
|
|
@@ -43,6 +49,12 @@ export interface Metric {
|
|
|
43
49
|
* @memberof Metric
|
|
44
50
|
*/
|
|
45
51
|
last_30_formatted?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Metric
|
|
56
|
+
*/
|
|
57
|
+
last_activity_dts?: string;
|
|
46
58
|
/**
|
|
47
59
|
*
|
|
48
60
|
* @type {string}
|
|
@@ -90,10 +102,12 @@ export function MetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): Me
|
|
|
90
102
|
}
|
|
91
103
|
return {
|
|
92
104
|
|
|
105
|
+
'active': !exists(json, 'active') ? undefined : json['active'],
|
|
93
106
|
'all_time': !exists(json, 'all_time') ? undefined : json['all_time'],
|
|
94
107
|
'all_time_formatted': !exists(json, 'all_time_formatted') ? undefined : json['all_time_formatted'],
|
|
95
108
|
'last_30': !exists(json, 'last_30') ? undefined : json['last_30'],
|
|
96
109
|
'last_30_formatted': !exists(json, 'last_30_formatted') ? undefined : json['last_30_formatted'],
|
|
110
|
+
'last_activity_dts': !exists(json, 'last_activity_dts') ? undefined : json['last_activity_dts'],
|
|
97
111
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
98
112
|
'prior_30': !exists(json, 'prior_30') ? undefined : json['prior_30'],
|
|
99
113
|
'prior_30_formatted': !exists(json, 'prior_30_formatted') ? undefined : json['prior_30_formatted'],
|
|
@@ -110,10 +124,12 @@ export function MetricToJSON(value?: Metric | null): any {
|
|
|
110
124
|
}
|
|
111
125
|
return {
|
|
112
126
|
|
|
127
|
+
'active': value.active,
|
|
113
128
|
'all_time': value.all_time,
|
|
114
129
|
'all_time_formatted': value.all_time_formatted,
|
|
115
130
|
'last_30': value.last_30,
|
|
116
131
|
'last_30_formatted': value.last_30_formatted,
|
|
132
|
+
'last_activity_dts': value.last_activity_dts,
|
|
117
133
|
'name': value.name,
|
|
118
134
|
'prior_30': value.prior_30,
|
|
119
135
|
'prior_30_formatted': value.prior_30_formatted,
|