@leadping/sdk 1.0.59 → 1.0.61

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.
@@ -1776,6 +1776,15 @@ export function createPhoneNumberSearchResult_locationFromDiscriminatorValue(par
1776
1776
  export function createPhoneNumberSearchResultFromDiscriminatorValue(parseNode) {
1777
1777
  return deserializeIntoPhoneNumberSearchResult;
1778
1778
  }
1779
+ /**
1780
+ * Creates a new instance of the appropriate class based on discriminator value
1781
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1782
+ * @returns {PhoneNumberStatusResponse_location}
1783
+ */
1784
+ // @ts-ignore
1785
+ export function createPhoneNumberStatusResponse_locationFromDiscriminatorValue(parseNode) {
1786
+ return deserializeIntoPhoneNumberStatusResponse_location;
1787
+ }
1779
1788
  /**
1780
1789
  * Creates a new instance of the appropriate class based on discriminator value
1781
1790
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3136,6 +3145,7 @@ export function deserializeIntoBlogArticleResponse(blogArticleResponse = {}) {
3136
3145
  "seoTitle": n => { blogArticleResponse.seoTitle = n.getStringValue(); },
3137
3146
  "slug": n => { blogArticleResponse.slug = n.getStringValue(); },
3138
3147
  "title": n => { blogArticleResponse.title = n.getStringValue(); },
3148
+ "unpublishedAt": n => { blogArticleResponse.unpublishedAt = n.getDateValue(); },
3139
3149
  };
3140
3150
  }
3141
3151
  /**
@@ -3690,6 +3700,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
3690
3700
  "actorDisplayName": n => { eventTableRow.actorDisplayName = n.getStringValue(); },
3691
3701
  "actorEmail": n => { eventTableRow.actorEmail = n.getStringValue(); },
3692
3702
  "actorUserId": n => { eventTableRow.actorUserId = n.getStringValue(); },
3703
+ "automationRunId": n => { eventTableRow.automationRunId = n.getStringValue(); },
3693
3704
  "billableAmount": n => { eventTableRow.billableAmount = n.getNumberValue(); },
3694
3705
  "billingStatus": n => { eventTableRow.billingStatus = n.getStringValue(); },
3695
3706
  "blockedAt": n => { eventTableRow.blockedAt = n.getDateValue(); },
@@ -5018,6 +5029,7 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
5018
5029
  "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getNumberValue(); },
5019
5030
  "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
5020
5031
  "smsMinutelyResetsAt": n => { outboundPhoneNumberCapacity.smsMinutelyResetsAt = n.getDateValue(); },
5032
+ "smsRampDirection": n => { outboundPhoneNumberCapacity.smsRampDirection = n.getEnumValue(OutboundPhoneNumberCapacity_smsRampDirectionObject); },
5021
5033
  "smsRamping": n => { outboundPhoneNumberCapacity.smsRamping = n.getBooleanValue(); },
5022
5034
  "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
5023
5035
  "smsRemainingThisMinute": n => { outboundPhoneNumberCapacity.smsRemainingThisMinute = n.getNumberValue(); },
@@ -5031,6 +5043,7 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
5031
5043
  "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getNumberValue(); },
5032
5044
  "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
5033
5045
  "voiceMinutelyResetsAt": n => { outboundPhoneNumberCapacity.voiceMinutelyResetsAt = n.getDateValue(); },
5046
+ "voiceRampDirection": n => { outboundPhoneNumberCapacity.voiceRampDirection = n.getEnumValue(OutboundPhoneNumberCapacity_voiceRampDirectionObject); },
5034
5047
  "voiceRamping": n => { outboundPhoneNumberCapacity.voiceRamping = n.getBooleanValue(); },
5035
5048
  "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
5036
5049
  "voiceRemainingThisMinute": n => { outboundPhoneNumberCapacity.voiceRemainingThisMinute = n.getNumberValue(); },
@@ -5716,6 +5729,8 @@ export function deserializeIntoPhoneNumberResponse(phoneNumberResponse = {}) {
5716
5729
  "organization": n => { phoneNumberResponse.organization = n.getObjectValue(createPhoneNumberResponse_organizationFromDiscriminatorValue); },
5717
5730
  "phoneIdentityId": n => { phoneNumberResponse.phoneIdentityId = n.getStringValue(); },
5718
5731
  "routing": n => { phoneNumberResponse.routing = n.getObjectValue(createPhoneNumberRoutingMetadataFromDiscriminatorValue); },
5732
+ "smsReady": n => { phoneNumberResponse.smsReady = n.getBooleanValue(); },
5733
+ "voiceReady": n => { phoneNumberResponse.voiceReady = n.getBooleanValue(); },
5719
5734
  "warmup": n => { phoneNumberResponse.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
5720
5735
  };
5721
5736
  }
@@ -5812,6 +5827,7 @@ export function deserializeIntoPhoneNumberSearchResult_location(phoneNumberSearc
5812
5827
  export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusResponse = {}) {
5813
5828
  return {
5814
5829
  "callsPossible": n => { phoneNumberStatusResponse.callsPossible = n.getNumberValue(); },
5830
+ "location": n => { phoneNumberStatusResponse.location = n.getObjectValue(createPhoneNumberStatusResponse_locationFromDiscriminatorValue); },
5815
5831
  "messagesPossible": n => { phoneNumberStatusResponse.messagesPossible = n.getNumberValue(); },
5816
5832
  "number": n => { phoneNumberStatusResponse.number = n.getStringValue(); },
5817
5833
  "optOutMetrics": n => { phoneNumberStatusResponse.optOutMetrics = n.getObjectValue(createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue); },
@@ -5821,6 +5837,17 @@ export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusRespon
5821
5837
  "trafficMetrics": n => { phoneNumberStatusResponse.trafficMetrics = n.getObjectValue(createPhoneNumberTrafficMetricsResponseFromDiscriminatorValue); },
5822
5838
  };
5823
5839
  }
5840
+ /**
5841
+ * The deserialization information for the current model
5842
+ * @param PhoneNumberStatusResponse_location The instance to deserialize into.
5843
+ * @returns {Record<string, (node: ParseNode) => void>}
5844
+ */
5845
+ // @ts-ignore
5846
+ export function deserializeIntoPhoneNumberStatusResponse_location(phoneNumberStatusResponse_location = {}) {
5847
+ return {
5848
+ ...deserializeIntoPhoneNumberLocation(phoneNumberStatusResponse_location),
5849
+ };
5850
+ }
5824
5851
  /**
5825
5852
  * The deserialization information for the current model
5826
5853
  * @param PhoneNumberStatusResponse_outboundCapacity The instance to deserialize into.
@@ -7905,6 +7932,7 @@ export function serializeBlogArticleResponse(writer, blogArticleResponse = {}, i
7905
7932
  writer.writeStringValue("seoTitle", blogArticleResponse.seoTitle);
7906
7933
  writer.writeStringValue("slug", blogArticleResponse.slug);
7907
7934
  writer.writeStringValue("title", blogArticleResponse.title);
7935
+ writer.writeDateValue("unpublishedAt", blogArticleResponse.unpublishedAt);
7908
7936
  writer.writeAdditionalData(blogArticleResponse.additionalData);
7909
7937
  }
7910
7938
  /**
@@ -8544,6 +8572,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8544
8572
  writer.writeStringValue("actorDisplayName", eventTableRow.actorDisplayName);
8545
8573
  writer.writeStringValue("actorEmail", eventTableRow.actorEmail);
8546
8574
  writer.writeStringValue("actorUserId", eventTableRow.actorUserId);
8575
+ writer.writeStringValue("automationRunId", eventTableRow.automationRunId);
8547
8576
  writer.writeNumberValue("billableAmount", eventTableRow.billableAmount);
8548
8577
  writer.writeStringValue("billingStatus", eventTableRow.billingStatus);
8549
8578
  writer.writeDateValue("blockedAt", eventTableRow.blockedAt);
@@ -10069,6 +10098,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
10069
10098
  writer.writeNumberValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
10070
10099
  writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
10071
10100
  writer.writeDateValue("smsMinutelyResetsAt", outboundPhoneNumberCapacity.smsMinutelyResetsAt);
10101
+ writer.writeEnumValue("smsRampDirection", outboundPhoneNumberCapacity.smsRampDirection);
10072
10102
  writer.writeBooleanValue("smsRamping", outboundPhoneNumberCapacity.smsRamping);
10073
10103
  writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
10074
10104
  writer.writeNumberValue("smsRemainingThisMinute", outboundPhoneNumberCapacity.smsRemainingThisMinute);
@@ -10082,6 +10112,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
10082
10112
  writer.writeNumberValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
10083
10113
  writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
10084
10114
  writer.writeDateValue("voiceMinutelyResetsAt", outboundPhoneNumberCapacity.voiceMinutelyResetsAt);
10115
+ writer.writeEnumValue("voiceRampDirection", outboundPhoneNumberCapacity.voiceRampDirection);
10085
10116
  writer.writeBooleanValue("voiceRamping", outboundPhoneNumberCapacity.voiceRamping);
10086
10117
  writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
10087
10118
  writer.writeNumberValue("voiceRemainingThisMinute", outboundPhoneNumberCapacity.voiceRemainingThisMinute);
@@ -10892,6 +10923,8 @@ export function serializePhoneNumberResponse(writer, phoneNumberResponse = {}, i
10892
10923
  writer.writeObjectValue("organization", phoneNumberResponse.organization, serializePhoneNumberResponse_organization);
10893
10924
  writer.writeStringValue("phoneIdentityId", phoneNumberResponse.phoneIdentityId);
10894
10925
  writer.writeObjectValue("routing", phoneNumberResponse.routing, serializePhoneNumberRoutingMetadata);
10926
+ writer.writeBooleanValue("smsReady", phoneNumberResponse.smsReady);
10927
+ writer.writeBooleanValue("voiceReady", phoneNumberResponse.voiceReady);
10895
10928
  writer.writeObjectValue("warmup", phoneNumberResponse.warmup, serializePhoneNumberReadiness);
10896
10929
  writer.writeAdditionalData(phoneNumberResponse.additionalData);
10897
10930
  }
@@ -11009,6 +11042,7 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
11009
11042
  return;
11010
11043
  }
11011
11044
  writer.writeNumberValue("callsPossible", phoneNumberStatusResponse.callsPossible);
11045
+ writer.writeObjectValue("location", phoneNumberStatusResponse.location, serializePhoneNumberStatusResponse_location);
11012
11046
  writer.writeNumberValue("messagesPossible", phoneNumberStatusResponse.messagesPossible);
11013
11047
  writer.writeStringValue("number", phoneNumberStatusResponse.number);
11014
11048
  writer.writeObjectValue("optOutMetrics", phoneNumberStatusResponse.optOutMetrics, serializePhoneNumberOptOutMetricsResponse);
@@ -11018,6 +11052,19 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
11018
11052
  writer.writeObjectValue("trafficMetrics", phoneNumberStatusResponse.trafficMetrics, serializePhoneNumberTrafficMetricsResponse);
11019
11053
  writer.writeAdditionalData(phoneNumberStatusResponse.additionalData);
11020
11054
  }
11055
+ /**
11056
+ * Serializes information the current object
11057
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11058
+ * @param PhoneNumberStatusResponse_location The instance to serialize from.
11059
+ * @param writer Serialization writer to use to serialize this model
11060
+ */
11061
+ // @ts-ignore
11062
+ export function serializePhoneNumberStatusResponse_location(writer, phoneNumberStatusResponse_location = {}, isSerializingDerivedType = false) {
11063
+ if (!phoneNumberStatusResponse_location || isSerializingDerivedType) {
11064
+ return;
11065
+ }
11066
+ serializePhoneNumberLocation(writer, phoneNumberStatusResponse_location, isSerializingDerivedType);
11067
+ }
11021
11068
  /**
11022
11069
  * Serializes information the current object
11023
11070
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -13161,6 +13208,22 @@ export const OutboundDeliveryStatusObject = {
13161
13208
  Blocked: "blocked",
13162
13209
  Cancelled: "cancelled",
13163
13210
  };
13211
+ /**
13212
+ * Indicates whether a phone number's channel capacity is increasing, decreasing, or stable.
13213
+ */
13214
+ export const OutboundPhoneNumberCapacity_smsRampDirectionObject = {
13215
+ Up: "up",
13216
+ Down: "down",
13217
+ None: "none",
13218
+ };
13219
+ /**
13220
+ * Indicates whether a phone number's channel capacity is increasing, decreasing, or stable.
13221
+ */
13222
+ export const OutboundPhoneNumberCapacity_voiceRampDirectionObject = {
13223
+ Up: "up",
13224
+ Down: "down",
13225
+ None: "none",
13226
+ };
13164
13227
  /**
13165
13228
  * Structured reason codes for outbound pacing and blocking decisions.
13166
13229
  */