ultracart_rest_api_v2_typescript 4.1.147 → 4.1.148
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 +1 -0
- package/README.md +3 -2
- package/dist/models/ConversationVirtualAgentCapabilities.d.ts +19 -0
- package/dist/models/ConversationVirtualAgentCapabilities.js +7 -0
- package/dist/models/ConversationVirtualAgentCapabilityCustomCollection.d.ts +67 -0
- package/dist/models/ConversationVirtualAgentCapabilityCustomCollection.js +62 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationVirtualAgentCapabilities.ts +30 -0
- package/src/models/ConversationVirtualAgentCapabilityCustomCollection.ts +115 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -349,6 +349,7 @@ src/models/ConversationVirtualAgentBudget.ts
|
|
|
349
349
|
src/models/ConversationVirtualAgentBudgetResponse.ts
|
|
350
350
|
src/models/ConversationVirtualAgentCapabilities.ts
|
|
351
351
|
src/models/ConversationVirtualAgentCapabilitiesResponse.ts
|
|
352
|
+
src/models/ConversationVirtualAgentCapabilityCustomCollection.ts
|
|
352
353
|
src/models/ConversationVirtualAgentCapabilityZohoDeskDepartment.ts
|
|
353
354
|
src/models/ConversationWebchatContext.ts
|
|
354
355
|
src/models/ConversationWebchatQueueStatus.ts
|
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.148
|
|
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.148 --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.148 | 09/04/2026 | conversations - added ai agent capabilities |
|
|
88
89
|
| 4.1.147 | 09/04/2026 | sfvb - internal testing |
|
|
89
90
|
| 4.1.146 | 09/03/2026 | sfvb - internal testing |
|
|
90
91
|
| 4.1.145 | 09/02/2026 | sfvb - internal testing |
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ConversationVirtualAgentCapabilityCustomCollection } from './ConversationVirtualAgentCapabilityCustomCollection';
|
|
12
13
|
import { ConversationVirtualAgentCapabilityZohoDeskDepartment } from './ConversationVirtualAgentCapabilityZohoDeskDepartment';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -16,6 +17,12 @@ import { ConversationVirtualAgentCapabilityZohoDeskDepartment } from './Conversa
|
|
|
16
17
|
* @interface ConversationVirtualAgentCapabilities
|
|
17
18
|
*/
|
|
18
19
|
export interface ConversationVirtualAgentCapabilities {
|
|
20
|
+
/**
|
|
21
|
+
* Permission flag to allow this Agent to search the merchant's custom Typesense collections.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
24
|
+
*/
|
|
25
|
+
access_custom_collections?: boolean;
|
|
19
26
|
/**
|
|
20
27
|
* Permission flag to allow this Agent access to the storefront and item information.
|
|
21
28
|
* @type {boolean}
|
|
@@ -28,6 +35,18 @@ export interface ConversationVirtualAgentCapabilities {
|
|
|
28
35
|
* @memberof ConversationVirtualAgentCapabilities
|
|
29
36
|
*/
|
|
30
37
|
cancel_subscription?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The custom collections this Agent is allowed to search. Empty means none, even when access_custom_collections is true.
|
|
40
|
+
* @type {object}
|
|
41
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
42
|
+
*/
|
|
43
|
+
custom_collection_oids?: object;
|
|
44
|
+
/**
|
|
45
|
+
* Read only. All of the merchant's custom collections, to populate the selection list for custom_collection_oids. Changes here are ignored.
|
|
46
|
+
* @type {Array<ConversationVirtualAgentCapabilityCustomCollection>}
|
|
47
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
48
|
+
*/
|
|
49
|
+
custom_collections?: Array<ConversationVirtualAgentCapabilityCustomCollection>;
|
|
31
50
|
/**
|
|
32
51
|
*
|
|
33
52
|
* @type {boolean}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationVirtualAgentCapabilitiesToJSON = exports.ConversationVirtualAgentCapabilitiesFromJSONTyped = exports.ConversationVirtualAgentCapabilitiesFromJSON = exports.instanceOfConversationVirtualAgentCapabilities = exports.ConversationVirtualAgentCapabilitiesOpenSupportTicketChannelEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationVirtualAgentCapabilityCustomCollection_1 = require("./ConversationVirtualAgentCapabilityCustomCollection");
|
|
18
19
|
var ConversationVirtualAgentCapabilityZohoDeskDepartment_1 = require("./ConversationVirtualAgentCapabilityZohoDeskDepartment");
|
|
19
20
|
/**
|
|
20
21
|
* @export
|
|
@@ -42,8 +43,11 @@ function ConversationVirtualAgentCapabilitiesFromJSONTyped(json, ignoreDiscrimin
|
|
|
42
43
|
return json;
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
46
|
+
'access_custom_collections': !(0, runtime_1.exists)(json, 'access_custom_collections') ? undefined : json['access_custom_collections'],
|
|
45
47
|
'access_storefront_and_item': !(0, runtime_1.exists)(json, 'access_storefront_and_item') ? undefined : json['access_storefront_and_item'],
|
|
46
48
|
'cancel_subscription': !(0, runtime_1.exists)(json, 'cancel_subscription') ? undefined : json['cancel_subscription'],
|
|
49
|
+
'custom_collection_oids': !(0, runtime_1.exists)(json, 'custom_collection_oids') ? undefined : json['custom_collection_oids'],
|
|
50
|
+
'custom_collections': !(0, runtime_1.exists)(json, 'custom_collections') ? undefined : (json['custom_collections'].map(ConversationVirtualAgentCapabilityCustomCollection_1.ConversationVirtualAgentCapabilityCustomCollectionFromJSON)),
|
|
47
51
|
'delay_subscription': !(0, runtime_1.exists)(json, 'delay_subscription') ? undefined : json['delay_subscription'],
|
|
48
52
|
'generate_coupon': !(0, runtime_1.exists)(json, 'generate_coupon') ? undefined : json['generate_coupon'],
|
|
49
53
|
'lookup_order_information': !(0, runtime_1.exists)(json, 'lookup_order_information') ? undefined : json['lookup_order_information'],
|
|
@@ -69,8 +73,11 @@ function ConversationVirtualAgentCapabilitiesToJSON(value) {
|
|
|
69
73
|
return null;
|
|
70
74
|
}
|
|
71
75
|
return {
|
|
76
|
+
'access_custom_collections': value.access_custom_collections,
|
|
72
77
|
'access_storefront_and_item': value.access_storefront_and_item,
|
|
73
78
|
'cancel_subscription': value.cancel_subscription,
|
|
79
|
+
'custom_collection_oids': value.custom_collection_oids,
|
|
80
|
+
'custom_collections': value.custom_collections === undefined ? undefined : (value.custom_collections.map(ConversationVirtualAgentCapabilityCustomCollection_1.ConversationVirtualAgentCapabilityCustomCollectionToJSON)),
|
|
74
81
|
'delay_subscription': value.delay_subscription,
|
|
75
82
|
'generate_coupon': value.generate_coupon,
|
|
76
83
|
'lookup_order_information': value.lookup_order_information,
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ConversationVirtualAgentCapabilityCustomCollection
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationVirtualAgentCapabilityCustomCollection {
|
|
18
|
+
/**
|
|
19
|
+
* Merchant authored description of what is in this collection, which is what the agent sees when deciding whether to search it
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
22
|
+
*/
|
|
23
|
+
ai_description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* True if this collection has been enabled for AI access in its own configuration. A collection that is not enabled cannot be searched even if it is selected here.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
28
|
+
*/
|
|
29
|
+
ai_enabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Merchant assigned name of the collection
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
34
|
+
*/
|
|
35
|
+
collection_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Error from the last build, if it failed. A collection with an error will return nothing to the agent, so this is worth surfacing next to the selection.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
40
|
+
*/
|
|
41
|
+
error_message?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Date/time the collection was last rebuilt from the merchant's BigQuery query
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
46
|
+
*/
|
|
47
|
+
last_update_dts?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Number of records loaded on the last build
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
52
|
+
*/
|
|
53
|
+
record_count?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The identifier to place in custom_collection_oids to grant the agent access to this collection
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
58
|
+
*/
|
|
59
|
+
typesense_custom_collection_oid?: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ConversationVirtualAgentCapabilityCustomCollection interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfConversationVirtualAgentCapabilityCustomCollection(value: object): boolean;
|
|
65
|
+
export declare function ConversationVirtualAgentCapabilityCustomCollectionFromJSON(json: any): ConversationVirtualAgentCapabilityCustomCollection;
|
|
66
|
+
export declare function ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationVirtualAgentCapabilityCustomCollection;
|
|
67
|
+
export declare function ConversationVirtualAgentCapabilityCustomCollectionToJSON(value?: ConversationVirtualAgentCapabilityCustomCollection | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ConversationVirtualAgentCapabilityCustomCollectionToJSON = exports.ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped = exports.ConversationVirtualAgentCapabilityCustomCollectionFromJSON = exports.instanceOfConversationVirtualAgentCapabilityCustomCollection = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ConversationVirtualAgentCapabilityCustomCollection interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfConversationVirtualAgentCapabilityCustomCollection(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfConversationVirtualAgentCapabilityCustomCollection = instanceOfConversationVirtualAgentCapabilityCustomCollection;
|
|
26
|
+
function ConversationVirtualAgentCapabilityCustomCollectionFromJSON(json) {
|
|
27
|
+
return ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ConversationVirtualAgentCapabilityCustomCollectionFromJSON = ConversationVirtualAgentCapabilityCustomCollectionFromJSON;
|
|
30
|
+
function ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ai_description': !(0, runtime_1.exists)(json, 'ai_description') ? undefined : json['ai_description'],
|
|
36
|
+
'ai_enabled': !(0, runtime_1.exists)(json, 'ai_enabled') ? undefined : json['ai_enabled'],
|
|
37
|
+
'collection_name': !(0, runtime_1.exists)(json, 'collection_name') ? undefined : json['collection_name'],
|
|
38
|
+
'error_message': !(0, runtime_1.exists)(json, 'error_message') ? undefined : json['error_message'],
|
|
39
|
+
'last_update_dts': !(0, runtime_1.exists)(json, 'last_update_dts') ? undefined : json['last_update_dts'],
|
|
40
|
+
'record_count': !(0, runtime_1.exists)(json, 'record_count') ? undefined : json['record_count'],
|
|
41
|
+
'typesense_custom_collection_oid': !(0, runtime_1.exists)(json, 'typesense_custom_collection_oid') ? undefined : json['typesense_custom_collection_oid'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped = ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped;
|
|
45
|
+
function ConversationVirtualAgentCapabilityCustomCollectionToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'ai_description': value.ai_description,
|
|
54
|
+
'ai_enabled': value.ai_enabled,
|
|
55
|
+
'collection_name': value.collection_name,
|
|
56
|
+
'error_message': value.error_message,
|
|
57
|
+
'last_update_dts': value.last_update_dts,
|
|
58
|
+
'record_count': value.record_count,
|
|
59
|
+
'typesense_custom_collection_oid': value.typesense_custom_collection_oid,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.ConversationVirtualAgentCapabilityCustomCollectionToJSON = ConversationVirtualAgentCapabilityCustomCollectionToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ export * from './ConversationVirtualAgentBudget';
|
|
|
319
319
|
export * from './ConversationVirtualAgentBudgetResponse';
|
|
320
320
|
export * from './ConversationVirtualAgentCapabilities';
|
|
321
321
|
export * from './ConversationVirtualAgentCapabilitiesResponse';
|
|
322
|
+
export * from './ConversationVirtualAgentCapabilityCustomCollection';
|
|
322
323
|
export * from './ConversationVirtualAgentCapabilityZohoDeskDepartment';
|
|
323
324
|
export * from './ConversationWebchatContext';
|
|
324
325
|
export * from './ConversationWebchatQueueStatus';
|
package/dist/models/index.js
CHANGED
|
@@ -337,6 +337,7 @@ __exportStar(require("./ConversationVirtualAgentBudget"), exports);
|
|
|
337
337
|
__exportStar(require("./ConversationVirtualAgentBudgetResponse"), exports);
|
|
338
338
|
__exportStar(require("./ConversationVirtualAgentCapabilities"), exports);
|
|
339
339
|
__exportStar(require("./ConversationVirtualAgentCapabilitiesResponse"), exports);
|
|
340
|
+
__exportStar(require("./ConversationVirtualAgentCapabilityCustomCollection"), exports);
|
|
340
341
|
__exportStar(require("./ConversationVirtualAgentCapabilityZohoDeskDepartment"), exports);
|
|
341
342
|
__exportStar(require("./ConversationWebchatContext"), exports);
|
|
342
343
|
__exportStar(require("./ConversationWebchatQueueStatus"), exports);
|
package/package.json
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ConversationVirtualAgentCapabilityCustomCollection,
|
|
18
|
+
ConversationVirtualAgentCapabilityCustomCollectionFromJSON,
|
|
19
|
+
ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped,
|
|
20
|
+
ConversationVirtualAgentCapabilityCustomCollectionToJSON,
|
|
21
|
+
} from './ConversationVirtualAgentCapabilityCustomCollection';
|
|
16
22
|
import {
|
|
17
23
|
ConversationVirtualAgentCapabilityZohoDeskDepartment,
|
|
18
24
|
ConversationVirtualAgentCapabilityZohoDeskDepartmentFromJSON,
|
|
@@ -26,6 +32,12 @@ import {
|
|
|
26
32
|
* @interface ConversationVirtualAgentCapabilities
|
|
27
33
|
*/
|
|
28
34
|
export interface ConversationVirtualAgentCapabilities {
|
|
35
|
+
/**
|
|
36
|
+
* Permission flag to allow this Agent to search the merchant's custom Typesense collections.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
39
|
+
*/
|
|
40
|
+
access_custom_collections?: boolean;
|
|
29
41
|
/**
|
|
30
42
|
* Permission flag to allow this Agent access to the storefront and item information.
|
|
31
43
|
* @type {boolean}
|
|
@@ -38,6 +50,18 @@ export interface ConversationVirtualAgentCapabilities {
|
|
|
38
50
|
* @memberof ConversationVirtualAgentCapabilities
|
|
39
51
|
*/
|
|
40
52
|
cancel_subscription?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The custom collections this Agent is allowed to search. Empty means none, even when access_custom_collections is true.
|
|
55
|
+
* @type {object}
|
|
56
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
57
|
+
*/
|
|
58
|
+
custom_collection_oids?: object;
|
|
59
|
+
/**
|
|
60
|
+
* Read only. All of the merchant's custom collections, to populate the selection list for custom_collection_oids. Changes here are ignored.
|
|
61
|
+
* @type {Array<ConversationVirtualAgentCapabilityCustomCollection>}
|
|
62
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
63
|
+
*/
|
|
64
|
+
custom_collections?: Array<ConversationVirtualAgentCapabilityCustomCollection>;
|
|
41
65
|
/**
|
|
42
66
|
*
|
|
43
67
|
* @type {boolean}
|
|
@@ -157,8 +181,11 @@ export function ConversationVirtualAgentCapabilitiesFromJSONTyped(json: any, ign
|
|
|
157
181
|
}
|
|
158
182
|
return {
|
|
159
183
|
|
|
184
|
+
'access_custom_collections': !exists(json, 'access_custom_collections') ? undefined : json['access_custom_collections'],
|
|
160
185
|
'access_storefront_and_item': !exists(json, 'access_storefront_and_item') ? undefined : json['access_storefront_and_item'],
|
|
161
186
|
'cancel_subscription': !exists(json, 'cancel_subscription') ? undefined : json['cancel_subscription'],
|
|
187
|
+
'custom_collection_oids': !exists(json, 'custom_collection_oids') ? undefined : json['custom_collection_oids'],
|
|
188
|
+
'custom_collections': !exists(json, 'custom_collections') ? undefined : ((json['custom_collections'] as Array<any>).map(ConversationVirtualAgentCapabilityCustomCollectionFromJSON)),
|
|
162
189
|
'delay_subscription': !exists(json, 'delay_subscription') ? undefined : json['delay_subscription'],
|
|
163
190
|
'generate_coupon': !exists(json, 'generate_coupon') ? undefined : json['generate_coupon'],
|
|
164
191
|
'lookup_order_information': !exists(json, 'lookup_order_information') ? undefined : json['lookup_order_information'],
|
|
@@ -185,8 +212,11 @@ export function ConversationVirtualAgentCapabilitiesToJSON(value?: ConversationV
|
|
|
185
212
|
}
|
|
186
213
|
return {
|
|
187
214
|
|
|
215
|
+
'access_custom_collections': value.access_custom_collections,
|
|
188
216
|
'access_storefront_and_item': value.access_storefront_and_item,
|
|
189
217
|
'cancel_subscription': value.cancel_subscription,
|
|
218
|
+
'custom_collection_oids': value.custom_collection_oids,
|
|
219
|
+
'custom_collections': value.custom_collections === undefined ? undefined : ((value.custom_collections as Array<any>).map(ConversationVirtualAgentCapabilityCustomCollectionToJSON)),
|
|
190
220
|
'delay_subscription': value.delay_subscription,
|
|
191
221
|
'generate_coupon': value.generate_coupon,
|
|
192
222
|
'lookup_order_information': value.lookup_order_information,
|
|
@@ -0,0 +1,115 @@
|
|
|
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 ConversationVirtualAgentCapabilityCustomCollection
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationVirtualAgentCapabilityCustomCollection {
|
|
22
|
+
/**
|
|
23
|
+
* Merchant authored description of what is in this collection, which is what the agent sees when deciding whether to search it
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
26
|
+
*/
|
|
27
|
+
ai_description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* True if this collection has been enabled for AI access in its own configuration. A collection that is not enabled cannot be searched even if it is selected here.
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
32
|
+
*/
|
|
33
|
+
ai_enabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Merchant assigned name of the collection
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
38
|
+
*/
|
|
39
|
+
collection_name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Error from the last build, if it failed. A collection with an error will return nothing to the agent, so this is worth surfacing next to the selection.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
44
|
+
*/
|
|
45
|
+
error_message?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Date/time the collection was last rebuilt from the merchant's BigQuery query
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
50
|
+
*/
|
|
51
|
+
last_update_dts?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Number of records loaded on the last build
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
56
|
+
*/
|
|
57
|
+
record_count?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The identifier to place in custom_collection_oids to grant the agent access to this collection
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ConversationVirtualAgentCapabilityCustomCollection
|
|
62
|
+
*/
|
|
63
|
+
typesense_custom_collection_oid?: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ConversationVirtualAgentCapabilityCustomCollection interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfConversationVirtualAgentCapabilityCustomCollection(value: object): boolean {
|
|
72
|
+
let isInstance = true;
|
|
73
|
+
|
|
74
|
+
return isInstance;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ConversationVirtualAgentCapabilityCustomCollectionFromJSON(json: any): ConversationVirtualAgentCapabilityCustomCollection {
|
|
78
|
+
return ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ConversationVirtualAgentCapabilityCustomCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationVirtualAgentCapabilityCustomCollection {
|
|
82
|
+
if ((json === undefined) || (json === null)) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'ai_description': !exists(json, 'ai_description') ? undefined : json['ai_description'],
|
|
88
|
+
'ai_enabled': !exists(json, 'ai_enabled') ? undefined : json['ai_enabled'],
|
|
89
|
+
'collection_name': !exists(json, 'collection_name') ? undefined : json['collection_name'],
|
|
90
|
+
'error_message': !exists(json, 'error_message') ? undefined : json['error_message'],
|
|
91
|
+
'last_update_dts': !exists(json, 'last_update_dts') ? undefined : json['last_update_dts'],
|
|
92
|
+
'record_count': !exists(json, 'record_count') ? undefined : json['record_count'],
|
|
93
|
+
'typesense_custom_collection_oid': !exists(json, 'typesense_custom_collection_oid') ? undefined : json['typesense_custom_collection_oid'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ConversationVirtualAgentCapabilityCustomCollectionToJSON(value?: ConversationVirtualAgentCapabilityCustomCollection | null): any {
|
|
98
|
+
if (value === undefined) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (value === null) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'ai_description': value.ai_description,
|
|
107
|
+
'ai_enabled': value.ai_enabled,
|
|
108
|
+
'collection_name': value.collection_name,
|
|
109
|
+
'error_message': value.error_message,
|
|
110
|
+
'last_update_dts': value.last_update_dts,
|
|
111
|
+
'record_count': value.record_count,
|
|
112
|
+
'typesense_custom_collection_oid': value.typesense_custom_collection_oid,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -321,6 +321,7 @@ export * from './ConversationVirtualAgentBudget';
|
|
|
321
321
|
export * from './ConversationVirtualAgentBudgetResponse';
|
|
322
322
|
export * from './ConversationVirtualAgentCapabilities';
|
|
323
323
|
export * from './ConversationVirtualAgentCapabilitiesResponse';
|
|
324
|
+
export * from './ConversationVirtualAgentCapabilityCustomCollection';
|
|
324
325
|
export * from './ConversationVirtualAgentCapabilityZohoDeskDepartment';
|
|
325
326
|
export * from './ConversationWebchatContext';
|
|
326
327
|
export * from './ConversationWebchatQueueStatus';
|