@leadping/sdk 1.0.48 → 1.0.50

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 (121) hide show
  1. package/dist/automations/index.d.ts +1 -1
  2. package/dist/automations/preview/index.d.ts +14 -5
  3. package/dist/automations/preview/index.d.ts.map +1 -1
  4. package/dist/automations/preview/index.js +8 -1
  5. package/dist/automations/preview/index.js.map +1 -1
  6. package/dist/blog/index.d.ts +40 -0
  7. package/dist/blog/index.d.ts.map +1 -0
  8. package/dist/blog/index.js +37 -0
  9. package/dist/blog/index.js.map +1 -0
  10. package/dist/blog/item/index.d.ts +30 -0
  11. package/dist/blog/item/index.d.ts.map +1 -0
  12. package/dist/blog/item/index.js +27 -0
  13. package/dist/blog/item/index.js.map +1 -0
  14. package/dist/conversations/index.d.ts +7 -0
  15. package/dist/conversations/index.d.ts.map +1 -1
  16. package/dist/conversations/index.js +6 -0
  17. package/dist/conversations/index.js.map +1 -1
  18. package/dist/conversations/item/index.d.ts +20 -0
  19. package/dist/conversations/item/index.d.ts.map +1 -0
  20. package/dist/conversations/item/index.js +20 -0
  21. package/dist/conversations/item/index.js.map +1 -0
  22. package/dist/conversations/item/markRead/index.d.ts +31 -0
  23. package/dist/conversations/item/markRead/index.d.ts.map +1 -0
  24. package/dist/conversations/item/markRead/index.js +29 -0
  25. package/dist/conversations/item/markRead/index.js.map +1 -0
  26. package/dist/leadStatusChanges/index.d.ts +1 -1
  27. package/dist/leadStatuses/index.d.ts +1 -1
  28. package/dist/leadpingOpenApiClient.d.ts +5 -0
  29. package/dist/leadpingOpenApiClient.d.ts.map +1 -1
  30. package/dist/leadpingOpenApiClient.js +6 -0
  31. package/dist/leadpingOpenApiClient.js.map +1 -1
  32. package/dist/leads/index.d.ts +1 -1
  33. package/dist/leads/item/assignment/index.d.ts +35 -0
  34. package/dist/leads/item/assignment/index.d.ts.map +1 -0
  35. package/dist/leads/item/assignment/index.js +33 -0
  36. package/dist/leads/item/assignment/index.js.map +1 -0
  37. package/dist/leads/item/index.d.ts +5 -0
  38. package/dist/leads/item/index.d.ts.map +1 -1
  39. package/dist/leads/item/index.js +5 -0
  40. package/dist/leads/item/index.js.map +1 -1
  41. package/dist/models/index.d.ts +295 -8
  42. package/dist/models/index.d.ts.map +1 -1
  43. package/dist/models/index.js +272 -4
  44. package/dist/models/index.js.map +1 -1
  45. package/dist/notifications/index.d.ts +1 -1
  46. package/dist/organizations/apiKeys/index.d.ts +1 -1
  47. package/dist/organizations/apiKeys/item/index.d.ts +6 -6
  48. package/dist/organizations/apiKeys/my/index.d.ts +2 -2
  49. package/dist/organizations/me/index.d.ts +5 -0
  50. package/dist/organizations/me/index.d.ts.map +1 -1
  51. package/dist/organizations/me/index.js +5 -0
  52. package/dist/organizations/me/index.js.map +1 -1
  53. package/dist/organizations/me/membership/index.d.ts +30 -0
  54. package/dist/organizations/me/membership/index.d.ts.map +1 -0
  55. package/dist/organizations/me/membership/index.js +28 -0
  56. package/dist/organizations/me/membership/index.js.map +1 -0
  57. package/dist/paymentMethods/index.d.ts +2 -1
  58. package/dist/paymentMethods/index.d.ts.map +1 -1
  59. package/dist/paymentMethods/index.js +1 -0
  60. package/dist/paymentMethods/index.js.map +1 -1
  61. package/dist/paymentMethods/invoices/index.d.ts +1 -0
  62. package/dist/paymentMethods/invoices/index.d.ts.map +1 -1
  63. package/dist/paymentMethods/invoices/index.js +1 -0
  64. package/dist/paymentMethods/invoices/index.js.map +1 -1
  65. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts +1 -0
  66. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts.map +1 -1
  67. package/dist/paymentMethods/invoices/item/pdfAccess/index.js +1 -0
  68. package/dist/paymentMethods/invoices/item/pdfAccess/index.js.map +1 -1
  69. package/dist/paymentMethods/item/defaultEscaped/index.d.ts +1 -0
  70. package/dist/paymentMethods/item/defaultEscaped/index.d.ts.map +1 -1
  71. package/dist/paymentMethods/item/defaultEscaped/index.js +1 -0
  72. package/dist/paymentMethods/item/defaultEscaped/index.js.map +1 -1
  73. package/dist/paymentMethods/item/index.d.ts +2 -0
  74. package/dist/paymentMethods/item/index.d.ts.map +1 -1
  75. package/dist/paymentMethods/item/index.js +2 -0
  76. package/dist/paymentMethods/item/index.js.map +1 -1
  77. package/dist/phoneCall/initiate/index.d.ts +2 -2
  78. package/dist/phoneCall/item/hangup/index.d.ts +2 -2
  79. package/dist/phoneCall/item/status/index.d.ts +2 -2
  80. package/dist/phoneCall/item/transfer/index.d.ts +3 -3
  81. package/dist/sms/item/cancel/index.d.ts +2 -2
  82. package/dist/sources/index.d.ts +4 -4
  83. package/dist/sources/index.d.ts.map +1 -1
  84. package/dist/sources/index.js +2 -2
  85. package/dist/sources/index.js.map +1 -1
  86. package/dist/sources/item/credentials/index.d.ts +20 -0
  87. package/dist/sources/item/credentials/index.d.ts.map +1 -0
  88. package/dist/sources/item/credentials/index.js +20 -0
  89. package/dist/sources/item/credentials/index.js.map +1 -0
  90. package/dist/sources/item/credentials/rotate/index.d.ts +32 -0
  91. package/dist/sources/item/credentials/rotate/index.d.ts.map +1 -0
  92. package/dist/sources/item/credentials/rotate/index.js +29 -0
  93. package/dist/sources/item/credentials/rotate/index.js.map +1 -0
  94. package/dist/sources/item/index.d.ts +5 -0
  95. package/dist/sources/item/index.d.ts.map +1 -1
  96. package/dist/sources/item/index.js +5 -0
  97. package/dist/sources/item/index.js.map +1 -1
  98. package/dist/suppressions/check/index.d.ts +2 -2
  99. package/dist/suppressions/index.d.ts +3 -3
  100. package/dist/suppressions/release/index.d.ts +2 -2
  101. package/dist/tags/index.d.ts +1 -1
  102. package/dist/telephony/login/index.d.ts +2 -2
  103. package/dist/transactions/index.d.ts +1 -1
  104. package/dist/users/changeBillingPlan/index.d.ts +1 -0
  105. package/dist/users/changeBillingPlan/index.d.ts.map +1 -1
  106. package/dist/users/changeBillingPlan/index.js +1 -0
  107. package/dist/users/changeBillingPlan/index.js.map +1 -1
  108. package/dist/users/me/index.d.ts +5 -0
  109. package/dist/users/me/index.d.ts.map +1 -1
  110. package/dist/users/me/index.js +5 -0
  111. package/dist/users/me/index.js.map +1 -1
  112. package/dist/users/me/notificationPreferences/index.d.ts +33 -0
  113. package/dist/users/me/notificationPreferences/index.d.ts.map +1 -0
  114. package/dist/users/me/notificationPreferences/index.js +31 -0
  115. package/dist/users/me/notificationPreferences/index.js.map +1 -0
  116. package/dist/users/me/paymentmethod/index.d.ts +1 -0
  117. package/dist/users/me/paymentmethod/index.d.ts.map +1 -1
  118. package/dist/users/me/paymentmethod/index.js +1 -0
  119. package/dist/users/me/paymentmethod/index.js.map +1 -1
  120. package/dist/wallets/index.d.ts +1 -1
  121. package/package.json +1 -1
@@ -345,6 +345,15 @@ export function createAutomationWorkflowRunResponseFromDiscriminatorValue(parseN
345
345
  export function createAutomationWorkflowStatusResponseFromDiscriminatorValue(parseNode) {
346
346
  return deserializeIntoAutomationWorkflowStatusResponse;
347
347
  }
348
+ /**
349
+ * Creates a new instance of the appropriate class based on discriminator value
350
+ * @param parseNode The parse node to use to read the discriminator value and create the object
351
+ * @returns {BlogArticleResponse}
352
+ */
353
+ // @ts-ignore
354
+ export function createBlogArticleResponseFromDiscriminatorValue(parseNode) {
355
+ return deserializeIntoBlogArticleResponse;
356
+ }
348
357
  /**
349
358
  * Creates a new instance of the appropriate class based on discriminator value
350
359
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -498,6 +507,15 @@ export function createCustomerAutomationHealth_lastFailureFromDiscriminatorValue
498
507
  export function createCustomerAutomationHealthFromDiscriminatorValue(parseNode) {
499
508
  return deserializeIntoCustomerAutomationHealth;
500
509
  }
510
+ /**
511
+ * Creates a new instance of the appropriate class based on discriminator value
512
+ * @param parseNode The parse node to use to read the discriminator value and create the object
513
+ * @returns {CustomerAutomationHealthPoint}
514
+ */
515
+ // @ts-ignore
516
+ export function createCustomerAutomationHealthPointFromDiscriminatorValue(parseNode) {
517
+ return deserializeIntoCustomerAutomationHealthPoint;
518
+ }
501
519
  /**
502
520
  * Creates a new instance of the appropriate class based on discriminator value
503
521
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -669,6 +687,15 @@ export function createInvoicePdfAccessResponseFromDiscriminatorValue(parseNode)
669
687
  export function createLeadArchiveRequestFromDiscriminatorValue(parseNode) {
670
688
  return deserializeIntoLeadArchiveRequest;
671
689
  }
690
+ /**
691
+ * Creates a new instance of the appropriate class based on discriminator value
692
+ * @param parseNode The parse node to use to read the discriminator value and create the object
693
+ * @returns {LeadAssignmentRequest}
694
+ */
695
+ // @ts-ignore
696
+ export function createLeadAssignmentRequestFromDiscriminatorValue(parseNode) {
697
+ return deserializeIntoLeadAssignmentRequest;
698
+ }
672
699
  /**
673
700
  * Creates a new instance of the appropriate class based on discriminator value
674
701
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -759,6 +786,15 @@ export function createLeadProfileFromDiscriminatorValue(parseNode) {
759
786
  export function createLeadRequestFromDiscriminatorValue(parseNode) {
760
787
  return deserializeIntoLeadRequest;
761
788
  }
789
+ /**
790
+ * Creates a new instance of the appropriate class based on discriminator value
791
+ * @param parseNode The parse node to use to read the discriminator value and create the object
792
+ * @returns {LeadResponse_assignedTo}
793
+ */
794
+ // @ts-ignore
795
+ export function createLeadResponse_assignedToFromDiscriminatorValue(parseNode) {
796
+ return deserializeIntoLeadResponse_assignedTo;
797
+ }
762
798
  /**
763
799
  * Creates a new instance of the appropriate class based on discriminator value
764
800
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -840,6 +876,15 @@ export function createLeadStatusRequestFromDiscriminatorValue(parseNode) {
840
876
  export function createLeadStatusResponseFromDiscriminatorValue(parseNode) {
841
877
  return deserializeIntoLeadStatusResponse;
842
878
  }
879
+ /**
880
+ * Creates a new instance of the appropriate class based on discriminator value
881
+ * @param parseNode The parse node to use to read the discriminator value and create the object
882
+ * @returns {LeadTableRow_assignedTo}
883
+ */
884
+ // @ts-ignore
885
+ export function createLeadTableRow_assignedToFromDiscriminatorValue(parseNode) {
886
+ return deserializeIntoLeadTableRow_assignedTo;
887
+ }
843
888
  /**
844
889
  * Creates a new instance of the appropriate class based on discriminator value
845
890
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1839,6 +1884,15 @@ export function createSmsReadinessUiStateFromDiscriminatorValue(parseNode) {
1839
1884
  export function createSmsResponseFromDiscriminatorValue(parseNode) {
1840
1885
  return deserializeIntoSmsResponse;
1841
1886
  }
1887
+ /**
1888
+ * Creates a new instance of the appropriate class based on discriminator value
1889
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1890
+ * @returns {SourceCredentialIssueResponse}
1891
+ */
1892
+ // @ts-ignore
1893
+ export function createSourceCredentialIssueResponseFromDiscriminatorValue(parseNode) {
1894
+ return deserializeIntoSourceCredentialIssueResponse;
1895
+ }
1842
1896
  /**
1843
1897
  * Creates a new instance of the appropriate class based on discriminator value
1844
1898
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2496,6 +2550,7 @@ export function deserializeIntoAutomationActionRunRecord(automationActionRunReco
2496
2550
  "order": n => { automationActionRunRecord.order = n.getNumberValue(); },
2497
2551
  "processingAttempts": n => { automationActionRunRecord.processingAttempts = n.getNumberValue(); },
2498
2552
  "scheduledAt": n => { automationActionRunRecord.scheduledAt = n.getDateValue(); },
2553
+ "selectedConnectionId": n => { automationActionRunRecord.selectedConnectionId = n.getStringValue(); },
2499
2554
  "startedAt": n => { automationActionRunRecord.startedAt = n.getDateValue(); },
2500
2555
  "status": n => { automationActionRunRecord.status = n.getStringValue(); },
2501
2556
  };
@@ -2548,6 +2603,7 @@ export function deserializeIntoAutomationConnection(automationConnection = {}) {
2548
2603
  "id": n => { automationConnection.id = n.getStringValue(); },
2549
2604
  "sourceNodeId": n => { automationConnection.sourceNodeId = n.getStringValue(); },
2550
2605
  "targetNodeId": n => { automationConnection.targetNodeId = n.getStringValue(); },
2606
+ "weight": n => { automationConnection.weight = n.getNumberValue(); },
2551
2607
  };
2552
2608
  }
2553
2609
  /**
@@ -2957,6 +3013,29 @@ export function deserializeIntoAutomationWorkflowStatusResponse(automationWorkfl
2957
3013
  "runs": n => { automationWorkflowStatusResponse.runs = n.getCollectionOfObjectValues(createAutomationWorkflowRunResponseFromDiscriminatorValue); },
2958
3014
  };
2959
3015
  }
3016
+ /**
3017
+ * The deserialization information for the current model
3018
+ * @param BlogArticleResponse The instance to deserialize into.
3019
+ * @returns {Record<string, (node: ParseNode) => void>}
3020
+ */
3021
+ // @ts-ignore
3022
+ export function deserializeIntoBlogArticleResponse(blogArticleResponse = {}) {
3023
+ return {
3024
+ "authorName": n => { blogArticleResponse.authorName = n.getStringValue(); },
3025
+ "category": n => { blogArticleResponse.category = n.getStringValue(); },
3026
+ "content": n => { blogArticleResponse.content = n.getStringValue(); },
3027
+ "coverImageUrl": n => { blogArticleResponse.coverImageUrl = n.getStringValue(); },
3028
+ "createdAt": n => { blogArticleResponse.createdAt = n.getDateValue(); },
3029
+ "excerpt": n => { blogArticleResponse.excerpt = n.getStringValue(); },
3030
+ "id": n => { blogArticleResponse.id = n.getStringValue(); },
3031
+ "isFeatured": n => { blogArticleResponse.isFeatured = n.getBooleanValue(); },
3032
+ "isPublished": n => { blogArticleResponse.isPublished = n.getBooleanValue(); },
3033
+ "modifiedAt": n => { blogArticleResponse.modifiedAt = n.getDateValue(); },
3034
+ "publishedAt": n => { blogArticleResponse.publishedAt = n.getDateValue(); },
3035
+ "slug": n => { blogArticleResponse.slug = n.getStringValue(); },
3036
+ "title": n => { blogArticleResponse.title = n.getStringValue(); },
3037
+ };
3038
+ }
2960
3039
  /**
2961
3040
  * The deserialization information for the current model
2962
3041
  * @param CallEventTableRow The instance to deserialize into.
@@ -3226,6 +3305,7 @@ export function deserializeIntoCustomerAutomationHealth(customerAutomationHealth
3226
3305
  "failureCount": n => { customerAutomationHealth.failureCount = n.getNumberValue(); },
3227
3306
  "lastFailure": n => { customerAutomationHealth.lastFailure = n.getObjectValue(createCustomerAutomationHealth_lastFailureFromDiscriminatorValue); },
3228
3307
  "successCount": n => { customerAutomationHealth.successCount = n.getNumberValue(); },
3308
+ "trend": n => { customerAutomationHealth.trend = n.getCollectionOfObjectValues(createCustomerAutomationHealthPointFromDiscriminatorValue); },
3229
3309
  };
3230
3310
  }
3231
3311
  /**
@@ -3239,6 +3319,22 @@ export function deserializeIntoCustomerAutomationHealth_lastFailure(customerAuto
3239
3319
  ...deserializeIntoCustomerFailingAutomation(customerAutomationHealth_lastFailure),
3240
3320
  };
3241
3321
  }
3322
+ /**
3323
+ * The deserialization information for the current model
3324
+ * @param CustomerAutomationHealthPoint The instance to deserialize into.
3325
+ * @returns {Record<string, (node: ParseNode) => void>}
3326
+ */
3327
+ // @ts-ignore
3328
+ export function deserializeIntoCustomerAutomationHealthPoint(customerAutomationHealthPoint = {}) {
3329
+ return {
3330
+ "endAt": n => { customerAutomationHealthPoint.endAt = n.getDateValue(); },
3331
+ "executions": n => { customerAutomationHealthPoint.executions = n.getNumberValue(); },
3332
+ "failureCount": n => { customerAutomationHealthPoint.failureCount = n.getNumberValue(); },
3333
+ "label": n => { customerAutomationHealthPoint.label = n.getStringValue(); },
3334
+ "startAt": n => { customerAutomationHealthPoint.startAt = n.getDateValue(); },
3335
+ "successCount": n => { customerAutomationHealthPoint.successCount = n.getNumberValue(); },
3336
+ };
3337
+ }
3242
3338
  /**
3243
3339
  * The deserialization information for the current model
3244
3340
  * @param CustomerCommunicationUsage The instance to deserialize into.
@@ -3248,6 +3344,7 @@ export function deserializeIntoCustomerAutomationHealth_lastFailure(customerAuto
3248
3344
  export function deserializeIntoCustomerCommunicationUsage(customerCommunicationUsage = {}) {
3249
3345
  return {
3250
3346
  "answeredCalls": n => { customerCommunicationUsage.answeredCalls = n.getNumberValue(); },
3347
+ "callErrors": n => { customerCommunicationUsage.callErrors = n.getNumberValue(); },
3251
3348
  "callMinutes": n => { customerCommunicationUsage.callMinutes = n.getNumberValue(); },
3252
3349
  "callsPlaced": n => { customerCommunicationUsage.callsPlaced = n.getNumberValue(); },
3253
3350
  "callsReceived": n => { customerCommunicationUsage.callsReceived = n.getNumberValue(); },
@@ -3267,10 +3364,14 @@ export function deserializeIntoCustomerCommunicationUsage(customerCommunicationU
3267
3364
  // @ts-ignore
3268
3365
  export function deserializeIntoCustomerCommunicationUsagePoint(customerCommunicationUsagePoint = {}) {
3269
3366
  return {
3367
+ "callErrors": n => { customerCommunicationUsagePoint.callErrors = n.getNumberValue(); },
3270
3368
  "callMinutes": n => { customerCommunicationUsagePoint.callMinutes = n.getNumberValue(); },
3271
3369
  "calls": n => { customerCommunicationUsagePoint.calls = n.getNumberValue(); },
3370
+ "callsPlaced": n => { customerCommunicationUsagePoint.callsPlaced = n.getNumberValue(); },
3371
+ "callsReceived": n => { customerCommunicationUsagePoint.callsReceived = n.getNumberValue(); },
3272
3372
  "endAt": n => { customerCommunicationUsagePoint.endAt = n.getDateValue(); },
3273
3373
  "label": n => { customerCommunicationUsagePoint.label = n.getStringValue(); },
3374
+ "smsErrors": n => { customerCommunicationUsagePoint.smsErrors = n.getNumberValue(); },
3274
3375
  "smsReceived": n => { customerCommunicationUsagePoint.smsReceived = n.getNumberValue(); },
3275
3376
  "smsSent": n => { customerCommunicationUsagePoint.smsSent = n.getNumberValue(); },
3276
3377
  "spend": n => { customerCommunicationUsagePoint.spend = n.getNumberValue(); },
@@ -3599,6 +3700,17 @@ export function deserializeIntoLeadArchiveRequest(leadArchiveRequest = {}) {
3599
3700
  "reason": n => { leadArchiveRequest.reason = n.getNumberValue(); },
3600
3701
  };
3601
3702
  }
3703
+ /**
3704
+ * The deserialization information for the current model
3705
+ * @param LeadAssignmentRequest The instance to deserialize into.
3706
+ * @returns {Record<string, (node: ParseNode) => void>}
3707
+ */
3708
+ // @ts-ignore
3709
+ export function deserializeIntoLeadAssignmentRequest(leadAssignmentRequest = {}) {
3710
+ return {
3711
+ "assignedToUserId": n => { leadAssignmentRequest.assignedToUserId = n.getStringValue(); },
3712
+ };
3713
+ }
3602
3714
  /**
3603
3715
  * The deserialization information for the current model
3604
3716
  * @param LeadContact The instance to deserialize into.
@@ -3808,6 +3920,8 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
3808
3920
  "archivedByUserId": n => { leadResponse.archivedByUserId = n.getStringValue(); },
3809
3921
  "archiveNote": n => { leadResponse.archiveNote = n.getStringValue(); },
3810
3922
  "archiveReason": n => { leadResponse.archiveReason = n.getNumberValue(); },
3923
+ "assignedTo": n => { leadResponse.assignedTo = n.getObjectValue(createLeadResponse_assignedToFromDiscriminatorValue); },
3924
+ "assignedToUserId": n => { leadResponse.assignedToUserId = n.getStringValue(); },
3811
3925
  "contact": n => { leadResponse.contact = n.getObjectValue(createLeadContactFromDiscriminatorValue); },
3812
3926
  "createdAt": n => { leadResponse.createdAt = n.getDateValue(); },
3813
3927
  "currentLeadStatus": n => { leadResponse.currentLeadStatus = n.getObjectValue(createLeadResponse_currentLeadStatusFromDiscriminatorValue); },
@@ -3826,6 +3940,17 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
3826
3940
  "tags": n => { leadResponse.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
3827
3941
  };
3828
3942
  }
3943
+ /**
3944
+ * The deserialization information for the current model
3945
+ * @param LeadResponse_assignedTo The instance to deserialize into.
3946
+ * @returns {Record<string, (node: ParseNode) => void>}
3947
+ */
3948
+ // @ts-ignore
3949
+ export function deserializeIntoLeadResponse_assignedTo(leadResponse_assignedTo = {}) {
3950
+ return {
3951
+ ...deserializeIntoIdNamePair(leadResponse_assignedTo),
3952
+ };
3953
+ }
3829
3954
  /**
3830
3955
  * The deserialization information for the current model
3831
3956
  * @param LeadResponse_currentLeadStatus The instance to deserialize into.
@@ -4001,6 +4126,9 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4001
4126
  "archivedAt": n => { leadTableRow.archivedAt = n.getDateValue(); },
4002
4127
  "archivedByUserId": n => { leadTableRow.archivedByUserId = n.getStringValue(); },
4003
4128
  "archiveReason": n => { leadTableRow.archiveReason = n.getNumberValue(); },
4129
+ "assignedTo": n => { leadTableRow.assignedTo = n.getObjectValue(createLeadTableRow_assignedToFromDiscriminatorValue); },
4130
+ "assignedToUserId": n => { leadTableRow.assignedToUserId = n.getStringValue(); },
4131
+ "avatarUrl": n => { leadTableRow.avatarUrl = n.getStringValue(); },
4004
4132
  "createdAt": n => { leadTableRow.createdAt = n.getDateValue(); },
4005
4133
  "currentLeadStatus": n => { leadTableRow.currentLeadStatus = n.getObjectValue(createLeadTableRow_currentLeadStatusFromDiscriminatorValue); },
4006
4134
  "email": n => { leadTableRow.email = n.getStringValue(); },
@@ -4011,6 +4139,7 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4011
4139
  "lastName": n => { leadTableRow.lastName = n.getStringValue(); },
4012
4140
  "organization": n => { leadTableRow.organization = n.getObjectValue(createLeadTableRow_organizationFromDiscriminatorValue); },
4013
4141
  "phone": n => { leadTableRow.phone = n.getStringValue(); },
4142
+ "phoneIdentityId": n => { leadTableRow.phoneIdentityId = n.getStringValue(); },
4014
4143
  "price": n => { leadTableRow.price = n.getNumberValue(); },
4015
4144
  "processingStatus": n => { leadTableRow.processingStatus = n.getEnumValue(LeadTableRow_processingStatusObject); },
4016
4145
  "processingStatusChangedAt": n => { leadTableRow.processingStatusChangedAt = n.getDateValue(); },
@@ -4022,6 +4151,17 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4022
4151
  "updatedAt": n => { leadTableRow.updatedAt = n.getDateValue(); },
4023
4152
  };
4024
4153
  }
4154
+ /**
4155
+ * The deserialization information for the current model
4156
+ * @param LeadTableRow_assignedTo The instance to deserialize into.
4157
+ * @returns {Record<string, (node: ParseNode) => void>}
4158
+ */
4159
+ // @ts-ignore
4160
+ export function deserializeIntoLeadTableRow_assignedTo(leadTableRow_assignedTo = {}) {
4161
+ return {
4162
+ ...deserializeIntoIdNamePair(leadTableRow_assignedTo),
4163
+ };
4164
+ }
4025
4165
  /**
4026
4166
  * The deserialization information for the current model
4027
4167
  * @param LeadTableRow_currentLeadStatus The instance to deserialize into.
@@ -5849,6 +5989,18 @@ export function deserializeIntoSmsResponse(smsResponse = {}) {
5849
5989
  "wasManuallyOverridden": n => { smsResponse.wasManuallyOverridden = n.getBooleanValue(); },
5850
5990
  };
5851
5991
  }
5992
+ /**
5993
+ * The deserialization information for the current model
5994
+ * @param SourceCredentialIssueResponse The instance to deserialize into.
5995
+ * @returns {Record<string, (node: ParseNode) => void>}
5996
+ */
5997
+ // @ts-ignore
5998
+ export function deserializeIntoSourceCredentialIssueResponse(sourceCredentialIssueResponse = {}) {
5999
+ return {
6000
+ "secret": n => { sourceCredentialIssueResponse.secret = n.getStringValue(); },
6001
+ "source": n => { sourceCredentialIssueResponse.source = n.getObjectValue(createSourceResponseFromDiscriminatorValue); },
6002
+ };
6003
+ }
5852
6004
  /**
5853
6005
  * The deserialization information for the current model
5854
6006
  * @param SourceMetricsResponse The instance to deserialize into.
@@ -5890,8 +6042,8 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
5890
6042
  return {
5891
6043
  "allowedProducts": n => { sourceResponse.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5892
6044
  "allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5893
- "apiKey": n => { sourceResponse.apiKey = n.getStringValue(); },
5894
6045
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
6046
+ "apiKeyRotatedAt": n => { sourceResponse.apiKeyRotatedAt = n.getDateValue(); },
5895
6047
  "complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
5896
6048
  "costPerLead": n => { sourceResponse.costPerLead = n.getNumberValue(); },
5897
6049
  "createdAt": n => { sourceResponse.createdAt = n.getDateValue(); },
@@ -5966,9 +6118,9 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
5966
6118
  return {
5967
6119
  "allowedProducts": n => { sourceTableRow.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5968
6120
  "allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5969
- "apiKey": n => { sourceTableRow.apiKey = n.getStringValue(); },
5970
6121
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
5971
6122
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
6123
+ "apiKeyRotatedAt": n => { sourceTableRow.apiKeyRotatedAt = n.getDateValue(); },
5972
6124
  "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
5973
6125
  "complianceApproved": n => { sourceTableRow.complianceApproved = n.getBooleanValue(); },
5974
6126
  "costPerLead": n => { sourceTableRow.costPerLead = n.getNumberValue(); },
@@ -6956,6 +7108,7 @@ export function serializeAutomationActionRunRecord(writer, automationActionRunRe
6956
7108
  writer.writeNumberValue("order", automationActionRunRecord.order);
6957
7109
  writer.writeNumberValue("processingAttempts", automationActionRunRecord.processingAttempts);
6958
7110
  writer.writeDateValue("scheduledAt", automationActionRunRecord.scheduledAt);
7111
+ writer.writeStringValue("selectedConnectionId", automationActionRunRecord.selectedConnectionId);
6959
7112
  writer.writeDateValue("startedAt", automationActionRunRecord.startedAt);
6960
7113
  writer.writeStringValue("status", automationActionRunRecord.status);
6961
7114
  writer.writeAdditionalData(automationActionRunRecord.additionalData);
@@ -7021,6 +7174,7 @@ export function serializeAutomationConnection(writer, automationConnection = {},
7021
7174
  writer.writeStringValue("id", automationConnection.id);
7022
7175
  writer.writeStringValue("sourceNodeId", automationConnection.sourceNodeId);
7023
7176
  writer.writeStringValue("targetNodeId", automationConnection.targetNodeId);
7177
+ writer.writeNumberValue("weight", automationConnection.weight);
7024
7178
  writer.writeAdditionalData(automationConnection.additionalData);
7025
7179
  }
7026
7180
  /**
@@ -7498,6 +7652,32 @@ export function serializeAutomationWorkflowStatusResponse(writer, automationWork
7498
7652
  writer.writeCollectionOfObjectValues("runs", automationWorkflowStatusResponse.runs, serializeAutomationWorkflowRunResponse);
7499
7653
  writer.writeAdditionalData(automationWorkflowStatusResponse.additionalData);
7500
7654
  }
7655
+ /**
7656
+ * Serializes information the current object
7657
+ * @param BlogArticleResponse The instance to serialize from.
7658
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7659
+ * @param writer Serialization writer to use to serialize this model
7660
+ */
7661
+ // @ts-ignore
7662
+ export function serializeBlogArticleResponse(writer, blogArticleResponse = {}, isSerializingDerivedType = false) {
7663
+ if (!blogArticleResponse || isSerializingDerivedType) {
7664
+ return;
7665
+ }
7666
+ writer.writeStringValue("authorName", blogArticleResponse.authorName);
7667
+ writer.writeStringValue("category", blogArticleResponse.category);
7668
+ writer.writeStringValue("content", blogArticleResponse.content);
7669
+ writer.writeStringValue("coverImageUrl", blogArticleResponse.coverImageUrl);
7670
+ writer.writeDateValue("createdAt", blogArticleResponse.createdAt);
7671
+ writer.writeStringValue("excerpt", blogArticleResponse.excerpt);
7672
+ writer.writeStringValue("id", blogArticleResponse.id);
7673
+ writer.writeBooleanValue("isFeatured", blogArticleResponse.isFeatured);
7674
+ writer.writeBooleanValue("isPublished", blogArticleResponse.isPublished);
7675
+ writer.writeDateValue("modifiedAt", blogArticleResponse.modifiedAt);
7676
+ writer.writeDateValue("publishedAt", blogArticleResponse.publishedAt);
7677
+ writer.writeStringValue("slug", blogArticleResponse.slug);
7678
+ writer.writeStringValue("title", blogArticleResponse.title);
7679
+ writer.writeAdditionalData(blogArticleResponse.additionalData);
7680
+ }
7501
7681
  /**
7502
7682
  * Serializes information the current object
7503
7683
  * @param CallEventTableRow The instance to serialize from.
@@ -7812,6 +7992,7 @@ export function serializeCustomerAutomationHealth(writer, customerAutomationHeal
7812
7992
  writer.writeNumberValue("failureCount", customerAutomationHealth.failureCount);
7813
7993
  writer.writeObjectValue("lastFailure", customerAutomationHealth.lastFailure, serializeCustomerAutomationHealth_lastFailure);
7814
7994
  writer.writeNumberValue("successCount", customerAutomationHealth.successCount);
7995
+ writer.writeCollectionOfObjectValues("trend", customerAutomationHealth.trend, serializeCustomerAutomationHealthPoint);
7815
7996
  writer.writeAdditionalData(customerAutomationHealth.additionalData);
7816
7997
  }
7817
7998
  /**
@@ -7827,6 +8008,25 @@ export function serializeCustomerAutomationHealth_lastFailure(writer, customerAu
7827
8008
  }
7828
8009
  serializeCustomerFailingAutomation(writer, customerAutomationHealth_lastFailure, isSerializingDerivedType);
7829
8010
  }
8011
+ /**
8012
+ * Serializes information the current object
8013
+ * @param CustomerAutomationHealthPoint The instance to serialize from.
8014
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8015
+ * @param writer Serialization writer to use to serialize this model
8016
+ */
8017
+ // @ts-ignore
8018
+ export function serializeCustomerAutomationHealthPoint(writer, customerAutomationHealthPoint = {}, isSerializingDerivedType = false) {
8019
+ if (!customerAutomationHealthPoint || isSerializingDerivedType) {
8020
+ return;
8021
+ }
8022
+ writer.writeDateValue("endAt", customerAutomationHealthPoint.endAt);
8023
+ writer.writeNumberValue("executions", customerAutomationHealthPoint.executions);
8024
+ writer.writeNumberValue("failureCount", customerAutomationHealthPoint.failureCount);
8025
+ writer.writeStringValue("label", customerAutomationHealthPoint.label);
8026
+ writer.writeDateValue("startAt", customerAutomationHealthPoint.startAt);
8027
+ writer.writeNumberValue("successCount", customerAutomationHealthPoint.successCount);
8028
+ writer.writeAdditionalData(customerAutomationHealthPoint.additionalData);
8029
+ }
7830
8030
  /**
7831
8031
  * Serializes information the current object
7832
8032
  * @param CustomerCommunicationUsage The instance to serialize from.
@@ -7839,6 +8039,7 @@ export function serializeCustomerCommunicationUsage(writer, customerCommunicatio
7839
8039
  return;
7840
8040
  }
7841
8041
  writer.writeNumberValue("answeredCalls", customerCommunicationUsage.answeredCalls);
8042
+ writer.writeNumberValue("callErrors", customerCommunicationUsage.callErrors);
7842
8043
  writer.writeNumberValue("callMinutes", customerCommunicationUsage.callMinutes);
7843
8044
  writer.writeNumberValue("callsPlaced", customerCommunicationUsage.callsPlaced);
7844
8045
  writer.writeNumberValue("callsReceived", customerCommunicationUsage.callsReceived);
@@ -7861,10 +8062,14 @@ export function serializeCustomerCommunicationUsagePoint(writer, customerCommuni
7861
8062
  if (!customerCommunicationUsagePoint || isSerializingDerivedType) {
7862
8063
  return;
7863
8064
  }
8065
+ writer.writeNumberValue("callErrors", customerCommunicationUsagePoint.callErrors);
7864
8066
  writer.writeNumberValue("callMinutes", customerCommunicationUsagePoint.callMinutes);
7865
8067
  writer.writeNumberValue("calls", customerCommunicationUsagePoint.calls);
8068
+ writer.writeNumberValue("callsPlaced", customerCommunicationUsagePoint.callsPlaced);
8069
+ writer.writeNumberValue("callsReceived", customerCommunicationUsagePoint.callsReceived);
7866
8070
  writer.writeDateValue("endAt", customerCommunicationUsagePoint.endAt);
7867
8071
  writer.writeStringValue("label", customerCommunicationUsagePoint.label);
8072
+ writer.writeNumberValue("smsErrors", customerCommunicationUsagePoint.smsErrors);
7868
8073
  writer.writeNumberValue("smsReceived", customerCommunicationUsagePoint.smsReceived);
7869
8074
  writer.writeNumberValue("smsSent", customerCommunicationUsagePoint.smsSent);
7870
8075
  writer.writeNumberValue("spend", customerCommunicationUsagePoint.spend);
@@ -8243,6 +8448,20 @@ export function serializeLeadArchiveRequest(writer, leadArchiveRequest = {}, isS
8243
8448
  writer.writeNumberValue("reason", leadArchiveRequest.reason);
8244
8449
  writer.writeAdditionalData(leadArchiveRequest.additionalData);
8245
8450
  }
8451
+ /**
8452
+ * Serializes information the current object
8453
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8454
+ * @param LeadAssignmentRequest The instance to serialize from.
8455
+ * @param writer Serialization writer to use to serialize this model
8456
+ */
8457
+ // @ts-ignore
8458
+ export function serializeLeadAssignmentRequest(writer, leadAssignmentRequest = {}, isSerializingDerivedType = false) {
8459
+ if (!leadAssignmentRequest || isSerializingDerivedType) {
8460
+ return;
8461
+ }
8462
+ writer.writeStringValue("assignedToUserId", leadAssignmentRequest.assignedToUserId);
8463
+ writer.writeAdditionalData(leadAssignmentRequest.additionalData);
8464
+ }
8246
8465
  /**
8247
8466
  * Serializes information the current object
8248
8467
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8484,6 +8703,8 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
8484
8703
  writer.writeStringValue("archivedByUserId", leadResponse.archivedByUserId);
8485
8704
  writer.writeStringValue("archiveNote", leadResponse.archiveNote);
8486
8705
  writer.writeNumberValue("archiveReason", leadResponse.archiveReason);
8706
+ writer.writeObjectValue("assignedTo", leadResponse.assignedTo, serializeLeadResponse_assignedTo);
8707
+ writer.writeStringValue("assignedToUserId", leadResponse.assignedToUserId);
8487
8708
  writer.writeObjectValue("contact", leadResponse.contact, serializeLeadContact);
8488
8709
  writer.writeDateValue("createdAt", leadResponse.createdAt);
8489
8710
  writer.writeObjectValue("currentLeadStatus", leadResponse.currentLeadStatus, serializeLeadResponse_currentLeadStatus);
@@ -8502,6 +8723,19 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
8502
8723
  writer.writeCollectionOfObjectValues("tags", leadResponse.tags, serializeTagSummary);
8503
8724
  writer.writeAdditionalData(leadResponse.additionalData);
8504
8725
  }
8726
+ /**
8727
+ * Serializes information the current object
8728
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8729
+ * @param LeadResponse_assignedTo The instance to serialize from.
8730
+ * @param writer Serialization writer to use to serialize this model
8731
+ */
8732
+ // @ts-ignore
8733
+ export function serializeLeadResponse_assignedTo(writer, leadResponse_assignedTo = {}, isSerializingDerivedType = false) {
8734
+ if (!leadResponse_assignedTo || isSerializingDerivedType) {
8735
+ return;
8736
+ }
8737
+ serializeIdNamePair(writer, leadResponse_assignedTo, isSerializingDerivedType);
8738
+ }
8505
8739
  /**
8506
8740
  * Serializes information the current object
8507
8741
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8702,6 +8936,9 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8702
8936
  writer.writeDateValue("archivedAt", leadTableRow.archivedAt);
8703
8937
  writer.writeStringValue("archivedByUserId", leadTableRow.archivedByUserId);
8704
8938
  writer.writeNumberValue("archiveReason", leadTableRow.archiveReason);
8939
+ writer.writeObjectValue("assignedTo", leadTableRow.assignedTo, serializeLeadTableRow_assignedTo);
8940
+ writer.writeStringValue("assignedToUserId", leadTableRow.assignedToUserId);
8941
+ writer.writeStringValue("avatarUrl", leadTableRow.avatarUrl);
8705
8942
  writer.writeDateValue("createdAt", leadTableRow.createdAt);
8706
8943
  writer.writeObjectValue("currentLeadStatus", leadTableRow.currentLeadStatus, serializeLeadTableRow_currentLeadStatus);
8707
8944
  writer.writeStringValue("email", leadTableRow.email);
@@ -8712,6 +8949,7 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8712
8949
  writer.writeStringValue("lastName", leadTableRow.lastName);
8713
8950
  writer.writeObjectValue("organization", leadTableRow.organization, serializeLeadTableRow_organization);
8714
8951
  writer.writeStringValue("phone", leadTableRow.phone);
8952
+ writer.writeStringValue("phoneIdentityId", leadTableRow.phoneIdentityId);
8715
8953
  writer.writeNumberValue("price", leadTableRow.price);
8716
8954
  writer.writeEnumValue("processingStatus", leadTableRow.processingStatus);
8717
8955
  writer.writeDateValue("processingStatusChangedAt", leadTableRow.processingStatusChangedAt);
@@ -8723,6 +8961,19 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8723
8961
  writer.writeDateValue("updatedAt", leadTableRow.updatedAt);
8724
8962
  writer.writeAdditionalData(leadTableRow.additionalData);
8725
8963
  }
8964
+ /**
8965
+ * Serializes information the current object
8966
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8967
+ * @param LeadTableRow_assignedTo The instance to serialize from.
8968
+ * @param writer Serialization writer to use to serialize this model
8969
+ */
8970
+ // @ts-ignore
8971
+ export function serializeLeadTableRow_assignedTo(writer, leadTableRow_assignedTo = {}, isSerializingDerivedType = false) {
8972
+ if (!leadTableRow_assignedTo || isSerializingDerivedType) {
8973
+ return;
8974
+ }
8975
+ serializeIdNamePair(writer, leadTableRow_assignedTo, isSerializingDerivedType);
8976
+ }
8726
8977
  /**
8727
8978
  * Serializes information the current object
8728
8979
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10853,6 +11104,21 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
10853
11104
  writer.writeBooleanValue("wasManuallyOverridden", smsResponse.wasManuallyOverridden);
10854
11105
  writer.writeAdditionalData(smsResponse.additionalData);
10855
11106
  }
11107
+ /**
11108
+ * Serializes information the current object
11109
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11110
+ * @param SourceCredentialIssueResponse The instance to serialize from.
11111
+ * @param writer Serialization writer to use to serialize this model
11112
+ */
11113
+ // @ts-ignore
11114
+ export function serializeSourceCredentialIssueResponse(writer, sourceCredentialIssueResponse = {}, isSerializingDerivedType = false) {
11115
+ if (!sourceCredentialIssueResponse || isSerializingDerivedType) {
11116
+ return;
11117
+ }
11118
+ writer.writeStringValue("secret", sourceCredentialIssueResponse.secret);
11119
+ writer.writeObjectValue("source", sourceCredentialIssueResponse.source, serializeSourceResponse);
11120
+ writer.writeAdditionalData(sourceCredentialIssueResponse.additionalData);
11121
+ }
10856
11122
  /**
10857
11123
  * Serializes information the current object
10858
11124
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10903,8 +11169,8 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
10903
11169
  }
10904
11170
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceResponse.allowedProducts);
10905
11171
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
10906
- writer.writeStringValue("apiKey", sourceResponse.apiKey);
10907
11172
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
11173
+ writer.writeDateValue("apiKeyRotatedAt", sourceResponse.apiKeyRotatedAt);
10908
11174
  writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
10909
11175
  writer.writeNumberValue("costPerLead", sourceResponse.costPerLead);
10910
11176
  writer.writeDateValue("createdAt", sourceResponse.createdAt);
@@ -10990,9 +11256,9 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
10990
11256
  }
10991
11257
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceTableRow.allowedProducts);
10992
11258
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
10993
- writer.writeStringValue("apiKey", sourceTableRow.apiKey);
10994
11259
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
10995
11260
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
11261
+ writer.writeDateValue("apiKeyRotatedAt", sourceTableRow.apiKeyRotatedAt);
10996
11262
  writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
10997
11263
  writer.writeBooleanValue("complianceApproved", sourceTableRow.complianceApproved);
10998
11264
  writer.writeNumberValue("costPerLead", sourceTableRow.costPerLead);
@@ -12266,6 +12532,7 @@ export const LeadProfile_maritalStatusObject = {
12266
12532
  * Defines the asynchronous verification and enrichment lifecycle for a lead.
12267
12533
  */
12268
12534
  export const LeadResponse_processingStatusObject = {
12535
+ Quarantined: "Quarantined",
12269
12536
  Verifying: "Verifying",
12270
12537
  Validating: "Validating",
12271
12538
  Enriching: "Enriching",
@@ -12352,6 +12619,7 @@ export const LeadStatusRequest_categoryObject = {
12352
12619
  * Defines the asynchronous verification and enrichment lifecycle for a lead.
12353
12620
  */
12354
12621
  export const LeadTableRow_processingStatusObject = {
12622
+ Quarantined: "Quarantined",
12355
12623
  Verifying: "Verifying",
12356
12624
  Validating: "Validating",
12357
12625
  Enriching: "Enriching",