ultracart_rest_api_v2_typescript 4.0.34-RC → 4.0.37-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 +10 -0
- package/README.md +5 -2
- package/dist/apis/ConversationApi.d.ts +213 -0
- package/dist/apis/ConversationApi.js +490 -0
- package/dist/apis/OauthApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/Activity.d.ts +12 -0
- package/dist/models/Activity.js +4 -0
- package/dist/models/Conversation.d.ts +53 -0
- package/dist/models/Conversation.js +52 -0
- package/dist/models/ConversationAgentAuthResponse.d.ts +57 -0
- package/dist/models/ConversationAgentAuthResponse.js +52 -0
- package/dist/models/ConversationMessage.d.ts +58 -0
- package/dist/models/ConversationMessage.js +53 -0
- package/dist/models/ConversationMessageTransportStatus.d.ts +33 -0
- package/dist/models/ConversationMessageTransportStatus.js +44 -0
- package/dist/models/ConversationParticipant.d.ts +63 -0
- package/dist/models/ConversationParticipant.js +54 -0
- package/dist/models/ConversationStartRequest.d.ts +33 -0
- package/dist/models/ConversationStartRequest.js +44 -0
- package/dist/models/ConversationStartResponse.d.ts +33 -0
- package/dist/models/ConversationStartResponse.js +44 -0
- package/dist/models/ConversationSummary.d.ts +75 -0
- package/dist/models/ConversationSummary.js +58 -0
- package/dist/models/ConversationsResponse.d.ts +55 -0
- package/dist/models/ConversationsResponse.js +54 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +476 -0
- package/src/apis/OauthApi.ts +2 -2
- package/src/apis/index.ts +1 -0
- package/src/models/Activity.ts +16 -0
- package/src/models/Conversation.ts +101 -0
- package/src/models/ConversationAgentAuthResponse.ts +96 -0
- package/src/models/ConversationMessage.ts +103 -0
- package/src/models/ConversationMessageTransportStatus.ts +64 -0
- package/src/models/ConversationParticipant.ts +104 -0
- package/src/models/ConversationStartRequest.ts +64 -0
- package/src/models/ConversationStartResponse.ts +64 -0
- package/src/models/ConversationSummary.ts +120 -0
- package/src/models/ConversationsResponse.ts +113 -0
- package/src/models/index.ts +9 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,7 @@ src/apis/AutoOrderApi.ts
|
|
|
7
7
|
src/apis/ChannelPartnerApi.ts
|
|
8
8
|
src/apis/ChargebackApi.ts
|
|
9
9
|
src/apis/CheckoutApi.ts
|
|
10
|
+
src/apis/ConversationApi.ts
|
|
10
11
|
src/apis/CouponApi.ts
|
|
11
12
|
src/apis/CustomerApi.ts
|
|
12
13
|
src/apis/FulfillmentApi.ts
|
|
@@ -138,6 +139,15 @@ src/models/CheckoutSetupBrowserKeyRequest.ts
|
|
|
138
139
|
src/models/CheckoutSetupBrowserKeyResponse.ts
|
|
139
140
|
src/models/CheckoutStateProvinceResponse.ts
|
|
140
141
|
src/models/CityStateZip.ts
|
|
142
|
+
src/models/Conversation.ts
|
|
143
|
+
src/models/ConversationAgentAuthResponse.ts
|
|
144
|
+
src/models/ConversationMessage.ts
|
|
145
|
+
src/models/ConversationMessageTransportStatus.ts
|
|
146
|
+
src/models/ConversationParticipant.ts
|
|
147
|
+
src/models/ConversationStartRequest.ts
|
|
148
|
+
src/models/ConversationStartResponse.ts
|
|
149
|
+
src/models/ConversationSummary.ts
|
|
150
|
+
src/models/ConversationsResponse.ts
|
|
141
151
|
src/models/CountriesResponse.ts
|
|
142
152
|
src/models/Country.ts
|
|
143
153
|
src/models/Coupon.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.37-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.37-RC --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.37-RC | 07/20/2022 | conversation participant name added |
|
|
58
|
+
| 4.0.36-RC | 07/18/2022 | twilio dev |
|
|
59
|
+
| 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
|
|
57
60
|
| 4.0.34-RC | 07/11/2022 | Customer API - mergeCustomer method |
|
|
58
61
|
| 4.0.33-RC | 07/05/2022 | docs update |
|
|
59
62
|
| 4.0.32-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
|
|
@@ -0,0 +1,213 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { Conversation, ConversationAgentAuthResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
|
|
14
|
+
export interface GetConversationRequest {
|
|
15
|
+
conversationUuid: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetConversationMultimediaUploadUrlRequest {
|
|
18
|
+
extension: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetConversationsRequest {
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface JoinConversationRequest {
|
|
25
|
+
conversationUuid: string;
|
|
26
|
+
}
|
|
27
|
+
export interface LeaveConversationRequest {
|
|
28
|
+
conversationUuid: string;
|
|
29
|
+
}
|
|
30
|
+
export interface StartConversationRequest {
|
|
31
|
+
startRequest: ConversationStartRequest;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* ConversationApi - interface
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @interface ConversationApiInterface
|
|
38
|
+
*/
|
|
39
|
+
export interface ConversationApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
42
|
+
* @summary Get agent websocket authorization
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof ConversationApiInterface
|
|
46
|
+
*/
|
|
47
|
+
getAgentWebsocketAuthorizationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationAgentAuthResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
50
|
+
* Get agent websocket authorization
|
|
51
|
+
*/
|
|
52
|
+
getAgentWebsocketAuthorization(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentAuthResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve a conversation including the participants and messages
|
|
55
|
+
* @summary Retrieve a conversation
|
|
56
|
+
* @param {string} conversationUuid
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
* @memberof ConversationApiInterface
|
|
60
|
+
*/
|
|
61
|
+
getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve a conversation including the participants and messages
|
|
64
|
+
* Retrieve a conversation
|
|
65
|
+
*/
|
|
66
|
+
getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
|
|
67
|
+
/**
|
|
68
|
+
* Get a presigned conersation multimedia upload URL
|
|
69
|
+
* @summary Get a presigned conersation multimedia upload URL
|
|
70
|
+
* @param {string} extension
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
* @memberof ConversationApiInterface
|
|
74
|
+
*/
|
|
75
|
+
getConversationMultimediaUploadUrlRaw(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
76
|
+
/**
|
|
77
|
+
* Get a presigned conersation multimedia upload URL
|
|
78
|
+
* Get a presigned conersation multimedia upload URL
|
|
79
|
+
*/
|
|
80
|
+
getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
83
|
+
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
84
|
+
* @param {number} [limit] The maximum number of records to return on this one API call. (Max 200)
|
|
85
|
+
* @param {number} [offset] Pagination of the record set. Offset is a zero based index.
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
* @memberof ConversationApiInterface
|
|
89
|
+
*/
|
|
90
|
+
getConversationsRaw(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationsResponse>>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
93
|
+
* Retrieve a list of conversation summaries newest to oldest
|
|
94
|
+
*/
|
|
95
|
+
getConversations(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationsResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* Join a conversation
|
|
98
|
+
* @summary Join a conversation
|
|
99
|
+
* @param {string} conversationUuid
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof ConversationApiInterface
|
|
103
|
+
*/
|
|
104
|
+
joinConversationRaw(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
105
|
+
/**
|
|
106
|
+
* Join a conversation
|
|
107
|
+
* Join a conversation
|
|
108
|
+
*/
|
|
109
|
+
joinConversation(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Leave a conversation
|
|
112
|
+
* @summary Leave a conversation
|
|
113
|
+
* @param {string} conversationUuid
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
* @memberof ConversationApiInterface
|
|
117
|
+
*/
|
|
118
|
+
leaveConversationRaw(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
119
|
+
/**
|
|
120
|
+
* Leave a conversation
|
|
121
|
+
* Leave a conversation
|
|
122
|
+
*/
|
|
123
|
+
leaveConversation(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Start a new conversation
|
|
126
|
+
* @summary Start a conversation
|
|
127
|
+
* @param {ConversationStartRequest} startRequest Start request
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
* @memberof ConversationApiInterface
|
|
131
|
+
*/
|
|
132
|
+
startConversationRaw(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationStartResponse>>;
|
|
133
|
+
/**
|
|
134
|
+
* Start a new conversation
|
|
135
|
+
* Start a conversation
|
|
136
|
+
*/
|
|
137
|
+
startConversation(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationStartResponse>;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
export declare class ConversationApi extends runtime.BaseAPI implements ConversationApiInterface {
|
|
143
|
+
/**
|
|
144
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
145
|
+
* Get agent websocket authorization
|
|
146
|
+
*/
|
|
147
|
+
getAgentWebsocketAuthorizationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationAgentAuthResponse>>;
|
|
148
|
+
/**
|
|
149
|
+
* Retrieve a JWT to authorize an agent to make a websocket connection.
|
|
150
|
+
* Get agent websocket authorization
|
|
151
|
+
*/
|
|
152
|
+
getAgentWebsocketAuthorization(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentAuthResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Retrieve a conversation including the participants and messages
|
|
155
|
+
* Retrieve a conversation
|
|
156
|
+
*/
|
|
157
|
+
getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
|
|
158
|
+
/**
|
|
159
|
+
* Retrieve a conversation including the participants and messages
|
|
160
|
+
* Retrieve a conversation
|
|
161
|
+
*/
|
|
162
|
+
getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
|
|
163
|
+
/**
|
|
164
|
+
* Get a presigned conersation multimedia upload URL
|
|
165
|
+
* Get a presigned conersation multimedia upload URL
|
|
166
|
+
*/
|
|
167
|
+
getConversationMultimediaUploadUrlRaw(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
168
|
+
/**
|
|
169
|
+
* Get a presigned conersation multimedia upload URL
|
|
170
|
+
* Get a presigned conersation multimedia upload URL
|
|
171
|
+
*/
|
|
172
|
+
getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
175
|
+
* Retrieve a list of conversation summaries newest to oldest
|
|
176
|
+
*/
|
|
177
|
+
getConversationsRaw(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationsResponse>>;
|
|
178
|
+
/**
|
|
179
|
+
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
180
|
+
* Retrieve a list of conversation summaries newest to oldest
|
|
181
|
+
*/
|
|
182
|
+
getConversations(requestParameters?: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationsResponse>;
|
|
183
|
+
/**
|
|
184
|
+
* Join a conversation
|
|
185
|
+
* Join a conversation
|
|
186
|
+
*/
|
|
187
|
+
joinConversationRaw(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
188
|
+
/**
|
|
189
|
+
* Join a conversation
|
|
190
|
+
* Join a conversation
|
|
191
|
+
*/
|
|
192
|
+
joinConversation(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
193
|
+
/**
|
|
194
|
+
* Leave a conversation
|
|
195
|
+
* Leave a conversation
|
|
196
|
+
*/
|
|
197
|
+
leaveConversationRaw(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
198
|
+
/**
|
|
199
|
+
* Leave a conversation
|
|
200
|
+
* Leave a conversation
|
|
201
|
+
*/
|
|
202
|
+
leaveConversation(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* Start a new conversation
|
|
205
|
+
* Start a conversation
|
|
206
|
+
*/
|
|
207
|
+
startConversationRaw(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationStartResponse>>;
|
|
208
|
+
/**
|
|
209
|
+
* Start a new conversation
|
|
210
|
+
* Start a conversation
|
|
211
|
+
*/
|
|
212
|
+
startConversation(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationStartResponse>;
|
|
213
|
+
}
|