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
package/lib/rest/content/V1.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ContentBase from "../ContentBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { ContentListInstance } from "./v1/content";
|
|
4
|
+
import { LegacyContentListInstance } from "./v1/legacyContent";
|
|
4
5
|
export default class V1 extends Version {
|
|
5
6
|
/**
|
|
6
7
|
* Initialize the V1 version of Content
|
|
@@ -10,6 +11,10 @@ export default class V1 extends Version {
|
|
|
10
11
|
constructor(domain: ContentBase);
|
|
11
12
|
/** contents - { Twilio.Content.V1.ContentListInstance } resource */
|
|
12
13
|
protected _contents?: ContentListInstance;
|
|
14
|
+
/** legacyContents - { Twilio.Content.V1.LegacyContentListInstance } resource */
|
|
15
|
+
protected _legacyContents?: LegacyContentListInstance;
|
|
13
16
|
/** Getter for contents resource */
|
|
14
17
|
get contents(): ContentListInstance;
|
|
18
|
+
/** Getter for legacyContents resource */
|
|
19
|
+
get legacyContents(): LegacyContentListInstance;
|
|
15
20
|
}
|
package/lib/rest/content/V1.js
CHANGED
|
@@ -18,6 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const content_1 = require("./v1/content");
|
|
21
|
+
const legacyContent_1 = require("./v1/legacyContent");
|
|
21
22
|
class V1 extends Version_1.default {
|
|
22
23
|
/**
|
|
23
24
|
* Initialize the V1 version of Content
|
|
@@ -32,5 +33,11 @@ class V1 extends Version_1.default {
|
|
|
32
33
|
this._contents = this._contents || (0, content_1.ContentListInstance)(this);
|
|
33
34
|
return this._contents;
|
|
34
35
|
}
|
|
36
|
+
/** Getter for legacyContents resource */
|
|
37
|
+
get legacyContents() {
|
|
38
|
+
this._legacyContents =
|
|
39
|
+
this._legacyContents || (0, legacyContent_1.LegacyContentListInstance)(this);
|
|
40
|
+
return this._legacyContents;
|
|
41
|
+
}
|
|
35
42
|
}
|
|
36
43
|
exports.default = V1;
|
|
@@ -0,0 +1,202 @@
|
|
|
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 each
|
|
8
|
+
*/
|
|
9
|
+
export interface LegacyContentListInstanceEachOptions {
|
|
10
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
13
|
+
callback?: (item: LegacyContentInstance, done: (err?: Error) => void) => void;
|
|
14
|
+
/** Function to be called upon completion of streaming */
|
|
15
|
+
done?: Function;
|
|
16
|
+
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Options to pass to list
|
|
21
|
+
*/
|
|
22
|
+
export interface LegacyContentListInstanceOptions {
|
|
23
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
26
|
+
limit?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Options to pass to page
|
|
30
|
+
*/
|
|
31
|
+
export interface LegacyContentListInstancePageOptions {
|
|
32
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
/** Page Number, this value is simply for client state */
|
|
35
|
+
pageNumber?: number;
|
|
36
|
+
/** PageToken provided by the API */
|
|
37
|
+
pageToken?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface LegacyContentSolution {
|
|
40
|
+
}
|
|
41
|
+
export interface LegacyContentListInstance {
|
|
42
|
+
_version: V1;
|
|
43
|
+
_solution: LegacyContentSolution;
|
|
44
|
+
_uri: string;
|
|
45
|
+
/**
|
|
46
|
+
* Streams LegacyContentInstance records from the API.
|
|
47
|
+
*
|
|
48
|
+
* This operation lazily loads records as efficiently as possible until the limit
|
|
49
|
+
* is reached.
|
|
50
|
+
*
|
|
51
|
+
* The results are passed into the callback function, so this operation is memory
|
|
52
|
+
* efficient.
|
|
53
|
+
*
|
|
54
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
55
|
+
* function.
|
|
56
|
+
*
|
|
57
|
+
* @param { LegacyContentListInstanceEachOptions } [params] - Options for request
|
|
58
|
+
* @param { function } [callback] - Function to process each record
|
|
59
|
+
*/
|
|
60
|
+
each(callback?: (item: LegacyContentInstance, done: (err?: Error) => void) => void): void;
|
|
61
|
+
each(params: LegacyContentListInstanceEachOptions, callback?: (item: LegacyContentInstance, done: (err?: Error) => void) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve a single target page of LegacyContentInstance records from the API.
|
|
64
|
+
*
|
|
65
|
+
* The request is executed immediately.
|
|
66
|
+
*
|
|
67
|
+
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
68
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
69
|
+
*/
|
|
70
|
+
getPage(targetUrl: string, callback?: (error: Error | null, items: LegacyContentPage) => any): Promise<LegacyContentPage>;
|
|
71
|
+
/**
|
|
72
|
+
* Lists LegacyContentInstance records from the API as a list.
|
|
73
|
+
*
|
|
74
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
75
|
+
* function.
|
|
76
|
+
*
|
|
77
|
+
* @param { LegacyContentListInstanceOptions } [params] - Options for request
|
|
78
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
79
|
+
*/
|
|
80
|
+
list(callback?: (error: Error | null, items: LegacyContentInstance[]) => any): Promise<LegacyContentInstance[]>;
|
|
81
|
+
list(params: LegacyContentListInstanceOptions, callback?: (error: Error | null, items: LegacyContentInstance[]) => any): Promise<LegacyContentInstance[]>;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieve a single page of LegacyContentInstance records from the API.
|
|
84
|
+
*
|
|
85
|
+
* The request is executed immediately.
|
|
86
|
+
*
|
|
87
|
+
* If a function is passed as the first argument, it will be used as the callback
|
|
88
|
+
* function.
|
|
89
|
+
*
|
|
90
|
+
* @param { LegacyContentListInstancePageOptions } [params] - Options for request
|
|
91
|
+
* @param { function } [callback] - Callback to handle list of records
|
|
92
|
+
*/
|
|
93
|
+
page(callback?: (error: Error | null, items: LegacyContentPage) => any): Promise<LegacyContentPage>;
|
|
94
|
+
page(params: LegacyContentListInstancePageOptions, callback?: (error: Error | null, items: LegacyContentPage) => any): Promise<LegacyContentPage>;
|
|
95
|
+
/**
|
|
96
|
+
* Provide a user-friendly representation
|
|
97
|
+
*/
|
|
98
|
+
toJSON(): any;
|
|
99
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
100
|
+
}
|
|
101
|
+
export declare function LegacyContentListInstance(version: V1): LegacyContentListInstance;
|
|
102
|
+
interface LegacyContentPayload extends TwilioResponsePayload {
|
|
103
|
+
contents: LegacyContentResource[];
|
|
104
|
+
}
|
|
105
|
+
interface LegacyContentResource {
|
|
106
|
+
date_created: Date;
|
|
107
|
+
date_updated: Date;
|
|
108
|
+
sid: string;
|
|
109
|
+
account_sid: string;
|
|
110
|
+
friendly_name: string;
|
|
111
|
+
language: string;
|
|
112
|
+
variables: any;
|
|
113
|
+
types: any;
|
|
114
|
+
legacy_template_name: string;
|
|
115
|
+
legacy_body: string;
|
|
116
|
+
url: string;
|
|
117
|
+
}
|
|
118
|
+
export declare class LegacyContentInstance {
|
|
119
|
+
protected _version: V1;
|
|
120
|
+
constructor(_version: V1, payload: LegacyContentResource);
|
|
121
|
+
/**
|
|
122
|
+
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
123
|
+
*/
|
|
124
|
+
dateCreated: Date;
|
|
125
|
+
/**
|
|
126
|
+
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
127
|
+
*/
|
|
128
|
+
dateUpdated: Date;
|
|
129
|
+
/**
|
|
130
|
+
* The unique string that that we created to identify the Content resource.
|
|
131
|
+
*/
|
|
132
|
+
sid: string;
|
|
133
|
+
/**
|
|
134
|
+
* The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
|
|
135
|
+
*/
|
|
136
|
+
accountSid: string;
|
|
137
|
+
/**
|
|
138
|
+
* A string name used to describe the Content resource. Not visible to the end recipient.
|
|
139
|
+
*/
|
|
140
|
+
friendlyName: string;
|
|
141
|
+
/**
|
|
142
|
+
* Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
|
|
143
|
+
*/
|
|
144
|
+
language: string;
|
|
145
|
+
/**
|
|
146
|
+
* Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
|
|
147
|
+
*/
|
|
148
|
+
variables: any;
|
|
149
|
+
/**
|
|
150
|
+
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
151
|
+
*/
|
|
152
|
+
types: any;
|
|
153
|
+
/**
|
|
154
|
+
* The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed
|
|
155
|
+
*/
|
|
156
|
+
legacyTemplateName: string;
|
|
157
|
+
/**
|
|
158
|
+
* The string body field of the legacy content template associated with this Content resource
|
|
159
|
+
*/
|
|
160
|
+
legacyBody: string;
|
|
161
|
+
/**
|
|
162
|
+
* The URL of the resource, relative to `https://content.twilio.com`.
|
|
163
|
+
*/
|
|
164
|
+
url: string;
|
|
165
|
+
/**
|
|
166
|
+
* Provide a user-friendly representation
|
|
167
|
+
*
|
|
168
|
+
* @returns Object
|
|
169
|
+
*/
|
|
170
|
+
toJSON(): {
|
|
171
|
+
dateCreated: Date;
|
|
172
|
+
dateUpdated: Date;
|
|
173
|
+
sid: string;
|
|
174
|
+
accountSid: string;
|
|
175
|
+
friendlyName: string;
|
|
176
|
+
language: string;
|
|
177
|
+
variables: any;
|
|
178
|
+
types: any;
|
|
179
|
+
legacyTemplateName: string;
|
|
180
|
+
legacyBody: string;
|
|
181
|
+
url: string;
|
|
182
|
+
};
|
|
183
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
184
|
+
}
|
|
185
|
+
export declare class LegacyContentPage extends Page<V1, LegacyContentPayload, LegacyContentResource, LegacyContentInstance> {
|
|
186
|
+
/**
|
|
187
|
+
* Initialize the LegacyContentPage
|
|
188
|
+
*
|
|
189
|
+
* @param version - Version of the resource
|
|
190
|
+
* @param response - Response from the API
|
|
191
|
+
* @param solution - Path solution
|
|
192
|
+
*/
|
|
193
|
+
constructor(version: V1, response: Response<string>, solution: LegacyContentSolution);
|
|
194
|
+
/**
|
|
195
|
+
* Build an instance of LegacyContentInstance
|
|
196
|
+
*
|
|
197
|
+
* @param payload - Payload response from the API
|
|
198
|
+
*/
|
|
199
|
+
getInstance(payload: LegacyContentResource): LegacyContentInstance;
|
|
200
|
+
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
201
|
+
}
|
|
202
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Content
|
|
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.LegacyContentPage = exports.LegacyContentInstance = exports.LegacyContentListInstance = 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 LegacyContentListInstance(version) {
|
|
25
|
+
const instance = {};
|
|
26
|
+
instance._version = version;
|
|
27
|
+
instance._solution = {};
|
|
28
|
+
instance._uri = `/LegacyContent`;
|
|
29
|
+
instance.page = function page(params, callback) {
|
|
30
|
+
if (params instanceof Function) {
|
|
31
|
+
callback = params;
|
|
32
|
+
params = {};
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
params = params || {};
|
|
36
|
+
}
|
|
37
|
+
let data = {};
|
|
38
|
+
if (params["pageSize"] !== undefined)
|
|
39
|
+
data["PageSize"] = params["pageSize"];
|
|
40
|
+
if (params.pageNumber !== undefined)
|
|
41
|
+
data["Page"] = params.pageNumber;
|
|
42
|
+
if (params.pageToken !== undefined)
|
|
43
|
+
data["PageToken"] = params.pageToken;
|
|
44
|
+
const headers = {};
|
|
45
|
+
let operationVersion = version, operationPromise = operationVersion.page({
|
|
46
|
+
uri: instance._uri,
|
|
47
|
+
method: "get",
|
|
48
|
+
params: data,
|
|
49
|
+
headers,
|
|
50
|
+
});
|
|
51
|
+
operationPromise = operationPromise.then((payload) => new LegacyContentPage(operationVersion, payload, instance._solution));
|
|
52
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
53
|
+
return operationPromise;
|
|
54
|
+
};
|
|
55
|
+
instance.each = instance._version.each;
|
|
56
|
+
instance.list = instance._version.list;
|
|
57
|
+
instance.getPage = function getPage(targetUrl, callback) {
|
|
58
|
+
const operationPromise = instance._version._domain.twilio.request({
|
|
59
|
+
method: "get",
|
|
60
|
+
uri: targetUrl,
|
|
61
|
+
});
|
|
62
|
+
let pagePromise = operationPromise.then((payload) => new LegacyContentPage(instance._version, payload, instance._solution));
|
|
63
|
+
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
64
|
+
return pagePromise;
|
|
65
|
+
};
|
|
66
|
+
instance.toJSON = function toJSON() {
|
|
67
|
+
return instance._solution;
|
|
68
|
+
};
|
|
69
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
70
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
71
|
+
};
|
|
72
|
+
return instance;
|
|
73
|
+
}
|
|
74
|
+
exports.LegacyContentListInstance = LegacyContentListInstance;
|
|
75
|
+
class LegacyContentInstance {
|
|
76
|
+
constructor(_version, payload) {
|
|
77
|
+
this._version = _version;
|
|
78
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
79
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
80
|
+
this.sid = payload.sid;
|
|
81
|
+
this.accountSid = payload.account_sid;
|
|
82
|
+
this.friendlyName = payload.friendly_name;
|
|
83
|
+
this.language = payload.language;
|
|
84
|
+
this.variables = payload.variables;
|
|
85
|
+
this.types = payload.types;
|
|
86
|
+
this.legacyTemplateName = payload.legacy_template_name;
|
|
87
|
+
this.legacyBody = payload.legacy_body;
|
|
88
|
+
this.url = payload.url;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Provide a user-friendly representation
|
|
92
|
+
*
|
|
93
|
+
* @returns Object
|
|
94
|
+
*/
|
|
95
|
+
toJSON() {
|
|
96
|
+
return {
|
|
97
|
+
dateCreated: this.dateCreated,
|
|
98
|
+
dateUpdated: this.dateUpdated,
|
|
99
|
+
sid: this.sid,
|
|
100
|
+
accountSid: this.accountSid,
|
|
101
|
+
friendlyName: this.friendlyName,
|
|
102
|
+
language: this.language,
|
|
103
|
+
variables: this.variables,
|
|
104
|
+
types: this.types,
|
|
105
|
+
legacyTemplateName: this.legacyTemplateName,
|
|
106
|
+
legacyBody: this.legacyBody,
|
|
107
|
+
url: this.url,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
[util_1.inspect.custom](_depth, options) {
|
|
111
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.LegacyContentInstance = LegacyContentInstance;
|
|
115
|
+
class LegacyContentPage extends Page_1.default {
|
|
116
|
+
/**
|
|
117
|
+
* Initialize the LegacyContentPage
|
|
118
|
+
*
|
|
119
|
+
* @param version - Version of the resource
|
|
120
|
+
* @param response - Response from the API
|
|
121
|
+
* @param solution - Path solution
|
|
122
|
+
*/
|
|
123
|
+
constructor(version, response, solution) {
|
|
124
|
+
super(version, response, solution);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Build an instance of LegacyContentInstance
|
|
128
|
+
*
|
|
129
|
+
* @param payload - Payload response from the API
|
|
130
|
+
*/
|
|
131
|
+
getInstance(payload) {
|
|
132
|
+
return new LegacyContentInstance(this._version, payload);
|
|
133
|
+
}
|
|
134
|
+
[util_1.inspect.custom](depth, options) {
|
|
135
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.LegacyContentPage = LegacyContentPage;
|
package/lib/rest/flexApi/V1.d.ts
CHANGED
|
@@ -4,8 +4,11 @@ import { AssessmentsListInstance } from "./v1/assessments";
|
|
|
4
4
|
import { ChannelListInstance } from "./v1/channel";
|
|
5
5
|
import { ConfigurationListInstance } from "./v1/configuration";
|
|
6
6
|
import { FlexFlowListInstance } from "./v1/flexFlow";
|
|
7
|
+
import { InsightsAssessmentsCommentListInstance } from "./v1/insightsAssessmentsComment";
|
|
8
|
+
import { InsightsQuestionnairesListInstance } from "./v1/insightsQuestionnaires";
|
|
7
9
|
import { InsightsQuestionnairesCategoryListInstance } from "./v1/insightsQuestionnairesCategory";
|
|
8
10
|
import { InsightsQuestionnairesQuestionListInstance } from "./v1/insightsQuestionnairesQuestion";
|
|
11
|
+
import { InsightsSegmentsListInstance } from "./v1/insightsSegments";
|
|
9
12
|
import { InsightsSessionListInstance } from "./v1/insightsSession";
|
|
10
13
|
import { InsightsSettingsAnswerSetsListInstance } from "./v1/insightsSettingsAnswerSets";
|
|
11
14
|
import { InsightsSettingsCommentListInstance } from "./v1/insightsSettingsComment";
|
|
@@ -27,10 +30,16 @@ export default class V1 extends Version {
|
|
|
27
30
|
protected _configuration?: ConfigurationListInstance;
|
|
28
31
|
/** flexFlow - { Twilio.FlexApi.V1.FlexFlowListInstance } resource */
|
|
29
32
|
protected _flexFlow?: FlexFlowListInstance;
|
|
33
|
+
/** insightsAssessmentsComment - { Twilio.FlexApi.V1.InsightsAssessmentsCommentListInstance } resource */
|
|
34
|
+
protected _insightsAssessmentsComment?: InsightsAssessmentsCommentListInstance;
|
|
35
|
+
/** insightsQuestionnaires - { Twilio.FlexApi.V1.InsightsQuestionnairesListInstance } resource */
|
|
36
|
+
protected _insightsQuestionnaires?: InsightsQuestionnairesListInstance;
|
|
30
37
|
/** insightsQuestionnairesCategory - { Twilio.FlexApi.V1.InsightsQuestionnairesCategoryListInstance } resource */
|
|
31
38
|
protected _insightsQuestionnairesCategory?: InsightsQuestionnairesCategoryListInstance;
|
|
32
39
|
/** insightsQuestionnairesQuestion - { Twilio.FlexApi.V1.InsightsQuestionnairesQuestionListInstance } resource */
|
|
33
40
|
protected _insightsQuestionnairesQuestion?: InsightsQuestionnairesQuestionListInstance;
|
|
41
|
+
/** insightsSegments - { Twilio.FlexApi.V1.InsightsSegmentsListInstance } resource */
|
|
42
|
+
protected _insightsSegments?: InsightsSegmentsListInstance;
|
|
34
43
|
/** insightsSession - { Twilio.FlexApi.V1.InsightsSessionListInstance } resource */
|
|
35
44
|
protected _insightsSession?: InsightsSessionListInstance;
|
|
36
45
|
/** insightsSettingsAnswerSets - { Twilio.FlexApi.V1.InsightsSettingsAnswerSetsListInstance } resource */
|
|
@@ -51,10 +60,16 @@ export default class V1 extends Version {
|
|
|
51
60
|
get configuration(): ConfigurationListInstance;
|
|
52
61
|
/** Getter for flexFlow resource */
|
|
53
62
|
get flexFlow(): FlexFlowListInstance;
|
|
63
|
+
/** Getter for insightsAssessmentsComment resource */
|
|
64
|
+
get insightsAssessmentsComment(): InsightsAssessmentsCommentListInstance;
|
|
65
|
+
/** Getter for insightsQuestionnaires resource */
|
|
66
|
+
get insightsQuestionnaires(): InsightsQuestionnairesListInstance;
|
|
54
67
|
/** Getter for insightsQuestionnairesCategory resource */
|
|
55
68
|
get insightsQuestionnairesCategory(): InsightsQuestionnairesCategoryListInstance;
|
|
56
69
|
/** Getter for insightsQuestionnairesQuestion resource */
|
|
57
70
|
get insightsQuestionnairesQuestion(): InsightsQuestionnairesQuestionListInstance;
|
|
71
|
+
/** Getter for insightsSegments resource */
|
|
72
|
+
get insightsSegments(): InsightsSegmentsListInstance;
|
|
58
73
|
/** Getter for insightsSession resource */
|
|
59
74
|
get insightsSession(): InsightsSessionListInstance;
|
|
60
75
|
/** Getter for insightsSettingsAnswerSets resource */
|
package/lib/rest/flexApi/V1.js
CHANGED
|
@@ -21,8 +21,11 @@ const assessments_1 = require("./v1/assessments");
|
|
|
21
21
|
const channel_1 = require("./v1/channel");
|
|
22
22
|
const configuration_1 = require("./v1/configuration");
|
|
23
23
|
const flexFlow_1 = require("./v1/flexFlow");
|
|
24
|
+
const insightsAssessmentsComment_1 = require("./v1/insightsAssessmentsComment");
|
|
25
|
+
const insightsQuestionnaires_1 = require("./v1/insightsQuestionnaires");
|
|
24
26
|
const insightsQuestionnairesCategory_1 = require("./v1/insightsQuestionnairesCategory");
|
|
25
27
|
const insightsQuestionnairesQuestion_1 = require("./v1/insightsQuestionnairesQuestion");
|
|
28
|
+
const insightsSegments_1 = require("./v1/insightsSegments");
|
|
26
29
|
const insightsSession_1 = require("./v1/insightsSession");
|
|
27
30
|
const insightsSettingsAnswerSets_1 = require("./v1/insightsSettingsAnswerSets");
|
|
28
31
|
const insightsSettingsComment_1 = require("./v1/insightsSettingsComment");
|
|
@@ -59,6 +62,19 @@ class V1 extends Version_1.default {
|
|
|
59
62
|
this._flexFlow = this._flexFlow || (0, flexFlow_1.FlexFlowListInstance)(this);
|
|
60
63
|
return this._flexFlow;
|
|
61
64
|
}
|
|
65
|
+
/** Getter for insightsAssessmentsComment resource */
|
|
66
|
+
get insightsAssessmentsComment() {
|
|
67
|
+
this._insightsAssessmentsComment =
|
|
68
|
+
this._insightsAssessmentsComment ||
|
|
69
|
+
(0, insightsAssessmentsComment_1.InsightsAssessmentsCommentListInstance)(this);
|
|
70
|
+
return this._insightsAssessmentsComment;
|
|
71
|
+
}
|
|
72
|
+
/** Getter for insightsQuestionnaires resource */
|
|
73
|
+
get insightsQuestionnaires() {
|
|
74
|
+
this._insightsQuestionnaires =
|
|
75
|
+
this._insightsQuestionnaires || (0, insightsQuestionnaires_1.InsightsQuestionnairesListInstance)(this);
|
|
76
|
+
return this._insightsQuestionnaires;
|
|
77
|
+
}
|
|
62
78
|
/** Getter for insightsQuestionnairesCategory resource */
|
|
63
79
|
get insightsQuestionnairesCategory() {
|
|
64
80
|
this._insightsQuestionnairesCategory =
|
|
@@ -73,6 +89,12 @@ class V1 extends Version_1.default {
|
|
|
73
89
|
(0, insightsQuestionnairesQuestion_1.InsightsQuestionnairesQuestionListInstance)(this);
|
|
74
90
|
return this._insightsQuestionnairesQuestion;
|
|
75
91
|
}
|
|
92
|
+
/** Getter for insightsSegments resource */
|
|
93
|
+
get insightsSegments() {
|
|
94
|
+
this._insightsSegments =
|
|
95
|
+
this._insightsSegments || (0, insightsSegments_1.InsightsSegmentsListInstance)(this);
|
|
96
|
+
return this._insightsSegments;
|
|
97
|
+
}
|
|
76
98
|
/** Getter for insightsSession resource */
|
|
77
99
|
get insightsSession() {
|
|
78
100
|
this._insightsSession =
|