@leadping/sdk 1.0.86 → 1.0.88

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.
Files changed (33) hide show
  1. package/dist/conversations/item/index.d.ts +5 -0
  2. package/dist/conversations/item/index.d.ts.map +1 -1
  3. package/dist/conversations/item/index.js +5 -0
  4. package/dist/conversations/item/index.js.map +1 -1
  5. package/dist/conversations/item/markReplyNeeded/index.d.ts +39 -0
  6. package/dist/conversations/item/markReplyNeeded/index.d.ts.map +1 -0
  7. package/dist/conversations/item/markReplyNeeded/index.js +28 -0
  8. package/dist/conversations/item/markReplyNeeded/index.js.map +1 -0
  9. package/dist/leads/item/index.d.ts +5 -0
  10. package/dist/leads/item/index.d.ts.map +1 -1
  11. package/dist/leads/item/index.js +5 -0
  12. package/dist/leads/item/index.js.map +1 -1
  13. package/dist/leads/item/phoneLookup/index.d.ts +32 -0
  14. package/dist/leads/item/phoneLookup/index.d.ts.map +1 -0
  15. package/dist/leads/item/phoneLookup/index.js +29 -0
  16. package/dist/leads/item/phoneLookup/index.js.map +1 -0
  17. package/dist/models/index.d.ts +102 -0
  18. package/dist/models/index.d.ts.map +1 -1
  19. package/dist/models/index.js +81 -0
  20. package/dist/models/index.js.map +1 -1
  21. package/dist/outbound/index.d.ts +7 -0
  22. package/dist/outbound/index.d.ts.map +1 -1
  23. package/dist/outbound/index.js +6 -0
  24. package/dist/outbound/index.js.map +1 -1
  25. package/dist/outbound/item/capacity/index.d.ts +32 -0
  26. package/dist/outbound/item/capacity/index.d.ts.map +1 -0
  27. package/dist/outbound/item/capacity/index.js +29 -0
  28. package/dist/outbound/item/capacity/index.js.map +1 -0
  29. package/dist/outbound/item/index.d.ts +20 -0
  30. package/dist/outbound/item/index.d.ts.map +1 -0
  31. package/dist/outbound/item/index.js +20 -0
  32. package/dist/outbound/item/index.js.map +1 -0
  33. package/package.json +1 -1
@@ -615,6 +615,15 @@ export function createCustomerCommunicationUsagePointFromDiscriminatorValue(pars
615
615
  export function createCustomerFailingAutomationFromDiscriminatorValue(parseNode) {
616
616
  return deserializeIntoCustomerFailingAutomation;
617
617
  }
618
+ /**
619
+ * Creates a new instance of the appropriate class based on discriminator value
620
+ * @param parseNode The parse node to use to read the discriminator value and create the object
621
+ * @returns {CustomerLeadOutcomes}
622
+ */
623
+ // @ts-ignore
624
+ export function createCustomerLeadOutcomesFromDiscriminatorValue(parseNode) {
625
+ return deserializeIntoCustomerLeadOutcomes;
626
+ }
618
627
  /**
619
628
  * Creates a new instance of the appropriate class based on discriminator value
620
629
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3503,6 +3512,7 @@ export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
3503
3512
  "consoleEntries": n => { callEventTableRow.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
3504
3513
  "conversationId": n => { callEventTableRow.conversationId = n.getStringValue(); },
3505
3514
  "createdAt": n => { callEventTableRow.createdAt = n.getDateValue(); },
3515
+ "description": n => { callEventTableRow.description = n.getStringValue(); },
3506
3516
  "direction": n => { callEventTableRow.direction = n.getStringValue(); },
3507
3517
  "duration": n => { callEventTableRow.duration = n.getNumberValue(); },
3508
3518
  "endedAt": n => { callEventTableRow.endedAt = n.getDateValue(); },
@@ -3717,6 +3727,7 @@ export function deserializeIntoCustomerAnalyticsResponse(customerAnalyticsRespon
3717
3727
  "automationHealth": n => { customerAnalyticsResponse.automationHealth = n.getObjectValue(createCustomerAutomationHealthFromDiscriminatorValue); },
3718
3728
  "communicationUsage": n => { customerAnalyticsResponse.communicationUsage = n.getObjectValue(createCustomerCommunicationUsageFromDiscriminatorValue); },
3719
3729
  "generatedAt": n => { customerAnalyticsResponse.generatedAt = n.getDateValue(); },
3730
+ "leadOutcomes": n => { customerAnalyticsResponse.leadOutcomes = n.getObjectValue(createCustomerLeadOutcomesFromDiscriminatorValue); },
3720
3731
  "leadSources": n => { customerAnalyticsResponse.leadSources = n.getCollectionOfObjectValues(createCustomerLeadSourceBreakdownFromDiscriminatorValue); },
3721
3732
  "leadTrend": n => { customerAnalyticsResponse.leadTrend = n.getObjectValue(createCustomerLeadTrendFromDiscriminatorValue); },
3722
3733
  "needsAttention": n => { customerAnalyticsResponse.needsAttention = n.getCollectionOfObjectValues(createCustomerNeedsAttentionItemFromDiscriminatorValue); },
@@ -3873,6 +3884,21 @@ export function deserializeIntoCustomerFailingAutomation(customerFailingAutomati
3873
3884
  "name": n => { customerFailingAutomation.name = n.getStringValue(); },
3874
3885
  };
3875
3886
  }
3887
+ /**
3888
+ * The deserialization information for the current model
3889
+ * @param CustomerLeadOutcomes The instance to deserialize into.
3890
+ * @returns {Record<string, (node: ParseNode) => void>}
3891
+ */
3892
+ // @ts-ignore
3893
+ export function deserializeIntoCustomerLeadOutcomes(customerLeadOutcomes = {}) {
3894
+ return {
3895
+ "contactedLeads": n => { customerLeadOutcomes.contactedLeads = n.getNumberValue(); },
3896
+ "convertedLeads": n => { customerLeadOutcomes.convertedLeads = n.getNumberValue(); },
3897
+ "medianFirstAttemptMinutes": n => { customerLeadOutcomes.medianFirstAttemptMinutes = n.getNumberValue(); },
3898
+ "needsFollowUpLeads": n => { customerLeadOutcomes.needsFollowUpLeads = n.getNumberValue(); },
3899
+ "totalLeads": n => { customerLeadOutcomes.totalLeads = n.getNumberValue(); },
3900
+ };
3901
+ }
3876
3902
  /**
3877
3903
  * The deserialization information for the current model
3878
3904
  * @param CustomerLeadSourceBreakdown The instance to deserialize into.
@@ -4512,6 +4538,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
4512
4538
  "landingPage": n => { leadMetadata.landingPage = n.getStringValue(); },
4513
4539
  "leadpingConsentCheckedAt": n => { leadMetadata.leadpingConsentCheckedAt = n.getDateValue(); },
4514
4540
  "organizationId": n => { leadMetadata.organizationId = n.getStringValue(); },
4541
+ "organizationName": n => { leadMetadata.organizationName = n.getStringValue(); },
4515
4542
  "origin": n => { leadMetadata.origin = n.getStringValue(); },
4516
4543
  "price": n => { leadMetadata.price = n.getNumberValue(); },
4517
4544
  "product": n => { leadMetadata.product = n.getStringValue(); },
@@ -4525,6 +4552,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
4525
4552
  "smsOptInAt": n => { leadMetadata.smsOptInAt = n.getDateValue(); },
4526
4553
  "smsOptOutAt": n => { leadMetadata.smsOptOutAt = n.getDateValue(); },
4527
4554
  "sourceMetadata": n => { leadMetadata.sourceMetadata = n.getObjectValue(createLeadMetadata_sourceMetadataFromDiscriminatorValue); },
4555
+ "sourceName": n => { leadMetadata.sourceName = n.getStringValue(); },
4528
4556
  "subId": n => { leadMetadata.subId = n.getStringValue(); },
4529
4557
  "trustedFormCheckedAt": n => { leadMetadata.trustedFormCheckedAt = n.getDateValue(); },
4530
4558
  "trustedFormRejectedAt": n => { leadMetadata.trustedFormRejectedAt = n.getDateValue(); },
@@ -6628,9 +6656,11 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
6628
6656
  "organizationId": n => { phoneNumberTableRow.organizationId = n.getStringValue(); },
6629
6657
  "ownership": n => { phoneNumberTableRow.ownership = n.getEnumValue(PhoneNumberOwnershipObject); },
6630
6658
  "routingSummary": n => { phoneNumberTableRow.routingSummary = n.getStringValue(); },
6659
+ "smsRampDirection": n => { phoneNumberTableRow.smsRampDirection = n.getEnumValue(PhoneNumberTableRow_smsRampDirectionObject); },
6631
6660
  "smsReady": n => { phoneNumberTableRow.smsReady = n.getBooleanValue(); },
6632
6661
  "tenDlcCampaignStatus": n => { phoneNumberTableRow.tenDlcCampaignStatus = n.getStringValue(); },
6633
6662
  "type": n => { phoneNumberTableRow.type = n.getStringValue(); },
6663
+ "voiceRampDirection": n => { phoneNumberTableRow.voiceRampDirection = n.getEnumValue(PhoneNumberTableRow_voiceRampDirectionObject); },
6634
6664
  "voiceReady": n => { phoneNumberTableRow.voiceReady = n.getBooleanValue(); },
6635
6665
  "warmup": n => { phoneNumberTableRow.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
6636
6666
  };
@@ -7170,6 +7200,8 @@ export function deserializeIntoStripePaymentMethodResponse(stripePaymentMethodRe
7170
7200
  "id": n => { stripePaymentMethodResponse.id = n.getStringValue(); },
7171
7201
  "isDefault": n => { stripePaymentMethodResponse.isDefault = n.getBooleanValue(); },
7172
7202
  "last4": n => { stripePaymentMethodResponse.last4 = n.getStringValue(); },
7203
+ "type": n => { stripePaymentMethodResponse.type = n.getEnumValue(BillingPaymentMethodTypeObject); },
7204
+ "walletName": n => { stripePaymentMethodResponse.walletName = n.getStringValue(); },
7173
7205
  };
7174
7206
  }
7175
7207
  /**
@@ -8764,6 +8796,7 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
8764
8796
  writer.writeCollectionOfObjectValues("consoleEntries", callEventTableRow.consoleEntries, serializeCommunicationConsoleEntry);
8765
8797
  writer.writeStringValue("conversationId", callEventTableRow.conversationId);
8766
8798
  writer.writeDateValue("createdAt", callEventTableRow.createdAt);
8799
+ writer.writeStringValue("description", callEventTableRow.description);
8767
8800
  writer.writeStringValue("direction", callEventTableRow.direction);
8768
8801
  writer.writeNumberValue("duration", callEventTableRow.duration);
8769
8802
  writer.writeDateValue("endedAt", callEventTableRow.endedAt);
@@ -9014,6 +9047,7 @@ export function serializeCustomerAnalyticsResponse(writer, customerAnalyticsResp
9014
9047
  writer.writeObjectValue("automationHealth", customerAnalyticsResponse.automationHealth, serializeCustomerAutomationHealth);
9015
9048
  writer.writeObjectValue("communicationUsage", customerAnalyticsResponse.communicationUsage, serializeCustomerCommunicationUsage);
9016
9049
  writer.writeDateValue("generatedAt", customerAnalyticsResponse.generatedAt);
9050
+ writer.writeObjectValue("leadOutcomes", customerAnalyticsResponse.leadOutcomes, serializeCustomerLeadOutcomes);
9017
9051
  writer.writeCollectionOfObjectValues("leadSources", customerAnalyticsResponse.leadSources, serializeCustomerLeadSourceBreakdown);
9018
9052
  writer.writeObjectValue("leadTrend", customerAnalyticsResponse.leadTrend, serializeCustomerLeadTrend);
9019
9053
  writer.writeCollectionOfObjectValues("needsAttention", customerAnalyticsResponse.needsAttention, serializeCustomerNeedsAttentionItem);
@@ -9190,6 +9224,24 @@ export function serializeCustomerFailingAutomation(writer, customerFailingAutoma
9190
9224
  writer.writeStringValue("name", customerFailingAutomation.name);
9191
9225
  writer.writeAdditionalData(customerFailingAutomation.additionalData);
9192
9226
  }
9227
+ /**
9228
+ * Serializes information the current object
9229
+ * @param CustomerLeadOutcomes The instance to serialize from.
9230
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9231
+ * @param writer Serialization writer to use to serialize this model
9232
+ */
9233
+ // @ts-ignore
9234
+ export function serializeCustomerLeadOutcomes(writer, customerLeadOutcomes = {}, isSerializingDerivedType = false) {
9235
+ if (!customerLeadOutcomes || isSerializingDerivedType) {
9236
+ return;
9237
+ }
9238
+ writer.writeNumberValue("contactedLeads", customerLeadOutcomes.contactedLeads);
9239
+ writer.writeNumberValue("convertedLeads", customerLeadOutcomes.convertedLeads);
9240
+ writer.writeNumberValue("medianFirstAttemptMinutes", customerLeadOutcomes.medianFirstAttemptMinutes);
9241
+ writer.writeNumberValue("needsFollowUpLeads", customerLeadOutcomes.needsFollowUpLeads);
9242
+ writer.writeNumberValue("totalLeads", customerLeadOutcomes.totalLeads);
9243
+ writer.writeAdditionalData(customerLeadOutcomes.additionalData);
9244
+ }
9193
9245
  /**
9194
9246
  * Serializes information the current object
9195
9247
  * @param CustomerLeadSourceBreakdown The instance to serialize from.
@@ -9930,6 +9982,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
9930
9982
  writer.writeStringValue("landingPage", leadMetadata.landingPage);
9931
9983
  writer.writeDateValue("leadpingConsentCheckedAt", leadMetadata.leadpingConsentCheckedAt);
9932
9984
  writer.writeStringValue("organizationId", leadMetadata.organizationId);
9985
+ writer.writeStringValue("organizationName", leadMetadata.organizationName);
9933
9986
  writer.writeStringValue("origin", leadMetadata.origin);
9934
9987
  writer.writeNumberValue("price", leadMetadata.price);
9935
9988
  writer.writeStringValue("product", leadMetadata.product);
@@ -9943,6 +9996,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
9943
9996
  writer.writeDateValue("smsOptInAt", leadMetadata.smsOptInAt);
9944
9997
  writer.writeDateValue("smsOptOutAt", leadMetadata.smsOptOutAt);
9945
9998
  writer.writeObjectValue("sourceMetadata", leadMetadata.sourceMetadata, serializeLeadMetadata_sourceMetadata);
9999
+ writer.writeStringValue("sourceName", leadMetadata.sourceName);
9946
10000
  writer.writeStringValue("subId", leadMetadata.subId);
9947
10001
  writer.writeDateValue("trustedFormCheckedAt", leadMetadata.trustedFormCheckedAt);
9948
10002
  writer.writeDateValue("trustedFormRejectedAt", leadMetadata.trustedFormRejectedAt);
@@ -12393,9 +12447,11 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
12393
12447
  writer.writeStringValue("organizationId", phoneNumberTableRow.organizationId);
12394
12448
  writer.writeEnumValue("ownership", phoneNumberTableRow.ownership);
12395
12449
  writer.writeStringValue("routingSummary", phoneNumberTableRow.routingSummary);
12450
+ writer.writeEnumValue("smsRampDirection", phoneNumberTableRow.smsRampDirection);
12396
12451
  writer.writeBooleanValue("smsReady", phoneNumberTableRow.smsReady);
12397
12452
  writer.writeStringValue("tenDlcCampaignStatus", phoneNumberTableRow.tenDlcCampaignStatus);
12398
12453
  writer.writeStringValue("type", phoneNumberTableRow.type);
12454
+ writer.writeEnumValue("voiceRampDirection", phoneNumberTableRow.voiceRampDirection);
12399
12455
  writer.writeBooleanValue("voiceReady", phoneNumberTableRow.voiceReady);
12400
12456
  writer.writeObjectValue("warmup", phoneNumberTableRow.warmup, serializePhoneNumberReadiness);
12401
12457
  writer.writeAdditionalData(phoneNumberTableRow.additionalData);
@@ -13015,6 +13071,8 @@ export function serializeStripePaymentMethodResponse(writer, stripePaymentMethod
13015
13071
  writer.writeStringValue("id", stripePaymentMethodResponse.id);
13016
13072
  writer.writeBooleanValue("isDefault", stripePaymentMethodResponse.isDefault);
13017
13073
  writer.writeStringValue("last4", stripePaymentMethodResponse.last4);
13074
+ writer.writeEnumValue("type", stripePaymentMethodResponse.type);
13075
+ writer.writeStringValue("walletName", stripePaymentMethodResponse.walletName);
13018
13076
  writer.writeAdditionalData(stripePaymentMethodResponse.additionalData);
13019
13077
  }
13020
13078
  /**
@@ -13891,6 +13949,13 @@ export const BillableUnitObject = {
13891
13949
  Connection_action: "connection_action",
13892
13950
  Automation_run: "automation_run",
13893
13951
  };
13952
+ /**
13953
+ * Reusable payment types supported for immediate billing payments.
13954
+ */
13955
+ export const BillingPaymentMethodTypeObject = {
13956
+ Card: "card",
13957
+ Link: "link",
13958
+ };
13894
13959
  /**
13895
13960
  * Identifies the Leadping subscription plan that determines organization features, allowances, and billing behavior.
13896
13961
  */
@@ -14734,6 +14799,22 @@ export const PhoneNumberReadiness_stateObject = {
14734
14799
  Blocked: "Blocked",
14735
14800
  Ready: "Ready",
14736
14801
  };
14802
+ /**
14803
+ * Indicates whether a phone number's channel capacity is increasing, decreasing, or stable.
14804
+ */
14805
+ export const PhoneNumberTableRow_smsRampDirectionObject = {
14806
+ Up: "up",
14807
+ Down: "down",
14808
+ None: "none",
14809
+ };
14810
+ /**
14811
+ * Indicates whether a phone number's channel capacity is increasing, decreasing, or stable.
14812
+ */
14813
+ export const PhoneNumberTableRow_voiceRampDirectionObject = {
14814
+ Up: "up",
14815
+ Down: "down",
14816
+ None: "none",
14817
+ };
14737
14818
  /**
14738
14819
  * Defines the source that requested outbound delivery.
14739
14820
  */