@leadping/sdk 1.0.140 → 1.0.142

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.
@@ -1254,6 +1254,15 @@ export function createLeadResponse_inquiryFromDiscriminatorValue(parseNode) {
1254
1254
  export function createLeadResponse_phoneIdentityFromDiscriminatorValue(parseNode) {
1255
1255
  return deserializeIntoLeadResponse_phoneIdentity;
1256
1256
  }
1257
+ /**
1258
+ * Creates a new instance of the appropriate class based on discriminator value
1259
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1260
+ * @returns {LeadResponse_possibleDuplicate}
1261
+ */
1262
+ // @ts-ignore
1263
+ export function createLeadResponse_possibleDuplicateFromDiscriminatorValue(parseNode) {
1264
+ return deserializeIntoLeadResponse_possibleDuplicate;
1265
+ }
1257
1266
  /**
1258
1267
  * Creates a new instance of the appropriate class based on discriminator value
1259
1268
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2325,6 +2334,15 @@ export function createPhoneNumberTrafficMetricsResponseFromDiscriminatorValue(pa
2325
2334
  export function createPhoneNumberTrafficTrendPointFromDiscriminatorValue(parseNode) {
2326
2335
  return deserializeIntoPhoneNumberTrafficTrendPoint;
2327
2336
  }
2337
+ /**
2338
+ * Creates a new instance of the appropriate class based on discriminator value
2339
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2340
+ * @returns {PossibleDuplicateLead}
2341
+ */
2342
+ // @ts-ignore
2343
+ export function createPossibleDuplicateLeadFromDiscriminatorValue(parseNode) {
2344
+ return deserializeIntoPossibleDuplicateLead;
2345
+ }
2328
2346
  /**
2329
2347
  * Creates a new instance of the appropriate class based on discriminator value
2330
2348
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3459,6 +3477,7 @@ export function deserializeIntoAutomationResponse(automationResponse = {}) {
3459
3477
  "name": n => { automationResponse.name = n.getStringValue(); },
3460
3478
  "organization": n => { automationResponse.organization = n.getObjectValue(createAutomationResponse_organizationFromDiscriminatorValue); },
3461
3479
  "organizationId": n => { automationResponse.organizationId = n.getStringValue(); },
3480
+ "scheduleStartedAt": n => { automationResponse.scheduleStartedAt = n.getDateValue(); },
3462
3481
  "scope": n => { automationResponse.scope = n.getStringValue(); },
3463
3482
  "timeZoneId": n => { automationResponse.timeZoneId = n.getStringValue(); },
3464
3483
  "triggers": n => { automationResponse.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
@@ -4641,6 +4660,8 @@ export function deserializeIntoIdNameValue(idNameValue = {}) {
4641
4660
  // @ts-ignore
4642
4661
  export function deserializeIntoIncomingCallerResponse(incomingCallerResponse = {}) {
4643
4662
  return {
4663
+ "leadAvatarUrl": n => { incomingCallerResponse.leadAvatarUrl = n.getStringValue(); },
4664
+ "leadEmail": n => { incomingCallerResponse.leadEmail = n.getStringValue(); },
4644
4665
  "leadId": n => { incomingCallerResponse.leadId = n.getStringValue(); },
4645
4666
  "leadName": n => { incomingCallerResponse.leadName = n.getStringValue(); },
4646
4667
  };
@@ -5227,6 +5248,7 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
5227
5248
  "metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
5228
5249
  "modifiedAt": n => { leadResponse.modifiedAt = n.getDateValue(); },
5229
5250
  "phoneIdentity": n => { leadResponse.phoneIdentity = n.getObjectValue(createLeadResponse_phoneIdentityFromDiscriminatorValue); },
5251
+ "possibleDuplicate": n => { leadResponse.possibleDuplicate = n.getObjectValue(createLeadResponse_possibleDuplicateFromDiscriminatorValue); },
5230
5252
  "processingStatus": n => { leadResponse.processingStatus = n.getEnumValue(LeadResponse_processingStatusObject); },
5231
5253
  "processingStatusChangedAt": n => { leadResponse.processingStatusChangedAt = n.getDateValue(); },
5232
5254
  "processingStatusReason": n => { leadResponse.processingStatusReason = n.getStringValue(); },
@@ -5310,6 +5332,17 @@ export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIden
5310
5332
  ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
5311
5333
  };
5312
5334
  }
5335
+ /**
5336
+ * The deserialization information for the current model
5337
+ * @param LeadResponse_possibleDuplicate The instance to deserialize into.
5338
+ * @returns {Record<string, (node: ParseNode) => void>}
5339
+ */
5340
+ // @ts-ignore
5341
+ export function deserializeIntoLeadResponse_possibleDuplicate(leadResponse_possibleDuplicate = {}) {
5342
+ return {
5343
+ ...deserializeIntoPossibleDuplicateLead(leadResponse_possibleDuplicate),
5344
+ };
5345
+ }
5313
5346
  /**
5314
5347
  * The deserialization information for the current model
5315
5348
  * @param LeadResponse_profile The instance to deserialize into.
@@ -6102,10 +6135,14 @@ export function deserializeIntoOrganizationRequest(organizationRequest = {}) {
6102
6135
  "automaticallyMarkLeadsMessaged": n => { organizationRequest.automaticallyMarkLeadsMessaged = n.getBooleanValue(); },
6103
6136
  "calledLeadStatusId": n => { organizationRequest.calledLeadStatusId = n.getStringValue(); },
6104
6137
  "description": n => { organizationRequest.description = n.getStringValue(); },
6138
+ "duplicateLeadLookbackDays": n => { organizationRequest.duplicateLeadLookbackDays = n.getNumberValue(); },
6105
6139
  "ein": n => { organizationRequest.ein = n.getStringValue(); },
6106
6140
  "isYoungerThan90": n => { organizationRequest.isYoungerThan90 = n.getBooleanValue(); },
6107
6141
  "messagedLeadStatusId": n => { organizationRequest.messagedLeadStatusId = n.getStringValue(); },
6108
6142
  "name": n => { organizationRequest.name = n.getStringValue(); },
6143
+ "nextCallExcludedStatusIds": n => { organizationRequest.nextCallExcludedStatusIds = n.getCollectionOfPrimitiveValues("string"); },
6144
+ "nextCallExcludedTagIds": n => { organizationRequest.nextCallExcludedTagIds = n.getCollectionOfPrimitiveValues("string"); },
6145
+ "nextCallIncludedStatusIds": n => { organizationRequest.nextCallIncludedStatusIds = n.getCollectionOfPrimitiveValues("string"); },
6109
6146
  "offer": n => { organizationRequest.offer = n.getStringValue(); },
6110
6147
  "phone": n => { organizationRequest.phone = n.getStringValue(); },
6111
6148
  "secondaryName": n => { organizationRequest.secondaryName = n.getStringValue(); },
@@ -6155,6 +6192,7 @@ export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
6155
6192
  "createdAt": n => { organizationResponse.createdAt = n.getDateValue(); },
6156
6193
  "description": n => { organizationResponse.description = n.getStringValue(); },
6157
6194
  "domain": n => { organizationResponse.domain = n.getStringValue(); },
6195
+ "duplicateLeadLookbackDays": n => { organizationResponse.duplicateLeadLookbackDays = n.getNumberValue(); },
6158
6196
  "ein": n => { organizationResponse.ein = n.getStringValue(); },
6159
6197
  "einDocument": n => { organizationResponse.einDocument = n.getObjectValue(createOrganizationResponse_einDocumentFromDiscriminatorValue); },
6160
6198
  "enabled": n => { organizationResponse.enabled = n.getBooleanValue(); },
@@ -6163,6 +6201,9 @@ export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
6163
6201
  "messagedLeadStatusId": n => { organizationResponse.messagedLeadStatusId = n.getStringValue(); },
6164
6202
  "modifiedAt": n => { organizationResponse.modifiedAt = n.getDateValue(); },
6165
6203
  "name": n => { organizationResponse.name = n.getStringValue(); },
6204
+ "nextCallExcludedStatusIds": n => { organizationResponse.nextCallExcludedStatusIds = n.getCollectionOfPrimitiveValues("string"); },
6205
+ "nextCallExcludedTagIds": n => { organizationResponse.nextCallExcludedTagIds = n.getCollectionOfPrimitiveValues("string"); },
6206
+ "nextCallIncludedStatusIds": n => { organizationResponse.nextCallIncludedStatusIds = n.getCollectionOfPrimitiveValues("string"); },
6166
6207
  "phone": n => { organizationResponse.phone = n.getStringValue(); },
6167
6208
  "phones": n => { organizationResponse.phones = n.getCollectionOfObjectValues(createIdNameValueFromDiscriminatorValue); },
6168
6209
  "secondaryName": n => { organizationResponse.secondaryName = n.getStringValue(); },
@@ -6342,6 +6383,7 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
6342
6383
  "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getNumberValue(); },
6343
6384
  "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
6344
6385
  "smsMinutelyResetsAt": n => { outboundPhoneNumberCapacity.smsMinutelyResetsAt = n.getDateValue(); },
6386
+ "smsNextSlotAt": n => { outboundPhoneNumberCapacity.smsNextSlotAt = n.getDateValue(); },
6345
6387
  "smsRampDirection": n => { outboundPhoneNumberCapacity.smsRampDirection = n.getEnumValue(OutboundPhoneNumberCapacity_smsRampDirectionObject); },
6346
6388
  "smsRamping": n => { outboundPhoneNumberCapacity.smsRamping = n.getBooleanValue(); },
6347
6389
  "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
@@ -6356,6 +6398,7 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
6356
6398
  "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getNumberValue(); },
6357
6399
  "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
6358
6400
  "voiceMinutelyResetsAt": n => { outboundPhoneNumberCapacity.voiceMinutelyResetsAt = n.getDateValue(); },
6401
+ "voiceNextSlotAt": n => { outboundPhoneNumberCapacity.voiceNextSlotAt = n.getDateValue(); },
6359
6402
  "voiceRampDirection": n => { outboundPhoneNumberCapacity.voiceRampDirection = n.getEnumValue(OutboundPhoneNumberCapacity_voiceRampDirectionObject); },
6360
6403
  "voiceRamping": n => { outboundPhoneNumberCapacity.voiceRamping = n.getBooleanValue(); },
6361
6404
  "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
@@ -7279,6 +7322,19 @@ export function deserializeIntoPhoneNumberTrafficTrendPoint(phoneNumberTrafficTr
7279
7322
  "startAt": n => { phoneNumberTrafficTrendPoint.startAt = n.getDateValue(); },
7280
7323
  };
7281
7324
  }
7325
+ /**
7326
+ * The deserialization information for the current model
7327
+ * @param PossibleDuplicateLead The instance to deserialize into.
7328
+ * @returns {Record<string, (node: ParseNode) => void>}
7329
+ */
7330
+ // @ts-ignore
7331
+ export function deserializeIntoPossibleDuplicateLead(possibleDuplicateLead = {}) {
7332
+ return {
7333
+ "leadId": n => { possibleDuplicateLead.leadId = n.getStringValue(); },
7334
+ "receivedAt": n => { possibleDuplicateLead.receivedAt = n.getDateValue(); },
7335
+ "sourceName": n => { possibleDuplicateLead.sourceName = n.getStringValue(); },
7336
+ };
7337
+ }
7282
7338
  /**
7283
7339
  * The deserialization information for the current model
7284
7340
  * @param ProblemDetails The instance to deserialize into.
@@ -9154,6 +9210,7 @@ export function serializeAutomationResponse(writer, automationResponse = {}, isS
9154
9210
  writer.writeStringValue("name", automationResponse.name);
9155
9211
  writer.writeObjectValue("organization", automationResponse.organization, serializeAutomationResponse_organization);
9156
9212
  writer.writeStringValue("organizationId", automationResponse.organizationId);
9213
+ writer.writeDateValue("scheduleStartedAt", automationResponse.scheduleStartedAt);
9157
9214
  writer.writeStringValue("scope", automationResponse.scope);
9158
9215
  writer.writeStringValue("timeZoneId", automationResponse.timeZoneId);
9159
9216
  writer.writeCollectionOfObjectValues("triggers", automationResponse.triggers, serializeAutomationTrigger);
@@ -10513,6 +10570,8 @@ export function serializeIncomingCallerResponse(writer, incomingCallerResponse =
10513
10570
  if (!incomingCallerResponse || isSerializingDerivedType) {
10514
10571
  return;
10515
10572
  }
10573
+ writer.writeStringValue("leadAvatarUrl", incomingCallerResponse.leadAvatarUrl);
10574
+ writer.writeStringValue("leadEmail", incomingCallerResponse.leadEmail);
10516
10575
  writer.writeStringValue("leadId", incomingCallerResponse.leadId);
10517
10576
  writer.writeStringValue("leadName", incomingCallerResponse.leadName);
10518
10577
  writer.writeAdditionalData(incomingCallerResponse.additionalData);
@@ -11200,6 +11259,7 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
11200
11259
  writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
11201
11260
  writer.writeDateValue("modifiedAt", leadResponse.modifiedAt);
11202
11261
  writer.writeObjectValue("phoneIdentity", leadResponse.phoneIdentity, serializeLeadResponse_phoneIdentity);
11262
+ writer.writeObjectValue("possibleDuplicate", leadResponse.possibleDuplicate, serializeLeadResponse_possibleDuplicate);
11203
11263
  writer.writeEnumValue("processingStatus", leadResponse.processingStatus);
11204
11264
  writer.writeDateValue("processingStatusChangedAt", leadResponse.processingStatusChangedAt);
11205
11265
  writer.writeStringValue("processingStatusReason", leadResponse.processingStatusReason);
@@ -11299,6 +11359,19 @@ export function serializeLeadResponse_phoneIdentity(writer, leadResponse_phoneId
11299
11359
  }
11300
11360
  serializePhoneIdentityResponse(writer, leadResponse_phoneIdentity, isSerializingDerivedType);
11301
11361
  }
11362
+ /**
11363
+ * Serializes information the current object
11364
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11365
+ * @param LeadResponse_possibleDuplicate The instance to serialize from.
11366
+ * @param writer Serialization writer to use to serialize this model
11367
+ */
11368
+ // @ts-ignore
11369
+ export function serializeLeadResponse_possibleDuplicate(writer, leadResponse_possibleDuplicate = {}, isSerializingDerivedType = false) {
11370
+ if (!leadResponse_possibleDuplicate || isSerializingDerivedType) {
11371
+ return;
11372
+ }
11373
+ serializePossibleDuplicateLead(writer, leadResponse_possibleDuplicate, isSerializingDerivedType);
11374
+ }
11302
11375
  /**
11303
11376
  * Serializes information the current object
11304
11377
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -12211,10 +12284,14 @@ export function serializeOrganizationRequest(writer, organizationRequest = {}, i
12211
12284
  writer.writeBooleanValue("automaticallyMarkLeadsMessaged", organizationRequest.automaticallyMarkLeadsMessaged);
12212
12285
  writer.writeStringValue("calledLeadStatusId", organizationRequest.calledLeadStatusId);
12213
12286
  writer.writeStringValue("description", organizationRequest.description);
12287
+ writer.writeNumberValue("duplicateLeadLookbackDays", organizationRequest.duplicateLeadLookbackDays);
12214
12288
  writer.writeStringValue("ein", organizationRequest.ein);
12215
12289
  writer.writeBooleanValue("isYoungerThan90", organizationRequest.isYoungerThan90);
12216
12290
  writer.writeStringValue("messagedLeadStatusId", organizationRequest.messagedLeadStatusId);
12217
12291
  writer.writeStringValue("name", organizationRequest.name);
12292
+ writer.writeCollectionOfPrimitiveValues("nextCallExcludedStatusIds", organizationRequest.nextCallExcludedStatusIds);
12293
+ writer.writeCollectionOfPrimitiveValues("nextCallExcludedTagIds", organizationRequest.nextCallExcludedTagIds);
12294
+ writer.writeCollectionOfPrimitiveValues("nextCallIncludedStatusIds", organizationRequest.nextCallIncludedStatusIds);
12218
12295
  writer.writeStringValue("offer", organizationRequest.offer);
12219
12296
  writer.writeStringValue("phone", organizationRequest.phone);
12220
12297
  writer.writeStringValue("secondaryName", organizationRequest.secondaryName);
@@ -12269,6 +12346,7 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
12269
12346
  writer.writeDateValue("createdAt", organizationResponse.createdAt);
12270
12347
  writer.writeStringValue("description", organizationResponse.description);
12271
12348
  writer.writeStringValue("domain", organizationResponse.domain);
12349
+ writer.writeNumberValue("duplicateLeadLookbackDays", organizationResponse.duplicateLeadLookbackDays);
12272
12350
  writer.writeStringValue("ein", organizationResponse.ein);
12273
12351
  writer.writeObjectValue("einDocument", organizationResponse.einDocument, serializeOrganizationResponse_einDocument);
12274
12352
  writer.writeBooleanValue("enabled", organizationResponse.enabled);
@@ -12277,6 +12355,9 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
12277
12355
  writer.writeStringValue("messagedLeadStatusId", organizationResponse.messagedLeadStatusId);
12278
12356
  writer.writeDateValue("modifiedAt", organizationResponse.modifiedAt);
12279
12357
  writer.writeStringValue("name", organizationResponse.name);
12358
+ writer.writeCollectionOfPrimitiveValues("nextCallExcludedStatusIds", organizationResponse.nextCallExcludedStatusIds);
12359
+ writer.writeCollectionOfPrimitiveValues("nextCallExcludedTagIds", organizationResponse.nextCallExcludedTagIds);
12360
+ writer.writeCollectionOfPrimitiveValues("nextCallIncludedStatusIds", organizationResponse.nextCallIncludedStatusIds);
12280
12361
  writer.writeStringValue("phone", organizationResponse.phone);
12281
12362
  writer.writeCollectionOfObjectValues("phones", organizationResponse.phones, serializeIdNameValue);
12282
12363
  writer.writeStringValue("secondaryName", organizationResponse.secondaryName);
@@ -12484,6 +12565,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
12484
12565
  writer.writeNumberValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
12485
12566
  writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
12486
12567
  writer.writeDateValue("smsMinutelyResetsAt", outboundPhoneNumberCapacity.smsMinutelyResetsAt);
12568
+ writer.writeDateValue("smsNextSlotAt", outboundPhoneNumberCapacity.smsNextSlotAt);
12487
12569
  writer.writeEnumValue("smsRampDirection", outboundPhoneNumberCapacity.smsRampDirection);
12488
12570
  writer.writeBooleanValue("smsRamping", outboundPhoneNumberCapacity.smsRamping);
12489
12571
  writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
@@ -12498,6 +12580,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
12498
12580
  writer.writeNumberValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
12499
12581
  writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
12500
12582
  writer.writeDateValue("voiceMinutelyResetsAt", outboundPhoneNumberCapacity.voiceMinutelyResetsAt);
12583
+ writer.writeDateValue("voiceNextSlotAt", outboundPhoneNumberCapacity.voiceNextSlotAt);
12501
12584
  writer.writeEnumValue("voiceRampDirection", outboundPhoneNumberCapacity.voiceRampDirection);
12502
12585
  writer.writeBooleanValue("voiceRamping", outboundPhoneNumberCapacity.voiceRamping);
12503
12586
  writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
@@ -13587,6 +13670,22 @@ export function serializePhoneNumberTrafficTrendPoint(writer, phoneNumberTraffic
13587
13670
  writer.writeDateValue("startAt", phoneNumberTrafficTrendPoint.startAt);
13588
13671
  writer.writeAdditionalData(phoneNumberTrafficTrendPoint.additionalData);
13589
13672
  }
13673
+ /**
13674
+ * Serializes information the current object
13675
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
13676
+ * @param PossibleDuplicateLead The instance to serialize from.
13677
+ * @param writer Serialization writer to use to serialize this model
13678
+ */
13679
+ // @ts-ignore
13680
+ export function serializePossibleDuplicateLead(writer, possibleDuplicateLead = {}, isSerializingDerivedType = false) {
13681
+ if (!possibleDuplicateLead || isSerializingDerivedType) {
13682
+ return;
13683
+ }
13684
+ writer.writeStringValue("leadId", possibleDuplicateLead.leadId);
13685
+ writer.writeDateValue("receivedAt", possibleDuplicateLead.receivedAt);
13686
+ writer.writeStringValue("sourceName", possibleDuplicateLead.sourceName);
13687
+ writer.writeAdditionalData(possibleDuplicateLead.additionalData);
13688
+ }
13590
13689
  /**
13591
13690
  * Serializes information the current object
13592
13691
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.