@leadping/sdk 1.0.124 → 1.0.126

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 (49) hide show
  1. package/dist/conversations/index.d.ts +4 -4
  2. package/dist/conversations/index.d.ts.map +1 -1
  3. package/dist/conversations/index.js +5 -5
  4. package/dist/conversations/index.js.map +1 -1
  5. package/dist/conversations/item/index.d.ts +10 -5
  6. package/dist/conversations/item/index.d.ts.map +1 -1
  7. package/dist/conversations/item/index.js +9 -4
  8. package/dist/conversations/item/index.js.map +1 -1
  9. package/dist/conversations/item/markHandled/index.d.ts +2 -2
  10. package/dist/conversations/item/markHandled/index.d.ts.map +1 -1
  11. package/dist/conversations/item/markHandled/index.js +1 -1
  12. package/dist/conversations/item/markHandled/index.js.map +1 -1
  13. package/dist/conversations/item/markRead/index.d.ts +2 -2
  14. package/dist/conversations/item/markRead/index.d.ts.map +1 -1
  15. package/dist/conversations/item/markRead/index.js +1 -1
  16. package/dist/conversations/item/markRead/index.js.map +1 -1
  17. package/dist/conversations/item/markReplyNeeded/index.d.ts +2 -2
  18. package/dist/conversations/item/markReplyNeeded/index.d.ts.map +1 -1
  19. package/dist/conversations/item/markReplyNeeded/index.js +1 -1
  20. package/dist/conversations/item/markReplyNeeded/index.js.map +1 -1
  21. package/dist/conversations/item/outboundReadiness/index.d.ts +2 -2
  22. package/dist/conversations/item/outboundReadiness/index.d.ts.map +1 -1
  23. package/dist/conversations/item/outboundReadiness/index.js +1 -1
  24. package/dist/conversations/item/outboundReadiness/index.js.map +1 -1
  25. package/dist/conversations/item/retry/index.d.ts +33 -0
  26. package/dist/conversations/item/retry/index.d.ts.map +1 -0
  27. package/dist/conversations/item/retry/index.js +31 -0
  28. package/dist/conversations/item/retry/index.js.map +1 -0
  29. package/dist/conversations/my/index.d.ts +8 -4
  30. package/dist/conversations/my/index.d.ts.map +1 -1
  31. package/dist/conversations/my/index.js +3 -3
  32. package/dist/conversations/my/index.js.map +1 -1
  33. package/dist/models/index.d.ts +118 -1
  34. package/dist/models/index.d.ts.map +1 -1
  35. package/dist/models/index.js +100 -0
  36. package/dist/models/index.js.map +1 -1
  37. package/dist/phoneCall/index.d.ts +5 -0
  38. package/dist/phoneCall/index.d.ts.map +1 -1
  39. package/dist/phoneCall/index.js +5 -0
  40. package/dist/phoneCall/index.js.map +1 -1
  41. package/dist/phoneCall/next/index.d.ts +22 -0
  42. package/dist/phoneCall/next/index.d.ts.map +1 -0
  43. package/dist/phoneCall/next/index.js +21 -0
  44. package/dist/phoneCall/next/index.js.map +1 -0
  45. package/dist/phoneCall/next/item/index.d.ts +39 -0
  46. package/dist/phoneCall/next/item/index.d.ts.map +1 -0
  47. package/dist/phoneCall/next/item/index.js +31 -0
  48. package/dist/phoneCall/next/item/index.js.map +1 -0
  49. package/package.json +1 -1
@@ -489,6 +489,15 @@ export function createBrowserCallApprovalFromDiscriminatorValue(parseNode) {
489
489
  export function createCallEventTableRowFromDiscriminatorValue(parseNode) {
490
490
  return deserializeIntoCallEventTableRow;
491
491
  }
492
+ /**
493
+ * Creates a new instance of the appropriate class based on discriminator value
494
+ * @param parseNode The parse node to use to read the discriminator value and create the object
495
+ * @returns {CallRetryRequest}
496
+ */
497
+ // @ts-ignore
498
+ export function createCallRetryRequestFromDiscriminatorValue(parseNode) {
499
+ return deserializeIntoCallRetryRequest;
500
+ }
492
501
  /**
493
502
  * Creates a new instance of the appropriate class based on discriminator value
494
503
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -525,6 +534,15 @@ export function createComplianceUpdateRequest_complianceFromDiscriminatorValue(p
525
534
  export function createComplianceUpdateRequestFromDiscriminatorValue(parseNode) {
526
535
  return deserializeIntoComplianceUpdateRequest;
527
536
  }
537
+ /**
538
+ * Creates a new instance of the appropriate class based on discriminator value
539
+ * @param parseNode The parse node to use to read the discriminator value and create the object
540
+ * @returns {ConversationPage}
541
+ */
542
+ // @ts-ignore
543
+ export function createConversationPageFromDiscriminatorValue(parseNode) {
544
+ return deserializeIntoConversationPage;
545
+ }
528
546
  /**
529
547
  * Creates a new instance of the appropriate class based on discriminator value
530
548
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3812,6 +3830,18 @@ export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
3812
3830
  "voicemailUrl": n => { callEventTableRow.voicemailUrl = n.getStringValue(); },
3813
3831
  };
3814
3832
  }
3833
+ /**
3834
+ * The deserialization information for the current model
3835
+ * @param CallRetryRequest The instance to deserialize into.
3836
+ * @returns {Record<string, (node: ParseNode) => void>}
3837
+ */
3838
+ // @ts-ignore
3839
+ export function deserializeIntoCallRetryRequest(callRetryRequest = {}) {
3840
+ return {
3841
+ "expectedRetryAt": n => { callRetryRequest.expectedRetryAt = n.getDateValue(); },
3842
+ "retryAt": n => { callRetryRequest.retryAt = n.getDateValue(); },
3843
+ };
3844
+ }
3815
3845
  /**
3816
3846
  * The deserialization information for the current model
3817
3847
  * @param ChangeBillingPlanRequest The instance to deserialize into.
@@ -3862,6 +3892,22 @@ export function deserializeIntoComplianceUpdateRequest_compliance(complianceUpda
3862
3892
  ...deserializeIntoUserCompliance(complianceUpdateRequest_compliance),
3863
3893
  };
3864
3894
  }
3895
+ /**
3896
+ * The deserialization information for the current model
3897
+ * @param ConversationPage The instance to deserialize into.
3898
+ * @returns {Record<string, (node: ParseNode) => void>}
3899
+ */
3900
+ // @ts-ignore
3901
+ export function deserializeIntoConversationPage(conversationPage = {}) {
3902
+ return {
3903
+ "continuationToken": n => { conversationPage.continuationToken = n.getStringValue(); },
3904
+ "items": n => { conversationPage.items = n.getCollectionOfObjectValues(createConversationResponseFromDiscriminatorValue); },
3905
+ "needsReplyCount": n => { conversationPage.needsReplyCount = n.getNumberValue(); },
3906
+ "pageSize": n => { conversationPage.pageSize = n.getNumberValue(); },
3907
+ "refreshAfter": n => { conversationPage.refreshAfter = n.getStringValue(); },
3908
+ "totalCount": n => { conversationPage.totalCount = n.getNumberValue(); },
3909
+ };
3910
+ }
3865
3911
  /**
3866
3912
  * The deserialization information for the current model
3867
3913
  * @param ConversationResponse The instance to deserialize into.
@@ -3874,6 +3920,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3874
3920
  "archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
3875
3921
  "archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
3876
3922
  "avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
3923
+ "callRetryAt": n => { conversationResponse.callRetryAt = n.getDateValue(); },
3877
3924
  "canCallNow": n => { conversationResponse.canCallNow = n.getBooleanValue(); },
3878
3925
  "canTextNow": n => { conversationResponse.canTextNow = n.getBooleanValue(); },
3879
3926
  "complianceStatus": n => { conversationResponse.complianceStatus = n.getStringValue(); },
@@ -3882,6 +3929,8 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3882
3929
  "eventVersion": n => { conversationResponse.eventVersion = n.getNumberValue(); },
3883
3930
  "firstName": n => { conversationResponse.firstName = n.getStringValue(); },
3884
3931
  "id": n => { conversationResponse.id = n.getStringValue(); },
3932
+ "inboxAction": n => { conversationResponse.inboxAction = n.getNumberValue(); },
3933
+ "inboxActionAt": n => { conversationResponse.inboxActionAt = n.getDateValue(); },
3885
3934
  "isArchived": n => { conversationResponse.isArchived = n.getBooleanValue(); },
3886
3935
  "isDemo": n => { conversationResponse.isDemo = n.getBooleanValue(); },
3887
3936
  "isUnread": n => { conversationResponse.isUnread = n.getBooleanValue(); },
@@ -3956,6 +4005,7 @@ export function deserializeIntoCreateNoteRequest(createNoteRequest = {}) {
3956
4005
  // @ts-ignore
3957
4006
  export function deserializeIntoCurrentLeadStatusSummary(currentLeadStatusSummary = {}) {
3958
4007
  return {
4008
+ "callbackAt": n => { currentLeadStatusSummary.callbackAt = n.getDateValue(); },
3959
4009
  "category": n => { currentLeadStatusSummary.category = n.getEnumValue(CurrentLeadStatusSummary_categoryObject); },
3960
4010
  "changedAt": n => { currentLeadStatusSummary.changedAt = n.getDateValue(); },
3961
4011
  "changedByAutomationId": n => { currentLeadStatusSummary.changedByAutomationId = n.getStringValue(); },
@@ -5946,10 +5996,12 @@ export function deserializeIntoOrganizationRequest(organizationRequest = {}) {
5946
5996
  "automaticallyClearAppointmentSet": n => { organizationRequest.automaticallyClearAppointmentSet = n.getBooleanValue(); },
5947
5997
  "automaticallyMarkAppointmentSet": n => { organizationRequest.automaticallyMarkAppointmentSet = n.getBooleanValue(); },
5948
5998
  "automaticallyMarkLeadsCalled": n => { organizationRequest.automaticallyMarkLeadsCalled = n.getBooleanValue(); },
5999
+ "automaticallyMarkLeadsMessaged": n => { organizationRequest.automaticallyMarkLeadsMessaged = n.getBooleanValue(); },
5949
6000
  "calledLeadStatusId": n => { organizationRequest.calledLeadStatusId = n.getStringValue(); },
5950
6001
  "description": n => { organizationRequest.description = n.getStringValue(); },
5951
6002
  "ein": n => { organizationRequest.ein = n.getStringValue(); },
5952
6003
  "isYoungerThan90": n => { organizationRequest.isYoungerThan90 = n.getBooleanValue(); },
6004
+ "messagedLeadStatusId": n => { organizationRequest.messagedLeadStatusId = n.getStringValue(); },
5953
6005
  "name": n => { organizationRequest.name = n.getStringValue(); },
5954
6006
  "offer": n => { organizationRequest.offer = n.getStringValue(); },
5955
6007
  "phone": n => { organizationRequest.phone = n.getStringValue(); },
@@ -5985,6 +6037,7 @@ export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
5985
6037
  "automaticallyClearAppointmentSet": n => { organizationResponse.automaticallyClearAppointmentSet = n.getBooleanValue(); },
5986
6038
  "automaticallyMarkAppointmentSet": n => { organizationResponse.automaticallyMarkAppointmentSet = n.getBooleanValue(); },
5987
6039
  "automaticallyMarkLeadsCalled": n => { organizationResponse.automaticallyMarkLeadsCalled = n.getBooleanValue(); },
6040
+ "automaticallyMarkLeadsMessaged": n => { organizationResponse.automaticallyMarkLeadsMessaged = n.getBooleanValue(); },
5988
6041
  "autoRefillAmount": n => { organizationResponse.autoRefillAmount = n.getNumberValue(); },
5989
6042
  "autoRefillEnabled": n => { organizationResponse.autoRefillEnabled = n.getBooleanValue(); },
5990
6043
  "autoRefillTrigger": n => { organizationResponse.autoRefillTrigger = n.getNumberValue(); },
@@ -6004,6 +6057,7 @@ export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
6004
6057
  "enabled": n => { organizationResponse.enabled = n.getBooleanValue(); },
6005
6058
  "id": n => { organizationResponse.id = n.getStringValue(); },
6006
6059
  "isDemo": n => { organizationResponse.isDemo = n.getBooleanValue(); },
6060
+ "messagedLeadStatusId": n => { organizationResponse.messagedLeadStatusId = n.getStringValue(); },
6007
6061
  "modifiedAt": n => { organizationResponse.modifiedAt = n.getDateValue(); },
6008
6062
  "name": n => { organizationResponse.name = n.getStringValue(); },
6009
6063
  "phone": n => { organizationResponse.phone = n.getStringValue(); },
@@ -6576,6 +6630,7 @@ export function deserializeIntoPhoneIdentityResponse(phoneIdentityResponse = {})
6576
6630
  "name": n => { phoneIdentityResponse.name = n.getStringValue(); },
6577
6631
  "number": n => { phoneIdentityResponse.number = n.getStringValue(); },
6578
6632
  "providerEnrichment": n => { phoneIdentityResponse.providerEnrichment = n.getObjectValue(createPhoneIdentityResponse_providerEnrichmentFromDiscriminatorValue); },
6633
+ "smsNotRoutable": n => { phoneIdentityResponse.smsNotRoutable = n.getBooleanValue(); },
6579
6634
  };
6580
6635
  }
6581
6636
  /**
@@ -7222,6 +7277,7 @@ export function deserializeIntoSendSmsRequest(sendSmsRequest = {}) {
7222
7277
  "fromPhoneNumberId": n => { sendSmsRequest.fromPhoneNumberId = n.getStringValue(); },
7223
7278
  "mediaUrls": n => { sendSmsRequest.mediaUrls = n.getCollectionOfPrimitiveValues("string"); },
7224
7279
  "outboundIdempotencyKey": n => { sendSmsRequest.outboundIdempotencyKey = n.getStringValue(); },
7280
+ "replyVersion": n => { sendSmsRequest.replyVersion = n.getNumberValue(); },
7225
7281
  "scheduledFor": n => { sendSmsRequest.scheduledFor = n.getDateValue(); },
7226
7282
  "smsEventId": n => { sendSmsRequest.smsEventId = n.getStringValue(); },
7227
7283
  "sourceId": n => { sendSmsRequest.sourceId = n.getStringValue(); },
@@ -9465,6 +9521,21 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
9465
9521
  writer.writeStringValue("voicemailUrl", callEventTableRow.voicemailUrl);
9466
9522
  writer.writeAdditionalData(callEventTableRow.additionalData);
9467
9523
  }
9524
+ /**
9525
+ * Serializes information the current object
9526
+ * @param CallRetryRequest The instance to serialize from.
9527
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9528
+ * @param writer Serialization writer to use to serialize this model
9529
+ */
9530
+ // @ts-ignore
9531
+ export function serializeCallRetryRequest(writer, callRetryRequest = {}, isSerializingDerivedType = false) {
9532
+ if (!callRetryRequest || isSerializingDerivedType) {
9533
+ return;
9534
+ }
9535
+ writer.writeDateValue("expectedRetryAt", callRetryRequest.expectedRetryAt);
9536
+ writer.writeDateValue("retryAt", callRetryRequest.retryAt);
9537
+ writer.writeAdditionalData(callRetryRequest.additionalData);
9538
+ }
9468
9539
  /**
9469
9540
  * Serializes information the current object
9470
9541
  * @param ChangeBillingPlanRequest The instance to serialize from.
@@ -9526,6 +9597,25 @@ export function serializeComplianceUpdateRequest_compliance(writer, complianceUp
9526
9597
  }
9527
9598
  serializeUserCompliance(writer, complianceUpdateRequest_compliance, isSerializingDerivedType);
9528
9599
  }
9600
+ /**
9601
+ * Serializes information the current object
9602
+ * @param ConversationPage The instance to serialize from.
9603
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9604
+ * @param writer Serialization writer to use to serialize this model
9605
+ */
9606
+ // @ts-ignore
9607
+ export function serializeConversationPage(writer, conversationPage = {}, isSerializingDerivedType = false) {
9608
+ if (!conversationPage || isSerializingDerivedType) {
9609
+ return;
9610
+ }
9611
+ writer.writeStringValue("continuationToken", conversationPage.continuationToken);
9612
+ writer.writeCollectionOfObjectValues("items", conversationPage.items, serializeConversationResponse);
9613
+ writer.writeNumberValue("needsReplyCount", conversationPage.needsReplyCount);
9614
+ writer.writeNumberValue("pageSize", conversationPage.pageSize);
9615
+ writer.writeStringValue("refreshAfter", conversationPage.refreshAfter);
9616
+ writer.writeNumberValue("totalCount", conversationPage.totalCount);
9617
+ writer.writeAdditionalData(conversationPage.additionalData);
9618
+ }
9529
9619
  /**
9530
9620
  * Serializes information the current object
9531
9621
  * @param ConversationResponse The instance to serialize from.
@@ -9541,6 +9631,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9541
9631
  writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
9542
9632
  writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
9543
9633
  writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
9634
+ writer.writeDateValue("callRetryAt", conversationResponse.callRetryAt);
9544
9635
  writer.writeBooleanValue("canCallNow", conversationResponse.canCallNow);
9545
9636
  writer.writeBooleanValue("canTextNow", conversationResponse.canTextNow);
9546
9637
  writer.writeStringValue("complianceStatus", conversationResponse.complianceStatus);
@@ -9549,6 +9640,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9549
9640
  writer.writeNumberValue("eventVersion", conversationResponse.eventVersion);
9550
9641
  writer.writeStringValue("firstName", conversationResponse.firstName);
9551
9642
  writer.writeStringValue("id", conversationResponse.id);
9643
+ writer.writeNumberValue("inboxAction", conversationResponse.inboxAction);
9644
+ writer.writeDateValue("inboxActionAt", conversationResponse.inboxActionAt);
9552
9645
  writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
9553
9646
  writer.writeBooleanValue("isDemo", conversationResponse.isDemo);
9554
9647
  writer.writeBooleanValue("isUnread", conversationResponse.isUnread);
@@ -9636,6 +9729,7 @@ export function serializeCurrentLeadStatusSummary(writer, currentLeadStatusSumma
9636
9729
  if (!currentLeadStatusSummary || isSerializingDerivedType) {
9637
9730
  return;
9638
9731
  }
9732
+ writer.writeDateValue("callbackAt", currentLeadStatusSummary.callbackAt);
9639
9733
  writer.writeEnumValue("category", currentLeadStatusSummary.category);
9640
9734
  writer.writeDateValue("changedAt", currentLeadStatusSummary.changedAt);
9641
9735
  writer.writeStringValue("changedByAutomationId", currentLeadStatusSummary.changedByAutomationId);
@@ -11936,10 +12030,12 @@ export function serializeOrganizationRequest(writer, organizationRequest = {}, i
11936
12030
  writer.writeBooleanValue("automaticallyClearAppointmentSet", organizationRequest.automaticallyClearAppointmentSet);
11937
12031
  writer.writeBooleanValue("automaticallyMarkAppointmentSet", organizationRequest.automaticallyMarkAppointmentSet);
11938
12032
  writer.writeBooleanValue("automaticallyMarkLeadsCalled", organizationRequest.automaticallyMarkLeadsCalled);
12033
+ writer.writeBooleanValue("automaticallyMarkLeadsMessaged", organizationRequest.automaticallyMarkLeadsMessaged);
11939
12034
  writer.writeStringValue("calledLeadStatusId", organizationRequest.calledLeadStatusId);
11940
12035
  writer.writeStringValue("description", organizationRequest.description);
11941
12036
  writer.writeStringValue("ein", organizationRequest.ein);
11942
12037
  writer.writeBooleanValue("isYoungerThan90", organizationRequest.isYoungerThan90);
12038
+ writer.writeStringValue("messagedLeadStatusId", organizationRequest.messagedLeadStatusId);
11943
12039
  writer.writeStringValue("name", organizationRequest.name);
11944
12040
  writer.writeStringValue("offer", organizationRequest.offer);
11945
12041
  writer.writeStringValue("phone", organizationRequest.phone);
@@ -11980,6 +12076,7 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
11980
12076
  writer.writeBooleanValue("automaticallyClearAppointmentSet", organizationResponse.automaticallyClearAppointmentSet);
11981
12077
  writer.writeBooleanValue("automaticallyMarkAppointmentSet", organizationResponse.automaticallyMarkAppointmentSet);
11982
12078
  writer.writeBooleanValue("automaticallyMarkLeadsCalled", organizationResponse.automaticallyMarkLeadsCalled);
12079
+ writer.writeBooleanValue("automaticallyMarkLeadsMessaged", organizationResponse.automaticallyMarkLeadsMessaged);
11983
12080
  writer.writeNumberValue("autoRefillAmount", organizationResponse.autoRefillAmount);
11984
12081
  writer.writeBooleanValue("autoRefillEnabled", organizationResponse.autoRefillEnabled);
11985
12082
  writer.writeNumberValue("autoRefillTrigger", organizationResponse.autoRefillTrigger);
@@ -11999,6 +12096,7 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
11999
12096
  writer.writeBooleanValue("enabled", organizationResponse.enabled);
12000
12097
  writer.writeStringValue("id", organizationResponse.id);
12001
12098
  writer.writeBooleanValue("isDemo", organizationResponse.isDemo);
12099
+ writer.writeStringValue("messagedLeadStatusId", organizationResponse.messagedLeadStatusId);
12002
12100
  writer.writeDateValue("modifiedAt", organizationResponse.modifiedAt);
12003
12101
  writer.writeStringValue("name", organizationResponse.name);
12004
12102
  writer.writeStringValue("phone", organizationResponse.phone);
@@ -12667,6 +12765,7 @@ export function serializePhoneIdentityResponse(writer, phoneIdentityResponse = {
12667
12765
  writer.writeStringValue("name", phoneIdentityResponse.name);
12668
12766
  writer.writeStringValue("number", phoneIdentityResponse.number);
12669
12767
  writer.writeObjectValue("providerEnrichment", phoneIdentityResponse.providerEnrichment, serializePhoneIdentityResponse_providerEnrichment);
12768
+ writer.writeBooleanValue("smsNotRoutable", phoneIdentityResponse.smsNotRoutable);
12670
12769
  writer.writeAdditionalData(phoneIdentityResponse.additionalData);
12671
12770
  }
12672
12771
  /**
@@ -13432,6 +13531,7 @@ export function serializeSendSmsRequest(writer, sendSmsRequest = {}, isSerializi
13432
13531
  writer.writeStringValue("fromPhoneNumberId", sendSmsRequest.fromPhoneNumberId);
13433
13532
  writer.writeCollectionOfPrimitiveValues("mediaUrls", sendSmsRequest.mediaUrls);
13434
13533
  writer.writeStringValue("outboundIdempotencyKey", sendSmsRequest.outboundIdempotencyKey);
13534
+ writer.writeNumberValue("replyVersion", sendSmsRequest.replyVersion);
13435
13535
  writer.writeDateValue("scheduledFor", sendSmsRequest.scheduledFor);
13436
13536
  writer.writeStringValue("smsEventId", sendSmsRequest.smsEventId);
13437
13537
  writer.writeStringValue("sourceId", sendSmsRequest.sourceId);