ultracart_rest_api_v2_typescript 4.0.78-RC → 4.0.80-RC

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.78-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.80-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.78-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.80-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.80-RC | 11/14/2022 | conversations - add allowed values for update agent status |
58
+ | 4.0.79-RC | 11/09/2022 | conversations - add an enum of event typing |
57
59
  | 4.0.78-RC | 11/04/2022 | new coupon type percent based on msrp |
58
60
  | 4.0.77-RC | 10/31/2022 | communication bug fix on dup annonation |
59
61
  | 4.0.76-RC | 10/31/2022 | communications - addl statistics on EmailStepStat object |
@@ -16,12 +16,21 @@
16
16
  */
17
17
  export interface ConversationWebchatQueueStatusUpdateRequest {
18
18
  /**
19
- *
19
+ * Status of the agent
20
20
  * @type {string}
21
21
  * @memberof ConversationWebchatQueueStatusUpdateRequest
22
22
  */
23
- agent_status?: string;
23
+ agent_status?: ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum;
24
24
  }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum: {
29
+ readonly Available: "available";
30
+ readonly Busy: "busy";
31
+ readonly Unavailable: "unavailable";
32
+ };
33
+ export declare type ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum = typeof ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum[keyof typeof ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum];
25
34
  export declare function ConversationWebchatQueueStatusUpdateRequestFromJSON(json: any): ConversationWebchatQueueStatusUpdateRequest;
26
35
  export declare function ConversationWebchatQueueStatusUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebchatQueueStatusUpdateRequest;
27
36
  export declare function ConversationWebchatQueueStatusUpdateRequestToJSON(value?: ConversationWebchatQueueStatusUpdateRequest | null): any;
@@ -13,8 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationWebchatQueueStatusUpdateRequestToJSON = exports.ConversationWebchatQueueStatusUpdateRequestFromJSONTyped = exports.ConversationWebchatQueueStatusUpdateRequestFromJSON = void 0;
16
+ exports.ConversationWebchatQueueStatusUpdateRequestToJSON = exports.ConversationWebchatQueueStatusUpdateRequestFromJSONTyped = exports.ConversationWebchatQueueStatusUpdateRequestFromJSON = exports.ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum = {
22
+ Available: 'available',
23
+ Busy: 'busy',
24
+ Unavailable: 'unavailable'
25
+ };
18
26
  function ConversationWebchatQueueStatusUpdateRequestFromJSON(json) {
19
27
  return ConversationWebchatQueueStatusUpdateRequestFromJSONTyped(json, false);
20
28
  }
@@ -121,6 +121,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
121
121
  readonly Rrweb: "rrweb";
122
122
  readonly ParticipantUpdate: "participant update";
123
123
  readonly ReadMessage: "read message";
124
+ readonly Typing: "typing";
124
125
  };
125
126
  export declare type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
126
127
  /**
@@ -35,7 +35,8 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
35
35
  QueueStatusUpdate: 'queue status update',
36
36
  Rrweb: 'rrweb',
37
37
  ParticipantUpdate: 'participant update',
38
- ReadMessage: 'read message'
38
+ ReadMessage: 'read message',
39
+ Typing: 'typing'
39
40
  };
40
41
  /**
41
42
  * @export
@@ -28,7 +28,13 @@ export interface ItemFulfillmentAddon {
28
28
  */
29
29
  add_item_oid?: number;
30
30
  /**
31
- * Quantity
31
+ * Initial Order Only
32
+ * @type {boolean}
33
+ * @memberof ItemFulfillmentAddon
34
+ */
35
+ initial_order_only?: boolean;
36
+ /**
37
+ * Once Per Order
32
38
  * @type {boolean}
33
39
  * @memberof ItemFulfillmentAddon
34
40
  */
@@ -26,6 +26,7 @@ function ItemFulfillmentAddonFromJSONTyped(json, ignoreDiscriminator) {
26
26
  return {
27
27
  'add_item_id': !(0, runtime_1.exists)(json, 'add_item_id') ? undefined : json['add_item_id'],
28
28
  'add_item_oid': !(0, runtime_1.exists)(json, 'add_item_oid') ? undefined : json['add_item_oid'],
29
+ 'initial_order_only': !(0, runtime_1.exists)(json, 'initial_order_only') ? undefined : json['initial_order_only'],
29
30
  'once_per_order': !(0, runtime_1.exists)(json, 'once_per_order') ? undefined : json['once_per_order'],
30
31
  'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
31
32
  };
@@ -41,6 +42,7 @@ function ItemFulfillmentAddonToJSON(value) {
41
42
  return {
42
43
  'add_item_id': value.add_item_id,
43
44
  'add_item_oid': value.add_item_oid,
45
+ 'initial_order_only': value.initial_order_only,
44
46
  'once_per_order': value.once_per_order,
45
47
  'quantity': value.quantity,
46
48
  };
@@ -53,6 +53,12 @@ export interface Webhook {
53
53
  * @memberof Webhook
54
54
  */
55
55
  basic_username?: string;
56
+ /**
57
+ * Compress events with GZIP then base 64 encode them as a string
58
+ * @type {boolean}
59
+ * @memberof Webhook
60
+ */
61
+ compress_events?: boolean;
56
62
  /**
57
63
  * The number of consecutive failures that have occurred trying to deliver notifications to the target server
58
64
  * @type {number}
@@ -45,6 +45,7 @@ function WebhookFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'authentication_type': !(0, runtime_1.exists)(json, 'authentication_type') ? undefined : json['authentication_type'],
46
46
  'basic_password': !(0, runtime_1.exists)(json, 'basic_password') ? undefined : json['basic_password'],
47
47
  'basic_username': !(0, runtime_1.exists)(json, 'basic_username') ? undefined : json['basic_username'],
48
+ 'compress_events': !(0, runtime_1.exists)(json, 'compress_events') ? undefined : json['compress_events'],
48
49
  'consecutive_failures': !(0, runtime_1.exists)(json, 'consecutive_failures') ? undefined : json['consecutive_failures'],
49
50
  'disabled': !(0, runtime_1.exists)(json, 'disabled') ? undefined : json['disabled'],
50
51
  'event_categories': !(0, runtime_1.exists)(json, 'event_categories') ? undefined : (json['event_categories'].map(WebhookEventCategory_1.WebhookEventCategoryFromJSON)),
@@ -74,6 +75,7 @@ function WebhookToJSON(value) {
74
75
  'authentication_type': value.authentication_type,
75
76
  'basic_password': value.basic_password,
76
77
  'basic_username': value.basic_username,
78
+ 'compress_events': value.compress_events,
77
79
  'consecutive_failures': value.consecutive_failures,
78
80
  'disabled': value.disabled,
79
81
  'event_categories': value.event_categories === undefined ? undefined : (value.event_categories.map(WebhookEventCategory_1.WebhookEventCategoryToJSON)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.78-RC",
3
+ "version": "4.0.80-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -20,13 +20,25 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface ConversationWebchatQueueStatusUpdateRequest {
22
22
  /**
23
- *
23
+ * Status of the agent
24
24
  * @type {string}
25
25
  * @memberof ConversationWebchatQueueStatusUpdateRequest
26
26
  */
27
- agent_status?: string;
27
+ agent_status?: ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum;
28
28
  }
29
29
 
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum = {
35
+ Available: 'available',
36
+ Busy: 'busy',
37
+ Unavailable: 'unavailable'
38
+ } as const;
39
+ export type ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum = typeof ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum[keyof typeof ConversationWebchatQueueStatusUpdateRequestAgentStatusEnum];
40
+
41
+
30
42
  export function ConversationWebchatQueueStatusUpdateRequestFromJSON(json: any): ConversationWebchatQueueStatusUpdateRequest {
31
43
  return ConversationWebchatQueueStatusUpdateRequestFromJSONTyped(json, false);
32
44
  }
@@ -162,7 +162,8 @@ export const ConversationWebsocketMessageEventTypeEnum = {
162
162
  QueueStatusUpdate: 'queue status update',
163
163
  Rrweb: 'rrweb',
164
164
  ParticipantUpdate: 'participant update',
165
- ReadMessage: 'read message'
165
+ ReadMessage: 'read message',
166
+ Typing: 'typing'
166
167
  } as const;
167
168
  export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
168
169
 
@@ -32,7 +32,13 @@ export interface ItemFulfillmentAddon {
32
32
  */
33
33
  add_item_oid?: number;
34
34
  /**
35
- * Quantity
35
+ * Initial Order Only
36
+ * @type {boolean}
37
+ * @memberof ItemFulfillmentAddon
38
+ */
39
+ initial_order_only?: boolean;
40
+ /**
41
+ * Once Per Order
36
42
  * @type {boolean}
37
43
  * @memberof ItemFulfillmentAddon
38
44
  */
@@ -57,6 +63,7 @@ export function ItemFulfillmentAddonFromJSONTyped(json: any, ignoreDiscriminator
57
63
 
58
64
  'add_item_id': !exists(json, 'add_item_id') ? undefined : json['add_item_id'],
59
65
  'add_item_oid': !exists(json, 'add_item_oid') ? undefined : json['add_item_oid'],
66
+ 'initial_order_only': !exists(json, 'initial_order_only') ? undefined : json['initial_order_only'],
60
67
  'once_per_order': !exists(json, 'once_per_order') ? undefined : json['once_per_order'],
61
68
  'quantity': !exists(json, 'quantity') ? undefined : json['quantity'],
62
69
  };
@@ -73,6 +80,7 @@ export function ItemFulfillmentAddonToJSON(value?: ItemFulfillmentAddon | null):
73
80
 
74
81
  'add_item_id': value.add_item_id,
75
82
  'add_item_oid': value.add_item_oid,
83
+ 'initial_order_only': value.initial_order_only,
76
84
  'once_per_order': value.once_per_order,
77
85
  'quantity': value.quantity,
78
86
  };
@@ -68,6 +68,12 @@ export interface Webhook {
68
68
  * @memberof Webhook
69
69
  */
70
70
  basic_username?: string;
71
+ /**
72
+ * Compress events with GZIP then base 64 encode them as a string
73
+ * @type {boolean}
74
+ * @memberof Webhook
75
+ */
76
+ compress_events?: boolean;
71
77
  /**
72
78
  * The number of consecutive failures that have occurred trying to deliver notifications to the target server
73
79
  * @type {number}
@@ -177,6 +183,7 @@ export function WebhookFromJSONTyped(json: any, ignoreDiscriminator: boolean): W
177
183
  'authentication_type': !exists(json, 'authentication_type') ? undefined : json['authentication_type'],
178
184
  'basic_password': !exists(json, 'basic_password') ? undefined : json['basic_password'],
179
185
  'basic_username': !exists(json, 'basic_username') ? undefined : json['basic_username'],
186
+ 'compress_events': !exists(json, 'compress_events') ? undefined : json['compress_events'],
180
187
  'consecutive_failures': !exists(json, 'consecutive_failures') ? undefined : json['consecutive_failures'],
181
188
  'disabled': !exists(json, 'disabled') ? undefined : json['disabled'],
182
189
  'event_categories': !exists(json, 'event_categories') ? undefined : ((json['event_categories'] as Array<any>).map(WebhookEventCategoryFromJSON)),
@@ -207,6 +214,7 @@ export function WebhookToJSON(value?: Webhook | null): any {
207
214
  'authentication_type': value.authentication_type,
208
215
  'basic_password': value.basic_password,
209
216
  'basic_username': value.basic_username,
217
+ 'compress_events': value.compress_events,
210
218
  'consecutive_failures': value.consecutive_failures,
211
219
  'disabled': value.disabled,
212
220
  'event_categories': value.event_categories === undefined ? undefined : ((value.event_categories as Array<any>).map(WebhookEventCategoryToJSON)),