ultracart_rest_api_v2_typescript 4.0.25-RC → 4.0.35-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.
Files changed (50) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +12 -2
  3. package/dist/apis/ConversationApi.d.ts +186 -0
  4. package/dist/apis/ConversationApi.js +433 -0
  5. package/dist/apis/CustomerApi.d.ts +32 -1
  6. package/dist/apis/CustomerApi.js +65 -0
  7. package/dist/apis/OauthApi.js +2 -2
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/models/Activity.d.ts +12 -0
  11. package/dist/models/Activity.js +4 -0
  12. package/dist/models/Conversation.d.ts +53 -0
  13. package/dist/models/Conversation.js +52 -0
  14. package/dist/models/ConversationAgentAuthResponse.d.ts +39 -0
  15. package/dist/models/ConversationAgentAuthResponse.js +46 -0
  16. package/dist/models/ConversationMessage.d.ts +51 -0
  17. package/dist/models/ConversationMessage.js +50 -0
  18. package/dist/models/ConversationParticipant.d.ts +63 -0
  19. package/dist/models/ConversationParticipant.js +54 -0
  20. package/dist/models/ConversationStartRequest.d.ts +33 -0
  21. package/dist/models/ConversationStartRequest.js +44 -0
  22. package/dist/models/ConversationStartResponse.d.ts +33 -0
  23. package/dist/models/ConversationStartResponse.js +44 -0
  24. package/dist/models/ConversationSummary.d.ts +75 -0
  25. package/dist/models/ConversationSummary.js +58 -0
  26. package/dist/models/ConversationsResponse.d.ts +55 -0
  27. package/dist/models/ConversationsResponse.js +54 -0
  28. package/dist/models/CustomerActivity.d.ts +24 -0
  29. package/dist/models/CustomerActivity.js +8 -0
  30. package/dist/models/CustomerMergeRequest.d.ts +33 -0
  31. package/dist/models/CustomerMergeRequest.js +44 -0
  32. package/dist/models/index.d.ts +9 -0
  33. package/dist/models/index.js +9 -0
  34. package/package.json +1 -1
  35. package/src/apis/ConversationApi.ts +416 -0
  36. package/src/apis/CustomerApi.ts +78 -0
  37. package/src/apis/OauthApi.ts +2 -2
  38. package/src/apis/index.ts +1 -0
  39. package/src/models/Activity.ts +16 -0
  40. package/src/models/Conversation.ts +101 -0
  41. package/src/models/ConversationAgentAuthResponse.ts +72 -0
  42. package/src/models/ConversationMessage.ts +88 -0
  43. package/src/models/ConversationParticipant.ts +104 -0
  44. package/src/models/ConversationStartRequest.ts +64 -0
  45. package/src/models/ConversationStartResponse.ts +64 -0
  46. package/src/models/ConversationSummary.ts +120 -0
  47. package/src/models/ConversationsResponse.ts +113 -0
  48. package/src/models/CustomerActivity.ts +32 -0
  49. package/src/models/CustomerMergeRequest.ts +64 -0
  50. package/src/models/index.ts +9 -0
@@ -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,14 @@ 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/ConversationParticipant.ts
146
+ src/models/ConversationStartRequest.ts
147
+ src/models/ConversationStartResponse.ts
148
+ src/models/ConversationSummary.ts
149
+ src/models/ConversationsResponse.ts
141
150
  src/models/CountriesResponse.ts
142
151
  src/models/Country.ts
143
152
  src/models/Coupon.ts
@@ -215,6 +224,7 @@ src/models/CustomerEmailListChanges.ts
215
224
  src/models/CustomerLoyalty.ts
216
225
  src/models/CustomerLoyaltyLedger.ts
217
226
  src/models/CustomerLoyaltyRedemption.ts
227
+ src/models/CustomerMergeRequest.ts
218
228
  src/models/CustomerOrdersSummary.ts
219
229
  src/models/CustomerPricingTier.ts
220
230
  src/models/CustomerPrivacy.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.25-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.35-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.25-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.35-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,16 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
58
+ | 4.0.34-RC | 07/11/2022 | Customer API - mergeCustomer method |
59
+ | 4.0.33-RC | 07/05/2022 | docs update |
60
+ | 4.0.32-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
61
+ | 4.0.31-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
62
+ | 4.0.30-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
63
+ | 4.0.29-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
64
+ | 4.0.28-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
65
+ | 4.0.27-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
66
+ | 4.0.26-RC | 06/24/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
57
67
  | 4.0.25-RC | 06/23/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
58
68
  | 4.0.24-RC | 06/23/2022 | automation test |
59
69
  | 4.0.23-RC | 06/23/2022 | automation test |
@@ -0,0 +1,186 @@
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 GetConversationsRequest {
18
+ limit?: number;
19
+ offset?: number;
20
+ }
21
+ export interface JoinConversationRequest {
22
+ conversationUuid: string;
23
+ }
24
+ export interface LeaveConversationRequest {
25
+ conversationUuid: string;
26
+ }
27
+ export interface StartConversationRequest {
28
+ startRequest: ConversationStartRequest;
29
+ }
30
+ /**
31
+ * ConversationApi - interface
32
+ *
33
+ * @export
34
+ * @interface ConversationApiInterface
35
+ */
36
+ export interface ConversationApiInterface {
37
+ /**
38
+ * Retrieve a JWT to authorize an agent to make a websocket connection.
39
+ * @summary Get agent websocket authorization
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ * @memberof ConversationApiInterface
43
+ */
44
+ getAgentWebsocketAuthorizationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationAgentAuthResponse>>;
45
+ /**
46
+ * Retrieve a JWT to authorize an agent to make a websocket connection.
47
+ * Get agent websocket authorization
48
+ */
49
+ getAgentWebsocketAuthorization(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentAuthResponse>;
50
+ /**
51
+ * Retrieve a conversation including the participants and messages
52
+ * @summary Retrieve a conversation
53
+ * @param {string} conversationUuid
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ * @memberof ConversationApiInterface
57
+ */
58
+ getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
59
+ /**
60
+ * Retrieve a conversation including the participants and messages
61
+ * Retrieve a conversation
62
+ */
63
+ getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
64
+ /**
65
+ * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
66
+ * @summary Retrieve a list of conversation summaries newest to oldest
67
+ * @param {number} [limit] The maximum number of records to return on this one API call. (Max 200)
68
+ * @param {number} [offset] Pagination of the record set. Offset is a zero based index.
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ * @memberof ConversationApiInterface
72
+ */
73
+ getConversationsRaw(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationsResponse>>;
74
+ /**
75
+ * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
76
+ * Retrieve a list of conversation summaries newest to oldest
77
+ */
78
+ getConversations(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationsResponse>;
79
+ /**
80
+ * Join a conversation
81
+ * @summary Join a conversation
82
+ * @param {string} conversationUuid
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ * @memberof ConversationApiInterface
86
+ */
87
+ joinConversationRaw(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
88
+ /**
89
+ * Join a conversation
90
+ * Join a conversation
91
+ */
92
+ joinConversation(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
93
+ /**
94
+ * Leave a conversation
95
+ * @summary Leave a conversation
96
+ * @param {string} conversationUuid
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ * @memberof ConversationApiInterface
100
+ */
101
+ leaveConversationRaw(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
102
+ /**
103
+ * Leave a conversation
104
+ * Leave a conversation
105
+ */
106
+ leaveConversation(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
107
+ /**
108
+ * Start a new conversation
109
+ * @summary Start a conversation
110
+ * @param {ConversationStartRequest} startRequest Start request
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ * @memberof ConversationApiInterface
114
+ */
115
+ startConversationRaw(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationStartResponse>>;
116
+ /**
117
+ * Start a new conversation
118
+ * Start a conversation
119
+ */
120
+ startConversation(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationStartResponse>;
121
+ }
122
+ /**
123
+ *
124
+ */
125
+ export declare class ConversationApi extends runtime.BaseAPI implements ConversationApiInterface {
126
+ /**
127
+ * Retrieve a JWT to authorize an agent to make a websocket connection.
128
+ * Get agent websocket authorization
129
+ */
130
+ getAgentWebsocketAuthorizationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationAgentAuthResponse>>;
131
+ /**
132
+ * Retrieve a JWT to authorize an agent to make a websocket connection.
133
+ * Get agent websocket authorization
134
+ */
135
+ getAgentWebsocketAuthorization(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentAuthResponse>;
136
+ /**
137
+ * Retrieve a conversation including the participants and messages
138
+ * Retrieve a conversation
139
+ */
140
+ getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
141
+ /**
142
+ * Retrieve a conversation including the participants and messages
143
+ * Retrieve a conversation
144
+ */
145
+ getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
146
+ /**
147
+ * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
148
+ * Retrieve a list of conversation summaries newest to oldest
149
+ */
150
+ getConversationsRaw(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationsResponse>>;
151
+ /**
152
+ * Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
153
+ * Retrieve a list of conversation summaries newest to oldest
154
+ */
155
+ getConversations(requestParameters?: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationsResponse>;
156
+ /**
157
+ * Join a conversation
158
+ * Join a conversation
159
+ */
160
+ joinConversationRaw(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
161
+ /**
162
+ * Join a conversation
163
+ * Join a conversation
164
+ */
165
+ joinConversation(requestParameters: JoinConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
166
+ /**
167
+ * Leave a conversation
168
+ * Leave a conversation
169
+ */
170
+ leaveConversationRaw(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
171
+ /**
172
+ * Leave a conversation
173
+ * Leave a conversation
174
+ */
175
+ leaveConversation(requestParameters: LeaveConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
176
+ /**
177
+ * Start a new conversation
178
+ * Start a conversation
179
+ */
180
+ startConversationRaw(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationStartResponse>>;
181
+ /**
182
+ * Start a new conversation
183
+ * Start a conversation
184
+ */
185
+ startConversation(requestParameters: StartConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationStartResponse>;
186
+ }