twilio 5.4.1 → 5.4.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/api/v2010/account/call/transcription.d.ts +1 -1
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +2 -2
- package/lib/rest/iam/V1.d.ts +5 -5
- package/lib/rest/iam/V1.js +5 -5
- package/lib/rest/iam/v1/{newApiKey.d.ts → key.d.ts} +14 -14
- package/lib/rest/iam/v1/{newApiKey.js → key.js} +6 -6
- package/lib/rest/marketplace/V1.d.ts +5 -0
- package/lib/rest/marketplace/V1.js +6 -0
- package/lib/rest/marketplace/v1/availableAddOn.d.ts +3 -3
- package/lib/rest/marketplace/v1/installedAddOn.d.ts +3 -3
- package/lib/rest/marketplace/v1/moduleData.d.ts +125 -0
- package/lib/rest/marketplace/v1/moduleData.js +109 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +27 -21
- package/lib/rest/marketplace/v1/moduleDataManagement.js +2 -0
- package/lib/rest/messaging/v1/service.d.ts +3 -3
- package/lib/rest/numbers/V1.d.ts +5 -5
- package/lib/rest/numbers/V1.js +6 -8
- package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.d.ts → webhook.d.ts} +10 -10
- package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.js → webhook.js} +6 -6
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ export interface TranscriptionListInstanceCreateOptions {
|
|
|
41
41
|
hints?: string;
|
|
42
42
|
/** The provider will add punctuation to recognition result */
|
|
43
43
|
enableAutomaticPunctuation?: boolean;
|
|
44
|
-
/** The SID
|
|
44
|
+
/** The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . */
|
|
45
45
|
intelligenceService?: string;
|
|
46
46
|
}
|
|
47
47
|
export interface TranscriptionContext {
|
|
@@ -9,7 +9,7 @@ export type WebhookTarget = "webhook" | "flex";
|
|
|
9
9
|
export interface WebhookContextUpdateOptions {
|
|
10
10
|
/** The HTTP method to be used when sending a webhook request. */
|
|
11
11
|
method?: string;
|
|
12
|
-
/** The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` */
|
|
12
|
+
/** The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated` */
|
|
13
13
|
filters?: Array<string>;
|
|
14
14
|
/** The absolute url the pre-event webhook request should be sent to. */
|
|
15
15
|
preWebhookUrl?: string;
|
|
@@ -87,7 +87,7 @@ export declare class WebhookInstance {
|
|
|
87
87
|
accountSid: string;
|
|
88
88
|
method: WebhookMethod;
|
|
89
89
|
/**
|
|
90
|
-
* The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
|
|
90
|
+
* The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
|
|
91
91
|
*/
|
|
92
92
|
filters: Array<string>;
|
|
93
93
|
/**
|
package/lib/rest/iam/V1.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import IamBase from "../IamBase";
|
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { ApiKeyListInstance } from "./v1/apiKey";
|
|
4
4
|
import { GetApiKeysListInstance } from "./v1/getApiKeys";
|
|
5
|
-
import {
|
|
5
|
+
import { KeyListInstance } from "./v1/key";
|
|
6
6
|
export default class V1 extends Version {
|
|
7
7
|
/**
|
|
8
8
|
* Initialize the V1 version of Iam
|
|
@@ -14,12 +14,12 @@ export default class V1 extends Version {
|
|
|
14
14
|
protected _apiKey?: ApiKeyListInstance;
|
|
15
15
|
/** getApiKeys - { Twilio.Iam.V1.GetApiKeysListInstance } resource */
|
|
16
16
|
protected _getApiKeys?: GetApiKeysListInstance;
|
|
17
|
-
/**
|
|
18
|
-
protected
|
|
17
|
+
/** keys - { Twilio.Iam.V1.KeyListInstance } resource */
|
|
18
|
+
protected _keys?: KeyListInstance;
|
|
19
19
|
/** Getter for apiKey resource */
|
|
20
20
|
get apiKey(): ApiKeyListInstance;
|
|
21
21
|
/** Getter for getApiKeys resource */
|
|
22
22
|
get getApiKeys(): GetApiKeysListInstance;
|
|
23
|
-
/** Getter for
|
|
24
|
-
get
|
|
23
|
+
/** Getter for keys resource */
|
|
24
|
+
get keys(): KeyListInstance;
|
|
25
25
|
}
|
package/lib/rest/iam/V1.js
CHANGED
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const apiKey_1 = require("./v1/apiKey");
|
|
21
21
|
const getApiKeys_1 = require("./v1/getApiKeys");
|
|
22
|
-
const
|
|
22
|
+
const key_1 = require("./v1/key");
|
|
23
23
|
class V1 extends Version_1.default {
|
|
24
24
|
/**
|
|
25
25
|
* Initialize the V1 version of Iam
|
|
@@ -39,10 +39,10 @@ class V1 extends Version_1.default {
|
|
|
39
39
|
this._getApiKeys = this._getApiKeys || (0, getApiKeys_1.GetApiKeysListInstance)(this);
|
|
40
40
|
return this._getApiKeys;
|
|
41
41
|
}
|
|
42
|
-
/** Getter for
|
|
43
|
-
get
|
|
44
|
-
this.
|
|
45
|
-
return this.
|
|
42
|
+
/** Getter for keys resource */
|
|
43
|
+
get keys() {
|
|
44
|
+
this._keys = this._keys || (0, key_1.KeyListInstance)(this);
|
|
45
|
+
return this._keys;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
exports.default = V1;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../V1";
|
|
4
|
-
export type
|
|
4
|
+
export type KeyKeytype = "restricted";
|
|
5
5
|
/**
|
|
6
|
-
* Options to pass to create a
|
|
6
|
+
* Options to pass to create a KeyInstance
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface KeyListInstanceCreateOptions {
|
|
9
9
|
/** The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. */
|
|
10
10
|
accountSid: string;
|
|
11
11
|
/** A descriptive string that you create to describe the resource. It can be up to 64 characters long. */
|
|
12
12
|
friendlyName?: string;
|
|
13
13
|
/** */
|
|
14
|
-
keyType?:
|
|
14
|
+
keyType?: KeyKeytype;
|
|
15
15
|
/** The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys). */
|
|
16
16
|
policy?: any;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface KeySolution {
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface KeyListInstance {
|
|
21
21
|
_version: V1;
|
|
22
|
-
_solution:
|
|
22
|
+
_solution: KeySolution;
|
|
23
23
|
_uri: string;
|
|
24
24
|
/**
|
|
25
|
-
* Create a
|
|
25
|
+
* Create a KeyInstance
|
|
26
26
|
*
|
|
27
27
|
* @param params - Parameter for request
|
|
28
28
|
* @param callback - Callback to handle processed record
|
|
29
29
|
*
|
|
30
|
-
* @returns Resolves to processed
|
|
30
|
+
* @returns Resolves to processed KeyInstance
|
|
31
31
|
*/
|
|
32
|
-
create(params:
|
|
32
|
+
create(params: KeyListInstanceCreateOptions, callback?: (error: Error | null, item?: KeyInstance) => any): Promise<KeyInstance>;
|
|
33
33
|
/**
|
|
34
34
|
* Provide a user-friendly representation
|
|
35
35
|
*/
|
|
36
36
|
toJSON(): any;
|
|
37
37
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
38
38
|
}
|
|
39
|
-
export declare function
|
|
40
|
-
interface
|
|
39
|
+
export declare function KeyListInstance(version: V1): KeyListInstance;
|
|
40
|
+
interface KeyResource {
|
|
41
41
|
sid: string;
|
|
42
42
|
friendly_name: string;
|
|
43
43
|
date_created: Date;
|
|
@@ -45,9 +45,9 @@ interface NewApiKeyResource {
|
|
|
45
45
|
secret: string;
|
|
46
46
|
policy: any;
|
|
47
47
|
}
|
|
48
|
-
export declare class
|
|
48
|
+
export declare class KeyInstance {
|
|
49
49
|
protected _version: V1;
|
|
50
|
-
constructor(_version: V1, payload:
|
|
50
|
+
constructor(_version: V1, payload: KeyResource);
|
|
51
51
|
/**
|
|
52
52
|
* The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API.
|
|
53
53
|
*/
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.KeyInstance = exports.KeyListInstance = void 0;
|
|
17
17
|
const util_1 = require("util");
|
|
18
18
|
const deserialize = require("../../../base/deserialize");
|
|
19
19
|
const serialize = require("../../../base/serialize");
|
|
20
|
-
function
|
|
20
|
+
function KeyListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -46,7 +46,7 @@ function NewApiKeyListInstance(version) {
|
|
|
46
46
|
data,
|
|
47
47
|
headers,
|
|
48
48
|
});
|
|
49
|
-
operationPromise = operationPromise.then((payload) => new
|
|
49
|
+
operationPromise = operationPromise.then((payload) => new KeyInstance(operationVersion, payload));
|
|
50
50
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
51
51
|
return operationPromise;
|
|
52
52
|
};
|
|
@@ -58,8 +58,8 @@ function NewApiKeyListInstance(version) {
|
|
|
58
58
|
};
|
|
59
59
|
return instance;
|
|
60
60
|
}
|
|
61
|
-
exports.
|
|
62
|
-
class
|
|
61
|
+
exports.KeyListInstance = KeyListInstance;
|
|
62
|
+
class KeyInstance {
|
|
63
63
|
constructor(_version, payload) {
|
|
64
64
|
this._version = _version;
|
|
65
65
|
this.sid = payload.sid;
|
|
@@ -88,4 +88,4 @@ class NewApiKeyInstance {
|
|
|
88
88
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
exports.
|
|
91
|
+
exports.KeyInstance = KeyInstance;
|
|
@@ -2,6 +2,7 @@ import MarketplaceBase from "../MarketplaceBase";
|
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { AvailableAddOnListInstance } from "./v1/availableAddOn";
|
|
4
4
|
import { InstalledAddOnListInstance } from "./v1/installedAddOn";
|
|
5
|
+
import { ModuleDataListInstance } from "./v1/moduleData";
|
|
5
6
|
import { ModuleDataManagementListInstance } from "./v1/moduleDataManagement";
|
|
6
7
|
import { ReferralConversionListInstance } from "./v1/referralConversion";
|
|
7
8
|
export default class V1 extends Version {
|
|
@@ -15,6 +16,8 @@ export default class V1 extends Version {
|
|
|
15
16
|
protected _availableAddOns?: AvailableAddOnListInstance;
|
|
16
17
|
/** installedAddOns - { Twilio.Marketplace.V1.InstalledAddOnListInstance } resource */
|
|
17
18
|
protected _installedAddOns?: InstalledAddOnListInstance;
|
|
19
|
+
/** moduleData - { Twilio.Marketplace.V1.ModuleDataListInstance } resource */
|
|
20
|
+
protected _moduleData?: ModuleDataListInstance;
|
|
18
21
|
/** moduleDataManagement - { Twilio.Marketplace.V1.ModuleDataManagementListInstance } resource */
|
|
19
22
|
protected _moduleDataManagement?: ModuleDataManagementListInstance;
|
|
20
23
|
/** referralConversion - { Twilio.Marketplace.V1.ReferralConversionListInstance } resource */
|
|
@@ -23,6 +26,8 @@ export default class V1 extends Version {
|
|
|
23
26
|
get availableAddOns(): AvailableAddOnListInstance;
|
|
24
27
|
/** Getter for installedAddOns resource */
|
|
25
28
|
get installedAddOns(): InstalledAddOnListInstance;
|
|
29
|
+
/** Getter for moduleData resource */
|
|
30
|
+
get moduleData(): ModuleDataListInstance;
|
|
26
31
|
/** Getter for moduleDataManagement resource */
|
|
27
32
|
get moduleDataManagement(): ModuleDataManagementListInstance;
|
|
28
33
|
/** Getter for referralConversion resource */
|
|
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const availableAddOn_1 = require("./v1/availableAddOn");
|
|
21
21
|
const installedAddOn_1 = require("./v1/installedAddOn");
|
|
22
|
+
const moduleData_1 = require("./v1/moduleData");
|
|
22
23
|
const moduleDataManagement_1 = require("./v1/moduleDataManagement");
|
|
23
24
|
const referralConversion_1 = require("./v1/referralConversion");
|
|
24
25
|
class V1 extends Version_1.default {
|
|
@@ -42,6 +43,11 @@ class V1 extends Version_1.default {
|
|
|
42
43
|
this._installedAddOns || (0, installedAddOn_1.InstalledAddOnListInstance)(this);
|
|
43
44
|
return this._installedAddOns;
|
|
44
45
|
}
|
|
46
|
+
/** Getter for moduleData resource */
|
|
47
|
+
get moduleData() {
|
|
48
|
+
this._moduleData = this._moduleData || (0, moduleData_1.ModuleDataListInstance)(this);
|
|
49
|
+
return this._moduleData;
|
|
50
|
+
}
|
|
45
51
|
/** Getter for moduleDataManagement resource */
|
|
46
52
|
get moduleDataManagement() {
|
|
47
53
|
this._moduleDataManagement =
|
|
@@ -80,7 +80,7 @@ interface AvailableAddOnResource {
|
|
|
80
80
|
friendly_name: string;
|
|
81
81
|
description: string;
|
|
82
82
|
pricing_type: string;
|
|
83
|
-
configuration_schema:
|
|
83
|
+
configuration_schema: Record<string, object>;
|
|
84
84
|
url: string;
|
|
85
85
|
links: Record<string, string>;
|
|
86
86
|
}
|
|
@@ -108,7 +108,7 @@ export declare class AvailableAddOnInstance {
|
|
|
108
108
|
/**
|
|
109
109
|
* The JSON object with the configuration that must be provided when installing a given Add-on.
|
|
110
110
|
*/
|
|
111
|
-
configurationSchema:
|
|
111
|
+
configurationSchema: Record<string, object>;
|
|
112
112
|
/**
|
|
113
113
|
* The absolute URL of the resource.
|
|
114
114
|
*/
|
|
@@ -140,7 +140,7 @@ export declare class AvailableAddOnInstance {
|
|
|
140
140
|
friendlyName: string;
|
|
141
141
|
description: string;
|
|
142
142
|
pricingType: string;
|
|
143
|
-
configurationSchema:
|
|
143
|
+
configurationSchema: Record<string, object>;
|
|
144
144
|
url: string;
|
|
145
145
|
links: Record<string, string>;
|
|
146
146
|
};
|
|
@@ -133,7 +133,7 @@ interface InstalledAddOnResource {
|
|
|
133
133
|
account_sid: string;
|
|
134
134
|
friendly_name: string;
|
|
135
135
|
description: string;
|
|
136
|
-
configuration:
|
|
136
|
+
configuration: Record<string, object>;
|
|
137
137
|
unique_name: string;
|
|
138
138
|
date_created: Date;
|
|
139
139
|
date_updated: Date;
|
|
@@ -164,7 +164,7 @@ export declare class InstalledAddOnInstance {
|
|
|
164
164
|
/**
|
|
165
165
|
* The JSON object that represents the current configuration of installed Add-on.
|
|
166
166
|
*/
|
|
167
|
-
configuration:
|
|
167
|
+
configuration: Record<string, object>;
|
|
168
168
|
/**
|
|
169
169
|
* An application-defined string that uniquely identifies the resource.
|
|
170
170
|
*/
|
|
@@ -237,7 +237,7 @@ export declare class InstalledAddOnInstance {
|
|
|
237
237
|
accountSid: string;
|
|
238
238
|
friendlyName: string;
|
|
239
239
|
description: string;
|
|
240
|
-
configuration:
|
|
240
|
+
configuration: Record<string, object>;
|
|
241
241
|
uniqueName: string;
|
|
242
242
|
dateCreated: Date;
|
|
243
243
|
dateUpdated: Date;
|
|
@@ -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 create a ModuleDataInstance
|
|
6
|
+
*/
|
|
7
|
+
export interface ModuleDataListInstanceCreateOptions {
|
|
8
|
+
/** A JSON object containing essential attributes that define a Listing. */
|
|
9
|
+
moduleInfo?: string;
|
|
10
|
+
/** A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more. */
|
|
11
|
+
configuration?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ModuleDataSolution {
|
|
14
|
+
}
|
|
15
|
+
export interface ModuleDataListInstance {
|
|
16
|
+
_version: V1;
|
|
17
|
+
_solution: ModuleDataSolution;
|
|
18
|
+
_uri: string;
|
|
19
|
+
/**
|
|
20
|
+
* Create a ModuleDataInstance
|
|
21
|
+
*
|
|
22
|
+
* @param callback - Callback to handle processed record
|
|
23
|
+
*
|
|
24
|
+
* @returns Resolves to processed ModuleDataInstance
|
|
25
|
+
*/
|
|
26
|
+
create(callback?: (error: Error | null, item?: ModuleDataInstance) => any): Promise<ModuleDataInstance>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a ModuleDataInstance
|
|
29
|
+
*
|
|
30
|
+
* @param params - Parameter for request
|
|
31
|
+
* @param callback - Callback to handle processed record
|
|
32
|
+
*
|
|
33
|
+
* @returns Resolves to processed ModuleDataInstance
|
|
34
|
+
*/
|
|
35
|
+
create(params: ModuleDataListInstanceCreateOptions, callback?: (error: Error | null, item?: ModuleDataInstance) => any): Promise<ModuleDataInstance>;
|
|
36
|
+
/**
|
|
37
|
+
* Fetch a ModuleDataInstance
|
|
38
|
+
*
|
|
39
|
+
* @param callback - Callback to handle processed record
|
|
40
|
+
*
|
|
41
|
+
* @returns Resolves to processed ModuleDataInstance
|
|
42
|
+
*/
|
|
43
|
+
fetch(callback?: (error: Error | null, item?: ModuleDataInstance) => any): Promise<ModuleDataInstance>;
|
|
44
|
+
/**
|
|
45
|
+
* Provide a user-friendly representation
|
|
46
|
+
*/
|
|
47
|
+
toJSON(): any;
|
|
48
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
49
|
+
}
|
|
50
|
+
export declare function ModuleDataListInstance(version: V1): ModuleDataListInstance;
|
|
51
|
+
interface ModuleDataResource {
|
|
52
|
+
url: string;
|
|
53
|
+
sid: string;
|
|
54
|
+
description: Record<string, object>;
|
|
55
|
+
support: Record<string, object>;
|
|
56
|
+
policies: Record<string, object>;
|
|
57
|
+
module_info: Record<string, object>;
|
|
58
|
+
documentation: Record<string, object>;
|
|
59
|
+
configuration: Record<string, object>;
|
|
60
|
+
pricing: Record<string, object>;
|
|
61
|
+
listings: Array<Record<string, object>>;
|
|
62
|
+
}
|
|
63
|
+
export declare class ModuleDataInstance {
|
|
64
|
+
protected _version: V1;
|
|
65
|
+
constructor(_version: V1, payload: ModuleDataResource);
|
|
66
|
+
/**
|
|
67
|
+
* URL to query the subresource.
|
|
68
|
+
*/
|
|
69
|
+
url: string;
|
|
70
|
+
/**
|
|
71
|
+
* ModuleSid that identifies this Listing.
|
|
72
|
+
*/
|
|
73
|
+
sid: string;
|
|
74
|
+
/**
|
|
75
|
+
* A JSON object describing the module and is displayed under the Description tab of the Module detail page. You can define the main body of the description, highlight key features or aspects of the module and if applicable, provide code samples for developers
|
|
76
|
+
*/
|
|
77
|
+
description: Record<string, object>;
|
|
78
|
+
/**
|
|
79
|
+
* A JSON object containing information on how customers can obtain support for the module. Use this parameter to provide details such as contact information and support description.
|
|
80
|
+
*/
|
|
81
|
+
support: Record<string, object>;
|
|
82
|
+
/**
|
|
83
|
+
* A JSON object describing the module\'s privacy and legal policies and is displayed under the Policies tab of the Module detail page. The maximum file size for Policies is 5MB
|
|
84
|
+
*/
|
|
85
|
+
policies: Record<string, object>;
|
|
86
|
+
/**
|
|
87
|
+
* A JSON object containing essential attributes that define a module. This information is presented on the Module detail page in the Twilio Marketplace Catalog. You can pass the following attributes in the JSON object
|
|
88
|
+
*/
|
|
89
|
+
moduleInfo: Record<string, object>;
|
|
90
|
+
/**
|
|
91
|
+
* A JSON object for providing comprehensive information, instructions, and resources related to the module
|
|
92
|
+
*/
|
|
93
|
+
documentation: Record<string, object>;
|
|
94
|
+
/**
|
|
95
|
+
* A JSON object for providing listing specific configuration. Contains button setup, notification url, among others.
|
|
96
|
+
*/
|
|
97
|
+
configuration: Record<string, object>;
|
|
98
|
+
/**
|
|
99
|
+
* A JSON object for providing Listing specific pricing information.
|
|
100
|
+
*/
|
|
101
|
+
pricing: Record<string, object>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
listings: Array<Record<string, object>>;
|
|
106
|
+
/**
|
|
107
|
+
* Provide a user-friendly representation
|
|
108
|
+
*
|
|
109
|
+
* @returns Object
|
|
110
|
+
*/
|
|
111
|
+
toJSON(): {
|
|
112
|
+
url: string;
|
|
113
|
+
sid: string;
|
|
114
|
+
description: Record<string, object>;
|
|
115
|
+
support: Record<string, object>;
|
|
116
|
+
policies: Record<string, object>;
|
|
117
|
+
moduleInfo: Record<string, object>;
|
|
118
|
+
documentation: Record<string, object>;
|
|
119
|
+
configuration: Record<string, object>;
|
|
120
|
+
pricing: Record<string, object>;
|
|
121
|
+
listings: Record<string, object>[];
|
|
122
|
+
};
|
|
123
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
124
|
+
}
|
|
125
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Marketplace
|
|
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.ModuleDataInstance = exports.ModuleDataListInstance = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../base/serialize");
|
|
20
|
+
function ModuleDataListInstance(version) {
|
|
21
|
+
const instance = {};
|
|
22
|
+
instance._version = version;
|
|
23
|
+
instance._solution = {};
|
|
24
|
+
instance._uri = `/Listings`;
|
|
25
|
+
instance.create = function create(params, callback) {
|
|
26
|
+
if (params instanceof Function) {
|
|
27
|
+
callback = params;
|
|
28
|
+
params = {};
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
params = params || {};
|
|
32
|
+
}
|
|
33
|
+
let data = {};
|
|
34
|
+
if (params["moduleInfo"] !== undefined)
|
|
35
|
+
data["ModuleInfo"] = params["moduleInfo"];
|
|
36
|
+
if (params["configuration"] !== undefined)
|
|
37
|
+
data["Configuration"] = params["configuration"];
|
|
38
|
+
const headers = {};
|
|
39
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
40
|
+
headers["Accept"] = "application/json";
|
|
41
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
42
|
+
uri: instance._uri,
|
|
43
|
+
method: "post",
|
|
44
|
+
data,
|
|
45
|
+
headers,
|
|
46
|
+
});
|
|
47
|
+
operationPromise = operationPromise.then((payload) => new ModuleDataInstance(operationVersion, payload));
|
|
48
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
49
|
+
return operationPromise;
|
|
50
|
+
};
|
|
51
|
+
instance.fetch = function fetch(callback) {
|
|
52
|
+
const headers = {};
|
|
53
|
+
headers["Accept"] = "application/json";
|
|
54
|
+
let operationVersion = version, operationPromise = operationVersion.fetch({
|
|
55
|
+
uri: instance._uri,
|
|
56
|
+
method: "get",
|
|
57
|
+
headers,
|
|
58
|
+
});
|
|
59
|
+
operationPromise = operationPromise.then((payload) => new ModuleDataInstance(operationVersion, payload));
|
|
60
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
61
|
+
return operationPromise;
|
|
62
|
+
};
|
|
63
|
+
instance.toJSON = function toJSON() {
|
|
64
|
+
return instance._solution;
|
|
65
|
+
};
|
|
66
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
67
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
68
|
+
};
|
|
69
|
+
return instance;
|
|
70
|
+
}
|
|
71
|
+
exports.ModuleDataListInstance = ModuleDataListInstance;
|
|
72
|
+
class ModuleDataInstance {
|
|
73
|
+
constructor(_version, payload) {
|
|
74
|
+
this._version = _version;
|
|
75
|
+
this.url = payload.url;
|
|
76
|
+
this.sid = payload.sid;
|
|
77
|
+
this.description = payload.description;
|
|
78
|
+
this.support = payload.support;
|
|
79
|
+
this.policies = payload.policies;
|
|
80
|
+
this.moduleInfo = payload.module_info;
|
|
81
|
+
this.documentation = payload.documentation;
|
|
82
|
+
this.configuration = payload.configuration;
|
|
83
|
+
this.pricing = payload.pricing;
|
|
84
|
+
this.listings = payload.listings;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Provide a user-friendly representation
|
|
88
|
+
*
|
|
89
|
+
* @returns Object
|
|
90
|
+
*/
|
|
91
|
+
toJSON() {
|
|
92
|
+
return {
|
|
93
|
+
url: this.url,
|
|
94
|
+
sid: this.sid,
|
|
95
|
+
description: this.description,
|
|
96
|
+
support: this.support,
|
|
97
|
+
policies: this.policies,
|
|
98
|
+
moduleInfo: this.moduleInfo,
|
|
99
|
+
documentation: this.documentation,
|
|
100
|
+
configuration: this.configuration,
|
|
101
|
+
pricing: this.pricing,
|
|
102
|
+
listings: this.listings,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
[util_1.inspect.custom](_depth, options) {
|
|
106
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.ModuleDataInstance = ModuleDataInstance;
|
|
@@ -73,13 +73,14 @@ export declare class ModuleDataManagementContextImpl implements ModuleDataManage
|
|
|
73
73
|
interface ModuleDataManagementResource {
|
|
74
74
|
url: string;
|
|
75
75
|
sid: string;
|
|
76
|
-
description:
|
|
77
|
-
support:
|
|
78
|
-
policies:
|
|
79
|
-
module_info:
|
|
80
|
-
documentation:
|
|
81
|
-
configuration:
|
|
82
|
-
pricing:
|
|
76
|
+
description: Record<string, object>;
|
|
77
|
+
support: Record<string, object>;
|
|
78
|
+
policies: Record<string, object>;
|
|
79
|
+
module_info: Record<string, object>;
|
|
80
|
+
documentation: Record<string, object>;
|
|
81
|
+
configuration: Record<string, object>;
|
|
82
|
+
pricing: Record<string, object>;
|
|
83
|
+
listings: Array<Record<string, object>>;
|
|
83
84
|
}
|
|
84
85
|
export declare class ModuleDataManagementInstance {
|
|
85
86
|
protected _version: V1;
|
|
@@ -97,31 +98,35 @@ export declare class ModuleDataManagementInstance {
|
|
|
97
98
|
/**
|
|
98
99
|
* A JSON object describing the module and is displayed under the Description tab of the Module detail page. You can define the main body of the description, highlight key features or aspects of the module and if applicable, provide code samples for developers
|
|
99
100
|
*/
|
|
100
|
-
description:
|
|
101
|
+
description: Record<string, object>;
|
|
101
102
|
/**
|
|
102
103
|
* A JSON object containing information on how customers can obtain support for the module. Use this parameter to provide details such as contact information and support description.
|
|
103
104
|
*/
|
|
104
|
-
support:
|
|
105
|
+
support: Record<string, object>;
|
|
105
106
|
/**
|
|
106
107
|
* A JSON object describing the module\'s privacy and legal policies and is displayed under the Policies tab of the Module detail page. The maximum file size for Policies is 5MB
|
|
107
108
|
*/
|
|
108
|
-
policies:
|
|
109
|
+
policies: Record<string, object>;
|
|
109
110
|
/**
|
|
110
111
|
* A JSON object containing essential attributes that define a module. This information is presented on the Module detail page in the Twilio Marketplace Catalog. You can pass the following attributes in the JSON object
|
|
111
112
|
*/
|
|
112
|
-
moduleInfo:
|
|
113
|
+
moduleInfo: Record<string, object>;
|
|
113
114
|
/**
|
|
114
115
|
* A JSON object for providing comprehensive information, instructions, and resources related to the module
|
|
115
116
|
*/
|
|
116
|
-
documentation:
|
|
117
|
+
documentation: Record<string, object>;
|
|
117
118
|
/**
|
|
118
119
|
* A JSON object for providing listing specific configuration. Contains button setup, notification url, among others.
|
|
119
120
|
*/
|
|
120
|
-
configuration:
|
|
121
|
+
configuration: Record<string, object>;
|
|
121
122
|
/**
|
|
122
123
|
* A JSON object for providing Listing specific pricing information.
|
|
123
124
|
*/
|
|
124
|
-
pricing:
|
|
125
|
+
pricing: Record<string, object>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
listings: Array<Record<string, object>>;
|
|
125
130
|
private get _proxy();
|
|
126
131
|
/**
|
|
127
132
|
* Fetch a ModuleDataManagementInstance
|
|
@@ -156,13 +161,14 @@ export declare class ModuleDataManagementInstance {
|
|
|
156
161
|
toJSON(): {
|
|
157
162
|
url: string;
|
|
158
163
|
sid: string;
|
|
159
|
-
description:
|
|
160
|
-
support:
|
|
161
|
-
policies:
|
|
162
|
-
moduleInfo:
|
|
163
|
-
documentation:
|
|
164
|
-
configuration:
|
|
165
|
-
pricing:
|
|
164
|
+
description: Record<string, object>;
|
|
165
|
+
support: Record<string, object>;
|
|
166
|
+
policies: Record<string, object>;
|
|
167
|
+
moduleInfo: Record<string, object>;
|
|
168
|
+
documentation: Record<string, object>;
|
|
169
|
+
configuration: Record<string, object>;
|
|
170
|
+
pricing: Record<string, object>;
|
|
171
|
+
listings: Record<string, object>[];
|
|
166
172
|
};
|
|
167
173
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
168
174
|
}
|
|
@@ -102,6 +102,7 @@ class ModuleDataManagementInstance {
|
|
|
102
102
|
this.documentation = payload.documentation;
|
|
103
103
|
this.configuration = payload.configuration;
|
|
104
104
|
this.pricing = payload.pricing;
|
|
105
|
+
this.listings = payload.listings;
|
|
105
106
|
this._solution = { sid: sid || this.sid };
|
|
106
107
|
}
|
|
107
108
|
get _proxy() {
|
|
@@ -139,6 +140,7 @@ class ModuleDataManagementInstance {
|
|
|
139
140
|
documentation: this.documentation,
|
|
140
141
|
configuration: this.configuration,
|
|
141
142
|
pricing: this.pricing,
|
|
143
|
+
listings: this.listings,
|
|
142
144
|
};
|
|
143
145
|
}
|
|
144
146
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -38,7 +38,7 @@ export interface ServiceContextUpdateOptions {
|
|
|
38
38
|
fallbackToLongCode?: boolean;
|
|
39
39
|
/** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */
|
|
40
40
|
areaCodeGeomatch?: boolean;
|
|
41
|
-
/** How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. */
|
|
41
|
+
/** How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`. */
|
|
42
42
|
validityPeriod?: number;
|
|
43
43
|
/** Reserved. */
|
|
44
44
|
synchronousValidation?: boolean;
|
|
@@ -75,7 +75,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
75
75
|
fallbackToLongCode?: boolean;
|
|
76
76
|
/** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */
|
|
77
77
|
areaCodeGeomatch?: boolean;
|
|
78
|
-
/** How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. */
|
|
78
|
+
/** How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`. */
|
|
79
79
|
validityPeriod?: number;
|
|
80
80
|
/** Reserved. */
|
|
81
81
|
synchronousValidation?: boolean;
|
|
@@ -293,7 +293,7 @@ export declare class ServiceInstance {
|
|
|
293
293
|
*/
|
|
294
294
|
synchronousValidation: boolean;
|
|
295
295
|
/**
|
|
296
|
-
* How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
|
296
|
+
* How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. Default value is `14,400`.
|
|
297
297
|
*/
|
|
298
298
|
validityPeriod: number;
|
|
299
299
|
/**
|
package/lib/rest/numbers/V1.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNum
|
|
|
7
7
|
import { PortingPortabilityListInstance } from "./v1/portingPortability";
|
|
8
8
|
import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
|
|
9
9
|
import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
|
|
10
|
-
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
|
|
11
10
|
import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
|
|
11
|
+
import { WebhookListInstance } from "./v1/webhook";
|
|
12
12
|
export default class V1 extends Version {
|
|
13
13
|
/**
|
|
14
14
|
* Initialize the V1 version of Numbers
|
|
@@ -30,10 +30,10 @@ export default class V1 extends Version {
|
|
|
30
30
|
protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
|
|
31
31
|
/** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
|
|
32
32
|
protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
|
|
33
|
-
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
|
|
34
|
-
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
|
|
35
33
|
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
|
|
36
34
|
protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
|
|
35
|
+
/** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
|
|
36
|
+
protected _webhook?: WebhookListInstance;
|
|
37
37
|
/** Getter for bulkEligibilities resource */
|
|
38
38
|
get bulkEligibilities(): BulkEligibilityListInstance;
|
|
39
39
|
/** Getter for eligibilities resource */
|
|
@@ -48,8 +48,8 @@ export default class V1 extends Version {
|
|
|
48
48
|
get portingWebhookConfigurations(): PortingWebhookConfigurationListInstance;
|
|
49
49
|
/** Getter for portingWebhookConfigurationsDelete resource */
|
|
50
50
|
get portingWebhookConfigurationsDelete(): PortingWebhookConfigurationDeleteListInstance;
|
|
51
|
-
/** Getter for portingWebhookConfigurationFetch resource */
|
|
52
|
-
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance;
|
|
53
51
|
/** Getter for signingRequestConfigurations resource */
|
|
54
52
|
get signingRequestConfigurations(): SigningRequestConfigurationListInstance;
|
|
53
|
+
/** Getter for webhook resource */
|
|
54
|
+
get webhook(): WebhookListInstance;
|
|
55
55
|
}
|
package/lib/rest/numbers/V1.js
CHANGED
|
@@ -24,8 +24,8 @@ const portingPortInPhoneNumber_1 = require("./v1/portingPortInPhoneNumber");
|
|
|
24
24
|
const portingPortability_1 = require("./v1/portingPortability");
|
|
25
25
|
const portingWebhookConfiguration_1 = require("./v1/portingWebhookConfiguration");
|
|
26
26
|
const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
|
|
27
|
-
const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
|
|
28
27
|
const signingRequestConfiguration_1 = require("./v1/signingRequestConfiguration");
|
|
28
|
+
const webhook_1 = require("./v1/webhook");
|
|
29
29
|
class V1 extends Version_1.default {
|
|
30
30
|
/**
|
|
31
31
|
* Initialize the V1 version of Numbers
|
|
@@ -79,13 +79,6 @@ class V1 extends Version_1.default {
|
|
|
79
79
|
(0, portingWebhookConfigurationDelete_1.PortingWebhookConfigurationDeleteListInstance)(this);
|
|
80
80
|
return this._portingWebhookConfigurationsDelete;
|
|
81
81
|
}
|
|
82
|
-
/** Getter for portingWebhookConfigurationFetch resource */
|
|
83
|
-
get portingWebhookConfigurationFetch() {
|
|
84
|
-
this._portingWebhookConfigurationFetch =
|
|
85
|
-
this._portingWebhookConfigurationFetch ||
|
|
86
|
-
(0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
|
|
87
|
-
return this._portingWebhookConfigurationFetch;
|
|
88
|
-
}
|
|
89
82
|
/** Getter for signingRequestConfigurations resource */
|
|
90
83
|
get signingRequestConfigurations() {
|
|
91
84
|
this._signingRequestConfigurations =
|
|
@@ -93,5 +86,10 @@ class V1 extends Version_1.default {
|
|
|
93
86
|
(0, signingRequestConfiguration_1.SigningRequestConfigurationListInstance)(this);
|
|
94
87
|
return this._signingRequestConfigurations;
|
|
95
88
|
}
|
|
89
|
+
/** Getter for webhook resource */
|
|
90
|
+
get webhook() {
|
|
91
|
+
this._webhook = this._webhook || (0, webhook_1.WebhookListInstance)(this);
|
|
92
|
+
return this._webhook;
|
|
93
|
+
}
|
|
96
94
|
}
|
|
97
95
|
exports.default = V1;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../V1";
|
|
4
|
-
export interface
|
|
4
|
+
export interface WebhookSolution {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface WebhookListInstance {
|
|
7
7
|
_version: V1;
|
|
8
|
-
_solution:
|
|
8
|
+
_solution: WebhookSolution;
|
|
9
9
|
_uri: string;
|
|
10
10
|
/**
|
|
11
|
-
* Fetch a
|
|
11
|
+
* Fetch a WebhookInstance
|
|
12
12
|
*
|
|
13
13
|
* @param callback - Callback to handle processed record
|
|
14
14
|
*
|
|
15
|
-
* @returns Resolves to processed
|
|
15
|
+
* @returns Resolves to processed WebhookInstance
|
|
16
16
|
*/
|
|
17
|
-
fetch(callback?: (error: Error | null, item?:
|
|
17
|
+
fetch(callback?: (error: Error | null, item?: WebhookInstance) => any): Promise<WebhookInstance>;
|
|
18
18
|
/**
|
|
19
19
|
* Provide a user-friendly representation
|
|
20
20
|
*/
|
|
21
21
|
toJSON(): any;
|
|
22
22
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
23
23
|
}
|
|
24
|
-
export declare function
|
|
25
|
-
interface
|
|
24
|
+
export declare function WebhookListInstance(version: V1): WebhookListInstance;
|
|
25
|
+
interface WebhookResource {
|
|
26
26
|
url: string;
|
|
27
27
|
port_in_target_url: string;
|
|
28
28
|
port_out_target_url: string;
|
|
@@ -30,9 +30,9 @@ interface PortingWebhookConfigurationFetchResource {
|
|
|
30
30
|
port_in_target_date_created: Date;
|
|
31
31
|
port_out_target_date_created: Date;
|
|
32
32
|
}
|
|
33
|
-
export declare class
|
|
33
|
+
export declare class WebhookInstance {
|
|
34
34
|
protected _version: V1;
|
|
35
|
-
constructor(_version: V1, payload:
|
|
35
|
+
constructor(_version: V1, payload: WebhookResource);
|
|
36
36
|
/**
|
|
37
37
|
* The URL of the webhook configuration request
|
|
38
38
|
*/
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.WebhookInstance = exports.WebhookListInstance = void 0;
|
|
17
17
|
const util_1 = require("util");
|
|
18
18
|
const deserialize = require("../../../base/deserialize");
|
|
19
19
|
const serialize = require("../../../base/serialize");
|
|
20
|
-
function
|
|
20
|
+
function WebhookListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -30,7 +30,7 @@ function PortingWebhookConfigurationFetchListInstance(version) {
|
|
|
30
30
|
method: "get",
|
|
31
31
|
headers,
|
|
32
32
|
});
|
|
33
|
-
operationPromise = operationPromise.then((payload) => new
|
|
33
|
+
operationPromise = operationPromise.then((payload) => new WebhookInstance(operationVersion, payload));
|
|
34
34
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
35
35
|
return operationPromise;
|
|
36
36
|
};
|
|
@@ -42,8 +42,8 @@ function PortingWebhookConfigurationFetchListInstance(version) {
|
|
|
42
42
|
};
|
|
43
43
|
return instance;
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
46
|
-
class
|
|
45
|
+
exports.WebhookListInstance = WebhookListInstance;
|
|
46
|
+
class WebhookInstance {
|
|
47
47
|
constructor(_version, payload) {
|
|
48
48
|
this._version = _version;
|
|
49
49
|
this.url = payload.url;
|
|
@@ -72,4 +72,4 @@ class PortingWebhookConfigurationFetchInstance {
|
|
|
72
72
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
75
|
+
exports.WebhookInstance = WebhookInstance;
|