ultracart_rest_api_v2_typescript 4.0.98-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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +4 -2
- package/dist/models/ConversationAutocompleteResponse.d.ts +3 -2
- package/dist/models/ConversationAutocompleteResponse.js +3 -2
- package/dist/models/ConversationAutocompleteValue.d.ts +33 -0
- package/dist/models/ConversationAutocompleteValue.js +44 -0
- package/dist/models/ConversationEngagement.d.ts +14 -4
- package/dist/models/ConversationEngagement.js +12 -3
- package/dist/models/ConversationEngagementEquation.d.ts +28 -0
- package/dist/models/ConversationEngagementEquation.js +43 -0
- package/dist/models/ConversationEngagementEquationFunction.d.ts +175 -0
- package/dist/models/ConversationEngagementEquationFunction.js +131 -0
- package/dist/models/ConversationEngagementEquationGroup.d.ts +28 -0
- package/dist/models/ConversationEngagementEquationGroup.js +43 -0
- package/dist/models/ConversationSearchRequest.d.ts +12 -0
- package/dist/models/ConversationSearchRequest.js +4 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/models/ConversationAutocompleteResponse.ts +10 -4
- package/src/models/ConversationAutocompleteValue.ts +64 -0
- package/src/models/ConversationEngagement.ts +25 -6
- package/src/models/ConversationEngagementEquation.ts +63 -0
- package/src/models/ConversationEngagementEquationFunction.ts +239 -0
- package/src/models/ConversationEngagementEquationGroup.ts +63 -0
- package/src/models/ConversationSearchRequest.ts +16 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -146,6 +146,7 @@ src/models/ConversationAgentAuth.ts
|
|
|
146
146
|
src/models/ConversationAgentAuthResponse.ts
|
|
147
147
|
src/models/ConversationAutocompleteRequest.ts
|
|
148
148
|
src/models/ConversationAutocompleteResponse.ts
|
|
149
|
+
src/models/ConversationAutocompleteValue.ts
|
|
149
150
|
src/models/ConversationCannedMessage.ts
|
|
150
151
|
src/models/ConversationCannedMessageResponse.ts
|
|
151
152
|
src/models/ConversationCannedMessagesResponse.ts
|
|
@@ -154,6 +155,9 @@ src/models/ConversationDepartment.ts
|
|
|
154
155
|
src/models/ConversationDepartmentResponse.ts
|
|
155
156
|
src/models/ConversationDepartmentsResponse.ts
|
|
156
157
|
src/models/ConversationEngagement.ts
|
|
158
|
+
src/models/ConversationEngagementEquation.ts
|
|
159
|
+
src/models/ConversationEngagementEquationFunction.ts
|
|
160
|
+
src/models/ConversationEngagementEquationGroup.ts
|
|
157
161
|
src/models/ConversationEngagementResponse.ts
|
|
158
162
|
src/models/ConversationEngagementsResponse.ts
|
|
159
163
|
src/models/ConversationEventAddCoupon.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
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.
|
|
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,8 @@ 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 |
|
|
58
|
+
| 4.0.99-RC | 12/15/2022 | conversation search - added start date filtering |
|
|
57
59
|
| 4.0.98-RC | 12/15/2022 | conversation searching |
|
|
58
60
|
| 4.0.97-RC | 12/13/2022 | conversations - add email and sms_phone to participant object |
|
|
59
61
|
| 4.0.96-RC | 12/09/2022 | conversations - message translation |
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ConversationAutocompleteValue } from './ConversationAutocompleteValue';
|
|
12
13
|
import { ModelError } from './ModelError';
|
|
13
14
|
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
15
|
import { Warning } from './Warning';
|
|
@@ -38,10 +39,10 @@ export interface ConversationAutocompleteResponse {
|
|
|
38
39
|
metadata?: ResponseMetadata;
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
41
|
-
* @type {Array<
|
|
42
|
+
* @type {Array<ConversationAutocompleteValue>}
|
|
42
43
|
* @memberof ConversationAutocompleteResponse
|
|
43
44
|
*/
|
|
44
|
-
results?: Array<
|
|
45
|
+
results?: Array<ConversationAutocompleteValue>;
|
|
45
46
|
/**
|
|
46
47
|
* Indicates if API call was successful
|
|
47
48
|
* @type {boolean}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationAutocompleteResponseToJSON = exports.ConversationAutocompleteResponseFromJSONTyped = exports.ConversationAutocompleteResponseFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationAutocompleteValue_1 = require("./ConversationAutocompleteValue");
|
|
18
19
|
var ModelError_1 = require("./ModelError");
|
|
19
20
|
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
20
21
|
var Warning_1 = require("./Warning");
|
|
@@ -30,7 +31,7 @@ function ConversationAutocompleteResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
30
31
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
31
32
|
'field': !(0, runtime_1.exists)(json, 'field') ? undefined : json['field'],
|
|
32
33
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
33
|
-
'results': !(0, runtime_1.exists)(json, 'results') ? undefined : json['results'],
|
|
34
|
+
'results': !(0, runtime_1.exists)(json, 'results') ? undefined : (json['results'].map(ConversationAutocompleteValue_1.ConversationAutocompleteValueFromJSON)),
|
|
34
35
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
36
|
'term': !(0, runtime_1.exists)(json, 'term') ? undefined : json['term'],
|
|
36
37
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
@@ -48,7 +49,7 @@ function ConversationAutocompleteResponseToJSON(value) {
|
|
|
48
49
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
49
50
|
'field': value.field,
|
|
50
51
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
51
|
-
'results': value.results,
|
|
52
|
+
'results': value.results === undefined ? undefined : (value.results.map(ConversationAutocompleteValue_1.ConversationAutocompleteValueToJSON)),
|
|
52
53
|
'success': value.success,
|
|
53
54
|
'term': value.term,
|
|
54
55
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
@@ -0,0 +1,33 @@
|
|
|
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 ConversationAutocompleteValue
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationAutocompleteValue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationAutocompleteValue
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationAutocompleteValue
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationAutocompleteValueFromJSON(json: any): ConversationAutocompleteValue;
|
|
32
|
+
export declare function ConversationAutocompleteValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAutocompleteValue;
|
|
33
|
+
export declare function ConversationAutocompleteValueToJSON(value?: ConversationAutocompleteValue | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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.ConversationAutocompleteValueToJSON = exports.ConversationAutocompleteValueFromJSONTyped = exports.ConversationAutocompleteValueFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationAutocompleteValueFromJSON(json) {
|
|
19
|
+
return ConversationAutocompleteValueFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationAutocompleteValueFromJSON = ConversationAutocompleteValueFromJSON;
|
|
22
|
+
function ConversationAutocompleteValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
28
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ConversationAutocompleteValueFromJSONTyped = ConversationAutocompleteValueFromJSONTyped;
|
|
32
|
+
function ConversationAutocompleteValueToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'description': value.description,
|
|
41
|
+
'value': value.value,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationAutocompleteValueToJSON = ConversationAutocompleteValueToJSON;
|
|
@@ -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 {
|
|
45
|
+
* @type {ConversationEngagementEquation}
|
|
45
46
|
* @memberof ConversationEngagement
|
|
46
47
|
*/
|
|
47
|
-
equation?:
|
|
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?:
|
|
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;
|