@leadping/sdk 1.0.125 → 1.0.127

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 (57) 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 +132 -1
  34. package/dist/models/index.d.ts.map +1 -1
  35. package/dist/models/index.js +128 -0
  36. package/dist/models/index.js.map +1 -1
  37. package/dist/phoneCall/dial/index.d.ts +22 -0
  38. package/dist/phoneCall/dial/index.d.ts.map +1 -0
  39. package/dist/phoneCall/dial/index.js +21 -0
  40. package/dist/phoneCall/dial/index.js.map +1 -0
  41. package/dist/phoneCall/dial/item/index.d.ts +33 -0
  42. package/dist/phoneCall/dial/item/index.d.ts.map +1 -0
  43. package/dist/phoneCall/dial/item/index.js +31 -0
  44. package/dist/phoneCall/dial/item/index.js.map +1 -0
  45. package/dist/phoneCall/index.d.ts +10 -0
  46. package/dist/phoneCall/index.d.ts.map +1 -1
  47. package/dist/phoneCall/index.js +10 -0
  48. package/dist/phoneCall/index.js.map +1 -1
  49. package/dist/phoneCall/next/index.d.ts +22 -0
  50. package/dist/phoneCall/next/index.d.ts.map +1 -0
  51. package/dist/phoneCall/next/index.js +21 -0
  52. package/dist/phoneCall/next/index.js.map +1 -0
  53. package/dist/phoneCall/next/item/index.d.ts +39 -0
  54. package/dist/phoneCall/next/item/index.d.ts.map +1 -0
  55. package/dist/phoneCall/next/item/index.js +31 -0
  56. package/dist/phoneCall/next/item/index.js.map +1 -0
  57. 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
@@ -1335,6 +1353,15 @@ export function createLeadTableRowFromDiscriminatorValue(parseNode) {
1335
1353
  export function createLeadTagsRequestFromDiscriminatorValue(parseNode) {
1336
1354
  return deserializeIntoLeadTagsRequest;
1337
1355
  }
1356
+ /**
1357
+ * Creates a new instance of the appropriate class based on discriminator value
1358
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1359
+ * @returns {ManualDialRequest}
1360
+ */
1361
+ // @ts-ignore
1362
+ export function createManualDialRequestFromDiscriminatorValue(parseNode) {
1363
+ return deserializeIntoManualDialRequest;
1364
+ }
1338
1365
  /**
1339
1366
  * Creates a new instance of the appropriate class based on discriminator value
1340
1367
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3812,6 +3839,18 @@ export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
3812
3839
  "voicemailUrl": n => { callEventTableRow.voicemailUrl = n.getStringValue(); },
3813
3840
  };
3814
3841
  }
3842
+ /**
3843
+ * The deserialization information for the current model
3844
+ * @param CallRetryRequest The instance to deserialize into.
3845
+ * @returns {Record<string, (node: ParseNode) => void>}
3846
+ */
3847
+ // @ts-ignore
3848
+ export function deserializeIntoCallRetryRequest(callRetryRequest = {}) {
3849
+ return {
3850
+ "expectedRetryAt": n => { callRetryRequest.expectedRetryAt = n.getDateValue(); },
3851
+ "retryAt": n => { callRetryRequest.retryAt = n.getDateValue(); },
3852
+ };
3853
+ }
3815
3854
  /**
3816
3855
  * The deserialization information for the current model
3817
3856
  * @param ChangeBillingPlanRequest The instance to deserialize into.
@@ -3862,6 +3901,22 @@ export function deserializeIntoComplianceUpdateRequest_compliance(complianceUpda
3862
3901
  ...deserializeIntoUserCompliance(complianceUpdateRequest_compliance),
3863
3902
  };
3864
3903
  }
3904
+ /**
3905
+ * The deserialization information for the current model
3906
+ * @param ConversationPage The instance to deserialize into.
3907
+ * @returns {Record<string, (node: ParseNode) => void>}
3908
+ */
3909
+ // @ts-ignore
3910
+ export function deserializeIntoConversationPage(conversationPage = {}) {
3911
+ return {
3912
+ "continuationToken": n => { conversationPage.continuationToken = n.getStringValue(); },
3913
+ "items": n => { conversationPage.items = n.getCollectionOfObjectValues(createConversationResponseFromDiscriminatorValue); },
3914
+ "needsReplyCount": n => { conversationPage.needsReplyCount = n.getNumberValue(); },
3915
+ "pageSize": n => { conversationPage.pageSize = n.getNumberValue(); },
3916
+ "refreshAfter": n => { conversationPage.refreshAfter = n.getStringValue(); },
3917
+ "totalCount": n => { conversationPage.totalCount = n.getNumberValue(); },
3918
+ };
3919
+ }
3865
3920
  /**
3866
3921
  * The deserialization information for the current model
3867
3922
  * @param ConversationResponse The instance to deserialize into.
@@ -3874,6 +3929,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3874
3929
  "archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
3875
3930
  "archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
3876
3931
  "avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
3932
+ "callRetryAt": n => { conversationResponse.callRetryAt = n.getDateValue(); },
3877
3933
  "canCallNow": n => { conversationResponse.canCallNow = n.getBooleanValue(); },
3878
3934
  "canTextNow": n => { conversationResponse.canTextNow = n.getBooleanValue(); },
3879
3935
  "complianceStatus": n => { conversationResponse.complianceStatus = n.getStringValue(); },
@@ -3882,6 +3938,8 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3882
3938
  "eventVersion": n => { conversationResponse.eventVersion = n.getNumberValue(); },
3883
3939
  "firstName": n => { conversationResponse.firstName = n.getStringValue(); },
3884
3940
  "id": n => { conversationResponse.id = n.getStringValue(); },
3941
+ "inboxAction": n => { conversationResponse.inboxAction = n.getNumberValue(); },
3942
+ "inboxActionAt": n => { conversationResponse.inboxActionAt = n.getDateValue(); },
3885
3943
  "isArchived": n => { conversationResponse.isArchived = n.getBooleanValue(); },
3886
3944
  "isDemo": n => { conversationResponse.isDemo = n.getBooleanValue(); },
3887
3945
  "isUnread": n => { conversationResponse.isUnread = n.getBooleanValue(); },
@@ -3956,6 +4014,7 @@ export function deserializeIntoCreateNoteRequest(createNoteRequest = {}) {
3956
4014
  // @ts-ignore
3957
4015
  export function deserializeIntoCurrentLeadStatusSummary(currentLeadStatusSummary = {}) {
3958
4016
  return {
4017
+ "callbackAt": n => { currentLeadStatusSummary.callbackAt = n.getDateValue(); },
3959
4018
  "category": n => { currentLeadStatusSummary.category = n.getEnumValue(CurrentLeadStatusSummary_categoryObject); },
3960
4019
  "changedAt": n => { currentLeadStatusSummary.changedAt = n.getDateValue(); },
3961
4020
  "changedByAutomationId": n => { currentLeadStatusSummary.changedByAutomationId = n.getStringValue(); },
@@ -4650,6 +4709,7 @@ export function deserializeIntoLeadContactabilityResponse(leadContactabilityResp
4650
4709
  "callBlockedReason": n => { leadContactabilityResponse.callBlockedReason = n.getStringValue(); },
4651
4710
  "canCall": n => { leadContactabilityResponse.canCall = n.getBooleanValue(); },
4652
4711
  "canText": n => { leadContactabilityResponse.canText = n.getBooleanValue(); },
4712
+ "nextWindowChangeAt": n => { leadContactabilityResponse.nextWindowChangeAt = n.getDateValue(); },
4653
4713
  "smsLineRestricted": n => { leadContactabilityResponse.smsLineRestricted = n.getBooleanValue(); },
4654
4714
  "textBlockedReason": n => { leadContactabilityResponse.textBlockedReason = n.getStringValue(); },
4655
4715
  };
@@ -5440,6 +5500,17 @@ export function deserializeIntoLeadTagsRequest(leadTagsRequest = {}) {
5440
5500
  "tagNames": n => { leadTagsRequest.tagNames = n.getCollectionOfPrimitiveValues("string"); },
5441
5501
  };
5442
5502
  }
5503
+ /**
5504
+ * The deserialization information for the current model
5505
+ * @param ManualDialRequest The instance to deserialize into.
5506
+ * @returns {Record<string, (node: ParseNode) => void>}
5507
+ */
5508
+ // @ts-ignore
5509
+ export function deserializeIntoManualDialRequest(manualDialRequest = {}) {
5510
+ return {
5511
+ "phoneNumber": n => { manualDialRequest.phoneNumber = n.getStringValue(); },
5512
+ };
5513
+ }
5443
5514
  /**
5444
5515
  * The deserialization information for the current model
5445
5516
  * @param MessageMediaAttachment The instance to deserialize into.
@@ -7227,6 +7298,7 @@ export function deserializeIntoSendSmsRequest(sendSmsRequest = {}) {
7227
7298
  "fromPhoneNumberId": n => { sendSmsRequest.fromPhoneNumberId = n.getStringValue(); },
7228
7299
  "mediaUrls": n => { sendSmsRequest.mediaUrls = n.getCollectionOfPrimitiveValues("string"); },
7229
7300
  "outboundIdempotencyKey": n => { sendSmsRequest.outboundIdempotencyKey = n.getStringValue(); },
7301
+ "replyVersion": n => { sendSmsRequest.replyVersion = n.getNumberValue(); },
7230
7302
  "scheduledFor": n => { sendSmsRequest.scheduledFor = n.getDateValue(); },
7231
7303
  "smsEventId": n => { sendSmsRequest.smsEventId = n.getStringValue(); },
7232
7304
  "sourceId": n => { sendSmsRequest.sourceId = n.getStringValue(); },
@@ -9470,6 +9542,21 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
9470
9542
  writer.writeStringValue("voicemailUrl", callEventTableRow.voicemailUrl);
9471
9543
  writer.writeAdditionalData(callEventTableRow.additionalData);
9472
9544
  }
9545
+ /**
9546
+ * Serializes information the current object
9547
+ * @param CallRetryRequest The instance to serialize from.
9548
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9549
+ * @param writer Serialization writer to use to serialize this model
9550
+ */
9551
+ // @ts-ignore
9552
+ export function serializeCallRetryRequest(writer, callRetryRequest = {}, isSerializingDerivedType = false) {
9553
+ if (!callRetryRequest || isSerializingDerivedType) {
9554
+ return;
9555
+ }
9556
+ writer.writeDateValue("expectedRetryAt", callRetryRequest.expectedRetryAt);
9557
+ writer.writeDateValue("retryAt", callRetryRequest.retryAt);
9558
+ writer.writeAdditionalData(callRetryRequest.additionalData);
9559
+ }
9473
9560
  /**
9474
9561
  * Serializes information the current object
9475
9562
  * @param ChangeBillingPlanRequest The instance to serialize from.
@@ -9531,6 +9618,25 @@ export function serializeComplianceUpdateRequest_compliance(writer, complianceUp
9531
9618
  }
9532
9619
  serializeUserCompliance(writer, complianceUpdateRequest_compliance, isSerializingDerivedType);
9533
9620
  }
9621
+ /**
9622
+ * Serializes information the current object
9623
+ * @param ConversationPage The instance to serialize from.
9624
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9625
+ * @param writer Serialization writer to use to serialize this model
9626
+ */
9627
+ // @ts-ignore
9628
+ export function serializeConversationPage(writer, conversationPage = {}, isSerializingDerivedType = false) {
9629
+ if (!conversationPage || isSerializingDerivedType) {
9630
+ return;
9631
+ }
9632
+ writer.writeStringValue("continuationToken", conversationPage.continuationToken);
9633
+ writer.writeCollectionOfObjectValues("items", conversationPage.items, serializeConversationResponse);
9634
+ writer.writeNumberValue("needsReplyCount", conversationPage.needsReplyCount);
9635
+ writer.writeNumberValue("pageSize", conversationPage.pageSize);
9636
+ writer.writeStringValue("refreshAfter", conversationPage.refreshAfter);
9637
+ writer.writeNumberValue("totalCount", conversationPage.totalCount);
9638
+ writer.writeAdditionalData(conversationPage.additionalData);
9639
+ }
9534
9640
  /**
9535
9641
  * Serializes information the current object
9536
9642
  * @param ConversationResponse The instance to serialize from.
@@ -9546,6 +9652,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9546
9652
  writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
9547
9653
  writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
9548
9654
  writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
9655
+ writer.writeDateValue("callRetryAt", conversationResponse.callRetryAt);
9549
9656
  writer.writeBooleanValue("canCallNow", conversationResponse.canCallNow);
9550
9657
  writer.writeBooleanValue("canTextNow", conversationResponse.canTextNow);
9551
9658
  writer.writeStringValue("complianceStatus", conversationResponse.complianceStatus);
@@ -9554,6 +9661,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9554
9661
  writer.writeNumberValue("eventVersion", conversationResponse.eventVersion);
9555
9662
  writer.writeStringValue("firstName", conversationResponse.firstName);
9556
9663
  writer.writeStringValue("id", conversationResponse.id);
9664
+ writer.writeNumberValue("inboxAction", conversationResponse.inboxAction);
9665
+ writer.writeDateValue("inboxActionAt", conversationResponse.inboxActionAt);
9557
9666
  writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
9558
9667
  writer.writeBooleanValue("isDemo", conversationResponse.isDemo);
9559
9668
  writer.writeBooleanValue("isUnread", conversationResponse.isUnread);
@@ -9641,6 +9750,7 @@ export function serializeCurrentLeadStatusSummary(writer, currentLeadStatusSumma
9641
9750
  if (!currentLeadStatusSummary || isSerializingDerivedType) {
9642
9751
  return;
9643
9752
  }
9753
+ writer.writeDateValue("callbackAt", currentLeadStatusSummary.callbackAt);
9644
9754
  writer.writeEnumValue("category", currentLeadStatusSummary.category);
9645
9755
  writer.writeDateValue("changedAt", currentLeadStatusSummary.changedAt);
9646
9756
  writer.writeStringValue("changedByAutomationId", currentLeadStatusSummary.changedByAutomationId);
@@ -10441,6 +10551,7 @@ export function serializeLeadContactabilityResponse(writer, leadContactabilityRe
10441
10551
  writer.writeStringValue("callBlockedReason", leadContactabilityResponse.callBlockedReason);
10442
10552
  writer.writeBooleanValue("canCall", leadContactabilityResponse.canCall);
10443
10553
  writer.writeBooleanValue("canText", leadContactabilityResponse.canText);
10554
+ writer.writeDateValue("nextWindowChangeAt", leadContactabilityResponse.nextWindowChangeAt);
10444
10555
  writer.writeBooleanValue("smsLineRestricted", leadContactabilityResponse.smsLineRestricted);
10445
10556
  writer.writeStringValue("textBlockedReason", leadContactabilityResponse.textBlockedReason);
10446
10557
  writer.writeAdditionalData(leadContactabilityResponse.additionalData);
@@ -11354,6 +11465,20 @@ export function serializeLeadTagsRequest(writer, leadTagsRequest = {}, isSeriali
11354
11465
  writer.writeCollectionOfPrimitiveValues("tagNames", leadTagsRequest.tagNames);
11355
11466
  writer.writeAdditionalData(leadTagsRequest.additionalData);
11356
11467
  }
11468
+ /**
11469
+ * Serializes information the current object
11470
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11471
+ * @param ManualDialRequest The instance to serialize from.
11472
+ * @param writer Serialization writer to use to serialize this model
11473
+ */
11474
+ // @ts-ignore
11475
+ export function serializeManualDialRequest(writer, manualDialRequest = {}, isSerializingDerivedType = false) {
11476
+ if (!manualDialRequest || isSerializingDerivedType) {
11477
+ return;
11478
+ }
11479
+ writer.writeStringValue("phoneNumber", manualDialRequest.phoneNumber);
11480
+ writer.writeAdditionalData(manualDialRequest.additionalData);
11481
+ }
11357
11482
  /**
11358
11483
  * Serializes information the current object
11359
11484
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -13442,6 +13567,7 @@ export function serializeSendSmsRequest(writer, sendSmsRequest = {}, isSerializi
13442
13567
  writer.writeStringValue("fromPhoneNumberId", sendSmsRequest.fromPhoneNumberId);
13443
13568
  writer.writeCollectionOfPrimitiveValues("mediaUrls", sendSmsRequest.mediaUrls);
13444
13569
  writer.writeStringValue("outboundIdempotencyKey", sendSmsRequest.outboundIdempotencyKey);
13570
+ writer.writeNumberValue("replyVersion", sendSmsRequest.replyVersion);
13445
13571
  writer.writeDateValue("scheduledFor", sendSmsRequest.scheduledFor);
13446
13572
  writer.writeStringValue("smsEventId", sendSmsRequest.smsEventId);
13447
13573
  writer.writeStringValue("sourceId", sendSmsRequest.sourceId);
@@ -15158,6 +15284,7 @@ export const LeadInquiry_urgencyObject = {
15158
15284
  export const LeadIntakeRequest_consentCertificateTypeObject = {
15159
15285
  TrustedForm: "TrustedForm",
15160
15286
  Leadping: "Leadping",
15287
+ ManualVoice: "ManualVoice",
15161
15288
  Other: "Other",
15162
15289
  };
15163
15290
  /**
@@ -15166,6 +15293,7 @@ export const LeadIntakeRequest_consentCertificateTypeObject = {
15166
15293
  export const LeadMetadata_consentCertificateTypeObject = {
15167
15294
  TrustedForm: "TrustedForm",
15168
15295
  Leadping: "Leadping",
15296
+ ManualVoice: "ManualVoice",
15169
15297
  Other: "Other",
15170
15298
  };
15171
15299
  /**