@leadping/sdk 1.0.140 → 1.0.141

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
@@ -5227,6 +5245,7 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
5227
5245
  "metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
5228
5246
  "modifiedAt": n => { leadResponse.modifiedAt = n.getDateValue(); },
5229
5247
  "phoneIdentity": n => { leadResponse.phoneIdentity = n.getObjectValue(createLeadResponse_phoneIdentityFromDiscriminatorValue); },
5248
+ "possibleDuplicate": n => { leadResponse.possibleDuplicate = n.getObjectValue(createLeadResponse_possibleDuplicateFromDiscriminatorValue); },
5230
5249
  "processingStatus": n => { leadResponse.processingStatus = n.getEnumValue(LeadResponse_processingStatusObject); },
5231
5250
  "processingStatusChangedAt": n => { leadResponse.processingStatusChangedAt = n.getDateValue(); },
5232
5251
  "processingStatusReason": n => { leadResponse.processingStatusReason = n.getStringValue(); },
@@ -5310,6 +5329,17 @@ export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIden
5310
5329
  ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
5311
5330
  };
5312
5331
  }
5332
+ /**
5333
+ * The deserialization information for the current model
5334
+ * @param LeadResponse_possibleDuplicate The instance to deserialize into.
5335
+ * @returns {Record<string, (node: ParseNode) => void>}
5336
+ */
5337
+ // @ts-ignore
5338
+ export function deserializeIntoLeadResponse_possibleDuplicate(leadResponse_possibleDuplicate = {}) {
5339
+ return {
5340
+ ...deserializeIntoPossibleDuplicateLead(leadResponse_possibleDuplicate),
5341
+ };
5342
+ }
5313
5343
  /**
5314
5344
  * The deserialization information for the current model
5315
5345
  * @param LeadResponse_profile The instance to deserialize into.
@@ -6102,6 +6132,7 @@ export function deserializeIntoOrganizationRequest(organizationRequest = {}) {
6102
6132
  "automaticallyMarkLeadsMessaged": n => { organizationRequest.automaticallyMarkLeadsMessaged = n.getBooleanValue(); },
6103
6133
  "calledLeadStatusId": n => { organizationRequest.calledLeadStatusId = n.getStringValue(); },
6104
6134
  "description": n => { organizationRequest.description = n.getStringValue(); },
6135
+ "duplicateLeadLookbackDays": n => { organizationRequest.duplicateLeadLookbackDays = n.getNumberValue(); },
6105
6136
  "ein": n => { organizationRequest.ein = n.getStringValue(); },
6106
6137
  "isYoungerThan90": n => { organizationRequest.isYoungerThan90 = n.getBooleanValue(); },
6107
6138
  "messagedLeadStatusId": n => { organizationRequest.messagedLeadStatusId = n.getStringValue(); },
@@ -6155,6 +6186,7 @@ export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
6155
6186
  "createdAt": n => { organizationResponse.createdAt = n.getDateValue(); },
6156
6187
  "description": n => { organizationResponse.description = n.getStringValue(); },
6157
6188
  "domain": n => { organizationResponse.domain = n.getStringValue(); },
6189
+ "duplicateLeadLookbackDays": n => { organizationResponse.duplicateLeadLookbackDays = n.getNumberValue(); },
6158
6190
  "ein": n => { organizationResponse.ein = n.getStringValue(); },
6159
6191
  "einDocument": n => { organizationResponse.einDocument = n.getObjectValue(createOrganizationResponse_einDocumentFromDiscriminatorValue); },
6160
6192
  "enabled": n => { organizationResponse.enabled = n.getBooleanValue(); },
@@ -7279,6 +7311,19 @@ export function deserializeIntoPhoneNumberTrafficTrendPoint(phoneNumberTrafficTr
7279
7311
  "startAt": n => { phoneNumberTrafficTrendPoint.startAt = n.getDateValue(); },
7280
7312
  };
7281
7313
  }
7314
+ /**
7315
+ * The deserialization information for the current model
7316
+ * @param PossibleDuplicateLead The instance to deserialize into.
7317
+ * @returns {Record<string, (node: ParseNode) => void>}
7318
+ */
7319
+ // @ts-ignore
7320
+ export function deserializeIntoPossibleDuplicateLead(possibleDuplicateLead = {}) {
7321
+ return {
7322
+ "leadId": n => { possibleDuplicateLead.leadId = n.getStringValue(); },
7323
+ "receivedAt": n => { possibleDuplicateLead.receivedAt = n.getDateValue(); },
7324
+ "sourceName": n => { possibleDuplicateLead.sourceName = n.getStringValue(); },
7325
+ };
7326
+ }
7282
7327
  /**
7283
7328
  * The deserialization information for the current model
7284
7329
  * @param ProblemDetails The instance to deserialize into.
@@ -11200,6 +11245,7 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
11200
11245
  writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
11201
11246
  writer.writeDateValue("modifiedAt", leadResponse.modifiedAt);
11202
11247
  writer.writeObjectValue("phoneIdentity", leadResponse.phoneIdentity, serializeLeadResponse_phoneIdentity);
11248
+ writer.writeObjectValue("possibleDuplicate", leadResponse.possibleDuplicate, serializeLeadResponse_possibleDuplicate);
11203
11249
  writer.writeEnumValue("processingStatus", leadResponse.processingStatus);
11204
11250
  writer.writeDateValue("processingStatusChangedAt", leadResponse.processingStatusChangedAt);
11205
11251
  writer.writeStringValue("processingStatusReason", leadResponse.processingStatusReason);
@@ -11299,6 +11345,19 @@ export function serializeLeadResponse_phoneIdentity(writer, leadResponse_phoneId
11299
11345
  }
11300
11346
  serializePhoneIdentityResponse(writer, leadResponse_phoneIdentity, isSerializingDerivedType);
11301
11347
  }
11348
+ /**
11349
+ * Serializes information the current object
11350
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11351
+ * @param LeadResponse_possibleDuplicate The instance to serialize from.
11352
+ * @param writer Serialization writer to use to serialize this model
11353
+ */
11354
+ // @ts-ignore
11355
+ export function serializeLeadResponse_possibleDuplicate(writer, leadResponse_possibleDuplicate = {}, isSerializingDerivedType = false) {
11356
+ if (!leadResponse_possibleDuplicate || isSerializingDerivedType) {
11357
+ return;
11358
+ }
11359
+ serializePossibleDuplicateLead(writer, leadResponse_possibleDuplicate, isSerializingDerivedType);
11360
+ }
11302
11361
  /**
11303
11362
  * Serializes information the current object
11304
11363
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -12211,6 +12270,7 @@ export function serializeOrganizationRequest(writer, organizationRequest = {}, i
12211
12270
  writer.writeBooleanValue("automaticallyMarkLeadsMessaged", organizationRequest.automaticallyMarkLeadsMessaged);
12212
12271
  writer.writeStringValue("calledLeadStatusId", organizationRequest.calledLeadStatusId);
12213
12272
  writer.writeStringValue("description", organizationRequest.description);
12273
+ writer.writeNumberValue("duplicateLeadLookbackDays", organizationRequest.duplicateLeadLookbackDays);
12214
12274
  writer.writeStringValue("ein", organizationRequest.ein);
12215
12275
  writer.writeBooleanValue("isYoungerThan90", organizationRequest.isYoungerThan90);
12216
12276
  writer.writeStringValue("messagedLeadStatusId", organizationRequest.messagedLeadStatusId);
@@ -12269,6 +12329,7 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
12269
12329
  writer.writeDateValue("createdAt", organizationResponse.createdAt);
12270
12330
  writer.writeStringValue("description", organizationResponse.description);
12271
12331
  writer.writeStringValue("domain", organizationResponse.domain);
12332
+ writer.writeNumberValue("duplicateLeadLookbackDays", organizationResponse.duplicateLeadLookbackDays);
12272
12333
  writer.writeStringValue("ein", organizationResponse.ein);
12273
12334
  writer.writeObjectValue("einDocument", organizationResponse.einDocument, serializeOrganizationResponse_einDocument);
12274
12335
  writer.writeBooleanValue("enabled", organizationResponse.enabled);
@@ -13587,6 +13648,22 @@ export function serializePhoneNumberTrafficTrendPoint(writer, phoneNumberTraffic
13587
13648
  writer.writeDateValue("startAt", phoneNumberTrafficTrendPoint.startAt);
13588
13649
  writer.writeAdditionalData(phoneNumberTrafficTrendPoint.additionalData);
13589
13650
  }
13651
+ /**
13652
+ * Serializes information the current object
13653
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
13654
+ * @param PossibleDuplicateLead The instance to serialize from.
13655
+ * @param writer Serialization writer to use to serialize this model
13656
+ */
13657
+ // @ts-ignore
13658
+ export function serializePossibleDuplicateLead(writer, possibleDuplicateLead = {}, isSerializingDerivedType = false) {
13659
+ if (!possibleDuplicateLead || isSerializingDerivedType) {
13660
+ return;
13661
+ }
13662
+ writer.writeStringValue("leadId", possibleDuplicateLead.leadId);
13663
+ writer.writeDateValue("receivedAt", possibleDuplicateLead.receivedAt);
13664
+ writer.writeStringValue("sourceName", possibleDuplicateLead.sourceName);
13665
+ writer.writeAdditionalData(possibleDuplicateLead.additionalData);
13666
+ }
13590
13667
  /**
13591
13668
  * Serializes information the current object
13592
13669
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.