ultracart_rest_api_v2_typescript 4.0.79-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.79-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.79-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,7 @@ 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 |
57
58
  | 4.0.79-RC | 11/09/2022 | conversations - add an enum of event typing |
58
59
  | 4.0.78-RC | 11/04/2022 | new coupon type percent based on msrp |
59
60
  | 4.0.77-RC | 10/31/2022 | communication bug fix on dup annonation |
@@ -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
  }
@@ -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.79-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
  }
@@ -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)),