twilio 4.11.0 → 4.11.2
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/lib/rest/Intelligence.d.ts +4 -0
- package/lib/rest/Intelligence.js +8 -0
- package/lib/rest/IntelligenceBase.d.ts +13 -0
- package/lib/rest/IntelligenceBase.js +31 -0
- package/lib/rest/NumbersBase.d.ts +3 -0
- package/lib/rest/NumbersBase.js +5 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +6 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +3 -1
- package/lib/rest/api/v2010/account/conference/participant.js +2 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -0
- package/lib/rest/conversations/v1/addressConfiguration.js +4 -0
- package/lib/rest/conversations/v1/conversation.d.ts +18 -0
- package/lib/rest/conversations/v1/conversation.js +6 -0
- package/lib/rest/conversations/v1/service/conversation.d.ts +18 -0
- package/lib/rest/conversations/v1/service/conversation.js +6 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +10 -14
- package/lib/rest/flexApi/v1/assessments.js +6 -14
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +8 -12
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +4 -12
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +6 -6
- package/lib/rest/flexApi/v1/insightsConversations.js +2 -2
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +14 -14
- package/lib/rest/flexApi/v1/insightsQuestionnaires.js +10 -10
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +12 -12
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +8 -8
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +12 -12
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +8 -8
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +6 -6
- package/lib/rest/flexApi/v1/insightsSegments.js +2 -2
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +2 -2
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsSettingsComment.js +2 -2
- package/lib/rest/insights/v1/callSummaries.d.ts +24 -0
- package/lib/rest/insights/v1/callSummaries.js +8 -0
- package/lib/rest/intelligence/V2.d.ts +20 -0
- package/lib/rest/intelligence/V2.js +42 -0
- package/lib/rest/intelligence/v2/service.d.ts +378 -0
- package/lib/rest/intelligence/v2/service.js +300 -0
- package/lib/rest/intelligence/v2/transcript/media.d.ts +132 -0
- package/lib/rest/intelligence/v2/transcript/media.js +122 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +296 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.js +214 -0
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +182 -0
- package/lib/rest/intelligence/v2/transcript/sentence.js +136 -0
- package/lib/rest/intelligence/v2/transcript.d.ts +399 -0
- package/lib/rest/intelligence/v2/transcript.js +307 -0
- package/lib/rest/messaging/V1.d.ts +5 -0
- package/lib/rest/messaging/V1.js +8 -0
- package/lib/rest/messaging/v1/domainConfig.d.ts +16 -0
- package/lib/rest/messaging/v1/domainConfig.js +8 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +6 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.js +2 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.d.ts +91 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.js +112 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +6 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.js +2 -0
- package/lib/rest/numbers/V1.d.ts +15 -0
- package/lib/rest/numbers/V1.js +37 -0
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +112 -0
- package/lib/rest/numbers/v1/bulkEligibility.js +118 -0
- package/lib/rest/supersim/v1/fleet.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const IntelligenceBase_1 = __importDefault(require("./IntelligenceBase"));
|
|
6
|
+
class Intelligence extends IntelligenceBase_1.default {
|
|
7
|
+
}
|
|
8
|
+
module.exports = Intelligence;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Domain from "../base/Domain";
|
|
2
|
+
import V2 from "./intelligence/V2";
|
|
3
|
+
declare class IntelligenceBase extends Domain {
|
|
4
|
+
_v2?: V2;
|
|
5
|
+
/**
|
|
6
|
+
* Initialize intelligence domain
|
|
7
|
+
*
|
|
8
|
+
* @param twilio - The twilio client
|
|
9
|
+
*/
|
|
10
|
+
constructor(twilio: any);
|
|
11
|
+
get v2(): V2;
|
|
12
|
+
}
|
|
13
|
+
export = IntelligenceBase;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
const Domain_1 = __importDefault(require("../base/Domain"));
|
|
16
|
+
const V2_1 = __importDefault(require("./intelligence/V2"));
|
|
17
|
+
class IntelligenceBase extends Domain_1.default {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize intelligence domain
|
|
20
|
+
*
|
|
21
|
+
* @param twilio - The twilio client
|
|
22
|
+
*/
|
|
23
|
+
constructor(twilio) {
|
|
24
|
+
super(twilio, "https://intelligence.twilio.com");
|
|
25
|
+
}
|
|
26
|
+
get v2() {
|
|
27
|
+
this._v2 = this._v2 || new V2_1.default(this);
|
|
28
|
+
return this._v2;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
module.exports = IntelligenceBase;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import Domain from "../base/Domain";
|
|
2
|
+
import V1 from "./numbers/V1";
|
|
2
3
|
import V2 from "./numbers/V2";
|
|
3
4
|
declare class NumbersBase extends Domain {
|
|
5
|
+
_v1?: V1;
|
|
4
6
|
_v2?: V2;
|
|
5
7
|
/**
|
|
6
8
|
* Initialize numbers domain
|
|
@@ -8,6 +10,7 @@ declare class NumbersBase extends Domain {
|
|
|
8
10
|
* @param twilio - The twilio client
|
|
9
11
|
*/
|
|
10
12
|
constructor(twilio: any);
|
|
13
|
+
get v1(): V1;
|
|
11
14
|
get v2(): V2;
|
|
12
15
|
}
|
|
13
16
|
export = NumbersBase;
|
package/lib/rest/NumbersBase.js
CHANGED
|
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
const Domain_1 = __importDefault(require("../base/Domain"));
|
|
16
|
+
const V1_1 = __importDefault(require("./numbers/V1"));
|
|
16
17
|
const V2_1 = __importDefault(require("./numbers/V2"));
|
|
17
18
|
class NumbersBase extends Domain_1.default {
|
|
18
19
|
/**
|
|
@@ -23,6 +24,10 @@ class NumbersBase extends Domain_1.default {
|
|
|
23
24
|
constructor(twilio) {
|
|
24
25
|
super(twilio, "https://numbers.twilio.com");
|
|
25
26
|
}
|
|
27
|
+
get v1() {
|
|
28
|
+
this._v1 = this._v1 || new V1_1.default(this);
|
|
29
|
+
return this._v1;
|
|
30
|
+
}
|
|
26
31
|
get v2() {
|
|
27
32
|
this._v2 = this._v2 || new V2_1.default(this);
|
|
28
33
|
return this._v2;
|
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import Events from "./Events";
|
|
|
10
10
|
import FlexApi from "./FlexApi";
|
|
11
11
|
import FrontlineApi from "./FrontlineApi";
|
|
12
12
|
import Insights from "./Insights";
|
|
13
|
+
import Intelligence from "./Intelligence";
|
|
13
14
|
import IpMessaging from "./IpMessaging";
|
|
14
15
|
import Lookups from "./Lookups";
|
|
15
16
|
import Media from "./Media";
|
|
@@ -84,6 +85,8 @@ declare class Twilio extends Client {
|
|
|
84
85
|
_frontlineApi?: FrontlineApi;
|
|
85
86
|
/** (Twilio.Insights) - insights domain */
|
|
86
87
|
_insights?: Insights;
|
|
88
|
+
/** (Twilio.Intelligence) - intelligence domain */
|
|
89
|
+
_intelligence?: Intelligence;
|
|
87
90
|
/** (Twilio.IpMessaging) - ipMessaging domain */
|
|
88
91
|
_ipMessaging?: IpMessaging;
|
|
89
92
|
/** (Twilio.Lookups) - lookups domain */
|
|
@@ -166,6 +169,8 @@ declare class Twilio extends Client {
|
|
|
166
169
|
get frontlineApi(): FrontlineApi;
|
|
167
170
|
/** Getter for (Twilio.Insights) domain */
|
|
168
171
|
get insights(): Insights;
|
|
172
|
+
/** Getter for (Twilio.Intelligence) domain */
|
|
173
|
+
get intelligence(): Intelligence;
|
|
169
174
|
/** Getter for (Twilio.IpMessaging) domain */
|
|
170
175
|
get ipMessaging(): IpMessaging;
|
|
171
176
|
/** Getter for (Twilio.Lookups) domain */
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -43,6 +43,7 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
43
43
|
this.flexApi;
|
|
44
44
|
this.frontlineApi;
|
|
45
45
|
this.insights;
|
|
46
|
+
this.intelligence;
|
|
46
47
|
this.ipMessaging;
|
|
47
48
|
this.lookups;
|
|
48
49
|
this.media;
|
|
@@ -117,6 +118,11 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
117
118
|
get insights() {
|
|
118
119
|
return (this._insights ?? (this._insights = new (require("./Insights"))(this)));
|
|
119
120
|
}
|
|
121
|
+
/** Getter for (Twilio.Intelligence) domain */
|
|
122
|
+
get intelligence() {
|
|
123
|
+
return (this._intelligence ??
|
|
124
|
+
(this._intelligence = new (require("./Intelligence"))(this)));
|
|
125
|
+
}
|
|
120
126
|
/** Getter for (Twilio.IpMessaging) domain */
|
|
121
127
|
get ipMessaging() {
|
|
122
128
|
return (this._ipMessaging ??
|
|
@@ -71,7 +71,7 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
71
71
|
maxParticipants?: number;
|
|
72
72
|
/** Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
|
|
73
73
|
conferenceRecord?: string;
|
|
74
|
-
/** Whether to trim leading and trailing silence from
|
|
74
|
+
/** Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
|
|
75
75
|
conferenceTrim?: string;
|
|
76
76
|
/** The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. */
|
|
77
77
|
conferenceStatusCallback?: string;
|
|
@@ -129,6 +129,8 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
129
129
|
amdStatusCallback?: string;
|
|
130
130
|
/** The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
|
|
131
131
|
amdStatusCallbackMethod?: string;
|
|
132
|
+
/** Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. */
|
|
133
|
+
trim?: string;
|
|
132
134
|
}
|
|
133
135
|
/**
|
|
134
136
|
* Options to pass to each
|
|
@@ -317,6 +317,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
|
|
|
317
317
|
data["AmdStatusCallback"] = params["amdStatusCallback"];
|
|
318
318
|
if (params["amdStatusCallbackMethod"] !== undefined)
|
|
319
319
|
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
|
|
320
|
+
if (params["trim"] !== undefined)
|
|
321
|
+
data["Trim"] = params["trim"];
|
|
320
322
|
const headers = {};
|
|
321
323
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
322
324
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -55,6 +55,8 @@ export interface AddressConfigurationListInstanceCreateOptions {
|
|
|
55
55
|
"autoCreation.studioFlowSid"?: string;
|
|
56
56
|
/** For type `studio`, number of times to retry the webhook request */
|
|
57
57
|
"autoCreation.studioRetryCount"?: number;
|
|
58
|
+
/** An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. */
|
|
59
|
+
addressCountry?: string;
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
60
62
|
* Options to pass to each
|
|
@@ -167,6 +169,7 @@ interface AddressConfigurationResource {
|
|
|
167
169
|
date_created: Date;
|
|
168
170
|
date_updated: Date;
|
|
169
171
|
url: string;
|
|
172
|
+
address_country: string;
|
|
170
173
|
}
|
|
171
174
|
export declare class AddressConfigurationInstance {
|
|
172
175
|
protected _version: V1;
|
|
@@ -209,6 +212,10 @@ export declare class AddressConfigurationInstance {
|
|
|
209
212
|
* An absolute API resource URL for this address configuration.
|
|
210
213
|
*/
|
|
211
214
|
url: string;
|
|
215
|
+
/**
|
|
216
|
+
* An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
|
|
217
|
+
*/
|
|
218
|
+
addressCountry: string;
|
|
212
219
|
private get _proxy();
|
|
213
220
|
/**
|
|
214
221
|
* Remove a AddressConfigurationInstance
|
|
@@ -258,6 +265,7 @@ export declare class AddressConfigurationInstance {
|
|
|
258
265
|
dateCreated: Date;
|
|
259
266
|
dateUpdated: Date;
|
|
260
267
|
url: string;
|
|
268
|
+
addressCountry: string;
|
|
261
269
|
};
|
|
262
270
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
263
271
|
}
|
|
@@ -117,6 +117,7 @@ class AddressConfigurationInstance {
|
|
|
117
117
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
118
118
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
119
119
|
this.url = payload.url;
|
|
120
|
+
this.addressCountry = payload.address_country;
|
|
120
121
|
this._solution = { sid: sid || this.sid };
|
|
121
122
|
}
|
|
122
123
|
get _proxy() {
|
|
@@ -164,6 +165,7 @@ class AddressConfigurationInstance {
|
|
|
164
165
|
dateCreated: this.dateCreated,
|
|
165
166
|
dateUpdated: this.dateUpdated,
|
|
166
167
|
url: this.url,
|
|
168
|
+
addressCountry: this.addressCountry,
|
|
167
169
|
};
|
|
168
170
|
}
|
|
169
171
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -212,6 +214,8 @@ function AddressConfigurationListInstance(version) {
|
|
|
212
214
|
if (params["autoCreation.studioRetryCount"] !== undefined)
|
|
213
215
|
data["AutoCreation.StudioRetryCount"] =
|
|
214
216
|
params["autoCreation.studioRetryCount"];
|
|
217
|
+
if (params["addressCountry"] !== undefined)
|
|
218
|
+
data["AddressCountry"] = params["addressCountry"];
|
|
215
219
|
const headers = {};
|
|
216
220
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
217
221
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -69,6 +69,12 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
69
69
|
* Options to pass to each
|
|
70
70
|
*/
|
|
71
71
|
export interface ConversationListInstanceEachOptions {
|
|
72
|
+
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
|
|
73
|
+
startDate?: string;
|
|
74
|
+
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
|
|
75
|
+
endDate?: string;
|
|
76
|
+
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
77
|
+
state?: ConversationState;
|
|
72
78
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
73
79
|
pageSize?: number;
|
|
74
80
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -82,6 +88,12 @@ export interface ConversationListInstanceEachOptions {
|
|
|
82
88
|
* Options to pass to list
|
|
83
89
|
*/
|
|
84
90
|
export interface ConversationListInstanceOptions {
|
|
91
|
+
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
|
|
92
|
+
startDate?: string;
|
|
93
|
+
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
|
|
94
|
+
endDate?: string;
|
|
95
|
+
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
96
|
+
state?: ConversationState;
|
|
85
97
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
86
98
|
pageSize?: number;
|
|
87
99
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -91,6 +103,12 @@ export interface ConversationListInstanceOptions {
|
|
|
91
103
|
* Options to pass to page
|
|
92
104
|
*/
|
|
93
105
|
export interface ConversationListInstancePageOptions {
|
|
106
|
+
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
|
|
107
|
+
startDate?: string;
|
|
108
|
+
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
|
|
109
|
+
endDate?: string;
|
|
110
|
+
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
111
|
+
state?: ConversationState;
|
|
94
112
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
95
113
|
pageSize?: number;
|
|
96
114
|
/** Page Number, this value is simply for client state */
|
|
@@ -282,6 +282,12 @@ function ConversationListInstance(version) {
|
|
|
282
282
|
params = params || {};
|
|
283
283
|
}
|
|
284
284
|
let data = {};
|
|
285
|
+
if (params["startDate"] !== undefined)
|
|
286
|
+
data["StartDate"] = params["startDate"];
|
|
287
|
+
if (params["endDate"] !== undefined)
|
|
288
|
+
data["EndDate"] = params["endDate"];
|
|
289
|
+
if (params["state"] !== undefined)
|
|
290
|
+
data["State"] = params["state"];
|
|
285
291
|
if (params["pageSize"] !== undefined)
|
|
286
292
|
data["PageSize"] = params["pageSize"];
|
|
287
293
|
if (params.pageNumber !== undefined)
|
|
@@ -69,6 +69,12 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
69
69
|
* Options to pass to each
|
|
70
70
|
*/
|
|
71
71
|
export interface ConversationListInstanceEachOptions {
|
|
72
|
+
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
|
|
73
|
+
startDate?: string;
|
|
74
|
+
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
|
|
75
|
+
endDate?: string;
|
|
76
|
+
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
77
|
+
state?: ConversationState;
|
|
72
78
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
73
79
|
pageSize?: number;
|
|
74
80
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -82,6 +88,12 @@ export interface ConversationListInstanceEachOptions {
|
|
|
82
88
|
* Options to pass to list
|
|
83
89
|
*/
|
|
84
90
|
export interface ConversationListInstanceOptions {
|
|
91
|
+
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
|
|
92
|
+
startDate?: string;
|
|
93
|
+
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
|
|
94
|
+
endDate?: string;
|
|
95
|
+
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
96
|
+
state?: ConversationState;
|
|
85
97
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
86
98
|
pageSize?: number;
|
|
87
99
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -91,6 +103,12 @@ export interface ConversationListInstanceOptions {
|
|
|
91
103
|
* Options to pass to page
|
|
92
104
|
*/
|
|
93
105
|
export interface ConversationListInstancePageOptions {
|
|
106
|
+
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
|
|
107
|
+
startDate?: string;
|
|
108
|
+
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
|
|
109
|
+
endDate?: string;
|
|
110
|
+
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
|
|
111
|
+
state?: ConversationState;
|
|
94
112
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
95
113
|
pageSize?: number;
|
|
96
114
|
/** Page Number, this value is simply for client state */
|
|
@@ -290,6 +290,12 @@ function ConversationListInstance(version, chatServiceSid) {
|
|
|
290
290
|
params = params || {};
|
|
291
291
|
}
|
|
292
292
|
let data = {};
|
|
293
|
+
if (params["startDate"] !== undefined)
|
|
294
|
+
data["StartDate"] = params["startDate"];
|
|
295
|
+
if (params["endDate"] !== undefined)
|
|
296
|
+
data["EndDate"] = params["endDate"];
|
|
297
|
+
if (params["state"] !== undefined)
|
|
298
|
+
data["State"] = params["state"];
|
|
293
299
|
if (params["pageSize"] !== undefined)
|
|
294
300
|
data["PageSize"] = params["pageSize"];
|
|
295
301
|
if (params.pageNumber !== undefined)
|
|
@@ -13,8 +13,8 @@ export interface AssessmentsContextUpdateOptions {
|
|
|
13
13
|
answerText: string;
|
|
14
14
|
/** The id of the answer selected by user */
|
|
15
15
|
answerId: string;
|
|
16
|
-
/** The
|
|
17
|
-
|
|
16
|
+
/** The Authorization HTTP request header */
|
|
17
|
+
authorization?: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Options to pass to create a AssessmentsInstance
|
|
@@ -26,10 +26,6 @@ export interface AssessmentsListInstanceCreateOptions {
|
|
|
26
26
|
categoryName: string;
|
|
27
27
|
/** Segment Id of the conversation */
|
|
28
28
|
segmentId: string;
|
|
29
|
-
/** Name of the user assessing conversation */
|
|
30
|
-
userName: string;
|
|
31
|
-
/** Email of the user assessing conversation */
|
|
32
|
-
userEmail: string;
|
|
33
29
|
/** The id of the Agent */
|
|
34
30
|
agentId: string;
|
|
35
31
|
/** The offset of the conversation. */
|
|
@@ -44,15 +40,15 @@ export interface AssessmentsListInstanceCreateOptions {
|
|
|
44
40
|
answerId: string;
|
|
45
41
|
/** Questionnaire SID of the associated question */
|
|
46
42
|
questionnaireSid: string;
|
|
47
|
-
/** The
|
|
48
|
-
|
|
43
|
+
/** The Authorization HTTP request header */
|
|
44
|
+
authorization?: string;
|
|
49
45
|
}
|
|
50
46
|
/**
|
|
51
47
|
* Options to pass to each
|
|
52
48
|
*/
|
|
53
49
|
export interface AssessmentsListInstanceEachOptions {
|
|
54
|
-
/** The
|
|
55
|
-
|
|
50
|
+
/** The Authorization HTTP request header */
|
|
51
|
+
authorization?: string;
|
|
56
52
|
/** The id of the segment. */
|
|
57
53
|
segmentId?: string;
|
|
58
54
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -68,8 +64,8 @@ export interface AssessmentsListInstanceEachOptions {
|
|
|
68
64
|
* Options to pass to list
|
|
69
65
|
*/
|
|
70
66
|
export interface AssessmentsListInstanceOptions {
|
|
71
|
-
/** The
|
|
72
|
-
|
|
67
|
+
/** The Authorization HTTP request header */
|
|
68
|
+
authorization?: string;
|
|
73
69
|
/** The id of the segment. */
|
|
74
70
|
segmentId?: string;
|
|
75
71
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -81,8 +77,8 @@ export interface AssessmentsListInstanceOptions {
|
|
|
81
77
|
* Options to pass to page
|
|
82
78
|
*/
|
|
83
79
|
export interface AssessmentsListInstancePageOptions {
|
|
84
|
-
/** The
|
|
85
|
-
|
|
80
|
+
/** The Authorization HTTP request header */
|
|
81
|
+
authorization?: string;
|
|
86
82
|
/** The id of the segment. */
|
|
87
83
|
segmentId?: string;
|
|
88
84
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -50,8 +50,8 @@ class AssessmentsContextImpl {
|
|
|
50
50
|
data["AnswerId"] = params["answerId"];
|
|
51
51
|
const headers = {};
|
|
52
52
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
53
|
-
if (params["
|
|
54
|
-
headers["
|
|
53
|
+
if (params["authorization"] !== undefined)
|
|
54
|
+
headers["Authorization"] = params["authorization"];
|
|
55
55
|
const instance = this;
|
|
56
56
|
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
57
57
|
uri: instance._uri,
|
|
@@ -154,12 +154,6 @@ function AssessmentsListInstance(version) {
|
|
|
154
154
|
if (params["segmentId"] === null || params["segmentId"] === undefined) {
|
|
155
155
|
throw new Error("Required parameter \"params['segmentId']\" missing.");
|
|
156
156
|
}
|
|
157
|
-
if (params["userName"] === null || params["userName"] === undefined) {
|
|
158
|
-
throw new Error("Required parameter \"params['userName']\" missing.");
|
|
159
|
-
}
|
|
160
|
-
if (params["userEmail"] === null || params["userEmail"] === undefined) {
|
|
161
|
-
throw new Error("Required parameter \"params['userEmail']\" missing.");
|
|
162
|
-
}
|
|
163
157
|
if (params["agentId"] === null || params["agentId"] === undefined) {
|
|
164
158
|
throw new Error("Required parameter \"params['agentId']\" missing.");
|
|
165
159
|
}
|
|
@@ -186,8 +180,6 @@ function AssessmentsListInstance(version) {
|
|
|
186
180
|
data["CategorySid"] = params["categorySid"];
|
|
187
181
|
data["CategoryName"] = params["categoryName"];
|
|
188
182
|
data["SegmentId"] = params["segmentId"];
|
|
189
|
-
data["UserName"] = params["userName"];
|
|
190
|
-
data["UserEmail"] = params["userEmail"];
|
|
191
183
|
data["AgentId"] = params["agentId"];
|
|
192
184
|
data["Offset"] = params["offset"];
|
|
193
185
|
data["MetricId"] = params["metricId"];
|
|
@@ -197,8 +189,8 @@ function AssessmentsListInstance(version) {
|
|
|
197
189
|
data["QuestionnaireSid"] = params["questionnaireSid"];
|
|
198
190
|
const headers = {};
|
|
199
191
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
200
|
-
if (params["
|
|
201
|
-
headers["
|
|
192
|
+
if (params["authorization"] !== undefined)
|
|
193
|
+
headers["Authorization"] = params["authorization"];
|
|
202
194
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
203
195
|
uri: instance._uri,
|
|
204
196
|
method: "post",
|
|
@@ -227,8 +219,8 @@ function AssessmentsListInstance(version) {
|
|
|
227
219
|
if (params.pageToken !== undefined)
|
|
228
220
|
data["PageToken"] = params.pageToken;
|
|
229
221
|
const headers = {};
|
|
230
|
-
if (params["
|
|
231
|
-
headers["
|
|
222
|
+
if (params["authorization"] !== undefined)
|
|
223
|
+
headers["Authorization"] = params["authorization"];
|
|
232
224
|
let operationVersion = version, operationPromise = operationVersion.page({
|
|
233
225
|
uri: instance._uri,
|
|
234
226
|
method: "get",
|
|
@@ -15,23 +15,19 @@ export interface InsightsAssessmentsCommentListInstanceCreateOptions {
|
|
|
15
15
|
comment: string;
|
|
16
16
|
/** The id of the segment. */
|
|
17
17
|
segmentId: string;
|
|
18
|
-
/** The name of the user. */
|
|
19
|
-
userName: string;
|
|
20
|
-
/** The email id of the user. */
|
|
21
|
-
userEmail: string;
|
|
22
18
|
/** The id of the agent. */
|
|
23
19
|
agentId: string;
|
|
24
20
|
/** The offset */
|
|
25
21
|
offset: number;
|
|
26
|
-
/** The
|
|
27
|
-
|
|
22
|
+
/** The Authorization HTTP request header */
|
|
23
|
+
authorization?: string;
|
|
28
24
|
}
|
|
29
25
|
/**
|
|
30
26
|
* Options to pass to each
|
|
31
27
|
*/
|
|
32
28
|
export interface InsightsAssessmentsCommentListInstanceEachOptions {
|
|
33
|
-
/** The
|
|
34
|
-
|
|
29
|
+
/** The Authorization HTTP request header */
|
|
30
|
+
authorization?: string;
|
|
35
31
|
/** The id of the segment. */
|
|
36
32
|
segmentId?: string;
|
|
37
33
|
/** The id of the agent. */
|
|
@@ -49,8 +45,8 @@ export interface InsightsAssessmentsCommentListInstanceEachOptions {
|
|
|
49
45
|
* Options to pass to list
|
|
50
46
|
*/
|
|
51
47
|
export interface InsightsAssessmentsCommentListInstanceOptions {
|
|
52
|
-
/** The
|
|
53
|
-
|
|
48
|
+
/** The Authorization HTTP request header */
|
|
49
|
+
authorization?: string;
|
|
54
50
|
/** The id of the segment. */
|
|
55
51
|
segmentId?: string;
|
|
56
52
|
/** The id of the agent. */
|
|
@@ -64,8 +60,8 @@ export interface InsightsAssessmentsCommentListInstanceOptions {
|
|
|
64
60
|
* Options to pass to page
|
|
65
61
|
*/
|
|
66
62
|
export interface InsightsAssessmentsCommentListInstancePageOptions {
|
|
67
|
-
/** The
|
|
68
|
-
|
|
63
|
+
/** The Authorization HTTP request header */
|
|
64
|
+
authorization?: string;
|
|
69
65
|
/** The id of the segment. */
|
|
70
66
|
segmentId?: string;
|
|
71
67
|
/** The id of the agent. */
|
|
@@ -43,12 +43,6 @@ function InsightsAssessmentsCommentListInstance(version) {
|
|
|
43
43
|
if (params["segmentId"] === null || params["segmentId"] === undefined) {
|
|
44
44
|
throw new Error("Required parameter \"params['segmentId']\" missing.");
|
|
45
45
|
}
|
|
46
|
-
if (params["userName"] === null || params["userName"] === undefined) {
|
|
47
|
-
throw new Error("Required parameter \"params['userName']\" missing.");
|
|
48
|
-
}
|
|
49
|
-
if (params["userEmail"] === null || params["userEmail"] === undefined) {
|
|
50
|
-
throw new Error("Required parameter \"params['userEmail']\" missing.");
|
|
51
|
-
}
|
|
52
46
|
if (params["agentId"] === null || params["agentId"] === undefined) {
|
|
53
47
|
throw new Error("Required parameter \"params['agentId']\" missing.");
|
|
54
48
|
}
|
|
@@ -60,14 +54,12 @@ function InsightsAssessmentsCommentListInstance(version) {
|
|
|
60
54
|
data["CategoryName"] = params["categoryName"];
|
|
61
55
|
data["Comment"] = params["comment"];
|
|
62
56
|
data["SegmentId"] = params["segmentId"];
|
|
63
|
-
data["UserName"] = params["userName"];
|
|
64
|
-
data["UserEmail"] = params["userEmail"];
|
|
65
57
|
data["AgentId"] = params["agentId"];
|
|
66
58
|
data["Offset"] = params["offset"];
|
|
67
59
|
const headers = {};
|
|
68
60
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
69
|
-
if (params["
|
|
70
|
-
headers["
|
|
61
|
+
if (params["authorization"] !== undefined)
|
|
62
|
+
headers["Authorization"] = params["authorization"];
|
|
71
63
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
72
64
|
uri: instance._uri,
|
|
73
65
|
method: "post",
|
|
@@ -98,8 +90,8 @@ function InsightsAssessmentsCommentListInstance(version) {
|
|
|
98
90
|
if (params.pageToken !== undefined)
|
|
99
91
|
data["PageToken"] = params.pageToken;
|
|
100
92
|
const headers = {};
|
|
101
|
-
if (params["
|
|
102
|
-
headers["
|
|
93
|
+
if (params["authorization"] !== undefined)
|
|
94
|
+
headers["Authorization"] = params["authorization"];
|
|
103
95
|
let operationVersion = version, operationPromise = operationVersion.page({
|
|
104
96
|
uri: instance._uri,
|
|
105
97
|
method: "get",
|
|
@@ -7,8 +7,8 @@ import V1 from "../V1";
|
|
|
7
7
|
* Options to pass to each
|
|
8
8
|
*/
|
|
9
9
|
export interface InsightsConversationsListInstanceEachOptions {
|
|
10
|
-
/** The
|
|
11
|
-
|
|
10
|
+
/** The Authorization HTTP request header */
|
|
11
|
+
authorization?: string;
|
|
12
12
|
/** Unique Id of the segment for which conversation details needs to be fetched */
|
|
13
13
|
segmentId?: string;
|
|
14
14
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -24,8 +24,8 @@ export interface InsightsConversationsListInstanceEachOptions {
|
|
|
24
24
|
* Options to pass to list
|
|
25
25
|
*/
|
|
26
26
|
export interface InsightsConversationsListInstanceOptions {
|
|
27
|
-
/** The
|
|
28
|
-
|
|
27
|
+
/** The Authorization HTTP request header */
|
|
28
|
+
authorization?: string;
|
|
29
29
|
/** Unique Id of the segment for which conversation details needs to be fetched */
|
|
30
30
|
segmentId?: string;
|
|
31
31
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -37,8 +37,8 @@ export interface InsightsConversationsListInstanceOptions {
|
|
|
37
37
|
* Options to pass to page
|
|
38
38
|
*/
|
|
39
39
|
export interface InsightsConversationsListInstancePageOptions {
|
|
40
|
-
/** The
|
|
41
|
-
|
|
40
|
+
/** The Authorization HTTP request header */
|
|
41
|
+
authorization?: string;
|
|
42
42
|
/** Unique Id of the segment for which conversation details needs to be fetched */
|
|
43
43
|
segmentId?: string;
|
|
44
44
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -44,8 +44,8 @@ function InsightsConversationsListInstance(version) {
|
|
|
44
44
|
if (params.pageToken !== undefined)
|
|
45
45
|
data["PageToken"] = params.pageToken;
|
|
46
46
|
const headers = {};
|
|
47
|
-
if (params["
|
|
48
|
-
headers["
|
|
47
|
+
if (params["authorization"] !== undefined)
|
|
48
|
+
headers["Authorization"] = params["authorization"];
|
|
49
49
|
let operationVersion = version, operationPromise = operationVersion.page({
|
|
50
50
|
uri: instance._uri,
|
|
51
51
|
method: "get",
|