twilio 4.7.1 → 4.7.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/content/V1.d.ts +5 -0
- package/lib/rest/content/V1.js +7 -0
- package/lib/rest/content/v1/legacyContent.d.ts +202 -0
- package/lib/rest/content/v1/legacyContent.js +138 -0
- package/lib/rest/flexApi/V1.d.ts +15 -0
- package/lib/rest/flexApi/V1.js +22 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +255 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +198 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +357 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.js +280 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +111 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +68 -1
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +129 -6
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +78 -13
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +224 -0
- package/lib/rest/flexApi/v1/insightsSegments.js +154 -0
- package/lib/rest/flexApi/v1/insightsSession.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsSession.js +2 -2
- package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsUserRoles.js +2 -2
- package/lib/rest/lookups/v2/phoneNumber.d.ts +12 -0
- package/lib/rest/lookups/v2/phoneNumber.js +4 -0
- package/lib/rest/microvisor/V1.d.ts +10 -0
- package/lib/rest/microvisor/V1.js +14 -0
- package/lib/rest/microvisor/v1/accountConfig.d.ts +237 -0
- package/lib/rest/microvisor/v1/accountConfig.js +221 -0
- package/lib/rest/microvisor/v1/accountSecret.d.ts +231 -0
- package/lib/rest/microvisor/v1/accountSecret.js +219 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +245 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.js +229 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +239 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.js +227 -0
- package/lib/rest/microvisor/v1/device.d.ts +16 -0
- package/lib/rest/microvisor/v1/device.js +26 -0
- package/lib/rest/supersim/v1/smsCommand.d.ts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
|
+
import Response from "../../../http/response";
|
|
5
|
+
import V1 from "../V1";
|
|
6
|
+
/**
|
|
7
|
+
* Options to pass to create a InsightsAssessmentsCommentInstance
|
|
8
|
+
*/
|
|
9
|
+
export interface InsightsAssessmentsCommentListInstanceCreateOptions {
|
|
10
|
+
/** The ID of the category */
|
|
11
|
+
categoryId: string;
|
|
12
|
+
/** The name of the category */
|
|
13
|
+
categoryName: string;
|
|
14
|
+
/** The Assessment comment. */
|
|
15
|
+
comment: string;
|
|
16
|
+
/** The id of the segment. */
|
|
17
|
+
segmentId: string;
|
|
18
|
+
/** The name of the user. */
|
|
19
|
+
userName: string;
|
|
20
|
+
/** The email id of the user. */
|
|
21
|
+
userEmail: string;
|
|
22
|
+
/** The id of the agent. */
|
|
23
|
+
agentId: string;
|
|
24
|
+
/** The offset */
|
|
25
|
+
offset: number;
|
|
26
|
+
/** The Token HTTP request header */
|
|
27
|
+
token?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Options to pass to each
|
|
31
|
+
*/
|
|
32
|
+
export interface InsightsAssessmentsCommentListInstanceEachOptions {
|
|
33
|
+
/** The Token HTTP request header */
|
|
34
|
+
token?: string;
|
|
35
|
+
/** The id of the segment. */
|
|
36
|
+
segmentId?: string;
|
|
37
|
+
/** The id of the agent. */
|
|
38
|
+
agentId?: string;
|
|
39
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
42
|
+
callback?: (item: InsightsAssessmentsCommentInstance, done: (err?: Error) => void) => void;
|
|
43
|
+
/** Function to be called upon completion of streaming */
|
|
44
|
+
done?: Function;
|
|
45
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
46
|
+
limit?: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Options to pass to list
|
|
50
|
+
*/
|
|
51
|
+
export interface InsightsAssessmentsCommentListInstanceOptions {
|
|
52
|
+
/** The Token HTTP request header */
|
|
53
|
+
token?: string;
|
|
54
|
+
/** The id of the segment. */
|
|
55
|
+
segmentId?: string;
|
|
56
|
+
/** The id of the agent. */
|
|
57
|
+
agentId?: string;
|
|
58
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
59
|
+
pageSize?: number;
|
|
60
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
61
|
+
limit?: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Options to pass to page
|
|
65
|
+
*/
|
|
66
|
+
export interface InsightsAssessmentsCommentListInstancePageOptions {
|
|
67
|
+
/** The Token HTTP request header */
|
|
68
|
+
token?: string;
|
|
69
|
+
/** The id of the segment. */
|
|
70
|
+
segmentId?: string;
|
|
71
|
+
/** The id of the agent. */
|
|
72
|
+
agentId?: string;
|
|
73
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
74
|
+
pageSize?: number;
|
|
75
|
+
/** Page Number, this value is simply for client state */
|
|
76
|
+
pageNumber?: number;
|
|
77
|
+
/** PageToken provided by the API */
|
|
78
|
+
pageToken?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface InsightsAssessmentsCommentSolution {
|
|
81
|
+
}
|
|
82
|
+
export interface InsightsAssessmentsCommentListInstance {
|
|
83
|
+
_version: V1;
|
|
84
|
+
_solution: InsightsAssessmentsCommentSolution;
|
|
85
|
+
_uri: string;
|
|
86
|
+
/**
|
|
87
|
+
* Create a InsightsAssessmentsCommentInstance
|
|
88
|
+
*
|
|
89
|
+
* @param params - Parameter for request
|
|
90
|
+
* @param callback - Callback to handle processed record
|
|
91
|
+
*
|
|
92
|
+
* @returns Resolves to processed InsightsAssessmentsCommentInstance
|
|
93
|
+
*/
|
|
94
|
+
create(params: InsightsAssessmentsCommentListInstanceCreateOptions, callback?: (error: Error | null, item?: InsightsAssessmentsCommentInstance) => any): Promise<InsightsAssessmentsCommentInstance>;
|
|
95
|
+
/**
|
|
96
|
+
* Streams InsightsAssessmentsCommentInstance records from the API.
|
|
97
|
+
*
|
|
98
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
99
|
+
* is reached.
|
|
100
|
+
*
|
|
101
|
+
* The results are passed into the callback function, so this operation is memory
|
|
102
|
+
* efficient.
|
|
103
|
+
*
|
|
104
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
105
|
+
* function.
|
|
106
|
+
*
|
|
107
|
+
* @param { InsightsAssessmentsCommentListInstanceEachOptions } [params] - Options for request
|
|
108
|
+
* @param { function } [callback] - Function to process each record
|
|
109
|
+
*/
|
|
110
|
+
each(callback?: (item: InsightsAssessmentsCommentInstance, done: (err?: Error) => void) => void): void;
|
|
111
|
+
each(params: InsightsAssessmentsCommentListInstanceEachOptions, callback?: (item: InsightsAssessmentsCommentInstance, done: (err?: Error) => void) => void): void;
|
|
112
|
+
/**
|
|
113
|
+
* Retrieve a single target page of InsightsAssessmentsCommentInstance records from the API.
|
|
114
|
+
*
|
|
115
|
+
* The request is executed immediately.
|
|
116
|
+
*
|
|
117
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
118
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
119
|
+
*/
|
|
120
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: InsightsAssessmentsCommentPage) => any): Promise<InsightsAssessmentsCommentPage>;
|
|
121
|
+
/**
|
|
122
|
+
* Lists InsightsAssessmentsCommentInstance records from the API as a list.
|
|
123
|
+
*
|
|
124
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
125
|
+
* function.
|
|
126
|
+
*
|
|
127
|
+
* @param { InsightsAssessmentsCommentListInstanceOptions } [params] - Options for request
|
|
128
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
129
|
+
*/
|
|
130
|
+
list(callback?: (error: Error | null, items: InsightsAssessmentsCommentInstance[]) => any): Promise<InsightsAssessmentsCommentInstance[]>;
|
|
131
|
+
list(params: InsightsAssessmentsCommentListInstanceOptions, callback?: (error: Error | null, items: InsightsAssessmentsCommentInstance[]) => any): Promise<InsightsAssessmentsCommentInstance[]>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieve a single page of InsightsAssessmentsCommentInstance records from the API.
|
|
134
|
+
*
|
|
135
|
+
* The request is executed immediately.
|
|
136
|
+
*
|
|
137
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
138
|
+
* function.
|
|
139
|
+
*
|
|
140
|
+
* @param { InsightsAssessmentsCommentListInstancePageOptions } [params] - Options for request
|
|
141
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
142
|
+
*/
|
|
143
|
+
page(callback?: (error: Error | null, items: InsightsAssessmentsCommentPage) => any): Promise<InsightsAssessmentsCommentPage>;
|
|
144
|
+
page(params: InsightsAssessmentsCommentListInstancePageOptions, callback?: (error: Error | null, items: InsightsAssessmentsCommentPage) => any): Promise<InsightsAssessmentsCommentPage>;
|
|
145
|
+
/**
|
|
146
|
+
* Provide a user-friendly representation
|
|
147
|
+
*/
|
|
148
|
+
toJSON(): any;
|
|
149
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
150
|
+
}
|
|
151
|
+
export declare function InsightsAssessmentsCommentListInstance(version: V1): InsightsAssessmentsCommentListInstance;
|
|
152
|
+
interface InsightsAssessmentsCommentPayload extends TwilioResponsePayload {
|
|
153
|
+
comments: InsightsAssessmentsCommentResource[];
|
|
154
|
+
}
|
|
155
|
+
interface InsightsAssessmentsCommentResource {
|
|
156
|
+
account_sid: string;
|
|
157
|
+
assessment_id: string;
|
|
158
|
+
comment: any;
|
|
159
|
+
offset: number;
|
|
160
|
+
report: boolean;
|
|
161
|
+
weight: number;
|
|
162
|
+
agent_id: string;
|
|
163
|
+
segment_id: string;
|
|
164
|
+
user_name: string;
|
|
165
|
+
user_email: string;
|
|
166
|
+
timestamp: number;
|
|
167
|
+
url: string;
|
|
168
|
+
}
|
|
169
|
+
export declare class InsightsAssessmentsCommentInstance {
|
|
170
|
+
protected _version: V1;
|
|
171
|
+
constructor(_version: V1, payload: InsightsAssessmentsCommentResource);
|
|
172
|
+
/**
|
|
173
|
+
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.
|
|
174
|
+
*/
|
|
175
|
+
accountSid: string;
|
|
176
|
+
/**
|
|
177
|
+
* The unique ID of the assessment.
|
|
178
|
+
*/
|
|
179
|
+
assessmentId: string;
|
|
180
|
+
/**
|
|
181
|
+
* The comment added for assessment.
|
|
182
|
+
*/
|
|
183
|
+
comment: any;
|
|
184
|
+
/**
|
|
185
|
+
* The offset
|
|
186
|
+
*/
|
|
187
|
+
offset: number;
|
|
188
|
+
/**
|
|
189
|
+
* The flag indicating if this assessment is part of report
|
|
190
|
+
*/
|
|
191
|
+
report: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* The weightage given to this comment
|
|
194
|
+
*/
|
|
195
|
+
weight: number;
|
|
196
|
+
/**
|
|
197
|
+
* The id of the agent.
|
|
198
|
+
*/
|
|
199
|
+
agentId: string;
|
|
200
|
+
/**
|
|
201
|
+
* The id of the segment.
|
|
202
|
+
*/
|
|
203
|
+
segmentId: string;
|
|
204
|
+
/**
|
|
205
|
+
* The name of the user.
|
|
206
|
+
*/
|
|
207
|
+
userName: string;
|
|
208
|
+
/**
|
|
209
|
+
* The email id of the user.
|
|
210
|
+
*/
|
|
211
|
+
userEmail: string;
|
|
212
|
+
/**
|
|
213
|
+
* The timestamp when the record is inserted
|
|
214
|
+
*/
|
|
215
|
+
timestamp: number;
|
|
216
|
+
url: string;
|
|
217
|
+
/**
|
|
218
|
+
* Provide a user-friendly representation
|
|
219
|
+
*
|
|
220
|
+
* @returns Object
|
|
221
|
+
*/
|
|
222
|
+
toJSON(): {
|
|
223
|
+
accountSid: string;
|
|
224
|
+
assessmentId: string;
|
|
225
|
+
comment: any;
|
|
226
|
+
offset: number;
|
|
227
|
+
report: boolean;
|
|
228
|
+
weight: number;
|
|
229
|
+
agentId: string;
|
|
230
|
+
segmentId: string;
|
|
231
|
+
userName: string;
|
|
232
|
+
userEmail: string;
|
|
233
|
+
timestamp: number;
|
|
234
|
+
url: string;
|
|
235
|
+
};
|
|
236
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
237
|
+
}
|
|
238
|
+
export declare class InsightsAssessmentsCommentPage extends Page<V1, InsightsAssessmentsCommentPayload, InsightsAssessmentsCommentResource, InsightsAssessmentsCommentInstance> {
|
|
239
|
+
/**
|
|
240
|
+
* Initialize the InsightsAssessmentsCommentPage
|
|
241
|
+
*
|
|
242
|
+
* @param version - Version of the resource
|
|
243
|
+
* @param response - Response from the API
|
|
244
|
+
* @param solution - Path solution
|
|
245
|
+
*/
|
|
246
|
+
constructor(version: V1, response: Response<string>, solution: InsightsAssessmentsCommentSolution);
|
|
247
|
+
/**
|
|
248
|
+
* Build an instance of InsightsAssessmentsCommentInstance
|
|
249
|
+
*
|
|
250
|
+
* @param payload - Payload response from the API
|
|
251
|
+
*/
|
|
252
|
+
getInstance(payload: InsightsAssessmentsCommentResource): InsightsAssessmentsCommentInstance;
|
|
253
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
254
|
+
}
|
|
255
|
+
export {};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Flex
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.InsightsAssessmentsCommentPage = exports.InsightsAssessmentsCommentInstance = exports.InsightsAssessmentsCommentListInstance = void 0;
|
|
20
|
+
const util_1 = require("util");
|
|
21
|
+
const Page_1 = __importDefault(require("../../../base/Page"));
|
|
22
|
+
const deserialize = require("../../../base/deserialize");
|
|
23
|
+
const serialize = require("../../../base/serialize");
|
|
24
|
+
function InsightsAssessmentsCommentListInstance(version) {
|
|
25
|
+
const instance = {};
|
|
26
|
+
instance._version = version;
|
|
27
|
+
instance._solution = {};
|
|
28
|
+
instance._uri = `/Insights/QM/Assessments/Comments`;
|
|
29
|
+
instance.create = function create(params, callback) {
|
|
30
|
+
if (params === null || params === undefined) {
|
|
31
|
+
throw new Error('Required parameter "params" missing.');
|
|
32
|
+
}
|
|
33
|
+
if (params["categoryId"] === null || params["categoryId"] === undefined) {
|
|
34
|
+
throw new Error("Required parameter \"params['categoryId']\" missing.");
|
|
35
|
+
}
|
|
36
|
+
if (params["categoryName"] === null ||
|
|
37
|
+
params["categoryName"] === undefined) {
|
|
38
|
+
throw new Error("Required parameter \"params['categoryName']\" missing.");
|
|
39
|
+
}
|
|
40
|
+
if (params["comment"] === null || params["comment"] === undefined) {
|
|
41
|
+
throw new Error("Required parameter \"params['comment']\" missing.");
|
|
42
|
+
}
|
|
43
|
+
if (params["segmentId"] === null || params["segmentId"] === undefined) {
|
|
44
|
+
throw new Error("Required parameter \"params['segmentId']\" missing.");
|
|
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
|
+
if (params["agentId"] === null || params["agentId"] === undefined) {
|
|
53
|
+
throw new Error("Required parameter \"params['agentId']\" missing.");
|
|
54
|
+
}
|
|
55
|
+
if (params["offset"] === null || params["offset"] === undefined) {
|
|
56
|
+
throw new Error("Required parameter \"params['offset']\" missing.");
|
|
57
|
+
}
|
|
58
|
+
let data = {};
|
|
59
|
+
data["CategoryId"] = params["categoryId"];
|
|
60
|
+
data["CategoryName"] = params["categoryName"];
|
|
61
|
+
data["Comment"] = params["comment"];
|
|
62
|
+
data["SegmentId"] = params["segmentId"];
|
|
63
|
+
data["UserName"] = params["userName"];
|
|
64
|
+
data["UserEmail"] = params["userEmail"];
|
|
65
|
+
data["AgentId"] = params["agentId"];
|
|
66
|
+
data["Offset"] = params["offset"];
|
|
67
|
+
const headers = {};
|
|
68
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
69
|
+
if (params["token"] !== undefined)
|
|
70
|
+
headers["Token"] = params["token"];
|
|
71
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
72
|
+
uri: instance._uri,
|
|
73
|
+
method: "post",
|
|
74
|
+
data,
|
|
75
|
+
headers,
|
|
76
|
+
});
|
|
77
|
+
operationPromise = operationPromise.then((payload) => new InsightsAssessmentsCommentInstance(operationVersion, payload));
|
|
78
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
79
|
+
return operationPromise;
|
|
80
|
+
};
|
|
81
|
+
instance.page = function page(params, callback) {
|
|
82
|
+
if (params instanceof Function) {
|
|
83
|
+
callback = params;
|
|
84
|
+
params = {};
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
params = params || {};
|
|
88
|
+
}
|
|
89
|
+
let data = {};
|
|
90
|
+
if (params["segmentId"] !== undefined)
|
|
91
|
+
data["SegmentId"] = params["segmentId"];
|
|
92
|
+
if (params["agentId"] !== undefined)
|
|
93
|
+
data["AgentId"] = params["agentId"];
|
|
94
|
+
if (params["pageSize"] !== undefined)
|
|
95
|
+
data["PageSize"] = params["pageSize"];
|
|
96
|
+
if (params.pageNumber !== undefined)
|
|
97
|
+
data["Page"] = params.pageNumber;
|
|
98
|
+
if (params.pageToken !== undefined)
|
|
99
|
+
data["PageToken"] = params.pageToken;
|
|
100
|
+
const headers = {};
|
|
101
|
+
if (params["token"] !== undefined)
|
|
102
|
+
headers["Token"] = params["token"];
|
|
103
|
+
let operationVersion = version, operationPromise = operationVersion.page({
|
|
104
|
+
uri: instance._uri,
|
|
105
|
+
method: "get",
|
|
106
|
+
params: data,
|
|
107
|
+
headers,
|
|
108
|
+
});
|
|
109
|
+
operationPromise = operationPromise.then((payload) => new InsightsAssessmentsCommentPage(operationVersion, payload, instance._solution));
|
|
110
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
111
|
+
return operationPromise;
|
|
112
|
+
};
|
|
113
|
+
instance.each = instance._version.each;
|
|
114
|
+
instance.list = instance._version.list;
|
|
115
|
+
instance.getPage = function getPage(targetUrl, callback) {
|
|
116
|
+
const operationPromise = instance._version._domain.twilio.request({
|
|
117
|
+
method: "get",
|
|
118
|
+
uri: targetUrl,
|
|
119
|
+
});
|
|
120
|
+
let pagePromise = operationPromise.then((payload) => new InsightsAssessmentsCommentPage(instance._version, payload, instance._solution));
|
|
121
|
+
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
122
|
+
return pagePromise;
|
|
123
|
+
};
|
|
124
|
+
instance.toJSON = function toJSON() {
|
|
125
|
+
return instance._solution;
|
|
126
|
+
};
|
|
127
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
128
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
129
|
+
};
|
|
130
|
+
return instance;
|
|
131
|
+
}
|
|
132
|
+
exports.InsightsAssessmentsCommentListInstance = InsightsAssessmentsCommentListInstance;
|
|
133
|
+
class InsightsAssessmentsCommentInstance {
|
|
134
|
+
constructor(_version, payload) {
|
|
135
|
+
this._version = _version;
|
|
136
|
+
this.accountSid = payload.account_sid;
|
|
137
|
+
this.assessmentId = payload.assessment_id;
|
|
138
|
+
this.comment = payload.comment;
|
|
139
|
+
this.offset = payload.offset;
|
|
140
|
+
this.report = payload.report;
|
|
141
|
+
this.weight = payload.weight;
|
|
142
|
+
this.agentId = payload.agent_id;
|
|
143
|
+
this.segmentId = payload.segment_id;
|
|
144
|
+
this.userName = payload.user_name;
|
|
145
|
+
this.userEmail = payload.user_email;
|
|
146
|
+
this.timestamp = payload.timestamp;
|
|
147
|
+
this.url = payload.url;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Provide a user-friendly representation
|
|
151
|
+
*
|
|
152
|
+
* @returns Object
|
|
153
|
+
*/
|
|
154
|
+
toJSON() {
|
|
155
|
+
return {
|
|
156
|
+
accountSid: this.accountSid,
|
|
157
|
+
assessmentId: this.assessmentId,
|
|
158
|
+
comment: this.comment,
|
|
159
|
+
offset: this.offset,
|
|
160
|
+
report: this.report,
|
|
161
|
+
weight: this.weight,
|
|
162
|
+
agentId: this.agentId,
|
|
163
|
+
segmentId: this.segmentId,
|
|
164
|
+
userName: this.userName,
|
|
165
|
+
userEmail: this.userEmail,
|
|
166
|
+
timestamp: this.timestamp,
|
|
167
|
+
url: this.url,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
[util_1.inspect.custom](_depth, options) {
|
|
171
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
exports.InsightsAssessmentsCommentInstance = InsightsAssessmentsCommentInstance;
|
|
175
|
+
class InsightsAssessmentsCommentPage extends Page_1.default {
|
|
176
|
+
/**
|
|
177
|
+
* Initialize the InsightsAssessmentsCommentPage
|
|
178
|
+
*
|
|
179
|
+
* @param version - Version of the resource
|
|
180
|
+
* @param response - Response from the API
|
|
181
|
+
* @param solution - Path solution
|
|
182
|
+
*/
|
|
183
|
+
constructor(version, response, solution) {
|
|
184
|
+
super(version, response, solution);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Build an instance of InsightsAssessmentsCommentInstance
|
|
188
|
+
*
|
|
189
|
+
* @param payload - Payload response from the API
|
|
190
|
+
*/
|
|
191
|
+
getInstance(payload) {
|
|
192
|
+
return new InsightsAssessmentsCommentInstance(this._version, payload);
|
|
193
|
+
}
|
|
194
|
+
[util_1.inspect.custom](depth, options) {
|
|
195
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.InsightsAssessmentsCommentPage = InsightsAssessmentsCommentPage;
|