@leadping/sdk 1.0.81 → 1.0.83

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.
@@ -777,6 +777,24 @@ export function createLeadArchiveRequestFromDiscriminatorValue(parseNode) {
777
777
  export function createLeadAssignmentRequestFromDiscriminatorValue(parseNode) {
778
778
  return deserializeIntoLeadAssignmentRequest;
779
779
  }
780
+ /**
781
+ * Creates a new instance of the appropriate class based on discriminator value
782
+ * @param parseNode The parse node to use to read the discriminator value and create the object
783
+ * @returns {LeadCallbackWindow}
784
+ */
785
+ // @ts-ignore
786
+ export function createLeadCallbackWindowFromDiscriminatorValue(parseNode) {
787
+ return deserializeIntoLeadCallbackWindow;
788
+ }
789
+ /**
790
+ * Creates a new instance of the appropriate class based on discriminator value
791
+ * @param parseNode The parse node to use to read the discriminator value and create the object
792
+ * @returns {LeadCompany}
793
+ */
794
+ // @ts-ignore
795
+ export function createLeadCompanyFromDiscriminatorValue(parseNode) {
796
+ return deserializeIntoLeadCompany;
797
+ }
780
798
  /**
781
799
  * Creates a new instance of the appropriate class based on discriminator value
782
800
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -813,6 +831,15 @@ export function createLeadContact_streetAddressFromDiscriminatorValue(parseNode)
813
831
  export function createLeadContactFromDiscriminatorValue(parseNode) {
814
832
  return deserializeIntoLeadContact;
815
833
  }
834
+ /**
835
+ * Creates a new instance of the appropriate class based on discriminator value
836
+ * @param parseNode The parse node to use to read the discriminator value and create the object
837
+ * @returns {LeadContactPreferences}
838
+ */
839
+ // @ts-ignore
840
+ export function createLeadContactPreferencesFromDiscriminatorValue(parseNode) {
841
+ return deserializeIntoLeadContactPreferences;
842
+ }
816
843
  /**
817
844
  * Creates a new instance of the appropriate class based on discriminator value
818
845
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -822,6 +849,69 @@ export function createLeadContactFromDiscriminatorValue(parseNode) {
822
849
  export function createLeadFollowUpUpdateRequestFromDiscriminatorValue(parseNode) {
823
850
  return deserializeIntoLeadFollowUpUpdateRequest;
824
851
  }
852
+ /**
853
+ * Creates a new instance of the appropriate class based on discriminator value
854
+ * @param parseNode The parse node to use to read the discriminator value and create the object
855
+ * @returns {LeadInquiry}
856
+ */
857
+ // @ts-ignore
858
+ export function createLeadInquiryFromDiscriminatorValue(parseNode) {
859
+ return deserializeIntoLeadInquiry;
860
+ }
861
+ /**
862
+ * Creates a new instance of the appropriate class based on discriminator value
863
+ * @param parseNode The parse node to use to read the discriminator value and create the object
864
+ * @returns {LeadIntakeRequest_company}
865
+ */
866
+ // @ts-ignore
867
+ export function createLeadIntakeRequest_companyFromDiscriminatorValue(parseNode) {
868
+ return deserializeIntoLeadIntakeRequest_company;
869
+ }
870
+ /**
871
+ * Creates a new instance of the appropriate class based on discriminator value
872
+ * @param parseNode The parse node to use to read the discriminator value and create the object
873
+ * @returns {LeadIntakeRequest_contactPreferences}
874
+ */
875
+ // @ts-ignore
876
+ export function createLeadIntakeRequest_contactPreferencesFromDiscriminatorValue(parseNode) {
877
+ return deserializeIntoLeadIntakeRequest_contactPreferences;
878
+ }
879
+ /**
880
+ * Creates a new instance of the appropriate class based on discriminator value
881
+ * @param parseNode The parse node to use to read the discriminator value and create the object
882
+ * @returns {LeadIntakeRequest_customFields}
883
+ */
884
+ // @ts-ignore
885
+ export function createLeadIntakeRequest_customFieldsFromDiscriminatorValue(parseNode) {
886
+ return deserializeIntoLeadIntakeRequest_customFields;
887
+ }
888
+ /**
889
+ * Creates a new instance of the appropriate class based on discriminator value
890
+ * @param parseNode The parse node to use to read the discriminator value and create the object
891
+ * @returns {LeadIntakeRequest_inquiry}
892
+ */
893
+ // @ts-ignore
894
+ export function createLeadIntakeRequest_inquiryFromDiscriminatorValue(parseNode) {
895
+ return deserializeIntoLeadIntakeRequest_inquiry;
896
+ }
897
+ /**
898
+ * Creates a new instance of the appropriate class based on discriminator value
899
+ * @param parseNode The parse node to use to read the discriminator value and create the object
900
+ * @returns {LeadIntakeRequest_profile}
901
+ */
902
+ // @ts-ignore
903
+ export function createLeadIntakeRequest_profileFromDiscriminatorValue(parseNode) {
904
+ return deserializeIntoLeadIntakeRequest_profile;
905
+ }
906
+ /**
907
+ * Creates a new instance of the appropriate class based on discriminator value
908
+ * @param parseNode The parse node to use to read the discriminator value and create the object
909
+ * @returns {LeadIntakeRequest_serviceAddress}
910
+ */
911
+ // @ts-ignore
912
+ export function createLeadIntakeRequest_serviceAddressFromDiscriminatorValue(parseNode) {
913
+ return deserializeIntoLeadIntakeRequest_serviceAddress;
914
+ }
825
915
  /**
826
916
  * Creates a new instance of the appropriate class based on discriminator value
827
917
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -867,6 +957,15 @@ export function createLeadMetadataFromDiscriminatorValue(parseNode) {
867
957
  export function createLeadpingConsentCertificateFromDiscriminatorValue(parseNode) {
868
958
  return deserializeIntoLeadpingConsentCertificate;
869
959
  }
960
+ /**
961
+ * Creates a new instance of the appropriate class based on discriminator value
962
+ * @param parseNode The parse node to use to read the discriminator value and create the object
963
+ * @returns {LeadProfile_qualification}
964
+ */
965
+ // @ts-ignore
966
+ export function createLeadProfile_qualificationFromDiscriminatorValue(parseNode) {
967
+ return deserializeIntoLeadProfile_qualification;
968
+ }
870
969
  /**
871
970
  * Creates a new instance of the appropriate class based on discriminator value
872
971
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -876,6 +975,69 @@ export function createLeadpingConsentCertificateFromDiscriminatorValue(parseNode
876
975
  export function createLeadProfileFromDiscriminatorValue(parseNode) {
877
976
  return deserializeIntoLeadProfile;
878
977
  }
978
+ /**
979
+ * Creates a new instance of the appropriate class based on discriminator value
980
+ * @param parseNode The parse node to use to read the discriminator value and create the object
981
+ * @returns {LeadQualification}
982
+ */
983
+ // @ts-ignore
984
+ export function createLeadQualificationFromDiscriminatorValue(parseNode) {
985
+ return deserializeIntoLeadQualification;
986
+ }
987
+ /**
988
+ * Creates a new instance of the appropriate class based on discriminator value
989
+ * @param parseNode The parse node to use to read the discriminator value and create the object
990
+ * @returns {LeadRequest_company}
991
+ */
992
+ // @ts-ignore
993
+ export function createLeadRequest_companyFromDiscriminatorValue(parseNode) {
994
+ return deserializeIntoLeadRequest_company;
995
+ }
996
+ /**
997
+ * Creates a new instance of the appropriate class based on discriminator value
998
+ * @param parseNode The parse node to use to read the discriminator value and create the object
999
+ * @returns {LeadRequest_contactPreferences}
1000
+ */
1001
+ // @ts-ignore
1002
+ export function createLeadRequest_contactPreferencesFromDiscriminatorValue(parseNode) {
1003
+ return deserializeIntoLeadRequest_contactPreferences;
1004
+ }
1005
+ /**
1006
+ * Creates a new instance of the appropriate class based on discriminator value
1007
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1008
+ * @returns {LeadRequest_customFields}
1009
+ */
1010
+ // @ts-ignore
1011
+ export function createLeadRequest_customFieldsFromDiscriminatorValue(parseNode) {
1012
+ return deserializeIntoLeadRequest_customFields;
1013
+ }
1014
+ /**
1015
+ * Creates a new instance of the appropriate class based on discriminator value
1016
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1017
+ * @returns {LeadRequest_inquiry}
1018
+ */
1019
+ // @ts-ignore
1020
+ export function createLeadRequest_inquiryFromDiscriminatorValue(parseNode) {
1021
+ return deserializeIntoLeadRequest_inquiry;
1022
+ }
1023
+ /**
1024
+ * Creates a new instance of the appropriate class based on discriminator value
1025
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1026
+ * @returns {LeadRequest_profile}
1027
+ */
1028
+ // @ts-ignore
1029
+ export function createLeadRequest_profileFromDiscriminatorValue(parseNode) {
1030
+ return deserializeIntoLeadRequest_profile;
1031
+ }
1032
+ /**
1033
+ * Creates a new instance of the appropriate class based on discriminator value
1034
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1035
+ * @returns {LeadRequest_serviceAddress}
1036
+ */
1037
+ // @ts-ignore
1038
+ export function createLeadRequest_serviceAddressFromDiscriminatorValue(parseNode) {
1039
+ return deserializeIntoLeadRequest_serviceAddress;
1040
+ }
879
1041
  /**
880
1042
  * Creates a new instance of the appropriate class based on discriminator value
881
1043
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -894,6 +1056,24 @@ export function createLeadRequestFromDiscriminatorValue(parseNode) {
894
1056
  export function createLeadResponse_assignedToFromDiscriminatorValue(parseNode) {
895
1057
  return deserializeIntoLeadResponse_assignedTo;
896
1058
  }
1059
+ /**
1060
+ * Creates a new instance of the appropriate class based on discriminator value
1061
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1062
+ * @returns {LeadResponse_company}
1063
+ */
1064
+ // @ts-ignore
1065
+ export function createLeadResponse_companyFromDiscriminatorValue(parseNode) {
1066
+ return deserializeIntoLeadResponse_company;
1067
+ }
1068
+ /**
1069
+ * Creates a new instance of the appropriate class based on discriminator value
1070
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1071
+ * @returns {LeadResponse_contactPreferences}
1072
+ */
1073
+ // @ts-ignore
1074
+ export function createLeadResponse_contactPreferencesFromDiscriminatorValue(parseNode) {
1075
+ return deserializeIntoLeadResponse_contactPreferences;
1076
+ }
897
1077
  /**
898
1078
  * Creates a new instance of the appropriate class based on discriminator value
899
1079
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -903,6 +1083,24 @@ export function createLeadResponse_assignedToFromDiscriminatorValue(parseNode) {
903
1083
  export function createLeadResponse_currentLeadStatusFromDiscriminatorValue(parseNode) {
904
1084
  return deserializeIntoLeadResponse_currentLeadStatus;
905
1085
  }
1086
+ /**
1087
+ * Creates a new instance of the appropriate class based on discriminator value
1088
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1089
+ * @returns {LeadResponse_customFields}
1090
+ */
1091
+ // @ts-ignore
1092
+ export function createLeadResponse_customFieldsFromDiscriminatorValue(parseNode) {
1093
+ return deserializeIntoLeadResponse_customFields;
1094
+ }
1095
+ /**
1096
+ * Creates a new instance of the appropriate class based on discriminator value
1097
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1098
+ * @returns {LeadResponse_inquiry}
1099
+ */
1100
+ // @ts-ignore
1101
+ export function createLeadResponse_inquiryFromDiscriminatorValue(parseNode) {
1102
+ return deserializeIntoLeadResponse_inquiry;
1103
+ }
906
1104
  /**
907
1105
  * Creates a new instance of the appropriate class based on discriminator value
908
1106
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -912,6 +1110,24 @@ export function createLeadResponse_currentLeadStatusFromDiscriminatorValue(parse
912
1110
  export function createLeadResponse_phoneIdentityFromDiscriminatorValue(parseNode) {
913
1111
  return deserializeIntoLeadResponse_phoneIdentity;
914
1112
  }
1113
+ /**
1114
+ * Creates a new instance of the appropriate class based on discriminator value
1115
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1116
+ * @returns {LeadResponse_profile}
1117
+ */
1118
+ // @ts-ignore
1119
+ export function createLeadResponse_profileFromDiscriminatorValue(parseNode) {
1120
+ return deserializeIntoLeadResponse_profile;
1121
+ }
1122
+ /**
1123
+ * Creates a new instance of the appropriate class based on discriminator value
1124
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1125
+ * @returns {LeadResponse_serviceAddress}
1126
+ */
1127
+ // @ts-ignore
1128
+ export function createLeadResponse_serviceAddressFromDiscriminatorValue(parseNode) {
1129
+ return deserializeIntoLeadResponse_serviceAddress;
1130
+ }
915
1131
  /**
916
1132
  * Creates a new instance of the appropriate class based on discriminator value
917
1133
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3993,6 +4209,34 @@ export function deserializeIntoLeadAssignmentRequest(leadAssignmentRequest = {})
3993
4209
  "assignedToUserId": n => { leadAssignmentRequest.assignedToUserId = n.getStringValue(); },
3994
4210
  };
3995
4211
  }
4212
+ /**
4213
+ * The deserialization information for the current model
4214
+ * @param LeadCallbackWindow The instance to deserialize into.
4215
+ * @returns {Record<string, (node: ParseNode) => void>}
4216
+ */
4217
+ // @ts-ignore
4218
+ export function deserializeIntoLeadCallbackWindow(leadCallbackWindow = {}) {
4219
+ return {
4220
+ "date": n => { leadCallbackWindow.date = n.getDateOnlyValue(); },
4221
+ "end": n => { leadCallbackWindow.end = n.getTimeOnlyValue(); },
4222
+ "start": n => { leadCallbackWindow.start = n.getTimeOnlyValue(); },
4223
+ };
4224
+ }
4225
+ /**
4226
+ * The deserialization information for the current model
4227
+ * @param LeadCompany The instance to deserialize into.
4228
+ * @returns {Record<string, (node: ParseNode) => void>}
4229
+ */
4230
+ // @ts-ignore
4231
+ export function deserializeIntoLeadCompany(leadCompany = {}) {
4232
+ return {
4233
+ "employeeCount": n => { leadCompany.employeeCount = n.getNumberValue(); },
4234
+ "industry": n => { leadCompany.industry = n.getStringValue(); },
4235
+ "jobTitle": n => { leadCompany.jobTitle = n.getStringValue(); },
4236
+ "name": n => { leadCompany.name = n.getStringValue(); },
4237
+ "website": n => { leadCompany.website = n.getStringValue(); },
4238
+ };
4239
+ }
3996
4240
  /**
3997
4241
  * The deserialization information for the current model
3998
4242
  * @param LeadContact The instance to deserialize into.
@@ -4044,6 +4288,19 @@ export function deserializeIntoLeadContact_streetAddress(leadContact_streetAddre
4044
4288
  ...deserializeIntoStreetAddress(leadContact_streetAddress),
4045
4289
  };
4046
4290
  }
4291
+ /**
4292
+ * The deserialization information for the current model
4293
+ * @param LeadContactPreferences The instance to deserialize into.
4294
+ * @returns {Record<string, (node: ParseNode) => void>}
4295
+ */
4296
+ // @ts-ignore
4297
+ export function deserializeIntoLeadContactPreferences(leadContactPreferences = {}) {
4298
+ return {
4299
+ "callbackWindows": n => { leadContactPreferences.callbackWindows = n.getCollectionOfObjectValues(createLeadCallbackWindowFromDiscriminatorValue); },
4300
+ "channel": n => { leadContactPreferences.channel = n.getEnumValue(LeadContactPreferences_channelObject); },
4301
+ "language": n => { leadContactPreferences.language = n.getStringValue(); },
4302
+ };
4303
+ }
4047
4304
  /**
4048
4305
  * The deserialization information for the current model
4049
4306
  * @param LeadFollowUpUpdateRequest The instance to deserialize into.
@@ -4057,6 +4314,23 @@ export function deserializeIntoLeadFollowUpUpdateRequest(leadFollowUpUpdateReque
4057
4314
  "expectedStatusId": n => { leadFollowUpUpdateRequest.expectedStatusId = n.getStringValue(); },
4058
4315
  };
4059
4316
  }
4317
+ /**
4318
+ * The deserialization information for the current model
4319
+ * @param LeadInquiry The instance to deserialize into.
4320
+ * @returns {Record<string, (node: ParseNode) => void>}
4321
+ */
4322
+ // @ts-ignore
4323
+ export function deserializeIntoLeadInquiry(leadInquiry = {}) {
4324
+ return {
4325
+ "budgetMaximum": n => { leadInquiry.budgetMaximum = n.getNumberValue(); },
4326
+ "budgetMinimum": n => { leadInquiry.budgetMinimum = n.getNumberValue(); },
4327
+ "currency": n => { leadInquiry.currency = n.getStringValue(); },
4328
+ "description": n => { leadInquiry.description = n.getStringValue(); },
4329
+ "desiredStartDate": n => { leadInquiry.desiredStartDate = n.getDateOnlyValue(); },
4330
+ "service": n => { leadInquiry.service = n.getStringValue(); },
4331
+ "urgency": n => { leadInquiry.urgency = n.getEnumValue(LeadInquiry_urgencyObject); },
4332
+ };
4333
+ }
4060
4334
  /**
4061
4335
  * The deserialization information for the current model
4062
4336
  * @param LeadIntakeRequest The instance to deserialize into.
@@ -4068,9 +4342,18 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4068
4342
  "address1": n => { leadIntakeRequest.address1 = n.getStringValue(); },
4069
4343
  "address2": n => { leadIntakeRequest.address2 = n.getStringValue(); },
4070
4344
  "birthDate": n => { leadIntakeRequest.birthDate = n.getDateOnlyValue(); },
4345
+ "capturedAt": n => { leadIntakeRequest.capturedAt = n.getDateValue(); },
4346
+ "captureIpAddress": n => { leadIntakeRequest.captureIpAddress = n.getStringValue(); },
4347
+ "captureUserAgent": n => { leadIntakeRequest.captureUserAgent = n.getStringValue(); },
4071
4348
  "city": n => { leadIntakeRequest.city = n.getStringValue(); },
4349
+ "company": n => { leadIntakeRequest.company = n.getObjectValue(createLeadIntakeRequest_companyFromDiscriminatorValue); },
4350
+ "consentAttested": n => { leadIntakeRequest.consentAttested = n.getBooleanValue(); },
4072
4351
  "consentCertificateType": n => { leadIntakeRequest.consentCertificateType = n.getEnumValue(LeadIntakeRequest_consentCertificateTypeObject); },
4073
4352
  "consentCertificateUrl": n => { leadIntakeRequest.consentCertificateUrl = n.getStringValue(); },
4353
+ "contactPreferences": n => { leadIntakeRequest.contactPreferences = n.getObjectValue(createLeadIntakeRequest_contactPreferencesFromDiscriminatorValue); },
4354
+ "country": n => { leadIntakeRequest.country = n.getStringValue(); },
4355
+ "currency": n => { leadIntakeRequest.currency = n.getStringValue(); },
4356
+ "customFields": n => { leadIntakeRequest.customFields = n.getObjectValue(createLeadIntakeRequest_customFieldsFromDiscriminatorValue); },
4074
4357
  "dateOfBirth": n => { leadIntakeRequest.dateOfBirth = n.getDateOnlyValue(); },
4075
4358
  "directPostPrice": n => { leadIntakeRequest.directPostPrice = n.getNumberValue(); },
4076
4359
  "email": n => { leadIntakeRequest.email = n.getStringValue(); },
@@ -4078,6 +4361,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4078
4361
  "firstName": n => { leadIntakeRequest.firstName = n.getStringValue(); },
4079
4362
  "gender": n => { leadIntakeRequest.gender = n.getStringValue(); },
4080
4363
  "idempotencyKey": n => { leadIntakeRequest.idempotencyKey = n.getStringValue(); },
4364
+ "inquiry": n => { leadIntakeRequest.inquiry = n.getObjectValue(createLeadIntakeRequest_inquiryFromDiscriminatorValue); },
4081
4365
  "landingPage": n => { leadIntakeRequest.landingPage = n.getStringValue(); },
4082
4366
  "lastName": n => { leadIntakeRequest.lastName = n.getStringValue(); },
4083
4367
  "phone": n => { leadIntakeRequest.phone = n.getStringValue(); },
@@ -4085,14 +4369,18 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4085
4369
  "postalCode": n => { leadIntakeRequest.postalCode = n.getStringValue(); },
4086
4370
  "price": n => { leadIntakeRequest.price = n.getNumberValue(); },
4087
4371
  "product": n => { leadIntakeRequest.product = n.getStringValue(); },
4372
+ "profile": n => { leadIntakeRequest.profile = n.getObjectValue(createLeadIntakeRequest_profileFromDiscriminatorValue); },
4373
+ "pubId": n => { leadIntakeRequest.pubId = n.getStringValue(); },
4088
4374
  "referrer": n => { leadIntakeRequest.referrer = n.getStringValue(); },
4089
4375
  "sellerLeadId": n => { leadIntakeRequest.sellerLeadId = n.getStringValue(); },
4090
4376
  "sellerLeadIdentifier": n => { leadIntakeRequest.sellerLeadIdentifier = n.getStringValue(); },
4377
+ "serviceAddress": n => { leadIntakeRequest.serviceAddress = n.getObjectValue(createLeadIntakeRequest_serviceAddressFromDiscriminatorValue); },
4091
4378
  "sourceMetadata": n => { leadIntakeRequest.sourceMetadata = n.getObjectValue(createLeadIntakeRequest_sourceMetadataFromDiscriminatorValue); },
4092
4379
  "state": n => { leadIntakeRequest.state = n.getStringValue(); },
4093
4380
  "subId": n => { leadIntakeRequest.subId = n.getStringValue(); },
4094
4381
  "tagIds": n => { leadIntakeRequest.tagIds = n.getCollectionOfPrimitiveValues("string"); },
4095
4382
  "tagNames": n => { leadIntakeRequest.tagNames = n.getCollectionOfPrimitiveValues("string"); },
4383
+ "timeZoneId": n => { leadIntakeRequest.timeZoneId = n.getStringValue(); },
4096
4384
  "utmCampaign": n => { leadIntakeRequest.utmCampaign = n.getStringValue(); },
4097
4385
  "utmContent": n => { leadIntakeRequest.utmContent = n.getStringValue(); },
4098
4386
  "utmMedium": n => { leadIntakeRequest.utmMedium = n.getStringValue(); },
@@ -4102,6 +4390,70 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4102
4390
  "zip": n => { leadIntakeRequest.zip = n.getStringValue(); },
4103
4391
  };
4104
4392
  }
4393
+ /**
4394
+ * The deserialization information for the current model
4395
+ * @param LeadIntakeRequest_company The instance to deserialize into.
4396
+ * @returns {Record<string, (node: ParseNode) => void>}
4397
+ */
4398
+ // @ts-ignore
4399
+ export function deserializeIntoLeadIntakeRequest_company(leadIntakeRequest_company = {}) {
4400
+ return {
4401
+ ...deserializeIntoLeadCompany(leadIntakeRequest_company),
4402
+ };
4403
+ }
4404
+ /**
4405
+ * The deserialization information for the current model
4406
+ * @param LeadIntakeRequest_contactPreferences The instance to deserialize into.
4407
+ * @returns {Record<string, (node: ParseNode) => void>}
4408
+ */
4409
+ // @ts-ignore
4410
+ export function deserializeIntoLeadIntakeRequest_contactPreferences(leadIntakeRequest_contactPreferences = {}) {
4411
+ return {
4412
+ ...deserializeIntoLeadContactPreferences(leadIntakeRequest_contactPreferences),
4413
+ };
4414
+ }
4415
+ /**
4416
+ * The deserialization information for the current model
4417
+ * @param LeadIntakeRequest_customFields The instance to deserialize into.
4418
+ * @returns {Record<string, (node: ParseNode) => void>}
4419
+ */
4420
+ // @ts-ignore
4421
+ export function deserializeIntoLeadIntakeRequest_customFields(leadIntakeRequest_customFields = {}) {
4422
+ return {};
4423
+ }
4424
+ /**
4425
+ * The deserialization information for the current model
4426
+ * @param LeadIntakeRequest_inquiry The instance to deserialize into.
4427
+ * @returns {Record<string, (node: ParseNode) => void>}
4428
+ */
4429
+ // @ts-ignore
4430
+ export function deserializeIntoLeadIntakeRequest_inquiry(leadIntakeRequest_inquiry = {}) {
4431
+ return {
4432
+ ...deserializeIntoLeadInquiry(leadIntakeRequest_inquiry),
4433
+ };
4434
+ }
4435
+ /**
4436
+ * The deserialization information for the current model
4437
+ * @param LeadIntakeRequest_profile The instance to deserialize into.
4438
+ * @returns {Record<string, (node: ParseNode) => void>}
4439
+ */
4440
+ // @ts-ignore
4441
+ export function deserializeIntoLeadIntakeRequest_profile(leadIntakeRequest_profile = {}) {
4442
+ return {
4443
+ ...deserializeIntoLeadProfile(leadIntakeRequest_profile),
4444
+ };
4445
+ }
4446
+ /**
4447
+ * The deserialization information for the current model
4448
+ * @param LeadIntakeRequest_serviceAddress The instance to deserialize into.
4449
+ * @returns {Record<string, (node: ParseNode) => void>}
4450
+ */
4451
+ // @ts-ignore
4452
+ export function deserializeIntoLeadIntakeRequest_serviceAddress(leadIntakeRequest_serviceAddress = {}) {
4453
+ return {
4454
+ ...deserializeIntoStreetAddress(leadIntakeRequest_serviceAddress),
4455
+ };
4456
+ }
4105
4457
  /**
4106
4458
  * The deserialization information for the current model
4107
4459
  * @param LeadIntakeRequest_sourceMetadata The instance to deserialize into.
@@ -4120,11 +4472,17 @@ export function deserializeIntoLeadIntakeRequest_sourceMetadata(leadIntakeReques
4120
4472
  export function deserializeIntoLeadMetadata(leadMetadata = {}) {
4121
4473
  return {
4122
4474
  "assignedPhoneNumberId": n => { leadMetadata.assignedPhoneNumberId = n.getStringValue(); },
4475
+ "capturedAt": n => { leadMetadata.capturedAt = n.getDateValue(); },
4476
+ "captureIpAddress": n => { leadMetadata.captureIpAddress = n.getStringValue(); },
4477
+ "captureUserAgent": n => { leadMetadata.captureUserAgent = n.getStringValue(); },
4123
4478
  "complianceBlockedReason": n => { leadMetadata.complianceBlockedReason = n.getStringValue(); },
4124
4479
  "complianceStatus": n => { leadMetadata.complianceStatus = n.getStringValue(); },
4480
+ "consentAttested": n => { leadMetadata.consentAttested = n.getBooleanValue(); },
4125
4481
  "consentCertificateType": n => { leadMetadata.consentCertificateType = n.getEnumValue(LeadMetadata_consentCertificateTypeObject); },
4126
4482
  "consentCertificateUrl": n => { leadMetadata.consentCertificateUrl = n.getStringValue(); },
4483
+ "consentVerificationStatus": n => { leadMetadata.consentVerificationStatus = n.getEnumValue(ConsentVerificationStatusObject); },
4127
4484
  "createdAt": n => { leadMetadata.createdAt = n.getDateValue(); },
4485
+ "currency": n => { leadMetadata.currency = n.getStringValue(); },
4128
4486
  "directPostPrice": n => { leadMetadata.directPostPrice = n.getNumberValue(); },
4129
4487
  "externalId": n => { leadMetadata.externalId = n.getStringValue(); },
4130
4488
  "importBatchId": n => { leadMetadata.importBatchId = n.getStringValue(); },
@@ -4190,18 +4548,41 @@ export function deserializeIntoLeadpingConsentCertificate(leadpingConsentCertifi
4190
4548
  export function deserializeIntoLeadProfile(leadProfile = {}) {
4191
4549
  return {
4192
4550
  "birthDate": n => { leadProfile.birthDate = n.getDateOnlyValue(); },
4193
- "creditScore": n => { leadProfile.creditScore = n.getNumberValue(); },
4194
- "employmentType": n => { leadProfile.employmentType = n.getEnumValue(LeadProfile_employmentTypeObject); },
4195
4551
  "gender": n => { leadProfile.gender = n.getEnumValue(LeadProfile_genderObject); },
4196
- "hasBankruptcy": n => { leadProfile.hasBankruptcy = n.getBooleanValue(); },
4197
- "hasMedicalCondition": n => { leadProfile.hasMedicalCondition = n.getBooleanValue(); },
4198
- "height": n => { leadProfile.height = n.getNumberValue(); },
4199
- "income": n => { leadProfile.income = n.getNumberValue(); },
4200
- "isHomeowner": n => { leadProfile.isHomeowner = n.getBooleanValue(); },
4201
- "maritalStatus": n => { leadProfile.maritalStatus = n.getEnumValue(LeadProfile_maritalStatusObject); },
4202
- "monthsAtResidence": n => { leadProfile.monthsAtResidence = n.getNumberValue(); },
4203
- "numberOfDependents": n => { leadProfile.numberOfDependents = n.getNumberValue(); },
4204
- "weight": n => { leadProfile.weight = n.getNumberValue(); },
4552
+ "qualification": n => { leadProfile.qualification = n.getObjectValue(createLeadProfile_qualificationFromDiscriminatorValue); },
4553
+ };
4554
+ }
4555
+ /**
4556
+ * The deserialization information for the current model
4557
+ * @param LeadProfile_qualification The instance to deserialize into.
4558
+ * @returns {Record<string, (node: ParseNode) => void>}
4559
+ */
4560
+ // @ts-ignore
4561
+ export function deserializeIntoLeadProfile_qualification(leadProfile_qualification = {}) {
4562
+ return {
4563
+ ...deserializeIntoLeadQualification(leadProfile_qualification),
4564
+ };
4565
+ }
4566
+ /**
4567
+ * The deserialization information for the current model
4568
+ * @param LeadQualification The instance to deserialize into.
4569
+ * @returns {Record<string, (node: ParseNode) => void>}
4570
+ */
4571
+ // @ts-ignore
4572
+ export function deserializeIntoLeadQualification(leadQualification = {}) {
4573
+ return {
4574
+ "creditScore": n => { leadQualification.creditScore = n.getNumberValue(); },
4575
+ "employmentType": n => { leadQualification.employmentType = n.getEnumValue(LeadQualification_employmentTypeObject); },
4576
+ "hasBankruptcy": n => { leadQualification.hasBankruptcy = n.getBooleanValue(); },
4577
+ "hasMedicalCondition": n => { leadQualification.hasMedicalCondition = n.getBooleanValue(); },
4578
+ "height": n => { leadQualification.height = n.getNumberValue(); },
4579
+ "income": n => { leadQualification.income = n.getNumberValue(); },
4580
+ "incomeCurrency": n => { leadQualification.incomeCurrency = n.getStringValue(); },
4581
+ "isHomeowner": n => { leadQualification.isHomeowner = n.getBooleanValue(); },
4582
+ "maritalStatus": n => { leadQualification.maritalStatus = n.getEnumValue(LeadQualification_maritalStatusObject); },
4583
+ "monthsAtResidence": n => { leadQualification.monthsAtResidence = n.getNumberValue(); },
4584
+ "numberOfDependents": n => { leadQualification.numberOfDependents = n.getNumberValue(); },
4585
+ "weight": n => { leadQualification.weight = n.getNumberValue(); },
4205
4586
  };
4206
4587
  }
4207
4588
  /**
@@ -4212,15 +4593,84 @@ export function deserializeIntoLeadProfile(leadProfile = {}) {
4212
4593
  // @ts-ignore
4213
4594
  export function deserializeIntoLeadRequest(leadRequest = {}) {
4214
4595
  return {
4596
+ "company": n => { leadRequest.company = n.getObjectValue(createLeadRequest_companyFromDiscriminatorValue); },
4215
4597
  "contact": n => { leadRequest.contact = n.getObjectValue(createLeadContactFromDiscriminatorValue); },
4216
- "customer": n => { leadRequest.customer = n.getObjectValue(createLeadProfileFromDiscriminatorValue); },
4598
+ "contactPreferences": n => { leadRequest.contactPreferences = n.getObjectValue(createLeadRequest_contactPreferencesFromDiscriminatorValue); },
4599
+ "customFields": n => { leadRequest.customFields = n.getObjectValue(createLeadRequest_customFieldsFromDiscriminatorValue); },
4217
4600
  "enabled": n => { leadRequest.enabled = n.getBooleanValue(); },
4218
4601
  "id": n => { leadRequest.id = n.getStringValue(); },
4602
+ "inquiry": n => { leadRequest.inquiry = n.getObjectValue(createLeadRequest_inquiryFromDiscriminatorValue); },
4219
4603
  "metadata": n => { leadRequest.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
4604
+ "profile": n => { leadRequest.profile = n.getObjectValue(createLeadRequest_profileFromDiscriminatorValue); },
4605
+ "serviceAddress": n => { leadRequest.serviceAddress = n.getObjectValue(createLeadRequest_serviceAddressFromDiscriminatorValue); },
4220
4606
  "tagIds": n => { leadRequest.tagIds = n.getCollectionOfPrimitiveValues("string"); },
4221
4607
  "tagNames": n => { leadRequest.tagNames = n.getCollectionOfPrimitiveValues("string"); },
4222
4608
  };
4223
4609
  }
4610
+ /**
4611
+ * The deserialization information for the current model
4612
+ * @param LeadRequest_company The instance to deserialize into.
4613
+ * @returns {Record<string, (node: ParseNode) => void>}
4614
+ */
4615
+ // @ts-ignore
4616
+ export function deserializeIntoLeadRequest_company(leadRequest_company = {}) {
4617
+ return {
4618
+ ...deserializeIntoLeadCompany(leadRequest_company),
4619
+ };
4620
+ }
4621
+ /**
4622
+ * The deserialization information for the current model
4623
+ * @param LeadRequest_contactPreferences The instance to deserialize into.
4624
+ * @returns {Record<string, (node: ParseNode) => void>}
4625
+ */
4626
+ // @ts-ignore
4627
+ export function deserializeIntoLeadRequest_contactPreferences(leadRequest_contactPreferences = {}) {
4628
+ return {
4629
+ ...deserializeIntoLeadContactPreferences(leadRequest_contactPreferences),
4630
+ };
4631
+ }
4632
+ /**
4633
+ * The deserialization information for the current model
4634
+ * @param LeadRequest_customFields The instance to deserialize into.
4635
+ * @returns {Record<string, (node: ParseNode) => void>}
4636
+ */
4637
+ // @ts-ignore
4638
+ export function deserializeIntoLeadRequest_customFields(leadRequest_customFields = {}) {
4639
+ return {};
4640
+ }
4641
+ /**
4642
+ * The deserialization information for the current model
4643
+ * @param LeadRequest_inquiry The instance to deserialize into.
4644
+ * @returns {Record<string, (node: ParseNode) => void>}
4645
+ */
4646
+ // @ts-ignore
4647
+ export function deserializeIntoLeadRequest_inquiry(leadRequest_inquiry = {}) {
4648
+ return {
4649
+ ...deserializeIntoLeadInquiry(leadRequest_inquiry),
4650
+ };
4651
+ }
4652
+ /**
4653
+ * The deserialization information for the current model
4654
+ * @param LeadRequest_profile The instance to deserialize into.
4655
+ * @returns {Record<string, (node: ParseNode) => void>}
4656
+ */
4657
+ // @ts-ignore
4658
+ export function deserializeIntoLeadRequest_profile(leadRequest_profile = {}) {
4659
+ return {
4660
+ ...deserializeIntoLeadProfile(leadRequest_profile),
4661
+ };
4662
+ }
4663
+ /**
4664
+ * The deserialization information for the current model
4665
+ * @param LeadRequest_serviceAddress The instance to deserialize into.
4666
+ * @returns {Record<string, (node: ParseNode) => void>}
4667
+ */
4668
+ // @ts-ignore
4669
+ export function deserializeIntoLeadRequest_serviceAddress(leadRequest_serviceAddress = {}) {
4670
+ return {
4671
+ ...deserializeIntoStreetAddress(leadRequest_serviceAddress),
4672
+ };
4673
+ }
4224
4674
  /**
4225
4675
  * The deserialization information for the current model
4226
4676
  * @param LeadResponse The instance to deserialize into.
@@ -4235,14 +4685,17 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
4235
4685
  "archiveReason": n => { leadResponse.archiveReason = n.getNumberValue(); },
4236
4686
  "assignedTo": n => { leadResponse.assignedTo = n.getObjectValue(createLeadResponse_assignedToFromDiscriminatorValue); },
4237
4687
  "assignedToUserId": n => { leadResponse.assignedToUserId = n.getStringValue(); },
4688
+ "company": n => { leadResponse.company = n.getObjectValue(createLeadResponse_companyFromDiscriminatorValue); },
4238
4689
  "contact": n => { leadResponse.contact = n.getObjectValue(createLeadContactFromDiscriminatorValue); },
4690
+ "contactPreferences": n => { leadResponse.contactPreferences = n.getObjectValue(createLeadResponse_contactPreferencesFromDiscriminatorValue); },
4239
4691
  "createdAt": n => { leadResponse.createdAt = n.getDateValue(); },
4240
4692
  "currentLeadStatus": n => { leadResponse.currentLeadStatus = n.getObjectValue(createLeadResponse_currentLeadStatusFromDiscriminatorValue); },
4241
- "customer": n => { leadResponse.customer = n.getObjectValue(createLeadProfileFromDiscriminatorValue); },
4693
+ "customFields": n => { leadResponse.customFields = n.getObjectValue(createLeadResponse_customFieldsFromDiscriminatorValue); },
4242
4694
  "deletedAt": n => { leadResponse.deletedAt = n.getDateValue(); },
4243
4695
  "deletedByUserId": n => { leadResponse.deletedByUserId = n.getStringValue(); },
4244
4696
  "enabled": n => { leadResponse.enabled = n.getBooleanValue(); },
4245
4697
  "id": n => { leadResponse.id = n.getStringValue(); },
4698
+ "inquiry": n => { leadResponse.inquiry = n.getObjectValue(createLeadResponse_inquiryFromDiscriminatorValue); },
4246
4699
  "isArchived": n => { leadResponse.isArchived = n.getBooleanValue(); },
4247
4700
  "isDemo": n => { leadResponse.isDemo = n.getBooleanValue(); },
4248
4701
  "metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
@@ -4251,6 +4704,8 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
4251
4704
  "processingStatus": n => { leadResponse.processingStatus = n.getEnumValue(LeadResponse_processingStatusObject); },
4252
4705
  "processingStatusChangedAt": n => { leadResponse.processingStatusChangedAt = n.getDateValue(); },
4253
4706
  "processingStatusReason": n => { leadResponse.processingStatusReason = n.getStringValue(); },
4707
+ "profile": n => { leadResponse.profile = n.getObjectValue(createLeadResponse_profileFromDiscriminatorValue); },
4708
+ "serviceAddress": n => { leadResponse.serviceAddress = n.getObjectValue(createLeadResponse_serviceAddressFromDiscriminatorValue); },
4254
4709
  "tags": n => { leadResponse.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
4255
4710
  };
4256
4711
  }
@@ -4267,24 +4722,88 @@ export function deserializeIntoLeadResponse_assignedTo(leadResponse_assignedTo =
4267
4722
  }
4268
4723
  /**
4269
4724
  * The deserialization information for the current model
4270
- * @param LeadResponse_currentLeadStatus The instance to deserialize into.
4725
+ * @param LeadResponse_company The instance to deserialize into.
4726
+ * @returns {Record<string, (node: ParseNode) => void>}
4727
+ */
4728
+ // @ts-ignore
4729
+ export function deserializeIntoLeadResponse_company(leadResponse_company = {}) {
4730
+ return {
4731
+ ...deserializeIntoLeadCompany(leadResponse_company),
4732
+ };
4733
+ }
4734
+ /**
4735
+ * The deserialization information for the current model
4736
+ * @param LeadResponse_contactPreferences The instance to deserialize into.
4737
+ * @returns {Record<string, (node: ParseNode) => void>}
4738
+ */
4739
+ // @ts-ignore
4740
+ export function deserializeIntoLeadResponse_contactPreferences(leadResponse_contactPreferences = {}) {
4741
+ return {
4742
+ ...deserializeIntoLeadContactPreferences(leadResponse_contactPreferences),
4743
+ };
4744
+ }
4745
+ /**
4746
+ * The deserialization information for the current model
4747
+ * @param LeadResponse_currentLeadStatus The instance to deserialize into.
4748
+ * @returns {Record<string, (node: ParseNode) => void>}
4749
+ */
4750
+ // @ts-ignore
4751
+ export function deserializeIntoLeadResponse_currentLeadStatus(leadResponse_currentLeadStatus = {}) {
4752
+ return {
4753
+ ...deserializeIntoCurrentLeadStatusSummary(leadResponse_currentLeadStatus),
4754
+ };
4755
+ }
4756
+ /**
4757
+ * The deserialization information for the current model
4758
+ * @param LeadResponse_customFields The instance to deserialize into.
4759
+ * @returns {Record<string, (node: ParseNode) => void>}
4760
+ */
4761
+ // @ts-ignore
4762
+ export function deserializeIntoLeadResponse_customFields(leadResponse_customFields = {}) {
4763
+ return {};
4764
+ }
4765
+ /**
4766
+ * The deserialization information for the current model
4767
+ * @param LeadResponse_inquiry The instance to deserialize into.
4768
+ * @returns {Record<string, (node: ParseNode) => void>}
4769
+ */
4770
+ // @ts-ignore
4771
+ export function deserializeIntoLeadResponse_inquiry(leadResponse_inquiry = {}) {
4772
+ return {
4773
+ ...deserializeIntoLeadInquiry(leadResponse_inquiry),
4774
+ };
4775
+ }
4776
+ /**
4777
+ * The deserialization information for the current model
4778
+ * @param LeadResponse_phoneIdentity The instance to deserialize into.
4779
+ * @returns {Record<string, (node: ParseNode) => void>}
4780
+ */
4781
+ // @ts-ignore
4782
+ export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIdentity = {}) {
4783
+ return {
4784
+ ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
4785
+ };
4786
+ }
4787
+ /**
4788
+ * The deserialization information for the current model
4789
+ * @param LeadResponse_profile The instance to deserialize into.
4271
4790
  * @returns {Record<string, (node: ParseNode) => void>}
4272
4791
  */
4273
4792
  // @ts-ignore
4274
- export function deserializeIntoLeadResponse_currentLeadStatus(leadResponse_currentLeadStatus = {}) {
4793
+ export function deserializeIntoLeadResponse_profile(leadResponse_profile = {}) {
4275
4794
  return {
4276
- ...deserializeIntoCurrentLeadStatusSummary(leadResponse_currentLeadStatus),
4795
+ ...deserializeIntoLeadProfile(leadResponse_profile),
4277
4796
  };
4278
4797
  }
4279
4798
  /**
4280
4799
  * The deserialization information for the current model
4281
- * @param LeadResponse_phoneIdentity The instance to deserialize into.
4800
+ * @param LeadResponse_serviceAddress The instance to deserialize into.
4282
4801
  * @returns {Record<string, (node: ParseNode) => void>}
4283
4802
  */
4284
4803
  // @ts-ignore
4285
- export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIdentity = {}) {
4804
+ export function deserializeIntoLeadResponse_serviceAddress(leadResponse_serviceAddress = {}) {
4286
4805
  return {
4287
- ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
4806
+ ...deserializeIntoStreetAddress(leadResponse_serviceAddress),
4288
4807
  };
4289
4808
  }
4290
4809
  /**
@@ -6380,7 +6899,6 @@ export function deserializeIntoSourceMetricsResponse(sourceMetricsResponse = {})
6380
6899
  // @ts-ignore
6381
6900
  export function deserializeIntoSourceRequest(sourceRequest = {}) {
6382
6901
  return {
6383
- "allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
6384
6902
  "automaticPhoneLookup": n => { sourceRequest.automaticPhoneLookup = n.getBooleanValue(); },
6385
6903
  "defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
6386
6904
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
@@ -6397,7 +6915,6 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
6397
6915
  // @ts-ignore
6398
6916
  export function deserializeIntoSourceResponse(sourceResponse = {}) {
6399
6917
  return {
6400
- "allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
6401
6918
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
6402
6919
  "apiKeyRotatedAt": n => { sourceResponse.apiKeyRotatedAt = n.getDateValue(); },
6403
6920
  "automaticPhoneLookup": n => { sourceResponse.automaticPhoneLookup = n.getBooleanValue(); },
@@ -6474,7 +6991,6 @@ export function deserializeIntoSourceResponse_user(sourceResponse_user = {}) {
6474
6991
  // @ts-ignore
6475
6992
  export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
6476
6993
  return {
6477
- "allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
6478
6994
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
6479
6995
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
6480
6996
  "apiKeyRotatedAt": n => { sourceTableRow.apiKeyRotatedAt = n.getDateValue(); },
@@ -7117,6 +7633,10 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
7117
7633
  "newLeadSmsEnabled": n => { userNotificationPreferences.newLeadSmsEnabled = n.getBooleanValue(); },
7118
7634
  "paymentFailedEnabled": n => { userNotificationPreferences.paymentFailedEnabled = n.getBooleanValue(); },
7119
7635
  "paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
7636
+ "quietHoursEnabled": n => { userNotificationPreferences.quietHoursEnabled = n.getBooleanValue(); },
7637
+ "quietHoursEnd": n => { userNotificationPreferences.quietHoursEnd = n.getTimeOnlyValue(); },
7638
+ "quietHoursStart": n => { userNotificationPreferences.quietHoursStart = n.getTimeOnlyValue(); },
7639
+ "quietHoursTimeZoneId": n => { userNotificationPreferences.quietHoursTimeZoneId = n.getStringValue(); },
7120
7640
  "smsConsentCertificate": n => { userNotificationPreferences.smsConsentCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentCertificateFromDiscriminatorValue); },
7121
7641
  "smsConsentOptedIn": n => { userNotificationPreferences.smsConsentOptedIn = n.getBooleanValue(); },
7122
7642
  "smsConsentUpdatedAt": n => { userNotificationPreferences.smsConsentUpdatedAt = n.getDateValue(); },
@@ -9018,6 +9538,40 @@ export function serializeLeadAssignmentRequest(writer, leadAssignmentRequest = {
9018
9538
  writer.writeStringValue("assignedToUserId", leadAssignmentRequest.assignedToUserId);
9019
9539
  writer.writeAdditionalData(leadAssignmentRequest.additionalData);
9020
9540
  }
9541
+ /**
9542
+ * Serializes information the current object
9543
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9544
+ * @param LeadCallbackWindow The instance to serialize from.
9545
+ * @param writer Serialization writer to use to serialize this model
9546
+ */
9547
+ // @ts-ignore
9548
+ export function serializeLeadCallbackWindow(writer, leadCallbackWindow = {}, isSerializingDerivedType = false) {
9549
+ if (!leadCallbackWindow || isSerializingDerivedType) {
9550
+ return;
9551
+ }
9552
+ writer.writeDateOnlyValue("date", leadCallbackWindow.date);
9553
+ writer.writeTimeOnlyValue("end", leadCallbackWindow.end);
9554
+ writer.writeTimeOnlyValue("start", leadCallbackWindow.start);
9555
+ writer.writeAdditionalData(leadCallbackWindow.additionalData);
9556
+ }
9557
+ /**
9558
+ * Serializes information the current object
9559
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9560
+ * @param LeadCompany The instance to serialize from.
9561
+ * @param writer Serialization writer to use to serialize this model
9562
+ */
9563
+ // @ts-ignore
9564
+ export function serializeLeadCompany(writer, leadCompany = {}, isSerializingDerivedType = false) {
9565
+ if (!leadCompany || isSerializingDerivedType) {
9566
+ return;
9567
+ }
9568
+ writer.writeNumberValue("employeeCount", leadCompany.employeeCount);
9569
+ writer.writeStringValue("industry", leadCompany.industry);
9570
+ writer.writeStringValue("jobTitle", leadCompany.jobTitle);
9571
+ writer.writeStringValue("name", leadCompany.name);
9572
+ writer.writeStringValue("website", leadCompany.website);
9573
+ writer.writeAdditionalData(leadCompany.additionalData);
9574
+ }
9021
9575
  /**
9022
9576
  * Serializes information the current object
9023
9577
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9078,6 +9632,22 @@ export function serializeLeadContact_streetAddress(writer, leadContact_streetAdd
9078
9632
  }
9079
9633
  serializeStreetAddress(writer, leadContact_streetAddress, isSerializingDerivedType);
9080
9634
  }
9635
+ /**
9636
+ * Serializes information the current object
9637
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9638
+ * @param LeadContactPreferences The instance to serialize from.
9639
+ * @param writer Serialization writer to use to serialize this model
9640
+ */
9641
+ // @ts-ignore
9642
+ export function serializeLeadContactPreferences(writer, leadContactPreferences = {}, isSerializingDerivedType = false) {
9643
+ if (!leadContactPreferences || isSerializingDerivedType) {
9644
+ return;
9645
+ }
9646
+ writer.writeCollectionOfObjectValues("callbackWindows", leadContactPreferences.callbackWindows, serializeLeadCallbackWindow);
9647
+ writer.writeEnumValue("channel", leadContactPreferences.channel);
9648
+ writer.writeStringValue("language", leadContactPreferences.language);
9649
+ writer.writeAdditionalData(leadContactPreferences.additionalData);
9650
+ }
9081
9651
  /**
9082
9652
  * Serializes information the current object
9083
9653
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9094,6 +9664,26 @@ export function serializeLeadFollowUpUpdateRequest(writer, leadFollowUpUpdateReq
9094
9664
  writer.writeStringValue("expectedStatusId", leadFollowUpUpdateRequest.expectedStatusId);
9095
9665
  writer.writeAdditionalData(leadFollowUpUpdateRequest.additionalData);
9096
9666
  }
9667
+ /**
9668
+ * Serializes information the current object
9669
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9670
+ * @param LeadInquiry The instance to serialize from.
9671
+ * @param writer Serialization writer to use to serialize this model
9672
+ */
9673
+ // @ts-ignore
9674
+ export function serializeLeadInquiry(writer, leadInquiry = {}, isSerializingDerivedType = false) {
9675
+ if (!leadInquiry || isSerializingDerivedType) {
9676
+ return;
9677
+ }
9678
+ writer.writeNumberValue("budgetMaximum", leadInquiry.budgetMaximum);
9679
+ writer.writeNumberValue("budgetMinimum", leadInquiry.budgetMinimum);
9680
+ writer.writeStringValue("currency", leadInquiry.currency);
9681
+ writer.writeStringValue("description", leadInquiry.description);
9682
+ writer.writeDateOnlyValue("desiredStartDate", leadInquiry.desiredStartDate);
9683
+ writer.writeStringValue("service", leadInquiry.service);
9684
+ writer.writeEnumValue("urgency", leadInquiry.urgency);
9685
+ writer.writeAdditionalData(leadInquiry.additionalData);
9686
+ }
9097
9687
  /**
9098
9688
  * Serializes information the current object
9099
9689
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9108,9 +9698,18 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9108
9698
  writer.writeStringValue("address1", leadIntakeRequest.address1);
9109
9699
  writer.writeStringValue("address2", leadIntakeRequest.address2);
9110
9700
  writer.writeDateOnlyValue("birthDate", leadIntakeRequest.birthDate);
9701
+ writer.writeDateValue("capturedAt", leadIntakeRequest.capturedAt);
9702
+ writer.writeStringValue("captureIpAddress", leadIntakeRequest.captureIpAddress);
9703
+ writer.writeStringValue("captureUserAgent", leadIntakeRequest.captureUserAgent);
9111
9704
  writer.writeStringValue("city", leadIntakeRequest.city);
9705
+ writer.writeObjectValue("company", leadIntakeRequest.company, serializeLeadIntakeRequest_company);
9706
+ writer.writeBooleanValue("consentAttested", leadIntakeRequest.consentAttested);
9112
9707
  writer.writeEnumValue("consentCertificateType", leadIntakeRequest.consentCertificateType);
9113
9708
  writer.writeStringValue("consentCertificateUrl", leadIntakeRequest.consentCertificateUrl);
9709
+ writer.writeObjectValue("contactPreferences", leadIntakeRequest.contactPreferences, serializeLeadIntakeRequest_contactPreferences);
9710
+ writer.writeStringValue("country", leadIntakeRequest.country);
9711
+ writer.writeStringValue("currency", leadIntakeRequest.currency);
9712
+ writer.writeObjectValue("customFields", leadIntakeRequest.customFields, serializeLeadIntakeRequest_customFields);
9114
9713
  writer.writeDateOnlyValue("dateOfBirth", leadIntakeRequest.dateOfBirth);
9115
9714
  writer.writeNumberValue("directPostPrice", leadIntakeRequest.directPostPrice);
9116
9715
  writer.writeStringValue("email", leadIntakeRequest.email);
@@ -9118,6 +9717,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9118
9717
  writer.writeStringValue("firstName", leadIntakeRequest.firstName);
9119
9718
  writer.writeStringValue("gender", leadIntakeRequest.gender);
9120
9719
  writer.writeStringValue("idempotencyKey", leadIntakeRequest.idempotencyKey);
9720
+ writer.writeObjectValue("inquiry", leadIntakeRequest.inquiry, serializeLeadIntakeRequest_inquiry);
9121
9721
  writer.writeStringValue("landingPage", leadIntakeRequest.landingPage);
9122
9722
  writer.writeStringValue("lastName", leadIntakeRequest.lastName);
9123
9723
  writer.writeStringValue("phone", leadIntakeRequest.phone);
@@ -9125,14 +9725,18 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9125
9725
  writer.writeStringValue("postalCode", leadIntakeRequest.postalCode);
9126
9726
  writer.writeNumberValue("price", leadIntakeRequest.price);
9127
9727
  writer.writeStringValue("product", leadIntakeRequest.product);
9728
+ writer.writeObjectValue("profile", leadIntakeRequest.profile, serializeLeadIntakeRequest_profile);
9729
+ writer.writeStringValue("pubId", leadIntakeRequest.pubId);
9128
9730
  writer.writeStringValue("referrer", leadIntakeRequest.referrer);
9129
9731
  writer.writeStringValue("sellerLeadId", leadIntakeRequest.sellerLeadId);
9130
9732
  writer.writeStringValue("sellerLeadIdentifier", leadIntakeRequest.sellerLeadIdentifier);
9733
+ writer.writeObjectValue("serviceAddress", leadIntakeRequest.serviceAddress, serializeLeadIntakeRequest_serviceAddress);
9131
9734
  writer.writeObjectValue("sourceMetadata", leadIntakeRequest.sourceMetadata, serializeLeadIntakeRequest_sourceMetadata);
9132
9735
  writer.writeStringValue("state", leadIntakeRequest.state);
9133
9736
  writer.writeStringValue("subId", leadIntakeRequest.subId);
9134
9737
  writer.writeCollectionOfPrimitiveValues("tagIds", leadIntakeRequest.tagIds);
9135
9738
  writer.writeCollectionOfPrimitiveValues("tagNames", leadIntakeRequest.tagNames);
9739
+ writer.writeStringValue("timeZoneId", leadIntakeRequest.timeZoneId);
9136
9740
  writer.writeStringValue("utmCampaign", leadIntakeRequest.utmCampaign);
9137
9741
  writer.writeStringValue("utmContent", leadIntakeRequest.utmContent);
9138
9742
  writer.writeStringValue("utmMedium", leadIntakeRequest.utmMedium);
@@ -9142,6 +9746,84 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9142
9746
  writer.writeStringValue("zip", leadIntakeRequest.zip);
9143
9747
  writer.writeAdditionalData(leadIntakeRequest.additionalData);
9144
9748
  }
9749
+ /**
9750
+ * Serializes information the current object
9751
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9752
+ * @param LeadIntakeRequest_company The instance to serialize from.
9753
+ * @param writer Serialization writer to use to serialize this model
9754
+ */
9755
+ // @ts-ignore
9756
+ export function serializeLeadIntakeRequest_company(writer, leadIntakeRequest_company = {}, isSerializingDerivedType = false) {
9757
+ if (!leadIntakeRequest_company || isSerializingDerivedType) {
9758
+ return;
9759
+ }
9760
+ serializeLeadCompany(writer, leadIntakeRequest_company, isSerializingDerivedType);
9761
+ }
9762
+ /**
9763
+ * Serializes information the current object
9764
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9765
+ * @param LeadIntakeRequest_contactPreferences The instance to serialize from.
9766
+ * @param writer Serialization writer to use to serialize this model
9767
+ */
9768
+ // @ts-ignore
9769
+ export function serializeLeadIntakeRequest_contactPreferences(writer, leadIntakeRequest_contactPreferences = {}, isSerializingDerivedType = false) {
9770
+ if (!leadIntakeRequest_contactPreferences || isSerializingDerivedType) {
9771
+ return;
9772
+ }
9773
+ serializeLeadContactPreferences(writer, leadIntakeRequest_contactPreferences, isSerializingDerivedType);
9774
+ }
9775
+ /**
9776
+ * Serializes information the current object
9777
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9778
+ * @param LeadIntakeRequest_customFields The instance to serialize from.
9779
+ * @param writer Serialization writer to use to serialize this model
9780
+ */
9781
+ // @ts-ignore
9782
+ export function serializeLeadIntakeRequest_customFields(writer, leadIntakeRequest_customFields = {}, isSerializingDerivedType = false) {
9783
+ if (!leadIntakeRequest_customFields || isSerializingDerivedType) {
9784
+ return;
9785
+ }
9786
+ writer.writeAdditionalData(leadIntakeRequest_customFields.additionalData);
9787
+ }
9788
+ /**
9789
+ * Serializes information the current object
9790
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9791
+ * @param LeadIntakeRequest_inquiry The instance to serialize from.
9792
+ * @param writer Serialization writer to use to serialize this model
9793
+ */
9794
+ // @ts-ignore
9795
+ export function serializeLeadIntakeRequest_inquiry(writer, leadIntakeRequest_inquiry = {}, isSerializingDerivedType = false) {
9796
+ if (!leadIntakeRequest_inquiry || isSerializingDerivedType) {
9797
+ return;
9798
+ }
9799
+ serializeLeadInquiry(writer, leadIntakeRequest_inquiry, isSerializingDerivedType);
9800
+ }
9801
+ /**
9802
+ * Serializes information the current object
9803
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9804
+ * @param LeadIntakeRequest_profile The instance to serialize from.
9805
+ * @param writer Serialization writer to use to serialize this model
9806
+ */
9807
+ // @ts-ignore
9808
+ export function serializeLeadIntakeRequest_profile(writer, leadIntakeRequest_profile = {}, isSerializingDerivedType = false) {
9809
+ if (!leadIntakeRequest_profile || isSerializingDerivedType) {
9810
+ return;
9811
+ }
9812
+ serializeLeadProfile(writer, leadIntakeRequest_profile, isSerializingDerivedType);
9813
+ }
9814
+ /**
9815
+ * Serializes information the current object
9816
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9817
+ * @param LeadIntakeRequest_serviceAddress The instance to serialize from.
9818
+ * @param writer Serialization writer to use to serialize this model
9819
+ */
9820
+ // @ts-ignore
9821
+ export function serializeLeadIntakeRequest_serviceAddress(writer, leadIntakeRequest_serviceAddress = {}, isSerializingDerivedType = false) {
9822
+ if (!leadIntakeRequest_serviceAddress || isSerializingDerivedType) {
9823
+ return;
9824
+ }
9825
+ serializeStreetAddress(writer, leadIntakeRequest_serviceAddress, isSerializingDerivedType);
9826
+ }
9145
9827
  /**
9146
9828
  * Serializes information the current object
9147
9829
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9167,11 +9849,17 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
9167
9849
  return;
9168
9850
  }
9169
9851
  writer.writeStringValue("assignedPhoneNumberId", leadMetadata.assignedPhoneNumberId);
9852
+ writer.writeDateValue("capturedAt", leadMetadata.capturedAt);
9853
+ writer.writeStringValue("captureIpAddress", leadMetadata.captureIpAddress);
9854
+ writer.writeStringValue("captureUserAgent", leadMetadata.captureUserAgent);
9170
9855
  writer.writeStringValue("complianceBlockedReason", leadMetadata.complianceBlockedReason);
9171
9856
  writer.writeStringValue("complianceStatus", leadMetadata.complianceStatus);
9857
+ writer.writeBooleanValue("consentAttested", leadMetadata.consentAttested);
9172
9858
  writer.writeEnumValue("consentCertificateType", leadMetadata.consentCertificateType);
9173
9859
  writer.writeStringValue("consentCertificateUrl", leadMetadata.consentCertificateUrl);
9860
+ writer.writeEnumValue("consentVerificationStatus", leadMetadata.consentVerificationStatus);
9174
9861
  writer.writeDateValue("createdAt", leadMetadata.createdAt);
9862
+ writer.writeStringValue("currency", leadMetadata.currency);
9175
9863
  writer.writeNumberValue("directPostPrice", leadMetadata.directPostPrice);
9176
9864
  writer.writeStringValue("externalId", leadMetadata.externalId);
9177
9865
  writer.writeStringValue("importBatchId", leadMetadata.importBatchId);
@@ -9247,20 +9935,48 @@ export function serializeLeadProfile(writer, leadProfile = {}, isSerializingDeri
9247
9935
  return;
9248
9936
  }
9249
9937
  writer.writeDateOnlyValue("birthDate", leadProfile.birthDate);
9250
- writer.writeNumberValue("creditScore", leadProfile.creditScore);
9251
- writer.writeEnumValue("employmentType", leadProfile.employmentType);
9252
9938
  writer.writeEnumValue("gender", leadProfile.gender);
9253
- writer.writeBooleanValue("hasBankruptcy", leadProfile.hasBankruptcy);
9254
- writer.writeBooleanValue("hasMedicalCondition", leadProfile.hasMedicalCondition);
9255
- writer.writeNumberValue("height", leadProfile.height);
9256
- writer.writeNumberValue("income", leadProfile.income);
9257
- writer.writeBooleanValue("isHomeowner", leadProfile.isHomeowner);
9258
- writer.writeEnumValue("maritalStatus", leadProfile.maritalStatus);
9259
- writer.writeNumberValue("monthsAtResidence", leadProfile.monthsAtResidence);
9260
- writer.writeNumberValue("numberOfDependents", leadProfile.numberOfDependents);
9261
- writer.writeNumberValue("weight", leadProfile.weight);
9939
+ writer.writeObjectValue("qualification", leadProfile.qualification, serializeLeadProfile_qualification);
9262
9940
  writer.writeAdditionalData(leadProfile.additionalData);
9263
9941
  }
9942
+ /**
9943
+ * Serializes information the current object
9944
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9945
+ * @param LeadProfile_qualification The instance to serialize from.
9946
+ * @param writer Serialization writer to use to serialize this model
9947
+ */
9948
+ // @ts-ignore
9949
+ export function serializeLeadProfile_qualification(writer, leadProfile_qualification = {}, isSerializingDerivedType = false) {
9950
+ if (!leadProfile_qualification || isSerializingDerivedType) {
9951
+ return;
9952
+ }
9953
+ serializeLeadQualification(writer, leadProfile_qualification, isSerializingDerivedType);
9954
+ }
9955
+ /**
9956
+ * Serializes information the current object
9957
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9958
+ * @param LeadQualification The instance to serialize from.
9959
+ * @param writer Serialization writer to use to serialize this model
9960
+ */
9961
+ // @ts-ignore
9962
+ export function serializeLeadQualification(writer, leadQualification = {}, isSerializingDerivedType = false) {
9963
+ if (!leadQualification || isSerializingDerivedType) {
9964
+ return;
9965
+ }
9966
+ writer.writeNumberValue("creditScore", leadQualification.creditScore);
9967
+ writer.writeEnumValue("employmentType", leadQualification.employmentType);
9968
+ writer.writeBooleanValue("hasBankruptcy", leadQualification.hasBankruptcy);
9969
+ writer.writeBooleanValue("hasMedicalCondition", leadQualification.hasMedicalCondition);
9970
+ writer.writeNumberValue("height", leadQualification.height);
9971
+ writer.writeNumberValue("income", leadQualification.income);
9972
+ writer.writeStringValue("incomeCurrency", leadQualification.incomeCurrency);
9973
+ writer.writeBooleanValue("isHomeowner", leadQualification.isHomeowner);
9974
+ writer.writeEnumValue("maritalStatus", leadQualification.maritalStatus);
9975
+ writer.writeNumberValue("monthsAtResidence", leadQualification.monthsAtResidence);
9976
+ writer.writeNumberValue("numberOfDependents", leadQualification.numberOfDependents);
9977
+ writer.writeNumberValue("weight", leadQualification.weight);
9978
+ writer.writeAdditionalData(leadQualification.additionalData);
9979
+ }
9264
9980
  /**
9265
9981
  * Serializes information the current object
9266
9982
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9272,15 +9988,98 @@ export function serializeLeadRequest(writer, leadRequest = {}, isSerializingDeri
9272
9988
  if (!leadRequest || isSerializingDerivedType) {
9273
9989
  return;
9274
9990
  }
9991
+ writer.writeObjectValue("company", leadRequest.company, serializeLeadRequest_company);
9275
9992
  writer.writeObjectValue("contact", leadRequest.contact, serializeLeadContact);
9276
- writer.writeObjectValue("customer", leadRequest.customer, serializeLeadProfile);
9993
+ writer.writeObjectValue("contactPreferences", leadRequest.contactPreferences, serializeLeadRequest_contactPreferences);
9994
+ writer.writeObjectValue("customFields", leadRequest.customFields, serializeLeadRequest_customFields);
9277
9995
  writer.writeBooleanValue("enabled", leadRequest.enabled);
9278
9996
  writer.writeStringValue("id", leadRequest.id);
9997
+ writer.writeObjectValue("inquiry", leadRequest.inquiry, serializeLeadRequest_inquiry);
9279
9998
  writer.writeObjectValue("metadata", leadRequest.metadata, serializeLeadMetadata);
9999
+ writer.writeObjectValue("profile", leadRequest.profile, serializeLeadRequest_profile);
10000
+ writer.writeObjectValue("serviceAddress", leadRequest.serviceAddress, serializeLeadRequest_serviceAddress);
9280
10001
  writer.writeCollectionOfPrimitiveValues("tagIds", leadRequest.tagIds);
9281
10002
  writer.writeCollectionOfPrimitiveValues("tagNames", leadRequest.tagNames);
9282
10003
  writer.writeAdditionalData(leadRequest.additionalData);
9283
10004
  }
10005
+ /**
10006
+ * Serializes information the current object
10007
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10008
+ * @param LeadRequest_company The instance to serialize from.
10009
+ * @param writer Serialization writer to use to serialize this model
10010
+ */
10011
+ // @ts-ignore
10012
+ export function serializeLeadRequest_company(writer, leadRequest_company = {}, isSerializingDerivedType = false) {
10013
+ if (!leadRequest_company || isSerializingDerivedType) {
10014
+ return;
10015
+ }
10016
+ serializeLeadCompany(writer, leadRequest_company, isSerializingDerivedType);
10017
+ }
10018
+ /**
10019
+ * Serializes information the current object
10020
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10021
+ * @param LeadRequest_contactPreferences The instance to serialize from.
10022
+ * @param writer Serialization writer to use to serialize this model
10023
+ */
10024
+ // @ts-ignore
10025
+ export function serializeLeadRequest_contactPreferences(writer, leadRequest_contactPreferences = {}, isSerializingDerivedType = false) {
10026
+ if (!leadRequest_contactPreferences || isSerializingDerivedType) {
10027
+ return;
10028
+ }
10029
+ serializeLeadContactPreferences(writer, leadRequest_contactPreferences, isSerializingDerivedType);
10030
+ }
10031
+ /**
10032
+ * Serializes information the current object
10033
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10034
+ * @param LeadRequest_customFields The instance to serialize from.
10035
+ * @param writer Serialization writer to use to serialize this model
10036
+ */
10037
+ // @ts-ignore
10038
+ export function serializeLeadRequest_customFields(writer, leadRequest_customFields = {}, isSerializingDerivedType = false) {
10039
+ if (!leadRequest_customFields || isSerializingDerivedType) {
10040
+ return;
10041
+ }
10042
+ writer.writeAdditionalData(leadRequest_customFields.additionalData);
10043
+ }
10044
+ /**
10045
+ * Serializes information the current object
10046
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10047
+ * @param LeadRequest_inquiry The instance to serialize from.
10048
+ * @param writer Serialization writer to use to serialize this model
10049
+ */
10050
+ // @ts-ignore
10051
+ export function serializeLeadRequest_inquiry(writer, leadRequest_inquiry = {}, isSerializingDerivedType = false) {
10052
+ if (!leadRequest_inquiry || isSerializingDerivedType) {
10053
+ return;
10054
+ }
10055
+ serializeLeadInquiry(writer, leadRequest_inquiry, isSerializingDerivedType);
10056
+ }
10057
+ /**
10058
+ * Serializes information the current object
10059
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10060
+ * @param LeadRequest_profile The instance to serialize from.
10061
+ * @param writer Serialization writer to use to serialize this model
10062
+ */
10063
+ // @ts-ignore
10064
+ export function serializeLeadRequest_profile(writer, leadRequest_profile = {}, isSerializingDerivedType = false) {
10065
+ if (!leadRequest_profile || isSerializingDerivedType) {
10066
+ return;
10067
+ }
10068
+ serializeLeadProfile(writer, leadRequest_profile, isSerializingDerivedType);
10069
+ }
10070
+ /**
10071
+ * Serializes information the current object
10072
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10073
+ * @param LeadRequest_serviceAddress The instance to serialize from.
10074
+ * @param writer Serialization writer to use to serialize this model
10075
+ */
10076
+ // @ts-ignore
10077
+ export function serializeLeadRequest_serviceAddress(writer, leadRequest_serviceAddress = {}, isSerializingDerivedType = false) {
10078
+ if (!leadRequest_serviceAddress || isSerializingDerivedType) {
10079
+ return;
10080
+ }
10081
+ serializeStreetAddress(writer, leadRequest_serviceAddress, isSerializingDerivedType);
10082
+ }
9284
10083
  /**
9285
10084
  * Serializes information the current object
9286
10085
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9298,14 +10097,17 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
9298
10097
  writer.writeNumberValue("archiveReason", leadResponse.archiveReason);
9299
10098
  writer.writeObjectValue("assignedTo", leadResponse.assignedTo, serializeLeadResponse_assignedTo);
9300
10099
  writer.writeStringValue("assignedToUserId", leadResponse.assignedToUserId);
10100
+ writer.writeObjectValue("company", leadResponse.company, serializeLeadResponse_company);
9301
10101
  writer.writeObjectValue("contact", leadResponse.contact, serializeLeadContact);
10102
+ writer.writeObjectValue("contactPreferences", leadResponse.contactPreferences, serializeLeadResponse_contactPreferences);
9302
10103
  writer.writeDateValue("createdAt", leadResponse.createdAt);
9303
10104
  writer.writeObjectValue("currentLeadStatus", leadResponse.currentLeadStatus, serializeLeadResponse_currentLeadStatus);
9304
- writer.writeObjectValue("customer", leadResponse.customer, serializeLeadProfile);
10105
+ writer.writeObjectValue("customFields", leadResponse.customFields, serializeLeadResponse_customFields);
9305
10106
  writer.writeDateValue("deletedAt", leadResponse.deletedAt);
9306
10107
  writer.writeStringValue("deletedByUserId", leadResponse.deletedByUserId);
9307
10108
  writer.writeBooleanValue("enabled", leadResponse.enabled);
9308
10109
  writer.writeStringValue("id", leadResponse.id);
10110
+ writer.writeObjectValue("inquiry", leadResponse.inquiry, serializeLeadResponse_inquiry);
9309
10111
  writer.writeBooleanValue("isArchived", leadResponse.isArchived);
9310
10112
  writer.writeBooleanValue("isDemo", leadResponse.isDemo);
9311
10113
  writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
@@ -9314,6 +10116,8 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
9314
10116
  writer.writeEnumValue("processingStatus", leadResponse.processingStatus);
9315
10117
  writer.writeDateValue("processingStatusChangedAt", leadResponse.processingStatusChangedAt);
9316
10118
  writer.writeStringValue("processingStatusReason", leadResponse.processingStatusReason);
10119
+ writer.writeObjectValue("profile", leadResponse.profile, serializeLeadResponse_profile);
10120
+ writer.writeObjectValue("serviceAddress", leadResponse.serviceAddress, serializeLeadResponse_serviceAddress);
9317
10121
  writer.writeCollectionOfObjectValues("tags", leadResponse.tags, serializeTagSummary);
9318
10122
  writer.writeAdditionalData(leadResponse.additionalData);
9319
10123
  }
@@ -9330,6 +10134,32 @@ export function serializeLeadResponse_assignedTo(writer, leadResponse_assignedTo
9330
10134
  }
9331
10135
  serializeIdNamePair(writer, leadResponse_assignedTo, isSerializingDerivedType);
9332
10136
  }
10137
+ /**
10138
+ * Serializes information the current object
10139
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10140
+ * @param LeadResponse_company The instance to serialize from.
10141
+ * @param writer Serialization writer to use to serialize this model
10142
+ */
10143
+ // @ts-ignore
10144
+ export function serializeLeadResponse_company(writer, leadResponse_company = {}, isSerializingDerivedType = false) {
10145
+ if (!leadResponse_company || isSerializingDerivedType) {
10146
+ return;
10147
+ }
10148
+ serializeLeadCompany(writer, leadResponse_company, isSerializingDerivedType);
10149
+ }
10150
+ /**
10151
+ * Serializes information the current object
10152
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10153
+ * @param LeadResponse_contactPreferences The instance to serialize from.
10154
+ * @param writer Serialization writer to use to serialize this model
10155
+ */
10156
+ // @ts-ignore
10157
+ export function serializeLeadResponse_contactPreferences(writer, leadResponse_contactPreferences = {}, isSerializingDerivedType = false) {
10158
+ if (!leadResponse_contactPreferences || isSerializingDerivedType) {
10159
+ return;
10160
+ }
10161
+ serializeLeadContactPreferences(writer, leadResponse_contactPreferences, isSerializingDerivedType);
10162
+ }
9333
10163
  /**
9334
10164
  * Serializes information the current object
9335
10165
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9343,6 +10173,32 @@ export function serializeLeadResponse_currentLeadStatus(writer, leadResponse_cur
9343
10173
  }
9344
10174
  serializeCurrentLeadStatusSummary(writer, leadResponse_currentLeadStatus, isSerializingDerivedType);
9345
10175
  }
10176
+ /**
10177
+ * Serializes information the current object
10178
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10179
+ * @param LeadResponse_customFields The instance to serialize from.
10180
+ * @param writer Serialization writer to use to serialize this model
10181
+ */
10182
+ // @ts-ignore
10183
+ export function serializeLeadResponse_customFields(writer, leadResponse_customFields = {}, isSerializingDerivedType = false) {
10184
+ if (!leadResponse_customFields || isSerializingDerivedType) {
10185
+ return;
10186
+ }
10187
+ writer.writeAdditionalData(leadResponse_customFields.additionalData);
10188
+ }
10189
+ /**
10190
+ * Serializes information the current object
10191
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10192
+ * @param LeadResponse_inquiry The instance to serialize from.
10193
+ * @param writer Serialization writer to use to serialize this model
10194
+ */
10195
+ // @ts-ignore
10196
+ export function serializeLeadResponse_inquiry(writer, leadResponse_inquiry = {}, isSerializingDerivedType = false) {
10197
+ if (!leadResponse_inquiry || isSerializingDerivedType) {
10198
+ return;
10199
+ }
10200
+ serializeLeadInquiry(writer, leadResponse_inquiry, isSerializingDerivedType);
10201
+ }
9346
10202
  /**
9347
10203
  * Serializes information the current object
9348
10204
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9356,6 +10212,32 @@ export function serializeLeadResponse_phoneIdentity(writer, leadResponse_phoneId
9356
10212
  }
9357
10213
  serializePhoneIdentityResponse(writer, leadResponse_phoneIdentity, isSerializingDerivedType);
9358
10214
  }
10215
+ /**
10216
+ * Serializes information the current object
10217
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10218
+ * @param LeadResponse_profile The instance to serialize from.
10219
+ * @param writer Serialization writer to use to serialize this model
10220
+ */
10221
+ // @ts-ignore
10222
+ export function serializeLeadResponse_profile(writer, leadResponse_profile = {}, isSerializingDerivedType = false) {
10223
+ if (!leadResponse_profile || isSerializingDerivedType) {
10224
+ return;
10225
+ }
10226
+ serializeLeadProfile(writer, leadResponse_profile, isSerializingDerivedType);
10227
+ }
10228
+ /**
10229
+ * Serializes information the current object
10230
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10231
+ * @param LeadResponse_serviceAddress The instance to serialize from.
10232
+ * @param writer Serialization writer to use to serialize this model
10233
+ */
10234
+ // @ts-ignore
10235
+ export function serializeLeadResponse_serviceAddress(writer, leadResponse_serviceAddress = {}, isSerializingDerivedType = false) {
10236
+ if (!leadResponse_serviceAddress || isSerializingDerivedType) {
10237
+ return;
10238
+ }
10239
+ serializeStreetAddress(writer, leadResponse_serviceAddress, isSerializingDerivedType);
10240
+ }
9359
10241
  /**
9360
10242
  * Serializes information the current object
9361
10243
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -11784,7 +12666,6 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
11784
12666
  if (!sourceRequest || isSerializingDerivedType) {
11785
12667
  return;
11786
12668
  }
11787
- writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
11788
12669
  writer.writeBooleanValue("automaticPhoneLookup", sourceRequest.automaticPhoneLookup);
11789
12670
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
11790
12671
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
@@ -11804,7 +12685,6 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
11804
12685
  if (!sourceResponse || isSerializingDerivedType) {
11805
12686
  return;
11806
12687
  }
11807
- writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
11808
12688
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
11809
12689
  writer.writeDateValue("apiKeyRotatedAt", sourceResponse.apiKeyRotatedAt);
11810
12690
  writer.writeBooleanValue("automaticPhoneLookup", sourceResponse.automaticPhoneLookup);
@@ -11892,7 +12772,6 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
11892
12772
  if (!sourceTableRow || isSerializingDerivedType) {
11893
12773
  return;
11894
12774
  }
11895
- writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
11896
12775
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
11897
12776
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
11898
12777
  writer.writeDateValue("apiKeyRotatedAt", sourceTableRow.apiKeyRotatedAt);
@@ -12638,6 +13517,10 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
12638
13517
  writer.writeBooleanValue("newLeadSmsEnabled", userNotificationPreferences.newLeadSmsEnabled);
12639
13518
  writer.writeBooleanValue("paymentFailedEnabled", userNotificationPreferences.paymentFailedEnabled);
12640
13519
  writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
13520
+ writer.writeBooleanValue("quietHoursEnabled", userNotificationPreferences.quietHoursEnabled);
13521
+ writer.writeTimeOnlyValue("quietHoursEnd", userNotificationPreferences.quietHoursEnd);
13522
+ writer.writeTimeOnlyValue("quietHoursStart", userNotificationPreferences.quietHoursStart);
13523
+ writer.writeStringValue("quietHoursTimeZoneId", userNotificationPreferences.quietHoursTimeZoneId);
12641
13524
  writer.writeObjectValue("smsConsentCertificate", userNotificationPreferences.smsConsentCertificate, serializeUserNotificationPreferences_smsConsentCertificate);
12642
13525
  writer.writeBooleanValue("smsConsentOptedIn", userNotificationPreferences.smsConsentOptedIn);
12643
13526
  writer.writeDateValue("smsConsentUpdatedAt", userNotificationPreferences.smsConsentUpdatedAt);
@@ -12953,6 +13836,14 @@ export const CallEventTableRow_statusObject = {
12953
13836
  Blocked_permission: "blocked_permission",
12954
13837
  Configuration_required: "configuration_required",
12955
13838
  };
13839
+ /**
13840
+ * Leadping's assessment of the supporting consent evidence.
13841
+ */
13842
+ export const ConsentVerificationStatusObject = {
13843
+ Verified: "Verified",
13844
+ Unverified: "Unverified",
13845
+ Quarantined: "Quarantined",
13846
+ };
12956
13847
  /**
12957
13848
  * Defines the customer-facing operational status for an inbox conversation.
12958
13849
  */
@@ -13143,12 +14034,29 @@ export const FeedbackTypeObject = {
13143
14034
  Missing_capability: "missing_capability",
13144
14035
  Other: "other",
13145
14036
  };
14037
+ /**
14038
+ * Supported LeadContactChannel values.
14039
+ */
14040
+ export const LeadContactPreferences_channelObject = {
14041
+ Email: "Email",
14042
+ Phone: "Phone",
14043
+ Sms: "Sms",
14044
+ };
14045
+ /**
14046
+ * Supported LeadUrgency values.
14047
+ */
14048
+ export const LeadInquiry_urgencyObject = {
14049
+ Flexible: "Flexible",
14050
+ Soon: "Soon",
14051
+ Urgent: "Urgent",
14052
+ };
13146
14053
  /**
13147
14054
  * The provider responsible for a lead's consent certificate.
13148
14055
  */
13149
14056
  export const LeadIntakeRequest_consentCertificateTypeObject = {
13150
14057
  TrustedForm: "TrustedForm",
13151
14058
  Leadping: "Leadping",
14059
+ Other: "Other",
13152
14060
  };
13153
14061
  /**
13154
14062
  * The provider responsible for a lead's consent certificate.
@@ -13156,11 +14064,22 @@ export const LeadIntakeRequest_consentCertificateTypeObject = {
13156
14064
  export const LeadMetadata_consentCertificateTypeObject = {
13157
14065
  TrustedForm: "TrustedForm",
13158
14066
  Leadping: "Leadping",
14067
+ Other: "Other",
14068
+ };
14069
+ /**
14070
+ * Classifies a lead's self-reported gender when required by a qualification, demographic, or integration workflow.
14071
+ */
14072
+ export const LeadProfile_genderObject = {
14073
+ M: "M",
14074
+ F: "F",
14075
+ NonBinary: "NonBinary",
14076
+ PreferNotToSay: "PreferNotToSay",
14077
+ Other: "Other",
13159
14078
  };
13160
14079
  /**
13161
14080
  * Classifies a lead's reported employment arrangement for qualification and demographic workflows.
13162
14081
  */
13163
- export const LeadProfile_employmentTypeObject = {
14082
+ export const LeadQualification_employmentTypeObject = {
13164
14083
  Employed: "Employed",
13165
14084
  PartTime: "PartTime",
13166
14085
  SelfEmployed: "SelfEmployed",
@@ -13173,20 +14092,10 @@ export const LeadProfile_employmentTypeObject = {
13173
14092
  Disabled: "Disabled",
13174
14093
  Other: "Other",
13175
14094
  };
13176
- /**
13177
- * Classifies a lead's self-reported gender when required by a qualification, demographic, or integration workflow.
13178
- */
13179
- export const LeadProfile_genderObject = {
13180
- M: "M",
13181
- F: "F",
13182
- NonBinary: "NonBinary",
13183
- PreferNotToSay: "PreferNotToSay",
13184
- Other: "Other",
13185
- };
13186
14095
  /**
13187
14096
  * Classifies a lead's reported marital status when required by a qualification or integration workflow.
13188
14097
  */
13189
- export const LeadProfile_maritalStatusObject = {
14098
+ export const LeadQualification_maritalStatusObject = {
13190
14099
  Married: "Married",
13191
14100
  Single: "Single",
13192
14101
  Widow: "Widow",