ultracart_rest_api_v2_typescript 4.0.105-RC → 4.0.107-RC
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 +4 -2
- package/dist/models/ConversationSearchResponse.d.ts +7 -0
- package/dist/models/ConversationSearchResponse.js +3 -0
- package/dist/models/EmailFlow.d.ts +6 -0
- package/dist/models/EmailFlow.js +2 -0
- package/package.json +1 -1
- package/src/models/ConversationSearchResponse.ts +15 -0
- package/src/models/EmailFlow.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.107-RC
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.107-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.107-RC | 01/06/2023 | conversation search response object bug fix |
|
|
58
|
+
| 4.0.106-RC | 01/05/2023 | communications - added maximum_enrolled flag on flow object |
|
|
57
59
|
| 4.0.105-RC | 01/03/2023 | conversation events for party leave and join |
|
|
58
60
|
| 4.0.104-RC | 01/03/2023 | order point of sale details |
|
|
59
61
|
| 4.0.103-RC | 12/27/2022 | additional loyalty related coupons |
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { Conversation } from './Conversation';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface ConversationSearchResponse {
|
|
|
27
28
|
* @memberof ConversationSearchResponse
|
|
28
29
|
*/
|
|
29
30
|
range_end?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<Conversation>}
|
|
34
|
+
* @memberof ConversationSearchResponse
|
|
35
|
+
*/
|
|
36
|
+
records?: Array<Conversation>;
|
|
30
37
|
/**
|
|
31
38
|
*
|
|
32
39
|
* @type {number}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationSearchResponseToJSON = exports.ConversationSearchResponseFromJSONTyped = exports.ConversationSearchResponseFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var Conversation_1 = require("./Conversation");
|
|
18
19
|
function ConversationSearchResponseFromJSON(json) {
|
|
19
20
|
return ConversationSearchResponseFromJSONTyped(json, false);
|
|
20
21
|
}
|
|
@@ -26,6 +27,7 @@ function ConversationSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
return {
|
|
27
28
|
'range_begin': !(0, runtime_1.exists)(json, 'range_begin') ? undefined : json['range_begin'],
|
|
28
29
|
'range_end': !(0, runtime_1.exists)(json, 'range_end') ? undefined : json['range_end'],
|
|
30
|
+
'records': !(0, runtime_1.exists)(json, 'records') ? undefined : (json['records'].map(Conversation_1.ConversationFromJSON)),
|
|
29
31
|
'total': !(0, runtime_1.exists)(json, 'total') ? undefined : json['total'],
|
|
30
32
|
};
|
|
31
33
|
}
|
|
@@ -40,6 +42,7 @@ function ConversationSearchResponseToJSON(value) {
|
|
|
40
42
|
return {
|
|
41
43
|
'range_begin': value.range_begin,
|
|
42
44
|
'range_end': value.range_end,
|
|
45
|
+
'records': value.records === undefined ? undefined : (value.records.map(Conversation_1.ConversationToJSON)),
|
|
43
46
|
'total': value.total,
|
|
44
47
|
};
|
|
45
48
|
}
|
|
@@ -111,6 +111,12 @@ export interface EmailFlow {
|
|
|
111
111
|
* @memberof EmailFlow
|
|
112
112
|
*/
|
|
113
113
|
library_item_oid?: number;
|
|
114
|
+
/**
|
|
115
|
+
* The number of maximum customers for the plan are currently enrolled in this flow.
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof EmailFlow
|
|
118
|
+
*/
|
|
119
|
+
maximum_enrolled?: boolean;
|
|
114
120
|
/**
|
|
115
121
|
* Merchant ID
|
|
116
122
|
* @type {string}
|
package/dist/models/EmailFlow.js
CHANGED
|
@@ -40,6 +40,7 @@ function EmailFlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'esp_friendly_name': !(0, runtime_1.exists)(json, 'esp_friendly_name') ? undefined : json['esp_friendly_name'],
|
|
41
41
|
'filter_profile_equation_json': !(0, runtime_1.exists)(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
|
|
42
42
|
'library_item_oid': !(0, runtime_1.exists)(json, 'library_item_oid') ? undefined : json['library_item_oid'],
|
|
43
|
+
'maximum_enrolled': !(0, runtime_1.exists)(json, 'maximum_enrolled') ? undefined : json['maximum_enrolled'],
|
|
43
44
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
44
45
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
45
46
|
'open_rate_formatted': !(0, runtime_1.exists)(json, 'open_rate_formatted') ? undefined : json['open_rate_formatted'],
|
|
@@ -81,6 +82,7 @@ function EmailFlowToJSON(value) {
|
|
|
81
82
|
'esp_friendly_name': value.esp_friendly_name,
|
|
82
83
|
'filter_profile_equation_json': value.filter_profile_equation_json,
|
|
83
84
|
'library_item_oid': value.library_item_oid,
|
|
85
|
+
'maximum_enrolled': value.maximum_enrolled,
|
|
84
86
|
'merchant_id': value.merchant_id,
|
|
85
87
|
'name': value.name,
|
|
86
88
|
'open_rate_formatted': value.open_rate_formatted,
|
package/package.json
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
Conversation,
|
|
18
|
+
ConversationFromJSON,
|
|
19
|
+
ConversationFromJSONTyped,
|
|
20
|
+
ConversationToJSON,
|
|
21
|
+
} from './Conversation';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -31,6 +38,12 @@ export interface ConversationSearchResponse {
|
|
|
31
38
|
* @memberof ConversationSearchResponse
|
|
32
39
|
*/
|
|
33
40
|
range_end?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Conversation>}
|
|
44
|
+
* @memberof ConversationSearchResponse
|
|
45
|
+
*/
|
|
46
|
+
records?: Array<Conversation>;
|
|
34
47
|
/**
|
|
35
48
|
*
|
|
36
49
|
* @type {number}
|
|
@@ -51,6 +64,7 @@ export function ConversationSearchResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
51
64
|
|
|
52
65
|
'range_begin': !exists(json, 'range_begin') ? undefined : json['range_begin'],
|
|
53
66
|
'range_end': !exists(json, 'range_end') ? undefined : json['range_end'],
|
|
67
|
+
'records': !exists(json, 'records') ? undefined : ((json['records'] as Array<any>).map(ConversationFromJSON)),
|
|
54
68
|
'total': !exists(json, 'total') ? undefined : json['total'],
|
|
55
69
|
};
|
|
56
70
|
}
|
|
@@ -66,6 +80,7 @@ export function ConversationSearchResponseToJSON(value?: ConversationSearchRespo
|
|
|
66
80
|
|
|
67
81
|
'range_begin': value.range_begin,
|
|
68
82
|
'range_end': value.range_end,
|
|
83
|
+
'records': value.records === undefined ? undefined : ((value.records as Array<any>).map(ConversationToJSON)),
|
|
69
84
|
'total': value.total,
|
|
70
85
|
};
|
|
71
86
|
}
|
package/src/models/EmailFlow.ts
CHANGED
|
@@ -115,6 +115,12 @@ export interface EmailFlow {
|
|
|
115
115
|
* @memberof EmailFlow
|
|
116
116
|
*/
|
|
117
117
|
library_item_oid?: number;
|
|
118
|
+
/**
|
|
119
|
+
* The number of maximum customers for the plan are currently enrolled in this flow.
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof EmailFlow
|
|
122
|
+
*/
|
|
123
|
+
maximum_enrolled?: boolean;
|
|
118
124
|
/**
|
|
119
125
|
* Merchant ID
|
|
120
126
|
* @type {string}
|
|
@@ -227,6 +233,7 @@ export function EmailFlowFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
227
233
|
'esp_friendly_name': !exists(json, 'esp_friendly_name') ? undefined : json['esp_friendly_name'],
|
|
228
234
|
'filter_profile_equation_json': !exists(json, 'filter_profile_equation_json') ? undefined : json['filter_profile_equation_json'],
|
|
229
235
|
'library_item_oid': !exists(json, 'library_item_oid') ? undefined : json['library_item_oid'],
|
|
236
|
+
'maximum_enrolled': !exists(json, 'maximum_enrolled') ? undefined : json['maximum_enrolled'],
|
|
230
237
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
231
238
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
232
239
|
'open_rate_formatted': !exists(json, 'open_rate_formatted') ? undefined : json['open_rate_formatted'],
|
|
@@ -269,6 +276,7 @@ export function EmailFlowToJSON(value?: EmailFlow | null): any {
|
|
|
269
276
|
'esp_friendly_name': value.esp_friendly_name,
|
|
270
277
|
'filter_profile_equation_json': value.filter_profile_equation_json,
|
|
271
278
|
'library_item_oid': value.library_item_oid,
|
|
279
|
+
'maximum_enrolled': value.maximum_enrolled,
|
|
272
280
|
'merchant_id': value.merchant_id,
|
|
273
281
|
'name': value.name,
|
|
274
282
|
'open_rate_formatted': value.open_rate_formatted,
|