ultracart_rest_api_v2_typescript 4.0.216 → 4.0.218

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.216
1
+ ## ultracart_rest_api_v2_typescript@4.0.218
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.216 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.218 --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.218 | 05/14/2024 | conversation pbx - allowed value constants on the action |
58
+ | 4.0.217 | 05/13/2024 | conversation pbx - bug fix on camelCase property names |
57
59
  | 4.0.216 | 05/13/2024 | conversation pbx - allow nullable day of week in time range |
58
60
  | 4.0.215 | 05/08/2024 | added echeck fields to channel partner order import |
59
61
  | 4.0.214 | 05/02/2024 | conversation - new method to load pbx audio usage |
@@ -20,9 +20,9 @@ export interface ConversationPbxMenuMapping {
20
20
  * @type {string}
21
21
  * @memberof ConversationPbxMenuMapping
22
22
  */
23
- action?: string;
23
+ action?: ConversationPbxMenuMappingActionEnum;
24
24
  /**
25
- * Action target
25
+ * Action target. This is the UUID associated with the configuration object of that particular type.
26
26
  * @type {string}
27
27
  * @memberof ConversationPbxMenuMapping
28
28
  */
@@ -40,6 +40,17 @@ export interface ConversationPbxMenuMapping {
40
40
  */
41
41
  speech?: string;
42
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const ConversationPbxMenuMappingActionEnum: {
47
+ readonly TimeBased: "time based";
48
+ readonly Menu: "menu";
49
+ readonly Queue: "queue";
50
+ readonly Voicemail: "voicemail";
51
+ readonly Agent: "agent";
52
+ };
53
+ export type ConversationPbxMenuMappingActionEnum = typeof ConversationPbxMenuMappingActionEnum[keyof typeof ConversationPbxMenuMappingActionEnum];
43
54
  export declare function ConversationPbxMenuMappingFromJSON(json: any): ConversationPbxMenuMapping;
44
55
  export declare function ConversationPbxMenuMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxMenuMapping;
45
56
  export declare function ConversationPbxMenuMappingToJSON(value?: ConversationPbxMenuMapping | null): any;
@@ -13,8 +13,18 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationPbxMenuMappingToJSON = exports.ConversationPbxMenuMappingFromJSONTyped = exports.ConversationPbxMenuMappingFromJSON = void 0;
16
+ exports.ConversationPbxMenuMappingToJSON = exports.ConversationPbxMenuMappingFromJSONTyped = exports.ConversationPbxMenuMappingFromJSON = exports.ConversationPbxMenuMappingActionEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.ConversationPbxMenuMappingActionEnum = {
22
+ TimeBased: 'time based',
23
+ Menu: 'menu',
24
+ Queue: 'queue',
25
+ Voicemail: 'voicemail',
26
+ Agent: 'agent'
27
+ };
18
28
  function ConversationPbxMenuMappingFromJSON(json) {
19
29
  return ConversationPbxMenuMappingFromJSONTyped(json, false);
20
30
  }
@@ -20,9 +20,9 @@ export interface ConversationPbxPhoneNumber {
20
20
  * @type {string}
21
21
  * @memberof ConversationPbxPhoneNumber
22
22
  */
23
- action?: string;
23
+ action?: ConversationPbxPhoneNumberActionEnum;
24
24
  /**
25
- * Action target
25
+ * Action target. This is the UUID associated with the configuration object of that particular type.
26
26
  * @type {string}
27
27
  * @memberof ConversationPbxPhoneNumber
28
28
  */
@@ -46,6 +46,17 @@ export interface ConversationPbxPhoneNumber {
46
46
  */
47
47
  phone_number?: string;
48
48
  }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const ConversationPbxPhoneNumberActionEnum: {
53
+ readonly TimeBased: "time based";
54
+ readonly Menu: "menu";
55
+ readonly Queue: "queue";
56
+ readonly Voicemail: "voicemail";
57
+ readonly Agent: "agent";
58
+ };
59
+ export type ConversationPbxPhoneNumberActionEnum = typeof ConversationPbxPhoneNumberActionEnum[keyof typeof ConversationPbxPhoneNumberActionEnum];
49
60
  export declare function ConversationPbxPhoneNumberFromJSON(json: any): ConversationPbxPhoneNumber;
50
61
  export declare function ConversationPbxPhoneNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxPhoneNumber;
51
62
  export declare function ConversationPbxPhoneNumberToJSON(value?: ConversationPbxPhoneNumber | null): any;
@@ -13,8 +13,18 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationPbxPhoneNumberToJSON = exports.ConversationPbxPhoneNumberFromJSONTyped = exports.ConversationPbxPhoneNumberFromJSON = void 0;
16
+ exports.ConversationPbxPhoneNumberToJSON = exports.ConversationPbxPhoneNumberFromJSONTyped = exports.ConversationPbxPhoneNumberFromJSON = exports.ConversationPbxPhoneNumberActionEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.ConversationPbxPhoneNumberActionEnum = {
22
+ TimeBased: 'time based',
23
+ Menu: 'menu',
24
+ Queue: 'queue',
25
+ Voicemail: 'voicemail',
26
+ Agent: 'agent'
27
+ };
18
28
  function ConversationPbxPhoneNumberFromJSON(json) {
19
29
  return ConversationPbxPhoneNumberFromJSONTyped(json, false);
20
30
  }
@@ -21,25 +21,25 @@ export interface ConversationPbxTimeBased {
21
21
  * @type {string}
22
22
  * @memberof ConversationPbxTimeBased
23
23
  */
24
- conversationPbxTimeBasedUuid?: string;
24
+ conversation_pbx_time_based_uuid?: string;
25
25
  /**
26
26
  *
27
27
  * @type {ConversationPbxTimeBasedMappingConfig}
28
28
  * @memberof ConversationPbxTimeBased
29
29
  */
30
- mappingConfig?: ConversationPbxTimeBasedMappingConfig;
30
+ mapping_config?: ConversationPbxTimeBasedMappingConfig;
31
31
  /**
32
32
  *
33
33
  * @type {string}
34
34
  * @memberof ConversationPbxTimeBased
35
35
  */
36
- merchantId?: string;
36
+ merchant_id?: string;
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
40
  * @memberof ConversationPbxTimeBased
41
41
  */
42
- timeBasedName?: string;
42
+ time_based_name?: string;
43
43
  }
44
44
  export declare function ConversationPbxTimeBasedFromJSON(json: any): ConversationPbxTimeBased;
45
45
  export declare function ConversationPbxTimeBasedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxTimeBased;
@@ -25,10 +25,10 @@ function ConversationPbxTimeBasedFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'conversationPbxTimeBasedUuid': !(0, runtime_1.exists)(json, 'conversationPbxTimeBasedUuid') ? undefined : json['conversationPbxTimeBasedUuid'],
29
- 'mappingConfig': !(0, runtime_1.exists)(json, 'mappingConfig') ? undefined : (0, ConversationPbxTimeBasedMappingConfig_1.ConversationPbxTimeBasedMappingConfigFromJSON)(json['mappingConfig']),
30
- 'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
31
- 'timeBasedName': !(0, runtime_1.exists)(json, 'timeBasedName') ? undefined : json['timeBasedName'],
28
+ 'conversation_pbx_time_based_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_time_based_uuid') ? undefined : json['conversation_pbx_time_based_uuid'],
29
+ 'mapping_config': !(0, runtime_1.exists)(json, 'mapping_config') ? undefined : (0, ConversationPbxTimeBasedMappingConfig_1.ConversationPbxTimeBasedMappingConfigFromJSON)(json['mapping_config']),
30
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
31
+ 'time_based_name': !(0, runtime_1.exists)(json, 'time_based_name') ? undefined : json['time_based_name'],
32
32
  };
33
33
  }
34
34
  exports.ConversationPbxTimeBasedFromJSONTyped = ConversationPbxTimeBasedFromJSONTyped;
@@ -40,10 +40,10 @@ function ConversationPbxTimeBasedToJSON(value) {
40
40
  return null;
41
41
  }
42
42
  return {
43
- 'conversationPbxTimeBasedUuid': value.conversationPbxTimeBasedUuid,
44
- 'mappingConfig': (0, ConversationPbxTimeBasedMappingConfig_1.ConversationPbxTimeBasedMappingConfigToJSON)(value.mappingConfig),
45
- 'merchantId': value.merchantId,
46
- 'timeBasedName': value.timeBasedName,
43
+ 'conversation_pbx_time_based_uuid': value.conversation_pbx_time_based_uuid,
44
+ 'mapping_config': (0, ConversationPbxTimeBasedMappingConfig_1.ConversationPbxTimeBasedMappingConfigToJSON)(value.mapping_config),
45
+ 'merchant_id': value.merchant_id,
46
+ 'time_based_name': value.time_based_name,
47
47
  };
48
48
  }
49
49
  exports.ConversationPbxTimeBasedToJSON = ConversationPbxTimeBasedToJSON;
@@ -20,9 +20,9 @@ export interface ConversationPbxTimeBasedMapping {
20
20
  * @type {string}
21
21
  * @memberof ConversationPbxTimeBasedMapping
22
22
  */
23
- action?: string;
23
+ action?: ConversationPbxTimeBasedMappingActionEnum;
24
24
  /**
25
- * Action target
25
+ * Action target. This is the UUID associated with the configuration object of that particular type.
26
26
  * @type {string}
27
27
  * @memberof ConversationPbxTimeBasedMapping
28
28
  */
@@ -40,6 +40,17 @@ export interface ConversationPbxTimeBasedMapping {
40
40
  */
41
41
  time_range_uuid?: string;
42
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const ConversationPbxTimeBasedMappingActionEnum: {
47
+ readonly TimeBased: "time based";
48
+ readonly Menu: "menu";
49
+ readonly Queue: "queue";
50
+ readonly Voicemail: "voicemail";
51
+ readonly Agent: "agent";
52
+ };
53
+ export type ConversationPbxTimeBasedMappingActionEnum = typeof ConversationPbxTimeBasedMappingActionEnum[keyof typeof ConversationPbxTimeBasedMappingActionEnum];
43
54
  export declare function ConversationPbxTimeBasedMappingFromJSON(json: any): ConversationPbxTimeBasedMapping;
44
55
  export declare function ConversationPbxTimeBasedMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxTimeBasedMapping;
45
56
  export declare function ConversationPbxTimeBasedMappingToJSON(value?: ConversationPbxTimeBasedMapping | null): any;
@@ -13,8 +13,18 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConversationPbxTimeBasedMappingToJSON = exports.ConversationPbxTimeBasedMappingFromJSONTyped = exports.ConversationPbxTimeBasedMappingFromJSON = void 0;
16
+ exports.ConversationPbxTimeBasedMappingToJSON = exports.ConversationPbxTimeBasedMappingFromJSONTyped = exports.ConversationPbxTimeBasedMappingFromJSON = exports.ConversationPbxTimeBasedMappingActionEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.ConversationPbxTimeBasedMappingActionEnum = {
22
+ TimeBased: 'time based',
23
+ Menu: 'menu',
24
+ Queue: 'queue',
25
+ Voicemail: 'voicemail',
26
+ Agent: 'agent'
27
+ };
18
28
  function ConversationPbxTimeBasedMappingFromJSON(json) {
19
29
  return ConversationPbxTimeBasedMappingFromJSONTyped(json, false);
20
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.216",
3
+ "version": "4.0.218",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -24,9 +24,9 @@ export interface ConversationPbxMenuMapping {
24
24
  * @type {string}
25
25
  * @memberof ConversationPbxMenuMapping
26
26
  */
27
- action?: string;
27
+ action?: ConversationPbxMenuMappingActionEnum;
28
28
  /**
29
- * Action target
29
+ * Action target. This is the UUID associated with the configuration object of that particular type.
30
30
  * @type {string}
31
31
  * @memberof ConversationPbxMenuMapping
32
32
  */
@@ -45,6 +45,20 @@ export interface ConversationPbxMenuMapping {
45
45
  speech?: string;
46
46
  }
47
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const ConversationPbxMenuMappingActionEnum = {
53
+ TimeBased: 'time based',
54
+ Menu: 'menu',
55
+ Queue: 'queue',
56
+ Voicemail: 'voicemail',
57
+ Agent: 'agent'
58
+ } as const;
59
+ export type ConversationPbxMenuMappingActionEnum = typeof ConversationPbxMenuMappingActionEnum[keyof typeof ConversationPbxMenuMappingActionEnum];
60
+
61
+
48
62
  export function ConversationPbxMenuMappingFromJSON(json: any): ConversationPbxMenuMapping {
49
63
  return ConversationPbxMenuMappingFromJSONTyped(json, false);
50
64
  }
@@ -24,9 +24,9 @@ export interface ConversationPbxPhoneNumber {
24
24
  * @type {string}
25
25
  * @memberof ConversationPbxPhoneNumber
26
26
  */
27
- action?: string;
27
+ action?: ConversationPbxPhoneNumberActionEnum;
28
28
  /**
29
- * Action target
29
+ * Action target. This is the UUID associated with the configuration object of that particular type.
30
30
  * @type {string}
31
31
  * @memberof ConversationPbxPhoneNumber
32
32
  */
@@ -51,6 +51,20 @@ export interface ConversationPbxPhoneNumber {
51
51
  phone_number?: string;
52
52
  }
53
53
 
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const ConversationPbxPhoneNumberActionEnum = {
59
+ TimeBased: 'time based',
60
+ Menu: 'menu',
61
+ Queue: 'queue',
62
+ Voicemail: 'voicemail',
63
+ Agent: 'agent'
64
+ } as const;
65
+ export type ConversationPbxPhoneNumberActionEnum = typeof ConversationPbxPhoneNumberActionEnum[keyof typeof ConversationPbxPhoneNumberActionEnum];
66
+
67
+
54
68
  export function ConversationPbxPhoneNumberFromJSON(json: any): ConversationPbxPhoneNumber {
55
69
  return ConversationPbxPhoneNumberFromJSONTyped(json, false);
56
70
  }
@@ -31,25 +31,25 @@ export interface ConversationPbxTimeBased {
31
31
  * @type {string}
32
32
  * @memberof ConversationPbxTimeBased
33
33
  */
34
- conversationPbxTimeBasedUuid?: string;
34
+ conversation_pbx_time_based_uuid?: string;
35
35
  /**
36
36
  *
37
37
  * @type {ConversationPbxTimeBasedMappingConfig}
38
38
  * @memberof ConversationPbxTimeBased
39
39
  */
40
- mappingConfig?: ConversationPbxTimeBasedMappingConfig;
40
+ mapping_config?: ConversationPbxTimeBasedMappingConfig;
41
41
  /**
42
42
  *
43
43
  * @type {string}
44
44
  * @memberof ConversationPbxTimeBased
45
45
  */
46
- merchantId?: string;
46
+ merchant_id?: string;
47
47
  /**
48
48
  *
49
49
  * @type {string}
50
50
  * @memberof ConversationPbxTimeBased
51
51
  */
52
- timeBasedName?: string;
52
+ time_based_name?: string;
53
53
  }
54
54
 
55
55
  export function ConversationPbxTimeBasedFromJSON(json: any): ConversationPbxTimeBased {
@@ -62,10 +62,10 @@ export function ConversationPbxTimeBasedFromJSONTyped(json: any, ignoreDiscrimin
62
62
  }
63
63
  return {
64
64
 
65
- 'conversationPbxTimeBasedUuid': !exists(json, 'conversationPbxTimeBasedUuid') ? undefined : json['conversationPbxTimeBasedUuid'],
66
- 'mappingConfig': !exists(json, 'mappingConfig') ? undefined : ConversationPbxTimeBasedMappingConfigFromJSON(json['mappingConfig']),
67
- 'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
68
- 'timeBasedName': !exists(json, 'timeBasedName') ? undefined : json['timeBasedName'],
65
+ 'conversation_pbx_time_based_uuid': !exists(json, 'conversation_pbx_time_based_uuid') ? undefined : json['conversation_pbx_time_based_uuid'],
66
+ 'mapping_config': !exists(json, 'mapping_config') ? undefined : ConversationPbxTimeBasedMappingConfigFromJSON(json['mapping_config']),
67
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
68
+ 'time_based_name': !exists(json, 'time_based_name') ? undefined : json['time_based_name'],
69
69
  };
70
70
  }
71
71
 
@@ -78,10 +78,10 @@ export function ConversationPbxTimeBasedToJSON(value?: ConversationPbxTimeBased
78
78
  }
79
79
  return {
80
80
 
81
- 'conversationPbxTimeBasedUuid': value.conversationPbxTimeBasedUuid,
82
- 'mappingConfig': ConversationPbxTimeBasedMappingConfigToJSON(value.mappingConfig),
83
- 'merchantId': value.merchantId,
84
- 'timeBasedName': value.timeBasedName,
81
+ 'conversation_pbx_time_based_uuid': value.conversation_pbx_time_based_uuid,
82
+ 'mapping_config': ConversationPbxTimeBasedMappingConfigToJSON(value.mapping_config),
83
+ 'merchant_id': value.merchant_id,
84
+ 'time_based_name': value.time_based_name,
85
85
  };
86
86
  }
87
87
 
@@ -24,9 +24,9 @@ export interface ConversationPbxTimeBasedMapping {
24
24
  * @type {string}
25
25
  * @memberof ConversationPbxTimeBasedMapping
26
26
  */
27
- action?: string;
27
+ action?: ConversationPbxTimeBasedMappingActionEnum;
28
28
  /**
29
- * Action target
29
+ * Action target. This is the UUID associated with the configuration object of that particular type.
30
30
  * @type {string}
31
31
  * @memberof ConversationPbxTimeBasedMapping
32
32
  */
@@ -45,6 +45,20 @@ export interface ConversationPbxTimeBasedMapping {
45
45
  time_range_uuid?: string;
46
46
  }
47
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const ConversationPbxTimeBasedMappingActionEnum = {
53
+ TimeBased: 'time based',
54
+ Menu: 'menu',
55
+ Queue: 'queue',
56
+ Voicemail: 'voicemail',
57
+ Agent: 'agent'
58
+ } as const;
59
+ export type ConversationPbxTimeBasedMappingActionEnum = typeof ConversationPbxTimeBasedMappingActionEnum[keyof typeof ConversationPbxTimeBasedMappingActionEnum];
60
+
61
+
48
62
  export function ConversationPbxTimeBasedMappingFromJSON(json: any): ConversationPbxTimeBasedMapping {
49
63
  return ConversationPbxTimeBasedMappingFromJSONTyped(json, false);
50
64
  }