@leadping/sdk 1.0.88 → 1.0.90

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,7 +6129,9 @@ 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(); },
6134
+ "callSessionId": n => { phoneCallResponse.callSessionId = n.getStringValue(); },
6097
6135
  "campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
6098
6136
  "consoleEntries": n => { phoneCallResponse.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
6099
6137
  "conversationId": n => { phoneCallResponse.conversationId = n.getStringValue(); },
@@ -6106,6 +6144,7 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
6106
6144
  "id": n => { phoneCallResponse.id = n.getStringValue(); },
6107
6145
  "isDemo": n => { phoneCallResponse.isDemo = n.getBooleanValue(); },
6108
6146
  "leadId": n => { phoneCallResponse.leadId = n.getStringValue(); },
6147
+ "leadName": n => { phoneCallResponse.leadName = n.getStringValue(); },
6109
6148
  "modifiedAt": n => { phoneCallResponse.modifiedAt = n.getDateValue(); },
6110
6149
  "organizationId": n => { phoneCallResponse.organizationId = n.getStringValue(); },
6111
6150
  "phoneNumber": n => { phoneCallResponse.phoneNumber = n.getStringValue(); },
@@ -6120,6 +6159,17 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
6120
6159
  "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
6121
6160
  };
6122
6161
  }
6162
+ /**
6163
+ * The deserialization information for the current model
6164
+ * @param PhoneCallResponse_browserCallApproval The instance to deserialize into.
6165
+ * @returns {Record<string, (node: ParseNode) => void>}
6166
+ */
6167
+ // @ts-ignore
6168
+ export function deserializeIntoPhoneCallResponse_browserCallApproval(phoneCallResponse_browserCallApproval = {}) {
6169
+ return {
6170
+ ...deserializeIntoBrowserCallApproval(phoneCallResponse_browserCallApproval),
6171
+ };
6172
+ }
6123
6173
  /**
6124
6174
  * The deserialization information for the current model
6125
6175
  * @param PhoneIdentityLookupAction The instance to deserialize into.
@@ -7350,6 +7400,7 @@ export function deserializeIntoTagSummary(tagSummary = {}) {
7350
7400
  export function deserializeIntoTelephonyLoginRequest(telephonyLoginRequest = {}) {
7351
7401
  return {
7352
7402
  "device": n => { telephonyLoginRequest.device = n.getObjectValue(createTelephonyLoginRequest_deviceFromDiscriminatorValue); },
7403
+ "includeIncoming": n => { telephonyLoginRequest.includeIncoming = n.getBooleanValue(); },
7353
7404
  };
7354
7405
  }
7355
7406
  /**
@@ -7373,6 +7424,8 @@ export function deserializeIntoTelephonyLoginResponse(telephonyLoginResponse = {
7373
7424
  return {
7374
7425
  "callbackToken": n => { telephonyLoginResponse.callbackToken = n.getStringValue(); },
7375
7426
  "expiresAt": n => { telephonyLoginResponse.expiresAt = n.getDateValue(); },
7427
+ "incomingPassword": n => { telephonyLoginResponse.incomingPassword = n.getStringValue(); },
7428
+ "incomingUsername": n => { telephonyLoginResponse.incomingUsername = n.getStringValue(); },
7376
7429
  "password": n => { telephonyLoginResponse.password = n.getStringValue(); },
7377
7430
  "username": n => { telephonyLoginResponse.username = n.getStringValue(); },
7378
7431
  };
@@ -8777,6 +8830,24 @@ export function serializeBlogSocialPost(writer, blogSocialPost = {}, isSerializi
8777
8830
  writer.writeStringValue("postId", blogSocialPost.postId);
8778
8831
  writer.writeAdditionalData(blogSocialPost.additionalData);
8779
8832
  }
8833
+ /**
8834
+ * Serializes information the current object
8835
+ * @param BrowserCallApproval The instance to serialize from.
8836
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8837
+ * @param writer Serialization writer to use to serialize this model
8838
+ */
8839
+ // @ts-ignore
8840
+ export function serializeBrowserCallApproval(writer, browserCallApproval = {}, isSerializingDerivedType = false) {
8841
+ if (!browserCallApproval || isSerializingDerivedType) {
8842
+ return;
8843
+ }
8844
+ writer.writeStringValue("callerNumber", browserCallApproval.callerNumber);
8845
+ writer.writeStringValue("clientState", browserCallApproval.clientState);
8846
+ writer.writeStringValue("destinationNumber", browserCallApproval.destinationNumber);
8847
+ writer.writeDateValue("expiresAt", browserCallApproval.expiresAt);
8848
+ writer.writeNumberValue("maximumDurationSeconds", browserCallApproval.maximumDurationSeconds);
8849
+ writer.writeAdditionalData(browserCallApproval.additionalData);
8850
+ }
8780
8851
  /**
8781
8852
  * Serializes information the current object
8782
8853
  * @param CallEventTableRow The instance to serialize from.
@@ -9461,6 +9532,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
9461
9532
  writer.writeDateValue("deliveredAt", eventTableRow.deliveredAt);
9462
9533
  writer.writeStringValue("description", eventTableRow.description);
9463
9534
  writer.writeStringValue("direction", eventTableRow.direction);
9535
+ writer.writeNumberValue("durationSeconds", eventTableRow.durationSeconds);
9464
9536
  writer.writeStringValue("errorCode", eventTableRow.errorCode);
9465
9537
  writer.writeStringValue("eventCategory", eventTableRow.eventCategory);
9466
9538
  writer.writeStringValue("eventType", eventTableRow.eventType);
@@ -9600,6 +9672,7 @@ export function serializeInitiateCallRequest(writer, initiateCallRequest = {}, i
9600
9672
  writer.writeStringValue("conversationId", initiateCallRequest.conversationId);
9601
9673
  writer.writeStringValue("fromPhoneNumberId", initiateCallRequest.fromPhoneNumberId);
9602
9674
  writer.writeStringValue("leadId", initiateCallRequest.leadId);
9675
+ writer.writeBooleanValue("originateFromBrowser", initiateCallRequest.originateFromBrowser);
9603
9676
  writer.writeStringValue("outboundIdempotencyKey", initiateCallRequest.outboundIdempotencyKey);
9604
9677
  writer.writeStringValue("sourceId", initiateCallRequest.sourceId);
9605
9678
  writer.writeBooleanValue("useBrowserPhone", initiateCallRequest.useBrowserPhone);
@@ -11359,6 +11432,7 @@ export function serializeOrganizationSwitchOption(writer, organizationSwitchOpti
11359
11432
  writer.writeBooleanValue("isCurrent", organizationSwitchOption.isCurrent);
11360
11433
  writer.writeBooleanValue("isDemo", organizationSwitchOption.isDemo);
11361
11434
  writer.writeDateValue("lastUsedAt", organizationSwitchOption.lastUsedAt);
11435
+ writer.writeNumberValue("memberCount", organizationSwitchOption.memberCount);
11362
11436
  writer.writeStringValue("name", organizationSwitchOption.name);
11363
11437
  writer.writeBooleanValue("needsAdminReview", organizationSwitchOption.needsAdminReview);
11364
11438
  writer.writeEnumValue("organizationStatus", organizationSwitchOption.organizationStatus);
@@ -11786,7 +11860,9 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
11786
11860
  writer.writeDateValue("answeredAt", phoneCallResponse.answeredAt);
11787
11861
  writer.writeNumberValue("billableAmount", phoneCallResponse.billableAmount);
11788
11862
  writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
11863
+ writer.writeObjectValue("browserCallApproval", phoneCallResponse.browserCallApproval, serializePhoneCallResponse_browserCallApproval);
11789
11864
  writer.writeStringValue("callerId", phoneCallResponse.callerId);
11865
+ writer.writeStringValue("callSessionId", phoneCallResponse.callSessionId);
11790
11866
  writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
11791
11867
  writer.writeCollectionOfObjectValues("consoleEntries", phoneCallResponse.consoleEntries, serializeCommunicationConsoleEntry);
11792
11868
  writer.writeStringValue("conversationId", phoneCallResponse.conversationId);
@@ -11799,6 +11875,7 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
11799
11875
  writer.writeStringValue("id", phoneCallResponse.id);
11800
11876
  writer.writeBooleanValue("isDemo", phoneCallResponse.isDemo);
11801
11877
  writer.writeStringValue("leadId", phoneCallResponse.leadId);
11878
+ writer.writeStringValue("leadName", phoneCallResponse.leadName);
11802
11879
  writer.writeDateValue("modifiedAt", phoneCallResponse.modifiedAt);
11803
11880
  writer.writeStringValue("organizationId", phoneCallResponse.organizationId);
11804
11881
  writer.writeStringValue("phoneNumber", phoneCallResponse.phoneNumber);
@@ -11813,6 +11890,19 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
11813
11890
  writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
11814
11891
  writer.writeAdditionalData(phoneCallResponse.additionalData);
11815
11892
  }
11893
+ /**
11894
+ * Serializes information the current object
11895
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11896
+ * @param PhoneCallResponse_browserCallApproval The instance to serialize from.
11897
+ * @param writer Serialization writer to use to serialize this model
11898
+ */
11899
+ // @ts-ignore
11900
+ export function serializePhoneCallResponse_browserCallApproval(writer, phoneCallResponse_browserCallApproval = {}, isSerializingDerivedType = false) {
11901
+ if (!phoneCallResponse_browserCallApproval || isSerializingDerivedType) {
11902
+ return;
11903
+ }
11904
+ serializeBrowserCallApproval(writer, phoneCallResponse_browserCallApproval, isSerializingDerivedType);
11905
+ }
11816
11906
  /**
11817
11907
  * Serializes information the current object
11818
11908
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -13249,6 +13339,7 @@ export function serializeTelephonyLoginRequest(writer, telephonyLoginRequest = {
13249
13339
  return;
13250
13340
  }
13251
13341
  writer.writeObjectValue("device", telephonyLoginRequest.device, serializeTelephonyLoginRequest_device);
13342
+ writer.writeBooleanValue("includeIncoming", telephonyLoginRequest.includeIncoming);
13252
13343
  writer.writeAdditionalData(telephonyLoginRequest.additionalData);
13253
13344
  }
13254
13345
  /**
@@ -13277,6 +13368,8 @@ export function serializeTelephonyLoginResponse(writer, telephonyLoginResponse =
13277
13368
  }
13278
13369
  writer.writeStringValue("callbackToken", telephonyLoginResponse.callbackToken);
13279
13370
  writer.writeDateValue("expiresAt", telephonyLoginResponse.expiresAt);
13371
+ writer.writeStringValue("incomingPassword", telephonyLoginResponse.incomingPassword);
13372
+ writer.writeStringValue("incomingUsername", telephonyLoginResponse.incomingUsername);
13280
13373
  writer.writeStringValue("password", telephonyLoginResponse.password);
13281
13374
  writer.writeStringValue("username", telephonyLoginResponse.username);
13282
13375
  writer.writeAdditionalData(telephonyLoginResponse.additionalData);