@leadping/sdk 1.0.88 → 1.0.89

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.
@@ -426,6 +426,15 @@ export function createBlogArticleResponseFromDiscriminatorValue(parseNode) {
426
426
  export function createBlogSocialPostFromDiscriminatorValue(parseNode) {
427
427
  return deserializeIntoBlogSocialPost;
428
428
  }
429
+ /**
430
+ * Creates a new instance of the appropriate class based on discriminator value
431
+ * @param parseNode The parse node to use to read the discriminator value and create the object
432
+ * @returns {BrowserCallApproval}
433
+ */
434
+ // @ts-ignore
435
+ export function createBrowserCallApprovalFromDiscriminatorValue(parseNode) {
436
+ return deserializeIntoBrowserCallApproval;
437
+ }
429
438
  /**
430
439
  * Creates a new instance of the appropriate class based on discriminator value
431
440
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1758,6 +1767,15 @@ export function createPagedResultOfTransactionTableRowFromDiscriminatorValue(par
1758
1767
  export function createPagedResultOfUsageLedgerTableRowFromDiscriminatorValue(parseNode) {
1759
1768
  return deserializeIntoPagedResultOfUsageLedgerTableRow;
1760
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 {PhoneCallResponse_browserCallApproval}
1774
+ */
1775
+ // @ts-ignore
1776
+ export function createPhoneCallResponse_browserCallApprovalFromDiscriminatorValue(parseNode) {
1777
+ return deserializeIntoPhoneCallResponse_browserCallApproval;
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
@@ -3496,6 +3514,21 @@ export function deserializeIntoBlogSocialPost(blogSocialPost = {}) {
3496
3514
  "postId": n => { blogSocialPost.postId = n.getStringValue(); },
3497
3515
  };
3498
3516
  }
3517
+ /**
3518
+ * The deserialization information for the current model
3519
+ * @param BrowserCallApproval The instance to deserialize into.
3520
+ * @returns {Record<string, (node: ParseNode) => void>}
3521
+ */
3522
+ // @ts-ignore
3523
+ export function deserializeIntoBrowserCallApproval(browserCallApproval = {}) {
3524
+ return {
3525
+ "callerNumber": n => { browserCallApproval.callerNumber = n.getStringValue(); },
3526
+ "clientState": n => { browserCallApproval.clientState = n.getStringValue(); },
3527
+ "destinationNumber": n => { browserCallApproval.destinationNumber = n.getStringValue(); },
3528
+ "expiresAt": n => { browserCallApproval.expiresAt = n.getDateValue(); },
3529
+ "maximumDurationSeconds": n => { browserCallApproval.maximumDurationSeconds = n.getNumberValue(); },
3530
+ };
3531
+ }
3499
3532
  /**
3500
3533
  * The deserialization information for the current model
3501
3534
  * @param CallEventTableRow The instance to deserialize into.
@@ -4092,6 +4125,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
4092
4125
  "deliveredAt": n => { eventTableRow.deliveredAt = n.getDateValue(); },
4093
4126
  "description": n => { eventTableRow.description = n.getStringValue(); },
4094
4127
  "direction": n => { eventTableRow.direction = n.getStringValue(); },
4128
+ "durationSeconds": n => { eventTableRow.durationSeconds = n.getNumberValue(); },
4095
4129
  "errorCode": n => { eventTableRow.errorCode = n.getStringValue(); },
4096
4130
  "eventCategory": n => { eventTableRow.eventCategory = n.getStringValue(); },
4097
4131
  "eventType": n => { eventTableRow.eventType = n.getStringValue(); },
@@ -4213,6 +4247,7 @@ export function deserializeIntoInitiateCallRequest(initiateCallRequest = {}) {
4213
4247
  "conversationId": n => { initiateCallRequest.conversationId = n.getStringValue(); },
4214
4248
  "fromPhoneNumberId": n => { initiateCallRequest.fromPhoneNumberId = n.getStringValue(); },
4215
4249
  "leadId": n => { initiateCallRequest.leadId = n.getStringValue(); },
4250
+ "originateFromBrowser": n => { initiateCallRequest.originateFromBrowser = n.getBooleanValue(); },
4216
4251
  "outboundIdempotencyKey": n => { initiateCallRequest.outboundIdempotencyKey = n.getStringValue(); },
4217
4252
  "sourceId": n => { initiateCallRequest.sourceId = n.getStringValue(); },
4218
4253
  "useBrowserPhone": n => { initiateCallRequest.useBrowserPhone = n.getBooleanValue(); },
@@ -5732,6 +5767,7 @@ export function deserializeIntoOrganizationSwitchOption(organizationSwitchOption
5732
5767
  "isCurrent": n => { organizationSwitchOption.isCurrent = n.getBooleanValue(); },
5733
5768
  "isDemo": n => { organizationSwitchOption.isDemo = n.getBooleanValue(); },
5734
5769
  "lastUsedAt": n => { organizationSwitchOption.lastUsedAt = n.getDateValue(); },
5770
+ "memberCount": n => { organizationSwitchOption.memberCount = n.getNumberValue(); },
5735
5771
  "name": n => { organizationSwitchOption.name = n.getStringValue(); },
5736
5772
  "needsAdminReview": n => { organizationSwitchOption.needsAdminReview = n.getBooleanValue(); },
5737
5773
  "organizationStatus": n => { organizationSwitchOption.organizationStatus = n.getEnumValue(OrganizationSwitchOption_organizationStatusObject); },
@@ -6093,6 +6129,7 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
6093
6129
  "answeredAt": n => { phoneCallResponse.answeredAt = n.getDateValue(); },
6094
6130
  "billableAmount": n => { phoneCallResponse.billableAmount = n.getNumberValue(); },
6095
6131
  "billingStatus": n => { phoneCallResponse.billingStatus = n.getStringValue(); },
6132
+ "browserCallApproval": n => { phoneCallResponse.browserCallApproval = n.getObjectValue(createPhoneCallResponse_browserCallApprovalFromDiscriminatorValue); },
6096
6133
  "callerId": n => { phoneCallResponse.callerId = n.getStringValue(); },
6097
6134
  "campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
6098
6135
  "consoleEntries": n => { phoneCallResponse.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
@@ -6120,6 +6157,17 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
6120
6157
  "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
6121
6158
  };
6122
6159
  }
6160
+ /**
6161
+ * The deserialization information for the current model
6162
+ * @param PhoneCallResponse_browserCallApproval The instance to deserialize into.
6163
+ * @returns {Record<string, (node: ParseNode) => void>}
6164
+ */
6165
+ // @ts-ignore
6166
+ export function deserializeIntoPhoneCallResponse_browserCallApproval(phoneCallResponse_browserCallApproval = {}) {
6167
+ return {
6168
+ ...deserializeIntoBrowserCallApproval(phoneCallResponse_browserCallApproval),
6169
+ };
6170
+ }
6123
6171
  /**
6124
6172
  * The deserialization information for the current model
6125
6173
  * @param PhoneIdentityLookupAction The instance to deserialize into.
@@ -8777,6 +8825,24 @@ export function serializeBlogSocialPost(writer, blogSocialPost = {}, isSerializi
8777
8825
  writer.writeStringValue("postId", blogSocialPost.postId);
8778
8826
  writer.writeAdditionalData(blogSocialPost.additionalData);
8779
8827
  }
8828
+ /**
8829
+ * Serializes information the current object
8830
+ * @param BrowserCallApproval The instance to serialize from.
8831
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8832
+ * @param writer Serialization writer to use to serialize this model
8833
+ */
8834
+ // @ts-ignore
8835
+ export function serializeBrowserCallApproval(writer, browserCallApproval = {}, isSerializingDerivedType = false) {
8836
+ if (!browserCallApproval || isSerializingDerivedType) {
8837
+ return;
8838
+ }
8839
+ writer.writeStringValue("callerNumber", browserCallApproval.callerNumber);
8840
+ writer.writeStringValue("clientState", browserCallApproval.clientState);
8841
+ writer.writeStringValue("destinationNumber", browserCallApproval.destinationNumber);
8842
+ writer.writeDateValue("expiresAt", browserCallApproval.expiresAt);
8843
+ writer.writeNumberValue("maximumDurationSeconds", browserCallApproval.maximumDurationSeconds);
8844
+ writer.writeAdditionalData(browserCallApproval.additionalData);
8845
+ }
8780
8846
  /**
8781
8847
  * Serializes information the current object
8782
8848
  * @param CallEventTableRow The instance to serialize from.
@@ -9461,6 +9527,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
9461
9527
  writer.writeDateValue("deliveredAt", eventTableRow.deliveredAt);
9462
9528
  writer.writeStringValue("description", eventTableRow.description);
9463
9529
  writer.writeStringValue("direction", eventTableRow.direction);
9530
+ writer.writeNumberValue("durationSeconds", eventTableRow.durationSeconds);
9464
9531
  writer.writeStringValue("errorCode", eventTableRow.errorCode);
9465
9532
  writer.writeStringValue("eventCategory", eventTableRow.eventCategory);
9466
9533
  writer.writeStringValue("eventType", eventTableRow.eventType);
@@ -9600,6 +9667,7 @@ export function serializeInitiateCallRequest(writer, initiateCallRequest = {}, i
9600
9667
  writer.writeStringValue("conversationId", initiateCallRequest.conversationId);
9601
9668
  writer.writeStringValue("fromPhoneNumberId", initiateCallRequest.fromPhoneNumberId);
9602
9669
  writer.writeStringValue("leadId", initiateCallRequest.leadId);
9670
+ writer.writeBooleanValue("originateFromBrowser", initiateCallRequest.originateFromBrowser);
9603
9671
  writer.writeStringValue("outboundIdempotencyKey", initiateCallRequest.outboundIdempotencyKey);
9604
9672
  writer.writeStringValue("sourceId", initiateCallRequest.sourceId);
9605
9673
  writer.writeBooleanValue("useBrowserPhone", initiateCallRequest.useBrowserPhone);
@@ -11359,6 +11427,7 @@ export function serializeOrganizationSwitchOption(writer, organizationSwitchOpti
11359
11427
  writer.writeBooleanValue("isCurrent", organizationSwitchOption.isCurrent);
11360
11428
  writer.writeBooleanValue("isDemo", organizationSwitchOption.isDemo);
11361
11429
  writer.writeDateValue("lastUsedAt", organizationSwitchOption.lastUsedAt);
11430
+ writer.writeNumberValue("memberCount", organizationSwitchOption.memberCount);
11362
11431
  writer.writeStringValue("name", organizationSwitchOption.name);
11363
11432
  writer.writeBooleanValue("needsAdminReview", organizationSwitchOption.needsAdminReview);
11364
11433
  writer.writeEnumValue("organizationStatus", organizationSwitchOption.organizationStatus);
@@ -11786,6 +11855,7 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
11786
11855
  writer.writeDateValue("answeredAt", phoneCallResponse.answeredAt);
11787
11856
  writer.writeNumberValue("billableAmount", phoneCallResponse.billableAmount);
11788
11857
  writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
11858
+ writer.writeObjectValue("browserCallApproval", phoneCallResponse.browserCallApproval, serializePhoneCallResponse_browserCallApproval);
11789
11859
  writer.writeStringValue("callerId", phoneCallResponse.callerId);
11790
11860
  writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
11791
11861
  writer.writeCollectionOfObjectValues("consoleEntries", phoneCallResponse.consoleEntries, serializeCommunicationConsoleEntry);
@@ -11813,6 +11883,19 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
11813
11883
  writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
11814
11884
  writer.writeAdditionalData(phoneCallResponse.additionalData);
11815
11885
  }
11886
+ /**
11887
+ * Serializes information the current object
11888
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11889
+ * @param PhoneCallResponse_browserCallApproval The instance to serialize from.
11890
+ * @param writer Serialization writer to use to serialize this model
11891
+ */
11892
+ // @ts-ignore
11893
+ export function serializePhoneCallResponse_browserCallApproval(writer, phoneCallResponse_browserCallApproval = {}, isSerializingDerivedType = false) {
11894
+ if (!phoneCallResponse_browserCallApproval || isSerializingDerivedType) {
11895
+ return;
11896
+ }
11897
+ serializeBrowserCallApproval(writer, phoneCallResponse_browserCallApproval, isSerializingDerivedType);
11898
+ }
11816
11899
  /**
11817
11900
  * Serializes information the current object
11818
11901
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.