ultracart_rest_api_v2_typescript 4.0.199 → 4.0.200
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 +3 -2
- package/dist/models/ConversationAgentAuth.d.ts +24 -0
- package/dist/models/ConversationAgentAuth.js +8 -0
- package/dist/models/CouponAmountOffItems.d.ts +6 -0
- package/dist/models/CouponAmountOffItems.js +2 -0
- package/dist/models/CouponBuyOneGetOneLimit.d.ts +6 -0
- package/dist/models/CouponBuyOneGetOneLimit.js +2 -0
- package/dist/models/CouponDiscountItemWithItemPurchase.d.ts +12 -0
- package/dist/models/CouponDiscountItemWithItemPurchase.js +4 -0
- package/dist/models/CouponFreeItemWithItemPurchase.d.ts +12 -0
- package/dist/models/CouponFreeItemWithItemPurchase.js +4 -0
- package/dist/models/CouponPercentOffItemsWithItemsPurchase.d.ts +12 -0
- package/dist/models/CouponPercentOffItemsWithItemsPurchase.js +4 -0
- package/dist/models/Twilio.d.ts +54 -0
- package/dist/models/Twilio.js +18 -0
- package/package.json +1 -1
- package/src/models/ConversationAgentAuth.ts +32 -0
- package/src/models/CouponAmountOffItems.ts +8 -0
- package/src/models/CouponBuyOneGetOneLimit.ts +8 -0
- package/src/models/CouponDiscountItemWithItemPurchase.ts +16 -0
- package/src/models/CouponFreeItemWithItemPurchase.ts +16 -0
- package/src/models/CouponPercentOffItemsWithItemsPurchase.ts +16 -0
- package/src/models/Twilio.ts +72 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.200
|
|
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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.200 --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.200 | 02/20/2024 | Add tag support to CouponAmountOffItems, CouponBuyOneGetOneLimit, CouponDiscountItemWithItemPurchase, CouponFreeItemWithItemPurchase, CouponPercentOffItemsWithItemsPurchase |
|
|
57
58
|
| 4.0.199 | 01/16/2024 | order query - support searching by custom fields 8 through 10 |
|
|
58
59
|
| 4.0.198 | 01/12/2024 | workflow task - add properties array |
|
|
59
60
|
| 4.0.197 | 01/10/2024 | workflow tasks - support for searching by tags |
|
|
@@ -40,6 +40,30 @@ export interface ConversationAgentAuth {
|
|
|
40
40
|
* @memberof ConversationAgentAuth
|
|
41
41
|
*/
|
|
42
42
|
merchant_id?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ConversationAgentAuth
|
|
47
|
+
*/
|
|
48
|
+
pbx_jwt?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ConversationAgentAuth
|
|
53
|
+
*/
|
|
54
|
+
pbx_voice_identity?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ConversationAgentAuth
|
|
59
|
+
*/
|
|
60
|
+
pbx_voice_token?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ConversationAgentAuth
|
|
65
|
+
*/
|
|
66
|
+
pbx_worker_token?: string;
|
|
43
67
|
/**
|
|
44
68
|
*
|
|
45
69
|
* @type {Array<ConversationTwilioAccount>}
|
|
@@ -29,6 +29,10 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
30
30
|
'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
|
|
31
31
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
32
|
+
'pbx_jwt': !(0, runtime_1.exists)(json, 'pbx_jwt') ? undefined : json['pbx_jwt'],
|
|
33
|
+
'pbx_voice_identity': !(0, runtime_1.exists)(json, 'pbx_voice_identity') ? undefined : json['pbx_voice_identity'],
|
|
34
|
+
'pbx_voice_token': !(0, runtime_1.exists)(json, 'pbx_voice_token') ? undefined : json['pbx_voice_token'],
|
|
35
|
+
'pbx_worker_token': !(0, runtime_1.exists)(json, 'pbx_worker_token') ? undefined : json['pbx_worker_token'],
|
|
32
36
|
'twilio_accounts': !(0, runtime_1.exists)(json, 'twilio_accounts') ? undefined : (json['twilio_accounts'].map(ConversationTwilioAccount_1.ConversationTwilioAccountFromJSON)),
|
|
33
37
|
'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
|
|
34
38
|
};
|
|
@@ -46,6 +50,10 @@ function ConversationAgentAuthToJSON(value) {
|
|
|
46
50
|
'conversation_participant_name': value.conversation_participant_name,
|
|
47
51
|
'jwt': value.jwt,
|
|
48
52
|
'merchant_id': value.merchant_id,
|
|
53
|
+
'pbx_jwt': value.pbx_jwt,
|
|
54
|
+
'pbx_voice_identity': value.pbx_voice_identity,
|
|
55
|
+
'pbx_voice_token': value.pbx_voice_token,
|
|
56
|
+
'pbx_worker_token': value.pbx_worker_token,
|
|
49
57
|
'twilio_accounts': value.twilio_accounts === undefined ? undefined : (value.twilio_accounts.map(ConversationTwilioAccount_1.ConversationTwilioAccountToJSON)),
|
|
50
58
|
'websocket_url': value.websocket_url,
|
|
51
59
|
};
|
|
@@ -27,6 +27,12 @@ export interface CouponAmountOffItems {
|
|
|
27
27
|
* @memberof CouponAmountOffItems
|
|
28
28
|
*/
|
|
29
29
|
discount_amount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* An optional list of item tags which will receive a discount.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof CouponAmountOffItems
|
|
34
|
+
*/
|
|
35
|
+
item_tags?: Array<string>;
|
|
30
36
|
/**
|
|
31
37
|
* A list of items which are eligible for the discount amount.
|
|
32
38
|
* @type {Array<string>}
|
|
@@ -26,6 +26,7 @@ function CouponAmountOffItemsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return {
|
|
27
27
|
'currency_code': !(0, runtime_1.exists)(json, 'currency_code') ? undefined : json['currency_code'],
|
|
28
28
|
'discount_amount': !(0, runtime_1.exists)(json, 'discount_amount') ? undefined : json['discount_amount'],
|
|
29
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
29
30
|
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
30
31
|
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
31
32
|
};
|
|
@@ -41,6 +42,7 @@ function CouponAmountOffItemsToJSON(value) {
|
|
|
41
42
|
return {
|
|
42
43
|
'currency_code': value.currency_code,
|
|
43
44
|
'discount_amount': value.discount_amount,
|
|
45
|
+
'item_tags': value.item_tags,
|
|
44
46
|
'items': value.items,
|
|
45
47
|
'limit': value.limit,
|
|
46
48
|
};
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface CouponBuyOneGetOneLimit
|
|
16
16
|
*/
|
|
17
17
|
export interface CouponBuyOneGetOneLimit {
|
|
18
|
+
/**
|
|
19
|
+
* An optional list of item tags which will receive a discount.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof CouponBuyOneGetOneLimit
|
|
22
|
+
*/
|
|
23
|
+
item_tags?: Array<string>;
|
|
18
24
|
/**
|
|
19
25
|
* An optional list of items of which one must be purchased to receive free quantity of the same item.
|
|
20
26
|
* @type {Array<string>}
|
|
@@ -24,6 +24,7 @@ function CouponBuyOneGetOneLimitFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
27
28
|
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
28
29
|
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
29
30
|
};
|
|
@@ -37,6 +38,7 @@ function CouponBuyOneGetOneLimitToJSON(value) {
|
|
|
37
38
|
return null;
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
41
|
+
'item_tags': value.item_tags,
|
|
40
42
|
'items': value.items,
|
|
41
43
|
'limit': value.limit,
|
|
42
44
|
};
|
|
@@ -27,6 +27,12 @@ export interface CouponDiscountItemWithItemPurchase {
|
|
|
27
27
|
* @memberof CouponDiscountItemWithItemPurchase
|
|
28
28
|
*/
|
|
29
29
|
discount_item?: string;
|
|
30
|
+
/**
|
|
31
|
+
* An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof CouponDiscountItemWithItemPurchase
|
|
34
|
+
*/
|
|
35
|
+
discount_item_tags?: Array<string>;
|
|
30
36
|
/**
|
|
31
37
|
* The price (unit cost) of the discounted item
|
|
32
38
|
* @type {number}
|
|
@@ -45,6 +51,12 @@ export interface CouponDiscountItemWithItemPurchase {
|
|
|
45
51
|
* @memberof CouponDiscountItemWithItemPurchase
|
|
46
52
|
*/
|
|
47
53
|
required_purchase_item?: string;
|
|
54
|
+
/**
|
|
55
|
+
* An optional list of item tags which are required to be purchased.
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof CouponDiscountItemWithItemPurchase
|
|
58
|
+
*/
|
|
59
|
+
required_purchase_items_tags?: Array<string>;
|
|
48
60
|
}
|
|
49
61
|
export declare function CouponDiscountItemWithItemPurchaseFromJSON(json: any): CouponDiscountItemWithItemPurchase;
|
|
50
62
|
export declare function CouponDiscountItemWithItemPurchaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponDiscountItemWithItemPurchase;
|
|
@@ -26,9 +26,11 @@ function CouponDiscountItemWithItemPurchaseFromJSONTyped(json, ignoreDiscriminat
|
|
|
26
26
|
return {
|
|
27
27
|
'currency_code': !(0, runtime_1.exists)(json, 'currency_code') ? undefined : json['currency_code'],
|
|
28
28
|
'discount_item': !(0, runtime_1.exists)(json, 'discount_item') ? undefined : json['discount_item'],
|
|
29
|
+
'discount_item_tags': !(0, runtime_1.exists)(json, 'discount_item_tags') ? undefined : json['discount_item_tags'],
|
|
29
30
|
'discount_price': !(0, runtime_1.exists)(json, 'discount_price') ? undefined : json['discount_price'],
|
|
30
31
|
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
31
32
|
'required_purchase_item': !(0, runtime_1.exists)(json, 'required_purchase_item') ? undefined : json['required_purchase_item'],
|
|
33
|
+
'required_purchase_items_tags': !(0, runtime_1.exists)(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
exports.CouponDiscountItemWithItemPurchaseFromJSONTyped = CouponDiscountItemWithItemPurchaseFromJSONTyped;
|
|
@@ -42,9 +44,11 @@ function CouponDiscountItemWithItemPurchaseToJSON(value) {
|
|
|
42
44
|
return {
|
|
43
45
|
'currency_code': value.currency_code,
|
|
44
46
|
'discount_item': value.discount_item,
|
|
47
|
+
'discount_item_tags': value.discount_item_tags,
|
|
45
48
|
'discount_price': value.discount_price,
|
|
46
49
|
'limit': value.limit,
|
|
47
50
|
'required_purchase_item': value.required_purchase_item,
|
|
51
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
48
52
|
};
|
|
49
53
|
}
|
|
50
54
|
exports.CouponDiscountItemWithItemPurchaseToJSON = CouponDiscountItemWithItemPurchaseToJSON;
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface CouponFreeItemWithItemPurchase
|
|
16
16
|
*/
|
|
17
17
|
export interface CouponFreeItemWithItemPurchase {
|
|
18
|
+
/**
|
|
19
|
+
* An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof CouponFreeItemWithItemPurchase
|
|
22
|
+
*/
|
|
23
|
+
item_tags?: Array<string>;
|
|
18
24
|
/**
|
|
19
25
|
* A list of free items which will receive a discount if one of the required purchase items is purchased.
|
|
20
26
|
* @type {Array<string>}
|
|
@@ -39,6 +45,12 @@ export interface CouponFreeItemWithItemPurchase {
|
|
|
39
45
|
* @memberof CouponFreeItemWithItemPurchase
|
|
40
46
|
*/
|
|
41
47
|
required_purchase_items?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* An optional list of item tags which are required to be purchased.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CouponFreeItemWithItemPurchase
|
|
52
|
+
*/
|
|
53
|
+
required_purchase_items_tags?: Array<string>;
|
|
42
54
|
}
|
|
43
55
|
export declare function CouponFreeItemWithItemPurchaseFromJSON(json: any): CouponFreeItemWithItemPurchase;
|
|
44
56
|
export declare function CouponFreeItemWithItemPurchaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponFreeItemWithItemPurchase;
|
|
@@ -24,10 +24,12 @@ function CouponFreeItemWithItemPurchaseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
27
28
|
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
28
29
|
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
29
30
|
'match_required_purchase_item_to_free_item': !(0, runtime_1.exists)(json, 'match_required_purchase_item_to_free_item') ? undefined : json['match_required_purchase_item_to_free_item'],
|
|
30
31
|
'required_purchase_items': !(0, runtime_1.exists)(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
32
|
+
'required_purchase_items_tags': !(0, runtime_1.exists)(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.CouponFreeItemWithItemPurchaseFromJSONTyped = CouponFreeItemWithItemPurchaseFromJSONTyped;
|
|
@@ -39,10 +41,12 @@ function CouponFreeItemWithItemPurchaseToJSON(value) {
|
|
|
39
41
|
return null;
|
|
40
42
|
}
|
|
41
43
|
return {
|
|
44
|
+
'item_tags': value.item_tags,
|
|
42
45
|
'items': value.items,
|
|
43
46
|
'limit': value.limit,
|
|
44
47
|
'match_required_purchase_item_to_free_item': value.match_required_purchase_item_to_free_item,
|
|
45
48
|
'required_purchase_items': value.required_purchase_items,
|
|
49
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
exports.CouponFreeItemWithItemPurchaseToJSON = CouponFreeItemWithItemPurchaseToJSON;
|
|
@@ -21,6 +21,12 @@ export interface CouponPercentOffItemsWithItemsPurchase {
|
|
|
21
21
|
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
22
22
|
*/
|
|
23
23
|
discount_percent?: number;
|
|
24
|
+
/**
|
|
25
|
+
* An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
28
|
+
*/
|
|
29
|
+
item_tags?: Array<string>;
|
|
24
30
|
/**
|
|
25
31
|
* A list of items which will receive a discount if one of the required purchase items is purchased.
|
|
26
32
|
* @type {Array<string>}
|
|
@@ -39,6 +45,12 @@ export interface CouponPercentOffItemsWithItemsPurchase {
|
|
|
39
45
|
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
40
46
|
*/
|
|
41
47
|
required_purchase_items?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* An optional list of item tags which are required to be purchased.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
52
|
+
*/
|
|
53
|
+
required_purchase_items_tags?: Array<string>;
|
|
42
54
|
}
|
|
43
55
|
export declare function CouponPercentOffItemsWithItemsPurchaseFromJSON(json: any): CouponPercentOffItemsWithItemsPurchase;
|
|
44
56
|
export declare function CouponPercentOffItemsWithItemsPurchaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponPercentOffItemsWithItemsPurchase;
|
|
@@ -25,9 +25,11 @@ function CouponPercentOffItemsWithItemsPurchaseFromJSONTyped(json, ignoreDiscrim
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'discount_percent': !(0, runtime_1.exists)(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
28
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
28
29
|
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : json['items'],
|
|
29
30
|
'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
|
|
30
31
|
'required_purchase_items': !(0, runtime_1.exists)(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
32
|
+
'required_purchase_items_tags': !(0, runtime_1.exists)(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.CouponPercentOffItemsWithItemsPurchaseFromJSONTyped = CouponPercentOffItemsWithItemsPurchaseFromJSONTyped;
|
|
@@ -40,9 +42,11 @@ function CouponPercentOffItemsWithItemsPurchaseToJSON(value) {
|
|
|
40
42
|
}
|
|
41
43
|
return {
|
|
42
44
|
'discount_percent': value.discount_percent,
|
|
45
|
+
'item_tags': value.item_tags,
|
|
43
46
|
'items': value.items,
|
|
44
47
|
'limit': value.limit,
|
|
45
48
|
'required_purchase_items': value.required_purchase_items,
|
|
49
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
exports.CouponPercentOffItemsWithItemsPurchaseToJSON = CouponPercentOffItemsWithItemsPurchaseToJSON;
|
package/dist/models/Twilio.d.ts
CHANGED
|
@@ -21,6 +21,24 @@ export interface Twilio {
|
|
|
21
21
|
* @memberof Twilio
|
|
22
22
|
*/
|
|
23
23
|
account_sid?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Twilio
|
|
28
|
+
*/
|
|
29
|
+
api_key_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Twilio
|
|
34
|
+
*/
|
|
35
|
+
api_key_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Twilio
|
|
40
|
+
*/
|
|
41
|
+
api_key_secret?: string;
|
|
24
42
|
/**
|
|
25
43
|
*
|
|
26
44
|
* @type {string}
|
|
@@ -33,12 +51,48 @@ export interface Twilio {
|
|
|
33
51
|
* @memberof Twilio
|
|
34
52
|
*/
|
|
35
53
|
esp_twilio_uuid?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Twilio
|
|
58
|
+
*/
|
|
59
|
+
inbound_twiml_app_sid?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Twilio
|
|
64
|
+
*/
|
|
65
|
+
outbound_twiml_app_sid?: string;
|
|
36
66
|
/**
|
|
37
67
|
*
|
|
38
68
|
* @type {Array<string>}
|
|
39
69
|
* @memberof Twilio
|
|
40
70
|
*/
|
|
41
71
|
phone_numbers?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Twilio
|
|
76
|
+
*/
|
|
77
|
+
private_key_pem?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Twilio
|
|
82
|
+
*/
|
|
83
|
+
public_key_pem?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof Twilio
|
|
88
|
+
*/
|
|
89
|
+
public_key_sid?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof Twilio
|
|
94
|
+
*/
|
|
95
|
+
twilio_workspace_sid?: string;
|
|
42
96
|
}
|
|
43
97
|
export declare function TwilioFromJSON(json: any): Twilio;
|
|
44
98
|
export declare function TwilioFromJSONTyped(json: any, ignoreDiscriminator: boolean): Twilio;
|
package/dist/models/Twilio.js
CHANGED
|
@@ -25,9 +25,18 @@ function TwilioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
27
|
'account_sid': !(0, runtime_1.exists)(json, 'account_sid') ? undefined : json['account_sid'],
|
|
28
|
+
'api_key_id': !(0, runtime_1.exists)(json, 'api_key_id') ? undefined : json['api_key_id'],
|
|
29
|
+
'api_key_name': !(0, runtime_1.exists)(json, 'api_key_name') ? undefined : json['api_key_name'],
|
|
30
|
+
'api_key_secret': !(0, runtime_1.exists)(json, 'api_key_secret') ? undefined : json['api_key_secret'],
|
|
28
31
|
'auth_token': !(0, runtime_1.exists)(json, 'auth_token') ? undefined : json['auth_token'],
|
|
29
32
|
'esp_twilio_uuid': !(0, runtime_1.exists)(json, 'esp_twilio_uuid') ? undefined : json['esp_twilio_uuid'],
|
|
33
|
+
'inbound_twiml_app_sid': !(0, runtime_1.exists)(json, 'inbound_twiml_app_sid') ? undefined : json['inbound_twiml_app_sid'],
|
|
34
|
+
'outbound_twiml_app_sid': !(0, runtime_1.exists)(json, 'outbound_twiml_app_sid') ? undefined : json['outbound_twiml_app_sid'],
|
|
30
35
|
'phone_numbers': !(0, runtime_1.exists)(json, 'phone_numbers') ? undefined : json['phone_numbers'],
|
|
36
|
+
'private_key_pem': !(0, runtime_1.exists)(json, 'private_key_pem') ? undefined : json['private_key_pem'],
|
|
37
|
+
'public_key_pem': !(0, runtime_1.exists)(json, 'public_key_pem') ? undefined : json['public_key_pem'],
|
|
38
|
+
'public_key_sid': !(0, runtime_1.exists)(json, 'public_key_sid') ? undefined : json['public_key_sid'],
|
|
39
|
+
'twilio_workspace_sid': !(0, runtime_1.exists)(json, 'twilio_workspace_sid') ? undefined : json['twilio_workspace_sid'],
|
|
31
40
|
};
|
|
32
41
|
}
|
|
33
42
|
exports.TwilioFromJSONTyped = TwilioFromJSONTyped;
|
|
@@ -40,9 +49,18 @@ function TwilioToJSON(value) {
|
|
|
40
49
|
}
|
|
41
50
|
return {
|
|
42
51
|
'account_sid': value.account_sid,
|
|
52
|
+
'api_key_id': value.api_key_id,
|
|
53
|
+
'api_key_name': value.api_key_name,
|
|
54
|
+
'api_key_secret': value.api_key_secret,
|
|
43
55
|
'auth_token': value.auth_token,
|
|
44
56
|
'esp_twilio_uuid': value.esp_twilio_uuid,
|
|
57
|
+
'inbound_twiml_app_sid': value.inbound_twiml_app_sid,
|
|
58
|
+
'outbound_twiml_app_sid': value.outbound_twiml_app_sid,
|
|
45
59
|
'phone_numbers': value.phone_numbers,
|
|
60
|
+
'private_key_pem': value.private_key_pem,
|
|
61
|
+
'public_key_pem': value.public_key_pem,
|
|
62
|
+
'public_key_sid': value.public_key_sid,
|
|
63
|
+
'twilio_workspace_sid': value.twilio_workspace_sid,
|
|
46
64
|
};
|
|
47
65
|
}
|
|
48
66
|
exports.TwilioToJSON = TwilioToJSON;
|
package/package.json
CHANGED
|
@@ -50,6 +50,30 @@ export interface ConversationAgentAuth {
|
|
|
50
50
|
* @memberof ConversationAgentAuth
|
|
51
51
|
*/
|
|
52
52
|
merchant_id?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ConversationAgentAuth
|
|
57
|
+
*/
|
|
58
|
+
pbx_jwt?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ConversationAgentAuth
|
|
63
|
+
*/
|
|
64
|
+
pbx_voice_identity?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ConversationAgentAuth
|
|
69
|
+
*/
|
|
70
|
+
pbx_voice_token?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ConversationAgentAuth
|
|
75
|
+
*/
|
|
76
|
+
pbx_worker_token?: string;
|
|
53
77
|
/**
|
|
54
78
|
*
|
|
55
79
|
* @type {Array<ConversationTwilioAccount>}
|
|
@@ -78,6 +102,10 @@ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
78
102
|
'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
79
103
|
'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
|
|
80
104
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
105
|
+
'pbx_jwt': !exists(json, 'pbx_jwt') ? undefined : json['pbx_jwt'],
|
|
106
|
+
'pbx_voice_identity': !exists(json, 'pbx_voice_identity') ? undefined : json['pbx_voice_identity'],
|
|
107
|
+
'pbx_voice_token': !exists(json, 'pbx_voice_token') ? undefined : json['pbx_voice_token'],
|
|
108
|
+
'pbx_worker_token': !exists(json, 'pbx_worker_token') ? undefined : json['pbx_worker_token'],
|
|
81
109
|
'twilio_accounts': !exists(json, 'twilio_accounts') ? undefined : ((json['twilio_accounts'] as Array<any>).map(ConversationTwilioAccountFromJSON)),
|
|
82
110
|
'websocket_url': !exists(json, 'websocket_url') ? undefined : json['websocket_url'],
|
|
83
111
|
};
|
|
@@ -96,6 +124,10 @@ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null
|
|
|
96
124
|
'conversation_participant_name': value.conversation_participant_name,
|
|
97
125
|
'jwt': value.jwt,
|
|
98
126
|
'merchant_id': value.merchant_id,
|
|
127
|
+
'pbx_jwt': value.pbx_jwt,
|
|
128
|
+
'pbx_voice_identity': value.pbx_voice_identity,
|
|
129
|
+
'pbx_voice_token': value.pbx_voice_token,
|
|
130
|
+
'pbx_worker_token': value.pbx_worker_token,
|
|
99
131
|
'twilio_accounts': value.twilio_accounts === undefined ? undefined : ((value.twilio_accounts as Array<any>).map(ConversationTwilioAccountToJSON)),
|
|
100
132
|
'websocket_url': value.websocket_url,
|
|
101
133
|
};
|
|
@@ -31,6 +31,12 @@ export interface CouponAmountOffItems {
|
|
|
31
31
|
* @memberof CouponAmountOffItems
|
|
32
32
|
*/
|
|
33
33
|
discount_amount?: number;
|
|
34
|
+
/**
|
|
35
|
+
* An optional list of item tags which will receive a discount.
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof CouponAmountOffItems
|
|
38
|
+
*/
|
|
39
|
+
item_tags?: Array<string>;
|
|
34
40
|
/**
|
|
35
41
|
* A list of items which are eligible for the discount amount.
|
|
36
42
|
* @type {Array<string>}
|
|
@@ -57,6 +63,7 @@ export function CouponAmountOffItemsFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
57
63
|
|
|
58
64
|
'currency_code': !exists(json, 'currency_code') ? undefined : json['currency_code'],
|
|
59
65
|
'discount_amount': !exists(json, 'discount_amount') ? undefined : json['discount_amount'],
|
|
66
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
60
67
|
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
61
68
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
62
69
|
};
|
|
@@ -73,6 +80,7 @@ export function CouponAmountOffItemsToJSON(value?: CouponAmountOffItems | null):
|
|
|
73
80
|
|
|
74
81
|
'currency_code': value.currency_code,
|
|
75
82
|
'discount_amount': value.discount_amount,
|
|
83
|
+
'item_tags': value.item_tags,
|
|
76
84
|
'items': value.items,
|
|
77
85
|
'limit': value.limit,
|
|
78
86
|
};
|
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface CouponBuyOneGetOneLimit
|
|
20
20
|
*/
|
|
21
21
|
export interface CouponBuyOneGetOneLimit {
|
|
22
|
+
/**
|
|
23
|
+
* An optional list of item tags which will receive a discount.
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CouponBuyOneGetOneLimit
|
|
26
|
+
*/
|
|
27
|
+
item_tags?: Array<string>;
|
|
22
28
|
/**
|
|
23
29
|
* An optional list of items of which one must be purchased to receive free quantity of the same item.
|
|
24
30
|
* @type {Array<string>}
|
|
@@ -43,6 +49,7 @@ export function CouponBuyOneGetOneLimitFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
43
49
|
}
|
|
44
50
|
return {
|
|
45
51
|
|
|
52
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
46
53
|
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
47
54
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
48
55
|
};
|
|
@@ -57,6 +64,7 @@ export function CouponBuyOneGetOneLimitToJSON(value?: CouponBuyOneGetOneLimit |
|
|
|
57
64
|
}
|
|
58
65
|
return {
|
|
59
66
|
|
|
67
|
+
'item_tags': value.item_tags,
|
|
60
68
|
'items': value.items,
|
|
61
69
|
'limit': value.limit,
|
|
62
70
|
};
|
|
@@ -31,6 +31,12 @@ export interface CouponDiscountItemWithItemPurchase {
|
|
|
31
31
|
* @memberof CouponDiscountItemWithItemPurchase
|
|
32
32
|
*/
|
|
33
33
|
discount_item?: string;
|
|
34
|
+
/**
|
|
35
|
+
* An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof CouponDiscountItemWithItemPurchase
|
|
38
|
+
*/
|
|
39
|
+
discount_item_tags?: Array<string>;
|
|
34
40
|
/**
|
|
35
41
|
* The price (unit cost) of the discounted item
|
|
36
42
|
* @type {number}
|
|
@@ -49,6 +55,12 @@ export interface CouponDiscountItemWithItemPurchase {
|
|
|
49
55
|
* @memberof CouponDiscountItemWithItemPurchase
|
|
50
56
|
*/
|
|
51
57
|
required_purchase_item?: string;
|
|
58
|
+
/**
|
|
59
|
+
* An optional list of item tags which are required to be purchased.
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof CouponDiscountItemWithItemPurchase
|
|
62
|
+
*/
|
|
63
|
+
required_purchase_items_tags?: Array<string>;
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
export function CouponDiscountItemWithItemPurchaseFromJSON(json: any): CouponDiscountItemWithItemPurchase {
|
|
@@ -63,9 +75,11 @@ export function CouponDiscountItemWithItemPurchaseFromJSONTyped(json: any, ignor
|
|
|
63
75
|
|
|
64
76
|
'currency_code': !exists(json, 'currency_code') ? undefined : json['currency_code'],
|
|
65
77
|
'discount_item': !exists(json, 'discount_item') ? undefined : json['discount_item'],
|
|
78
|
+
'discount_item_tags': !exists(json, 'discount_item_tags') ? undefined : json['discount_item_tags'],
|
|
66
79
|
'discount_price': !exists(json, 'discount_price') ? undefined : json['discount_price'],
|
|
67
80
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
68
81
|
'required_purchase_item': !exists(json, 'required_purchase_item') ? undefined : json['required_purchase_item'],
|
|
82
|
+
'required_purchase_items_tags': !exists(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
69
83
|
};
|
|
70
84
|
}
|
|
71
85
|
|
|
@@ -80,9 +94,11 @@ export function CouponDiscountItemWithItemPurchaseToJSON(value?: CouponDiscountI
|
|
|
80
94
|
|
|
81
95
|
'currency_code': value.currency_code,
|
|
82
96
|
'discount_item': value.discount_item,
|
|
97
|
+
'discount_item_tags': value.discount_item_tags,
|
|
83
98
|
'discount_price': value.discount_price,
|
|
84
99
|
'limit': value.limit,
|
|
85
100
|
'required_purchase_item': value.required_purchase_item,
|
|
101
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
86
102
|
};
|
|
87
103
|
}
|
|
88
104
|
|
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface CouponFreeItemWithItemPurchase
|
|
20
20
|
*/
|
|
21
21
|
export interface CouponFreeItemWithItemPurchase {
|
|
22
|
+
/**
|
|
23
|
+
* An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CouponFreeItemWithItemPurchase
|
|
26
|
+
*/
|
|
27
|
+
item_tags?: Array<string>;
|
|
22
28
|
/**
|
|
23
29
|
* A list of free items which will receive a discount if one of the required purchase items is purchased.
|
|
24
30
|
* @type {Array<string>}
|
|
@@ -43,6 +49,12 @@ export interface CouponFreeItemWithItemPurchase {
|
|
|
43
49
|
* @memberof CouponFreeItemWithItemPurchase
|
|
44
50
|
*/
|
|
45
51
|
required_purchase_items?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* An optional list of item tags which are required to be purchased.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof CouponFreeItemWithItemPurchase
|
|
56
|
+
*/
|
|
57
|
+
required_purchase_items_tags?: Array<string>;
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
export function CouponFreeItemWithItemPurchaseFromJSON(json: any): CouponFreeItemWithItemPurchase {
|
|
@@ -55,10 +67,12 @@ export function CouponFreeItemWithItemPurchaseFromJSONTyped(json: any, ignoreDis
|
|
|
55
67
|
}
|
|
56
68
|
return {
|
|
57
69
|
|
|
70
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
58
71
|
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
59
72
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
60
73
|
'match_required_purchase_item_to_free_item': !exists(json, 'match_required_purchase_item_to_free_item') ? undefined : json['match_required_purchase_item_to_free_item'],
|
|
61
74
|
'required_purchase_items': !exists(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
75
|
+
'required_purchase_items_tags': !exists(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
78
|
|
|
@@ -71,10 +85,12 @@ export function CouponFreeItemWithItemPurchaseToJSON(value?: CouponFreeItemWithI
|
|
|
71
85
|
}
|
|
72
86
|
return {
|
|
73
87
|
|
|
88
|
+
'item_tags': value.item_tags,
|
|
74
89
|
'items': value.items,
|
|
75
90
|
'limit': value.limit,
|
|
76
91
|
'match_required_purchase_item_to_free_item': value.match_required_purchase_item_to_free_item,
|
|
77
92
|
'required_purchase_items': value.required_purchase_items,
|
|
93
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
78
94
|
};
|
|
79
95
|
}
|
|
80
96
|
|
|
@@ -25,6 +25,12 @@ export interface CouponPercentOffItemsWithItemsPurchase {
|
|
|
25
25
|
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
26
26
|
*/
|
|
27
27
|
discount_percent?: number;
|
|
28
|
+
/**
|
|
29
|
+
* An optional list of item tags which will receive a discount of one of the required purchased items is purchased.
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
32
|
+
*/
|
|
33
|
+
item_tags?: Array<string>;
|
|
28
34
|
/**
|
|
29
35
|
* A list of items which will receive a discount if one of the required purchase items is purchased.
|
|
30
36
|
* @type {Array<string>}
|
|
@@ -43,6 +49,12 @@ export interface CouponPercentOffItemsWithItemsPurchase {
|
|
|
43
49
|
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
44
50
|
*/
|
|
45
51
|
required_purchase_items?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* An optional list of item tags which are required to be purchased.
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof CouponPercentOffItemsWithItemsPurchase
|
|
56
|
+
*/
|
|
57
|
+
required_purchase_items_tags?: Array<string>;
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
export function CouponPercentOffItemsWithItemsPurchaseFromJSON(json: any): CouponPercentOffItemsWithItemsPurchase {
|
|
@@ -56,9 +68,11 @@ export function CouponPercentOffItemsWithItemsPurchaseFromJSONTyped(json: any, i
|
|
|
56
68
|
return {
|
|
57
69
|
|
|
58
70
|
'discount_percent': !exists(json, 'discount_percent') ? undefined : json['discount_percent'],
|
|
71
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
59
72
|
'items': !exists(json, 'items') ? undefined : json['items'],
|
|
60
73
|
'limit': !exists(json, 'limit') ? undefined : json['limit'],
|
|
61
74
|
'required_purchase_items': !exists(json, 'required_purchase_items') ? undefined : json['required_purchase_items'],
|
|
75
|
+
'required_purchase_items_tags': !exists(json, 'required_purchase_items_tags') ? undefined : json['required_purchase_items_tags'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
78
|
|
|
@@ -72,9 +86,11 @@ export function CouponPercentOffItemsWithItemsPurchaseToJSON(value?: CouponPerce
|
|
|
72
86
|
return {
|
|
73
87
|
|
|
74
88
|
'discount_percent': value.discount_percent,
|
|
89
|
+
'item_tags': value.item_tags,
|
|
75
90
|
'items': value.items,
|
|
76
91
|
'limit': value.limit,
|
|
77
92
|
'required_purchase_items': value.required_purchase_items,
|
|
93
|
+
'required_purchase_items_tags': value.required_purchase_items_tags,
|
|
78
94
|
};
|
|
79
95
|
}
|
|
80
96
|
|
package/src/models/Twilio.ts
CHANGED
|
@@ -25,6 +25,24 @@ export interface Twilio {
|
|
|
25
25
|
* @memberof Twilio
|
|
26
26
|
*/
|
|
27
27
|
account_sid?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Twilio
|
|
32
|
+
*/
|
|
33
|
+
api_key_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Twilio
|
|
38
|
+
*/
|
|
39
|
+
api_key_name?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Twilio
|
|
44
|
+
*/
|
|
45
|
+
api_key_secret?: string;
|
|
28
46
|
/**
|
|
29
47
|
*
|
|
30
48
|
* @type {string}
|
|
@@ -37,12 +55,48 @@ export interface Twilio {
|
|
|
37
55
|
* @memberof Twilio
|
|
38
56
|
*/
|
|
39
57
|
esp_twilio_uuid?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Twilio
|
|
62
|
+
*/
|
|
63
|
+
inbound_twiml_app_sid?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Twilio
|
|
68
|
+
*/
|
|
69
|
+
outbound_twiml_app_sid?: string;
|
|
40
70
|
/**
|
|
41
71
|
*
|
|
42
72
|
* @type {Array<string>}
|
|
43
73
|
* @memberof Twilio
|
|
44
74
|
*/
|
|
45
75
|
phone_numbers?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Twilio
|
|
80
|
+
*/
|
|
81
|
+
private_key_pem?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Twilio
|
|
86
|
+
*/
|
|
87
|
+
public_key_pem?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Twilio
|
|
92
|
+
*/
|
|
93
|
+
public_key_sid?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Twilio
|
|
98
|
+
*/
|
|
99
|
+
twilio_workspace_sid?: string;
|
|
46
100
|
}
|
|
47
101
|
|
|
48
102
|
export function TwilioFromJSON(json: any): Twilio {
|
|
@@ -56,9 +110,18 @@ export function TwilioFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tw
|
|
|
56
110
|
return {
|
|
57
111
|
|
|
58
112
|
'account_sid': !exists(json, 'account_sid') ? undefined : json['account_sid'],
|
|
113
|
+
'api_key_id': !exists(json, 'api_key_id') ? undefined : json['api_key_id'],
|
|
114
|
+
'api_key_name': !exists(json, 'api_key_name') ? undefined : json['api_key_name'],
|
|
115
|
+
'api_key_secret': !exists(json, 'api_key_secret') ? undefined : json['api_key_secret'],
|
|
59
116
|
'auth_token': !exists(json, 'auth_token') ? undefined : json['auth_token'],
|
|
60
117
|
'esp_twilio_uuid': !exists(json, 'esp_twilio_uuid') ? undefined : json['esp_twilio_uuid'],
|
|
118
|
+
'inbound_twiml_app_sid': !exists(json, 'inbound_twiml_app_sid') ? undefined : json['inbound_twiml_app_sid'],
|
|
119
|
+
'outbound_twiml_app_sid': !exists(json, 'outbound_twiml_app_sid') ? undefined : json['outbound_twiml_app_sid'],
|
|
61
120
|
'phone_numbers': !exists(json, 'phone_numbers') ? undefined : json['phone_numbers'],
|
|
121
|
+
'private_key_pem': !exists(json, 'private_key_pem') ? undefined : json['private_key_pem'],
|
|
122
|
+
'public_key_pem': !exists(json, 'public_key_pem') ? undefined : json['public_key_pem'],
|
|
123
|
+
'public_key_sid': !exists(json, 'public_key_sid') ? undefined : json['public_key_sid'],
|
|
124
|
+
'twilio_workspace_sid': !exists(json, 'twilio_workspace_sid') ? undefined : json['twilio_workspace_sid'],
|
|
62
125
|
};
|
|
63
126
|
}
|
|
64
127
|
|
|
@@ -72,9 +135,18 @@ export function TwilioToJSON(value?: Twilio | null): any {
|
|
|
72
135
|
return {
|
|
73
136
|
|
|
74
137
|
'account_sid': value.account_sid,
|
|
138
|
+
'api_key_id': value.api_key_id,
|
|
139
|
+
'api_key_name': value.api_key_name,
|
|
140
|
+
'api_key_secret': value.api_key_secret,
|
|
75
141
|
'auth_token': value.auth_token,
|
|
76
142
|
'esp_twilio_uuid': value.esp_twilio_uuid,
|
|
143
|
+
'inbound_twiml_app_sid': value.inbound_twiml_app_sid,
|
|
144
|
+
'outbound_twiml_app_sid': value.outbound_twiml_app_sid,
|
|
77
145
|
'phone_numbers': value.phone_numbers,
|
|
146
|
+
'private_key_pem': value.private_key_pem,
|
|
147
|
+
'public_key_pem': value.public_key_pem,
|
|
148
|
+
'public_key_sid': value.public_key_sid,
|
|
149
|
+
'twilio_workspace_sid': value.twilio_workspace_sid,
|
|
78
150
|
};
|
|
79
151
|
}
|
|
80
152
|
|