ultracart_rest_api_v2_typescript 4.0.40-RC → 4.0.41-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 +1 -0
- package/README.md +3 -2
- package/dist/models/ConversationEventQueuePosition.d.ts +33 -0
- package/dist/models/ConversationEventQueuePosition.js +44 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +5 -4
- package/dist/models/ConversationWebsocketMessage.js +5 -4
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationEventQueuePosition.ts +64 -0
- package/src/models/ConversationWebsocketMessage.ts +14 -8
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -143,6 +143,7 @@ src/models/CityStateZip.ts
|
|
|
143
143
|
src/models/Conversation.ts
|
|
144
144
|
src/models/ConversationAgentAuth.ts
|
|
145
145
|
src/models/ConversationAgentAuthResponse.ts
|
|
146
|
+
src/models/ConversationEventQueuePosition.ts
|
|
146
147
|
src/models/ConversationMessage.ts
|
|
147
148
|
src/models/ConversationMessageTransportStatus.ts
|
|
148
149
|
src/models/ConversationMultimediaUploadUrl.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.41-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.41-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.41-RC | 07/25/2022 | conversations bug fixes |
|
|
57
58
|
| 4.0.40-RC | 07/25/2022 | conversations - add a websocket message model |
|
|
58
59
|
| 4.0.39-RC | 07/21/2022 | conversation response types improvements |
|
|
59
60
|
| 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
|
|
@@ -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 ConversationEventQueuePosition
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationEventQueuePosition {
|
|
18
|
+
/**
|
|
19
|
+
* True if agents are logged into the queue
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ConversationEventQueuePosition
|
|
22
|
+
*/
|
|
23
|
+
available?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Position in the queue. Value will be -1 if they cant be found in the queue.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ConversationEventQueuePosition
|
|
28
|
+
*/
|
|
29
|
+
position?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationEventQueuePositionFromJSON(json: any): ConversationEventQueuePosition;
|
|
32
|
+
export declare function ConversationEventQueuePositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventQueuePosition;
|
|
33
|
+
export declare function ConversationEventQueuePositionToJSON(value?: ConversationEventQueuePosition | 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.ConversationEventQueuePositionToJSON = exports.ConversationEventQueuePositionFromJSONTyped = exports.ConversationEventQueuePositionFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationEventQueuePositionFromJSON(json) {
|
|
19
|
+
return ConversationEventQueuePositionFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationEventQueuePositionFromJSON = ConversationEventQueuePositionFromJSON;
|
|
22
|
+
function ConversationEventQueuePositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'available': !(0, runtime_1.exists)(json, 'available') ? undefined : json['available'],
|
|
28
|
+
'position': !(0, runtime_1.exists)(json, 'position') ? undefined : json['position'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ConversationEventQueuePositionFromJSONTyped = ConversationEventQueuePositionFromJSONTyped;
|
|
32
|
+
function ConversationEventQueuePositionToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'available': value.available,
|
|
41
|
+
'position': value.position,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationEventQueuePositionToJSON = ConversationEventQueuePositionToJSON;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Conversation } from './Conversation';
|
|
13
|
+
import { ConversationEventQueuePosition } from './ConversationEventQueuePosition';
|
|
13
14
|
import { ConversationMessage } from './ConversationMessage';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -37,16 +38,16 @@ export interface ConversationWebsocketMessage {
|
|
|
37
38
|
event_new_conversation?: Conversation;
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
|
-
* @type {
|
|
41
|
+
* @type {Conversation}
|
|
41
42
|
* @memberof ConversationWebsocketMessage
|
|
42
43
|
*/
|
|
43
|
-
event_new_message?:
|
|
44
|
+
event_new_message?: Conversation;
|
|
44
45
|
/**
|
|
45
46
|
*
|
|
46
|
-
* @type {
|
|
47
|
+
* @type {ConversationEventQueuePosition}
|
|
47
48
|
* @memberof ConversationWebsocketMessage
|
|
48
49
|
*/
|
|
49
|
-
event_queue_position?:
|
|
50
|
+
event_queue_position?: ConversationEventQueuePosition;
|
|
50
51
|
/**
|
|
51
52
|
* Type of event
|
|
52
53
|
* @type {string}
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ConversationWebsocketMessageToJSON = exports.ConversationWebsocketMessageFromJSONTyped = exports.ConversationWebsocketMessageFromJSON = exports.ConversationWebsocketMessageTypeEnum = exports.ConversationWebsocketMessageEventTypeEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var Conversation_1 = require("./Conversation");
|
|
19
|
+
var ConversationEventQueuePosition_1 = require("./ConversationEventQueuePosition");
|
|
19
20
|
var ConversationMessage_1 = require("./ConversationMessage");
|
|
20
21
|
/**
|
|
21
22
|
* @export
|
|
@@ -48,8 +49,8 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
49
|
'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
|
|
49
50
|
'event_conversation_closed': !(0, runtime_1.exists)(json, 'event_conversation_closed') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['event_conversation_closed']),
|
|
50
51
|
'event_new_conversation': !(0, runtime_1.exists)(json, 'event_new_conversation') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['event_new_conversation']),
|
|
51
|
-
'event_new_message': !(0, runtime_1.exists)(json, 'event_new_message') ? undefined : (0,
|
|
52
|
-
'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : json['event_queue_position'],
|
|
52
|
+
'event_new_message': !(0, runtime_1.exists)(json, 'event_new_message') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['event_new_message']),
|
|
53
|
+
'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionFromJSON)(json['event_queue_position']),
|
|
53
54
|
'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
|
|
54
55
|
'event_updated_message': !(0, runtime_1.exists)(json, 'event_updated_message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['event_updated_message']),
|
|
55
56
|
'message': !(0, runtime_1.exists)(json, 'message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['message']),
|
|
@@ -68,8 +69,8 @@ function ConversationWebsocketMessageToJSON(value) {
|
|
|
68
69
|
'conversation_uuid': value.conversation_uuid,
|
|
69
70
|
'event_conversation_closed': (0, Conversation_1.ConversationToJSON)(value.event_conversation_closed),
|
|
70
71
|
'event_new_conversation': (0, Conversation_1.ConversationToJSON)(value.event_new_conversation),
|
|
71
|
-
'event_new_message': (0,
|
|
72
|
-
'event_queue_position': value.event_queue_position,
|
|
72
|
+
'event_new_message': (0, Conversation_1.ConversationToJSON)(value.event_new_message),
|
|
73
|
+
'event_queue_position': (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionToJSON)(value.event_queue_position),
|
|
73
74
|
'event_type': value.event_type,
|
|
74
75
|
'event_updated_message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.event_updated_message),
|
|
75
76
|
'message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.message),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export * from './CityStateZip';
|
|
|
118
118
|
export * from './Conversation';
|
|
119
119
|
export * from './ConversationAgentAuth';
|
|
120
120
|
export * from './ConversationAgentAuthResponse';
|
|
121
|
+
export * from './ConversationEventQueuePosition';
|
|
121
122
|
export * from './ConversationMessage';
|
|
122
123
|
export * from './ConversationMessageTransportStatus';
|
|
123
124
|
export * from './ConversationMultimediaUploadUrl';
|
package/dist/models/index.js
CHANGED
|
@@ -136,6 +136,7 @@ __exportStar(require("./CityStateZip"), exports);
|
|
|
136
136
|
__exportStar(require("./Conversation"), exports);
|
|
137
137
|
__exportStar(require("./ConversationAgentAuth"), exports);
|
|
138
138
|
__exportStar(require("./ConversationAgentAuthResponse"), exports);
|
|
139
|
+
__exportStar(require("./ConversationEventQueuePosition"), exports);
|
|
139
140
|
__exportStar(require("./ConversationMessage"), exports);
|
|
140
141
|
__exportStar(require("./ConversationMessageTransportStatus"), exports);
|
|
141
142
|
__exportStar(require("./ConversationMultimediaUploadUrl"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
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 ConversationEventQueuePosition
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationEventQueuePosition {
|
|
22
|
+
/**
|
|
23
|
+
* True if agents are logged into the queue
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ConversationEventQueuePosition
|
|
26
|
+
*/
|
|
27
|
+
available?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Position in the queue. Value will be -1 if they cant be found in the queue.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ConversationEventQueuePosition
|
|
32
|
+
*/
|
|
33
|
+
position?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function ConversationEventQueuePositionFromJSON(json: any): ConversationEventQueuePosition {
|
|
37
|
+
return ConversationEventQueuePositionFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConversationEventQueuePositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventQueuePosition {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'available': !exists(json, 'available') ? undefined : json['available'],
|
|
47
|
+
'position': !exists(json, 'position') ? undefined : json['position'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ConversationEventQueuePositionToJSON(value?: ConversationEventQueuePosition | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'available': value.available,
|
|
61
|
+
'position': value.position,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
ConversationFromJSONTyped,
|
|
20
20
|
ConversationToJSON,
|
|
21
21
|
} from './Conversation';
|
|
22
|
+
import {
|
|
23
|
+
ConversationEventQueuePosition,
|
|
24
|
+
ConversationEventQueuePositionFromJSON,
|
|
25
|
+
ConversationEventQueuePositionFromJSONTyped,
|
|
26
|
+
ConversationEventQueuePositionToJSON,
|
|
27
|
+
} from './ConversationEventQueuePosition';
|
|
22
28
|
import {
|
|
23
29
|
ConversationMessage,
|
|
24
30
|
ConversationMessageFromJSON,
|
|
@@ -52,16 +58,16 @@ export interface ConversationWebsocketMessage {
|
|
|
52
58
|
event_new_conversation?: Conversation;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
|
-
* @type {
|
|
61
|
+
* @type {Conversation}
|
|
56
62
|
* @memberof ConversationWebsocketMessage
|
|
57
63
|
*/
|
|
58
|
-
event_new_message?:
|
|
64
|
+
event_new_message?: Conversation;
|
|
59
65
|
/**
|
|
60
66
|
*
|
|
61
|
-
* @type {
|
|
67
|
+
* @type {ConversationEventQueuePosition}
|
|
62
68
|
* @memberof ConversationWebsocketMessage
|
|
63
69
|
*/
|
|
64
|
-
event_queue_position?:
|
|
70
|
+
event_queue_position?: ConversationEventQueuePosition;
|
|
65
71
|
/**
|
|
66
72
|
* Type of event
|
|
67
73
|
* @type {string}
|
|
@@ -126,8 +132,8 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
|
|
|
126
132
|
'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
|
|
127
133
|
'event_conversation_closed': !exists(json, 'event_conversation_closed') ? undefined : ConversationFromJSON(json['event_conversation_closed']),
|
|
128
134
|
'event_new_conversation': !exists(json, 'event_new_conversation') ? undefined : ConversationFromJSON(json['event_new_conversation']),
|
|
129
|
-
'event_new_message': !exists(json, 'event_new_message') ? undefined :
|
|
130
|
-
'event_queue_position': !exists(json, 'event_queue_position') ? undefined : json['event_queue_position'],
|
|
135
|
+
'event_new_message': !exists(json, 'event_new_message') ? undefined : ConversationFromJSON(json['event_new_message']),
|
|
136
|
+
'event_queue_position': !exists(json, 'event_queue_position') ? undefined : ConversationEventQueuePositionFromJSON(json['event_queue_position']),
|
|
131
137
|
'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
|
|
132
138
|
'event_updated_message': !exists(json, 'event_updated_message') ? undefined : ConversationMessageFromJSON(json['event_updated_message']),
|
|
133
139
|
'message': !exists(json, 'message') ? undefined : ConversationMessageFromJSON(json['message']),
|
|
@@ -147,8 +153,8 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
|
|
|
147
153
|
'conversation_uuid': value.conversation_uuid,
|
|
148
154
|
'event_conversation_closed': ConversationToJSON(value.event_conversation_closed),
|
|
149
155
|
'event_new_conversation': ConversationToJSON(value.event_new_conversation),
|
|
150
|
-
'event_new_message':
|
|
151
|
-
'event_queue_position': value.event_queue_position,
|
|
156
|
+
'event_new_message': ConversationToJSON(value.event_new_message),
|
|
157
|
+
'event_queue_position': ConversationEventQueuePositionToJSON(value.event_queue_position),
|
|
152
158
|
'event_type': value.event_type,
|
|
153
159
|
'event_updated_message': ConversationMessageToJSON(value.event_updated_message),
|
|
154
160
|
'message': ConversationMessageToJSON(value.message),
|
package/src/models/index.ts
CHANGED
|
@@ -120,6 +120,7 @@ export * from './CityStateZip';
|
|
|
120
120
|
export * from './Conversation';
|
|
121
121
|
export * from './ConversationAgentAuth';
|
|
122
122
|
export * from './ConversationAgentAuthResponse';
|
|
123
|
+
export * from './ConversationEventQueuePosition';
|
|
123
124
|
export * from './ConversationMessage';
|
|
124
125
|
export * from './ConversationMessageTransportStatus';
|
|
125
126
|
export * from './ConversationMultimediaUploadUrl';
|