@leadping/sdk 1.0.97 → 1.0.99

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.
@@ -2010,6 +2010,15 @@ export function createPhoneNumberMessagingEventResponseFromDiscriminatorValue(pa
2010
2010
  export function createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue(parseNode) {
2011
2011
  return deserializeIntoPhoneNumberOptOutMetricsResponse;
2012
2012
  }
2013
+ /**
2014
+ * Creates a new instance of the appropriate class based on discriminator value
2015
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2016
+ * @returns {PhoneNumberReadiness_trafficHealth}
2017
+ */
2018
+ // @ts-ignore
2019
+ export function createPhoneNumberReadiness_trafficHealthFromDiscriminatorValue(parseNode) {
2020
+ return deserializeIntoPhoneNumberReadiness_trafficHealth;
2021
+ }
2013
2022
  /**
2014
2023
  * Creates a new instance of the appropriate class based on discriminator value
2015
2024
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2145,6 +2154,15 @@ export function createPhoneNumberStatusResponseFromDiscriminatorValue(parseNode)
2145
2154
  export function createPhoneNumberTableRowFromDiscriminatorValue(parseNode) {
2146
2155
  return deserializeIntoPhoneNumberTableRow;
2147
2156
  }
2157
+ /**
2158
+ * Creates a new instance of the appropriate class based on discriminator value
2159
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2160
+ * @returns {PhoneNumberTrafficHealth}
2161
+ */
2162
+ // @ts-ignore
2163
+ export function createPhoneNumberTrafficHealthFromDiscriminatorValue(parseNode) {
2164
+ return deserializeIntoPhoneNumberTrafficHealth;
2165
+ }
2148
2166
  /**
2149
2167
  * Creates a new instance of the appropriate class based on discriminator value
2150
2168
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3620,6 +3638,7 @@ export function deserializeIntoChangeBillingPlanRequest(changeBillingPlanRequest
3620
3638
  // @ts-ignore
3621
3639
  export function deserializeIntoCommunicationConsoleEntry(communicationConsoleEntry = {}) {
3622
3640
  return {
3641
+ "adminOnly": n => { communicationConsoleEntry.adminOnly = n.getBooleanValue(); },
3623
3642
  "id": n => { communicationConsoleEntry.id = n.getStringValue(); },
3624
3643
  "message": n => { communicationConsoleEntry.message = n.getStringValue(); },
3625
3644
  "occurredAt": n => { communicationConsoleEntry.occurredAt = n.getDateValue(); },
@@ -3662,6 +3681,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3662
3681
  "archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
3663
3682
  "archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
3664
3683
  "avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
3684
+ "complianceStatus": n => { conversationResponse.complianceStatus = n.getStringValue(); },
3665
3685
  "currentLeadStatus": n => { conversationResponse.currentLeadStatus = n.getObjectValue(createConversationResponse_currentLeadStatusFromDiscriminatorValue); },
3666
3686
  "email": n => { conversationResponse.email = n.getStringValue(); },
3667
3687
  "eventVersion": n => { conversationResponse.eventVersion = n.getNumberValue(); },
@@ -6459,6 +6479,7 @@ export function deserializeIntoPhoneNumberLocation(phoneNumberLocation = {}) {
6459
6479
  "coordinate": n => { phoneNumberLocation.coordinate = n.getObjectValue(createPhoneNumberLocation_coordinateFromDiscriminatorValue); },
6460
6480
  "coordinateSource": n => { phoneNumberLocation.coordinateSource = n.getObjectValue(createPhoneNumberLocation_coordinateSourceFromDiscriminatorValue); },
6461
6481
  "countryCode": n => { phoneNumberLocation.countryCode = n.getStringValue(); },
6482
+ "isCoordinateApproximate": n => { phoneNumberLocation.isCoordinateApproximate = n.getBooleanValue(); },
6462
6483
  "location": n => { phoneNumberLocation.location = n.getStringValue(); },
6463
6484
  "state": n => { phoneNumberLocation.state = n.getStringValue(); },
6464
6485
  "timeZoneId": n => { phoneNumberLocation.timeZoneId = n.getStringValue(); },
@@ -6547,6 +6568,18 @@ export function deserializeIntoPhoneNumberReadiness(phoneNumberReadiness = {}) {
6547
6568
  "healthStatus": n => { phoneNumberReadiness.healthStatus = n.getEnumValue(PhoneNumberReadiness_healthStatusObject); },
6548
6569
  "progressPercent": n => { phoneNumberReadiness.progressPercent = n.getNumberValue(); },
6549
6570
  "state": n => { phoneNumberReadiness.state = n.getEnumValue(PhoneNumberReadiness_stateObject); },
6571
+ "trafficHealth": n => { phoneNumberReadiness.trafficHealth = n.getObjectValue(createPhoneNumberReadiness_trafficHealthFromDiscriminatorValue); },
6572
+ };
6573
+ }
6574
+ /**
6575
+ * The deserialization information for the current model
6576
+ * @param PhoneNumberReadiness_trafficHealth The instance to deserialize into.
6577
+ * @returns {Record<string, (node: ParseNode) => void>}
6578
+ */
6579
+ // @ts-ignore
6580
+ export function deserializeIntoPhoneNumberReadiness_trafficHealth(phoneNumberReadiness_trafficHealth = {}) {
6581
+ return {
6582
+ ...deserializeIntoPhoneNumberTrafficHealth(phoneNumberReadiness_trafficHealth),
6550
6583
  };
6551
6584
  }
6552
6585
  /**
@@ -6750,6 +6783,17 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
6750
6783
  "warmup": n => { phoneNumberTableRow.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
6751
6784
  };
6752
6785
  }
6786
+ /**
6787
+ * The deserialization information for the current model
6788
+ * @param PhoneNumberTrafficHealth The instance to deserialize into.
6789
+ * @returns {Record<string, (node: ParseNode) => void>}
6790
+ */
6791
+ // @ts-ignore
6792
+ export function deserializeIntoPhoneNumberTrafficHealth(phoneNumberTrafficHealth = {}) {
6793
+ return {
6794
+ "score": n => { phoneNumberTrafficHealth.score = n.getNumberValue(); },
6795
+ };
6796
+ }
6753
6797
  /**
6754
6798
  * The deserialization information for the current model
6755
6799
  * @param PhoneNumberTrafficMetricsResponse The instance to deserialize into.
@@ -7916,6 +7960,7 @@ export function deserializeIntoUserResponse(userResponse = {}) {
7916
7960
  "firstName": n => { userResponse.firstName = n.getStringValue(); },
7917
7961
  "id": n => { userResponse.id = n.getStringValue(); },
7918
7962
  "isDemo": n => { userResponse.isDemo = n.getBooleanValue(); },
7963
+ "lastActiveAt": n => { userResponse.lastActiveAt = n.getDateValue(); },
7919
7964
  "lastLoggedInAt": n => { userResponse.lastLoggedInAt = n.getDateValue(); },
7920
7965
  "lastName": n => { userResponse.lastName = n.getStringValue(); },
7921
7966
  "mobileDevicePreferences": n => { userResponse.mobileDevicePreferences = n.getCollectionOfObjectValues(createMobileDevicePreferencesFromDiscriminatorValue); },
@@ -9011,6 +9056,7 @@ export function serializeCommunicationConsoleEntry(writer, communicationConsoleE
9011
9056
  if (!communicationConsoleEntry || isSerializingDerivedType) {
9012
9057
  return;
9013
9058
  }
9059
+ writer.writeBooleanValue("adminOnly", communicationConsoleEntry.adminOnly);
9014
9060
  writer.writeStringValue("id", communicationConsoleEntry.id);
9015
9061
  writer.writeStringValue("message", communicationConsoleEntry.message);
9016
9062
  writer.writeDateValue("occurredAt", communicationConsoleEntry.occurredAt);
@@ -9061,6 +9107,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9061
9107
  writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
9062
9108
  writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
9063
9109
  writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
9110
+ writer.writeStringValue("complianceStatus", conversationResponse.complianceStatus);
9064
9111
  writer.writeObjectValue("currentLeadStatus", conversationResponse.currentLeadStatus, serializeConversationResponse_currentLeadStatus);
9065
9112
  writer.writeStringValue("email", conversationResponse.email);
9066
9113
  writer.writeNumberValue("eventVersion", conversationResponse.eventVersion);
@@ -12302,6 +12349,7 @@ export function serializePhoneNumberLocation(writer, phoneNumberLocation = {}, i
12302
12349
  writer.writeObjectValue("coordinate", phoneNumberLocation.coordinate, serializePhoneNumberLocation_coordinate);
12303
12350
  writer.writeObjectValue("coordinateSource", phoneNumberLocation.coordinateSource, serializePhoneNumberLocation_coordinateSource);
12304
12351
  writer.writeStringValue("countryCode", phoneNumberLocation.countryCode);
12352
+ writer.writeBooleanValue("isCoordinateApproximate", phoneNumberLocation.isCoordinateApproximate);
12305
12353
  writer.writeStringValue("location", phoneNumberLocation.location);
12306
12354
  writer.writeStringValue("state", phoneNumberLocation.state);
12307
12355
  writer.writeStringValue("timeZoneId", phoneNumberLocation.timeZoneId);
@@ -12405,8 +12453,22 @@ export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {},
12405
12453
  writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
12406
12454
  writer.writeNumberValue("progressPercent", phoneNumberReadiness.progressPercent);
12407
12455
  writer.writeEnumValue("state", phoneNumberReadiness.state);
12456
+ writer.writeObjectValue("trafficHealth", phoneNumberReadiness.trafficHealth, serializePhoneNumberReadiness_trafficHealth);
12408
12457
  writer.writeAdditionalData(phoneNumberReadiness.additionalData);
12409
12458
  }
12459
+ /**
12460
+ * Serializes information the current object
12461
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12462
+ * @param PhoneNumberReadiness_trafficHealth The instance to serialize from.
12463
+ * @param writer Serialization writer to use to serialize this model
12464
+ */
12465
+ // @ts-ignore
12466
+ export function serializePhoneNumberReadiness_trafficHealth(writer, phoneNumberReadiness_trafficHealth = {}, isSerializingDerivedType = false) {
12467
+ if (!phoneNumberReadiness_trafficHealth || isSerializingDerivedType) {
12468
+ return;
12469
+ }
12470
+ serializePhoneNumberTrafficHealth(writer, phoneNumberReadiness_trafficHealth, isSerializingDerivedType);
12471
+ }
12410
12472
  /**
12411
12473
  * Serializes information the current object
12412
12474
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -12644,6 +12706,20 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
12644
12706
  writer.writeObjectValue("warmup", phoneNumberTableRow.warmup, serializePhoneNumberReadiness);
12645
12707
  writer.writeAdditionalData(phoneNumberTableRow.additionalData);
12646
12708
  }
12709
+ /**
12710
+ * Serializes information the current object
12711
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
12712
+ * @param PhoneNumberTrafficHealth The instance to serialize from.
12713
+ * @param writer Serialization writer to use to serialize this model
12714
+ */
12715
+ // @ts-ignore
12716
+ export function serializePhoneNumberTrafficHealth(writer, phoneNumberTrafficHealth = {}, isSerializingDerivedType = false) {
12717
+ if (!phoneNumberTrafficHealth || isSerializingDerivedType) {
12718
+ return;
12719
+ }
12720
+ writer.writeNumberValue("score", phoneNumberTrafficHealth.score);
12721
+ writer.writeAdditionalData(phoneNumberTrafficHealth.additionalData);
12722
+ }
12647
12723
  /**
12648
12724
  * Serializes information the current object
12649
12725
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -13986,6 +14062,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
13986
14062
  writer.writeStringValue("firstName", userResponse.firstName);
13987
14063
  writer.writeStringValue("id", userResponse.id);
13988
14064
  writer.writeBooleanValue("isDemo", userResponse.isDemo);
14065
+ writer.writeDateValue("lastActiveAt", userResponse.lastActiveAt);
13989
14066
  writer.writeDateValue("lastLoggedInAt", userResponse.lastLoggedInAt);
13990
14067
  writer.writeStringValue("lastName", userResponse.lastName);
13991
14068
  writer.writeCollectionOfObjectValues("mobileDevicePreferences", userResponse.mobileDevicePreferences, serializeMobileDevicePreferences);
@@ -14347,6 +14424,7 @@ export const EventDetailResponse_timelineTypeObject = {
14347
14424
  * Explains why Leadping selected, rejected, or substituted an outgoing caller or messaging number.
14348
14425
  */
14349
14426
  export const EventTableRow_selectionReasonObject = {
14427
+ NearestLocation: "NearestLocation",
14350
14428
  StickyConversation: "StickyConversation",
14351
14429
  LeadAssigned: "LeadAssigned",
14352
14430
  CampaignOrSource: "CampaignOrSource",
@@ -14864,6 +14942,7 @@ export const OutboundQueueItem_reasonCodeObject = {
14864
14942
  * Explains why Leadping selected, rejected, or substituted an outgoing caller or messaging number.
14865
14943
  */
14866
14944
  export const OutgoingNumberSelectionReasonObject = {
14945
+ NearestLocation: "NearestLocation",
14867
14946
  StickyConversation: "StickyConversation",
14868
14947
  LeadAssigned: "LeadAssigned",
14869
14948
  CampaignOrSource: "CampaignOrSource",
@@ -14894,6 +14973,7 @@ export const OutgoingNumberSelectionResponse_healthStatusObject = {
14894
14973
  * Explains why Leadping selected, rejected, or substituted an outgoing caller or messaging number.
14895
14974
  */
14896
14975
  export const OutgoingNumberSelectionResponse_selectionReasonObject = {
14976
+ NearestLocation: "NearestLocation",
14897
14977
  StickyConversation: "StickyConversation",
14898
14978
  LeadAssigned: "LeadAssigned",
14899
14979
  CampaignOrSource: "CampaignOrSource",
@@ -14907,6 +14987,7 @@ export const OutgoingNumberSelectionResponse_selectionReasonObject = {
14907
14987
  * Explains why Leadping selected, rejected, or substituted an outgoing caller or messaging number.
14908
14988
  */
14909
14989
  export const PhoneCallResponse_selectionReasonObject = {
14990
+ NearestLocation: "NearestLocation",
14910
14991
  StickyConversation: "StickyConversation",
14911
14992
  LeadAssigned: "LeadAssigned",
14912
14993
  CampaignOrSource: "CampaignOrSource",
@@ -15117,6 +15198,7 @@ export const SmsReadinessStateObject = {
15117
15198
  * Explains why Leadping selected, rejected, or substituted an outgoing caller or messaging number.
15118
15199
  */
15119
15200
  export const SmsResponse_selectionReasonObject = {
15201
+ NearestLocation: "NearestLocation",
15120
15202
  StickyConversation: "StickyConversation",
15121
15203
  LeadAssigned: "LeadAssigned",
15122
15204
  CampaignOrSource: "CampaignOrSource",