twilio 5.4.0 → 5.4.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/rest/api/v2010/account/call/transcription.d.ts +1 -1
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.d.ts +6 -0
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.js +2 -0
- package/lib/rest/assistants/v1/assistant.d.ts +9 -5
- package/lib/rest/assistants/v1/knowledge.d.ts +14 -0
- package/lib/rest/assistants/v1/knowledge.js +2 -0
- package/lib/rest/content/v1/content.d.ts +0 -6
- package/lib/rest/content/v1/content.js +1 -4
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +1 -1
- package/lib/rest/insights/v1/call/callSummary.d.ts +1 -1
- package/lib/rest/insights/v1/callSummaries.d.ts +1 -1
- package/lib/rest/numbers/V1.d.ts +5 -5
- package/lib/rest/numbers/V1.js +8 -6
- package/lib/rest/numbers/v1/{webhook.d.ts → portingWebhookConfigurationFetch.d.ts} +10 -10
- package/lib/rest/numbers/v1/{webhook.js → portingWebhookConfigurationFetch.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 or the unique name of the [
|
|
44
|
+
/** The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. */
|
|
45
45
|
intelligenceService?: string;
|
|
46
46
|
}
|
|
47
47
|
export interface TranscriptionContext {
|
|
@@ -90,6 +90,7 @@ interface AssistantsKnowledgeResource {
|
|
|
90
90
|
status: string;
|
|
91
91
|
type: string;
|
|
92
92
|
url: string;
|
|
93
|
+
embedding_model: string;
|
|
93
94
|
date_created: Date;
|
|
94
95
|
date_updated: Date;
|
|
95
96
|
}
|
|
@@ -130,6 +131,10 @@ export declare class AssistantsKnowledgeInstance {
|
|
|
130
131
|
* The url of the knowledge resource.
|
|
131
132
|
*/
|
|
132
133
|
url: string;
|
|
134
|
+
/**
|
|
135
|
+
* The embedding model to be used for the knowledge source.
|
|
136
|
+
*/
|
|
137
|
+
embeddingModel: string;
|
|
133
138
|
/**
|
|
134
139
|
* The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
135
140
|
*/
|
|
@@ -169,6 +174,7 @@ export declare class AssistantsKnowledgeInstance {
|
|
|
169
174
|
status: string;
|
|
170
175
|
type: string;
|
|
171
176
|
url: string;
|
|
177
|
+
embeddingModel: string;
|
|
172
178
|
dateCreated: Date;
|
|
173
179
|
dateUpdated: Date;
|
|
174
180
|
};
|
|
@@ -81,6 +81,7 @@ class AssistantsKnowledgeInstance {
|
|
|
81
81
|
this.status = payload.status;
|
|
82
82
|
this.type = payload.type;
|
|
83
83
|
this.url = payload.url;
|
|
84
|
+
this.embeddingModel = payload.embedding_model;
|
|
84
85
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
85
86
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
86
87
|
this._solution = { assistantId, id: id || this.id };
|
|
@@ -126,6 +127,7 @@ class AssistantsKnowledgeInstance {
|
|
|
126
127
|
status: this.status,
|
|
127
128
|
type: this.type,
|
|
128
129
|
url: this.url,
|
|
130
|
+
embeddingModel: this.embeddingModel,
|
|
129
131
|
dateCreated: this.dateCreated,
|
|
130
132
|
dateUpdated: this.dateUpdated,
|
|
131
133
|
};
|
|
@@ -41,7 +41,7 @@ export declare class AssistantsV1ServiceKnowledge {
|
|
|
41
41
|
/**
|
|
42
42
|
* The description of knowledge.
|
|
43
43
|
*/
|
|
44
|
-
"id"
|
|
44
|
+
"id": string;
|
|
45
45
|
/**
|
|
46
46
|
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource.
|
|
47
47
|
*/
|
|
@@ -53,7 +53,7 @@ export declare class AssistantsV1ServiceKnowledge {
|
|
|
53
53
|
/**
|
|
54
54
|
* The name of the knowledge source.
|
|
55
55
|
*/
|
|
56
|
-
"name"
|
|
56
|
+
"name": string;
|
|
57
57
|
/**
|
|
58
58
|
* The status of processing the knowledge source (\'QUEUED\', \'PROCESSING\', \'COMPLETED\', \'FAILED\')
|
|
59
59
|
*/
|
|
@@ -61,19 +61,23 @@ export declare class AssistantsV1ServiceKnowledge {
|
|
|
61
61
|
/**
|
|
62
62
|
* The type of knowledge source (\'Web\', \'Database\', \'Text\', \'File\')
|
|
63
63
|
*/
|
|
64
|
-
"type"
|
|
64
|
+
"type": string;
|
|
65
65
|
/**
|
|
66
66
|
* The url of the knowledge resource.
|
|
67
67
|
*/
|
|
68
68
|
"url"?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The embedding model to be used for the knowledge source.
|
|
71
|
+
*/
|
|
72
|
+
"embedding_model"?: string;
|
|
69
73
|
/**
|
|
70
74
|
* The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
71
75
|
*/
|
|
72
|
-
"date_created"
|
|
76
|
+
"date_created": Date;
|
|
73
77
|
/**
|
|
74
78
|
* The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
75
79
|
*/
|
|
76
|
-
"date_updated"
|
|
80
|
+
"date_updated": Date;
|
|
77
81
|
}
|
|
78
82
|
export declare class AssistantsV1ServiceSegmentCredential {
|
|
79
83
|
/**
|
|
@@ -27,6 +27,10 @@ export declare class AssistantsV1ServiceCreateKnowledgeRequest {
|
|
|
27
27
|
* The type of the knowledge source.
|
|
28
28
|
*/
|
|
29
29
|
"type": string;
|
|
30
|
+
/**
|
|
31
|
+
* The embedding model to be used for the knowledge source. It\'s required for \'Database\' type but disallowed for other types.
|
|
32
|
+
*/
|
|
33
|
+
"embedding_model"?: string;
|
|
30
34
|
}
|
|
31
35
|
export declare class AssistantsV1ServiceCreatePolicyRequest {
|
|
32
36
|
/**
|
|
@@ -65,6 +69,10 @@ export declare class AssistantsV1ServiceUpdateKnowledgeRequest {
|
|
|
65
69
|
* The description of the knowledge source.
|
|
66
70
|
*/
|
|
67
71
|
"type"?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The embedding model to be used for the knowledge source. It\'s only applicable to \'Database\' type.
|
|
74
|
+
*/
|
|
75
|
+
"embedding_model"?: string;
|
|
68
76
|
}
|
|
69
77
|
/**
|
|
70
78
|
* Options to pass to update a KnowledgeInstance
|
|
@@ -197,6 +205,7 @@ interface KnowledgeResource {
|
|
|
197
205
|
status: string;
|
|
198
206
|
type: string;
|
|
199
207
|
url: string;
|
|
208
|
+
embedding_model: string;
|
|
200
209
|
date_created: Date;
|
|
201
210
|
date_updated: Date;
|
|
202
211
|
}
|
|
@@ -237,6 +246,10 @@ export declare class KnowledgeInstance {
|
|
|
237
246
|
* The url of the knowledge resource.
|
|
238
247
|
*/
|
|
239
248
|
url: string;
|
|
249
|
+
/**
|
|
250
|
+
* The embedding model to be used for the knowledge source.
|
|
251
|
+
*/
|
|
252
|
+
embeddingModel: string;
|
|
240
253
|
/**
|
|
241
254
|
* The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
242
255
|
*/
|
|
@@ -302,6 +315,7 @@ export declare class KnowledgeInstance {
|
|
|
302
315
|
status: string;
|
|
303
316
|
type: string;
|
|
304
317
|
url: string;
|
|
318
|
+
embeddingModel: string;
|
|
305
319
|
dateCreated: Date;
|
|
306
320
|
dateUpdated: Date;
|
|
307
321
|
};
|
|
@@ -127,6 +127,7 @@ class KnowledgeInstance {
|
|
|
127
127
|
this.status = payload.status;
|
|
128
128
|
this.type = payload.type;
|
|
129
129
|
this.url = payload.url;
|
|
130
|
+
this.embeddingModel = payload.embedding_model;
|
|
130
131
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
131
132
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
132
133
|
this._solution = { id: id || this.id };
|
|
@@ -187,6 +188,7 @@ class KnowledgeInstance {
|
|
|
187
188
|
status: this.status,
|
|
188
189
|
type: this.type,
|
|
189
190
|
url: this.url,
|
|
191
|
+
embeddingModel: this.embeddingModel,
|
|
190
192
|
dateCreated: this.dateCreated,
|
|
191
193
|
dateUpdated: this.dateUpdated,
|
|
192
194
|
};
|
|
@@ -79,12 +79,6 @@ export declare class FlowsPage {
|
|
|
79
79
|
export declare class FlowsPageComponent {
|
|
80
80
|
"label": string;
|
|
81
81
|
"type": string;
|
|
82
|
-
"text"?: string;
|
|
83
|
-
"options"?: Array<FlowsPageComponentSelectItem>;
|
|
84
|
-
}
|
|
85
|
-
export declare class FlowsPageComponentSelectItem {
|
|
86
|
-
"id": string;
|
|
87
|
-
"title": string;
|
|
88
82
|
}
|
|
89
83
|
export declare class ListItem {
|
|
90
84
|
"id": string;
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.ContentPage = exports.ContentListInstance = exports.ContentInstance = exports.ContentContextImpl = exports.WhatsappCard = exports.WhatsappAuthentication = exports.Types = exports.TwilioText = exports.TwilioQuickReply = exports.TwilioMedia = exports.TwilioLocation = exports.TwilioListPicker = exports.TwilioFlows = exports.TwilioCatalog = exports.TwilioCarousel = exports.TwilioCard = exports.TwilioCallToAction = exports.QuickReplyAction = exports.ListItem = exports.
|
|
19
|
+
exports.ContentPage = exports.ContentListInstance = exports.ContentInstance = exports.ContentContextImpl = exports.WhatsappCard = exports.WhatsappAuthentication = exports.Types = exports.TwilioText = exports.TwilioQuickReply = exports.TwilioMedia = exports.TwilioLocation = exports.TwilioListPicker = exports.TwilioFlows = exports.TwilioCatalog = exports.TwilioCarousel = exports.TwilioCard = exports.TwilioCallToAction = exports.QuickReplyAction = exports.ListItem = exports.FlowsPageComponent = exports.FlowsPage = exports.ContentCreateRequest = exports.CatalogItem = exports.CarouselCard = exports.CarouselAction = exports.CardAction = exports.CallToActionAction = exports.AuthenticationAction = void 0;
|
|
20
20
|
const util_1 = require("util");
|
|
21
21
|
const Page_1 = __importDefault(require("../../../base/Page"));
|
|
22
22
|
const deserialize = require("../../../base/deserialize");
|
|
@@ -54,9 +54,6 @@ exports.FlowsPage = FlowsPage;
|
|
|
54
54
|
class FlowsPageComponent {
|
|
55
55
|
}
|
|
56
56
|
exports.FlowsPageComponent = FlowsPageComponent;
|
|
57
|
-
class FlowsPageComponentSelectItem {
|
|
58
|
-
}
|
|
59
|
-
exports.FlowsPageComponentSelectItem = FlowsPageComponentSelectItem;
|
|
60
57
|
class ListItem {
|
|
61
58
|
}
|
|
62
59
|
exports.ListItem = ListItem;
|
|
@@ -5,7 +5,7 @@ import Response from "../../../http/response";
|
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
export type AddressConfigurationAutoCreationType = "webhook" | "studio" | "default";
|
|
7
7
|
export type AddressConfigurationMethod = "GET" | "POST";
|
|
8
|
-
export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm" | "email";
|
|
8
|
+
export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm" | "email" | "rcs";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a AddressConfigurationInstance
|
|
11
11
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import V1 from "../../V1";
|
|
4
4
|
export type CallSummaryAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
|
|
5
5
|
export type CallSummaryCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
|
|
6
|
-
export type CallSummaryCallType = "carrier" | "sip" | "trunking" | "client";
|
|
6
|
+
export type CallSummaryCallType = "carrier" | "sip" | "trunking" | "client" | "whatsapp";
|
|
7
7
|
export type CallSummaryProcessingState = "complete" | "partial";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to fetch a CallSummaryInstance
|
|
@@ -5,7 +5,7 @@ import Response from "../../../http/response";
|
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
export type CallSummariesAnsweredBy = "unknown" | "machine_start" | "machine_end_beep" | "machine_end_silence" | "machine_end_other" | "human" | "fax";
|
|
7
7
|
export type CallSummariesCallState = "ringing" | "completed" | "busy" | "fail" | "noanswer" | "canceled" | "answered" | "undialed";
|
|
8
|
-
export type CallSummariesCallType = "carrier" | "sip" | "trunking" | "client";
|
|
8
|
+
export type CallSummariesCallType = "carrier" | "sip" | "trunking" | "client" | "whatsapp";
|
|
9
9
|
export type CallSummariesProcessingState = "complete" | "partial";
|
|
10
10
|
export type CallSummariesProcessingStateRequest = "completed" | "started" | "partial" | "all";
|
|
11
11
|
export type CallSummariesSortBy = "start_time" | "end_time";
|
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";
|
|
10
11
|
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;
|
|
33
35
|
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
|
|
34
36
|
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;
|
|
51
53
|
/** Getter for signingRequestConfigurations resource */
|
|
52
54
|
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");
|
|
27
28
|
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,6 +79,13 @@ 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
|
+
}
|
|
82
89
|
/** Getter for signingRequestConfigurations resource */
|
|
83
90
|
get signingRequestConfigurations() {
|
|
84
91
|
this._signingRequestConfigurations =
|
|
@@ -86,10 +93,5 @@ class V1 extends Version_1.default {
|
|
|
86
93
|
(0, signingRequestConfiguration_1.SigningRequestConfigurationListInstance)(this);
|
|
87
94
|
return this._signingRequestConfigurations;
|
|
88
95
|
}
|
|
89
|
-
/** Getter for webhook resource */
|
|
90
|
-
get webhook() {
|
|
91
|
-
this._webhook = this._webhook || (0, webhook_1.WebhookListInstance)(this);
|
|
92
|
-
return this._webhook;
|
|
93
|
-
}
|
|
94
96
|
}
|
|
95
97
|
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 PortingWebhookConfigurationFetchSolution {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface PortingWebhookConfigurationFetchListInstance {
|
|
7
7
|
_version: V1;
|
|
8
|
-
_solution:
|
|
8
|
+
_solution: PortingWebhookConfigurationFetchSolution;
|
|
9
9
|
_uri: string;
|
|
10
10
|
/**
|
|
11
|
-
* Fetch a
|
|
11
|
+
* Fetch a PortingWebhookConfigurationFetchInstance
|
|
12
12
|
*
|
|
13
13
|
* @param callback - Callback to handle processed record
|
|
14
14
|
*
|
|
15
|
-
* @returns Resolves to processed
|
|
15
|
+
* @returns Resolves to processed PortingWebhookConfigurationFetchInstance
|
|
16
16
|
*/
|
|
17
|
-
fetch(callback?: (error: Error | null, item?:
|
|
17
|
+
fetch(callback?: (error: Error | null, item?: PortingWebhookConfigurationFetchInstance) => any): Promise<PortingWebhookConfigurationFetchInstance>;
|
|
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 PortingWebhookConfigurationFetchListInstance(version: V1): PortingWebhookConfigurationFetchListInstance;
|
|
25
|
+
interface PortingWebhookConfigurationFetchResource {
|
|
26
26
|
url: string;
|
|
27
27
|
port_in_target_url: string;
|
|
28
28
|
port_out_target_url: string;
|
|
@@ -30,9 +30,9 @@ interface WebhookResource {
|
|
|
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 PortingWebhookConfigurationFetchInstance {
|
|
34
34
|
protected _version: V1;
|
|
35
|
-
constructor(_version: V1, payload:
|
|
35
|
+
constructor(_version: V1, payload: PortingWebhookConfigurationFetchResource);
|
|
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.PortingWebhookConfigurationFetchInstance = exports.PortingWebhookConfigurationFetchListInstance = 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 PortingWebhookConfigurationFetchListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -30,7 +30,7 @@ function WebhookListInstance(version) {
|
|
|
30
30
|
method: "get",
|
|
31
31
|
headers,
|
|
32
32
|
});
|
|
33
|
-
operationPromise = operationPromise.then((payload) => new
|
|
33
|
+
operationPromise = operationPromise.then((payload) => new PortingWebhookConfigurationFetchInstance(operationVersion, payload));
|
|
34
34
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
35
35
|
return operationPromise;
|
|
36
36
|
};
|
|
@@ -42,8 +42,8 @@ function WebhookListInstance(version) {
|
|
|
42
42
|
};
|
|
43
43
|
return instance;
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
46
|
-
class
|
|
45
|
+
exports.PortingWebhookConfigurationFetchListInstance = PortingWebhookConfigurationFetchListInstance;
|
|
46
|
+
class PortingWebhookConfigurationFetchInstance {
|
|
47
47
|
constructor(_version, payload) {
|
|
48
48
|
this._version = _version;
|
|
49
49
|
this.url = payload.url;
|
|
@@ -72,4 +72,4 @@ class WebhookInstance {
|
|
|
72
72
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
75
|
+
exports.PortingWebhookConfigurationFetchInstance = PortingWebhookConfigurationFetchInstance;
|