ultracart_rest_api_v2_typescript 4.0.36-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.
@@ -142,6 +142,7 @@ src/models/CityStateZip.ts
142
142
  src/models/Conversation.ts
143
143
  src/models/ConversationAgentAuthResponse.ts
144
144
  src/models/ConversationMessage.ts
145
+ src/models/ConversationMessageTransportStatus.ts
145
146
  src/models/ConversationParticipant.ts
146
147
  src/models/ConversationStartRequest.ts
147
148
  src/models/ConversationStartResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.36-RC
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.36-RC --save
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,7 @@ 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 |
57
58
  | 4.0.36-RC | 07/18/2022 | twilio dev |
58
59
  | 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
59
60
  | 4.0.34-RC | 07/11/2022 | Customer API - mergeCustomer method |
@@ -21,6 +21,12 @@ export interface ConversationAgentAuthResponse {
21
21
  * @memberof ConversationAgentAuthResponse
22
22
  */
23
23
  conversation_participant_arn?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationAgentAuthResponse
28
+ */
29
+ conversation_participant_name?: string;
24
30
  /**
25
31
  *
26
32
  * @type {string}
@@ -25,6 +25,7 @@ function ConversationAgentAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
25
25
  }
26
26
  return {
27
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'],
28
29
  'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
29
30
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
30
31
  'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
@@ -41,6 +42,7 @@ function ConversationAgentAuthResponseToJSON(value) {
41
42
  }
42
43
  return {
43
44
  'conversation_participant_arn': value.conversation_participant_arn,
45
+ 'conversation_participant_name': value.conversation_participant_name,
44
46
  'jwt': value.jwt,
45
47
  'merchant_id': value.merchant_id,
46
48
  'twilio_phone_numbers': value.twilio_phone_numbers,
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ConversationMessageTransportStatus } from './ConversationMessageTransportStatus';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -45,6 +46,12 @@ export interface ConversationMessage {
45
46
  * @memberof ConversationMessage
46
47
  */
47
48
  message_dts?: string;
49
+ /**
50
+ *
51
+ * @type {Array<ConversationMessageTransportStatus>}
52
+ * @memberof ConversationMessage
53
+ */
54
+ transport_statuses?: Array<ConversationMessageTransportStatus>;
48
55
  }
49
56
  export declare function ConversationMessageFromJSON(json: any): ConversationMessage;
50
57
  export declare function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessage;
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationMessageToJSON = exports.ConversationMessageFromJSONTyped = exports.ConversationMessageFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ConversationMessageTransportStatus_1 = require("./ConversationMessageTransportStatus");
18
19
  function ConversationMessageFromJSON(json) {
19
20
  return ConversationMessageFromJSONTyped(json, false);
20
21
  }
@@ -29,6 +30,7 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
29
30
  'body': !(0, runtime_1.exists)(json, 'body') ? undefined : json['body'],
30
31
  'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
31
32
  'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
33
+ 'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
32
34
  };
33
35
  }
34
36
  exports.ConversationMessageFromJSONTyped = ConversationMessageFromJSONTyped;
@@ -45,6 +47,7 @@ function ConversationMessageToJSON(value) {
45
47
  'body': value.body,
46
48
  'media_urls': value.media_urls,
47
49
  'message_dts': value.message_dts,
50
+ 'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
48
51
  };
49
52
  }
50
53
  exports.ConversationMessageToJSON = ConversationMessageToJSON;
@@ -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 ConversationMessageTransportStatus
16
+ */
17
+ export interface ConversationMessageTransportStatus {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationMessageTransportStatus
22
+ */
23
+ conversation_participant_arn?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationMessageTransportStatus
28
+ */
29
+ status?: string;
30
+ }
31
+ export declare function ConversationMessageTransportStatusFromJSON(json: any): ConversationMessageTransportStatus;
32
+ export declare function ConversationMessageTransportStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageTransportStatus;
33
+ export declare function ConversationMessageTransportStatusToJSON(value?: ConversationMessageTransportStatus | 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.ConversationMessageTransportStatusToJSON = exports.ConversationMessageTransportStatusFromJSONTyped = exports.ConversationMessageTransportStatusFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ConversationMessageTransportStatusFromJSON(json) {
19
+ return ConversationMessageTransportStatusFromJSONTyped(json, false);
20
+ }
21
+ exports.ConversationMessageTransportStatusFromJSON = ConversationMessageTransportStatusFromJSON;
22
+ function ConversationMessageTransportStatusFromJSONTyped(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
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
29
+ };
30
+ }
31
+ exports.ConversationMessageTransportStatusFromJSONTyped = ConversationMessageTransportStatusFromJSONTyped;
32
+ function ConversationMessageTransportStatusToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'conversation_participant_arn': value.conversation_participant_arn,
41
+ 'status': value.status,
42
+ };
43
+ }
44
+ exports.ConversationMessageTransportStatusToJSON = ConversationMessageTransportStatusToJSON;
@@ -117,6 +117,7 @@ export * from './CityStateZip';
117
117
  export * from './Conversation';
118
118
  export * from './ConversationAgentAuthResponse';
119
119
  export * from './ConversationMessage';
120
+ export * from './ConversationMessageTransportStatus';
120
121
  export * from './ConversationParticipant';
121
122
  export * from './ConversationStartRequest';
122
123
  export * from './ConversationStartResponse';
@@ -135,6 +135,7 @@ __exportStar(require("./CityStateZip"), exports);
135
135
  __exportStar(require("./Conversation"), exports);
136
136
  __exportStar(require("./ConversationAgentAuthResponse"), exports);
137
137
  __exportStar(require("./ConversationMessage"), exports);
138
+ __exportStar(require("./ConversationMessageTransportStatus"), exports);
138
139
  __exportStar(require("./ConversationParticipant"), exports);
139
140
  __exportStar(require("./ConversationStartRequest"), exports);
140
141
  __exportStar(require("./ConversationStartResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.36-RC",
3
+ "version": "4.0.37-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -25,6 +25,12 @@ export interface ConversationAgentAuthResponse {
25
25
  * @memberof ConversationAgentAuthResponse
26
26
  */
27
27
  conversation_participant_arn?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ConversationAgentAuthResponse
32
+ */
33
+ conversation_participant_name?: string;
28
34
  /**
29
35
  *
30
36
  * @type {string}
@@ -62,6 +68,7 @@ export function ConversationAgentAuthResponseFromJSONTyped(json: any, ignoreDisc
62
68
  return {
63
69
 
64
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'],
65
72
  'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
66
73
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
67
74
  'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
@@ -79,6 +86,7 @@ export function ConversationAgentAuthResponseToJSON(value?: ConversationAgentAut
79
86
  return {
80
87
 
81
88
  'conversation_participant_arn': value.conversation_participant_arn,
89
+ 'conversation_participant_name': value.conversation_participant_name,
82
90
  'jwt': value.jwt,
83
91
  'merchant_id': value.merchant_id,
84
92
  'twilio_phone_numbers': value.twilio_phone_numbers,
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationMessageTransportStatus,
18
+ ConversationMessageTransportStatusFromJSON,
19
+ ConversationMessageTransportStatusFromJSONTyped,
20
+ ConversationMessageTransportStatusToJSON,
21
+ } from './ConversationMessageTransportStatus';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -49,6 +56,12 @@ export interface ConversationMessage {
49
56
  * @memberof ConversationMessage
50
57
  */
51
58
  message_dts?: string;
59
+ /**
60
+ *
61
+ * @type {Array<ConversationMessageTransportStatus>}
62
+ * @memberof ConversationMessage
63
+ */
64
+ transport_statuses?: Array<ConversationMessageTransportStatus>;
52
65
  }
53
66
 
54
67
  export function ConversationMessageFromJSON(json: any): ConversationMessage {
@@ -66,6 +79,7 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
66
79
  'body': !exists(json, 'body') ? undefined : json['body'],
67
80
  'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
68
81
  'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
82
+ 'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
69
83
  };
70
84
  }
71
85
 
@@ -83,6 +97,7 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
83
97
  'body': value.body,
84
98
  'media_urls': value.media_urls,
85
99
  'message_dts': value.message_dts,
100
+ 'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
86
101
  };
87
102
  }
88
103
 
@@ -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 ConversationMessageTransportStatus
20
+ */
21
+ export interface ConversationMessageTransportStatus {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ConversationMessageTransportStatus
26
+ */
27
+ conversation_participant_arn?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ConversationMessageTransportStatus
32
+ */
33
+ status?: string;
34
+ }
35
+
36
+ export function ConversationMessageTransportStatusFromJSON(json: any): ConversationMessageTransportStatus {
37
+ return ConversationMessageTransportStatusFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function ConversationMessageTransportStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageTransportStatus {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'conversation_participant_arn': !exists(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
47
+ 'status': !exists(json, 'status') ? undefined : json['status'],
48
+ };
49
+ }
50
+
51
+ export function ConversationMessageTransportStatusToJSON(value?: ConversationMessageTransportStatus | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'conversation_participant_arn': value.conversation_participant_arn,
61
+ 'status': value.status,
62
+ };
63
+ }
64
+
@@ -119,6 +119,7 @@ export * from './CityStateZip';
119
119
  export * from './Conversation';
120
120
  export * from './ConversationAgentAuthResponse';
121
121
  export * from './ConversationMessage';
122
+ export * from './ConversationMessageTransportStatus';
122
123
  export * from './ConversationParticipant';
123
124
  export * from './ConversationStartRequest';
124
125
  export * from './ConversationStartResponse';