twilio 5.1.0 → 5.2.0

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.
Files changed (45) hide show
  1. package/lib/base/BaseTwilio.js +2 -1
  2. package/lib/rest/Marketplace.d.ts +4 -0
  3. package/lib/rest/Marketplace.js +8 -0
  4. package/lib/rest/MarketplaceBase.d.ts +13 -0
  5. package/lib/rest/MarketplaceBase.js +31 -0
  6. package/lib/rest/Twilio.d.ts +5 -0
  7. package/lib/rest/Twilio.js +6 -0
  8. package/lib/rest/api/v2010/account/call.d.ts +1 -1
  9. package/lib/rest/api/v2010/account/message.d.ts +2 -2
  10. package/lib/rest/api/v2010/account/recording.d.ts +1 -1
  11. package/lib/rest/content/v2/content.d.ts +54 -0
  12. package/lib/rest/content/v2/content.js +18 -0
  13. package/lib/rest/content/v2/contentAndApprovals.d.ts +54 -0
  14. package/lib/rest/content/v2/contentAndApprovals.js +18 -0
  15. package/lib/rest/events/v1/eventType.d.ts +12 -0
  16. package/lib/rest/events/v1/eventType.js +4 -0
  17. package/lib/rest/marketplace/V1.d.ts +25 -0
  18. package/lib/rest/marketplace/V1.js +51 -0
  19. package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.d.ts +219 -0
  20. package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.js +187 -0
  21. package/lib/rest/marketplace/v1/availableAddOn.d.ts +231 -0
  22. package/lib/rest/marketplace/v1/availableAddOn.js +196 -0
  23. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.d.ts +251 -0
  24. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.js +214 -0
  25. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +84 -0
  26. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +86 -0
  27. package/lib/rest/marketplace/v1/installedAddOn.d.ts +340 -0
  28. package/lib/rest/marketplace/v1/installedAddOn.js +294 -0
  29. package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +147 -0
  30. package/lib/rest/marketplace/v1/moduleDataManagement.js +153 -0
  31. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +13 -1
  32. package/lib/rest/messaging/v1/tollfreeVerification.js +4 -0
  33. package/lib/rest/numbers/V1.d.ts +5 -0
  34. package/lib/rest/numbers/V1.js +8 -0
  35. package/lib/rest/numbers/v1/portingPortIn.d.ts +3 -0
  36. package/lib/rest/numbers/v1/portingPortIn.js +2 -0
  37. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +24 -6
  38. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +9 -3
  39. package/lib/rest/numbers/v1/portingPortability.d.ts +0 -12
  40. package/lib/rest/numbers/v1/portingPortability.js +0 -4
  41. package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +100 -0
  42. package/lib/rest/numbers/v1/signingRequestConfiguration.js +89 -0
  43. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
  44. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
  45. package/package.json +1 -1
@@ -108,7 +108,8 @@ var Twilio;
108
108
  headers["User-Agent"] += ` ${extension}`;
109
109
  });
110
110
  headers["Accept-Charset"] = "utf-8";
111
- if (opts.method === "post" && !headers["Content-Type"]) {
111
+ if ((opts.method === "post" || opts.method === "put") &&
112
+ !headers["Content-Type"]) {
112
113
  headers["Content-Type"] = "application/x-www-form-urlencoded";
113
114
  }
114
115
  if (!headers["Accept"]) {
@@ -0,0 +1,4 @@
1
+ import MarketplaceBase from "./MarketplaceBase";
2
+ declare class Marketplace extends MarketplaceBase {
3
+ }
4
+ export = Marketplace;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ const MarketplaceBase_1 = __importDefault(require("./MarketplaceBase"));
6
+ class Marketplace extends MarketplaceBase_1.default {
7
+ }
8
+ module.exports = Marketplace;
@@ -0,0 +1,13 @@
1
+ import Domain from "../base/Domain";
2
+ import V1 from "./marketplace/V1";
3
+ declare class MarketplaceBase extends Domain {
4
+ _v1?: V1;
5
+ /**
6
+ * Initialize marketplace domain
7
+ *
8
+ * @param twilio - The twilio client
9
+ */
10
+ constructor(twilio: any);
11
+ get v1(): V1;
12
+ }
13
+ export = MarketplaceBase;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator.
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ const Domain_1 = __importDefault(require("../base/Domain"));
16
+ const V1_1 = __importDefault(require("./marketplace/V1"));
17
+ class MarketplaceBase extends Domain_1.default {
18
+ /**
19
+ * Initialize marketplace domain
20
+ *
21
+ * @param twilio - The twilio client
22
+ */
23
+ constructor(twilio) {
24
+ super(twilio, "https://marketplace.twilio.com");
25
+ }
26
+ get v1() {
27
+ this._v1 = this._v1 || new V1_1.default(this);
28
+ return this._v1;
29
+ }
30
+ }
31
+ module.exports = MarketplaceBase;
@@ -12,6 +12,7 @@ import Insights from "./Insights";
12
12
  import Intelligence from "./Intelligence";
13
13
  import IpMessaging from "./IpMessaging";
14
14
  import Lookups from "./Lookups";
15
+ import Marketplace from "./Marketplace";
15
16
  import Messaging from "./Messaging";
16
17
  import Microvisor from "./Microvisor";
17
18
  import Monitor from "./Monitor";
@@ -87,6 +88,8 @@ declare class Twilio extends Client {
87
88
  _ipMessaging?: IpMessaging;
88
89
  /** (Twilio.Lookups) - lookups domain */
89
90
  _lookups?: Lookups;
91
+ /** (Twilio.Marketplace) - marketplace domain */
92
+ _marketplace?: Marketplace;
90
93
  /** (Twilio.Messaging) - messaging domain */
91
94
  _messaging?: Messaging;
92
95
  /** (Twilio.Microvisor) - microvisor domain */
@@ -167,6 +170,8 @@ declare class Twilio extends Client {
167
170
  get ipMessaging(): IpMessaging;
168
171
  /** Getter for (Twilio.Lookups) domain */
169
172
  get lookups(): Lookups;
173
+ /** Getter for (Twilio.Marketplace) domain */
174
+ get marketplace(): Marketplace;
170
175
  /** Getter for (Twilio.Messaging) domain */
171
176
  get messaging(): Messaging;
172
177
  /** Getter for (Twilio.Microvisor) domain */
@@ -45,6 +45,7 @@ class Twilio extends BaseTwilio_1.Client {
45
45
  this.intelligence;
46
46
  this.ipMessaging;
47
47
  this.lookups;
48
+ this.marketplace;
48
49
  this.messaging;
49
50
  this.microvisor;
50
51
  this.monitor;
@@ -126,6 +127,11 @@ class Twilio extends BaseTwilio_1.Client {
126
127
  get lookups() {
127
128
  return this._lookups ?? (this._lookups = new (require("./Lookups"))(this));
128
129
  }
130
+ /** Getter for (Twilio.Marketplace) domain */
131
+ get marketplace() {
132
+ return (this._marketplace ??
133
+ (this._marketplace = new (require("./Marketplace"))(this)));
134
+ }
129
135
  /** Getter for (Twilio.Messaging) domain */
130
136
  get messaging() {
131
137
  return (this._messaging ?? (this._messaging = new (require("./Messaging"))(this)));
@@ -379,7 +379,7 @@ export declare class CallInstance {
379
379
  */
380
380
  duration: string;
381
381
  /**
382
- * The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.
382
+ * The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. The price associated with a call only reflects the charge for connectivity. Charges for other call-related features such as Answering Machine Detection, Text-To-Speech, and SIP REFER are not included in this value.
383
383
  */
384
384
  price: string;
385
385
  /**
@@ -31,13 +31,13 @@ export interface MessageListInstanceCreateOptions {
31
31
  statusCallback?: string;
32
32
  /** The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App\\\'s `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored. */
33
33
  applicationSid?: string;
34
- /** [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03. */
34
+ /** [OBSOLETE] This parameter will no longer have any effect as of 2024-06-03. */
35
35
  maxPrice?: number;
36
36
  /** Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. */
37
37
  provideFeedback?: boolean;
38
38
  /** Total number of attempts made (including this request) to send the message regardless of the provider used */
39
39
  attempt?: number;
40
- /** The maximum length in seconds that the Message can remain in Twilio\\\'s outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) */
40
+ /** The maximum length in seconds that the Message can remain in Twilio\\\'s outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `36000`. Default value is `36000`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) */
41
41
  validityPeriod?: number;
42
42
  /** Reserved */
43
43
  forceDelivery?: boolean;
@@ -215,7 +215,7 @@ export declare class RecordingInstance {
215
215
  priceUnit: string;
216
216
  status: RecordingStatus;
217
217
  /**
218
- * The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call).
218
+ * The number of channels in the final recording file. Can be: `1` or `2`.
219
219
  */
220
220
  channels: number;
221
221
  source: RecordingSource;
@@ -9,6 +9,24 @@ import V2 from "../V2";
9
9
  export interface ContentListInstanceEachOptions {
10
10
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
11
11
  pageSize?: number;
12
+ /** Whether to sort by ascending or descending date updated */
13
+ sortByDate?: string;
14
+ /** Whether to sort by ascending or descending content name */
15
+ sortByContentName?: string;
16
+ /** Filter by >=[date-time] */
17
+ dateCreatedAfter?: Date;
18
+ /** Filter by <=[date-time] */
19
+ dateCreatedBefore?: Date;
20
+ /** Filter by Regex Pattern in content name */
21
+ contentName?: string;
22
+ /** Filter by Regex Pattern in template content */
23
+ content?: string;
24
+ /** Filter by array of valid language(s) */
25
+ language?: Array<string>;
26
+ /** Filter by array of contentType(s) */
27
+ contentType?: Array<string>;
28
+ /** Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> */
29
+ channelEligibility?: Array<string>;
12
30
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
13
31
  callback?: (item: ContentInstance, done: (err?: Error) => void) => void;
14
32
  /** Function to be called upon completion of streaming */
@@ -22,6 +40,24 @@ export interface ContentListInstanceEachOptions {
22
40
  export interface ContentListInstanceOptions {
23
41
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
24
42
  pageSize?: number;
43
+ /** Whether to sort by ascending or descending date updated */
44
+ sortByDate?: string;
45
+ /** Whether to sort by ascending or descending content name */
46
+ sortByContentName?: string;
47
+ /** Filter by >=[date-time] */
48
+ dateCreatedAfter?: Date;
49
+ /** Filter by <=[date-time] */
50
+ dateCreatedBefore?: Date;
51
+ /** Filter by Regex Pattern in content name */
52
+ contentName?: string;
53
+ /** Filter by Regex Pattern in template content */
54
+ content?: string;
55
+ /** Filter by array of valid language(s) */
56
+ language?: Array<string>;
57
+ /** Filter by array of contentType(s) */
58
+ contentType?: Array<string>;
59
+ /** Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> */
60
+ channelEligibility?: Array<string>;
25
61
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
26
62
  limit?: number;
27
63
  }
@@ -31,6 +67,24 @@ export interface ContentListInstanceOptions {
31
67
  export interface ContentListInstancePageOptions {
32
68
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
33
69
  pageSize?: number;
70
+ /** Whether to sort by ascending or descending date updated */
71
+ sortByDate?: string;
72
+ /** Whether to sort by ascending or descending content name */
73
+ sortByContentName?: string;
74
+ /** Filter by >=[date-time] */
75
+ dateCreatedAfter?: Date;
76
+ /** Filter by <=[date-time] */
77
+ dateCreatedBefore?: Date;
78
+ /** Filter by Regex Pattern in content name */
79
+ contentName?: string;
80
+ /** Filter by Regex Pattern in template content */
81
+ content?: string;
82
+ /** Filter by array of valid language(s) */
83
+ language?: Array<string>;
84
+ /** Filter by array of contentType(s) */
85
+ contentType?: Array<string>;
86
+ /** Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> */
87
+ channelEligibility?: Array<string>;
34
88
  /** Page Number, this value is simply for client state */
35
89
  pageNumber?: number;
36
90
  /** PageToken provided by the API */
@@ -37,6 +37,24 @@ function ContentListInstance(version) {
37
37
  let data = {};
38
38
  if (params["pageSize"] !== undefined)
39
39
  data["PageSize"] = params["pageSize"];
40
+ if (params["sortByDate"] !== undefined)
41
+ data["SortByDate"] = params["sortByDate"];
42
+ if (params["sortByContentName"] !== undefined)
43
+ data["SortByContentName"] = params["sortByContentName"];
44
+ if (params["dateCreatedAfter"] !== undefined)
45
+ data["DateCreatedAfter"] = serialize.iso8601DateTime(params["dateCreatedAfter"]);
46
+ if (params["dateCreatedBefore"] !== undefined)
47
+ data["DateCreatedBefore"] = serialize.iso8601DateTime(params["dateCreatedBefore"]);
48
+ if (params["contentName"] !== undefined)
49
+ data["ContentName"] = params["contentName"];
50
+ if (params["content"] !== undefined)
51
+ data["Content"] = params["content"];
52
+ if (params["language"] !== undefined)
53
+ data["Language"] = serialize.map(params["language"], (e) => e);
54
+ if (params["contentType"] !== undefined)
55
+ data["ContentType"] = serialize.map(params["contentType"], (e) => e);
56
+ if (params["channelEligibility"] !== undefined)
57
+ data["ChannelEligibility"] = serialize.map(params["channelEligibility"], (e) => e);
40
58
  if (params.pageNumber !== undefined)
41
59
  data["Page"] = params.pageNumber;
42
60
  if (params.pageToken !== undefined)
@@ -9,6 +9,24 @@ import V2 from "../V2";
9
9
  export interface ContentAndApprovalsListInstanceEachOptions {
10
10
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
11
11
  pageSize?: number;
12
+ /** Whether to sort by ascending or descending date updated */
13
+ sortByDate?: string;
14
+ /** Whether to sort by ascending or descending content name */
15
+ sortByContentName?: string;
16
+ /** Filter by >=[date-time] */
17
+ dateCreatedAfter?: Date;
18
+ /** Filter by <=[date-time] */
19
+ dateCreatedBefore?: Date;
20
+ /** Filter by Regex Pattern in content name */
21
+ contentName?: string;
22
+ /** Filter by Regex Pattern in template content */
23
+ content?: string;
24
+ /** Filter by array of valid language(s) */
25
+ language?: Array<string>;
26
+ /** Filter by array of contentType(s) */
27
+ contentType?: Array<string>;
28
+ /** Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> */
29
+ channelEligibility?: Array<string>;
12
30
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
13
31
  callback?: (item: ContentAndApprovalsInstance, done: (err?: Error) => void) => void;
14
32
  /** Function to be called upon completion of streaming */
@@ -22,6 +40,24 @@ export interface ContentAndApprovalsListInstanceEachOptions {
22
40
  export interface ContentAndApprovalsListInstanceOptions {
23
41
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
24
42
  pageSize?: number;
43
+ /** Whether to sort by ascending or descending date updated */
44
+ sortByDate?: string;
45
+ /** Whether to sort by ascending or descending content name */
46
+ sortByContentName?: string;
47
+ /** Filter by >=[date-time] */
48
+ dateCreatedAfter?: Date;
49
+ /** Filter by <=[date-time] */
50
+ dateCreatedBefore?: Date;
51
+ /** Filter by Regex Pattern in content name */
52
+ contentName?: string;
53
+ /** Filter by Regex Pattern in template content */
54
+ content?: string;
55
+ /** Filter by array of valid language(s) */
56
+ language?: Array<string>;
57
+ /** Filter by array of contentType(s) */
58
+ contentType?: Array<string>;
59
+ /** Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> */
60
+ channelEligibility?: Array<string>;
25
61
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
26
62
  limit?: number;
27
63
  }
@@ -31,6 +67,24 @@ export interface ContentAndApprovalsListInstanceOptions {
31
67
  export interface ContentAndApprovalsListInstancePageOptions {
32
68
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
33
69
  pageSize?: number;
70
+ /** Whether to sort by ascending or descending date updated */
71
+ sortByDate?: string;
72
+ /** Whether to sort by ascending or descending content name */
73
+ sortByContentName?: string;
74
+ /** Filter by >=[date-time] */
75
+ dateCreatedAfter?: Date;
76
+ /** Filter by <=[date-time] */
77
+ dateCreatedBefore?: Date;
78
+ /** Filter by Regex Pattern in content name */
79
+ contentName?: string;
80
+ /** Filter by Regex Pattern in template content */
81
+ content?: string;
82
+ /** Filter by array of valid language(s) */
83
+ language?: Array<string>;
84
+ /** Filter by array of contentType(s) */
85
+ contentType?: Array<string>;
86
+ /** Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status> */
87
+ channelEligibility?: Array<string>;
34
88
  /** Page Number, this value is simply for client state */
35
89
  pageNumber?: number;
36
90
  /** PageToken provided by the API */
@@ -37,6 +37,24 @@ function ContentAndApprovalsListInstance(version) {
37
37
  let data = {};
38
38
  if (params["pageSize"] !== undefined)
39
39
  data["PageSize"] = params["pageSize"];
40
+ if (params["sortByDate"] !== undefined)
41
+ data["SortByDate"] = params["sortByDate"];
42
+ if (params["sortByContentName"] !== undefined)
43
+ data["SortByContentName"] = params["sortByContentName"];
44
+ if (params["dateCreatedAfter"] !== undefined)
45
+ data["DateCreatedAfter"] = serialize.iso8601DateTime(params["dateCreatedAfter"]);
46
+ if (params["dateCreatedBefore"] !== undefined)
47
+ data["DateCreatedBefore"] = serialize.iso8601DateTime(params["dateCreatedBefore"]);
48
+ if (params["contentName"] !== undefined)
49
+ data["ContentName"] = params["contentName"];
50
+ if (params["content"] !== undefined)
51
+ data["Content"] = params["content"];
52
+ if (params["language"] !== undefined)
53
+ data["Language"] = serialize.map(params["language"], (e) => e);
54
+ if (params["contentType"] !== undefined)
55
+ data["ContentType"] = serialize.map(params["contentType"], (e) => e);
56
+ if (params["channelEligibility"] !== undefined)
57
+ data["ChannelEligibility"] = serialize.map(params["channelEligibility"], (e) => e);
40
58
  if (params.pageNumber !== undefined)
41
59
  data["Page"] = params.pageNumber;
42
60
  if (params.pageToken !== undefined)
@@ -83,6 +83,8 @@ interface EventTypeResource {
83
83
  date_created: Date;
84
84
  date_updated: Date;
85
85
  description: string;
86
+ status: string;
87
+ documentation_url: string;
86
88
  url: string;
87
89
  links: Record<string, string>;
88
90
  }
@@ -111,6 +113,14 @@ export declare class EventTypeInstance {
111
113
  * A human readable description for this Event Type.
112
114
  */
113
115
  description: string;
116
+ /**
117
+ * A string that describes how this Event Type can be used. For example: `available`, `deprecated`, `restricted`, `discontinued`. When the status is `available`, the Event Type can be used normally.
118
+ */
119
+ status: string;
120
+ /**
121
+ * The URL to the documentation or to the most relevant Twilio Changelog entry of this Event Type.
122
+ */
123
+ documentationUrl: string;
114
124
  /**
115
125
  * The URL of this resource.
116
126
  */
@@ -136,6 +146,8 @@ export declare class EventTypeInstance {
136
146
  dateCreated: Date;
137
147
  dateUpdated: Date;
138
148
  description: string;
149
+ status: string;
150
+ documentationUrl: string;
139
151
  url: string;
140
152
  links: Record<string, string>;
141
153
  };
@@ -62,6 +62,8 @@ class EventTypeInstance {
62
62
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
63
63
  this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
64
64
  this.description = payload.description;
65
+ this.status = payload.status;
66
+ this.documentationUrl = payload.documentation_url;
65
67
  this.url = payload.url;
66
68
  this.links = payload.links;
67
69
  this._solution = { type: type || this.type };
@@ -94,6 +96,8 @@ class EventTypeInstance {
94
96
  dateCreated: this.dateCreated,
95
97
  dateUpdated: this.dateUpdated,
96
98
  description: this.description,
99
+ status: this.status,
100
+ documentationUrl: this.documentationUrl,
97
101
  url: this.url,
98
102
  links: this.links,
99
103
  };
@@ -0,0 +1,25 @@
1
+ import MarketplaceBase from "../MarketplaceBase";
2
+ import Version from "../../base/Version";
3
+ import { AvailableAddOnListInstance } from "./v1/availableAddOn";
4
+ import { InstalledAddOnListInstance } from "./v1/installedAddOn";
5
+ import { ModuleDataManagementListInstance } from "./v1/moduleDataManagement";
6
+ export default class V1 extends Version {
7
+ /**
8
+ * Initialize the V1 version of Marketplace
9
+ *
10
+ * @param domain - The Twilio (Twilio.Marketplace) domain
11
+ */
12
+ constructor(domain: MarketplaceBase);
13
+ /** availableAddOns - { Twilio.Marketplace.V1.AvailableAddOnListInstance } resource */
14
+ protected _availableAddOns?: AvailableAddOnListInstance;
15
+ /** installedAddOns - { Twilio.Marketplace.V1.InstalledAddOnListInstance } resource */
16
+ protected _installedAddOns?: InstalledAddOnListInstance;
17
+ /** moduleDataManagement - { Twilio.Marketplace.V1.ModuleDataManagementListInstance } resource */
18
+ protected _moduleDataManagement?: ModuleDataManagementListInstance;
19
+ /** Getter for availableAddOns resource */
20
+ get availableAddOns(): AvailableAddOnListInstance;
21
+ /** Getter for installedAddOns resource */
22
+ get installedAddOns(): InstalledAddOnListInstance;
23
+ /** Getter for moduleDataManagement resource */
24
+ get moduleDataManagement(): ModuleDataManagementListInstance;
25
+ }
@@ -0,0 +1,51 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ const Version_1 = __importDefault(require("../../base/Version"));
20
+ const availableAddOn_1 = require("./v1/availableAddOn");
21
+ const installedAddOn_1 = require("./v1/installedAddOn");
22
+ const moduleDataManagement_1 = require("./v1/moduleDataManagement");
23
+ class V1 extends Version_1.default {
24
+ /**
25
+ * Initialize the V1 version of Marketplace
26
+ *
27
+ * @param domain - The Twilio (Twilio.Marketplace) domain
28
+ */
29
+ constructor(domain) {
30
+ super(domain, "v1");
31
+ }
32
+ /** Getter for availableAddOns resource */
33
+ get availableAddOns() {
34
+ this._availableAddOns =
35
+ this._availableAddOns || (0, availableAddOn_1.AvailableAddOnListInstance)(this);
36
+ return this._availableAddOns;
37
+ }
38
+ /** Getter for installedAddOns resource */
39
+ get installedAddOns() {
40
+ this._installedAddOns =
41
+ this._installedAddOns || (0, installedAddOn_1.InstalledAddOnListInstance)(this);
42
+ return this._installedAddOns;
43
+ }
44
+ /** Getter for moduleDataManagement resource */
45
+ get moduleDataManagement() {
46
+ this._moduleDataManagement =
47
+ this._moduleDataManagement || (0, moduleDataManagement_1.ModuleDataManagementListInstance)(this);
48
+ return this._moduleDataManagement;
49
+ }
50
+ }
51
+ exports.default = V1;