ultracart_rest_api_v2_typescript 4.0.228 → 4.0.230
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 +4 -2
- package/dist/apis/StorefrontApi.d.ts +26 -0
- package/dist/apis/StorefrontApi.js +61 -0
- package/dist/models/ConversationPbxMenu.d.ts +14 -0
- package/dist/models/ConversationPbxMenu.js +10 -1
- package/dist/models/ConversationPbxVoicemailMailbox.d.ts +18 -2
- package/dist/models/ConversationPbxVoicemailMailbox.js +15 -1
- package/dist/models/Twilio.d.ts +0 -24
- package/dist/models/Twilio.js +0 -8
- package/package.json +1 -1
- package/src/apis/StorefrontApi.ts +67 -0
- package/src/models/ConversationPbxMenu.ts +19 -0
- package/src/models/ConversationPbxVoicemailMailbox.ts +20 -2
- package/src/models/Twilio.ts +0 -32
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.230
|
|
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.230 --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.230 | 06/24/2024 | conversation object cleanup |
|
|
58
|
+
| 4.0.229 | 06/14/2024 | pbx menu - add say voice property |
|
|
57
59
|
| 4.0.228 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
|
|
58
60
|
| 4.0.227 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
|
|
59
61
|
| 4.0.226 | 05/31/2024 | ItemApi.getInventorySnapshot method |
|
|
@@ -616,6 +616,10 @@ export interface SubscribeToEmailListRequest {
|
|
|
616
616
|
emailListUuid: string;
|
|
617
617
|
customers: Array<EmailCustomer>;
|
|
618
618
|
}
|
|
619
|
+
export interface SunsetEmailSegmentRequest {
|
|
620
|
+
storefrontOid: number;
|
|
621
|
+
emailSegmentUuid: string;
|
|
622
|
+
}
|
|
619
623
|
export interface UnfavoriteScreenRecordingRequest {
|
|
620
624
|
storefrontOid: number;
|
|
621
625
|
screenRecordingUuid: string;
|
|
@@ -2876,6 +2880,20 @@ export interface StorefrontApiInterface {
|
|
|
2876
2880
|
* Subscribe customers to email list
|
|
2877
2881
|
*/
|
|
2878
2882
|
subscribeToEmailList(requestParameters: SubscribeToEmailListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailListSubscribeResponse>;
|
|
2883
|
+
/**
|
|
2884
|
+
*
|
|
2885
|
+
* @summary Sunset email segment
|
|
2886
|
+
* @param {number} storefrontOid
|
|
2887
|
+
* @param {string} emailSegmentUuid
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
* @memberof StorefrontApiInterface
|
|
2891
|
+
*/
|
|
2892
|
+
sunsetEmailSegmentRaw(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
2893
|
+
/**
|
|
2894
|
+
* Sunset email segment
|
|
2895
|
+
*/
|
|
2896
|
+
sunsetEmailSegment(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
2879
2897
|
/**
|
|
2880
2898
|
* Remove favorite flag on screen recording
|
|
2881
2899
|
* @summary Remove favorite flag on screen recording
|
|
@@ -4503,6 +4521,14 @@ export declare class StorefrontApi extends runtime.BaseAPI implements Storefront
|
|
|
4503
4521
|
* Subscribe customers to email list
|
|
4504
4522
|
*/
|
|
4505
4523
|
subscribeToEmailList(requestParameters: SubscribeToEmailListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailListSubscribeResponse>;
|
|
4524
|
+
/**
|
|
4525
|
+
* Sunset email segment
|
|
4526
|
+
*/
|
|
4527
|
+
sunsetEmailSegmentRaw(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
4528
|
+
/**
|
|
4529
|
+
* Sunset email segment
|
|
4530
|
+
*/
|
|
4531
|
+
sunsetEmailSegment(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
4506
4532
|
/**
|
|
4507
4533
|
* Remove favorite flag on screen recording
|
|
4508
4534
|
* Remove favorite flag on screen recording
|
|
@@ -9638,6 +9638,67 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
9638
9638
|
});
|
|
9639
9639
|
});
|
|
9640
9640
|
};
|
|
9641
|
+
/**
|
|
9642
|
+
* Sunset email segment
|
|
9643
|
+
*/
|
|
9644
|
+
StorefrontApi.prototype.sunsetEmailSegmentRaw = function (requestParameters, initOverrides) {
|
|
9645
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9646
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
9647
|
+
return __generator(this, function (_c) {
|
|
9648
|
+
switch (_c.label) {
|
|
9649
|
+
case 0:
|
|
9650
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
9651
|
+
throw new runtime.RequiredError('storefrontOid', 'Required parameter requestParameters.storefrontOid was null or undefined when calling sunsetEmailSegment.');
|
|
9652
|
+
}
|
|
9653
|
+
if (requestParameters.emailSegmentUuid === null || requestParameters.emailSegmentUuid === undefined) {
|
|
9654
|
+
throw new runtime.RequiredError('emailSegmentUuid', 'Required parameter requestParameters.emailSegmentUuid was null or undefined when calling sunsetEmailSegment.');
|
|
9655
|
+
}
|
|
9656
|
+
queryParameters = {};
|
|
9657
|
+
headerParameters = {};
|
|
9658
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9659
|
+
headerParameters["x-ultracart-browser-key"] = this.configuration.apiKey("x-ultracart-browser-key"); // ultraCartBrowserApiKey authentication
|
|
9660
|
+
}
|
|
9661
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
9662
|
+
// oauth required
|
|
9663
|
+
_a = headerParameters;
|
|
9664
|
+
_b = "Authorization";
|
|
9665
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["storefront_write"])];
|
|
9666
|
+
case 1:
|
|
9667
|
+
// oauth required
|
|
9668
|
+
_a[_b] = _c.sent();
|
|
9669
|
+
_c.label = 2;
|
|
9670
|
+
case 2:
|
|
9671
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9672
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
9673
|
+
}
|
|
9674
|
+
return [4 /*yield*/, this.request({
|
|
9675
|
+
path: "/storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset".replace("{".concat("storefront_oid", "}"), encodeURIComponent(String(requestParameters.storefrontOid))).replace("{".concat("email_segment_uuid", "}"), encodeURIComponent(String(requestParameters.emailSegmentUuid))),
|
|
9676
|
+
method: 'PUT',
|
|
9677
|
+
headers: headerParameters,
|
|
9678
|
+
query: queryParameters,
|
|
9679
|
+
}, initOverrides)];
|
|
9680
|
+
case 3:
|
|
9681
|
+
response = _c.sent();
|
|
9682
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
9683
|
+
}
|
|
9684
|
+
});
|
|
9685
|
+
});
|
|
9686
|
+
};
|
|
9687
|
+
/**
|
|
9688
|
+
* Sunset email segment
|
|
9689
|
+
*/
|
|
9690
|
+
StorefrontApi.prototype.sunsetEmailSegment = function (requestParameters, initOverrides) {
|
|
9691
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9692
|
+
return __generator(this, function (_a) {
|
|
9693
|
+
switch (_a.label) {
|
|
9694
|
+
case 0: return [4 /*yield*/, this.sunsetEmailSegmentRaw(requestParameters, initOverrides)];
|
|
9695
|
+
case 1:
|
|
9696
|
+
_a.sent();
|
|
9697
|
+
return [2 /*return*/];
|
|
9698
|
+
}
|
|
9699
|
+
});
|
|
9700
|
+
});
|
|
9701
|
+
};
|
|
9641
9702
|
/**
|
|
9642
9703
|
* Remove favorite flag on screen recording
|
|
9643
9704
|
* Remove favorite flag on screen recording
|
|
@@ -70,6 +70,12 @@ export interface ConversationPbxMenu {
|
|
|
70
70
|
* @memberof ConversationPbxMenu
|
|
71
71
|
*/
|
|
72
72
|
say?: string;
|
|
73
|
+
/**
|
|
74
|
+
* say voice
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ConversationPbxMenu
|
|
77
|
+
*/
|
|
78
|
+
say_voice?: ConversationPbxMenuSayVoiceEnum;
|
|
73
79
|
/**
|
|
74
80
|
* The idle seconds before this menu times out
|
|
75
81
|
* @type {number}
|
|
@@ -77,6 +83,14 @@ export interface ConversationPbxMenu {
|
|
|
77
83
|
*/
|
|
78
84
|
timeout?: number;
|
|
79
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const ConversationPbxMenuSayVoiceEnum: {
|
|
90
|
+
readonly Man: "man";
|
|
91
|
+
readonly Woman: "woman";
|
|
92
|
+
};
|
|
93
|
+
export type ConversationPbxMenuSayVoiceEnum = typeof ConversationPbxMenuSayVoiceEnum[keyof typeof ConversationPbxMenuSayVoiceEnum];
|
|
80
94
|
export declare function ConversationPbxMenuFromJSON(json: any): ConversationPbxMenu;
|
|
81
95
|
export declare function ConversationPbxMenuFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxMenu;
|
|
82
96
|
export declare function ConversationPbxMenuToJSON(value?: ConversationPbxMenu | null): any;
|
|
@@ -13,9 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationPbxMenuToJSON = exports.ConversationPbxMenuFromJSONTyped = exports.ConversationPbxMenuFromJSON = void 0;
|
|
16
|
+
exports.ConversationPbxMenuToJSON = exports.ConversationPbxMenuFromJSONTyped = exports.ConversationPbxMenuFromJSON = exports.ConversationPbxMenuSayVoiceEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var ConversationPbxMenuMapping_1 = require("./ConversationPbxMenuMapping");
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
exports.ConversationPbxMenuSayVoiceEnum = {
|
|
23
|
+
Man: 'man',
|
|
24
|
+
Woman: 'woman'
|
|
25
|
+
};
|
|
19
26
|
function ConversationPbxMenuFromJSON(json) {
|
|
20
27
|
return ConversationPbxMenuFromJSONTyped(json, false);
|
|
21
28
|
}
|
|
@@ -34,6 +41,7 @@ function ConversationPbxMenuFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
41
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
35
42
|
'play_audio_uuid': !(0, runtime_1.exists)(json, 'play_audio_uuid') ? undefined : json['play_audio_uuid'],
|
|
36
43
|
'say': !(0, runtime_1.exists)(json, 'say') ? undefined : json['say'],
|
|
44
|
+
'say_voice': !(0, runtime_1.exists)(json, 'say_voice') ? undefined : json['say_voice'],
|
|
37
45
|
'timeout': !(0, runtime_1.exists)(json, 'timeout') ? undefined : json['timeout'],
|
|
38
46
|
};
|
|
39
47
|
}
|
|
@@ -55,6 +63,7 @@ function ConversationPbxMenuToJSON(value) {
|
|
|
55
63
|
'name': value.name,
|
|
56
64
|
'play_audio_uuid': value.play_audio_uuid,
|
|
57
65
|
'say': value.say,
|
|
66
|
+
'say_voice': value.say_voice,
|
|
58
67
|
'timeout': value.timeout,
|
|
59
68
|
};
|
|
60
69
|
}
|
|
@@ -56,7 +56,7 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof ConversationPbxVoicemailMailbox
|
|
58
58
|
*/
|
|
59
|
-
voicemail_followup_say_voice?:
|
|
59
|
+
voicemail_followup_say_voice?: ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum;
|
|
60
60
|
/**
|
|
61
61
|
* Voicemail mailbox id
|
|
62
62
|
* @type {string}
|
|
@@ -86,8 +86,16 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof ConversationPbxVoicemailMailbox
|
|
88
88
|
*/
|
|
89
|
-
voicemail_prompt_say_voice?:
|
|
89
|
+
voicemail_prompt_say_voice?: ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum: {
|
|
95
|
+
readonly Man: "man";
|
|
96
|
+
readonly Woman: "woman";
|
|
97
|
+
};
|
|
98
|
+
export type ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = typeof ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum[keyof typeof ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum];
|
|
91
99
|
/**
|
|
92
100
|
* @export
|
|
93
101
|
*/
|
|
@@ -96,6 +104,14 @@ export declare const ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum: {
|
|
|
96
104
|
readonly Shared: "shared";
|
|
97
105
|
};
|
|
98
106
|
export type ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = typeof ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum[keyof typeof ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum];
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export declare const ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum: {
|
|
111
|
+
readonly Man: "man";
|
|
112
|
+
readonly Woman: "woman";
|
|
113
|
+
};
|
|
114
|
+
export type ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = typeof ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum[keyof typeof ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum];
|
|
99
115
|
export declare function ConversationPbxVoicemailMailboxFromJSON(json: any): ConversationPbxVoicemailMailbox;
|
|
100
116
|
export declare function ConversationPbxVoicemailMailboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxVoicemailMailbox;
|
|
101
117
|
export declare function ConversationPbxVoicemailMailboxToJSON(value?: ConversationPbxVoicemailMailbox | null): any;
|
|
@@ -13,8 +13,15 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationPbxVoicemailMailboxToJSON = exports.ConversationPbxVoicemailMailboxFromJSONTyped = exports.ConversationPbxVoicemailMailboxFromJSON = exports.ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = void 0;
|
|
16
|
+
exports.ConversationPbxVoicemailMailboxToJSON = exports.ConversationPbxVoicemailMailboxFromJSONTyped = exports.ConversationPbxVoicemailMailboxFromJSON = exports.ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = exports.ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = exports.ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = {
|
|
22
|
+
Man: 'man',
|
|
23
|
+
Woman: 'woman'
|
|
24
|
+
};
|
|
18
25
|
/**
|
|
19
26
|
* @export
|
|
20
27
|
*/
|
|
@@ -22,6 +29,13 @@ exports.ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = {
|
|
|
22
29
|
Agent: 'agent',
|
|
23
30
|
Shared: 'shared'
|
|
24
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = {
|
|
36
|
+
Man: 'man',
|
|
37
|
+
Woman: 'woman'
|
|
38
|
+
};
|
|
25
39
|
function ConversationPbxVoicemailMailboxFromJSON(json) {
|
|
26
40
|
return ConversationPbxVoicemailMailboxFromJSONTyped(json, false);
|
|
27
41
|
}
|
package/dist/models/Twilio.d.ts
CHANGED
|
@@ -33,12 +33,6 @@ export interface Twilio {
|
|
|
33
33
|
* @memberof Twilio
|
|
34
34
|
*/
|
|
35
35
|
api_key_name?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Twilio
|
|
40
|
-
*/
|
|
41
|
-
api_key_secret?: string;
|
|
42
36
|
/**
|
|
43
37
|
*
|
|
44
38
|
* @type {string}
|
|
@@ -69,24 +63,6 @@ export interface Twilio {
|
|
|
69
63
|
* @memberof Twilio
|
|
70
64
|
*/
|
|
71
65
|
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
66
|
/**
|
|
91
67
|
*
|
|
92
68
|
* @type {string}
|
package/dist/models/Twilio.js
CHANGED
|
@@ -27,15 +27,11 @@ function TwilioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'account_sid': !(0, runtime_1.exists)(json, 'account_sid') ? undefined : json['account_sid'],
|
|
28
28
|
'api_key_id': !(0, runtime_1.exists)(json, 'api_key_id') ? undefined : json['api_key_id'],
|
|
29
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'],
|
|
31
30
|
'auth_token': !(0, runtime_1.exists)(json, 'auth_token') ? undefined : json['auth_token'],
|
|
32
31
|
'esp_twilio_uuid': !(0, runtime_1.exists)(json, 'esp_twilio_uuid') ? undefined : json['esp_twilio_uuid'],
|
|
33
32
|
'inbound_twiml_app_sid': !(0, runtime_1.exists)(json, 'inbound_twiml_app_sid') ? undefined : json['inbound_twiml_app_sid'],
|
|
34
33
|
'outbound_twiml_app_sid': !(0, runtime_1.exists)(json, 'outbound_twiml_app_sid') ? undefined : json['outbound_twiml_app_sid'],
|
|
35
34
|
'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
35
|
'twilio_workspace_sid': !(0, runtime_1.exists)(json, 'twilio_workspace_sid') ? undefined : json['twilio_workspace_sid'],
|
|
40
36
|
};
|
|
41
37
|
}
|
|
@@ -51,15 +47,11 @@ function TwilioToJSON(value) {
|
|
|
51
47
|
'account_sid': value.account_sid,
|
|
52
48
|
'api_key_id': value.api_key_id,
|
|
53
49
|
'api_key_name': value.api_key_name,
|
|
54
|
-
'api_key_secret': value.api_key_secret,
|
|
55
50
|
'auth_token': value.auth_token,
|
|
56
51
|
'esp_twilio_uuid': value.esp_twilio_uuid,
|
|
57
52
|
'inbound_twiml_app_sid': value.inbound_twiml_app_sid,
|
|
58
53
|
'outbound_twiml_app_sid': value.outbound_twiml_app_sid,
|
|
59
54
|
'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
55
|
'twilio_workspace_sid': value.twilio_workspace_sid,
|
|
64
56
|
};
|
|
65
57
|
}
|
package/package.json
CHANGED
|
@@ -1202,6 +1202,11 @@ export interface SubscribeToEmailListRequest {
|
|
|
1202
1202
|
customers: Array<EmailCustomer>;
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
|
+
export interface SunsetEmailSegmentRequest {
|
|
1206
|
+
storefrontOid: number;
|
|
1207
|
+
emailSegmentUuid: string;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1205
1210
|
export interface UnfavoriteScreenRecordingRequest {
|
|
1206
1211
|
storefrontOid: number;
|
|
1207
1212
|
screenRecordingUuid: string;
|
|
@@ -3788,6 +3793,22 @@ export interface StorefrontApiInterface {
|
|
|
3788
3793
|
*/
|
|
3789
3794
|
subscribeToEmailList(requestParameters: SubscribeToEmailListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailListSubscribeResponse>;
|
|
3790
3795
|
|
|
3796
|
+
/**
|
|
3797
|
+
*
|
|
3798
|
+
* @summary Sunset email segment
|
|
3799
|
+
* @param {number} storefrontOid
|
|
3800
|
+
* @param {string} emailSegmentUuid
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
* @memberof StorefrontApiInterface
|
|
3804
|
+
*/
|
|
3805
|
+
sunsetEmailSegmentRaw(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
3806
|
+
|
|
3807
|
+
/**
|
|
3808
|
+
* Sunset email segment
|
|
3809
|
+
*/
|
|
3810
|
+
sunsetEmailSegment(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
3811
|
+
|
|
3791
3812
|
/**
|
|
3792
3813
|
* Remove favorite flag on screen recording
|
|
3793
3814
|
* @summary Remove favorite flag on screen recording
|
|
@@ -11445,6 +11466,52 @@ export class StorefrontApi extends runtime.BaseAPI implements StorefrontApiInter
|
|
|
11445
11466
|
return await response.value();
|
|
11446
11467
|
}
|
|
11447
11468
|
|
|
11469
|
+
/**
|
|
11470
|
+
* Sunset email segment
|
|
11471
|
+
*/
|
|
11472
|
+
async sunsetEmailSegmentRaw(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
11473
|
+
if (requestParameters.storefrontOid === null || requestParameters.storefrontOid === undefined) {
|
|
11474
|
+
throw new runtime.RequiredError('storefrontOid','Required parameter requestParameters.storefrontOid was null or undefined when calling sunsetEmailSegment.');
|
|
11475
|
+
}
|
|
11476
|
+
|
|
11477
|
+
if (requestParameters.emailSegmentUuid === null || requestParameters.emailSegmentUuid === undefined) {
|
|
11478
|
+
throw new runtime.RequiredError('emailSegmentUuid','Required parameter requestParameters.emailSegmentUuid was null or undefined when calling sunsetEmailSegment.');
|
|
11479
|
+
}
|
|
11480
|
+
|
|
11481
|
+
const queryParameters: any = {};
|
|
11482
|
+
|
|
11483
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
11484
|
+
|
|
11485
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
11486
|
+
headerParameters["x-ultracart-browser-key"] = this.configuration.apiKey("x-ultracart-browser-key"); // ultraCartBrowserApiKey authentication
|
|
11487
|
+
}
|
|
11488
|
+
|
|
11489
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11490
|
+
// oauth required
|
|
11491
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["storefront_write"]);
|
|
11492
|
+
}
|
|
11493
|
+
|
|
11494
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
11495
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
11496
|
+
}
|
|
11497
|
+
|
|
11498
|
+
const response = await this.request({
|
|
11499
|
+
path: `/storefront/{storefront_oid}/email/segments/{email_segment_uuid}/sunset`.replace(`{${"storefront_oid"}}`, encodeURIComponent(String(requestParameters.storefrontOid))).replace(`{${"email_segment_uuid"}}`, encodeURIComponent(String(requestParameters.emailSegmentUuid))),
|
|
11500
|
+
method: 'PUT',
|
|
11501
|
+
headers: headerParameters,
|
|
11502
|
+
query: queryParameters,
|
|
11503
|
+
}, initOverrides);
|
|
11504
|
+
|
|
11505
|
+
return new runtime.VoidApiResponse(response);
|
|
11506
|
+
}
|
|
11507
|
+
|
|
11508
|
+
/**
|
|
11509
|
+
* Sunset email segment
|
|
11510
|
+
*/
|
|
11511
|
+
async sunsetEmailSegment(requestParameters: SunsetEmailSegmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
11512
|
+
await this.sunsetEmailSegmentRaw(requestParameters, initOverrides);
|
|
11513
|
+
}
|
|
11514
|
+
|
|
11448
11515
|
/**
|
|
11449
11516
|
* Remove favorite flag on screen recording
|
|
11450
11517
|
* Remove favorite flag on screen recording
|
|
@@ -80,6 +80,12 @@ export interface ConversationPbxMenu {
|
|
|
80
80
|
* @memberof ConversationPbxMenu
|
|
81
81
|
*/
|
|
82
82
|
say?: string;
|
|
83
|
+
/**
|
|
84
|
+
* say voice
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ConversationPbxMenu
|
|
87
|
+
*/
|
|
88
|
+
say_voice?: ConversationPbxMenuSayVoiceEnum;
|
|
83
89
|
/**
|
|
84
90
|
* The idle seconds before this menu times out
|
|
85
91
|
* @type {number}
|
|
@@ -88,6 +94,17 @@ export interface ConversationPbxMenu {
|
|
|
88
94
|
timeout?: number;
|
|
89
95
|
}
|
|
90
96
|
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const ConversationPbxMenuSayVoiceEnum = {
|
|
102
|
+
Man: 'man',
|
|
103
|
+
Woman: 'woman'
|
|
104
|
+
} as const;
|
|
105
|
+
export type ConversationPbxMenuSayVoiceEnum = typeof ConversationPbxMenuSayVoiceEnum[keyof typeof ConversationPbxMenuSayVoiceEnum];
|
|
106
|
+
|
|
107
|
+
|
|
91
108
|
export function ConversationPbxMenuFromJSON(json: any): ConversationPbxMenu {
|
|
92
109
|
return ConversationPbxMenuFromJSONTyped(json, false);
|
|
93
110
|
}
|
|
@@ -107,6 +124,7 @@ export function ConversationPbxMenuFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
107
124
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
108
125
|
'play_audio_uuid': !exists(json, 'play_audio_uuid') ? undefined : json['play_audio_uuid'],
|
|
109
126
|
'say': !exists(json, 'say') ? undefined : json['say'],
|
|
127
|
+
'say_voice': !exists(json, 'say_voice') ? undefined : json['say_voice'],
|
|
110
128
|
'timeout': !exists(json, 'timeout') ? undefined : json['timeout'],
|
|
111
129
|
};
|
|
112
130
|
}
|
|
@@ -129,6 +147,7 @@ export function ConversationPbxMenuToJSON(value?: ConversationPbxMenu | null): a
|
|
|
129
147
|
'name': value.name,
|
|
130
148
|
'play_audio_uuid': value.play_audio_uuid,
|
|
131
149
|
'say': value.say,
|
|
150
|
+
'say_voice': value.say_voice,
|
|
132
151
|
'timeout': value.timeout,
|
|
133
152
|
};
|
|
134
153
|
}
|
|
@@ -60,7 +60,7 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof ConversationPbxVoicemailMailbox
|
|
62
62
|
*/
|
|
63
|
-
voicemail_followup_say_voice?:
|
|
63
|
+
voicemail_followup_say_voice?: ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum;
|
|
64
64
|
/**
|
|
65
65
|
* Voicemail mailbox id
|
|
66
66
|
* @type {string}
|
|
@@ -90,10 +90,19 @@ export interface ConversationPbxVoicemailMailbox {
|
|
|
90
90
|
* @type {string}
|
|
91
91
|
* @memberof ConversationPbxVoicemailMailbox
|
|
92
92
|
*/
|
|
93
|
-
voicemail_prompt_say_voice?:
|
|
93
|
+
voicemail_prompt_say_voice?: ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = {
|
|
101
|
+
Man: 'man',
|
|
102
|
+
Woman: 'woman'
|
|
103
|
+
} as const;
|
|
104
|
+
export type ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum = typeof ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum[keyof typeof ConversationPbxVoicemailMailboxVoicemailFollowupSayVoiceEnum];
|
|
105
|
+
|
|
97
106
|
/**
|
|
98
107
|
* @export
|
|
99
108
|
*/
|
|
@@ -103,6 +112,15 @@ export const ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = {
|
|
|
103
112
|
} as const;
|
|
104
113
|
export type ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum = typeof ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum[keyof typeof ConversationPbxVoicemailMailboxVoicemailMailboxTypeEnum];
|
|
105
114
|
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = {
|
|
119
|
+
Man: 'man',
|
|
120
|
+
Woman: 'woman'
|
|
121
|
+
} as const;
|
|
122
|
+
export type ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum = typeof ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum[keyof typeof ConversationPbxVoicemailMailboxVoicemailPromptSayVoiceEnum];
|
|
123
|
+
|
|
106
124
|
|
|
107
125
|
export function ConversationPbxVoicemailMailboxFromJSON(json: any): ConversationPbxVoicemailMailbox {
|
|
108
126
|
return ConversationPbxVoicemailMailboxFromJSONTyped(json, false);
|
package/src/models/Twilio.ts
CHANGED
|
@@ -37,12 +37,6 @@ export interface Twilio {
|
|
|
37
37
|
* @memberof Twilio
|
|
38
38
|
*/
|
|
39
39
|
api_key_name?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Twilio
|
|
44
|
-
*/
|
|
45
|
-
api_key_secret?: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
@@ -73,24 +67,6 @@ export interface Twilio {
|
|
|
73
67
|
* @memberof Twilio
|
|
74
68
|
*/
|
|
75
69
|
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
70
|
/**
|
|
95
71
|
*
|
|
96
72
|
* @type {string}
|
|
@@ -112,15 +88,11 @@ export function TwilioFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tw
|
|
|
112
88
|
'account_sid': !exists(json, 'account_sid') ? undefined : json['account_sid'],
|
|
113
89
|
'api_key_id': !exists(json, 'api_key_id') ? undefined : json['api_key_id'],
|
|
114
90
|
'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'],
|
|
116
91
|
'auth_token': !exists(json, 'auth_token') ? undefined : json['auth_token'],
|
|
117
92
|
'esp_twilio_uuid': !exists(json, 'esp_twilio_uuid') ? undefined : json['esp_twilio_uuid'],
|
|
118
93
|
'inbound_twiml_app_sid': !exists(json, 'inbound_twiml_app_sid') ? undefined : json['inbound_twiml_app_sid'],
|
|
119
94
|
'outbound_twiml_app_sid': !exists(json, 'outbound_twiml_app_sid') ? undefined : json['outbound_twiml_app_sid'],
|
|
120
95
|
'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
96
|
'twilio_workspace_sid': !exists(json, 'twilio_workspace_sid') ? undefined : json['twilio_workspace_sid'],
|
|
125
97
|
};
|
|
126
98
|
}
|
|
@@ -137,15 +109,11 @@ export function TwilioToJSON(value?: Twilio | null): any {
|
|
|
137
109
|
'account_sid': value.account_sid,
|
|
138
110
|
'api_key_id': value.api_key_id,
|
|
139
111
|
'api_key_name': value.api_key_name,
|
|
140
|
-
'api_key_secret': value.api_key_secret,
|
|
141
112
|
'auth_token': value.auth_token,
|
|
142
113
|
'esp_twilio_uuid': value.esp_twilio_uuid,
|
|
143
114
|
'inbound_twiml_app_sid': value.inbound_twiml_app_sid,
|
|
144
115
|
'outbound_twiml_app_sid': value.outbound_twiml_app_sid,
|
|
145
116
|
'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
117
|
'twilio_workspace_sid': value.twilio_workspace_sid,
|
|
150
118
|
};
|
|
151
119
|
}
|