@leadping/sdk 1.0.25 → 1.0.27

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.
@@ -1074,6 +1074,15 @@ export function createLeadRequestFromDiscriminatorValue(parseNode) {
1074
1074
  export function createLeadResponse_currentDispositionFromDiscriminatorValue(parseNode) {
1075
1075
  return deserializeIntoLeadResponse_currentDisposition;
1076
1076
  }
1077
+ /**
1078
+ * Creates a new instance of the appropriate class based on discriminator value
1079
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1080
+ * @returns {LeadResponse_phoneIdentity}
1081
+ */
1082
+ // @ts-ignore
1083
+ export function createLeadResponse_phoneIdentityFromDiscriminatorValue(parseNode) {
1084
+ return deserializeIntoLeadResponse_phoneIdentity;
1085
+ }
1077
1086
  /**
1078
1087
  * Creates a new instance of the appropriate class based on discriminator value
1079
1088
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1362,6 +1371,69 @@ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
1362
1371
  export function createPhoneFromDiscriminatorValue(parseNode) {
1363
1372
  return deserializeIntoPhone;
1364
1373
  }
1374
+ /**
1375
+ * Creates a new instance of the appropriate class based on discriminator value
1376
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1377
+ * @returns {PhoneIdentityResponse_lookup}
1378
+ */
1379
+ // @ts-ignore
1380
+ export function createPhoneIdentityResponse_lookupFromDiscriminatorValue(parseNode) {
1381
+ return deserializeIntoPhoneIdentityResponse_lookup;
1382
+ }
1383
+ /**
1384
+ * Creates a new instance of the appropriate class based on discriminator value
1385
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1386
+ * @returns {PhoneIdentityResponse}
1387
+ */
1388
+ // @ts-ignore
1389
+ export function createPhoneIdentityResponseFromDiscriminatorValue(parseNode) {
1390
+ return deserializeIntoPhoneIdentityResponse;
1391
+ }
1392
+ /**
1393
+ * Creates a new instance of the appropriate class based on discriminator value
1394
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1395
+ * @returns {PhoneLocationSource}
1396
+ */
1397
+ // @ts-ignore
1398
+ export function createPhoneLocationSourceFromDiscriminatorValue(parseNode) {
1399
+ return deserializeIntoPhoneLocationSource;
1400
+ }
1401
+ /**
1402
+ * Creates a new instance of the appropriate class based on discriminator value
1403
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1404
+ * @returns {PhoneLookup_carrier}
1405
+ */
1406
+ // @ts-ignore
1407
+ export function createPhoneLookup_carrierFromDiscriminatorValue(parseNode) {
1408
+ return deserializeIntoPhoneLookup_carrier;
1409
+ }
1410
+ /**
1411
+ * Creates a new instance of the appropriate class based on discriminator value
1412
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1413
+ * @returns {PhoneLookup_location}
1414
+ */
1415
+ // @ts-ignore
1416
+ export function createPhoneLookup_locationFromDiscriminatorValue(parseNode) {
1417
+ return deserializeIntoPhoneLookup_location;
1418
+ }
1419
+ /**
1420
+ * Creates a new instance of the appropriate class based on discriminator value
1421
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1422
+ * @returns {PhoneLookupCarrier}
1423
+ */
1424
+ // @ts-ignore
1425
+ export function createPhoneLookupCarrierFromDiscriminatorValue(parseNode) {
1426
+ return deserializeIntoPhoneLookupCarrier;
1427
+ }
1428
+ /**
1429
+ * Creates a new instance of the appropriate class based on discriminator value
1430
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1431
+ * @returns {PhoneLookup}
1432
+ */
1433
+ // @ts-ignore
1434
+ export function createPhoneLookupFromDiscriminatorValue(parseNode) {
1435
+ return deserializeIntoPhoneLookup;
1436
+ }
1365
1437
  /**
1366
1438
  * Creates a new instance of the appropriate class based on discriminator value
1367
1439
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1398,6 +1470,24 @@ export function createPhoneNumberAvailabilityResponseFromDiscriminatorValue(pars
1398
1470
  export function createPhoneNumberLocation_coordinateFromDiscriminatorValue(parseNode) {
1399
1471
  return deserializeIntoPhoneNumberLocation_coordinate;
1400
1472
  }
1473
+ /**
1474
+ * Creates a new instance of the appropriate class based on discriminator value
1475
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1476
+ * @returns {PhoneNumberLocation_coordinateSource}
1477
+ */
1478
+ // @ts-ignore
1479
+ export function createPhoneNumberLocation_coordinateSourceFromDiscriminatorValue(parseNode) {
1480
+ return deserializeIntoPhoneNumberLocation_coordinateSource;
1481
+ }
1482
+ /**
1483
+ * Creates a new instance of the appropriate class based on discriminator value
1484
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1485
+ * @returns {PhoneNumberLocation_timeZoneSource}
1486
+ */
1487
+ // @ts-ignore
1488
+ export function createPhoneNumberLocation_timeZoneSourceFromDiscriminatorValue(parseNode) {
1489
+ return deserializeIntoPhoneNumberLocation_timeZoneSource;
1490
+ }
1401
1491
  /**
1402
1492
  * Creates a new instance of the appropriate class based on discriminator value
1403
1493
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2791,6 +2881,7 @@ export function deserializeIntoBusinessActivationState(businessActivationState =
2791
2881
  "telephonyProvisioningStartedAt": n => { businessActivationState.telephonyProvisioningStartedAt = n.getDateValue(); },
2792
2882
  "telephonyReadyAt": n => { businessActivationState.telephonyReadyAt = n.getDateValue(); },
2793
2883
  "telephonyStatus": n => { businessActivationState.telephonyStatus = n.getEnumValue(ActivationTelephonyStatusObject); },
2884
+ "tenDlcApplicationId": n => { businessActivationState.tenDlcApplicationId = n.getStringValue(); },
2794
2885
  "tenDlcDraft": n => { businessActivationState.tenDlcDraft = n.getObjectValue(createBusinessActivationState_tenDlcDraftFromDiscriminatorValue); },
2795
2886
  "tenDlcStatus": n => { businessActivationState.tenDlcStatus = n.getEnumValue(TenDlcApplicationStatusObject); },
2796
2887
  "updatedAt": n => { businessActivationState.updatedAt = n.getDateValue(); },
@@ -3888,6 +3979,7 @@ export function deserializeIntoEventDetailResponse_user(eventDetailResponse_user
3888
3979
  export function deserializeIntoEventTableRow(eventTableRow = {}) {
3889
3980
  return {
3890
3981
  "actorDisplayName": n => { eventTableRow.actorDisplayName = n.getStringValue(); },
3982
+ "actorEmail": n => { eventTableRow.actorEmail = n.getStringValue(); },
3891
3983
  "actorUserId": n => { eventTableRow.actorUserId = n.getStringValue(); },
3892
3984
  "billableAmount": n => { eventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3893
3985
  "billingStatus": n => { eventTableRow.billingStatus = n.getStringValue(); },
@@ -4265,6 +4357,7 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
4265
4357
  "isArchived": n => { leadResponse.isArchived = n.getBooleanValue(); },
4266
4358
  "metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
4267
4359
  "modifiedAt": n => { leadResponse.modifiedAt = n.getDateValue(); },
4360
+ "phoneIdentity": n => { leadResponse.phoneIdentity = n.getObjectValue(createLeadResponse_phoneIdentityFromDiscriminatorValue); },
4268
4361
  "tags": n => { leadResponse.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
4269
4362
  };
4270
4363
  }
@@ -4279,6 +4372,17 @@ export function deserializeIntoLeadResponse_currentDisposition(leadResponse_curr
4279
4372
  ...deserializeIntoCurrentDispositionSummary(leadResponse_currentDisposition),
4280
4373
  };
4281
4374
  }
4375
+ /**
4376
+ * The deserialization information for the current model
4377
+ * @param LeadResponse_phoneIdentity The instance to deserialize into.
4378
+ * @returns {Record<string, (node: ParseNode) => void>}
4379
+ */
4380
+ // @ts-ignore
4381
+ export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIdentity = {}) {
4382
+ return {
4383
+ ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
4384
+ };
4385
+ }
4282
4386
  /**
4283
4387
  * The deserialization information for the current model
4284
4388
  * @param LeadStatusRequest The instance to deserialize into.
@@ -4796,6 +4900,102 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
4796
4900
  "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
4797
4901
  };
4798
4902
  }
4903
+ /**
4904
+ * The deserialization information for the current model
4905
+ * @param PhoneIdentityResponse The instance to deserialize into.
4906
+ * @returns {Record<string, (node: ParseNode) => void>}
4907
+ */
4908
+ // @ts-ignore
4909
+ export function deserializeIntoPhoneIdentityResponse(phoneIdentityResponse = {}) {
4910
+ return {
4911
+ "createdAt": n => { phoneIdentityResponse.createdAt = n.getDateValue(); },
4912
+ "id": n => { phoneIdentityResponse.id = n.getStringValue(); },
4913
+ "lastEnrichedAt": n => { phoneIdentityResponse.lastEnrichedAt = n.getDateValue(); },
4914
+ "lookup": n => { phoneIdentityResponse.lookup = n.getObjectValue(createPhoneIdentityResponse_lookupFromDiscriminatorValue); },
4915
+ "modifiedAt": n => { phoneIdentityResponse.modifiedAt = n.getDateValue(); },
4916
+ "name": n => { phoneIdentityResponse.name = n.getStringValue(); },
4917
+ "number": n => { phoneIdentityResponse.number = n.getStringValue(); },
4918
+ };
4919
+ }
4920
+ /**
4921
+ * The deserialization information for the current model
4922
+ * @param PhoneIdentityResponse_lookup The instance to deserialize into.
4923
+ * @returns {Record<string, (node: ParseNode) => void>}
4924
+ */
4925
+ // @ts-ignore
4926
+ export function deserializeIntoPhoneIdentityResponse_lookup(phoneIdentityResponse_lookup = {}) {
4927
+ return {
4928
+ ...deserializeIntoPhoneLookup(phoneIdentityResponse_lookup),
4929
+ };
4930
+ }
4931
+ /**
4932
+ * The deserialization information for the current model
4933
+ * @param PhoneLocationSource The instance to deserialize into.
4934
+ * @returns {Record<string, (node: ParseNode) => void>}
4935
+ */
4936
+ // @ts-ignore
4937
+ export function deserializeIntoPhoneLocationSource(phoneLocationSource = {}) {
4938
+ return {
4939
+ "method": n => { phoneLocationSource.method = n.getStringValue(); },
4940
+ "query": n => { phoneLocationSource.query = n.getStringValue(); },
4941
+ };
4942
+ }
4943
+ /**
4944
+ * The deserialization information for the current model
4945
+ * @param PhoneLookup The instance to deserialize into.
4946
+ * @returns {Record<string, (node: ParseNode) => void>}
4947
+ */
4948
+ // @ts-ignore
4949
+ export function deserializeIntoPhoneLookup(phoneLookup = {}) {
4950
+ return {
4951
+ "carrier": n => { phoneLookup.carrier = n.getObjectValue(createPhoneLookup_carrierFromDiscriminatorValue); },
4952
+ "createdAt": n => { phoneLookup.createdAt = n.getDateValue(); },
4953
+ "id": n => { phoneLookup.id = n.getStringValue(); },
4954
+ "isValid": n => { phoneLookup.isValid = n.getBooleanValue(); },
4955
+ "lineType": n => { phoneLookup.lineType = n.getEnumValue(PhoneLookup_lineTypeObject); },
4956
+ "location": n => { phoneLookup.location = n.getObjectValue(createPhoneLookup_locationFromDiscriminatorValue); },
4957
+ "modifiedAt": n => { phoneLookup.modifiedAt = n.getDateValue(); },
4958
+ "number": n => { phoneLookup.number = n.getStringValue(); },
4959
+ };
4960
+ }
4961
+ /**
4962
+ * The deserialization information for the current model
4963
+ * @param PhoneLookup_carrier The instance to deserialize into.
4964
+ * @returns {Record<string, (node: ParseNode) => void>}
4965
+ */
4966
+ // @ts-ignore
4967
+ export function deserializeIntoPhoneLookup_carrier(phoneLookup_carrier = {}) {
4968
+ return {
4969
+ ...deserializeIntoPhoneLookupCarrier(phoneLookup_carrier),
4970
+ };
4971
+ }
4972
+ /**
4973
+ * The deserialization information for the current model
4974
+ * @param PhoneLookup_location The instance to deserialize into.
4975
+ * @returns {Record<string, (node: ParseNode) => void>}
4976
+ */
4977
+ // @ts-ignore
4978
+ export function deserializeIntoPhoneLookup_location(phoneLookup_location = {}) {
4979
+ return {
4980
+ ...deserializeIntoPhoneNumberLocation(phoneLookup_location),
4981
+ };
4982
+ }
4983
+ /**
4984
+ * The deserialization information for the current model
4985
+ * @param PhoneLookupCarrier The instance to deserialize into.
4986
+ * @returns {Record<string, (node: ParseNode) => void>}
4987
+ */
4988
+ // @ts-ignore
4989
+ export function deserializeIntoPhoneLookupCarrier(phoneLookupCarrier = {}) {
4990
+ return {
4991
+ "errorCode": n => { phoneLookupCarrier.errorCode = n.getStringValue(); },
4992
+ "mobileCountryCode": n => { phoneLookupCarrier.mobileCountryCode = n.getStringValue(); },
4993
+ "mobileNetworkCode": n => { phoneLookupCarrier.mobileNetworkCode = n.getStringValue(); },
4994
+ "name": n => { phoneLookupCarrier.name = n.getStringValue(); },
4995
+ "normalizedCarrier": n => { phoneLookupCarrier.normalizedCarrier = n.getStringValue(); },
4996
+ "type": n => { phoneLookupCarrier.type = n.getEnumValue(PhoneLookupCarrier_typeObject); },
4997
+ };
4998
+ }
4799
4999
  /**
4800
5000
  * The deserialization information for the current model
4801
5001
  * @param PhoneNumberAvailabilityRequest The instance to deserialize into.
@@ -4841,11 +5041,15 @@ export function deserializeIntoPhoneNumberAvailabilityResponse_location(phoneNum
4841
5041
  // @ts-ignore
4842
5042
  export function deserializeIntoPhoneNumberLocation(phoneNumberLocation = {}) {
4843
5043
  return {
5044
+ "canonicalCity": n => { phoneNumberLocation.canonicalCity = n.getStringValue(); },
5045
+ "canonicalState": n => { phoneNumberLocation.canonicalState = n.getStringValue(); },
4844
5046
  "coordinate": n => { phoneNumberLocation.coordinate = n.getObjectValue(createPhoneNumberLocation_coordinateFromDiscriminatorValue); },
5047
+ "coordinateSource": n => { phoneNumberLocation.coordinateSource = n.getObjectValue(createPhoneNumberLocation_coordinateSourceFromDiscriminatorValue); },
4845
5048
  "countryCode": n => { phoneNumberLocation.countryCode = n.getStringValue(); },
4846
5049
  "location": n => { phoneNumberLocation.location = n.getStringValue(); },
4847
5050
  "state": n => { phoneNumberLocation.state = n.getStringValue(); },
4848
5051
  "timeZoneId": n => { phoneNumberLocation.timeZoneId = n.getStringValue(); },
5052
+ "timeZoneSource": n => { phoneNumberLocation.timeZoneSource = n.getObjectValue(createPhoneNumberLocation_timeZoneSourceFromDiscriminatorValue); },
4849
5053
  };
4850
5054
  }
4851
5055
  /**
@@ -4859,6 +5063,28 @@ export function deserializeIntoPhoneNumberLocation_coordinate(phoneNumberLocatio
4859
5063
  ...deserializeIntoCoordinate(phoneNumberLocation_coordinate),
4860
5064
  };
4861
5065
  }
5066
+ /**
5067
+ * The deserialization information for the current model
5068
+ * @param PhoneNumberLocation_coordinateSource The instance to deserialize into.
5069
+ * @returns {Record<string, (node: ParseNode) => void>}
5070
+ */
5071
+ // @ts-ignore
5072
+ export function deserializeIntoPhoneNumberLocation_coordinateSource(phoneNumberLocation_coordinateSource = {}) {
5073
+ return {
5074
+ ...deserializeIntoPhoneLocationSource(phoneNumberLocation_coordinateSource),
5075
+ };
5076
+ }
5077
+ /**
5078
+ * The deserialization information for the current model
5079
+ * @param PhoneNumberLocation_timeZoneSource The instance to deserialize into.
5080
+ * @returns {Record<string, (node: ParseNode) => void>}
5081
+ */
5082
+ // @ts-ignore
5083
+ export function deserializeIntoPhoneNumberLocation_timeZoneSource(phoneNumberLocation_timeZoneSource = {}) {
5084
+ return {
5085
+ ...deserializeIntoPhoneLocationSource(phoneNumberLocation_timeZoneSource),
5086
+ };
5087
+ }
4862
5088
  /**
4863
5089
  * The deserialization information for the current model
4864
5090
  * @param PhoneNumberMessagingEventResponse The instance to deserialize into.
@@ -4901,6 +5127,7 @@ export function deserializeIntoPhoneNumberOptOutMetricsResponse(phoneNumberOptOu
4901
5127
  // @ts-ignore
4902
5128
  export function deserializeIntoPhoneNumberReadiness(phoneNumberReadiness = {}) {
4903
5129
  return {
5130
+ "callStage": n => { phoneNumberReadiness.callStage = n.getEnumValue(PhoneNumberReadiness_callStageObject); },
4904
5131
  "enabled": n => { phoneNumberReadiness.enabled = n.getBooleanValue(); },
4905
5132
  "healthScore": n => { phoneNumberReadiness.healthScore = n.getNumberValue(); },
4906
5133
  "healthStatus": n => { phoneNumberReadiness.healthStatus = n.getEnumValue(PhoneNumberReadiness_healthStatusObject); },
@@ -4967,6 +5194,7 @@ export function deserializeIntoPhoneNumberRoutingMetadata(phoneNumberRoutingMeta
4967
5194
  "smsEnabled": n => { phoneNumberRoutingMetadata.smsEnabled = n.getBooleanValue(); },
4968
5195
  "sourceId": n => { phoneNumberRoutingMetadata.sourceId = n.getStringValue(); },
4969
5196
  "teamId": n => { phoneNumberRoutingMetadata.teamId = n.getStringValue(); },
5197
+ "tenDlcApplicationId": n => { phoneNumberRoutingMetadata.tenDlcApplicationId = n.getStringValue(); },
4970
5198
  "voiceEnabled": n => { phoneNumberRoutingMetadata.voiceEnabled = n.getBooleanValue(); },
4971
5199
  };
4972
5200
  }
@@ -6121,6 +6349,7 @@ export function deserializeIntoUserRequest(userRequest = {}) {
6121
6349
  "name": n => { userRequest.name = n.getStringValue(); },
6122
6350
  "notificationPreferences": n => { userRequest.notificationPreferences = n.getObjectValue(createUserRequest_notificationPreferencesFromDiscriminatorValue); },
6123
6351
  "phone": n => { userRequest.phone = n.getStringValue(); },
6352
+ "timeZoneId": n => { userRequest.timeZoneId = n.getStringValue(); },
6124
6353
  };
6125
6354
  }
6126
6355
  /**
@@ -6186,6 +6415,7 @@ export function deserializeIntoUserResponse(userResponse = {}) {
6186
6415
  "phone": n => { userResponse.phone = n.getStringValue(); },
6187
6416
  "roles": n => { userResponse.roles = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6188
6417
  "subscriptionStatus": n => { userResponse.subscriptionStatus = n.getEnumValue(UserResponse_subscriptionStatusObject); },
6418
+ "timeZoneId": n => { userResponse.timeZoneId = n.getStringValue(); },
6189
6419
  };
6190
6420
  }
6191
6421
  /**
@@ -6999,6 +7229,7 @@ export function serializeBusinessActivationState(writer, businessActivationState
6999
7229
  writer.writeDateValue("telephonyProvisioningStartedAt", businessActivationState.telephonyProvisioningStartedAt);
7000
7230
  writer.writeDateValue("telephonyReadyAt", businessActivationState.telephonyReadyAt);
7001
7231
  writer.writeEnumValue("telephonyStatus", businessActivationState.telephonyStatus);
7232
+ writer.writeStringValue("tenDlcApplicationId", businessActivationState.tenDlcApplicationId);
7002
7233
  writer.writeObjectValue("tenDlcDraft", businessActivationState.tenDlcDraft, serializeBusinessActivationState_tenDlcDraft);
7003
7234
  writer.writeEnumValue("tenDlcStatus", businessActivationState.tenDlcStatus);
7004
7235
  writer.writeDateValue("updatedAt", businessActivationState.updatedAt);
@@ -8262,6 +8493,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8262
8493
  return;
8263
8494
  }
8264
8495
  writer.writeStringValue("actorDisplayName", eventTableRow.actorDisplayName);
8496
+ writer.writeStringValue("actorEmail", eventTableRow.actorEmail);
8265
8497
  writer.writeStringValue("actorUserId", eventTableRow.actorUserId);
8266
8498
  writer.writeObjectValue("billableAmount", eventTableRow.billableAmount);
8267
8499
  writer.writeStringValue("billingStatus", eventTableRow.billingStatus);
@@ -8695,6 +8927,7 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
8695
8927
  writer.writeBooleanValue("isArchived", leadResponse.isArchived);
8696
8928
  writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
8697
8929
  writer.writeDateValue("modifiedAt", leadResponse.modifiedAt);
8930
+ writer.writeObjectValue("phoneIdentity", leadResponse.phoneIdentity, serializeLeadResponse_phoneIdentity);
8698
8931
  writer.writeCollectionOfObjectValues("tags", leadResponse.tags, serializeTagSummary);
8699
8932
  writer.writeAdditionalData(leadResponse.additionalData);
8700
8933
  }
@@ -8711,6 +8944,19 @@ export function serializeLeadResponse_currentDisposition(writer, leadResponse_cu
8711
8944
  }
8712
8945
  serializeCurrentDispositionSummary(writer, leadResponse_currentDisposition, isSerializingDerivedType);
8713
8946
  }
8947
+ /**
8948
+ * Serializes information the current object
8949
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8950
+ * @param LeadResponse_phoneIdentity The instance to serialize from.
8951
+ * @param writer Serialization writer to use to serialize this model
8952
+ */
8953
+ // @ts-ignore
8954
+ export function serializeLeadResponse_phoneIdentity(writer, leadResponse_phoneIdentity = {}, isSerializingDerivedType = false) {
8955
+ if (!leadResponse_phoneIdentity || isSerializingDerivedType) {
8956
+ return;
8957
+ }
8958
+ serializePhoneIdentityResponse(writer, leadResponse_phoneIdentity, isSerializingDerivedType);
8959
+ }
8714
8960
  /**
8715
8961
  * Serializes information the current object
8716
8962
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9318,6 +9564,120 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
9318
9564
  writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
9319
9565
  writer.writeAdditionalData(phoneCallResponse.additionalData);
9320
9566
  }
9567
+ /**
9568
+ * Serializes information the current object
9569
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9570
+ * @param PhoneIdentityResponse The instance to serialize from.
9571
+ * @param writer Serialization writer to use to serialize this model
9572
+ */
9573
+ // @ts-ignore
9574
+ export function serializePhoneIdentityResponse(writer, phoneIdentityResponse = {}, isSerializingDerivedType = false) {
9575
+ if (!phoneIdentityResponse || isSerializingDerivedType) {
9576
+ return;
9577
+ }
9578
+ writer.writeDateValue("createdAt", phoneIdentityResponse.createdAt);
9579
+ writer.writeStringValue("id", phoneIdentityResponse.id);
9580
+ writer.writeDateValue("lastEnrichedAt", phoneIdentityResponse.lastEnrichedAt);
9581
+ writer.writeObjectValue("lookup", phoneIdentityResponse.lookup, serializePhoneIdentityResponse_lookup);
9582
+ writer.writeDateValue("modifiedAt", phoneIdentityResponse.modifiedAt);
9583
+ writer.writeStringValue("name", phoneIdentityResponse.name);
9584
+ writer.writeStringValue("number", phoneIdentityResponse.number);
9585
+ writer.writeAdditionalData(phoneIdentityResponse.additionalData);
9586
+ }
9587
+ /**
9588
+ * Serializes information the current object
9589
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9590
+ * @param PhoneIdentityResponse_lookup The instance to serialize from.
9591
+ * @param writer Serialization writer to use to serialize this model
9592
+ */
9593
+ // @ts-ignore
9594
+ export function serializePhoneIdentityResponse_lookup(writer, phoneIdentityResponse_lookup = {}, isSerializingDerivedType = false) {
9595
+ if (!phoneIdentityResponse_lookup || isSerializingDerivedType) {
9596
+ return;
9597
+ }
9598
+ serializePhoneLookup(writer, phoneIdentityResponse_lookup, isSerializingDerivedType);
9599
+ }
9600
+ /**
9601
+ * Serializes information the current object
9602
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9603
+ * @param PhoneLocationSource The instance to serialize from.
9604
+ * @param writer Serialization writer to use to serialize this model
9605
+ */
9606
+ // @ts-ignore
9607
+ export function serializePhoneLocationSource(writer, phoneLocationSource = {}, isSerializingDerivedType = false) {
9608
+ if (!phoneLocationSource || isSerializingDerivedType) {
9609
+ return;
9610
+ }
9611
+ writer.writeStringValue("method", phoneLocationSource.method);
9612
+ writer.writeStringValue("query", phoneLocationSource.query);
9613
+ writer.writeAdditionalData(phoneLocationSource.additionalData);
9614
+ }
9615
+ /**
9616
+ * Serializes information the current object
9617
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9618
+ * @param PhoneLookup The instance to serialize from.
9619
+ * @param writer Serialization writer to use to serialize this model
9620
+ */
9621
+ // @ts-ignore
9622
+ export function serializePhoneLookup(writer, phoneLookup = {}, isSerializingDerivedType = false) {
9623
+ if (!phoneLookup || isSerializingDerivedType) {
9624
+ return;
9625
+ }
9626
+ writer.writeObjectValue("carrier", phoneLookup.carrier, serializePhoneLookup_carrier);
9627
+ writer.writeDateValue("createdAt", phoneLookup.createdAt);
9628
+ writer.writeStringValue("id", phoneLookup.id);
9629
+ writer.writeBooleanValue("isValid", phoneLookup.isValid);
9630
+ writer.writeEnumValue("lineType", phoneLookup.lineType);
9631
+ writer.writeObjectValue("location", phoneLookup.location, serializePhoneLookup_location);
9632
+ writer.writeDateValue("modifiedAt", phoneLookup.modifiedAt);
9633
+ writer.writeStringValue("number", phoneLookup.number);
9634
+ writer.writeAdditionalData(phoneLookup.additionalData);
9635
+ }
9636
+ /**
9637
+ * Serializes information the current object
9638
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9639
+ * @param PhoneLookup_carrier The instance to serialize from.
9640
+ * @param writer Serialization writer to use to serialize this model
9641
+ */
9642
+ // @ts-ignore
9643
+ export function serializePhoneLookup_carrier(writer, phoneLookup_carrier = {}, isSerializingDerivedType = false) {
9644
+ if (!phoneLookup_carrier || isSerializingDerivedType) {
9645
+ return;
9646
+ }
9647
+ serializePhoneLookupCarrier(writer, phoneLookup_carrier, isSerializingDerivedType);
9648
+ }
9649
+ /**
9650
+ * Serializes information the current object
9651
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9652
+ * @param PhoneLookup_location The instance to serialize from.
9653
+ * @param writer Serialization writer to use to serialize this model
9654
+ */
9655
+ // @ts-ignore
9656
+ export function serializePhoneLookup_location(writer, phoneLookup_location = {}, isSerializingDerivedType = false) {
9657
+ if (!phoneLookup_location || isSerializingDerivedType) {
9658
+ return;
9659
+ }
9660
+ serializePhoneNumberLocation(writer, phoneLookup_location, isSerializingDerivedType);
9661
+ }
9662
+ /**
9663
+ * Serializes information the current object
9664
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9665
+ * @param PhoneLookupCarrier The instance to serialize from.
9666
+ * @param writer Serialization writer to use to serialize this model
9667
+ */
9668
+ // @ts-ignore
9669
+ export function serializePhoneLookupCarrier(writer, phoneLookupCarrier = {}, isSerializingDerivedType = false) {
9670
+ if (!phoneLookupCarrier || isSerializingDerivedType) {
9671
+ return;
9672
+ }
9673
+ writer.writeStringValue("errorCode", phoneLookupCarrier.errorCode);
9674
+ writer.writeStringValue("mobileCountryCode", phoneLookupCarrier.mobileCountryCode);
9675
+ writer.writeStringValue("mobileNetworkCode", phoneLookupCarrier.mobileNetworkCode);
9676
+ writer.writeStringValue("name", phoneLookupCarrier.name);
9677
+ writer.writeStringValue("normalizedCarrier", phoneLookupCarrier.normalizedCarrier);
9678
+ writer.writeEnumValue("type", phoneLookupCarrier.type);
9679
+ writer.writeAdditionalData(phoneLookupCarrier.additionalData);
9680
+ }
9321
9681
  /**
9322
9682
  * Serializes information the current object
9323
9683
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9374,11 +9734,15 @@ export function serializePhoneNumberLocation(writer, phoneNumberLocation = {}, i
9374
9734
  if (!phoneNumberLocation || isSerializingDerivedType) {
9375
9735
  return;
9376
9736
  }
9737
+ writer.writeStringValue("canonicalCity", phoneNumberLocation.canonicalCity);
9738
+ writer.writeStringValue("canonicalState", phoneNumberLocation.canonicalState);
9377
9739
  writer.writeObjectValue("coordinate", phoneNumberLocation.coordinate, serializePhoneNumberLocation_coordinate);
9740
+ writer.writeObjectValue("coordinateSource", phoneNumberLocation.coordinateSource, serializePhoneNumberLocation_coordinateSource);
9378
9741
  writer.writeStringValue("countryCode", phoneNumberLocation.countryCode);
9379
9742
  writer.writeStringValue("location", phoneNumberLocation.location);
9380
9743
  writer.writeStringValue("state", phoneNumberLocation.state);
9381
9744
  writer.writeStringValue("timeZoneId", phoneNumberLocation.timeZoneId);
9745
+ writer.writeObjectValue("timeZoneSource", phoneNumberLocation.timeZoneSource, serializePhoneNumberLocation_timeZoneSource);
9382
9746
  writer.writeAdditionalData(phoneNumberLocation.additionalData);
9383
9747
  }
9384
9748
  /**
@@ -9394,6 +9758,32 @@ export function serializePhoneNumberLocation_coordinate(writer, phoneNumberLocat
9394
9758
  }
9395
9759
  serializeCoordinate(writer, phoneNumberLocation_coordinate, isSerializingDerivedType);
9396
9760
  }
9761
+ /**
9762
+ * Serializes information the current object
9763
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9764
+ * @param PhoneNumberLocation_coordinateSource The instance to serialize from.
9765
+ * @param writer Serialization writer to use to serialize this model
9766
+ */
9767
+ // @ts-ignore
9768
+ export function serializePhoneNumberLocation_coordinateSource(writer, phoneNumberLocation_coordinateSource = {}, isSerializingDerivedType = false) {
9769
+ if (!phoneNumberLocation_coordinateSource || isSerializingDerivedType) {
9770
+ return;
9771
+ }
9772
+ serializePhoneLocationSource(writer, phoneNumberLocation_coordinateSource, isSerializingDerivedType);
9773
+ }
9774
+ /**
9775
+ * Serializes information the current object
9776
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9777
+ * @param PhoneNumberLocation_timeZoneSource The instance to serialize from.
9778
+ * @param writer Serialization writer to use to serialize this model
9779
+ */
9780
+ // @ts-ignore
9781
+ export function serializePhoneNumberLocation_timeZoneSource(writer, phoneNumberLocation_timeZoneSource = {}, isSerializingDerivedType = false) {
9782
+ if (!phoneNumberLocation_timeZoneSource || isSerializingDerivedType) {
9783
+ return;
9784
+ }
9785
+ serializePhoneLocationSource(writer, phoneNumberLocation_timeZoneSource, isSerializingDerivedType);
9786
+ }
9397
9787
  /**
9398
9788
  * Serializes information the current object
9399
9789
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9445,6 +9835,7 @@ export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {},
9445
9835
  if (!phoneNumberReadiness || isSerializingDerivedType) {
9446
9836
  return;
9447
9837
  }
9838
+ writer.writeEnumValue("callStage", phoneNumberReadiness.callStage);
9448
9839
  writer.writeBooleanValue("enabled", phoneNumberReadiness.enabled);
9449
9840
  writer.writeNumberValue("healthScore", phoneNumberReadiness.healthScore);
9450
9841
  writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
@@ -9522,6 +9913,7 @@ export function serializePhoneNumberRoutingMetadata(writer, phoneNumberRoutingMe
9522
9913
  writer.writeBooleanValue("smsEnabled", phoneNumberRoutingMetadata.smsEnabled);
9523
9914
  writer.writeStringValue("sourceId", phoneNumberRoutingMetadata.sourceId);
9524
9915
  writer.writeStringValue("teamId", phoneNumberRoutingMetadata.teamId);
9916
+ writer.writeStringValue("tenDlcApplicationId", phoneNumberRoutingMetadata.tenDlcApplicationId);
9525
9917
  writer.writeBooleanValue("voiceEnabled", phoneNumberRoutingMetadata.voiceEnabled);
9526
9918
  writer.writeAdditionalData(phoneNumberRoutingMetadata.additionalData);
9527
9919
  }
@@ -10860,6 +11252,7 @@ export function serializeUserRequest(writer, userRequest = {}, isSerializingDeri
10860
11252
  writer.writeStringValue("name", userRequest.name);
10861
11253
  writer.writeObjectValue("notificationPreferences", userRequest.notificationPreferences, serializeUserRequest_notificationPreferences);
10862
11254
  writer.writeStringValue("phone", userRequest.phone);
11255
+ writer.writeStringValue("timeZoneId", userRequest.timeZoneId);
10863
11256
  writer.writeAdditionalData(userRequest.additionalData);
10864
11257
  }
10865
11258
  /**
@@ -10934,6 +11327,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
10934
11327
  writer.writeStringValue("phone", userResponse.phone);
10935
11328
  writer.writeObjectValue("roles", userResponse.roles);
10936
11329
  writer.writeEnumValue("subscriptionStatus", userResponse.subscriptionStatus);
11330
+ writer.writeStringValue("timeZoneId", userResponse.timeZoneId);
10937
11331
  writer.writeAdditionalData(userResponse.additionalData);
10938
11332
  }
10939
11333
  /**
@@ -11839,6 +12233,34 @@ export const PhoneCallStatusObject = {
11839
12233
  Blocked_permission: "blocked_permission",
11840
12234
  Configuration_required: "configuration_required",
11841
12235
  };
12236
+ /**
12237
+ * An enumerator describing phone line types
12238
+ */
12239
+ export const PhoneLookup_lineTypeObject = {
12240
+ Wireline: "Wireline",
12241
+ Wireless: "Wireless",
12242
+ VoWiFi: "VoWiFi",
12243
+ VoIP: "VoIP",
12244
+ PrePaidWireless: "PrePaidWireless",
12245
+ Unknown: "Unknown",
12246
+ };
12247
+ /**
12248
+ * An enumerator describing carrier types
12249
+ */
12250
+ export const PhoneLookupCarrier_typeObject = {
12251
+ FixedLine: "FixedLine",
12252
+ Mobile: "Mobile",
12253
+ Voip: "Voip",
12254
+ FixedLineOrMobile: "FixedLineOrMobile",
12255
+ TollFree: "TollFree",
12256
+ PremiumRate: "PremiumRate",
12257
+ SharedCost: "SharedCost",
12258
+ PersonalNumber: "PersonalNumber",
12259
+ Pager: "Pager",
12260
+ Uan: "Uan",
12261
+ Voicemail: "Voicemail",
12262
+ Unknown: "Unknown",
12263
+ };
11842
12264
  /**
11843
12265
  * Defines phone-number outbound health states used by pacing.
11844
12266
  */
@@ -11852,6 +12274,16 @@ export const PhoneNumberOutboundHealthStatusObject = {
11852
12274
  Suspended: "suspended",
11853
12275
  Disabled: "disabled",
11854
12276
  };
12277
+ /**
12278
+ * Defines the supported voice call warmup stages for a Leadping-managed phone number.
12279
+ */
12280
+ export const PhoneNumberReadiness_callStageObject = {
12281
+ Stage0: "Stage 0",
12282
+ Stage1: "Stage 1",
12283
+ Stage2: "Stage 2",
12284
+ Stage3: "Stage 3",
12285
+ Stage4: "Stage 4",
12286
+ };
11855
12287
  /**
11856
12288
  * Defines the supported SMS readiness health assessments.
11857
12289
  */