@leadping/sdk 1.0.75 → 1.0.77

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 (37) hide show
  1. package/dist/conversations/index.d.ts +1 -1
  2. package/dist/conversations/index.d.ts.map +1 -1
  3. package/dist/conversations/index.js +2 -1
  4. package/dist/conversations/index.js.map +1 -1
  5. package/dist/conversations/item/index.d.ts +27 -1
  6. package/dist/conversations/item/index.d.ts.map +1 -1
  7. package/dist/conversations/item/index.js +24 -0
  8. package/dist/conversations/item/index.js.map +1 -1
  9. package/dist/conversations/item/markRead/index.d.ts +14 -6
  10. package/dist/conversations/item/markRead/index.d.ts.map +1 -1
  11. package/dist/conversations/item/markRead/index.js +1 -2
  12. package/dist/conversations/item/markRead/index.js.map +1 -1
  13. package/dist/conversations/item/outboundReadiness/index.d.ts +41 -0
  14. package/dist/conversations/item/outboundReadiness/index.d.ts.map +1 -0
  15. package/dist/conversations/item/outboundReadiness/index.js +29 -0
  16. package/dist/conversations/item/outboundReadiness/index.js.map +1 -0
  17. package/dist/leads/followUps/index.d.ts +43 -0
  18. package/dist/leads/followUps/index.d.ts.map +1 -0
  19. package/dist/leads/followUps/index.js +28 -0
  20. package/dist/leads/followUps/index.js.map +1 -0
  21. package/dist/leads/index.d.ts +5 -0
  22. package/dist/leads/index.d.ts.map +1 -1
  23. package/dist/leads/index.js +5 -0
  24. package/dist/leads/index.js.map +1 -1
  25. package/dist/leads/item/followUp/index.d.ts +33 -0
  26. package/dist/leads/item/followUp/index.d.ts.map +1 -0
  27. package/dist/leads/item/followUp/index.js +31 -0
  28. package/dist/leads/item/followUp/index.js.map +1 -0
  29. package/dist/leads/item/index.d.ts +5 -0
  30. package/dist/leads/item/index.d.ts.map +1 -1
  31. package/dist/leads/item/index.js +5 -0
  32. package/dist/leads/item/index.js.map +1 -1
  33. package/dist/models/index.d.ts +205 -1
  34. package/dist/models/index.d.ts.map +1 -1
  35. package/dist/models/index.js +183 -0
  36. package/dist/models/index.js.map +1 -1
  37. package/package.json +1 -1
@@ -39,6 +39,15 @@ export function createActivationTimelineEventFromDiscriminatorValue(parseNode) {
39
39
  export function createAnalyticsComparisonFromDiscriminatorValue(parseNode) {
40
40
  return deserializeIntoAnalyticsComparison;
41
41
  }
42
+ /**
43
+ * Creates a new instance of the appropriate class based on discriminator value
44
+ * @param parseNode The parse node to use to read the discriminator value and create the object
45
+ * @returns {AnalyticsCoverage}
46
+ */
47
+ // @ts-ignore
48
+ export function createAnalyticsCoverageFromDiscriminatorValue(parseNode) {
49
+ return deserializeIntoAnalyticsCoverage;
50
+ }
42
51
  /**
43
52
  * Creates a new instance of the appropriate class based on discriminator value
44
53
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -147,6 +156,15 @@ export function createAutomationConnectionFromDiscriminatorValue(parseNode) {
147
156
  export function createAutomationConsoleResponseFromDiscriminatorValue(parseNode) {
148
157
  return deserializeIntoAutomationConsoleResponse;
149
158
  }
159
+ /**
160
+ * Creates a new instance of the appropriate class based on discriminator value
161
+ * @param parseNode The parse node to use to read the discriminator value and create the object
162
+ * @returns {AutomationLineage}
163
+ */
164
+ // @ts-ignore
165
+ export function createAutomationLineageFromDiscriminatorValue(parseNode) {
166
+ return deserializeIntoAutomationLineage;
167
+ }
150
168
  /**
151
169
  * Creates a new instance of the appropriate class based on discriminator value
152
170
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -237,6 +255,15 @@ export function createAutomationResponse_userFromDiscriminatorValue(parseNode) {
237
255
  export function createAutomationResponseFromDiscriminatorValue(parseNode) {
238
256
  return deserializeIntoAutomationResponse;
239
257
  }
258
+ /**
259
+ * Creates a new instance of the appropriate class based on discriminator value
260
+ * @param parseNode The parse node to use to read the discriminator value and create the object
261
+ * @returns {AutomationRunRecord_automationLineage}
262
+ */
263
+ // @ts-ignore
264
+ export function createAutomationRunRecord_automationLineageFromDiscriminatorValue(parseNode) {
265
+ return deserializeIntoAutomationRunRecord_automationLineage;
266
+ }
240
267
  /**
241
268
  * Creates a new instance of the appropriate class based on discriminator value
242
269
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -786,6 +813,15 @@ export function createLeadContact_streetAddressFromDiscriminatorValue(parseNode)
786
813
  export function createLeadContactFromDiscriminatorValue(parseNode) {
787
814
  return deserializeIntoLeadContact;
788
815
  }
816
+ /**
817
+ * Creates a new instance of the appropriate class based on discriminator value
818
+ * @param parseNode The parse node to use to read the discriminator value and create the object
819
+ * @returns {LeadFollowUpUpdateRequest}
820
+ */
821
+ // @ts-ignore
822
+ export function createLeadFollowUpUpdateRequestFromDiscriminatorValue(parseNode) {
823
+ return deserializeIntoLeadFollowUpUpdateRequest;
824
+ }
789
825
  /**
790
826
  * Creates a new instance of the appropriate class based on discriminator value
791
827
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2538,6 +2574,19 @@ export function deserializeIntoAnalyticsComparison(analyticsComparison = {}) {
2538
2574
  "previous": n => { analyticsComparison.previous = n.getNumberValue(); },
2539
2575
  };
2540
2576
  }
2577
+ /**
2578
+ * The deserialization information for the current model
2579
+ * @param AnalyticsCoverage The instance to deserialize into.
2580
+ * @returns {Record<string, (node: ParseNode) => void>}
2581
+ */
2582
+ // @ts-ignore
2583
+ export function deserializeIntoAnalyticsCoverage(analyticsCoverage = {}) {
2584
+ return {
2585
+ "completeFrom": n => { analyticsCoverage.completeFrom = n.getDateValue(); },
2586
+ "detail": n => { analyticsCoverage.detail = n.getStringValue(); },
2587
+ "isPartial": n => { analyticsCoverage.isPartial = n.getBooleanValue(); },
2588
+ };
2589
+ }
2541
2590
  /**
2542
2591
  * The deserialization information for the current model
2543
2592
  * @param AnalyticsDateRange The instance to deserialize into.
@@ -2702,6 +2751,21 @@ export function deserializeIntoAutomationConsoleResponse(automationConsoleRespon
2702
2751
  "runs": n => { automationConsoleResponse.runs = n.getCollectionOfObjectValues(createAutomationWorkflowRunResponseFromDiscriminatorValue); },
2703
2752
  };
2704
2753
  }
2754
+ /**
2755
+ * The deserialization information for the current model
2756
+ * @param AutomationLineage The instance to deserialize into.
2757
+ * @returns {Record<string, (node: ParseNode) => void>}
2758
+ */
2759
+ // @ts-ignore
2760
+ export function deserializeIntoAutomationLineage(automationLineage = {}) {
2761
+ return {
2762
+ "actionId": n => { automationLineage.actionId = n.getStringValue(); },
2763
+ "automationIds": n => { automationLineage.automationIds = n.getCollectionOfPrimitiveValues("string"); },
2764
+ "rootEventId": n => { automationLineage.rootEventId = n.getStringValue(); },
2765
+ "runId": n => { automationLineage.runId = n.getStringValue(); },
2766
+ "triggerEventId": n => { automationLineage.triggerEventId = n.getStringValue(); },
2767
+ };
2768
+ }
2705
2769
  /**
2706
2770
  * The deserialization information for the current model
2707
2771
  * @param AutomationPreviewActionResult The instance to deserialize into.
@@ -2879,6 +2943,7 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
2879
2943
  return {
2880
2944
  "actions": n => { automationRunRecord.actions = n.getCollectionOfObjectValues(createAutomationActionRunRecordFromDiscriminatorValue); },
2881
2945
  "automationId": n => { automationRunRecord.automationId = n.getStringValue(); },
2946
+ "automationLineage": n => { automationRunRecord.automationLineage = n.getObjectValue(createAutomationRunRecord_automationLineageFromDiscriminatorValue); },
2882
2947
  "completedAt": n => { automationRunRecord.completedAt = n.getDateValue(); },
2883
2948
  "conditionResults": n => { automationRunRecord.conditionResults = n.getObjectValue(createAutomationRunRecord_conditionResultsFromDiscriminatorValue); },
2884
2949
  "executionMode": n => { automationRunRecord.executionMode = n.getStringValue(); },
@@ -2895,6 +2960,17 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
2895
2960
  "triggerType": n => { automationRunRecord.triggerType = n.getStringValue(); },
2896
2961
  };
2897
2962
  }
2963
+ /**
2964
+ * The deserialization information for the current model
2965
+ * @param AutomationRunRecord_automationLineage The instance to deserialize into.
2966
+ * @returns {Record<string, (node: ParseNode) => void>}
2967
+ */
2968
+ // @ts-ignore
2969
+ export function deserializeIntoAutomationRunRecord_automationLineage(automationRunRecord_automationLineage = {}) {
2970
+ return {
2971
+ ...deserializeIntoAutomationLineage(automationRunRecord_automationLineage),
2972
+ };
2973
+ }
2898
2974
  /**
2899
2975
  * The deserialization information for the current model
2900
2976
  * @param AutomationRunRecord_conditionResults The instance to deserialize into.
@@ -3297,6 +3373,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3297
3373
  "avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
3298
3374
  "currentLeadStatus": n => { conversationResponse.currentLeadStatus = n.getObjectValue(createConversationResponse_currentLeadStatusFromDiscriminatorValue); },
3299
3375
  "email": n => { conversationResponse.email = n.getStringValue(); },
3376
+ "eventVersion": n => { conversationResponse.eventVersion = n.getNumberValue(); },
3300
3377
  "firstName": n => { conversationResponse.firstName = n.getStringValue(); },
3301
3378
  "id": n => { conversationResponse.id = n.getStringValue(); },
3302
3379
  "isArchived": n => { conversationResponse.isArchived = n.getBooleanValue(); },
@@ -3373,8 +3450,11 @@ export function deserializeIntoCurrentLeadStatusSummary(currentLeadStatusSummary
3373
3450
  "changedByAutomationId": n => { currentLeadStatusSummary.changedByAutomationId = n.getStringValue(); },
3374
3451
  "changedByUserId": n => { currentLeadStatusSummary.changedByUserId = n.getStringValue(); },
3375
3452
  "displayName": n => { currentLeadStatusSummary.displayName = n.getStringValue(); },
3453
+ "followUpCompletedAt": n => { currentLeadStatusSummary.followUpCompletedAt = n.getDateValue(); },
3454
+ "followUpDueAt": n => { currentLeadStatusSummary.followUpDueAt = n.getDateValue(); },
3376
3455
  "id": n => { currentLeadStatusSummary.id = n.getStringValue(); },
3377
3456
  "outcome": n => { currentLeadStatusSummary.outcome = n.getStringValue(); },
3457
+ "revision": n => { currentLeadStatusSummary.revision = n.getNumberValue(); },
3378
3458
  "source": n => { currentLeadStatusSummary.source = n.getEnumValue(CurrentLeadStatusSummary_sourceObject); },
3379
3459
  };
3380
3460
  }
@@ -3471,6 +3551,7 @@ export function deserializeIntoCustomerAnalyticsSummary(customerAnalyticsSummary
3471
3551
  export function deserializeIntoCustomerAutomationHealth(customerAutomationHealth = {}) {
3472
3552
  return {
3473
3553
  "automationCount": n => { customerAutomationHealth.automationCount = n.getNumberValue(); },
3554
+ "coverage": n => { customerAutomationHealth.coverage = n.getObjectValue(createAnalyticsCoverageFromDiscriminatorValue); },
3474
3555
  "enabledCount": n => { customerAutomationHealth.enabledCount = n.getNumberValue(); },
3475
3556
  "executions": n => { customerAutomationHealth.executions = n.getNumberValue(); },
3476
3557
  "failingAutomations": n => { customerAutomationHealth.failingAutomations = n.getCollectionOfObjectValues(createCustomerFailingAutomationFromDiscriminatorValue); },
@@ -3795,6 +3876,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
3795
3876
  "toPhoneNumber": n => { eventTableRow.toPhoneNumber = n.getStringValue(); },
3796
3877
  "trafficType": n => { eventTableRow.trafficType = n.getEnumValue(EventTableRow_trafficTypeObject); },
3797
3878
  "undeliverableAt": n => { eventTableRow.undeliverableAt = n.getDateValue(); },
3879
+ "voicemailUrl": n => { eventTableRow.voicemailUrl = n.getStringValue(); },
3798
3880
  "wasManuallyOverridden": n => { eventTableRow.wasManuallyOverridden = n.getBooleanValue(); },
3799
3881
  };
3800
3882
  }
@@ -3976,6 +4058,19 @@ export function deserializeIntoLeadContact_streetAddress(leadContact_streetAddre
3976
4058
  ...deserializeIntoStreetAddress(leadContact_streetAddress),
3977
4059
  };
3978
4060
  }
4061
+ /**
4062
+ * The deserialization information for the current model
4063
+ * @param LeadFollowUpUpdateRequest The instance to deserialize into.
4064
+ * @returns {Record<string, (node: ParseNode) => void>}
4065
+ */
4066
+ // @ts-ignore
4067
+ export function deserializeIntoLeadFollowUpUpdateRequest(leadFollowUpUpdateRequest = {}) {
4068
+ return {
4069
+ "dueAt": n => { leadFollowUpUpdateRequest.dueAt = n.getDateValue(); },
4070
+ "expectedRevision": n => { leadFollowUpUpdateRequest.expectedRevision = n.getNumberValue(); },
4071
+ "expectedStatusId": n => { leadFollowUpUpdateRequest.expectedStatusId = n.getStringValue(); },
4072
+ };
4073
+ }
3979
4074
  /**
3980
4075
  * The deserialization information for the current model
3981
4076
  * @param LeadIntakeRequest The instance to deserialize into.
@@ -4268,6 +4363,9 @@ export function deserializeIntoLeadStatusChangeRequest(leadStatusChangeRequest =
4268
4363
  "appointmentStartAt": n => { leadStatusChangeRequest.appointmentStartAt = n.getDateValue(); },
4269
4364
  "callbackAt": n => { leadStatusChangeRequest.callbackAt = n.getDateValue(); },
4270
4365
  "category": n => { leadStatusChangeRequest.category = n.getEnumValue(LeadStatusChangeRequest_categoryObject); },
4366
+ "completeFollowUp": n => { leadStatusChangeRequest.completeFollowUp = n.getBooleanValue(); },
4367
+ "expectedCurrentStatusId": n => { leadStatusChangeRequest.expectedCurrentStatusId = n.getStringValue(); },
4368
+ "expectedRevision": n => { leadStatusChangeRequest.expectedRevision = n.getNumberValue(); },
4271
4369
  "followUpStatus": n => { leadStatusChangeRequest.followUpStatus = n.getStringValue(); },
4272
4370
  "notes": n => { leadStatusChangeRequest.notes = n.getStringValue(); },
4273
4371
  "outcome": n => { leadStatusChangeRequest.outcome = n.getStringValue(); },
@@ -4295,6 +4393,7 @@ export function deserializeIntoLeadStatusChangeResponse(leadStatusChangeResponse
4295
4393
  "changedByUserId": n => { leadStatusChangeResponse.changedByUserId = n.getStringValue(); },
4296
4394
  "changeSource": n => { leadStatusChangeResponse.changeSource = n.getEnumValue(LeadStatusChangeResponse_changeSourceObject); },
4297
4395
  "createdAt": n => { leadStatusChangeResponse.createdAt = n.getDateValue(); },
4396
+ "followUpCompletedAt": n => { leadStatusChangeResponse.followUpCompletedAt = n.getDateValue(); },
4298
4397
  "followUpStatus": n => { leadStatusChangeResponse.followUpStatus = n.getStringValue(); },
4299
4398
  "id": n => { leadStatusChangeResponse.id = n.getStringValue(); },
4300
4399
  "isDemo": n => { leadStatusChangeResponse.isDemo = n.getBooleanValue(); },
@@ -4311,6 +4410,7 @@ export function deserializeIntoLeadStatusChangeResponse(leadStatusChangeResponse
4311
4410
  "outcome": n => { leadStatusChangeResponse.outcome = n.getStringValue(); },
4312
4411
  "reason": n => { leadStatusChangeResponse.reason = n.getStringValue(); },
4313
4412
  "relatedCallEventId": n => { leadStatusChangeResponse.relatedCallEventId = n.getStringValue(); },
4413
+ "revision": n => { leadStatusChangeResponse.revision = n.getNumberValue(); },
4314
4414
  "sourceId": n => { leadStatusChangeResponse.sourceId = n.getStringValue(); },
4315
4415
  "taskDueAt": n => { leadStatusChangeResponse.taskDueAt = n.getDateValue(); },
4316
4416
  "timestamp": n => { leadStatusChangeResponse.timestamp = n.getDateValue(); },
@@ -4483,14 +4583,17 @@ export function deserializeIntoNotificationResponse(notificationResponse = {}) {
4483
4583
  return {
4484
4584
  "actionButtonText": n => { notificationResponse.actionButtonText = n.getStringValue(); },
4485
4585
  "actionUrl": n => { notificationResponse.actionUrl = n.getStringValue(); },
4586
+ "conversationId": n => { notificationResponse.conversationId = n.getStringValue(); },
4486
4587
  "createdAt": n => { notificationResponse.createdAt = n.getDateValue(); },
4487
4588
  "details": n => { notificationResponse.details = n.getStringValue(); },
4488
4589
  "id": n => { notificationResponse.id = n.getStringValue(); },
4489
4590
  "isDemo": n => { notificationResponse.isDemo = n.getBooleanValue(); },
4490
4591
  "isRead": n => { notificationResponse.isRead = n.getBooleanValue(); },
4592
+ "leadId": n => { notificationResponse.leadId = n.getStringValue(); },
4491
4593
  "message": n => { notificationResponse.message = n.getStringValue(); },
4492
4594
  "modifiedAt": n => { notificationResponse.modifiedAt = n.getDateValue(); },
4493
4595
  "name": n => { notificationResponse.name = n.getStringValue(); },
4596
+ "organizationId": n => { notificationResponse.organizationId = n.getStringValue(); },
4494
4597
  "priority": n => { notificationResponse.priority = n.getEnumValue(NotificationPriorityObject); },
4495
4598
  "pushEnabled": n => { notificationResponse.pushEnabled = n.getBooleanValue(); },
4496
4599
  "readAt": n => { notificationResponse.readAt = n.getDateValue(); },
@@ -5447,6 +5550,7 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
5447
5550
  "isDemo": n => { phoneCallResponse.isDemo = n.getBooleanValue(); },
5448
5551
  "leadId": n => { phoneCallResponse.leadId = n.getStringValue(); },
5449
5552
  "modifiedAt": n => { phoneCallResponse.modifiedAt = n.getDateValue(); },
5553
+ "organizationId": n => { phoneCallResponse.organizationId = n.getStringValue(); },
5450
5554
  "phoneNumber": n => { phoneCallResponse.phoneNumber = n.getStringValue(); },
5451
5555
  "queuedAt": n => { phoneCallResponse.queuedAt = n.getDateValue(); },
5452
5556
  "ringingAt": n => { phoneCallResponse.ringingAt = n.getDateValue(); },
@@ -7282,6 +7386,22 @@ export function serializeAnalyticsComparison(writer, analyticsComparison = {}, i
7282
7386
  writer.writeNumberValue("previous", analyticsComparison.previous);
7283
7387
  writer.writeAdditionalData(analyticsComparison.additionalData);
7284
7388
  }
7389
+ /**
7390
+ * Serializes information the current object
7391
+ * @param AnalyticsCoverage The instance to serialize from.
7392
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7393
+ * @param writer Serialization writer to use to serialize this model
7394
+ */
7395
+ // @ts-ignore
7396
+ export function serializeAnalyticsCoverage(writer, analyticsCoverage = {}, isSerializingDerivedType = false) {
7397
+ if (!analyticsCoverage || isSerializingDerivedType) {
7398
+ return;
7399
+ }
7400
+ writer.writeDateValue("completeFrom", analyticsCoverage.completeFrom);
7401
+ writer.writeStringValue("detail", analyticsCoverage.detail);
7402
+ writer.writeBooleanValue("isPartial", analyticsCoverage.isPartial);
7403
+ writer.writeAdditionalData(analyticsCoverage.additionalData);
7404
+ }
7285
7405
  /**
7286
7406
  * Serializes information the current object
7287
7407
  * @param AnalyticsDateRange The instance to serialize from.
@@ -7483,6 +7603,24 @@ export function serializeAutomationConsoleResponse(writer, automationConsoleResp
7483
7603
  writer.writeCollectionOfObjectValues("runs", automationConsoleResponse.runs, serializeAutomationWorkflowRunResponse);
7484
7604
  writer.writeAdditionalData(automationConsoleResponse.additionalData);
7485
7605
  }
7606
+ /**
7607
+ * Serializes information the current object
7608
+ * @param AutomationLineage The instance to serialize from.
7609
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7610
+ * @param writer Serialization writer to use to serialize this model
7611
+ */
7612
+ // @ts-ignore
7613
+ export function serializeAutomationLineage(writer, automationLineage = {}, isSerializingDerivedType = false) {
7614
+ if (!automationLineage || isSerializingDerivedType) {
7615
+ return;
7616
+ }
7617
+ writer.writeStringValue("actionId", automationLineage.actionId);
7618
+ writer.writeCollectionOfPrimitiveValues("automationIds", automationLineage.automationIds);
7619
+ writer.writeStringValue("rootEventId", automationLineage.rootEventId);
7620
+ writer.writeStringValue("runId", automationLineage.runId);
7621
+ writer.writeStringValue("triggerEventId", automationLineage.triggerEventId);
7622
+ writer.writeAdditionalData(automationLineage.additionalData);
7623
+ }
7486
7624
  /**
7487
7625
  * Serializes information the current object
7488
7626
  * @param AutomationPreviewActionResult The instance to serialize from.
@@ -7692,6 +7830,7 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
7692
7830
  }
7693
7831
  writer.writeCollectionOfObjectValues("actions", automationRunRecord.actions, serializeAutomationActionRunRecord);
7694
7832
  writer.writeStringValue("automationId", automationRunRecord.automationId);
7833
+ writer.writeObjectValue("automationLineage", automationRunRecord.automationLineage, serializeAutomationRunRecord_automationLineage);
7695
7834
  writer.writeDateValue("completedAt", automationRunRecord.completedAt);
7696
7835
  writer.writeObjectValue("conditionResults", automationRunRecord.conditionResults, serializeAutomationRunRecord_conditionResults);
7697
7836
  writer.writeStringValue("executionMode", automationRunRecord.executionMode);
@@ -7708,6 +7847,19 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
7708
7847
  writer.writeStringValue("triggerType", automationRunRecord.triggerType);
7709
7848
  writer.writeAdditionalData(automationRunRecord.additionalData);
7710
7849
  }
7850
+ /**
7851
+ * Serializes information the current object
7852
+ * @param AutomationRunRecord_automationLineage The instance to serialize from.
7853
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7854
+ * @param writer Serialization writer to use to serialize this model
7855
+ */
7856
+ // @ts-ignore
7857
+ export function serializeAutomationRunRecord_automationLineage(writer, automationRunRecord_automationLineage = {}, isSerializingDerivedType = false) {
7858
+ if (!automationRunRecord_automationLineage || isSerializingDerivedType) {
7859
+ return;
7860
+ }
7861
+ serializeAutomationLineage(writer, automationRunRecord_automationLineage, isSerializingDerivedType);
7862
+ }
7711
7863
  /**
7712
7864
  * Serializes information the current object
7713
7865
  * @param AutomationRunRecord_conditionResults The instance to serialize from.
@@ -8175,6 +8327,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
8175
8327
  writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
8176
8328
  writer.writeObjectValue("currentLeadStatus", conversationResponse.currentLeadStatus, serializeConversationResponse_currentLeadStatus);
8177
8329
  writer.writeStringValue("email", conversationResponse.email);
8330
+ writer.writeNumberValue("eventVersion", conversationResponse.eventVersion);
8178
8331
  writer.writeStringValue("firstName", conversationResponse.firstName);
8179
8332
  writer.writeStringValue("id", conversationResponse.id);
8180
8333
  writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
@@ -8264,8 +8417,11 @@ export function serializeCurrentLeadStatusSummary(writer, currentLeadStatusSumma
8264
8417
  writer.writeStringValue("changedByAutomationId", currentLeadStatusSummary.changedByAutomationId);
8265
8418
  writer.writeStringValue("changedByUserId", currentLeadStatusSummary.changedByUserId);
8266
8419
  writer.writeStringValue("displayName", currentLeadStatusSummary.displayName);
8420
+ writer.writeDateValue("followUpCompletedAt", currentLeadStatusSummary.followUpCompletedAt);
8421
+ writer.writeDateValue("followUpDueAt", currentLeadStatusSummary.followUpDueAt);
8267
8422
  writer.writeStringValue("id", currentLeadStatusSummary.id);
8268
8423
  writer.writeStringValue("outcome", currentLeadStatusSummary.outcome);
8424
+ writer.writeNumberValue("revision", currentLeadStatusSummary.revision);
8269
8425
  writer.writeEnumValue("source", currentLeadStatusSummary.source);
8270
8426
  writer.writeAdditionalData(currentLeadStatusSummary.additionalData);
8271
8427
  }
@@ -8377,6 +8533,7 @@ export function serializeCustomerAutomationHealth(writer, customerAutomationHeal
8377
8533
  return;
8378
8534
  }
8379
8535
  writer.writeNumberValue("automationCount", customerAutomationHealth.automationCount);
8536
+ writer.writeObjectValue("coverage", customerAutomationHealth.coverage, serializeAnalyticsCoverage);
8380
8537
  writer.writeNumberValue("enabledCount", customerAutomationHealth.enabledCount);
8381
8538
  writer.writeNumberValue("executions", customerAutomationHealth.executions);
8382
8539
  writer.writeCollectionOfObjectValues("failingAutomations", customerAutomationHealth.failingAutomations, serializeCustomerFailingAutomation);
@@ -8741,6 +8898,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8741
8898
  writer.writeStringValue("toPhoneNumber", eventTableRow.toPhoneNumber);
8742
8899
  writer.writeEnumValue("trafficType", eventTableRow.trafficType);
8743
8900
  writer.writeDateValue("undeliverableAt", eventTableRow.undeliverableAt);
8901
+ writer.writeStringValue("voicemailUrl", eventTableRow.voicemailUrl);
8744
8902
  writer.writeBooleanValue("wasManuallyOverridden", eventTableRow.wasManuallyOverridden);
8745
8903
  writer.writeAdditionalData(eventTableRow.additionalData);
8746
8904
  }
@@ -8958,6 +9116,22 @@ export function serializeLeadContact_streetAddress(writer, leadContact_streetAdd
8958
9116
  }
8959
9117
  serializeStreetAddress(writer, leadContact_streetAddress, isSerializingDerivedType);
8960
9118
  }
9119
+ /**
9120
+ * Serializes information the current object
9121
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9122
+ * @param LeadFollowUpUpdateRequest The instance to serialize from.
9123
+ * @param writer Serialization writer to use to serialize this model
9124
+ */
9125
+ // @ts-ignore
9126
+ export function serializeLeadFollowUpUpdateRequest(writer, leadFollowUpUpdateRequest = {}, isSerializingDerivedType = false) {
9127
+ if (!leadFollowUpUpdateRequest || isSerializingDerivedType) {
9128
+ return;
9129
+ }
9130
+ writer.writeDateValue("dueAt", leadFollowUpUpdateRequest.dueAt);
9131
+ writer.writeNumberValue("expectedRevision", leadFollowUpUpdateRequest.expectedRevision);
9132
+ writer.writeStringValue("expectedStatusId", leadFollowUpUpdateRequest.expectedStatusId);
9133
+ writer.writeAdditionalData(leadFollowUpUpdateRequest.additionalData);
9134
+ }
8961
9135
  /**
8962
9136
  * Serializes information the current object
8963
9137
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9291,6 +9465,9 @@ export function serializeLeadStatusChangeRequest(writer, leadStatusChangeRequest
9291
9465
  writer.writeDateValue("appointmentStartAt", leadStatusChangeRequest.appointmentStartAt);
9292
9466
  writer.writeDateValue("callbackAt", leadStatusChangeRequest.callbackAt);
9293
9467
  writer.writeEnumValue("category", leadStatusChangeRequest.category);
9468
+ writer.writeBooleanValue("completeFollowUp", leadStatusChangeRequest.completeFollowUp);
9469
+ writer.writeStringValue("expectedCurrentStatusId", leadStatusChangeRequest.expectedCurrentStatusId);
9470
+ writer.writeNumberValue("expectedRevision", leadStatusChangeRequest.expectedRevision);
9294
9471
  writer.writeStringValue("followUpStatus", leadStatusChangeRequest.followUpStatus);
9295
9472
  writer.writeStringValue("notes", leadStatusChangeRequest.notes);
9296
9473
  writer.writeStringValue("outcome", leadStatusChangeRequest.outcome);
@@ -9321,6 +9498,7 @@ export function serializeLeadStatusChangeResponse(writer, leadStatusChangeRespon
9321
9498
  writer.writeStringValue("changedByUserId", leadStatusChangeResponse.changedByUserId);
9322
9499
  writer.writeEnumValue("changeSource", leadStatusChangeResponse.changeSource);
9323
9500
  writer.writeDateValue("createdAt", leadStatusChangeResponse.createdAt);
9501
+ writer.writeDateValue("followUpCompletedAt", leadStatusChangeResponse.followUpCompletedAt);
9324
9502
  writer.writeStringValue("followUpStatus", leadStatusChangeResponse.followUpStatus);
9325
9503
  writer.writeStringValue("id", leadStatusChangeResponse.id);
9326
9504
  writer.writeBooleanValue("isDemo", leadStatusChangeResponse.isDemo);
@@ -9337,6 +9515,7 @@ export function serializeLeadStatusChangeResponse(writer, leadStatusChangeRespon
9337
9515
  writer.writeStringValue("outcome", leadStatusChangeResponse.outcome);
9338
9516
  writer.writeStringValue("reason", leadStatusChangeResponse.reason);
9339
9517
  writer.writeStringValue("relatedCallEventId", leadStatusChangeResponse.relatedCallEventId);
9518
+ writer.writeNumberValue("revision", leadStatusChangeResponse.revision);
9340
9519
  writer.writeStringValue("sourceId", leadStatusChangeResponse.sourceId);
9341
9520
  writer.writeDateValue("taskDueAt", leadStatusChangeResponse.taskDueAt);
9342
9521
  writer.writeDateValue("timestamp", leadStatusChangeResponse.timestamp);
@@ -9538,14 +9717,17 @@ export function serializeNotificationResponse(writer, notificationResponse = {},
9538
9717
  }
9539
9718
  writer.writeStringValue("actionButtonText", notificationResponse.actionButtonText);
9540
9719
  writer.writeStringValue("actionUrl", notificationResponse.actionUrl);
9720
+ writer.writeStringValue("conversationId", notificationResponse.conversationId);
9541
9721
  writer.writeDateValue("createdAt", notificationResponse.createdAt);
9542
9722
  writer.writeStringValue("details", notificationResponse.details);
9543
9723
  writer.writeStringValue("id", notificationResponse.id);
9544
9724
  writer.writeBooleanValue("isDemo", notificationResponse.isDemo);
9545
9725
  writer.writeBooleanValue("isRead", notificationResponse.isRead);
9726
+ writer.writeStringValue("leadId", notificationResponse.leadId);
9546
9727
  writer.writeStringValue("message", notificationResponse.message);
9547
9728
  writer.writeDateValue("modifiedAt", notificationResponse.modifiedAt);
9548
9729
  writer.writeStringValue("name", notificationResponse.name);
9730
+ writer.writeStringValue("organizationId", notificationResponse.organizationId);
9549
9731
  writer.writeEnumValue("priority", notificationResponse.priority);
9550
9732
  writer.writeBooleanValue("pushEnabled", notificationResponse.pushEnabled);
9551
9733
  writer.writeDateValue("readAt", notificationResponse.readAt);
@@ -10655,6 +10837,7 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
10655
10837
  writer.writeBooleanValue("isDemo", phoneCallResponse.isDemo);
10656
10838
  writer.writeStringValue("leadId", phoneCallResponse.leadId);
10657
10839
  writer.writeDateValue("modifiedAt", phoneCallResponse.modifiedAt);
10840
+ writer.writeStringValue("organizationId", phoneCallResponse.organizationId);
10658
10841
  writer.writeStringValue("phoneNumber", phoneCallResponse.phoneNumber);
10659
10842
  writer.writeDateValue("queuedAt", phoneCallResponse.queuedAt);
10660
10843
  writer.writeDateValue("ringingAt", phoneCallResponse.ringingAt);