ultracart_rest_api_v2_typescript 4.0.37-RC → 4.0.38-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.
@@ -140,10 +140,12 @@ src/models/CheckoutSetupBrowserKeyResponse.ts
140
140
  src/models/CheckoutStateProvinceResponse.ts
141
141
  src/models/CityStateZip.ts
142
142
  src/models/Conversation.ts
143
+ src/models/ConversationAgentAuth.ts
143
144
  src/models/ConversationAgentAuthResponse.ts
144
145
  src/models/ConversationMessage.ts
145
146
  src/models/ConversationMessageTransportStatus.ts
146
147
  src/models/ConversationParticipant.ts
148
+ src/models/ConversationResponse.ts
147
149
  src/models/ConversationStartRequest.ts
148
150
  src/models/ConversationStartResponse.ts
149
151
  src/models/ConversationSummary.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.37-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.38-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.37-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.38-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.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
57
58
  | 4.0.37-RC | 07/20/2022 | conversation participant name added |
58
59
  | 4.0.36-RC | 07/18/2022 | twilio dev |
59
60
  | 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Conversation, ConversationAgentAuthResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
13
+ import { ConversationAgentAuthResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
14
14
  export interface GetConversationRequest {
15
15
  conversationUuid: string;
16
16
  }
@@ -58,12 +58,12 @@ export interface ConversationApiInterface {
58
58
  * @throws {RequiredError}
59
59
  * @memberof ConversationApiInterface
60
60
  */
61
- getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
61
+ getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponse>>;
62
62
  /**
63
63
  * Retrieve a conversation including the participants and messages
64
64
  * Retrieve a conversation
65
65
  */
66
- getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
66
+ getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
67
67
  /**
68
68
  * Get a presigned conersation multimedia upload URL
69
69
  * @summary Get a presigned conersation multimedia upload URL
@@ -154,12 +154,12 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
154
154
  * Retrieve a conversation including the participants and messages
155
155
  * Retrieve a conversation
156
156
  */
157
- getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
157
+ getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponse>>;
158
158
  /**
159
159
  * Retrieve a conversation including the participants and messages
160
160
  * Retrieve a conversation
161
161
  */
162
- getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
162
+ getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
163
163
  /**
164
164
  * Get a presigned conersation multimedia upload URL
165
165
  * Get a presigned conersation multimedia upload URL
@@ -167,7 +167,7 @@ var ConversationApi = /** @class */ (function (_super) {
167
167
  }, initOverrides)];
168
168
  case 3:
169
169
  response = _c.sent();
170
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationFromJSON)(jsonValue); })];
170
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationResponseFromJSON)(jsonValue); })];
171
171
  }
172
172
  });
173
173
  });
@@ -60,6 +60,12 @@ export interface AutoOrderItem {
60
60
  * @memberof AutoOrderItem
61
61
  */
62
62
  auto_order_item_oid?: number;
63
+ /**
64
+ * Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
65
+ * @type {string}
66
+ * @memberof AutoOrderItem
67
+ */
68
+ first_order_dts?: string;
63
69
  /**
64
70
  * Frequency of the rebill if not a fixed schedule
65
71
  * @type {string}
@@ -126,6 +132,12 @@ export interface AutoOrderItem {
126
132
  * @memberof AutoOrderItem
127
133
  */
128
134
  original_quantity?: number;
135
+ /**
136
+ * True if paused. This field is an object instead of a primitive for backwards compatibility.
137
+ * @type {boolean}
138
+ * @memberof AutoOrderItem
139
+ */
140
+ paused?: boolean;
129
141
  /**
130
142
  * The PayPal Payer ID tied to this item
131
143
  * @type {string}
@@ -52,6 +52,7 @@ function AutoOrderItemFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'arbitrary_unit_cost': !(0, runtime_1.exists)(json, 'arbitrary_unit_cost') ? undefined : json['arbitrary_unit_cost'],
53
53
  'arbitrary_unit_cost_remaining_orders': !(0, runtime_1.exists)(json, 'arbitrary_unit_cost_remaining_orders') ? undefined : json['arbitrary_unit_cost_remaining_orders'],
54
54
  'auto_order_item_oid': !(0, runtime_1.exists)(json, 'auto_order_item_oid') ? undefined : json['auto_order_item_oid'],
55
+ 'first_order_dts': !(0, runtime_1.exists)(json, 'first_order_dts') ? undefined : json['first_order_dts'],
55
56
  'frequency': !(0, runtime_1.exists)(json, 'frequency') ? undefined : json['frequency'],
56
57
  'future_schedules': !(0, runtime_1.exists)(json, 'future_schedules') ? undefined : (json['future_schedules'].map(AutoOrderItemFutureSchedule_1.AutoOrderItemFutureScheduleFromJSON)),
57
58
  'last_order_dts': !(0, runtime_1.exists)(json, 'last_order_dts') ? undefined : json['last_order_dts'],
@@ -63,6 +64,7 @@ function AutoOrderItemFromJSONTyped(json, ignoreDiscriminator) {
63
64
  'options': !(0, runtime_1.exists)(json, 'options') ? undefined : (json['options'].map(AutoOrderItemOption_1.AutoOrderItemOptionFromJSON)),
64
65
  'original_item_id': !(0, runtime_1.exists)(json, 'original_item_id') ? undefined : json['original_item_id'],
65
66
  'original_quantity': !(0, runtime_1.exists)(json, 'original_quantity') ? undefined : json['original_quantity'],
67
+ 'paused': !(0, runtime_1.exists)(json, 'paused') ? undefined : json['paused'],
66
68
  'paypal_payer_id': !(0, runtime_1.exists)(json, 'paypal_payer_id') ? undefined : json['paypal_payer_id'],
67
69
  'paypal_recurring_payment_profile_id': !(0, runtime_1.exists)(json, 'paypal_recurring_payment_profile_id') ? undefined : json['paypal_recurring_payment_profile_id'],
68
70
  'preshipment_notice_sent': !(0, runtime_1.exists)(json, 'preshipment_notice_sent') ? undefined : json['preshipment_notice_sent'],
@@ -87,6 +89,7 @@ function AutoOrderItemToJSON(value) {
87
89
  'arbitrary_unit_cost': value.arbitrary_unit_cost,
88
90
  'arbitrary_unit_cost_remaining_orders': value.arbitrary_unit_cost_remaining_orders,
89
91
  'auto_order_item_oid': value.auto_order_item_oid,
92
+ 'first_order_dts': value.first_order_dts,
90
93
  'frequency': value.frequency,
91
94
  'future_schedules': value.future_schedules === undefined ? undefined : (value.future_schedules.map(AutoOrderItemFutureSchedule_1.AutoOrderItemFutureScheduleToJSON)),
92
95
  'last_order_dts': value.last_order_dts,
@@ -98,6 +101,7 @@ function AutoOrderItemToJSON(value) {
98
101
  'options': value.options === undefined ? undefined : (value.options.map(AutoOrderItemOption_1.AutoOrderItemOptionToJSON)),
99
102
  'original_item_id': value.original_item_id,
100
103
  'original_quantity': value.original_quantity,
104
+ 'paused': value.paused,
101
105
  'paypal_payer_id': value.paypal_payer_id,
102
106
  'paypal_recurring_payment_profile_id': value.paypal_recurring_payment_profile_id,
103
107
  'preshipment_notice_sent': value.preshipment_notice_sent,
@@ -0,0 +1,57 @@
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 ConversationAgentAuth
16
+ */
17
+ export interface ConversationAgentAuth {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationAgentAuth
22
+ */
23
+ conversation_participant_arn?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationAgentAuth
28
+ */
29
+ conversation_participant_name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConversationAgentAuth
34
+ */
35
+ jwt?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConversationAgentAuth
40
+ */
41
+ merchant_id?: string;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof ConversationAgentAuth
46
+ */
47
+ twilio_phone_numbers?: Array<string>;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ConversationAgentAuth
52
+ */
53
+ websocket_url?: string;
54
+ }
55
+ export declare function ConversationAgentAuthFromJSON(json: any): ConversationAgentAuth;
56
+ export declare function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuth;
57
+ export declare function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null): any;
@@ -0,0 +1,52 @@
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.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ConversationAgentAuthFromJSON(json) {
19
+ return ConversationAgentAuthFromJSONTyped(json, false);
20
+ }
21
+ exports.ConversationAgentAuthFromJSON = ConversationAgentAuthFromJSON;
22
+ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'conversation_participant_arn': !(0, runtime_1.exists)(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
28
+ 'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
29
+ 'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
30
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
31
+ 'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
32
+ 'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
33
+ };
34
+ }
35
+ exports.ConversationAgentAuthFromJSONTyped = ConversationAgentAuthFromJSONTyped;
36
+ function ConversationAgentAuthToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'conversation_participant_arn': value.conversation_participant_arn,
45
+ 'conversation_participant_name': value.conversation_participant_name,
46
+ 'jwt': value.jwt,
47
+ 'merchant_id': value.merchant_id,
48
+ 'twilio_phone_numbers': value.twilio_phone_numbers,
49
+ 'websocket_url': value.websocket_url,
50
+ };
51
+ }
52
+ exports.ConversationAgentAuthToJSON = ConversationAgentAuthToJSON;
@@ -9,6 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ConversationAgentAuth } from './ConversationAgentAuth';
13
+ import { ModelError } from './ModelError';
14
+ import { ResponseMetadata } from './ResponseMetadata';
15
+ import { Warning } from './Warning';
12
16
  /**
13
17
  *
14
18
  * @export
@@ -17,40 +21,34 @@
17
21
  export interface ConversationAgentAuthResponse {
18
22
  /**
19
23
  *
20
- * @type {string}
24
+ * @type {ConversationAgentAuth}
21
25
  * @memberof ConversationAgentAuthResponse
22
26
  */
23
- conversation_participant_arn?: string;
27
+ agent_auth?: ConversationAgentAuth;
24
28
  /**
25
29
  *
26
- * @type {string}
30
+ * @type {ModelError}
27
31
  * @memberof ConversationAgentAuthResponse
28
32
  */
29
- conversation_participant_name?: string;
33
+ error?: ModelError;
30
34
  /**
31
35
  *
32
- * @type {string}
36
+ * @type {ResponseMetadata}
33
37
  * @memberof ConversationAgentAuthResponse
34
38
  */
35
- jwt?: string;
39
+ metadata?: ResponseMetadata;
36
40
  /**
37
- *
38
- * @type {string}
39
- * @memberof ConversationAgentAuthResponse
40
- */
41
- merchant_id?: string;
42
- /**
43
- *
44
- * @type {Array<string>}
41
+ * Indicates if API call was successful
42
+ * @type {boolean}
45
43
  * @memberof ConversationAgentAuthResponse
46
44
  */
47
- twilio_phone_numbers?: Array<string>;
45
+ success?: boolean;
48
46
  /**
49
47
  *
50
- * @type {string}
48
+ * @type {Warning}
51
49
  * @memberof ConversationAgentAuthResponse
52
50
  */
53
- websocket_url?: string;
51
+ warning?: Warning;
54
52
  }
55
53
  export declare function ConversationAgentAuthResponseFromJSON(json: any): ConversationAgentAuthResponse;
56
54
  export declare function ConversationAgentAuthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuthResponse;
@@ -15,6 +15,10 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationAgentAuthResponseToJSON = exports.ConversationAgentAuthResponseFromJSONTyped = exports.ConversationAgentAuthResponseFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ConversationAgentAuth_1 = require("./ConversationAgentAuth");
19
+ var ModelError_1 = require("./ModelError");
20
+ var ResponseMetadata_1 = require("./ResponseMetadata");
21
+ var Warning_1 = require("./Warning");
18
22
  function ConversationAgentAuthResponseFromJSON(json) {
19
23
  return ConversationAgentAuthResponseFromJSONTyped(json, false);
20
24
  }
@@ -24,12 +28,11 @@ function ConversationAgentAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
24
28
  return json;
25
29
  }
26
30
  return {
27
- 'conversation_participant_arn': !(0, runtime_1.exists)(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
28
- 'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
29
- 'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
30
- 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
31
- 'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
32
- 'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
31
+ 'agent_auth': !(0, runtime_1.exists)(json, 'agent_auth') ? undefined : (0, ConversationAgentAuth_1.ConversationAgentAuthFromJSON)(json['agent_auth']),
32
+ 'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
33
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
34
+ 'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
35
+ 'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
33
36
  };
34
37
  }
35
38
  exports.ConversationAgentAuthResponseFromJSONTyped = ConversationAgentAuthResponseFromJSONTyped;
@@ -41,12 +44,11 @@ function ConversationAgentAuthResponseToJSON(value) {
41
44
  return null;
42
45
  }
43
46
  return {
44
- 'conversation_participant_arn': value.conversation_participant_arn,
45
- 'conversation_participant_name': value.conversation_participant_name,
46
- 'jwt': value.jwt,
47
- 'merchant_id': value.merchant_id,
48
- 'twilio_phone_numbers': value.twilio_phone_numbers,
49
- 'websocket_url': value.websocket_url,
47
+ 'agent_auth': (0, ConversationAgentAuth_1.ConversationAgentAuthToJSON)(value.agent_auth),
48
+ 'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
49
+ 'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
50
+ 'success': value.success,
51
+ 'warning': (0, Warning_1.WarningToJSON)(value.warning),
50
52
  };
51
53
  }
52
54
  exports.ConversationAgentAuthResponseToJSON = ConversationAgentAuthResponseToJSON;
@@ -0,0 +1,55 @@
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 { Conversation } from './Conversation';
13
+ import { ModelError } from './ModelError';
14
+ import { ResponseMetadata } from './ResponseMetadata';
15
+ import { Warning } from './Warning';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConversationResponse
20
+ */
21
+ export interface ConversationResponse {
22
+ /**
23
+ *
24
+ * @type {Conversation}
25
+ * @memberof ConversationResponse
26
+ */
27
+ conversation?: Conversation;
28
+ /**
29
+ *
30
+ * @type {ModelError}
31
+ * @memberof ConversationResponse
32
+ */
33
+ error?: ModelError;
34
+ /**
35
+ *
36
+ * @type {ResponseMetadata}
37
+ * @memberof ConversationResponse
38
+ */
39
+ metadata?: ResponseMetadata;
40
+ /**
41
+ * Indicates if API call was successful
42
+ * @type {boolean}
43
+ * @memberof ConversationResponse
44
+ */
45
+ success?: boolean;
46
+ /**
47
+ *
48
+ * @type {Warning}
49
+ * @memberof ConversationResponse
50
+ */
51
+ warning?: Warning;
52
+ }
53
+ export declare function ConversationResponseFromJSON(json: any): ConversationResponse;
54
+ export declare function ConversationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationResponse;
55
+ export declare function ConversationResponseToJSON(value?: ConversationResponse | null): any;
@@ -0,0 +1,54 @@
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.ConversationResponseToJSON = exports.ConversationResponseFromJSONTyped = exports.ConversationResponseFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var Conversation_1 = require("./Conversation");
19
+ var ModelError_1 = require("./ModelError");
20
+ var ResponseMetadata_1 = require("./ResponseMetadata");
21
+ var Warning_1 = require("./Warning");
22
+ function ConversationResponseFromJSON(json) {
23
+ return ConversationResponseFromJSONTyped(json, false);
24
+ }
25
+ exports.ConversationResponseFromJSON = ConversationResponseFromJSON;
26
+ function ConversationResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'conversation': !(0, runtime_1.exists)(json, 'conversation') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['conversation']),
32
+ 'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
33
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
34
+ 'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
35
+ 'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
36
+ };
37
+ }
38
+ exports.ConversationResponseFromJSONTyped = ConversationResponseFromJSONTyped;
39
+ function ConversationResponseToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'conversation': (0, Conversation_1.ConversationToJSON)(value.conversation),
48
+ 'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
49
+ 'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
50
+ 'success': value.success,
51
+ 'warning': (0, Warning_1.WarningToJSON)(value.warning),
52
+ };
53
+ }
54
+ exports.ConversationResponseToJSON = ConversationResponseToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Conversation } from './Conversation';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,16 +18,10 @@
17
18
  export interface ConversationStartResponse {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {Conversation}
21
22
  * @memberof ConversationStartResponse
22
23
  */
23
- conversation_arn?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ConversationStartResponse
28
- */
29
- conversation_uuid?: string;
24
+ conversation?: Conversation;
30
25
  }
31
26
  export declare function ConversationStartResponseFromJSON(json: any): ConversationStartResponse;
32
27
  export declare function ConversationStartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationStartResponse;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationStartResponseToJSON = exports.ConversationStartResponseFromJSONTyped = exports.ConversationStartResponseFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var Conversation_1 = require("./Conversation");
18
19
  function ConversationStartResponseFromJSON(json) {
19
20
  return ConversationStartResponseFromJSONTyped(json, false);
20
21
  }
@@ -24,8 +25,7 @@ function ConversationStartResponseFromJSONTyped(json, ignoreDiscriminator) {
24
25
  return json;
25
26
  }
26
27
  return {
27
- 'conversation_arn': !(0, runtime_1.exists)(json, 'conversation_arn') ? undefined : json['conversation_arn'],
28
- 'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
28
+ 'conversation': !(0, runtime_1.exists)(json, 'conversation') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['conversation']),
29
29
  };
30
30
  }
31
31
  exports.ConversationStartResponseFromJSONTyped = ConversationStartResponseFromJSONTyped;
@@ -37,8 +37,7 @@ function ConversationStartResponseToJSON(value) {
37
37
  return null;
38
38
  }
39
39
  return {
40
- 'conversation_arn': value.conversation_arn,
41
- 'conversation_uuid': value.conversation_uuid,
40
+ 'conversation': (0, Conversation_1.ConversationToJSON)(value.conversation),
42
41
  };
43
42
  }
44
43
  exports.ConversationStartResponseToJSON = ConversationStartResponseToJSON;
@@ -76,7 +76,7 @@ export interface EmailCommseqPostcard {
76
76
  */
77
77
  postcard_front_container_uuid?: string;
78
78
  /**
79
- * URL to screenshot of the back of the postcard
79
+ * URL to screenshot of the front of the postcard
80
80
  * @type {string}
81
81
  * @memberof EmailCommseqPostcard
82
82
  */
@@ -115,10 +115,12 @@ export * from './CheckoutSetupBrowserKeyResponse';
115
115
  export * from './CheckoutStateProvinceResponse';
116
116
  export * from './CityStateZip';
117
117
  export * from './Conversation';
118
+ export * from './ConversationAgentAuth';
118
119
  export * from './ConversationAgentAuthResponse';
119
120
  export * from './ConversationMessage';
120
121
  export * from './ConversationMessageTransportStatus';
121
122
  export * from './ConversationParticipant';
123
+ export * from './ConversationResponse';
122
124
  export * from './ConversationStartRequest';
123
125
  export * from './ConversationStartResponse';
124
126
  export * from './ConversationSummary';
@@ -133,10 +133,12 @@ __exportStar(require("./CheckoutSetupBrowserKeyResponse"), exports);
133
133
  __exportStar(require("./CheckoutStateProvinceResponse"), exports);
134
134
  __exportStar(require("./CityStateZip"), exports);
135
135
  __exportStar(require("./Conversation"), exports);
136
+ __exportStar(require("./ConversationAgentAuth"), exports);
136
137
  __exportStar(require("./ConversationAgentAuthResponse"), exports);
137
138
  __exportStar(require("./ConversationMessage"), exports);
138
139
  __exportStar(require("./ConversationMessageTransportStatus"), exports);
139
140
  __exportStar(require("./ConversationParticipant"), exports);
141
+ __exportStar(require("./ConversationResponse"), exports);
140
142
  __exportStar(require("./ConversationStartRequest"), exports);
141
143
  __exportStar(require("./ConversationStartResponse"), exports);
142
144
  __exportStar(require("./ConversationSummary"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.37-RC",
3
+ "version": "4.0.38-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -15,12 +15,12 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import {
18
- Conversation,
19
- ConversationFromJSON,
20
- ConversationToJSON,
21
18
  ConversationAgentAuthResponse,
22
19
  ConversationAgentAuthResponseFromJSON,
23
20
  ConversationAgentAuthResponseToJSON,
21
+ ConversationResponse,
22
+ ConversationResponseFromJSON,
23
+ ConversationResponseToJSON,
24
24
  ConversationStartRequest,
25
25
  ConversationStartRequestFromJSON,
26
26
  ConversationStartRequestToJSON,
@@ -90,13 +90,13 @@ export interface ConversationApiInterface {
90
90
  * @throws {RequiredError}
91
91
  * @memberof ConversationApiInterface
92
92
  */
93
- getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>>;
93
+ getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponse>>;
94
94
 
95
95
  /**
96
96
  * Retrieve a conversation including the participants and messages
97
97
  * Retrieve a conversation
98
98
  */
99
- getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation>;
99
+ getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
100
100
 
101
101
  /**
102
102
  * Get a presigned conersation multimedia upload URL
@@ -227,7 +227,7 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
227
227
  * Retrieve a conversation including the participants and messages
228
228
  * Retrieve a conversation
229
229
  */
230
- async getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Conversation>> {
230
+ async getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponse>> {
231
231
  if (requestParameters.conversationUuid === null || requestParameters.conversationUuid === undefined) {
232
232
  throw new runtime.RequiredError('conversationUuid','Required parameter requestParameters.conversationUuid was null or undefined when calling getConversation.');
233
233
  }
@@ -252,14 +252,14 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
252
252
  query: queryParameters,
253
253
  }, initOverrides);
254
254
 
255
- return new runtime.JSONApiResponse(response, (jsonValue) => ConversationFromJSON(jsonValue));
255
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConversationResponseFromJSON(jsonValue));
256
256
  }
257
257
 
258
258
  /**
259
259
  * Retrieve a conversation including the participants and messages
260
260
  * Retrieve a conversation
261
261
  */
262
- async getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Conversation> {
262
+ async getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse> {
263
263
  const response = await this.getConversationRaw(requestParameters, initOverrides);
264
264
  return await response.value();
265
265
  }
@@ -80,6 +80,12 @@ export interface AutoOrderItem {
80
80
  * @memberof AutoOrderItem
81
81
  */
82
82
  auto_order_item_oid?: number;
83
+ /**
84
+ * Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
85
+ * @type {string}
86
+ * @memberof AutoOrderItem
87
+ */
88
+ first_order_dts?: string;
83
89
  /**
84
90
  * Frequency of the rebill if not a fixed schedule
85
91
  * @type {string}
@@ -146,6 +152,12 @@ export interface AutoOrderItem {
146
152
  * @memberof AutoOrderItem
147
153
  */
148
154
  original_quantity?: number;
155
+ /**
156
+ * True if paused. This field is an object instead of a primitive for backwards compatibility.
157
+ * @type {boolean}
158
+ * @memberof AutoOrderItem
159
+ */
160
+ paused?: boolean;
149
161
  /**
150
162
  * The PayPal Payer ID tied to this item
151
163
  * @type {string}
@@ -223,6 +235,7 @@ export function AutoOrderItemFromJSONTyped(json: any, ignoreDiscriminator: boole
223
235
  'arbitrary_unit_cost': !exists(json, 'arbitrary_unit_cost') ? undefined : json['arbitrary_unit_cost'],
224
236
  'arbitrary_unit_cost_remaining_orders': !exists(json, 'arbitrary_unit_cost_remaining_orders') ? undefined : json['arbitrary_unit_cost_remaining_orders'],
225
237
  'auto_order_item_oid': !exists(json, 'auto_order_item_oid') ? undefined : json['auto_order_item_oid'],
238
+ 'first_order_dts': !exists(json, 'first_order_dts') ? undefined : json['first_order_dts'],
226
239
  'frequency': !exists(json, 'frequency') ? undefined : json['frequency'],
227
240
  'future_schedules': !exists(json, 'future_schedules') ? undefined : ((json['future_schedules'] as Array<any>).map(AutoOrderItemFutureScheduleFromJSON)),
228
241
  'last_order_dts': !exists(json, 'last_order_dts') ? undefined : json['last_order_dts'],
@@ -234,6 +247,7 @@ export function AutoOrderItemFromJSONTyped(json: any, ignoreDiscriminator: boole
234
247
  'options': !exists(json, 'options') ? undefined : ((json['options'] as Array<any>).map(AutoOrderItemOptionFromJSON)),
235
248
  'original_item_id': !exists(json, 'original_item_id') ? undefined : json['original_item_id'],
236
249
  'original_quantity': !exists(json, 'original_quantity') ? undefined : json['original_quantity'],
250
+ 'paused': !exists(json, 'paused') ? undefined : json['paused'],
237
251
  'paypal_payer_id': !exists(json, 'paypal_payer_id') ? undefined : json['paypal_payer_id'],
238
252
  'paypal_recurring_payment_profile_id': !exists(json, 'paypal_recurring_payment_profile_id') ? undefined : json['paypal_recurring_payment_profile_id'],
239
253
  'preshipment_notice_sent': !exists(json, 'preshipment_notice_sent') ? undefined : json['preshipment_notice_sent'],
@@ -259,6 +273,7 @@ export function AutoOrderItemToJSON(value?: AutoOrderItem | null): any {
259
273
  'arbitrary_unit_cost': value.arbitrary_unit_cost,
260
274
  'arbitrary_unit_cost_remaining_orders': value.arbitrary_unit_cost_remaining_orders,
261
275
  'auto_order_item_oid': value.auto_order_item_oid,
276
+ 'first_order_dts': value.first_order_dts,
262
277
  'frequency': value.frequency,
263
278
  'future_schedules': value.future_schedules === undefined ? undefined : ((value.future_schedules as Array<any>).map(AutoOrderItemFutureScheduleToJSON)),
264
279
  'last_order_dts': value.last_order_dts,
@@ -270,6 +285,7 @@ export function AutoOrderItemToJSON(value?: AutoOrderItem | null): any {
270
285
  'options': value.options === undefined ? undefined : ((value.options as Array<any>).map(AutoOrderItemOptionToJSON)),
271
286
  'original_item_id': value.original_item_id,
272
287
  'original_quantity': value.original_quantity,
288
+ 'paused': value.paused,
273
289
  'paypal_payer_id': value.paypal_payer_id,
274
290
  'paypal_recurring_payment_profile_id': value.paypal_recurring_payment_profile_id,
275
291
  'preshipment_notice_sent': value.preshipment_notice_sent,
@@ -0,0 +1,96 @@
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 ConversationAgentAuth
20
+ */
21
+ export interface ConversationAgentAuth {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ConversationAgentAuth
26
+ */
27
+ conversation_participant_arn?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ConversationAgentAuth
32
+ */
33
+ conversation_participant_name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ConversationAgentAuth
38
+ */
39
+ jwt?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ConversationAgentAuth
44
+ */
45
+ merchant_id?: string;
46
+ /**
47
+ *
48
+ * @type {Array<string>}
49
+ * @memberof ConversationAgentAuth
50
+ */
51
+ twilio_phone_numbers?: Array<string>;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ConversationAgentAuth
56
+ */
57
+ websocket_url?: string;
58
+ }
59
+
60
+ export function ConversationAgentAuthFromJSON(json: any): ConversationAgentAuth {
61
+ return ConversationAgentAuthFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuth {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'conversation_participant_arn': !exists(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
71
+ 'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
72
+ 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
73
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
74
+ 'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
75
+ 'websocket_url': !exists(json, 'websocket_url') ? undefined : json['websocket_url'],
76
+ };
77
+ }
78
+
79
+ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null): any {
80
+ if (value === undefined) {
81
+ return undefined;
82
+ }
83
+ if (value === null) {
84
+ return null;
85
+ }
86
+ return {
87
+
88
+ 'conversation_participant_arn': value.conversation_participant_arn,
89
+ 'conversation_participant_name': value.conversation_participant_name,
90
+ 'jwt': value.jwt,
91
+ 'merchant_id': value.merchant_id,
92
+ 'twilio_phone_numbers': value.twilio_phone_numbers,
93
+ 'websocket_url': value.websocket_url,
94
+ };
95
+ }
96
+
@@ -13,6 +13,31 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationAgentAuth,
18
+ ConversationAgentAuthFromJSON,
19
+ ConversationAgentAuthFromJSONTyped,
20
+ ConversationAgentAuthToJSON,
21
+ } from './ConversationAgentAuth';
22
+ import {
23
+ ModelError,
24
+ ModelErrorFromJSON,
25
+ ModelErrorFromJSONTyped,
26
+ ModelErrorToJSON,
27
+ } from './ModelError';
28
+ import {
29
+ ResponseMetadata,
30
+ ResponseMetadataFromJSON,
31
+ ResponseMetadataFromJSONTyped,
32
+ ResponseMetadataToJSON,
33
+ } from './ResponseMetadata';
34
+ import {
35
+ Warning,
36
+ WarningFromJSON,
37
+ WarningFromJSONTyped,
38
+ WarningToJSON,
39
+ } from './Warning';
40
+
16
41
  /**
17
42
  *
18
43
  * @export
@@ -21,40 +46,34 @@ import { exists, mapValues } from '../runtime';
21
46
  export interface ConversationAgentAuthResponse {
22
47
  /**
23
48
  *
24
- * @type {string}
25
- * @memberof ConversationAgentAuthResponse
26
- */
27
- conversation_participant_arn?: string;
28
- /**
29
- *
30
- * @type {string}
49
+ * @type {ConversationAgentAuth}
31
50
  * @memberof ConversationAgentAuthResponse
32
51
  */
33
- conversation_participant_name?: string;
52
+ agent_auth?: ConversationAgentAuth;
34
53
  /**
35
54
  *
36
- * @type {string}
55
+ * @type {ModelError}
37
56
  * @memberof ConversationAgentAuthResponse
38
57
  */
39
- jwt?: string;
58
+ error?: ModelError;
40
59
  /**
41
60
  *
42
- * @type {string}
61
+ * @type {ResponseMetadata}
43
62
  * @memberof ConversationAgentAuthResponse
44
63
  */
45
- merchant_id?: string;
64
+ metadata?: ResponseMetadata;
46
65
  /**
47
- *
48
- * @type {Array<string>}
66
+ * Indicates if API call was successful
67
+ * @type {boolean}
49
68
  * @memberof ConversationAgentAuthResponse
50
69
  */
51
- twilio_phone_numbers?: Array<string>;
70
+ success?: boolean;
52
71
  /**
53
72
  *
54
- * @type {string}
73
+ * @type {Warning}
55
74
  * @memberof ConversationAgentAuthResponse
56
75
  */
57
- websocket_url?: string;
76
+ warning?: Warning;
58
77
  }
59
78
 
60
79
  export function ConversationAgentAuthResponseFromJSON(json: any): ConversationAgentAuthResponse {
@@ -67,12 +86,11 @@ export function ConversationAgentAuthResponseFromJSONTyped(json: any, ignoreDisc
67
86
  }
68
87
  return {
69
88
 
70
- 'conversation_participant_arn': !exists(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
71
- 'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
72
- 'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
73
- 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
74
- 'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
75
- 'websocket_url': !exists(json, 'websocket_url') ? undefined : json['websocket_url'],
89
+ 'agent_auth': !exists(json, 'agent_auth') ? undefined : ConversationAgentAuthFromJSON(json['agent_auth']),
90
+ 'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
91
+ 'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
92
+ 'success': !exists(json, 'success') ? undefined : json['success'],
93
+ 'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
76
94
  };
77
95
  }
78
96
 
@@ -85,12 +103,11 @@ export function ConversationAgentAuthResponseToJSON(value?: ConversationAgentAut
85
103
  }
86
104
  return {
87
105
 
88
- 'conversation_participant_arn': value.conversation_participant_arn,
89
- 'conversation_participant_name': value.conversation_participant_name,
90
- 'jwt': value.jwt,
91
- 'merchant_id': value.merchant_id,
92
- 'twilio_phone_numbers': value.twilio_phone_numbers,
93
- 'websocket_url': value.websocket_url,
106
+ 'agent_auth': ConversationAgentAuthToJSON(value.agent_auth),
107
+ 'error': ModelErrorToJSON(value.error),
108
+ 'metadata': ResponseMetadataToJSON(value.metadata),
109
+ 'success': value.success,
110
+ 'warning': WarningToJSON(value.warning),
94
111
  };
95
112
  }
96
113
 
@@ -0,0 +1,113 @@
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
+ import {
17
+ Conversation,
18
+ ConversationFromJSON,
19
+ ConversationFromJSONTyped,
20
+ ConversationToJSON,
21
+ } from './Conversation';
22
+ import {
23
+ ModelError,
24
+ ModelErrorFromJSON,
25
+ ModelErrorFromJSONTyped,
26
+ ModelErrorToJSON,
27
+ } from './ModelError';
28
+ import {
29
+ ResponseMetadata,
30
+ ResponseMetadataFromJSON,
31
+ ResponseMetadataFromJSONTyped,
32
+ ResponseMetadataToJSON,
33
+ } from './ResponseMetadata';
34
+ import {
35
+ Warning,
36
+ WarningFromJSON,
37
+ WarningFromJSONTyped,
38
+ WarningToJSON,
39
+ } from './Warning';
40
+
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface ConversationResponse
45
+ */
46
+ export interface ConversationResponse {
47
+ /**
48
+ *
49
+ * @type {Conversation}
50
+ * @memberof ConversationResponse
51
+ */
52
+ conversation?: Conversation;
53
+ /**
54
+ *
55
+ * @type {ModelError}
56
+ * @memberof ConversationResponse
57
+ */
58
+ error?: ModelError;
59
+ /**
60
+ *
61
+ * @type {ResponseMetadata}
62
+ * @memberof ConversationResponse
63
+ */
64
+ metadata?: ResponseMetadata;
65
+ /**
66
+ * Indicates if API call was successful
67
+ * @type {boolean}
68
+ * @memberof ConversationResponse
69
+ */
70
+ success?: boolean;
71
+ /**
72
+ *
73
+ * @type {Warning}
74
+ * @memberof ConversationResponse
75
+ */
76
+ warning?: Warning;
77
+ }
78
+
79
+ export function ConversationResponseFromJSON(json: any): ConversationResponse {
80
+ return ConversationResponseFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function ConversationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationResponse {
84
+ if ((json === undefined) || (json === null)) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'conversation': !exists(json, 'conversation') ? undefined : ConversationFromJSON(json['conversation']),
90
+ 'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
91
+ 'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
92
+ 'success': !exists(json, 'success') ? undefined : json['success'],
93
+ 'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
94
+ };
95
+ }
96
+
97
+ export function ConversationResponseToJSON(value?: ConversationResponse | null): any {
98
+ if (value === undefined) {
99
+ return undefined;
100
+ }
101
+ if (value === null) {
102
+ return null;
103
+ }
104
+ return {
105
+
106
+ 'conversation': ConversationToJSON(value.conversation),
107
+ 'error': ModelErrorToJSON(value.error),
108
+ 'metadata': ResponseMetadataToJSON(value.metadata),
109
+ 'success': value.success,
110
+ 'warning': WarningToJSON(value.warning),
111
+ };
112
+ }
113
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ Conversation,
18
+ ConversationFromJSON,
19
+ ConversationFromJSONTyped,
20
+ ConversationToJSON,
21
+ } from './Conversation';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -21,16 +28,10 @@ import { exists, mapValues } from '../runtime';
21
28
  export interface ConversationStartResponse {
22
29
  /**
23
30
  *
24
- * @type {string}
25
- * @memberof ConversationStartResponse
26
- */
27
- conversation_arn?: string;
28
- /**
29
- *
30
- * @type {string}
31
+ * @type {Conversation}
31
32
  * @memberof ConversationStartResponse
32
33
  */
33
- conversation_uuid?: string;
34
+ conversation?: Conversation;
34
35
  }
35
36
 
36
37
  export function ConversationStartResponseFromJSON(json: any): ConversationStartResponse {
@@ -43,8 +44,7 @@ export function ConversationStartResponseFromJSONTyped(json: any, ignoreDiscrimi
43
44
  }
44
45
  return {
45
46
 
46
- 'conversation_arn': !exists(json, 'conversation_arn') ? undefined : json['conversation_arn'],
47
- 'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
47
+ 'conversation': !exists(json, 'conversation') ? undefined : ConversationFromJSON(json['conversation']),
48
48
  };
49
49
  }
50
50
 
@@ -57,8 +57,7 @@ export function ConversationStartResponseToJSON(value?: ConversationStartRespons
57
57
  }
58
58
  return {
59
59
 
60
- 'conversation_arn': value.conversation_arn,
61
- 'conversation_uuid': value.conversation_uuid,
60
+ 'conversation': ConversationToJSON(value.conversation),
62
61
  };
63
62
  }
64
63
 
@@ -80,7 +80,7 @@ export interface EmailCommseqPostcard {
80
80
  */
81
81
  postcard_front_container_uuid?: string;
82
82
  /**
83
- * URL to screenshot of the back of the postcard
83
+ * URL to screenshot of the front of the postcard
84
84
  * @type {string}
85
85
  * @memberof EmailCommseqPostcard
86
86
  */
@@ -117,10 +117,12 @@ export * from './CheckoutSetupBrowserKeyResponse';
117
117
  export * from './CheckoutStateProvinceResponse';
118
118
  export * from './CityStateZip';
119
119
  export * from './Conversation';
120
+ export * from './ConversationAgentAuth';
120
121
  export * from './ConversationAgentAuthResponse';
121
122
  export * from './ConversationMessage';
122
123
  export * from './ConversationMessageTransportStatus';
123
124
  export * from './ConversationParticipant';
125
+ export * from './ConversationResponse';
124
126
  export * from './ConversationStartRequest';
125
127
  export * from './ConversationStartResponse';
126
128
  export * from './ConversationSummary';