@leadping/sdk 1.0.87 → 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.
- package/dist/conversations/item/index.d.ts +5 -0
- package/dist/conversations/item/index.d.ts.map +1 -1
- package/dist/conversations/item/index.js +5 -0
- package/dist/conversations/item/index.js.map +1 -1
- package/dist/conversations/item/markReplyNeeded/index.d.ts +39 -0
- package/dist/conversations/item/markReplyNeeded/index.d.ts.map +1 -0
- package/dist/conversations/item/markReplyNeeded/index.js +28 -0
- package/dist/conversations/item/markReplyNeeded/index.js.map +1 -0
- package/dist/models/index.d.ts +134 -2
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +127 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -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
|
|
@@ -615,6 +624,15 @@ export function createCustomerCommunicationUsagePointFromDiscriminatorValue(pars
|
|
|
615
624
|
export function createCustomerFailingAutomationFromDiscriminatorValue(parseNode) {
|
|
616
625
|
return deserializeIntoCustomerFailingAutomation;
|
|
617
626
|
}
|
|
627
|
+
/**
|
|
628
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
629
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
630
|
+
* @returns {CustomerLeadOutcomes}
|
|
631
|
+
*/
|
|
632
|
+
// @ts-ignore
|
|
633
|
+
export function createCustomerLeadOutcomesFromDiscriminatorValue(parseNode) {
|
|
634
|
+
return deserializeIntoCustomerLeadOutcomes;
|
|
635
|
+
}
|
|
618
636
|
/**
|
|
619
637
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
620
638
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1749,6 +1767,15 @@ export function createPagedResultOfTransactionTableRowFromDiscriminatorValue(par
|
|
|
1749
1767
|
export function createPagedResultOfUsageLedgerTableRowFromDiscriminatorValue(parseNode) {
|
|
1750
1768
|
return deserializeIntoPagedResultOfUsageLedgerTableRow;
|
|
1751
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
|
+
}
|
|
1752
1779
|
/**
|
|
1753
1780
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1754
1781
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3487,6 +3514,21 @@ export function deserializeIntoBlogSocialPost(blogSocialPost = {}) {
|
|
|
3487
3514
|
"postId": n => { blogSocialPost.postId = n.getStringValue(); },
|
|
3488
3515
|
};
|
|
3489
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
|
+
}
|
|
3490
3532
|
/**
|
|
3491
3533
|
* The deserialization information for the current model
|
|
3492
3534
|
* @param CallEventTableRow The instance to deserialize into.
|
|
@@ -3718,6 +3760,7 @@ export function deserializeIntoCustomerAnalyticsResponse(customerAnalyticsRespon
|
|
|
3718
3760
|
"automationHealth": n => { customerAnalyticsResponse.automationHealth = n.getObjectValue(createCustomerAutomationHealthFromDiscriminatorValue); },
|
|
3719
3761
|
"communicationUsage": n => { customerAnalyticsResponse.communicationUsage = n.getObjectValue(createCustomerCommunicationUsageFromDiscriminatorValue); },
|
|
3720
3762
|
"generatedAt": n => { customerAnalyticsResponse.generatedAt = n.getDateValue(); },
|
|
3763
|
+
"leadOutcomes": n => { customerAnalyticsResponse.leadOutcomes = n.getObjectValue(createCustomerLeadOutcomesFromDiscriminatorValue); },
|
|
3721
3764
|
"leadSources": n => { customerAnalyticsResponse.leadSources = n.getCollectionOfObjectValues(createCustomerLeadSourceBreakdownFromDiscriminatorValue); },
|
|
3722
3765
|
"leadTrend": n => { customerAnalyticsResponse.leadTrend = n.getObjectValue(createCustomerLeadTrendFromDiscriminatorValue); },
|
|
3723
3766
|
"needsAttention": n => { customerAnalyticsResponse.needsAttention = n.getCollectionOfObjectValues(createCustomerNeedsAttentionItemFromDiscriminatorValue); },
|
|
@@ -3874,6 +3917,21 @@ export function deserializeIntoCustomerFailingAutomation(customerFailingAutomati
|
|
|
3874
3917
|
"name": n => { customerFailingAutomation.name = n.getStringValue(); },
|
|
3875
3918
|
};
|
|
3876
3919
|
}
|
|
3920
|
+
/**
|
|
3921
|
+
* The deserialization information for the current model
|
|
3922
|
+
* @param CustomerLeadOutcomes The instance to deserialize into.
|
|
3923
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3924
|
+
*/
|
|
3925
|
+
// @ts-ignore
|
|
3926
|
+
export function deserializeIntoCustomerLeadOutcomes(customerLeadOutcomes = {}) {
|
|
3927
|
+
return {
|
|
3928
|
+
"contactedLeads": n => { customerLeadOutcomes.contactedLeads = n.getNumberValue(); },
|
|
3929
|
+
"convertedLeads": n => { customerLeadOutcomes.convertedLeads = n.getNumberValue(); },
|
|
3930
|
+
"medianFirstAttemptMinutes": n => { customerLeadOutcomes.medianFirstAttemptMinutes = n.getNumberValue(); },
|
|
3931
|
+
"needsFollowUpLeads": n => { customerLeadOutcomes.needsFollowUpLeads = n.getNumberValue(); },
|
|
3932
|
+
"totalLeads": n => { customerLeadOutcomes.totalLeads = n.getNumberValue(); },
|
|
3933
|
+
};
|
|
3934
|
+
}
|
|
3877
3935
|
/**
|
|
3878
3936
|
* The deserialization information for the current model
|
|
3879
3937
|
* @param CustomerLeadSourceBreakdown The instance to deserialize into.
|
|
@@ -4067,6 +4125,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
|
|
|
4067
4125
|
"deliveredAt": n => { eventTableRow.deliveredAt = n.getDateValue(); },
|
|
4068
4126
|
"description": n => { eventTableRow.description = n.getStringValue(); },
|
|
4069
4127
|
"direction": n => { eventTableRow.direction = n.getStringValue(); },
|
|
4128
|
+
"durationSeconds": n => { eventTableRow.durationSeconds = n.getNumberValue(); },
|
|
4070
4129
|
"errorCode": n => { eventTableRow.errorCode = n.getStringValue(); },
|
|
4071
4130
|
"eventCategory": n => { eventTableRow.eventCategory = n.getStringValue(); },
|
|
4072
4131
|
"eventType": n => { eventTableRow.eventType = n.getStringValue(); },
|
|
@@ -4188,6 +4247,7 @@ export function deserializeIntoInitiateCallRequest(initiateCallRequest = {}) {
|
|
|
4188
4247
|
"conversationId": n => { initiateCallRequest.conversationId = n.getStringValue(); },
|
|
4189
4248
|
"fromPhoneNumberId": n => { initiateCallRequest.fromPhoneNumberId = n.getStringValue(); },
|
|
4190
4249
|
"leadId": n => { initiateCallRequest.leadId = n.getStringValue(); },
|
|
4250
|
+
"originateFromBrowser": n => { initiateCallRequest.originateFromBrowser = n.getBooleanValue(); },
|
|
4191
4251
|
"outboundIdempotencyKey": n => { initiateCallRequest.outboundIdempotencyKey = n.getStringValue(); },
|
|
4192
4252
|
"sourceId": n => { initiateCallRequest.sourceId = n.getStringValue(); },
|
|
4193
4253
|
"useBrowserPhone": n => { initiateCallRequest.useBrowserPhone = n.getBooleanValue(); },
|
|
@@ -5707,6 +5767,7 @@ export function deserializeIntoOrganizationSwitchOption(organizationSwitchOption
|
|
|
5707
5767
|
"isCurrent": n => { organizationSwitchOption.isCurrent = n.getBooleanValue(); },
|
|
5708
5768
|
"isDemo": n => { organizationSwitchOption.isDemo = n.getBooleanValue(); },
|
|
5709
5769
|
"lastUsedAt": n => { organizationSwitchOption.lastUsedAt = n.getDateValue(); },
|
|
5770
|
+
"memberCount": n => { organizationSwitchOption.memberCount = n.getNumberValue(); },
|
|
5710
5771
|
"name": n => { organizationSwitchOption.name = n.getStringValue(); },
|
|
5711
5772
|
"needsAdminReview": n => { organizationSwitchOption.needsAdminReview = n.getBooleanValue(); },
|
|
5712
5773
|
"organizationStatus": n => { organizationSwitchOption.organizationStatus = n.getEnumValue(OrganizationSwitchOption_organizationStatusObject); },
|
|
@@ -6068,6 +6129,7 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
|
|
|
6068
6129
|
"answeredAt": n => { phoneCallResponse.answeredAt = n.getDateValue(); },
|
|
6069
6130
|
"billableAmount": n => { phoneCallResponse.billableAmount = n.getNumberValue(); },
|
|
6070
6131
|
"billingStatus": n => { phoneCallResponse.billingStatus = n.getStringValue(); },
|
|
6132
|
+
"browserCallApproval": n => { phoneCallResponse.browserCallApproval = n.getObjectValue(createPhoneCallResponse_browserCallApprovalFromDiscriminatorValue); },
|
|
6071
6133
|
"callerId": n => { phoneCallResponse.callerId = n.getStringValue(); },
|
|
6072
6134
|
"campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
|
|
6073
6135
|
"consoleEntries": n => { phoneCallResponse.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
|
|
@@ -6095,6 +6157,17 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
|
|
|
6095
6157
|
"wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
|
|
6096
6158
|
};
|
|
6097
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
|
+
}
|
|
6098
6171
|
/**
|
|
6099
6172
|
* The deserialization information for the current model
|
|
6100
6173
|
* @param PhoneIdentityLookupAction The instance to deserialize into.
|
|
@@ -8752,6 +8825,24 @@ export function serializeBlogSocialPost(writer, blogSocialPost = {}, isSerializi
|
|
|
8752
8825
|
writer.writeStringValue("postId", blogSocialPost.postId);
|
|
8753
8826
|
writer.writeAdditionalData(blogSocialPost.additionalData);
|
|
8754
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
|
+
}
|
|
8755
8846
|
/**
|
|
8756
8847
|
* Serializes information the current object
|
|
8757
8848
|
* @param CallEventTableRow The instance to serialize from.
|
|
@@ -9022,6 +9113,7 @@ export function serializeCustomerAnalyticsResponse(writer, customerAnalyticsResp
|
|
|
9022
9113
|
writer.writeObjectValue("automationHealth", customerAnalyticsResponse.automationHealth, serializeCustomerAutomationHealth);
|
|
9023
9114
|
writer.writeObjectValue("communicationUsage", customerAnalyticsResponse.communicationUsage, serializeCustomerCommunicationUsage);
|
|
9024
9115
|
writer.writeDateValue("generatedAt", customerAnalyticsResponse.generatedAt);
|
|
9116
|
+
writer.writeObjectValue("leadOutcomes", customerAnalyticsResponse.leadOutcomes, serializeCustomerLeadOutcomes);
|
|
9025
9117
|
writer.writeCollectionOfObjectValues("leadSources", customerAnalyticsResponse.leadSources, serializeCustomerLeadSourceBreakdown);
|
|
9026
9118
|
writer.writeObjectValue("leadTrend", customerAnalyticsResponse.leadTrend, serializeCustomerLeadTrend);
|
|
9027
9119
|
writer.writeCollectionOfObjectValues("needsAttention", customerAnalyticsResponse.needsAttention, serializeCustomerNeedsAttentionItem);
|
|
@@ -9198,6 +9290,24 @@ export function serializeCustomerFailingAutomation(writer, customerFailingAutoma
|
|
|
9198
9290
|
writer.writeStringValue("name", customerFailingAutomation.name);
|
|
9199
9291
|
writer.writeAdditionalData(customerFailingAutomation.additionalData);
|
|
9200
9292
|
}
|
|
9293
|
+
/**
|
|
9294
|
+
* Serializes information the current object
|
|
9295
|
+
* @param CustomerLeadOutcomes The instance to serialize from.
|
|
9296
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9297
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9298
|
+
*/
|
|
9299
|
+
// @ts-ignore
|
|
9300
|
+
export function serializeCustomerLeadOutcomes(writer, customerLeadOutcomes = {}, isSerializingDerivedType = false) {
|
|
9301
|
+
if (!customerLeadOutcomes || isSerializingDerivedType) {
|
|
9302
|
+
return;
|
|
9303
|
+
}
|
|
9304
|
+
writer.writeNumberValue("contactedLeads", customerLeadOutcomes.contactedLeads);
|
|
9305
|
+
writer.writeNumberValue("convertedLeads", customerLeadOutcomes.convertedLeads);
|
|
9306
|
+
writer.writeNumberValue("medianFirstAttemptMinutes", customerLeadOutcomes.medianFirstAttemptMinutes);
|
|
9307
|
+
writer.writeNumberValue("needsFollowUpLeads", customerLeadOutcomes.needsFollowUpLeads);
|
|
9308
|
+
writer.writeNumberValue("totalLeads", customerLeadOutcomes.totalLeads);
|
|
9309
|
+
writer.writeAdditionalData(customerLeadOutcomes.additionalData);
|
|
9310
|
+
}
|
|
9201
9311
|
/**
|
|
9202
9312
|
* Serializes information the current object
|
|
9203
9313
|
* @param CustomerLeadSourceBreakdown The instance to serialize from.
|
|
@@ -9417,6 +9527,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
|
|
|
9417
9527
|
writer.writeDateValue("deliveredAt", eventTableRow.deliveredAt);
|
|
9418
9528
|
writer.writeStringValue("description", eventTableRow.description);
|
|
9419
9529
|
writer.writeStringValue("direction", eventTableRow.direction);
|
|
9530
|
+
writer.writeNumberValue("durationSeconds", eventTableRow.durationSeconds);
|
|
9420
9531
|
writer.writeStringValue("errorCode", eventTableRow.errorCode);
|
|
9421
9532
|
writer.writeStringValue("eventCategory", eventTableRow.eventCategory);
|
|
9422
9533
|
writer.writeStringValue("eventType", eventTableRow.eventType);
|
|
@@ -9556,6 +9667,7 @@ export function serializeInitiateCallRequest(writer, initiateCallRequest = {}, i
|
|
|
9556
9667
|
writer.writeStringValue("conversationId", initiateCallRequest.conversationId);
|
|
9557
9668
|
writer.writeStringValue("fromPhoneNumberId", initiateCallRequest.fromPhoneNumberId);
|
|
9558
9669
|
writer.writeStringValue("leadId", initiateCallRequest.leadId);
|
|
9670
|
+
writer.writeBooleanValue("originateFromBrowser", initiateCallRequest.originateFromBrowser);
|
|
9559
9671
|
writer.writeStringValue("outboundIdempotencyKey", initiateCallRequest.outboundIdempotencyKey);
|
|
9560
9672
|
writer.writeStringValue("sourceId", initiateCallRequest.sourceId);
|
|
9561
9673
|
writer.writeBooleanValue("useBrowserPhone", initiateCallRequest.useBrowserPhone);
|
|
@@ -11315,6 +11427,7 @@ export function serializeOrganizationSwitchOption(writer, organizationSwitchOpti
|
|
|
11315
11427
|
writer.writeBooleanValue("isCurrent", organizationSwitchOption.isCurrent);
|
|
11316
11428
|
writer.writeBooleanValue("isDemo", organizationSwitchOption.isDemo);
|
|
11317
11429
|
writer.writeDateValue("lastUsedAt", organizationSwitchOption.lastUsedAt);
|
|
11430
|
+
writer.writeNumberValue("memberCount", organizationSwitchOption.memberCount);
|
|
11318
11431
|
writer.writeStringValue("name", organizationSwitchOption.name);
|
|
11319
11432
|
writer.writeBooleanValue("needsAdminReview", organizationSwitchOption.needsAdminReview);
|
|
11320
11433
|
writer.writeEnumValue("organizationStatus", organizationSwitchOption.organizationStatus);
|
|
@@ -11742,6 +11855,7 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
|
|
|
11742
11855
|
writer.writeDateValue("answeredAt", phoneCallResponse.answeredAt);
|
|
11743
11856
|
writer.writeNumberValue("billableAmount", phoneCallResponse.billableAmount);
|
|
11744
11857
|
writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
|
|
11858
|
+
writer.writeObjectValue("browserCallApproval", phoneCallResponse.browserCallApproval, serializePhoneCallResponse_browserCallApproval);
|
|
11745
11859
|
writer.writeStringValue("callerId", phoneCallResponse.callerId);
|
|
11746
11860
|
writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
|
|
11747
11861
|
writer.writeCollectionOfObjectValues("consoleEntries", phoneCallResponse.consoleEntries, serializeCommunicationConsoleEntry);
|
|
@@ -11769,6 +11883,19 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
|
|
|
11769
11883
|
writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
|
|
11770
11884
|
writer.writeAdditionalData(phoneCallResponse.additionalData);
|
|
11771
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
|
+
}
|
|
11772
11899
|
/**
|
|
11773
11900
|
* Serializes information the current object
|
|
11774
11901
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|