@leadping/sdk 1.0.32 → 1.0.33

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 (78) hide show
  1. package/dist/analytics/my/index.d.ts +9 -0
  2. package/dist/analytics/my/index.d.ts.map +1 -1
  3. package/dist/analytics/my/index.js.map +1 -1
  4. package/dist/automations/index.d.ts +2 -2
  5. package/dist/automations/item/index.d.ts +2 -2
  6. package/dist/automations/preview/index.d.ts +2 -2
  7. package/dist/contact/index.d.ts +2 -2
  8. package/dist/conversations/my/index.d.ts +3 -0
  9. package/dist/conversations/my/index.d.ts.map +1 -1
  10. package/dist/conversations/my/index.js.map +1 -1
  11. package/dist/events/all/my/index.d.ts +9 -0
  12. package/dist/events/all/my/index.d.ts.map +1 -1
  13. package/dist/events/all/my/index.js.map +1 -1
  14. package/dist/events/conversations/item/notes/index.d.ts +2 -2
  15. package/dist/events/organizations/item/index.d.ts +6 -0
  16. package/dist/events/organizations/item/index.d.ts.map +1 -1
  17. package/dist/events/organizations/item/index.js.map +1 -1
  18. package/dist/feedback/index.d.ts +2 -2
  19. package/dist/leadStatusChanges/all/my/index.d.ts +2 -2
  20. package/dist/leadStatuses/index.d.ts +1 -1
  21. package/dist/leads/all/my/index.d.ts +12 -0
  22. package/dist/leads/all/my/index.d.ts.map +1 -1
  23. package/dist/leads/all/my/index.js.map +1 -1
  24. package/dist/leads/index.d.ts +2 -2
  25. package/dist/leads/intake/index.d.ts +2 -2
  26. package/dist/leads/item/archive/index.d.ts +3 -3
  27. package/dist/leads/item/index.d.ts +2 -2
  28. package/dist/leads/item/tags/index.d.ts +5 -5
  29. package/dist/models/index.d.ts +456 -369
  30. package/dist/models/index.d.ts.map +1 -1
  31. package/dist/models/index.js +69 -2
  32. package/dist/models/index.js.map +1 -1
  33. package/dist/notifications/push/installations/current/index.d.ts +2 -2
  34. package/dist/notifications/push/installations/index.d.ts +1 -1
  35. package/dist/notifications/push/installations/item/index.d.ts +2 -2
  36. package/dist/organizations/invitations/accept/index.d.ts +2 -2
  37. package/dist/organizations/me/index.d.ts +4 -4
  38. package/dist/organizations/me/invitations/index.d.ts +2 -2
  39. package/dist/organizations/me/members/index.d.ts +2 -2
  40. package/dist/organizations/me/members/item/index.d.ts +2 -2
  41. package/dist/organizations/me/switchEscaped/index.d.ts +2 -2
  42. package/dist/paymentMethods/invoices/index.d.ts +1 -1
  43. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts +3 -0
  44. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts.map +1 -1
  45. package/dist/paymentMethods/invoices/item/pdfAccess/index.js.map +1 -1
  46. package/dist/phoneCall/initiate/index.d.ts +2 -2
  47. package/dist/phoneNumbers/index.d.ts +2 -2
  48. package/dist/phoneNumbers/isAvailableForPurchase/index.d.ts +2 -2
  49. package/dist/phoneNumbers/item/index.d.ts +2 -2
  50. package/dist/phoneNumbers/outgoing/conversation/item/index.d.ts +2 -2
  51. package/dist/phoneNumbers/outgoing/conversation/item/override/index.d.ts +2 -2
  52. package/dist/phoneNumbers/outgoing/manualOverride/index.d.ts +2 -2
  53. package/dist/phoneNumbers/outgoing/newEscaped/index.d.ts +2 -2
  54. package/dist/phoneNumbers/search/index.d.ts +2 -2
  55. package/dist/reports/exports/index.d.ts +1 -1
  56. package/dist/reports/exports/item/download/index.d.ts +3 -0
  57. package/dist/reports/exports/item/download/index.d.ts.map +1 -1
  58. package/dist/reports/exports/item/download/index.js.map +1 -1
  59. package/dist/sms/media/index.d.ts +2 -2
  60. package/dist/sms/send/index.d.ts +2 -2
  61. package/dist/sources/index.d.ts +2 -2
  62. package/dist/sources/item/index.d.ts +2 -2
  63. package/dist/suppressions/all/my/index.d.ts +2 -2
  64. package/dist/suppressions/check/index.d.ts +2 -2
  65. package/dist/suppressions/index.d.ts +3 -3
  66. package/dist/suppressions/item/index.d.ts +2 -2
  67. package/dist/suppressions/release/index.d.ts +2 -2
  68. package/dist/tags/index.d.ts +6 -3
  69. package/dist/tags/index.d.ts.map +1 -1
  70. package/dist/tags/index.js.map +1 -1
  71. package/dist/tags/item/index.d.ts +2 -2
  72. package/dist/transactions/all/my/index.d.ts +6 -0
  73. package/dist/transactions/all/my/index.d.ts.map +1 -1
  74. package/dist/transactions/all/my/index.js.map +1 -1
  75. package/dist/users/changeBillingPlan/index.d.ts +2 -2
  76. package/dist/users/compliance/index.d.ts +2 -2
  77. package/dist/users/me/index.d.ts +2 -2
  78. package/package.json +1 -1
@@ -1407,6 +1407,15 @@ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
1407
1407
  export function createPhoneFromDiscriminatorValue(parseNode) {
1408
1408
  return deserializeIntoPhone;
1409
1409
  }
1410
+ /**
1411
+ * Creates a new instance of the appropriate class based on discriminator value
1412
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1413
+ * @returns {PhoneIdentityLookupAction}
1414
+ */
1415
+ // @ts-ignore
1416
+ export function createPhoneIdentityLookupActionFromDiscriminatorValue(parseNode) {
1417
+ return deserializeIntoPhoneIdentityLookupAction;
1418
+ }
1410
1419
  /**
1411
1420
  * Creates a new instance of the appropriate class based on discriminator value
1412
1421
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4733,6 +4742,7 @@ export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview
4733
4742
  "healthyPhoneNumbers": n => { outboundCapacityOverview.healthyPhoneNumbers = n.getNumberValue(); },
4734
4743
  "limitedPhoneNumbers": n => { outboundCapacityOverview.limitedPhoneNumbers = n.getNumberValue(); },
4735
4744
  "phoneNumbers": n => { outboundCapacityOverview.phoneNumbers = n.getCollectionOfObjectValues(createOutboundPhoneNumberCapacityFromDiscriminatorValue); },
4745
+ "rampingPhoneNumbers": n => { outboundCapacityOverview.rampingPhoneNumbers = n.getNumberValue(); },
4736
4746
  "recentDecisions": n => { outboundCapacityOverview.recentDecisions = n.getCollectionOfObjectValues(createOutboundQueueItemFromDiscriminatorValue); },
4737
4747
  "scheduledCount": n => { outboundCapacityOverview.scheduledCount = n.getNumberValue(); },
4738
4748
  "smsCapacityRemainingToday": n => { outboundCapacityOverview.smsCapacityRemainingToday = n.getNumberValue(); },
@@ -4748,15 +4758,18 @@ export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview
4748
4758
  export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCapacity = {}) {
4749
4759
  return {
4750
4760
  "capacityAvailable": n => { outboundPhoneNumberCapacity.capacityAvailable = n.getBooleanValue(); },
4761
+ "healthReason": n => { outboundPhoneNumberCapacity.healthReason = n.getStringValue(); },
4751
4762
  "healthStatus": n => { outboundPhoneNumberCapacity.healthStatus = n.getEnumValue(PhoneNumberOutboundHealthStatusObject); },
4752
4763
  "phoneNumber": n => { outboundPhoneNumberCapacity.phoneNumber = n.getStringValue(); },
4753
4764
  "phoneNumberId": n => { outboundPhoneNumberCapacity.phoneNumberId = n.getStringValue(); },
4765
+ "smsApproved": n => { outboundPhoneNumberCapacity.smsApproved = n.getBooleanValue(); },
4754
4766
  "smsDailyResetsAt": n => { outboundPhoneNumberCapacity.smsDailyResetsAt = n.getDateValue(); },
4755
4767
  "smsHourlyResetsAt": n => { outboundPhoneNumberCapacity.smsHourlyResetsAt = n.getDateValue(); },
4756
4768
  "smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getNumberValue(); },
4757
4769
  "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getNumberValue(); },
4758
4770
  "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
4759
4771
  "smsMinutelyResetsAt": n => { outboundPhoneNumberCapacity.smsMinutelyResetsAt = n.getDateValue(); },
4772
+ "smsRamping": n => { outboundPhoneNumberCapacity.smsRamping = n.getBooleanValue(); },
4760
4773
  "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
4761
4774
  "smsRemainingThisMinute": n => { outboundPhoneNumberCapacity.smsRemainingThisMinute = n.getNumberValue(); },
4762
4775
  "smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getNumberValue(); },
@@ -4769,6 +4782,7 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
4769
4782
  "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getNumberValue(); },
4770
4783
  "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
4771
4784
  "voiceMinutelyResetsAt": n => { outboundPhoneNumberCapacity.voiceMinutelyResetsAt = n.getDateValue(); },
4785
+ "voiceRamping": n => { outboundPhoneNumberCapacity.voiceRamping = n.getBooleanValue(); },
4772
4786
  "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
4773
4787
  "voiceRemainingThisMinute": n => { outboundPhoneNumberCapacity.voiceRemainingThisMinute = n.getNumberValue(); },
4774
4788
  "voiceRemainingToday": n => { outboundPhoneNumberCapacity.voiceRemainingToday = n.getNumberValue(); },
@@ -5092,6 +5106,21 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
5092
5106
  "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
5093
5107
  };
5094
5108
  }
5109
+ /**
5110
+ * The deserialization information for the current model
5111
+ * @param PhoneIdentityLookupAction The instance to deserialize into.
5112
+ * @returns {Record<string, (node: ParseNode) => void>}
5113
+ */
5114
+ // @ts-ignore
5115
+ export function deserializeIntoPhoneIdentityLookupAction(phoneIdentityLookupAction = {}) {
5116
+ return {
5117
+ "id": n => { phoneIdentityLookupAction.id = n.getStringValue(); },
5118
+ "occurredAt": n => { phoneIdentityLookupAction.occurredAt = n.getDateValue(); },
5119
+ "provider": n => { phoneIdentityLookupAction.provider = n.getStringValue(); },
5120
+ "status": n => { phoneIdentityLookupAction.status = n.getEnumValue(PhoneIdentityLookupActionStatusObject); },
5121
+ "type": n => { phoneIdentityLookupAction.type = n.getEnumValue(PhoneIdentityLookupActionTypeObject); },
5122
+ };
5123
+ }
5095
5124
  /**
5096
5125
  * The deserialization information for the current model
5097
5126
  * @param PhoneIdentityResponse The instance to deserialize into.
@@ -5104,6 +5133,7 @@ export function deserializeIntoPhoneIdentityResponse(phoneIdentityResponse = {})
5104
5133
  "id": n => { phoneIdentityResponse.id = n.getStringValue(); },
5105
5134
  "lastEnrichedAt": n => { phoneIdentityResponse.lastEnrichedAt = n.getDateValue(); },
5106
5135
  "lookup": n => { phoneIdentityResponse.lookup = n.getObjectValue(createPhoneIdentityResponse_lookupFromDiscriminatorValue); },
5136
+ "lookupActions": n => { phoneIdentityResponse.lookupActions = n.getCollectionOfObjectValues(createPhoneIdentityLookupActionFromDiscriminatorValue); },
5107
5137
  "modifiedAt": n => { phoneIdentityResponse.modifiedAt = n.getDateValue(); },
5108
5138
  "name": n => { phoneIdentityResponse.name = n.getStringValue(); },
5109
5139
  "number": n => { phoneIdentityResponse.number = n.getStringValue(); },
@@ -6294,7 +6324,6 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
6294
6324
  "expectedMonthlyVolume": n => { tenDlcApplicationDraft.expectedMonthlyVolume = n.getNumberValue(); },
6295
6325
  "industry": n => { tenDlcApplicationDraft.industry = n.getStringValue(); },
6296
6326
  "lastSubmittedAt": n => { tenDlcApplicationDraft.lastSubmittedAt = n.getDateValue(); },
6297
- "leadSource": n => { tenDlcApplicationDraft.leadSource = n.getStringValue(); },
6298
6327
  "messageExamples": n => { tenDlcApplicationDraft.messageExamples = n.getCollectionOfPrimitiveValues("string"); },
6299
6328
  "missingFields": n => { tenDlcApplicationDraft.missingFields = n.getCollectionOfPrimitiveValues("string"); },
6300
6329
  "optInLanguage": n => { tenDlcApplicationDraft.optInLanguage = n.getStringValue(); },
@@ -9569,6 +9598,7 @@ export function serializeOutboundCapacityOverview(writer, outboundCapacityOvervi
9569
9598
  writer.writeNumberValue("healthyPhoneNumbers", outboundCapacityOverview.healthyPhoneNumbers);
9570
9599
  writer.writeNumberValue("limitedPhoneNumbers", outboundCapacityOverview.limitedPhoneNumbers);
9571
9600
  writer.writeCollectionOfObjectValues("phoneNumbers", outboundCapacityOverview.phoneNumbers, serializeOutboundPhoneNumberCapacity);
9601
+ writer.writeNumberValue("rampingPhoneNumbers", outboundCapacityOverview.rampingPhoneNumbers);
9572
9602
  writer.writeCollectionOfObjectValues("recentDecisions", outboundCapacityOverview.recentDecisions, serializeOutboundQueueItem);
9573
9603
  writer.writeNumberValue("scheduledCount", outboundCapacityOverview.scheduledCount);
9574
9604
  writer.writeNumberValue("smsCapacityRemainingToday", outboundCapacityOverview.smsCapacityRemainingToday);
@@ -9587,15 +9617,18 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
9587
9617
  return;
9588
9618
  }
9589
9619
  writer.writeBooleanValue("capacityAvailable", outboundPhoneNumberCapacity.capacityAvailable);
9620
+ writer.writeStringValue("healthReason", outboundPhoneNumberCapacity.healthReason);
9590
9621
  writer.writeEnumValue("healthStatus", outboundPhoneNumberCapacity.healthStatus);
9591
9622
  writer.writeStringValue("phoneNumber", outboundPhoneNumberCapacity.phoneNumber);
9592
9623
  writer.writeStringValue("phoneNumberId", outboundPhoneNumberCapacity.phoneNumberId);
9624
+ writer.writeBooleanValue("smsApproved", outboundPhoneNumberCapacity.smsApproved);
9593
9625
  writer.writeDateValue("smsDailyResetsAt", outboundPhoneNumberCapacity.smsDailyResetsAt);
9594
9626
  writer.writeDateValue("smsHourlyResetsAt", outboundPhoneNumberCapacity.smsHourlyResetsAt);
9595
9627
  writer.writeNumberValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
9596
9628
  writer.writeNumberValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
9597
9629
  writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
9598
9630
  writer.writeDateValue("smsMinutelyResetsAt", outboundPhoneNumberCapacity.smsMinutelyResetsAt);
9631
+ writer.writeBooleanValue("smsRamping", outboundPhoneNumberCapacity.smsRamping);
9599
9632
  writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
9600
9633
  writer.writeNumberValue("smsRemainingThisMinute", outboundPhoneNumberCapacity.smsRemainingThisMinute);
9601
9634
  writer.writeNumberValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
@@ -9608,6 +9641,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
9608
9641
  writer.writeNumberValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
9609
9642
  writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
9610
9643
  writer.writeDateValue("voiceMinutelyResetsAt", outboundPhoneNumberCapacity.voiceMinutelyResetsAt);
9644
+ writer.writeBooleanValue("voiceRamping", outboundPhoneNumberCapacity.voiceRamping);
9611
9645
  writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
9612
9646
  writer.writeNumberValue("voiceRemainingThisMinute", outboundPhoneNumberCapacity.voiceRemainingThisMinute);
9613
9647
  writer.writeNumberValue("voiceRemainingToday", outboundPhoneNumberCapacity.voiceRemainingToday);
@@ -9991,6 +10025,24 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
9991
10025
  writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
9992
10026
  writer.writeAdditionalData(phoneCallResponse.additionalData);
9993
10027
  }
10028
+ /**
10029
+ * Serializes information the current object
10030
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10031
+ * @param PhoneIdentityLookupAction The instance to serialize from.
10032
+ * @param writer Serialization writer to use to serialize this model
10033
+ */
10034
+ // @ts-ignore
10035
+ export function serializePhoneIdentityLookupAction(writer, phoneIdentityLookupAction = {}, isSerializingDerivedType = false) {
10036
+ if (!phoneIdentityLookupAction || isSerializingDerivedType) {
10037
+ return;
10038
+ }
10039
+ writer.writeStringValue("id", phoneIdentityLookupAction.id);
10040
+ writer.writeDateValue("occurredAt", phoneIdentityLookupAction.occurredAt);
10041
+ writer.writeStringValue("provider", phoneIdentityLookupAction.provider);
10042
+ writer.writeEnumValue("status", phoneIdentityLookupAction.status);
10043
+ writer.writeEnumValue("type", phoneIdentityLookupAction.type);
10044
+ writer.writeAdditionalData(phoneIdentityLookupAction.additionalData);
10045
+ }
9994
10046
  /**
9995
10047
  * Serializes information the current object
9996
10048
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10006,6 +10058,7 @@ export function serializePhoneIdentityResponse(writer, phoneIdentityResponse = {
10006
10058
  writer.writeStringValue("id", phoneIdentityResponse.id);
10007
10059
  writer.writeDateValue("lastEnrichedAt", phoneIdentityResponse.lastEnrichedAt);
10008
10060
  writer.writeObjectValue("lookup", phoneIdentityResponse.lookup, serializePhoneIdentityResponse_lookup);
10061
+ writer.writeCollectionOfObjectValues("lookupActions", phoneIdentityResponse.lookupActions, serializePhoneIdentityLookupAction);
10009
10062
  writer.writeDateValue("modifiedAt", phoneIdentityResponse.modifiedAt);
10010
10063
  writer.writeStringValue("name", phoneIdentityResponse.name);
10011
10064
  writer.writeStringValue("number", phoneIdentityResponse.number);
@@ -11396,7 +11449,6 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
11396
11449
  writer.writeNumberValue("expectedMonthlyVolume", tenDlcApplicationDraft.expectedMonthlyVolume);
11397
11450
  writer.writeStringValue("industry", tenDlcApplicationDraft.industry);
11398
11451
  writer.writeDateValue("lastSubmittedAt", tenDlcApplicationDraft.lastSubmittedAt);
11399
- writer.writeStringValue("leadSource", tenDlcApplicationDraft.leadSource);
11400
11452
  writer.writeCollectionOfPrimitiveValues("messageExamples", tenDlcApplicationDraft.messageExamples);
11401
11453
  writer.writeCollectionOfPrimitiveValues("missingFields", tenDlcApplicationDraft.missingFields);
11402
11454
  writer.writeStringValue("optInLanguage", tenDlcApplicationDraft.optInLanguage);
@@ -12832,6 +12884,21 @@ export const PhoneCallStatusObject = {
12832
12884
  Blocked_permission: "blocked_permission",
12833
12885
  Configuration_required: "configuration_required",
12834
12886
  };
12887
+ /**
12888
+ * Identifies the outcome of a phone identity lookup action.
12889
+ */
12890
+ export const PhoneIdentityLookupActionStatusObject = {
12891
+ Succeeded: "succeeded",
12892
+ Failed: "failed",
12893
+ };
12894
+ /**
12895
+ * Identifies the kind of lookup action performed for a phone identity.
12896
+ */
12897
+ export const PhoneIdentityLookupActionTypeObject = {
12898
+ Validation: "validation",
12899
+ Enrichment: "enrichment",
12900
+ UnwantedNumberCheck: "unwanted-number-check",
12901
+ };
12835
12902
  /**
12836
12903
  * An enumerator describing phone line types
12837
12904
  */