@leadping/sdk 1.0.30 → 1.0.32

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.
@@ -1758,6 +1758,24 @@ export function createPhoneNumberTrafficTrendPointFromDiscriminatorValue(parseNo
1758
1758
  export function createProblemDetailsFromDiscriminatorValue(parseNode) {
1759
1759
  return deserializeIntoProblemDetails;
1760
1760
  }
1761
+ /**
1762
+ * Creates a new instance of the appropriate class based on discriminator value
1763
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1764
+ * @returns {PushInstallationRequest_metadata}
1765
+ */
1766
+ // @ts-ignore
1767
+ export function createPushInstallationRequest_metadataFromDiscriminatorValue(parseNode) {
1768
+ return deserializeIntoPushInstallationRequest_metadata;
1769
+ }
1770
+ /**
1771
+ * Creates a new instance of the appropriate class based on discriminator value
1772
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1773
+ * @returns {PushInstallationRequest}
1774
+ */
1775
+ // @ts-ignore
1776
+ export function createPushInstallationRequestFromDiscriminatorValue(parseNode) {
1777
+ return deserializeIntoPushInstallationRequest;
1778
+ }
1761
1779
  /**
1762
1780
  * Creates a new instance of the appropriate class based on discriminator value
1763
1781
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3055,6 +3073,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3055
3073
  "activeOutboundPhoneNumberId": n => { conversationResponse.activeOutboundPhoneNumberId = n.getStringValue(); },
3056
3074
  "archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
3057
3075
  "archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
3076
+ "avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
3058
3077
  "currentLeadStatus": n => { conversationResponse.currentLeadStatus = n.getObjectValue(createConversationResponse_currentLeadStatusFromDiscriminatorValue); },
3059
3078
  "email": n => { conversationResponse.email = n.getStringValue(); },
3060
3079
  "firstName": n => { conversationResponse.firstName = n.getStringValue(); },
@@ -3606,6 +3625,7 @@ export function deserializeIntoLeadArchiveRequest(leadArchiveRequest = {}) {
3606
3625
  // @ts-ignore
3607
3626
  export function deserializeIntoLeadContact(leadContact = {}) {
3608
3627
  return {
3628
+ "avatarUrl": n => { leadContact.avatarUrl = n.getStringValue(); },
3609
3629
  "coordinate": n => { leadContact.coordinate = n.getObjectValue(createLeadContact_coordinateFromDiscriminatorValue); },
3610
3630
  "email": n => { leadContact.email = n.getStringValue(); },
3611
3631
  "firstName": n => { leadContact.firstName = n.getStringValue(); },
@@ -4111,6 +4131,7 @@ export function deserializeIntoNotificationResponse(notificationResponse = {}) {
4111
4131
  "modifiedAt": n => { notificationResponse.modifiedAt = n.getDateValue(); },
4112
4132
  "name": n => { notificationResponse.name = n.getStringValue(); },
4113
4133
  "priority": n => { notificationResponse.priority = n.getEnumValue(NotificationPriorityObject); },
4134
+ "pushEnabled": n => { notificationResponse.pushEnabled = n.getBooleanValue(); },
4114
4135
  "readAt": n => { notificationResponse.readAt = n.getDateValue(); },
4115
4136
  "relatedEntityId": n => { notificationResponse.relatedEntityId = n.getStringValue(); },
4116
4137
  "relatedEntityType": n => { notificationResponse.relatedEntityType = n.getStringValue(); },
@@ -5634,6 +5655,36 @@ export function deserializeIntoProblemDetails(problemDetails = {}) {
5634
5655
  "type": n => { problemDetails.type = n.getStringValue(); },
5635
5656
  };
5636
5657
  }
5658
+ /**
5659
+ * The deserialization information for the current model
5660
+ * @param PushInstallationRequest The instance to deserialize into.
5661
+ * @returns {Record<string, (node: ParseNode) => void>}
5662
+ */
5663
+ // @ts-ignore
5664
+ export function deserializeIntoPushInstallationRequest(pushInstallationRequest = {}) {
5665
+ return {
5666
+ "appBuild": n => { pushInstallationRequest.appBuild = n.getStringValue(); },
5667
+ "appIdentifier": n => { pushInstallationRequest.appIdentifier = n.getStringValue(); },
5668
+ "appName": n => { pushInstallationRequest.appName = n.getStringValue(); },
5669
+ "appVersion": n => { pushInstallationRequest.appVersion = n.getStringValue(); },
5670
+ "deviceModel": n => { pushInstallationRequest.deviceModel = n.getStringValue(); },
5671
+ "devicePlatform": n => { pushInstallationRequest.devicePlatform = n.getStringValue(); },
5672
+ "deviceVersion": n => { pushInstallationRequest.deviceVersion = n.getStringValue(); },
5673
+ "installationId": n => { pushInstallationRequest.installationId = n.getStringValue(); },
5674
+ "metadata": n => { pushInstallationRequest.metadata = n.getObjectValue(createPushInstallationRequest_metadataFromDiscriminatorValue); },
5675
+ "platform": n => { pushInstallationRequest.platform = n.getStringValue(); },
5676
+ "pushChannel": n => { pushInstallationRequest.pushChannel = n.getStringValue(); },
5677
+ };
5678
+ }
5679
+ /**
5680
+ * The deserialization information for the current model
5681
+ * @param PushInstallationRequest_metadata The instance to deserialize into.
5682
+ * @returns {Record<string, (node: ParseNode) => void>}
5683
+ */
5684
+ // @ts-ignore
5685
+ export function deserializeIntoPushInstallationRequest_metadata(pushInstallationRequest_metadata = {}) {
5686
+ return {};
5687
+ }
5637
5688
  /**
5638
5689
  * The deserialization information for the current model
5639
5690
  * @param RangeFilter The instance to deserialize into.
@@ -7613,6 +7664,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
7613
7664
  writer.writeStringValue("activeOutboundPhoneNumberId", conversationResponse.activeOutboundPhoneNumberId);
7614
7665
  writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
7615
7666
  writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
7667
+ writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
7616
7668
  writer.writeObjectValue("currentLeadStatus", conversationResponse.currentLeadStatus, serializeConversationResponse_currentLeadStatus);
7617
7669
  writer.writeStringValue("email", conversationResponse.email);
7618
7670
  writer.writeStringValue("firstName", conversationResponse.firstName);
@@ -8253,6 +8305,7 @@ export function serializeLeadContact(writer, leadContact = {}, isSerializingDeri
8253
8305
  if (!leadContact || isSerializingDerivedType) {
8254
8306
  return;
8255
8307
  }
8308
+ writer.writeStringValue("avatarUrl", leadContact.avatarUrl);
8256
8309
  writer.writeObjectValue("coordinate", leadContact.coordinate, serializeLeadContact_coordinate);
8257
8310
  writer.writeStringValue("email", leadContact.email);
8258
8311
  writer.writeStringValue("firstName", leadContact.firstName);
@@ -8830,6 +8883,7 @@ export function serializeNotificationResponse(writer, notificationResponse = {},
8830
8883
  writer.writeDateValue("modifiedAt", notificationResponse.modifiedAt);
8831
8884
  writer.writeStringValue("name", notificationResponse.name);
8832
8885
  writer.writeEnumValue("priority", notificationResponse.priority);
8886
+ writer.writeBooleanValue("pushEnabled", notificationResponse.pushEnabled);
8833
8887
  writer.writeDateValue("readAt", notificationResponse.readAt);
8834
8888
  writer.writeStringValue("relatedEntityId", notificationResponse.relatedEntityId);
8835
8889
  writer.writeStringValue("relatedEntityType", notificationResponse.relatedEntityType);
@@ -10602,6 +10656,43 @@ export function serializeProblemDetails(writer, problemDetails = {}, isSerializi
10602
10656
  writer.writeStringValue("type", problemDetails.type);
10603
10657
  writer.writeAdditionalData(problemDetails.additionalData);
10604
10658
  }
10659
+ /**
10660
+ * Serializes information the current object
10661
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10662
+ * @param PushInstallationRequest The instance to serialize from.
10663
+ * @param writer Serialization writer to use to serialize this model
10664
+ */
10665
+ // @ts-ignore
10666
+ export function serializePushInstallationRequest(writer, pushInstallationRequest = {}, isSerializingDerivedType = false) {
10667
+ if (!pushInstallationRequest || isSerializingDerivedType) {
10668
+ return;
10669
+ }
10670
+ writer.writeStringValue("appBuild", pushInstallationRequest.appBuild);
10671
+ writer.writeStringValue("appIdentifier", pushInstallationRequest.appIdentifier);
10672
+ writer.writeStringValue("appName", pushInstallationRequest.appName);
10673
+ writer.writeStringValue("appVersion", pushInstallationRequest.appVersion);
10674
+ writer.writeStringValue("deviceModel", pushInstallationRequest.deviceModel);
10675
+ writer.writeStringValue("devicePlatform", pushInstallationRequest.devicePlatform);
10676
+ writer.writeStringValue("deviceVersion", pushInstallationRequest.deviceVersion);
10677
+ writer.writeStringValue("installationId", pushInstallationRequest.installationId);
10678
+ writer.writeObjectValue("metadata", pushInstallationRequest.metadata, serializePushInstallationRequest_metadata);
10679
+ writer.writeStringValue("platform", pushInstallationRequest.platform);
10680
+ writer.writeStringValue("pushChannel", pushInstallationRequest.pushChannel);
10681
+ writer.writeAdditionalData(pushInstallationRequest.additionalData);
10682
+ }
10683
+ /**
10684
+ * Serializes information the current object
10685
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10686
+ * @param PushInstallationRequest_metadata The instance to serialize from.
10687
+ * @param writer Serialization writer to use to serialize this model
10688
+ */
10689
+ // @ts-ignore
10690
+ export function serializePushInstallationRequest_metadata(writer, pushInstallationRequest_metadata = {}, isSerializingDerivedType = false) {
10691
+ if (!pushInstallationRequest_metadata || isSerializingDerivedType) {
10692
+ return;
10693
+ }
10694
+ writer.writeAdditionalData(pushInstallationRequest_metadata.additionalData);
10695
+ }
10605
10696
  /**
10606
10697
  * Serializes information the current object
10607
10698
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.