ultracart_rest_api_v2_typescript 4.0.99-RC → 4.0.100-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.
@@ -155,6 +155,9 @@ src/models/ConversationDepartment.ts
155
155
  src/models/ConversationDepartmentResponse.ts
156
156
  src/models/ConversationDepartmentsResponse.ts
157
157
  src/models/ConversationEngagement.ts
158
+ src/models/ConversationEngagementEquation.ts
159
+ src/models/ConversationEngagementEquationFunction.ts
160
+ src/models/ConversationEngagementEquationGroup.ts
158
161
  src/models/ConversationEngagementResponse.ts
159
162
  src/models/ConversationEngagementsResponse.ts
160
163
  src/models/ConversationEventAddCoupon.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.99-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.100-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.99-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.100-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.100-RC | 12/20/2022 | conversation engagement update |
57
58
  | 4.0.99-RC | 12/15/2022 | conversation search - added start date filtering |
58
59
  | 4.0.98-RC | 12/15/2022 | conversation searching |
59
60
  | 4.0.97-RC | 12/13/2022 | conversations - add email and sms_phone to participant object |
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ConversationEngagementEquation } from './ConversationEngagementEquation';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -41,10 +42,10 @@ export interface ConversationEngagement {
41
42
  engagement_name?: string;
42
43
  /**
43
44
  *
44
- * @type {object}
45
+ * @type {ConversationEngagementEquation}
45
46
  * @memberof ConversationEngagement
46
47
  */
47
- equation?: object;
48
+ equation?: ConversationEngagementEquation;
48
49
  /**
49
50
  *
50
51
  * @type {number}
@@ -52,12 +53,21 @@ export interface ConversationEngagement {
52
53
  */
53
54
  time_on_page?: number;
54
55
  /**
55
- *
56
+ * The type of visitor
56
57
  * @type {string}
57
58
  * @memberof ConversationEngagement
58
59
  */
59
- visitor_type?: string;
60
+ visitor_type?: ConversationEngagementVisitorTypeEnum;
60
61
  }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const ConversationEngagementVisitorTypeEnum: {
66
+ readonly All: "all";
67
+ readonly FirstTime: "first time";
68
+ readonly Returning: "returning";
69
+ };
70
+ export type ConversationEngagementVisitorTypeEnum = typeof ConversationEngagementVisitorTypeEnum[keyof typeof ConversationEngagementVisitorTypeEnum];
61
71
  export declare function ConversationEngagementFromJSON(json: any): ConversationEngagement;
62
72
  export declare function ConversationEngagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagement;
63
73
  export declare function ConversationEngagementToJSON(value?: ConversationEngagement | null): any;
@@ -13,8 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationEngagementToJSON = exports.ConversationEngagementFromJSONTyped = exports.ConversationEngagementFromJSON = void 0;
16
+ exports.ConversationEngagementToJSON = exports.ConversationEngagementFromJSONTyped = exports.ConversationEngagementFromJSON = exports.ConversationEngagementVisitorTypeEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ConversationEngagementEquation_1 = require("./ConversationEngagementEquation");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.ConversationEngagementVisitorTypeEnum = {
23
+ All: 'all',
24
+ FirstTime: 'first time',
25
+ Returning: 'returning'
26
+ };
18
27
  function ConversationEngagementFromJSON(json) {
19
28
  return ConversationEngagementFromJSONTyped(json, false);
20
29
  }
@@ -28,7 +37,7 @@ function ConversationEngagementFromJSONTyped(json, ignoreDiscriminator) {
28
37
  'customer_greeting': !(0, runtime_1.exists)(json, 'customer_greeting') ? undefined : json['customer_greeting'],
29
38
  'department_oids': !(0, runtime_1.exists)(json, 'department_oids') ? undefined : json['department_oids'],
30
39
  'engagement_name': !(0, runtime_1.exists)(json, 'engagement_name') ? undefined : json['engagement_name'],
31
- 'equation': !(0, runtime_1.exists)(json, 'equation') ? undefined : json['equation'],
40
+ 'equation': !(0, runtime_1.exists)(json, 'equation') ? undefined : (0, ConversationEngagementEquation_1.ConversationEngagementEquationFromJSON)(json['equation']),
32
41
  'time_on_page': !(0, runtime_1.exists)(json, 'time_on_page') ? undefined : json['time_on_page'],
33
42
  'visitor_type': !(0, runtime_1.exists)(json, 'visitor_type') ? undefined : json['visitor_type'],
34
43
  };
@@ -46,7 +55,7 @@ function ConversationEngagementToJSON(value) {
46
55
  'customer_greeting': value.customer_greeting,
47
56
  'department_oids': value.department_oids,
48
57
  'engagement_name': value.engagement_name,
49
- 'equation': value.equation,
58
+ 'equation': (0, ConversationEngagementEquation_1.ConversationEngagementEquationToJSON)(value.equation),
50
59
  'time_on_page': value.time_on_page,
51
60
  'visitor_type': value.visitor_type,
52
61
  };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ConversationEngagementEquationGroup } from './ConversationEngagementEquationGroup';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ConversationEngagementEquation
17
+ */
18
+ export interface ConversationEngagementEquation {
19
+ /**
20
+ *
21
+ * @type {Array<ConversationEngagementEquationGroup>}
22
+ * @memberof ConversationEngagementEquation
23
+ */
24
+ groups?: Array<ConversationEngagementEquationGroup>;
25
+ }
26
+ export declare function ConversationEngagementEquationFromJSON(json: any): ConversationEngagementEquation;
27
+ export declare function ConversationEngagementEquationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagementEquation;
28
+ export declare function ConversationEngagementEquationToJSON(value?: ConversationEngagementEquation | null): any;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversationEngagementEquationToJSON = exports.ConversationEngagementEquationFromJSONTyped = exports.ConversationEngagementEquationFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ConversationEngagementEquationGroup_1 = require("./ConversationEngagementEquationGroup");
19
+ function ConversationEngagementEquationFromJSON(json) {
20
+ return ConversationEngagementEquationFromJSONTyped(json, false);
21
+ }
22
+ exports.ConversationEngagementEquationFromJSON = ConversationEngagementEquationFromJSON;
23
+ function ConversationEngagementEquationFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : (json['groups'].map(ConversationEngagementEquationGroup_1.ConversationEngagementEquationGroupFromJSON)),
29
+ };
30
+ }
31
+ exports.ConversationEngagementEquationFromJSONTyped = ConversationEngagementEquationFromJSONTyped;
32
+ function ConversationEngagementEquationToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'groups': value.groups === undefined ? undefined : (value.groups.map(ConversationEngagementEquationGroup_1.ConversationEngagementEquationGroupToJSON)),
41
+ };
42
+ }
43
+ exports.ConversationEngagementEquationToJSON = ConversationEngagementEquationToJSON;
@@ -0,0 +1,175 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ConversationEngagementEquationFunction
16
+ */
17
+ export interface ConversationEngagementEquationFunction {
18
+ /**
19
+ * Logic operation to perform on an any page url function type
20
+ * @type {string}
21
+ * @memberof ConversationEngagementEquationFunction
22
+ */
23
+ any_page_url_logic?: ConversationEngagementEquationFunctionAnyPageUrlLogicEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationEngagementEquationFunction
28
+ */
29
+ any_page_url_value?: string;
30
+ /**
31
+ * Logic operation to perform on a current page url function type
32
+ * @type {string}
33
+ * @memberof ConversationEngagementEquationFunction
34
+ */
35
+ current_page_url_logic?: ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConversationEngagementEquationFunction
40
+ */
41
+ current_page_url_value?: string;
42
+ /**
43
+ * Logic operation to perform on a customer's browsing time function type
44
+ * @type {string}
45
+ * @memberof ConversationEngagementEquationFunction
46
+ */
47
+ customers_browsing_time_logic?: ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ConversationEngagementEquationFunction
52
+ */
53
+ customers_browsing_time_seconds?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ConversationEngagementEquationFunction
58
+ */
59
+ customers_location_country?: string;
60
+ /**
61
+ * Logic operation to perform on a customer's location function type
62
+ * @type {string}
63
+ * @memberof ConversationEngagementEquationFunction
64
+ */
65
+ customers_location_logic?: ConversationEngagementEquationFunctionCustomersLocationLogicEnum;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ConversationEngagementEquationFunction
70
+ */
71
+ customers_location_state?: string;
72
+ /**
73
+ * Logic operation to perform on a customer's browsing time function type
74
+ * @type {string}
75
+ * @memberof ConversationEngagementEquationFunction
76
+ */
77
+ number_of_viewed_pages_logic?: ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof ConversationEngagementEquationFunction
82
+ */
83
+ number_of_viewed_pages_value?: number;
84
+ /**
85
+ * Logic operation to perform on a referring website function type
86
+ * @type {string}
87
+ * @memberof ConversationEngagementEquationFunction
88
+ */
89
+ referring_website_logic?: ConversationEngagementEquationFunctionReferringWebsiteLogicEnum;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof ConversationEngagementEquationFunction
94
+ */
95
+ referring_website_value?: string;
96
+ /**
97
+ * Type of function
98
+ * @type {string}
99
+ * @memberof ConversationEngagementEquationFunction
100
+ */
101
+ type?: ConversationEngagementEquationFunctionTypeEnum;
102
+ }
103
+ /**
104
+ * @export
105
+ */
106
+ export declare const ConversationEngagementEquationFunctionAnyPageUrlLogicEnum: {
107
+ readonly Contains: "contains";
108
+ readonly DoesNotContain: "does not contain";
109
+ readonly IsExactly: "is exactly";
110
+ readonly IsNot: "is not";
111
+ };
112
+ export type ConversationEngagementEquationFunctionAnyPageUrlLogicEnum = typeof ConversationEngagementEquationFunctionAnyPageUrlLogicEnum[keyof typeof ConversationEngagementEquationFunctionAnyPageUrlLogicEnum];
113
+ /**
114
+ * @export
115
+ */
116
+ export declare const ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum: {
117
+ readonly Contains: "contains";
118
+ readonly DoesNotContain: "does not contain";
119
+ readonly IsExactly: "is exactly";
120
+ readonly IsNot: "is not";
121
+ };
122
+ export type ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum = typeof ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum[keyof typeof ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum];
123
+ /**
124
+ * @export
125
+ */
126
+ export declare const ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum: {
127
+ readonly AtLeast: "is at least";
128
+ readonly MoreThan: "is more than";
129
+ readonly LessThan: "is less than";
130
+ readonly AtMost: "is at most";
131
+ };
132
+ export type ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum = typeof ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum[keyof typeof ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum];
133
+ /**
134
+ * @export
135
+ */
136
+ export declare const ConversationEngagementEquationFunctionCustomersLocationLogicEnum: {
137
+ readonly Is: "is";
138
+ readonly IsNot: "is not";
139
+ };
140
+ export type ConversationEngagementEquationFunctionCustomersLocationLogicEnum = typeof ConversationEngagementEquationFunctionCustomersLocationLogicEnum[keyof typeof ConversationEngagementEquationFunctionCustomersLocationLogicEnum];
141
+ /**
142
+ * @export
143
+ */
144
+ export declare const ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum: {
145
+ readonly AtLeast: "is at least";
146
+ readonly MoreThan: "is more than";
147
+ readonly LessThan: "is less than";
148
+ readonly AtMost: "is at most";
149
+ };
150
+ export type ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum = typeof ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum[keyof typeof ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum];
151
+ /**
152
+ * @export
153
+ */
154
+ export declare const ConversationEngagementEquationFunctionReferringWebsiteLogicEnum: {
155
+ readonly Contains: "contains";
156
+ readonly DoesNotContain: "does not contain";
157
+ readonly IsExactly: "is exactly";
158
+ readonly IsNot: "is not";
159
+ };
160
+ export type ConversationEngagementEquationFunctionReferringWebsiteLogicEnum = typeof ConversationEngagementEquationFunctionReferringWebsiteLogicEnum[keyof typeof ConversationEngagementEquationFunctionReferringWebsiteLogicEnum];
161
+ /**
162
+ * @export
163
+ */
164
+ export declare const ConversationEngagementEquationFunctionTypeEnum: {
165
+ readonly CurrentPageUrl: "current page url";
166
+ readonly CustomersLocation: "customer's location";
167
+ readonly CustomersBrowsingTime: "customer's browsing time";
168
+ readonly NumberOfViewedPages: "number of viewed pages";
169
+ readonly ReferringWebsiteAddress: "referring website address";
170
+ readonly AnyPageFromSession: "any page from session";
171
+ };
172
+ export type ConversationEngagementEquationFunctionTypeEnum = typeof ConversationEngagementEquationFunctionTypeEnum[keyof typeof ConversationEngagementEquationFunctionTypeEnum];
173
+ export declare function ConversationEngagementEquationFunctionFromJSON(json: any): ConversationEngagementEquationFunction;
174
+ export declare function ConversationEngagementEquationFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagementEquationFunction;
175
+ export declare function ConversationEngagementEquationFunctionToJSON(value?: ConversationEngagementEquationFunction | null): any;
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversationEngagementEquationFunctionToJSON = exports.ConversationEngagementEquationFunctionFromJSONTyped = exports.ConversationEngagementEquationFunctionFromJSON = exports.ConversationEngagementEquationFunctionTypeEnum = exports.ConversationEngagementEquationFunctionReferringWebsiteLogicEnum = exports.ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum = exports.ConversationEngagementEquationFunctionCustomersLocationLogicEnum = exports.ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum = exports.ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum = exports.ConversationEngagementEquationFunctionAnyPageUrlLogicEnum = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.ConversationEngagementEquationFunctionAnyPageUrlLogicEnum = {
22
+ Contains: 'contains',
23
+ DoesNotContain: 'does not contain',
24
+ IsExactly: 'is exactly',
25
+ IsNot: 'is not'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ exports.ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum = {
31
+ Contains: 'contains',
32
+ DoesNotContain: 'does not contain',
33
+ IsExactly: 'is exactly',
34
+ IsNot: 'is not'
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum = {
40
+ AtLeast: 'is at least',
41
+ MoreThan: 'is more than',
42
+ LessThan: 'is less than',
43
+ AtMost: 'is at most'
44
+ };
45
+ /**
46
+ * @export
47
+ */
48
+ exports.ConversationEngagementEquationFunctionCustomersLocationLogicEnum = {
49
+ Is: 'is',
50
+ IsNot: 'is not'
51
+ };
52
+ /**
53
+ * @export
54
+ */
55
+ exports.ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum = {
56
+ AtLeast: 'is at least',
57
+ MoreThan: 'is more than',
58
+ LessThan: 'is less than',
59
+ AtMost: 'is at most'
60
+ };
61
+ /**
62
+ * @export
63
+ */
64
+ exports.ConversationEngagementEquationFunctionReferringWebsiteLogicEnum = {
65
+ Contains: 'contains',
66
+ DoesNotContain: 'does not contain',
67
+ IsExactly: 'is exactly',
68
+ IsNot: 'is not'
69
+ };
70
+ /**
71
+ * @export
72
+ */
73
+ exports.ConversationEngagementEquationFunctionTypeEnum = {
74
+ CurrentPageUrl: 'current page url',
75
+ CustomersLocation: 'customer\'s location',
76
+ CustomersBrowsingTime: 'customer\'s browsing time',
77
+ NumberOfViewedPages: 'number of viewed pages',
78
+ ReferringWebsiteAddress: 'referring website address',
79
+ AnyPageFromSession: 'any page from session'
80
+ };
81
+ function ConversationEngagementEquationFunctionFromJSON(json) {
82
+ return ConversationEngagementEquationFunctionFromJSONTyped(json, false);
83
+ }
84
+ exports.ConversationEngagementEquationFunctionFromJSON = ConversationEngagementEquationFunctionFromJSON;
85
+ function ConversationEngagementEquationFunctionFromJSONTyped(json, ignoreDiscriminator) {
86
+ if ((json === undefined) || (json === null)) {
87
+ return json;
88
+ }
89
+ return {
90
+ 'any_page_url_logic': !(0, runtime_1.exists)(json, 'any_page_url_logic') ? undefined : json['any_page_url_logic'],
91
+ 'any_page_url_value': !(0, runtime_1.exists)(json, 'any_page_url_value') ? undefined : json['any_page_url_value'],
92
+ 'current_page_url_logic': !(0, runtime_1.exists)(json, 'current_page_url_logic') ? undefined : json['current_page_url_logic'],
93
+ 'current_page_url_value': !(0, runtime_1.exists)(json, 'current_page_url_value') ? undefined : json['current_page_url_value'],
94
+ 'customers_browsing_time_logic': !(0, runtime_1.exists)(json, 'customers_browsing_time_logic') ? undefined : json['customers_browsing_time_logic'],
95
+ 'customers_browsing_time_seconds': !(0, runtime_1.exists)(json, 'customers_browsing_time_seconds') ? undefined : json['customers_browsing_time_seconds'],
96
+ 'customers_location_country': !(0, runtime_1.exists)(json, 'customers_location_country') ? undefined : json['customers_location_country'],
97
+ 'customers_location_logic': !(0, runtime_1.exists)(json, 'customers_location_logic') ? undefined : json['customers_location_logic'],
98
+ 'customers_location_state': !(0, runtime_1.exists)(json, 'customers_location_state') ? undefined : json['customers_location_state'],
99
+ 'number_of_viewed_pages_logic': !(0, runtime_1.exists)(json, 'number_of_viewed_pages_logic') ? undefined : json['number_of_viewed_pages_logic'],
100
+ 'number_of_viewed_pages_value': !(0, runtime_1.exists)(json, 'number_of_viewed_pages_value') ? undefined : json['number_of_viewed_pages_value'],
101
+ 'referring_website_logic': !(0, runtime_1.exists)(json, 'referring_website_logic') ? undefined : json['referring_website_logic'],
102
+ 'referring_website_value': !(0, runtime_1.exists)(json, 'referring_website_value') ? undefined : json['referring_website_value'],
103
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
104
+ };
105
+ }
106
+ exports.ConversationEngagementEquationFunctionFromJSONTyped = ConversationEngagementEquationFunctionFromJSONTyped;
107
+ function ConversationEngagementEquationFunctionToJSON(value) {
108
+ if (value === undefined) {
109
+ return undefined;
110
+ }
111
+ if (value === null) {
112
+ return null;
113
+ }
114
+ return {
115
+ 'any_page_url_logic': value.any_page_url_logic,
116
+ 'any_page_url_value': value.any_page_url_value,
117
+ 'current_page_url_logic': value.current_page_url_logic,
118
+ 'current_page_url_value': value.current_page_url_value,
119
+ 'customers_browsing_time_logic': value.customers_browsing_time_logic,
120
+ 'customers_browsing_time_seconds': value.customers_browsing_time_seconds,
121
+ 'customers_location_country': value.customers_location_country,
122
+ 'customers_location_logic': value.customers_location_logic,
123
+ 'customers_location_state': value.customers_location_state,
124
+ 'number_of_viewed_pages_logic': value.number_of_viewed_pages_logic,
125
+ 'number_of_viewed_pages_value': value.number_of_viewed_pages_value,
126
+ 'referring_website_logic': value.referring_website_logic,
127
+ 'referring_website_value': value.referring_website_value,
128
+ 'type': value.type,
129
+ };
130
+ }
131
+ exports.ConversationEngagementEquationFunctionToJSON = ConversationEngagementEquationFunctionToJSON;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ConversationEngagementEquationFunction } from './ConversationEngagementEquationFunction';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ConversationEngagementEquationGroup
17
+ */
18
+ export interface ConversationEngagementEquationGroup {
19
+ /**
20
+ *
21
+ * @type {Array<ConversationEngagementEquationFunction>}
22
+ * @memberof ConversationEngagementEquationGroup
23
+ */
24
+ functions?: Array<ConversationEngagementEquationFunction>;
25
+ }
26
+ export declare function ConversationEngagementEquationGroupFromJSON(json: any): ConversationEngagementEquationGroup;
27
+ export declare function ConversationEngagementEquationGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagementEquationGroup;
28
+ export declare function ConversationEngagementEquationGroupToJSON(value?: ConversationEngagementEquationGroup | null): any;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversationEngagementEquationGroupToJSON = exports.ConversationEngagementEquationGroupFromJSONTyped = exports.ConversationEngagementEquationGroupFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ConversationEngagementEquationFunction_1 = require("./ConversationEngagementEquationFunction");
19
+ function ConversationEngagementEquationGroupFromJSON(json) {
20
+ return ConversationEngagementEquationGroupFromJSONTyped(json, false);
21
+ }
22
+ exports.ConversationEngagementEquationGroupFromJSON = ConversationEngagementEquationGroupFromJSON;
23
+ function ConversationEngagementEquationGroupFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'functions': !(0, runtime_1.exists)(json, 'functions') ? undefined : (json['functions'].map(ConversationEngagementEquationFunction_1.ConversationEngagementEquationFunctionFromJSON)),
29
+ };
30
+ }
31
+ exports.ConversationEngagementEquationGroupFromJSONTyped = ConversationEngagementEquationGroupFromJSONTyped;
32
+ function ConversationEngagementEquationGroupToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'functions': value.functions === undefined ? undefined : (value.functions.map(ConversationEngagementEquationFunction_1.ConversationEngagementEquationFunctionToJSON)),
41
+ };
42
+ }
43
+ exports.ConversationEngagementEquationGroupToJSON = ConversationEngagementEquationGroupToJSON;
@@ -130,6 +130,9 @@ export * from './ConversationDepartment';
130
130
  export * from './ConversationDepartmentResponse';
131
131
  export * from './ConversationDepartmentsResponse';
132
132
  export * from './ConversationEngagement';
133
+ export * from './ConversationEngagementEquation';
134
+ export * from './ConversationEngagementEquationFunction';
135
+ export * from './ConversationEngagementEquationGroup';
133
136
  export * from './ConversationEngagementResponse';
134
137
  export * from './ConversationEngagementsResponse';
135
138
  export * from './ConversationEventAddCoupon';
@@ -148,6 +148,9 @@ __exportStar(require("./ConversationDepartment"), exports);
148
148
  __exportStar(require("./ConversationDepartmentResponse"), exports);
149
149
  __exportStar(require("./ConversationDepartmentsResponse"), exports);
150
150
  __exportStar(require("./ConversationEngagement"), exports);
151
+ __exportStar(require("./ConversationEngagementEquation"), exports);
152
+ __exportStar(require("./ConversationEngagementEquationFunction"), exports);
153
+ __exportStar(require("./ConversationEngagementEquationGroup"), exports);
151
154
  __exportStar(require("./ConversationEngagementResponse"), exports);
152
155
  __exportStar(require("./ConversationEngagementsResponse"), exports);
153
156
  __exportStar(require("./ConversationEventAddCoupon"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.99-RC",
3
+ "version": "4.0.100-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationEngagementEquation,
18
+ ConversationEngagementEquationFromJSON,
19
+ ConversationEngagementEquationFromJSONTyped,
20
+ ConversationEngagementEquationToJSON,
21
+ } from './ConversationEngagementEquation';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -45,10 +52,10 @@ export interface ConversationEngagement {
45
52
  engagement_name?: string;
46
53
  /**
47
54
  *
48
- * @type {object}
55
+ * @type {ConversationEngagementEquation}
49
56
  * @memberof ConversationEngagement
50
57
  */
51
- equation?: object;
58
+ equation?: ConversationEngagementEquation;
52
59
  /**
53
60
  *
54
61
  * @type {number}
@@ -56,13 +63,25 @@ export interface ConversationEngagement {
56
63
  */
57
64
  time_on_page?: number;
58
65
  /**
59
- *
66
+ * The type of visitor
60
67
  * @type {string}
61
68
  * @memberof ConversationEngagement
62
69
  */
63
- visitor_type?: string;
70
+ visitor_type?: ConversationEngagementVisitorTypeEnum;
64
71
  }
65
72
 
73
+
74
+ /**
75
+ * @export
76
+ */
77
+ export const ConversationEngagementVisitorTypeEnum = {
78
+ All: 'all',
79
+ FirstTime: 'first time',
80
+ Returning: 'returning'
81
+ } as const;
82
+ export type ConversationEngagementVisitorTypeEnum = typeof ConversationEngagementVisitorTypeEnum[keyof typeof ConversationEngagementVisitorTypeEnum];
83
+
84
+
66
85
  export function ConversationEngagementFromJSON(json: any): ConversationEngagement {
67
86
  return ConversationEngagementFromJSONTyped(json, false);
68
87
  }
@@ -77,7 +96,7 @@ export function ConversationEngagementFromJSONTyped(json: any, ignoreDiscriminat
77
96
  'customer_greeting': !exists(json, 'customer_greeting') ? undefined : json['customer_greeting'],
78
97
  'department_oids': !exists(json, 'department_oids') ? undefined : json['department_oids'],
79
98
  'engagement_name': !exists(json, 'engagement_name') ? undefined : json['engagement_name'],
80
- 'equation': !exists(json, 'equation') ? undefined : json['equation'],
99
+ 'equation': !exists(json, 'equation') ? undefined : ConversationEngagementEquationFromJSON(json['equation']),
81
100
  'time_on_page': !exists(json, 'time_on_page') ? undefined : json['time_on_page'],
82
101
  'visitor_type': !exists(json, 'visitor_type') ? undefined : json['visitor_type'],
83
102
  };
@@ -96,7 +115,7 @@ export function ConversationEngagementToJSON(value?: ConversationEngagement | nu
96
115
  'customer_greeting': value.customer_greeting,
97
116
  'department_oids': value.department_oids,
98
117
  'engagement_name': value.engagement_name,
99
- 'equation': value.equation,
118
+ 'equation': ConversationEngagementEquationToJSON(value.equation),
100
119
  'time_on_page': value.time_on_page,
101
120
  'visitor_type': value.visitor_type,
102
121
  };
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationEngagementEquationGroup,
18
+ ConversationEngagementEquationGroupFromJSON,
19
+ ConversationEngagementEquationGroupFromJSONTyped,
20
+ ConversationEngagementEquationGroupToJSON,
21
+ } from './ConversationEngagementEquationGroup';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ConversationEngagementEquation
27
+ */
28
+ export interface ConversationEngagementEquation {
29
+ /**
30
+ *
31
+ * @type {Array<ConversationEngagementEquationGroup>}
32
+ * @memberof ConversationEngagementEquation
33
+ */
34
+ groups?: Array<ConversationEngagementEquationGroup>;
35
+ }
36
+
37
+ export function ConversationEngagementEquationFromJSON(json: any): ConversationEngagementEquation {
38
+ return ConversationEngagementEquationFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ConversationEngagementEquationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagementEquation {
42
+ if ((json === undefined) || (json === null)) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'groups': !exists(json, 'groups') ? undefined : ((json['groups'] as Array<any>).map(ConversationEngagementEquationGroupFromJSON)),
48
+ };
49
+ }
50
+
51
+ export function ConversationEngagementEquationToJSON(value?: ConversationEngagementEquation | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'groups': value.groups === undefined ? undefined : ((value.groups as Array<any>).map(ConversationEngagementEquationGroupToJSON)),
61
+ };
62
+ }
63
+
@@ -0,0 +1,239 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConversationEngagementEquationFunction
20
+ */
21
+ export interface ConversationEngagementEquationFunction {
22
+ /**
23
+ * Logic operation to perform on an any page url function type
24
+ * @type {string}
25
+ * @memberof ConversationEngagementEquationFunction
26
+ */
27
+ any_page_url_logic?: ConversationEngagementEquationFunctionAnyPageUrlLogicEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ConversationEngagementEquationFunction
32
+ */
33
+ any_page_url_value?: string;
34
+ /**
35
+ * Logic operation to perform on a current page url function type
36
+ * @type {string}
37
+ * @memberof ConversationEngagementEquationFunction
38
+ */
39
+ current_page_url_logic?: ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ConversationEngagementEquationFunction
44
+ */
45
+ current_page_url_value?: string;
46
+ /**
47
+ * Logic operation to perform on a customer's browsing time function type
48
+ * @type {string}
49
+ * @memberof ConversationEngagementEquationFunction
50
+ */
51
+ customers_browsing_time_logic?: ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ConversationEngagementEquationFunction
56
+ */
57
+ customers_browsing_time_seconds?: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ConversationEngagementEquationFunction
62
+ */
63
+ customers_location_country?: string;
64
+ /**
65
+ * Logic operation to perform on a customer's location function type
66
+ * @type {string}
67
+ * @memberof ConversationEngagementEquationFunction
68
+ */
69
+ customers_location_logic?: ConversationEngagementEquationFunctionCustomersLocationLogicEnum;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof ConversationEngagementEquationFunction
74
+ */
75
+ customers_location_state?: string;
76
+ /**
77
+ * Logic operation to perform on a customer's browsing time function type
78
+ * @type {string}
79
+ * @memberof ConversationEngagementEquationFunction
80
+ */
81
+ number_of_viewed_pages_logic?: ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof ConversationEngagementEquationFunction
86
+ */
87
+ number_of_viewed_pages_value?: number;
88
+ /**
89
+ * Logic operation to perform on a referring website function type
90
+ * @type {string}
91
+ * @memberof ConversationEngagementEquationFunction
92
+ */
93
+ referring_website_logic?: ConversationEngagementEquationFunctionReferringWebsiteLogicEnum;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof ConversationEngagementEquationFunction
98
+ */
99
+ referring_website_value?: string;
100
+ /**
101
+ * Type of function
102
+ * @type {string}
103
+ * @memberof ConversationEngagementEquationFunction
104
+ */
105
+ type?: ConversationEngagementEquationFunctionTypeEnum;
106
+ }
107
+
108
+
109
+ /**
110
+ * @export
111
+ */
112
+ export const ConversationEngagementEquationFunctionAnyPageUrlLogicEnum = {
113
+ Contains: 'contains',
114
+ DoesNotContain: 'does not contain',
115
+ IsExactly: 'is exactly',
116
+ IsNot: 'is not'
117
+ } as const;
118
+ export type ConversationEngagementEquationFunctionAnyPageUrlLogicEnum = typeof ConversationEngagementEquationFunctionAnyPageUrlLogicEnum[keyof typeof ConversationEngagementEquationFunctionAnyPageUrlLogicEnum];
119
+
120
+ /**
121
+ * @export
122
+ */
123
+ export const ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum = {
124
+ Contains: 'contains',
125
+ DoesNotContain: 'does not contain',
126
+ IsExactly: 'is exactly',
127
+ IsNot: 'is not'
128
+ } as const;
129
+ export type ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum = typeof ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum[keyof typeof ConversationEngagementEquationFunctionCurrentPageUrlLogicEnum];
130
+
131
+ /**
132
+ * @export
133
+ */
134
+ export const ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum = {
135
+ AtLeast: 'is at least',
136
+ MoreThan: 'is more than',
137
+ LessThan: 'is less than',
138
+ AtMost: 'is at most'
139
+ } as const;
140
+ export type ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum = typeof ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum[keyof typeof ConversationEngagementEquationFunctionCustomersBrowsingTimeLogicEnum];
141
+
142
+ /**
143
+ * @export
144
+ */
145
+ export const ConversationEngagementEquationFunctionCustomersLocationLogicEnum = {
146
+ Is: 'is',
147
+ IsNot: 'is not'
148
+ } as const;
149
+ export type ConversationEngagementEquationFunctionCustomersLocationLogicEnum = typeof ConversationEngagementEquationFunctionCustomersLocationLogicEnum[keyof typeof ConversationEngagementEquationFunctionCustomersLocationLogicEnum];
150
+
151
+ /**
152
+ * @export
153
+ */
154
+ export const ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum = {
155
+ AtLeast: 'is at least',
156
+ MoreThan: 'is more than',
157
+ LessThan: 'is less than',
158
+ AtMost: 'is at most'
159
+ } as const;
160
+ export type ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum = typeof ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum[keyof typeof ConversationEngagementEquationFunctionNumberOfViewedPagesLogicEnum];
161
+
162
+ /**
163
+ * @export
164
+ */
165
+ export const ConversationEngagementEquationFunctionReferringWebsiteLogicEnum = {
166
+ Contains: 'contains',
167
+ DoesNotContain: 'does not contain',
168
+ IsExactly: 'is exactly',
169
+ IsNot: 'is not'
170
+ } as const;
171
+ export type ConversationEngagementEquationFunctionReferringWebsiteLogicEnum = typeof ConversationEngagementEquationFunctionReferringWebsiteLogicEnum[keyof typeof ConversationEngagementEquationFunctionReferringWebsiteLogicEnum];
172
+
173
+ /**
174
+ * @export
175
+ */
176
+ export const ConversationEngagementEquationFunctionTypeEnum = {
177
+ CurrentPageUrl: 'current page url',
178
+ CustomersLocation: 'customer\'s location',
179
+ CustomersBrowsingTime: 'customer\'s browsing time',
180
+ NumberOfViewedPages: 'number of viewed pages',
181
+ ReferringWebsiteAddress: 'referring website address',
182
+ AnyPageFromSession: 'any page from session'
183
+ } as const;
184
+ export type ConversationEngagementEquationFunctionTypeEnum = typeof ConversationEngagementEquationFunctionTypeEnum[keyof typeof ConversationEngagementEquationFunctionTypeEnum];
185
+
186
+
187
+ export function ConversationEngagementEquationFunctionFromJSON(json: any): ConversationEngagementEquationFunction {
188
+ return ConversationEngagementEquationFunctionFromJSONTyped(json, false);
189
+ }
190
+
191
+ export function ConversationEngagementEquationFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagementEquationFunction {
192
+ if ((json === undefined) || (json === null)) {
193
+ return json;
194
+ }
195
+ return {
196
+
197
+ 'any_page_url_logic': !exists(json, 'any_page_url_logic') ? undefined : json['any_page_url_logic'],
198
+ 'any_page_url_value': !exists(json, 'any_page_url_value') ? undefined : json['any_page_url_value'],
199
+ 'current_page_url_logic': !exists(json, 'current_page_url_logic') ? undefined : json['current_page_url_logic'],
200
+ 'current_page_url_value': !exists(json, 'current_page_url_value') ? undefined : json['current_page_url_value'],
201
+ 'customers_browsing_time_logic': !exists(json, 'customers_browsing_time_logic') ? undefined : json['customers_browsing_time_logic'],
202
+ 'customers_browsing_time_seconds': !exists(json, 'customers_browsing_time_seconds') ? undefined : json['customers_browsing_time_seconds'],
203
+ 'customers_location_country': !exists(json, 'customers_location_country') ? undefined : json['customers_location_country'],
204
+ 'customers_location_logic': !exists(json, 'customers_location_logic') ? undefined : json['customers_location_logic'],
205
+ 'customers_location_state': !exists(json, 'customers_location_state') ? undefined : json['customers_location_state'],
206
+ 'number_of_viewed_pages_logic': !exists(json, 'number_of_viewed_pages_logic') ? undefined : json['number_of_viewed_pages_logic'],
207
+ 'number_of_viewed_pages_value': !exists(json, 'number_of_viewed_pages_value') ? undefined : json['number_of_viewed_pages_value'],
208
+ 'referring_website_logic': !exists(json, 'referring_website_logic') ? undefined : json['referring_website_logic'],
209
+ 'referring_website_value': !exists(json, 'referring_website_value') ? undefined : json['referring_website_value'],
210
+ 'type': !exists(json, 'type') ? undefined : json['type'],
211
+ };
212
+ }
213
+
214
+ export function ConversationEngagementEquationFunctionToJSON(value?: ConversationEngagementEquationFunction | null): any {
215
+ if (value === undefined) {
216
+ return undefined;
217
+ }
218
+ if (value === null) {
219
+ return null;
220
+ }
221
+ return {
222
+
223
+ 'any_page_url_logic': value.any_page_url_logic,
224
+ 'any_page_url_value': value.any_page_url_value,
225
+ 'current_page_url_logic': value.current_page_url_logic,
226
+ 'current_page_url_value': value.current_page_url_value,
227
+ 'customers_browsing_time_logic': value.customers_browsing_time_logic,
228
+ 'customers_browsing_time_seconds': value.customers_browsing_time_seconds,
229
+ 'customers_location_country': value.customers_location_country,
230
+ 'customers_location_logic': value.customers_location_logic,
231
+ 'customers_location_state': value.customers_location_state,
232
+ 'number_of_viewed_pages_logic': value.number_of_viewed_pages_logic,
233
+ 'number_of_viewed_pages_value': value.number_of_viewed_pages_value,
234
+ 'referring_website_logic': value.referring_website_logic,
235
+ 'referring_website_value': value.referring_website_value,
236
+ 'type': value.type,
237
+ };
238
+ }
239
+
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationEngagementEquationFunction,
18
+ ConversationEngagementEquationFunctionFromJSON,
19
+ ConversationEngagementEquationFunctionFromJSONTyped,
20
+ ConversationEngagementEquationFunctionToJSON,
21
+ } from './ConversationEngagementEquationFunction';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ConversationEngagementEquationGroup
27
+ */
28
+ export interface ConversationEngagementEquationGroup {
29
+ /**
30
+ *
31
+ * @type {Array<ConversationEngagementEquationFunction>}
32
+ * @memberof ConversationEngagementEquationGroup
33
+ */
34
+ functions?: Array<ConversationEngagementEquationFunction>;
35
+ }
36
+
37
+ export function ConversationEngagementEquationGroupFromJSON(json: any): ConversationEngagementEquationGroup {
38
+ return ConversationEngagementEquationGroupFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ConversationEngagementEquationGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEngagementEquationGroup {
42
+ if ((json === undefined) || (json === null)) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'functions': !exists(json, 'functions') ? undefined : ((json['functions'] as Array<any>).map(ConversationEngagementEquationFunctionFromJSON)),
48
+ };
49
+ }
50
+
51
+ export function ConversationEngagementEquationGroupToJSON(value?: ConversationEngagementEquationGroup | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'functions': value.functions === undefined ? undefined : ((value.functions as Array<any>).map(ConversationEngagementEquationFunctionToJSON)),
61
+ };
62
+ }
63
+
@@ -132,6 +132,9 @@ export * from './ConversationDepartment';
132
132
  export * from './ConversationDepartmentResponse';
133
133
  export * from './ConversationDepartmentsResponse';
134
134
  export * from './ConversationEngagement';
135
+ export * from './ConversationEngagementEquation';
136
+ export * from './ConversationEngagementEquationFunction';
137
+ export * from './ConversationEngagementEquationGroup';
135
138
  export * from './ConversationEngagementResponse';
136
139
  export * from './ConversationEngagementsResponse';
137
140
  export * from './ConversationEventAddCoupon';