ultracart_rest_api_v2_typescript 4.0.45-RC → 4.0.46-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.
@@ -153,6 +153,7 @@ src/models/ConversationResponse.ts
153
153
  src/models/ConversationStartRequest.ts
154
154
  src/models/ConversationStartResponse.ts
155
155
  src/models/ConversationSummary.ts
156
+ src/models/ConversationTwilioAccount.ts
156
157
  src/models/ConversationWebchatQueueStatus.ts
157
158
  src/models/ConversationWebchatQueueStatusAgent.ts
158
159
  src/models/ConversationWebchatQueueStatusQueueEntry.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.45-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.46-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.45-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.46-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.46-RC | 07/29/2022 | conversation development |
57
58
  | 4.0.45-RC | 07/28/2022 | conversation bug fixes |
58
59
  | 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
59
60
  | 4.0.43-RC | 07/26/2022 | conversations - queue statistics |
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ConversationTwilioAccount } from './ConversationTwilioAccount';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -41,10 +42,10 @@ export interface ConversationAgentAuth {
41
42
  merchant_id?: string;
42
43
  /**
43
44
  *
44
- * @type {Array<string>}
45
+ * @type {Array<ConversationTwilioAccount>}
45
46
  * @memberof ConversationAgentAuth
46
47
  */
47
- twilio_phone_numbers?: Array<string>;
48
+ twilio_accounts?: Array<ConversationTwilioAccount>;
48
49
  /**
49
50
  *
50
51
  * @type {string}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ConversationTwilioAccount_1 = require("./ConversationTwilioAccount");
18
19
  function ConversationAgentAuthFromJSON(json) {
19
20
  return ConversationAgentAuthFromJSONTyped(json, false);
20
21
  }
@@ -28,7 +29,7 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
29
30
  'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
30
31
  '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
+ 'twilio_accounts': !(0, runtime_1.exists)(json, 'twilio_accounts') ? undefined : (json['twilio_accounts'].map(ConversationTwilioAccount_1.ConversationTwilioAccountFromJSON)),
32
33
  'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
33
34
  };
34
35
  }
@@ -45,7 +46,7 @@ function ConversationAgentAuthToJSON(value) {
45
46
  'conversation_participant_name': value.conversation_participant_name,
46
47
  'jwt': value.jwt,
47
48
  'merchant_id': value.merchant_id,
48
- 'twilio_phone_numbers': value.twilio_phone_numbers,
49
+ 'twilio_accounts': value.twilio_accounts === undefined ? undefined : (value.twilio_accounts.map(ConversationTwilioAccount_1.ConversationTwilioAccountToJSON)),
49
50
  'websocket_url': value.websocket_url,
50
51
  };
51
52
  }
@@ -34,6 +34,12 @@ export interface ConversationMessage {
34
34
  * @memberof ConversationMessage
35
35
  */
36
36
  body?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ConversationMessage
41
+ */
42
+ client_message_id?: string;
37
43
  /**
38
44
  *
39
45
  * @type {Array<string>}
@@ -28,6 +28,7 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'author_conversation_participant_arn': !(0, runtime_1.exists)(json, 'author_conversation_participant_arn') ? undefined : json['author_conversation_participant_arn'],
29
29
  'author_conversation_participant_name': !(0, runtime_1.exists)(json, 'author_conversation_participant_name') ? undefined : json['author_conversation_participant_name'],
30
30
  'body': !(0, runtime_1.exists)(json, 'body') ? undefined : json['body'],
31
+ 'client_message_id': !(0, runtime_1.exists)(json, 'client_message_id') ? undefined : json['client_message_id'],
31
32
  'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
32
33
  'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
33
34
  'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
@@ -46,6 +47,7 @@ function ConversationMessageToJSON(value) {
46
47
  'author_conversation_participant_arn': value.author_conversation_participant_arn,
47
48
  'author_conversation_participant_name': value.author_conversation_participant_name,
48
49
  'body': value.body,
50
+ 'client_message_id': value.client_message_id,
49
51
  'media_urls': value.media_urls,
50
52
  'message_dts': value.message_dts,
51
53
  'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
@@ -69,12 +69,24 @@ export interface ConversationSummary {
69
69
  * @memberof ConversationSummary
70
70
  */
71
71
  message_count?: number;
72
+ /**
73
+ * Start of the conversation date/time
74
+ * @type {string}
75
+ * @memberof ConversationSummary
76
+ */
77
+ start_dts?: string;
72
78
  /**
73
79
  *
74
80
  * @type {boolean}
75
81
  * @memberof ConversationSummary
76
82
  */
77
83
  unread_messages?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof ConversationSummary
88
+ */
89
+ visible?: boolean;
78
90
  }
79
91
  export declare function ConversationSummaryFromJSON(json: any): ConversationSummary;
80
92
  export declare function ConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSummary;
@@ -33,7 +33,9 @@ function ConversationSummaryFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
34
34
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
35
35
  'message_count': !(0, runtime_1.exists)(json, 'message_count') ? undefined : json['message_count'],
36
+ 'start_dts': !(0, runtime_1.exists)(json, 'start_dts') ? undefined : json['start_dts'],
36
37
  'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
38
+ 'visible': !(0, runtime_1.exists)(json, 'visible') ? undefined : json['visible'],
37
39
  };
38
40
  }
39
41
  exports.ConversationSummaryFromJSONTyped = ConversationSummaryFromJSONTyped;
@@ -54,7 +56,9 @@ function ConversationSummaryToJSON(value) {
54
56
  'last_message_dts': value.last_message_dts,
55
57
  'merchant_id': value.merchant_id,
56
58
  'message_count': value.message_count,
59
+ 'start_dts': value.start_dts,
57
60
  'unread_messages': value.unread_messages,
61
+ 'visible': value.visible,
58
62
  };
59
63
  }
60
64
  exports.ConversationSummaryToJSON = ConversationSummaryToJSON;
@@ -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 ConversationTwilioAccount
16
+ */
17
+ export interface ConversationTwilioAccount {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationTwilioAccount
22
+ */
23
+ merchant_id?: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof ConversationTwilioAccount
28
+ */
29
+ twilio_phone_numbers?: Array<string>;
30
+ }
31
+ export declare function ConversationTwilioAccountFromJSON(json: any): ConversationTwilioAccount;
32
+ export declare function ConversationTwilioAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationTwilioAccount;
33
+ export declare function ConversationTwilioAccountToJSON(value?: ConversationTwilioAccount | 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.ConversationTwilioAccountToJSON = exports.ConversationTwilioAccountFromJSONTyped = exports.ConversationTwilioAccountFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ConversationTwilioAccountFromJSON(json) {
19
+ return ConversationTwilioAccountFromJSONTyped(json, false);
20
+ }
21
+ exports.ConversationTwilioAccountFromJSON = ConversationTwilioAccountFromJSON;
22
+ function ConversationTwilioAccountFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
28
+ 'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
29
+ };
30
+ }
31
+ exports.ConversationTwilioAccountFromJSONTyped = ConversationTwilioAccountFromJSONTyped;
32
+ function ConversationTwilioAccountToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'merchant_id': value.merchant_id,
41
+ 'twilio_phone_numbers': value.twilio_phone_numbers,
42
+ };
43
+ }
44
+ exports.ConversationTwilioAccountToJSON = ConversationTwilioAccountToJSON;
@@ -128,6 +128,7 @@ export * from './ConversationResponse';
128
128
  export * from './ConversationStartRequest';
129
129
  export * from './ConversationStartResponse';
130
130
  export * from './ConversationSummary';
131
+ export * from './ConversationTwilioAccount';
131
132
  export * from './ConversationWebchatQueueStatus';
132
133
  export * from './ConversationWebchatQueueStatusAgent';
133
134
  export * from './ConversationWebchatQueueStatusQueueEntry';
@@ -146,6 +146,7 @@ __exportStar(require("./ConversationResponse"), exports);
146
146
  __exportStar(require("./ConversationStartRequest"), exports);
147
147
  __exportStar(require("./ConversationStartResponse"), exports);
148
148
  __exportStar(require("./ConversationSummary"), exports);
149
+ __exportStar(require("./ConversationTwilioAccount"), exports);
149
150
  __exportStar(require("./ConversationWebchatQueueStatus"), exports);
150
151
  __exportStar(require("./ConversationWebchatQueueStatusAgent"), exports);
151
152
  __exportStar(require("./ConversationWebchatQueueStatusQueueEntry"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.45-RC",
3
+ "version": "4.0.46-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationTwilioAccount,
18
+ ConversationTwilioAccountFromJSON,
19
+ ConversationTwilioAccountFromJSONTyped,
20
+ ConversationTwilioAccountToJSON,
21
+ } from './ConversationTwilioAccount';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -45,10 +52,10 @@ export interface ConversationAgentAuth {
45
52
  merchant_id?: string;
46
53
  /**
47
54
  *
48
- * @type {Array<string>}
55
+ * @type {Array<ConversationTwilioAccount>}
49
56
  * @memberof ConversationAgentAuth
50
57
  */
51
- twilio_phone_numbers?: Array<string>;
58
+ twilio_accounts?: Array<ConversationTwilioAccount>;
52
59
  /**
53
60
  *
54
61
  * @type {string}
@@ -71,7 +78,7 @@ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminato
71
78
  'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
72
79
  'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
73
80
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
74
- 'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
81
+ 'twilio_accounts': !exists(json, 'twilio_accounts') ? undefined : ((json['twilio_accounts'] as Array<any>).map(ConversationTwilioAccountFromJSON)),
75
82
  'websocket_url': !exists(json, 'websocket_url') ? undefined : json['websocket_url'],
76
83
  };
77
84
  }
@@ -89,7 +96,7 @@ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null
89
96
  'conversation_participant_name': value.conversation_participant_name,
90
97
  'jwt': value.jwt,
91
98
  'merchant_id': value.merchant_id,
92
- 'twilio_phone_numbers': value.twilio_phone_numbers,
99
+ 'twilio_accounts': value.twilio_accounts === undefined ? undefined : ((value.twilio_accounts as Array<any>).map(ConversationTwilioAccountToJSON)),
93
100
  'websocket_url': value.websocket_url,
94
101
  };
95
102
  }
@@ -44,6 +44,12 @@ export interface ConversationMessage {
44
44
  * @memberof ConversationMessage
45
45
  */
46
46
  body?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ConversationMessage
51
+ */
52
+ client_message_id?: string;
47
53
  /**
48
54
  *
49
55
  * @type {Array<string>}
@@ -83,6 +89,7 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
83
89
  'author_conversation_participant_arn': !exists(json, 'author_conversation_participant_arn') ? undefined : json['author_conversation_participant_arn'],
84
90
  'author_conversation_participant_name': !exists(json, 'author_conversation_participant_name') ? undefined : json['author_conversation_participant_name'],
85
91
  'body': !exists(json, 'body') ? undefined : json['body'],
92
+ 'client_message_id': !exists(json, 'client_message_id') ? undefined : json['client_message_id'],
86
93
  'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
87
94
  'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
88
95
  'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
@@ -102,6 +109,7 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
102
109
  'author_conversation_participant_arn': value.author_conversation_participant_arn,
103
110
  'author_conversation_participant_name': value.author_conversation_participant_name,
104
111
  'body': value.body,
112
+ 'client_message_id': value.client_message_id,
105
113
  'media_urls': value.media_urls,
106
114
  'message_dts': value.message_dts,
107
115
  'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
@@ -73,12 +73,24 @@ export interface ConversationSummary {
73
73
  * @memberof ConversationSummary
74
74
  */
75
75
  message_count?: number;
76
+ /**
77
+ * Start of the conversation date/time
78
+ * @type {string}
79
+ * @memberof ConversationSummary
80
+ */
81
+ start_dts?: string;
76
82
  /**
77
83
  *
78
84
  * @type {boolean}
79
85
  * @memberof ConversationSummary
80
86
  */
81
87
  unread_messages?: boolean;
88
+ /**
89
+ *
90
+ * @type {boolean}
91
+ * @memberof ConversationSummary
92
+ */
93
+ visible?: boolean;
82
94
  }
83
95
 
84
96
  export function ConversationSummaryFromJSON(json: any): ConversationSummary {
@@ -100,7 +112,9 @@ export function ConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator:
100
112
  'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
101
113
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
102
114
  'message_count': !exists(json, 'message_count') ? undefined : json['message_count'],
115
+ 'start_dts': !exists(json, 'start_dts') ? undefined : json['start_dts'],
103
116
  'unread_messages': !exists(json, 'unread_messages') ? undefined : json['unread_messages'],
117
+ 'visible': !exists(json, 'visible') ? undefined : json['visible'],
104
118
  };
105
119
  }
106
120
 
@@ -122,7 +136,9 @@ export function ConversationSummaryToJSON(value?: ConversationSummary | null): a
122
136
  'last_message_dts': value.last_message_dts,
123
137
  'merchant_id': value.merchant_id,
124
138
  'message_count': value.message_count,
139
+ 'start_dts': value.start_dts,
125
140
  'unread_messages': value.unread_messages,
141
+ 'visible': value.visible,
126
142
  };
127
143
  }
128
144
 
@@ -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 ConversationTwilioAccount
20
+ */
21
+ export interface ConversationTwilioAccount {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ConversationTwilioAccount
26
+ */
27
+ merchant_id?: string;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof ConversationTwilioAccount
32
+ */
33
+ twilio_phone_numbers?: Array<string>;
34
+ }
35
+
36
+ export function ConversationTwilioAccountFromJSON(json: any): ConversationTwilioAccount {
37
+ return ConversationTwilioAccountFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function ConversationTwilioAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationTwilioAccount {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
47
+ 'twilio_phone_numbers': !exists(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
48
+ };
49
+ }
50
+
51
+ export function ConversationTwilioAccountToJSON(value?: ConversationTwilioAccount | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'merchant_id': value.merchant_id,
61
+ 'twilio_phone_numbers': value.twilio_phone_numbers,
62
+ };
63
+ }
64
+
@@ -130,6 +130,7 @@ export * from './ConversationResponse';
130
130
  export * from './ConversationStartRequest';
131
131
  export * from './ConversationStartResponse';
132
132
  export * from './ConversationSummary';
133
+ export * from './ConversationTwilioAccount';
133
134
  export * from './ConversationWebchatQueueStatus';
134
135
  export * from './ConversationWebchatQueueStatusAgent';
135
136
  export * from './ConversationWebchatQueueStatusQueueEntry';