twilio 4.18.0 → 4.18.1
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/base/BaseTwilio.d.ts +2 -1
- package/lib/base/BaseTwilio.js +3 -2
- package/lib/rest/api/v2010/account/message.d.ts +0 -8
- package/lib/rest/api/v2010/account/message.js +0 -4
- package/lib/rest/trusthub/V1.d.ts +5 -0
- package/lib/rest/trusthub/V1.js +7 -0
- package/lib/rest/trusthub/v1/complianceInquiries.d.ts +125 -0
- package/lib/rest/trusthub/v1/complianceInquiries.js +140 -0
- package/package.json +1 -1
package/lib/base/BaseTwilio.d.ts
CHANGED
|
@@ -74,7 +74,8 @@ declare namespace Twilio {
|
|
|
74
74
|
*/
|
|
75
75
|
getHostname(hostname: string, targetEdge: string | undefined, targetRegion: string | undefined): string;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Test if your environment is impacted by a TLS or certificate
|
|
78
|
+
* change is by sending an HTTP request to the test endpoint
|
|
78
79
|
*
|
|
79
80
|
* @throws RestException if the request fails
|
|
80
81
|
*
|
package/lib/base/BaseTwilio.js
CHANGED
|
@@ -156,7 +156,8 @@ var Twilio;
|
|
|
156
156
|
}
|
|
157
157
|
/* jshint ignore:start */
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Test if your environment is impacted by a TLS or certificate
|
|
160
|
+
* change is by sending an HTTP request to the test endpoint
|
|
160
161
|
*
|
|
161
162
|
* @throws RestException if the request fails
|
|
162
163
|
*
|
|
@@ -166,7 +167,7 @@ var Twilio;
|
|
|
166
167
|
return this.httpClient
|
|
167
168
|
?.request({
|
|
168
169
|
method: "get",
|
|
169
|
-
uri: "https://
|
|
170
|
+
uri: "https://tls-test.twilio.com:443",
|
|
170
171
|
})
|
|
171
172
|
.then((response) => {
|
|
172
173
|
if (response["statusCode"] < 200 || response["statusCode"] >= 300) {
|
|
@@ -59,8 +59,6 @@ export interface MessageListInstanceCreateOptions {
|
|
|
59
59
|
sendAsMms?: boolean;
|
|
60
60
|
/** For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template\\\'s default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. */
|
|
61
61
|
contentVariables?: string;
|
|
62
|
-
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */
|
|
63
|
-
tags?: string;
|
|
64
62
|
/** */
|
|
65
63
|
riskCheck?: MessageRiskCheck;
|
|
66
64
|
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
|
|
@@ -227,7 +225,6 @@ interface MessageResource {
|
|
|
227
225
|
price_unit: string;
|
|
228
226
|
api_version: string;
|
|
229
227
|
subresource_uris: Record<string, string>;
|
|
230
|
-
tags: any;
|
|
231
228
|
}
|
|
232
229
|
export declare class MessageInstance {
|
|
233
230
|
protected _version: V2010;
|
|
@@ -308,10 +305,6 @@ export declare class MessageInstance {
|
|
|
308
305
|
* A list of related resources identified by their URIs relative to `https://api.twilio.com`
|
|
309
306
|
*/
|
|
310
307
|
subresourceUris: Record<string, string>;
|
|
311
|
-
/**
|
|
312
|
-
* A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
|
|
313
|
-
*/
|
|
314
|
-
tags: any;
|
|
315
308
|
private get _proxy();
|
|
316
309
|
/**
|
|
317
310
|
* Remove a MessageInstance
|
|
@@ -380,7 +373,6 @@ export declare class MessageInstance {
|
|
|
380
373
|
priceUnit: string;
|
|
381
374
|
apiVersion: string;
|
|
382
375
|
subresourceUris: Record<string, string>;
|
|
383
|
-
tags: any;
|
|
384
376
|
};
|
|
385
377
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
386
378
|
}
|
|
@@ -129,7 +129,6 @@ class MessageInstance {
|
|
|
129
129
|
this.priceUnit = payload.price_unit;
|
|
130
130
|
this.apiVersion = payload.api_version;
|
|
131
131
|
this.subresourceUris = payload.subresource_uris;
|
|
132
|
-
this.tags = payload.tags;
|
|
133
132
|
this._solution = { accountSid, sid: sid || this.sid };
|
|
134
133
|
}
|
|
135
134
|
get _proxy() {
|
|
@@ -200,7 +199,6 @@ class MessageInstance {
|
|
|
200
199
|
priceUnit: this.priceUnit,
|
|
201
200
|
apiVersion: this.apiVersion,
|
|
202
201
|
subresourceUris: this.subresourceUris,
|
|
203
|
-
tags: this.tags,
|
|
204
202
|
};
|
|
205
203
|
}
|
|
206
204
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -260,8 +258,6 @@ function MessageListInstance(version, accountSid) {
|
|
|
260
258
|
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
|
|
261
259
|
if (params["contentVariables"] !== undefined)
|
|
262
260
|
data["ContentVariables"] = params["contentVariables"];
|
|
263
|
-
if (params["tags"] !== undefined)
|
|
264
|
-
data["Tags"] = params["tags"];
|
|
265
261
|
if (params["riskCheck"] !== undefined)
|
|
266
262
|
data["RiskCheck"] = params["riskCheck"];
|
|
267
263
|
if (params["from"] !== undefined)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import TrusthubBase from "../TrusthubBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
|
+
import { ComplianceInquiriesListInstance } from "./v1/complianceInquiries";
|
|
3
4
|
import { CustomerProfilesListInstance } from "./v1/customerProfiles";
|
|
4
5
|
import { EndUserListInstance } from "./v1/endUser";
|
|
5
6
|
import { EndUserTypeListInstance } from "./v1/endUserType";
|
|
@@ -14,6 +15,8 @@ export default class V1 extends Version {
|
|
|
14
15
|
* @param domain - The Twilio (Twilio.Trusthub) domain
|
|
15
16
|
*/
|
|
16
17
|
constructor(domain: TrusthubBase);
|
|
18
|
+
/** complianceInquiries - { Twilio.Trusthub.V1.ComplianceInquiriesListInstance } resource */
|
|
19
|
+
protected _complianceInquiries?: ComplianceInquiriesListInstance;
|
|
17
20
|
/** customerProfiles - { Twilio.Trusthub.V1.CustomerProfilesListInstance } resource */
|
|
18
21
|
protected _customerProfiles?: CustomerProfilesListInstance;
|
|
19
22
|
/** endUsers - { Twilio.Trusthub.V1.EndUserListInstance } resource */
|
|
@@ -28,6 +31,8 @@ export default class V1 extends Version {
|
|
|
28
31
|
protected _supportingDocumentTypes?: SupportingDocumentTypeListInstance;
|
|
29
32
|
/** trustProducts - { Twilio.Trusthub.V1.TrustProductsListInstance } resource */
|
|
30
33
|
protected _trustProducts?: TrustProductsListInstance;
|
|
34
|
+
/** Getter for complianceInquiries resource */
|
|
35
|
+
get complianceInquiries(): ComplianceInquiriesListInstance;
|
|
31
36
|
/** Getter for customerProfiles resource */
|
|
32
37
|
get customerProfiles(): CustomerProfilesListInstance;
|
|
33
38
|
/** Getter for endUsers resource */
|
package/lib/rest/trusthub/V1.js
CHANGED
|
@@ -17,6 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const complianceInquiries_1 = require("./v1/complianceInquiries");
|
|
20
21
|
const customerProfiles_1 = require("./v1/customerProfiles");
|
|
21
22
|
const endUser_1 = require("./v1/endUser");
|
|
22
23
|
const endUserType_1 = require("./v1/endUserType");
|
|
@@ -33,6 +34,12 @@ class V1 extends Version_1.default {
|
|
|
33
34
|
constructor(domain) {
|
|
34
35
|
super(domain, "v1");
|
|
35
36
|
}
|
|
37
|
+
/** Getter for complianceInquiries resource */
|
|
38
|
+
get complianceInquiries() {
|
|
39
|
+
this._complianceInquiries =
|
|
40
|
+
this._complianceInquiries || (0, complianceInquiries_1.ComplianceInquiriesListInstance)(this);
|
|
41
|
+
return this._complianceInquiries;
|
|
42
|
+
}
|
|
36
43
|
/** Getter for customerProfiles resource */
|
|
37
44
|
get customerProfiles() {
|
|
38
45
|
this._customerProfiles =
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V1 from "../V1";
|
|
4
|
+
/**
|
|
5
|
+
* Options to pass to update a ComplianceInquiriesInstance
|
|
6
|
+
*/
|
|
7
|
+
export interface ComplianceInquiriesContextUpdateOptions {
|
|
8
|
+
/** The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. */
|
|
9
|
+
primaryProfileSid: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Options to pass to create a ComplianceInquiriesInstance
|
|
13
|
+
*/
|
|
14
|
+
export interface ComplianceInquiriesListInstanceCreateOptions {
|
|
15
|
+
/** The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. */
|
|
16
|
+
primaryProfileSid: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ComplianceInquiriesContext {
|
|
19
|
+
/**
|
|
20
|
+
* Update a ComplianceInquiriesInstance
|
|
21
|
+
*
|
|
22
|
+
* @param params - Parameter for request
|
|
23
|
+
* @param callback - Callback to handle processed record
|
|
24
|
+
*
|
|
25
|
+
* @returns Resolves to processed ComplianceInquiriesInstance
|
|
26
|
+
*/
|
|
27
|
+
update(params: ComplianceInquiriesContextUpdateOptions, callback?: (error: Error | null, item?: ComplianceInquiriesInstance) => any): Promise<ComplianceInquiriesInstance>;
|
|
28
|
+
/**
|
|
29
|
+
* Provide a user-friendly representation
|
|
30
|
+
*/
|
|
31
|
+
toJSON(): any;
|
|
32
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
33
|
+
}
|
|
34
|
+
export interface ComplianceInquiriesContextSolution {
|
|
35
|
+
customerId: string;
|
|
36
|
+
}
|
|
37
|
+
export declare class ComplianceInquiriesContextImpl implements ComplianceInquiriesContext {
|
|
38
|
+
protected _version: V1;
|
|
39
|
+
protected _solution: ComplianceInquiriesContextSolution;
|
|
40
|
+
protected _uri: string;
|
|
41
|
+
constructor(_version: V1, customerId: string);
|
|
42
|
+
update(params: ComplianceInquiriesContextUpdateOptions, callback?: (error: Error | null, item?: ComplianceInquiriesInstance) => any): Promise<ComplianceInquiriesInstance>;
|
|
43
|
+
/**
|
|
44
|
+
* Provide a user-friendly representation
|
|
45
|
+
*
|
|
46
|
+
* @returns Object
|
|
47
|
+
*/
|
|
48
|
+
toJSON(): ComplianceInquiriesContextSolution;
|
|
49
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
50
|
+
}
|
|
51
|
+
interface ComplianceInquiriesResource {
|
|
52
|
+
inquiry_id: string;
|
|
53
|
+
inquiry_session_token: string;
|
|
54
|
+
customer_id: string;
|
|
55
|
+
url: string;
|
|
56
|
+
}
|
|
57
|
+
export declare class ComplianceInquiriesInstance {
|
|
58
|
+
protected _version: V1;
|
|
59
|
+
protected _solution: ComplianceInquiriesContextSolution;
|
|
60
|
+
protected _context?: ComplianceInquiriesContext;
|
|
61
|
+
constructor(_version: V1, payload: ComplianceInquiriesResource, customerId?: string);
|
|
62
|
+
/**
|
|
63
|
+
* The unique ID used to start an embedded compliance registration session.
|
|
64
|
+
*/
|
|
65
|
+
inquiryId: string;
|
|
66
|
+
/**
|
|
67
|
+
* The session token used to start an embedded compliance registration session.
|
|
68
|
+
*/
|
|
69
|
+
inquirySessionToken: string;
|
|
70
|
+
/**
|
|
71
|
+
* The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
|
|
72
|
+
*/
|
|
73
|
+
customerId: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL of this resource.
|
|
76
|
+
*/
|
|
77
|
+
url: string;
|
|
78
|
+
private get _proxy();
|
|
79
|
+
/**
|
|
80
|
+
* Update a ComplianceInquiriesInstance
|
|
81
|
+
*
|
|
82
|
+
* @param params - Parameter for request
|
|
83
|
+
* @param callback - Callback to handle processed record
|
|
84
|
+
*
|
|
85
|
+
* @returns Resolves to processed ComplianceInquiriesInstance
|
|
86
|
+
*/
|
|
87
|
+
update(params: ComplianceInquiriesContextUpdateOptions, callback?: (error: Error | null, item?: ComplianceInquiriesInstance) => any): Promise<ComplianceInquiriesInstance>;
|
|
88
|
+
/**
|
|
89
|
+
* Provide a user-friendly representation
|
|
90
|
+
*
|
|
91
|
+
* @returns Object
|
|
92
|
+
*/
|
|
93
|
+
toJSON(): {
|
|
94
|
+
inquiryId: string;
|
|
95
|
+
inquirySessionToken: string;
|
|
96
|
+
customerId: string;
|
|
97
|
+
url: string;
|
|
98
|
+
};
|
|
99
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
100
|
+
}
|
|
101
|
+
export interface ComplianceInquiriesSolution {
|
|
102
|
+
}
|
|
103
|
+
export interface ComplianceInquiriesListInstance {
|
|
104
|
+
_version: V1;
|
|
105
|
+
_solution: ComplianceInquiriesSolution;
|
|
106
|
+
_uri: string;
|
|
107
|
+
(customerId: string): ComplianceInquiriesContext;
|
|
108
|
+
get(customerId: string): ComplianceInquiriesContext;
|
|
109
|
+
/**
|
|
110
|
+
* Create a ComplianceInquiriesInstance
|
|
111
|
+
*
|
|
112
|
+
* @param params - Parameter for request
|
|
113
|
+
* @param callback - Callback to handle processed record
|
|
114
|
+
*
|
|
115
|
+
* @returns Resolves to processed ComplianceInquiriesInstance
|
|
116
|
+
*/
|
|
117
|
+
create(params: ComplianceInquiriesListInstanceCreateOptions, callback?: (error: Error | null, item?: ComplianceInquiriesInstance) => any): Promise<ComplianceInquiriesInstance>;
|
|
118
|
+
/**
|
|
119
|
+
* Provide a user-friendly representation
|
|
120
|
+
*/
|
|
121
|
+
toJSON(): any;
|
|
122
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
123
|
+
}
|
|
124
|
+
export declare function ComplianceInquiriesListInstance(version: V1): ComplianceInquiriesListInstance;
|
|
125
|
+
export {};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Trusthub
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ComplianceInquiriesListInstance = exports.ComplianceInquiriesInstance = exports.ComplianceInquiriesContextImpl = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../base/serialize");
|
|
20
|
+
const utility_1 = require("../../../base/utility");
|
|
21
|
+
class ComplianceInquiriesContextImpl {
|
|
22
|
+
constructor(_version, customerId) {
|
|
23
|
+
this._version = _version;
|
|
24
|
+
if (!(0, utility_1.isValidPathParam)(customerId)) {
|
|
25
|
+
throw new Error("Parameter 'customerId' is not valid.");
|
|
26
|
+
}
|
|
27
|
+
this._solution = { customerId };
|
|
28
|
+
this._uri = `/ComplianceInquiries/Customers/${customerId}/Initialize`;
|
|
29
|
+
}
|
|
30
|
+
update(params, callback) {
|
|
31
|
+
if (params === null || params === undefined) {
|
|
32
|
+
throw new Error('Required parameter "params" missing.');
|
|
33
|
+
}
|
|
34
|
+
if (params["primaryProfileSid"] === null ||
|
|
35
|
+
params["primaryProfileSid"] === undefined) {
|
|
36
|
+
throw new Error("Required parameter \"params['primaryProfileSid']\" missing.");
|
|
37
|
+
}
|
|
38
|
+
let data = {};
|
|
39
|
+
data["PrimaryProfileSid"] = params["primaryProfileSid"];
|
|
40
|
+
const headers = {};
|
|
41
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
42
|
+
const instance = this;
|
|
43
|
+
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
44
|
+
uri: instance._uri,
|
|
45
|
+
method: "post",
|
|
46
|
+
data,
|
|
47
|
+
headers,
|
|
48
|
+
});
|
|
49
|
+
operationPromise = operationPromise.then((payload) => new ComplianceInquiriesInstance(operationVersion, payload, instance._solution.customerId));
|
|
50
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
51
|
+
return operationPromise;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Provide a user-friendly representation
|
|
55
|
+
*
|
|
56
|
+
* @returns Object
|
|
57
|
+
*/
|
|
58
|
+
toJSON() {
|
|
59
|
+
return this._solution;
|
|
60
|
+
}
|
|
61
|
+
[util_1.inspect.custom](_depth, options) {
|
|
62
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.ComplianceInquiriesContextImpl = ComplianceInquiriesContextImpl;
|
|
66
|
+
class ComplianceInquiriesInstance {
|
|
67
|
+
constructor(_version, payload, customerId) {
|
|
68
|
+
this._version = _version;
|
|
69
|
+
this.inquiryId = payload.inquiry_id;
|
|
70
|
+
this.inquirySessionToken = payload.inquiry_session_token;
|
|
71
|
+
this.customerId = payload.customer_id;
|
|
72
|
+
this.url = payload.url;
|
|
73
|
+
this._solution = { customerId: customerId || this.customerId };
|
|
74
|
+
}
|
|
75
|
+
get _proxy() {
|
|
76
|
+
this._context =
|
|
77
|
+
this._context ||
|
|
78
|
+
new ComplianceInquiriesContextImpl(this._version, this._solution.customerId);
|
|
79
|
+
return this._context;
|
|
80
|
+
}
|
|
81
|
+
update(params, callback) {
|
|
82
|
+
return this._proxy.update(params, callback);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Provide a user-friendly representation
|
|
86
|
+
*
|
|
87
|
+
* @returns Object
|
|
88
|
+
*/
|
|
89
|
+
toJSON() {
|
|
90
|
+
return {
|
|
91
|
+
inquiryId: this.inquiryId,
|
|
92
|
+
inquirySessionToken: this.inquirySessionToken,
|
|
93
|
+
customerId: this.customerId,
|
|
94
|
+
url: this.url,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
[util_1.inspect.custom](_depth, options) {
|
|
98
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.ComplianceInquiriesInstance = ComplianceInquiriesInstance;
|
|
102
|
+
function ComplianceInquiriesListInstance(version) {
|
|
103
|
+
const instance = ((customerId) => instance.get(customerId));
|
|
104
|
+
instance.get = function get(customerId) {
|
|
105
|
+
return new ComplianceInquiriesContextImpl(version, customerId);
|
|
106
|
+
};
|
|
107
|
+
instance._version = version;
|
|
108
|
+
instance._solution = {};
|
|
109
|
+
instance._uri = `/ComplianceInquiries/Customers/Initialize`;
|
|
110
|
+
instance.create = function create(params, callback) {
|
|
111
|
+
if (params === null || params === undefined) {
|
|
112
|
+
throw new Error('Required parameter "params" missing.');
|
|
113
|
+
}
|
|
114
|
+
if (params["primaryProfileSid"] === null ||
|
|
115
|
+
params["primaryProfileSid"] === undefined) {
|
|
116
|
+
throw new Error("Required parameter \"params['primaryProfileSid']\" missing.");
|
|
117
|
+
}
|
|
118
|
+
let data = {};
|
|
119
|
+
data["PrimaryProfileSid"] = params["primaryProfileSid"];
|
|
120
|
+
const headers = {};
|
|
121
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
122
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
123
|
+
uri: instance._uri,
|
|
124
|
+
method: "post",
|
|
125
|
+
data,
|
|
126
|
+
headers,
|
|
127
|
+
});
|
|
128
|
+
operationPromise = operationPromise.then((payload) => new ComplianceInquiriesInstance(operationVersion, payload));
|
|
129
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
130
|
+
return operationPromise;
|
|
131
|
+
};
|
|
132
|
+
instance.toJSON = function toJSON() {
|
|
133
|
+
return instance._solution;
|
|
134
|
+
};
|
|
135
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
136
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
137
|
+
};
|
|
138
|
+
return instance;
|
|
139
|
+
}
|
|
140
|
+
exports.ComplianceInquiriesListInstance = ComplianceInquiriesListInstance;
|