@leadping/sdk 1.0.128 → 1.0.130

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 (60) hide show
  1. package/dist/appointments/bookedTimes/index.d.ts +3 -3
  2. package/dist/appointments/index.d.ts +5 -5
  3. package/dist/appointments/item/cancel/index.d.ts +2 -2
  4. package/dist/appointments/item/complete/index.d.ts +2 -2
  5. package/dist/appointments/item/dismiss/index.d.ts +2 -2
  6. package/dist/appointments/item/index.d.ts +4 -4
  7. package/dist/appointments/item/snooze/index.d.ts +2 -2
  8. package/dist/automations/index.d.ts +5 -0
  9. package/dist/automations/index.d.ts.map +1 -1
  10. package/dist/automations/index.js +5 -0
  11. package/dist/automations/index.js.map +1 -1
  12. package/dist/automations/item/index.d.ts +10 -0
  13. package/dist/automations/item/index.d.ts.map +1 -1
  14. package/dist/automations/item/index.js +10 -0
  15. package/dist/automations/item/index.js.map +1 -1
  16. package/dist/automations/item/leads/index.d.ts +22 -0
  17. package/dist/automations/item/leads/index.d.ts.map +1 -0
  18. package/dist/automations/item/leads/index.js +21 -0
  19. package/dist/automations/item/leads/index.js.map +1 -0
  20. package/dist/automations/item/leads/item/index.d.ts +20 -0
  21. package/dist/automations/item/leads/item/index.d.ts.map +1 -0
  22. package/dist/automations/item/leads/item/index.js +20 -0
  23. package/dist/automations/item/leads/item/index.js.map +1 -0
  24. package/dist/automations/item/leads/item/run/index.d.ts +22 -0
  25. package/dist/automations/item/leads/item/run/index.d.ts.map +1 -0
  26. package/dist/automations/item/leads/item/run/index.js +21 -0
  27. package/dist/automations/item/leads/item/run/index.js.map +1 -0
  28. package/dist/automations/item/leads/item/run/item/index.d.ts +31 -0
  29. package/dist/automations/item/leads/item/run/item/index.d.ts.map +1 -0
  30. package/dist/automations/item/leads/item/run/item/index.js +28 -0
  31. package/dist/automations/item/leads/item/run/item/index.js.map +1 -0
  32. package/dist/automations/item/runForAudience/index.d.ts +33 -0
  33. package/dist/automations/item/runForAudience/index.d.ts.map +1 -0
  34. package/dist/automations/item/runForAudience/index.js +31 -0
  35. package/dist/automations/item/runForAudience/index.js.map +1 -0
  36. package/dist/automations/leadAudience/index.d.ts +31 -0
  37. package/dist/automations/leadAudience/index.d.ts.map +1 -0
  38. package/dist/automations/leadAudience/index.js +28 -0
  39. package/dist/automations/leadAudience/index.js.map +1 -0
  40. package/dist/conversations/item/retry/index.d.ts +2 -2
  41. package/dist/events/conversations/item/notes/item/index.d.ts +2 -2
  42. package/dist/invitations/decline/index.d.ts +2 -2
  43. package/dist/invitations/index.d.ts +3 -3
  44. package/dist/invitations/item/accept/index.d.ts +2 -2
  45. package/dist/invitations/item/decline/index.d.ts +2 -2
  46. package/dist/leads/item/phoneLookup/index.d.ts +2 -2
  47. package/dist/messageTemplates/index.d.ts +4 -4
  48. package/dist/messageTemplates/item/index.d.ts +4 -4
  49. package/dist/models/index.d.ts +109 -1
  50. package/dist/models/index.d.ts.map +1 -1
  51. package/dist/models/index.js +94 -0
  52. package/dist/models/index.js.map +1 -1
  53. package/dist/organizations/apiKeys/item/index.d.ts +2 -2
  54. package/dist/organizations/me/leadAssignees/index.d.ts +2 -2
  55. package/dist/outbound/item/capacity/index.d.ts +2 -2
  56. package/dist/phoneCall/dial/item/index.d.ts +2 -2
  57. package/dist/phoneCall/next/item/index.d.ts +3 -3
  58. package/dist/telephony/availability/index.d.ts +2 -2
  59. package/dist/wallets/me/spendLimits/index.d.ts +2 -2
  60. package/package.json +1 -1
@@ -156,6 +156,15 @@ export function createAutomationActionRunRecord_smsDeliveryFromDiscriminatorValu
156
156
  export function createAutomationActionRunRecordFromDiscriminatorValue(parseNode) {
157
157
  return deserializeIntoAutomationActionRunRecord;
158
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 {AutomationAudienceRequest}
163
+ */
164
+ // @ts-ignore
165
+ export function createAutomationAudienceRequestFromDiscriminatorValue(parseNode) {
166
+ return deserializeIntoAutomationAudienceRequest;
167
+ }
159
168
  /**
160
169
  * Creates a new instance of the appropriate class based on discriminator value
161
170
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -201,6 +210,15 @@ export function createAutomationConnectionFromDiscriminatorValue(parseNode) {
201
210
  export function createAutomationConsoleResponseFromDiscriminatorValue(parseNode) {
202
211
  return deserializeIntoAutomationConsoleResponse;
203
212
  }
213
+ /**
214
+ * Creates a new instance of the appropriate class based on discriminator value
215
+ * @param parseNode The parse node to use to read the discriminator value and create the object
216
+ * @returns {AutomationLeadAudience}
217
+ */
218
+ // @ts-ignore
219
+ export function createAutomationLeadAudienceFromDiscriminatorValue(parseNode) {
220
+ return deserializeIntoAutomationLeadAudience;
221
+ }
204
222
  /**
205
223
  * Creates a new instance of the appropriate class based on discriminator value
206
224
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3198,6 +3216,19 @@ export function deserializeIntoAutomationActionRunRecord_smsDelivery(automationA
3198
3216
  ...deserializeIntoAutomationSmsDeliveryRecord(automationActionRunRecord_smsDelivery),
3199
3217
  };
3200
3218
  }
3219
+ /**
3220
+ * The deserialization information for the current model
3221
+ * @param AutomationAudienceRequest The instance to deserialize into.
3222
+ * @returns {Record<string, (node: ParseNode) => void>}
3223
+ */
3224
+ // @ts-ignore
3225
+ export function deserializeIntoAutomationAudienceRequest(automationAudienceRequest = {}) {
3226
+ return {
3227
+ "audience": n => { automationAudienceRequest.audience = n.getObjectValue(createAutomationLeadAudienceFromDiscriminatorValue); },
3228
+ "excludedLeadIds": n => { automationAudienceRequest.excludedLeadIds = n.getCollectionOfPrimitiveValues("string"); },
3229
+ "requestId": n => { automationAudienceRequest.requestId = n.getGuidValue(); },
3230
+ };
3231
+ }
3201
3232
  /**
3202
3233
  * The deserialization information for the current model
3203
3234
  * @param AutomationCondition The instance to deserialize into.
@@ -3261,6 +3292,21 @@ export function deserializeIntoAutomationConsoleResponse(automationConsoleRespon
3261
3292
  "runs": n => { automationConsoleResponse.runs = n.getCollectionOfObjectValues(createAutomationWorkflowRunResponseFromDiscriminatorValue); },
3262
3293
  };
3263
3294
  }
3295
+ /**
3296
+ * The deserialization information for the current model
3297
+ * @param AutomationLeadAudience The instance to deserialize into.
3298
+ * @returns {Record<string, (node: ParseNode) => void>}
3299
+ */
3300
+ // @ts-ignore
3301
+ export function deserializeIntoAutomationLeadAudience(automationLeadAudience = {}) {
3302
+ return {
3303
+ "assignedToUserId": n => { automationLeadAudience.assignedToUserId = n.getStringValue(); },
3304
+ "count": n => { automationLeadAudience.count = n.getNumberValue(); },
3305
+ "includeDemo": n => { automationLeadAudience.includeDemo = n.getBooleanValue(); },
3306
+ "organizationId": n => { automationLeadAudience.organizationId = n.getStringValue(); },
3307
+ "selectedAt": n => { automationLeadAudience.selectedAt = n.getDateValue(); },
3308
+ };
3309
+ }
3264
3310
  /**
3265
3311
  * The deserialization information for the current model
3266
3312
  * @param AutomationLineage The instance to deserialize into.
@@ -3516,6 +3562,7 @@ export function deserializeIntoAutomationSmsDeliveryRecord(automationSmsDelivery
3516
3562
  export function deserializeIntoAutomationTableRow(automationTableRow = {}) {
3517
3563
  return {
3518
3564
  "actionSummary": n => { automationTableRow.actionSummary = n.getStringValue(); },
3565
+ "canRunForLead": n => { automationTableRow.canRunForLead = n.getBooleanValue(); },
3519
3566
  "conditionSummary": n => { automationTableRow.conditionSummary = n.getStringValue(); },
3520
3567
  "createdByUserId": n => { automationTableRow.createdByUserId = n.getStringValue(); },
3521
3568
  "description": n => { automationTableRow.description = n.getStringValue(); },
@@ -3928,6 +3975,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3928
3975
  "activeOutboundPhoneNumberId": n => { conversationResponse.activeOutboundPhoneNumberId = n.getStringValue(); },
3929
3976
  "archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
3930
3977
  "archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
3978
+ "assignedToUserId": n => { conversationResponse.assignedToUserId = n.getStringValue(); },
3931
3979
  "avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
3932
3980
  "callRetryAt": n => { conversationResponse.callRetryAt = n.getDateValue(); },
3933
3981
  "canCallNow": n => { conversationResponse.canCallNow = n.getBooleanValue(); },
@@ -3950,6 +3998,8 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
3950
3998
  "lastName": n => { conversationResponse.lastName = n.getStringValue(); },
3951
3999
  "lastSnippet": n => { conversationResponse.lastSnippet = n.getStringValue(); },
3952
4000
  "lastSnippetAt": n => { conversationResponse.lastSnippetAt = n.getDateValue(); },
4001
+ "leadCreatedAt": n => { conversationResponse.leadCreatedAt = n.getDateValue(); },
4002
+ "leadEnabled": n => { conversationResponse.leadEnabled = n.getBooleanValue(); },
3953
4003
  "leadId": n => { conversationResponse.leadId = n.getStringValue(); },
3954
4004
  "leadPhoneNumber": n => { conversationResponse.leadPhoneNumber = n.getStringValue(); },
3955
4005
  "needsReply": n => { conversationResponse.needsReply = n.getBooleanValue(); },
@@ -7496,6 +7546,7 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
7496
7546
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
7497
7547
  "description": n => { sourceRequest.description = n.getStringValue(); },
7498
7548
  "name": n => { sourceRequest.name = n.getStringValue(); },
7549
+ "normalizeIncomingData": n => { sourceRequest.normalizeIncomingData = n.getBooleanValue(); },
7499
7550
  "requiresTrustedForm": n => { sourceRequest.requiresTrustedForm = n.getBooleanValue(); },
7500
7551
  };
7501
7552
  }
@@ -7528,6 +7579,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
7528
7579
  "modifiedAt": n => { sourceResponse.modifiedAt = n.getDateValue(); },
7529
7580
  "modifiedByUser": n => { sourceResponse.modifiedByUser = n.getObjectValue(createSourceResponse_modifiedByUserFromDiscriminatorValue); },
7530
7581
  "name": n => { sourceResponse.name = n.getStringValue(); },
7582
+ "normalizeIncomingData": n => { sourceResponse.normalizeIncomingData = n.getBooleanValue(); },
7531
7583
  "organization": n => { sourceResponse.organization = n.getObjectValue(createSourceResponse_organizationFromDiscriminatorValue); },
7532
7584
  "requiresTrustedForm": n => { sourceResponse.requiresTrustedForm = n.getBooleanValue(); },
7533
7585
  "user": n => { sourceResponse.user = n.getObjectValue(createSourceResponse_userFromDiscriminatorValue); },
@@ -7606,6 +7658,7 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
7606
7658
  "modifiedAt": n => { sourceTableRow.modifiedAt = n.getDateValue(); },
7607
7659
  "modifiedByUser": n => { sourceTableRow.modifiedByUser = n.getObjectValue(createSourceTableRow_modifiedByUserFromDiscriminatorValue); },
7608
7660
  "name": n => { sourceTableRow.name = n.getStringValue(); },
7661
+ "normalizeIncomingData": n => { sourceTableRow.normalizeIncomingData = n.getBooleanValue(); },
7609
7662
  "organization": n => { sourceTableRow.organization = n.getObjectValue(createSourceTableRow_organizationFromDiscriminatorValue); },
7610
7663
  "organizationId": n => { sourceTableRow.organizationId = n.getStringValue(); },
7611
7664
  "requiresTrustedForm": n => { sourceTableRow.requiresTrustedForm = n.getBooleanValue(); },
@@ -8795,6 +8848,22 @@ export function serializeAutomationActionRunRecord_smsDelivery(writer, automatio
8795
8848
  }
8796
8849
  serializeAutomationSmsDeliveryRecord(writer, automationActionRunRecord_smsDelivery, isSerializingDerivedType);
8797
8850
  }
8851
+ /**
8852
+ * Serializes information the current object
8853
+ * @param AutomationAudienceRequest The instance to serialize from.
8854
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8855
+ * @param writer Serialization writer to use to serialize this model
8856
+ */
8857
+ // @ts-ignore
8858
+ export function serializeAutomationAudienceRequest(writer, automationAudienceRequest = {}, isSerializingDerivedType = false) {
8859
+ if (!automationAudienceRequest || isSerializingDerivedType) {
8860
+ return;
8861
+ }
8862
+ writer.writeObjectValue("audience", automationAudienceRequest.audience, serializeAutomationLeadAudience);
8863
+ writer.writeCollectionOfPrimitiveValues("excludedLeadIds", automationAudienceRequest.excludedLeadIds);
8864
+ writer.writeGuidValue("requestId", automationAudienceRequest.requestId);
8865
+ writer.writeAdditionalData(automationAudienceRequest.additionalData);
8866
+ }
8798
8867
  /**
8799
8868
  * Serializes information the current object
8800
8869
  * @param AutomationCondition The instance to serialize from.
@@ -8874,6 +8943,24 @@ export function serializeAutomationConsoleResponse(writer, automationConsoleResp
8874
8943
  writer.writeCollectionOfObjectValues("runs", automationConsoleResponse.runs, serializeAutomationWorkflowRunResponse);
8875
8944
  writer.writeAdditionalData(automationConsoleResponse.additionalData);
8876
8945
  }
8946
+ /**
8947
+ * Serializes information the current object
8948
+ * @param AutomationLeadAudience The instance to serialize from.
8949
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8950
+ * @param writer Serialization writer to use to serialize this model
8951
+ */
8952
+ // @ts-ignore
8953
+ export function serializeAutomationLeadAudience(writer, automationLeadAudience = {}, isSerializingDerivedType = false) {
8954
+ if (!automationLeadAudience || isSerializingDerivedType) {
8955
+ return;
8956
+ }
8957
+ writer.writeStringValue("assignedToUserId", automationLeadAudience.assignedToUserId);
8958
+ writer.writeNumberValue("count", automationLeadAudience.count);
8959
+ writer.writeBooleanValue("includeDemo", automationLeadAudience.includeDemo);
8960
+ writer.writeStringValue("organizationId", automationLeadAudience.organizationId);
8961
+ writer.writeDateValue("selectedAt", automationLeadAudience.selectedAt);
8962
+ writer.writeAdditionalData(automationLeadAudience.additionalData);
8963
+ }
8877
8964
  /**
8878
8965
  * Serializes information the current object
8879
8966
  * @param AutomationLineage The instance to serialize from.
@@ -9176,6 +9263,7 @@ export function serializeAutomationTableRow(writer, automationTableRow = {}, isS
9176
9263
  return;
9177
9264
  }
9178
9265
  writer.writeStringValue("actionSummary", automationTableRow.actionSummary);
9266
+ writer.writeBooleanValue("canRunForLead", automationTableRow.canRunForLead);
9179
9267
  writer.writeStringValue("conditionSummary", automationTableRow.conditionSummary);
9180
9268
  writer.writeStringValue("createdByUserId", automationTableRow.createdByUserId);
9181
9269
  writer.writeStringValue("description", automationTableRow.description);
@@ -9652,6 +9740,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9652
9740
  writer.writeStringValue("activeOutboundPhoneNumberId", conversationResponse.activeOutboundPhoneNumberId);
9653
9741
  writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
9654
9742
  writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
9743
+ writer.writeStringValue("assignedToUserId", conversationResponse.assignedToUserId);
9655
9744
  writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
9656
9745
  writer.writeDateValue("callRetryAt", conversationResponse.callRetryAt);
9657
9746
  writer.writeBooleanValue("canCallNow", conversationResponse.canCallNow);
@@ -9674,6 +9763,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
9674
9763
  writer.writeStringValue("lastName", conversationResponse.lastName);
9675
9764
  writer.writeStringValue("lastSnippet", conversationResponse.lastSnippet);
9676
9765
  writer.writeDateValue("lastSnippetAt", conversationResponse.lastSnippetAt);
9766
+ writer.writeDateValue("leadCreatedAt", conversationResponse.leadCreatedAt);
9767
+ writer.writeBooleanValue("leadEnabled", conversationResponse.leadEnabled);
9677
9768
  writer.writeStringValue("leadId", conversationResponse.leadId);
9678
9769
  writer.writeStringValue("leadPhoneNumber", conversationResponse.leadPhoneNumber);
9679
9770
  writer.writeBooleanValue("needsReply", conversationResponse.needsReply);
@@ -13789,6 +13880,7 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
13789
13880
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
13790
13881
  writer.writeStringValue("description", sourceRequest.description);
13791
13882
  writer.writeStringValue("name", sourceRequest.name);
13883
+ writer.writeBooleanValue("normalizeIncomingData", sourceRequest.normalizeIncomingData);
13792
13884
  writer.writeBooleanValue("requiresTrustedForm", sourceRequest.requiresTrustedForm);
13793
13885
  writer.writeAdditionalData(sourceRequest.additionalData);
13794
13886
  }
@@ -13824,6 +13916,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
13824
13916
  writer.writeDateValue("modifiedAt", sourceResponse.modifiedAt);
13825
13917
  writer.writeObjectValue("modifiedByUser", sourceResponse.modifiedByUser, serializeSourceResponse_modifiedByUser);
13826
13918
  writer.writeStringValue("name", sourceResponse.name);
13919
+ writer.writeBooleanValue("normalizeIncomingData", sourceResponse.normalizeIncomingData);
13827
13920
  writer.writeObjectValue("organization", sourceResponse.organization, serializeSourceResponse_organization);
13828
13921
  writer.writeBooleanValue("requiresTrustedForm", sourceResponse.requiresTrustedForm);
13829
13922
  writer.writeObjectValue("user", sourceResponse.user, serializeSourceResponse_user);
@@ -13913,6 +14006,7 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
13913
14006
  writer.writeDateValue("modifiedAt", sourceTableRow.modifiedAt);
13914
14007
  writer.writeObjectValue("modifiedByUser", sourceTableRow.modifiedByUser, serializeSourceTableRow_modifiedByUser);
13915
14008
  writer.writeStringValue("name", sourceTableRow.name);
14009
+ writer.writeBooleanValue("normalizeIncomingData", sourceTableRow.normalizeIncomingData);
13916
14010
  writer.writeObjectValue("organization", sourceTableRow.organization, serializeSourceTableRow_organization);
13917
14011
  writer.writeStringValue("organizationId", sourceTableRow.organizationId);
13918
14012
  writer.writeBooleanValue("requiresTrustedForm", sourceTableRow.requiresTrustedForm);