@leadping/sdk 1.0.81 → 1.0.82

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,17 @@ 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); },
4072
4350
  "consentCertificateType": n => { leadIntakeRequest.consentCertificateType = n.getEnumValue(LeadIntakeRequest_consentCertificateTypeObject); },
4073
4351
  "consentCertificateUrl": n => { leadIntakeRequest.consentCertificateUrl = n.getStringValue(); },
4352
+ "contactPreferences": n => { leadIntakeRequest.contactPreferences = n.getObjectValue(createLeadIntakeRequest_contactPreferencesFromDiscriminatorValue); },
4353
+ "country": n => { leadIntakeRequest.country = n.getStringValue(); },
4354
+ "currency": n => { leadIntakeRequest.currency = n.getStringValue(); },
4355
+ "customFields": n => { leadIntakeRequest.customFields = n.getObjectValue(createLeadIntakeRequest_customFieldsFromDiscriminatorValue); },
4074
4356
  "dateOfBirth": n => { leadIntakeRequest.dateOfBirth = n.getDateOnlyValue(); },
4075
4357
  "directPostPrice": n => { leadIntakeRequest.directPostPrice = n.getNumberValue(); },
4076
4358
  "email": n => { leadIntakeRequest.email = n.getStringValue(); },
@@ -4078,6 +4360,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4078
4360
  "firstName": n => { leadIntakeRequest.firstName = n.getStringValue(); },
4079
4361
  "gender": n => { leadIntakeRequest.gender = n.getStringValue(); },
4080
4362
  "idempotencyKey": n => { leadIntakeRequest.idempotencyKey = n.getStringValue(); },
4363
+ "inquiry": n => { leadIntakeRequest.inquiry = n.getObjectValue(createLeadIntakeRequest_inquiryFromDiscriminatorValue); },
4081
4364
  "landingPage": n => { leadIntakeRequest.landingPage = n.getStringValue(); },
4082
4365
  "lastName": n => { leadIntakeRequest.lastName = n.getStringValue(); },
4083
4366
  "phone": n => { leadIntakeRequest.phone = n.getStringValue(); },
@@ -4085,14 +4368,18 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4085
4368
  "postalCode": n => { leadIntakeRequest.postalCode = n.getStringValue(); },
4086
4369
  "price": n => { leadIntakeRequest.price = n.getNumberValue(); },
4087
4370
  "product": n => { leadIntakeRequest.product = n.getStringValue(); },
4371
+ "profile": n => { leadIntakeRequest.profile = n.getObjectValue(createLeadIntakeRequest_profileFromDiscriminatorValue); },
4372
+ "pubId": n => { leadIntakeRequest.pubId = n.getStringValue(); },
4088
4373
  "referrer": n => { leadIntakeRequest.referrer = n.getStringValue(); },
4089
4374
  "sellerLeadId": n => { leadIntakeRequest.sellerLeadId = n.getStringValue(); },
4090
4375
  "sellerLeadIdentifier": n => { leadIntakeRequest.sellerLeadIdentifier = n.getStringValue(); },
4376
+ "serviceAddress": n => { leadIntakeRequest.serviceAddress = n.getObjectValue(createLeadIntakeRequest_serviceAddressFromDiscriminatorValue); },
4091
4377
  "sourceMetadata": n => { leadIntakeRequest.sourceMetadata = n.getObjectValue(createLeadIntakeRequest_sourceMetadataFromDiscriminatorValue); },
4092
4378
  "state": n => { leadIntakeRequest.state = n.getStringValue(); },
4093
4379
  "subId": n => { leadIntakeRequest.subId = n.getStringValue(); },
4094
4380
  "tagIds": n => { leadIntakeRequest.tagIds = n.getCollectionOfPrimitiveValues("string"); },
4095
4381
  "tagNames": n => { leadIntakeRequest.tagNames = n.getCollectionOfPrimitiveValues("string"); },
4382
+ "timeZoneId": n => { leadIntakeRequest.timeZoneId = n.getStringValue(); },
4096
4383
  "utmCampaign": n => { leadIntakeRequest.utmCampaign = n.getStringValue(); },
4097
4384
  "utmContent": n => { leadIntakeRequest.utmContent = n.getStringValue(); },
4098
4385
  "utmMedium": n => { leadIntakeRequest.utmMedium = n.getStringValue(); },
@@ -4102,6 +4389,70 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
4102
4389
  "zip": n => { leadIntakeRequest.zip = n.getStringValue(); },
4103
4390
  };
4104
4391
  }
4392
+ /**
4393
+ * The deserialization information for the current model
4394
+ * @param LeadIntakeRequest_company The instance to deserialize into.
4395
+ * @returns {Record<string, (node: ParseNode) => void>}
4396
+ */
4397
+ // @ts-ignore
4398
+ export function deserializeIntoLeadIntakeRequest_company(leadIntakeRequest_company = {}) {
4399
+ return {
4400
+ ...deserializeIntoLeadCompany(leadIntakeRequest_company),
4401
+ };
4402
+ }
4403
+ /**
4404
+ * The deserialization information for the current model
4405
+ * @param LeadIntakeRequest_contactPreferences The instance to deserialize into.
4406
+ * @returns {Record<string, (node: ParseNode) => void>}
4407
+ */
4408
+ // @ts-ignore
4409
+ export function deserializeIntoLeadIntakeRequest_contactPreferences(leadIntakeRequest_contactPreferences = {}) {
4410
+ return {
4411
+ ...deserializeIntoLeadContactPreferences(leadIntakeRequest_contactPreferences),
4412
+ };
4413
+ }
4414
+ /**
4415
+ * The deserialization information for the current model
4416
+ * @param LeadIntakeRequest_customFields The instance to deserialize into.
4417
+ * @returns {Record<string, (node: ParseNode) => void>}
4418
+ */
4419
+ // @ts-ignore
4420
+ export function deserializeIntoLeadIntakeRequest_customFields(leadIntakeRequest_customFields = {}) {
4421
+ return {};
4422
+ }
4423
+ /**
4424
+ * The deserialization information for the current model
4425
+ * @param LeadIntakeRequest_inquiry The instance to deserialize into.
4426
+ * @returns {Record<string, (node: ParseNode) => void>}
4427
+ */
4428
+ // @ts-ignore
4429
+ export function deserializeIntoLeadIntakeRequest_inquiry(leadIntakeRequest_inquiry = {}) {
4430
+ return {
4431
+ ...deserializeIntoLeadInquiry(leadIntakeRequest_inquiry),
4432
+ };
4433
+ }
4434
+ /**
4435
+ * The deserialization information for the current model
4436
+ * @param LeadIntakeRequest_profile The instance to deserialize into.
4437
+ * @returns {Record<string, (node: ParseNode) => void>}
4438
+ */
4439
+ // @ts-ignore
4440
+ export function deserializeIntoLeadIntakeRequest_profile(leadIntakeRequest_profile = {}) {
4441
+ return {
4442
+ ...deserializeIntoLeadProfile(leadIntakeRequest_profile),
4443
+ };
4444
+ }
4445
+ /**
4446
+ * The deserialization information for the current model
4447
+ * @param LeadIntakeRequest_serviceAddress The instance to deserialize into.
4448
+ * @returns {Record<string, (node: ParseNode) => void>}
4449
+ */
4450
+ // @ts-ignore
4451
+ export function deserializeIntoLeadIntakeRequest_serviceAddress(leadIntakeRequest_serviceAddress = {}) {
4452
+ return {
4453
+ ...deserializeIntoStreetAddress(leadIntakeRequest_serviceAddress),
4454
+ };
4455
+ }
4105
4456
  /**
4106
4457
  * The deserialization information for the current model
4107
4458
  * @param LeadIntakeRequest_sourceMetadata The instance to deserialize into.
@@ -4120,11 +4471,15 @@ export function deserializeIntoLeadIntakeRequest_sourceMetadata(leadIntakeReques
4120
4471
  export function deserializeIntoLeadMetadata(leadMetadata = {}) {
4121
4472
  return {
4122
4473
  "assignedPhoneNumberId": n => { leadMetadata.assignedPhoneNumberId = n.getStringValue(); },
4474
+ "capturedAt": n => { leadMetadata.capturedAt = n.getDateValue(); },
4475
+ "captureIpAddress": n => { leadMetadata.captureIpAddress = n.getStringValue(); },
4476
+ "captureUserAgent": n => { leadMetadata.captureUserAgent = n.getStringValue(); },
4123
4477
  "complianceBlockedReason": n => { leadMetadata.complianceBlockedReason = n.getStringValue(); },
4124
4478
  "complianceStatus": n => { leadMetadata.complianceStatus = n.getStringValue(); },
4125
4479
  "consentCertificateType": n => { leadMetadata.consentCertificateType = n.getEnumValue(LeadMetadata_consentCertificateTypeObject); },
4126
4480
  "consentCertificateUrl": n => { leadMetadata.consentCertificateUrl = n.getStringValue(); },
4127
4481
  "createdAt": n => { leadMetadata.createdAt = n.getDateValue(); },
4482
+ "currency": n => { leadMetadata.currency = n.getStringValue(); },
4128
4483
  "directPostPrice": n => { leadMetadata.directPostPrice = n.getNumberValue(); },
4129
4484
  "externalId": n => { leadMetadata.externalId = n.getStringValue(); },
4130
4485
  "importBatchId": n => { leadMetadata.importBatchId = n.getStringValue(); },
@@ -4190,18 +4545,41 @@ export function deserializeIntoLeadpingConsentCertificate(leadpingConsentCertifi
4190
4545
  export function deserializeIntoLeadProfile(leadProfile = {}) {
4191
4546
  return {
4192
4547
  "birthDate": n => { leadProfile.birthDate = n.getDateOnlyValue(); },
4193
- "creditScore": n => { leadProfile.creditScore = n.getNumberValue(); },
4194
- "employmentType": n => { leadProfile.employmentType = n.getEnumValue(LeadProfile_employmentTypeObject); },
4195
4548
  "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(); },
4549
+ "qualification": n => { leadProfile.qualification = n.getObjectValue(createLeadProfile_qualificationFromDiscriminatorValue); },
4550
+ };
4551
+ }
4552
+ /**
4553
+ * The deserialization information for the current model
4554
+ * @param LeadProfile_qualification The instance to deserialize into.
4555
+ * @returns {Record<string, (node: ParseNode) => void>}
4556
+ */
4557
+ // @ts-ignore
4558
+ export function deserializeIntoLeadProfile_qualification(leadProfile_qualification = {}) {
4559
+ return {
4560
+ ...deserializeIntoLeadQualification(leadProfile_qualification),
4561
+ };
4562
+ }
4563
+ /**
4564
+ * The deserialization information for the current model
4565
+ * @param LeadQualification The instance to deserialize into.
4566
+ * @returns {Record<string, (node: ParseNode) => void>}
4567
+ */
4568
+ // @ts-ignore
4569
+ export function deserializeIntoLeadQualification(leadQualification = {}) {
4570
+ return {
4571
+ "creditScore": n => { leadQualification.creditScore = n.getNumberValue(); },
4572
+ "employmentType": n => { leadQualification.employmentType = n.getEnumValue(LeadQualification_employmentTypeObject); },
4573
+ "hasBankruptcy": n => { leadQualification.hasBankruptcy = n.getBooleanValue(); },
4574
+ "hasMedicalCondition": n => { leadQualification.hasMedicalCondition = n.getBooleanValue(); },
4575
+ "height": n => { leadQualification.height = n.getNumberValue(); },
4576
+ "income": n => { leadQualification.income = n.getNumberValue(); },
4577
+ "incomeCurrency": n => { leadQualification.incomeCurrency = n.getStringValue(); },
4578
+ "isHomeowner": n => { leadQualification.isHomeowner = n.getBooleanValue(); },
4579
+ "maritalStatus": n => { leadQualification.maritalStatus = n.getEnumValue(LeadQualification_maritalStatusObject); },
4580
+ "monthsAtResidence": n => { leadQualification.monthsAtResidence = n.getNumberValue(); },
4581
+ "numberOfDependents": n => { leadQualification.numberOfDependents = n.getNumberValue(); },
4582
+ "weight": n => { leadQualification.weight = n.getNumberValue(); },
4205
4583
  };
4206
4584
  }
4207
4585
  /**
@@ -4212,15 +4590,84 @@ export function deserializeIntoLeadProfile(leadProfile = {}) {
4212
4590
  // @ts-ignore
4213
4591
  export function deserializeIntoLeadRequest(leadRequest = {}) {
4214
4592
  return {
4593
+ "company": n => { leadRequest.company = n.getObjectValue(createLeadRequest_companyFromDiscriminatorValue); },
4215
4594
  "contact": n => { leadRequest.contact = n.getObjectValue(createLeadContactFromDiscriminatorValue); },
4216
- "customer": n => { leadRequest.customer = n.getObjectValue(createLeadProfileFromDiscriminatorValue); },
4595
+ "contactPreferences": n => { leadRequest.contactPreferences = n.getObjectValue(createLeadRequest_contactPreferencesFromDiscriminatorValue); },
4596
+ "customFields": n => { leadRequest.customFields = n.getObjectValue(createLeadRequest_customFieldsFromDiscriminatorValue); },
4217
4597
  "enabled": n => { leadRequest.enabled = n.getBooleanValue(); },
4218
4598
  "id": n => { leadRequest.id = n.getStringValue(); },
4599
+ "inquiry": n => { leadRequest.inquiry = n.getObjectValue(createLeadRequest_inquiryFromDiscriminatorValue); },
4219
4600
  "metadata": n => { leadRequest.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
4601
+ "profile": n => { leadRequest.profile = n.getObjectValue(createLeadRequest_profileFromDiscriminatorValue); },
4602
+ "serviceAddress": n => { leadRequest.serviceAddress = n.getObjectValue(createLeadRequest_serviceAddressFromDiscriminatorValue); },
4220
4603
  "tagIds": n => { leadRequest.tagIds = n.getCollectionOfPrimitiveValues("string"); },
4221
4604
  "tagNames": n => { leadRequest.tagNames = n.getCollectionOfPrimitiveValues("string"); },
4222
4605
  };
4223
4606
  }
4607
+ /**
4608
+ * The deserialization information for the current model
4609
+ * @param LeadRequest_company The instance to deserialize into.
4610
+ * @returns {Record<string, (node: ParseNode) => void>}
4611
+ */
4612
+ // @ts-ignore
4613
+ export function deserializeIntoLeadRequest_company(leadRequest_company = {}) {
4614
+ return {
4615
+ ...deserializeIntoLeadCompany(leadRequest_company),
4616
+ };
4617
+ }
4618
+ /**
4619
+ * The deserialization information for the current model
4620
+ * @param LeadRequest_contactPreferences The instance to deserialize into.
4621
+ * @returns {Record<string, (node: ParseNode) => void>}
4622
+ */
4623
+ // @ts-ignore
4624
+ export function deserializeIntoLeadRequest_contactPreferences(leadRequest_contactPreferences = {}) {
4625
+ return {
4626
+ ...deserializeIntoLeadContactPreferences(leadRequest_contactPreferences),
4627
+ };
4628
+ }
4629
+ /**
4630
+ * The deserialization information for the current model
4631
+ * @param LeadRequest_customFields The instance to deserialize into.
4632
+ * @returns {Record<string, (node: ParseNode) => void>}
4633
+ */
4634
+ // @ts-ignore
4635
+ export function deserializeIntoLeadRequest_customFields(leadRequest_customFields = {}) {
4636
+ return {};
4637
+ }
4638
+ /**
4639
+ * The deserialization information for the current model
4640
+ * @param LeadRequest_inquiry The instance to deserialize into.
4641
+ * @returns {Record<string, (node: ParseNode) => void>}
4642
+ */
4643
+ // @ts-ignore
4644
+ export function deserializeIntoLeadRequest_inquiry(leadRequest_inquiry = {}) {
4645
+ return {
4646
+ ...deserializeIntoLeadInquiry(leadRequest_inquiry),
4647
+ };
4648
+ }
4649
+ /**
4650
+ * The deserialization information for the current model
4651
+ * @param LeadRequest_profile The instance to deserialize into.
4652
+ * @returns {Record<string, (node: ParseNode) => void>}
4653
+ */
4654
+ // @ts-ignore
4655
+ export function deserializeIntoLeadRequest_profile(leadRequest_profile = {}) {
4656
+ return {
4657
+ ...deserializeIntoLeadProfile(leadRequest_profile),
4658
+ };
4659
+ }
4660
+ /**
4661
+ * The deserialization information for the current model
4662
+ * @param LeadRequest_serviceAddress The instance to deserialize into.
4663
+ * @returns {Record<string, (node: ParseNode) => void>}
4664
+ */
4665
+ // @ts-ignore
4666
+ export function deserializeIntoLeadRequest_serviceAddress(leadRequest_serviceAddress = {}) {
4667
+ return {
4668
+ ...deserializeIntoStreetAddress(leadRequest_serviceAddress),
4669
+ };
4670
+ }
4224
4671
  /**
4225
4672
  * The deserialization information for the current model
4226
4673
  * @param LeadResponse The instance to deserialize into.
@@ -4235,14 +4682,17 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
4235
4682
  "archiveReason": n => { leadResponse.archiveReason = n.getNumberValue(); },
4236
4683
  "assignedTo": n => { leadResponse.assignedTo = n.getObjectValue(createLeadResponse_assignedToFromDiscriminatorValue); },
4237
4684
  "assignedToUserId": n => { leadResponse.assignedToUserId = n.getStringValue(); },
4685
+ "company": n => { leadResponse.company = n.getObjectValue(createLeadResponse_companyFromDiscriminatorValue); },
4238
4686
  "contact": n => { leadResponse.contact = n.getObjectValue(createLeadContactFromDiscriminatorValue); },
4687
+ "contactPreferences": n => { leadResponse.contactPreferences = n.getObjectValue(createLeadResponse_contactPreferencesFromDiscriminatorValue); },
4239
4688
  "createdAt": n => { leadResponse.createdAt = n.getDateValue(); },
4240
4689
  "currentLeadStatus": n => { leadResponse.currentLeadStatus = n.getObjectValue(createLeadResponse_currentLeadStatusFromDiscriminatorValue); },
4241
- "customer": n => { leadResponse.customer = n.getObjectValue(createLeadProfileFromDiscriminatorValue); },
4690
+ "customFields": n => { leadResponse.customFields = n.getObjectValue(createLeadResponse_customFieldsFromDiscriminatorValue); },
4242
4691
  "deletedAt": n => { leadResponse.deletedAt = n.getDateValue(); },
4243
4692
  "deletedByUserId": n => { leadResponse.deletedByUserId = n.getStringValue(); },
4244
4693
  "enabled": n => { leadResponse.enabled = n.getBooleanValue(); },
4245
4694
  "id": n => { leadResponse.id = n.getStringValue(); },
4695
+ "inquiry": n => { leadResponse.inquiry = n.getObjectValue(createLeadResponse_inquiryFromDiscriminatorValue); },
4246
4696
  "isArchived": n => { leadResponse.isArchived = n.getBooleanValue(); },
4247
4697
  "isDemo": n => { leadResponse.isDemo = n.getBooleanValue(); },
4248
4698
  "metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
@@ -4251,40 +4701,106 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
4251
4701
  "processingStatus": n => { leadResponse.processingStatus = n.getEnumValue(LeadResponse_processingStatusObject); },
4252
4702
  "processingStatusChangedAt": n => { leadResponse.processingStatusChangedAt = n.getDateValue(); },
4253
4703
  "processingStatusReason": n => { leadResponse.processingStatusReason = n.getStringValue(); },
4704
+ "profile": n => { leadResponse.profile = n.getObjectValue(createLeadResponse_profileFromDiscriminatorValue); },
4705
+ "serviceAddress": n => { leadResponse.serviceAddress = n.getObjectValue(createLeadResponse_serviceAddressFromDiscriminatorValue); },
4254
4706
  "tags": n => { leadResponse.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
4255
4707
  };
4256
4708
  }
4257
4709
  /**
4258
4710
  * The deserialization information for the current model
4259
- * @param LeadResponse_assignedTo The instance to deserialize into.
4711
+ * @param LeadResponse_assignedTo The instance to deserialize into.
4712
+ * @returns {Record<string, (node: ParseNode) => void>}
4713
+ */
4714
+ // @ts-ignore
4715
+ export function deserializeIntoLeadResponse_assignedTo(leadResponse_assignedTo = {}) {
4716
+ return {
4717
+ ...deserializeIntoIdNamePair(leadResponse_assignedTo),
4718
+ };
4719
+ }
4720
+ /**
4721
+ * The deserialization information for the current model
4722
+ * @param LeadResponse_company The instance to deserialize into.
4723
+ * @returns {Record<string, (node: ParseNode) => void>}
4724
+ */
4725
+ // @ts-ignore
4726
+ export function deserializeIntoLeadResponse_company(leadResponse_company = {}) {
4727
+ return {
4728
+ ...deserializeIntoLeadCompany(leadResponse_company),
4729
+ };
4730
+ }
4731
+ /**
4732
+ * The deserialization information for the current model
4733
+ * @param LeadResponse_contactPreferences The instance to deserialize into.
4734
+ * @returns {Record<string, (node: ParseNode) => void>}
4735
+ */
4736
+ // @ts-ignore
4737
+ export function deserializeIntoLeadResponse_contactPreferences(leadResponse_contactPreferences = {}) {
4738
+ return {
4739
+ ...deserializeIntoLeadContactPreferences(leadResponse_contactPreferences),
4740
+ };
4741
+ }
4742
+ /**
4743
+ * The deserialization information for the current model
4744
+ * @param LeadResponse_currentLeadStatus The instance to deserialize into.
4745
+ * @returns {Record<string, (node: ParseNode) => void>}
4746
+ */
4747
+ // @ts-ignore
4748
+ export function deserializeIntoLeadResponse_currentLeadStatus(leadResponse_currentLeadStatus = {}) {
4749
+ return {
4750
+ ...deserializeIntoCurrentLeadStatusSummary(leadResponse_currentLeadStatus),
4751
+ };
4752
+ }
4753
+ /**
4754
+ * The deserialization information for the current model
4755
+ * @param LeadResponse_customFields The instance to deserialize into.
4756
+ * @returns {Record<string, (node: ParseNode) => void>}
4757
+ */
4758
+ // @ts-ignore
4759
+ export function deserializeIntoLeadResponse_customFields(leadResponse_customFields = {}) {
4760
+ return {};
4761
+ }
4762
+ /**
4763
+ * The deserialization information for the current model
4764
+ * @param LeadResponse_inquiry The instance to deserialize into.
4765
+ * @returns {Record<string, (node: ParseNode) => void>}
4766
+ */
4767
+ // @ts-ignore
4768
+ export function deserializeIntoLeadResponse_inquiry(leadResponse_inquiry = {}) {
4769
+ return {
4770
+ ...deserializeIntoLeadInquiry(leadResponse_inquiry),
4771
+ };
4772
+ }
4773
+ /**
4774
+ * The deserialization information for the current model
4775
+ * @param LeadResponse_phoneIdentity The instance to deserialize into.
4260
4776
  * @returns {Record<string, (node: ParseNode) => void>}
4261
4777
  */
4262
4778
  // @ts-ignore
4263
- export function deserializeIntoLeadResponse_assignedTo(leadResponse_assignedTo = {}) {
4779
+ export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIdentity = {}) {
4264
4780
  return {
4265
- ...deserializeIntoIdNamePair(leadResponse_assignedTo),
4781
+ ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
4266
4782
  };
4267
4783
  }
4268
4784
  /**
4269
4785
  * The deserialization information for the current model
4270
- * @param LeadResponse_currentLeadStatus The instance to deserialize into.
4786
+ * @param LeadResponse_profile The instance to deserialize into.
4271
4787
  * @returns {Record<string, (node: ParseNode) => void>}
4272
4788
  */
4273
4789
  // @ts-ignore
4274
- export function deserializeIntoLeadResponse_currentLeadStatus(leadResponse_currentLeadStatus = {}) {
4790
+ export function deserializeIntoLeadResponse_profile(leadResponse_profile = {}) {
4275
4791
  return {
4276
- ...deserializeIntoCurrentLeadStatusSummary(leadResponse_currentLeadStatus),
4792
+ ...deserializeIntoLeadProfile(leadResponse_profile),
4277
4793
  };
4278
4794
  }
4279
4795
  /**
4280
4796
  * The deserialization information for the current model
4281
- * @param LeadResponse_phoneIdentity The instance to deserialize into.
4797
+ * @param LeadResponse_serviceAddress The instance to deserialize into.
4282
4798
  * @returns {Record<string, (node: ParseNode) => void>}
4283
4799
  */
4284
4800
  // @ts-ignore
4285
- export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIdentity = {}) {
4801
+ export function deserializeIntoLeadResponse_serviceAddress(leadResponse_serviceAddress = {}) {
4286
4802
  return {
4287
- ...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
4803
+ ...deserializeIntoStreetAddress(leadResponse_serviceAddress),
4288
4804
  };
4289
4805
  }
4290
4806
  /**
@@ -6380,7 +6896,6 @@ export function deserializeIntoSourceMetricsResponse(sourceMetricsResponse = {})
6380
6896
  // @ts-ignore
6381
6897
  export function deserializeIntoSourceRequest(sourceRequest = {}) {
6382
6898
  return {
6383
- "allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
6384
6899
  "automaticPhoneLookup": n => { sourceRequest.automaticPhoneLookup = n.getBooleanValue(); },
6385
6900
  "defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
6386
6901
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
@@ -6397,7 +6912,6 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
6397
6912
  // @ts-ignore
6398
6913
  export function deserializeIntoSourceResponse(sourceResponse = {}) {
6399
6914
  return {
6400
- "allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
6401
6915
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
6402
6916
  "apiKeyRotatedAt": n => { sourceResponse.apiKeyRotatedAt = n.getDateValue(); },
6403
6917
  "automaticPhoneLookup": n => { sourceResponse.automaticPhoneLookup = n.getBooleanValue(); },
@@ -6474,7 +6988,6 @@ export function deserializeIntoSourceResponse_user(sourceResponse_user = {}) {
6474
6988
  // @ts-ignore
6475
6989
  export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
6476
6990
  return {
6477
- "allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
6478
6991
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
6479
6992
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
6480
6993
  "apiKeyRotatedAt": n => { sourceTableRow.apiKeyRotatedAt = n.getDateValue(); },
@@ -7117,6 +7630,10 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
7117
7630
  "newLeadSmsEnabled": n => { userNotificationPreferences.newLeadSmsEnabled = n.getBooleanValue(); },
7118
7631
  "paymentFailedEnabled": n => { userNotificationPreferences.paymentFailedEnabled = n.getBooleanValue(); },
7119
7632
  "paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
7633
+ "quietHoursEnabled": n => { userNotificationPreferences.quietHoursEnabled = n.getBooleanValue(); },
7634
+ "quietHoursEnd": n => { userNotificationPreferences.quietHoursEnd = n.getTimeOnlyValue(); },
7635
+ "quietHoursStart": n => { userNotificationPreferences.quietHoursStart = n.getTimeOnlyValue(); },
7636
+ "quietHoursTimeZoneId": n => { userNotificationPreferences.quietHoursTimeZoneId = n.getStringValue(); },
7120
7637
  "smsConsentCertificate": n => { userNotificationPreferences.smsConsentCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentCertificateFromDiscriminatorValue); },
7121
7638
  "smsConsentOptedIn": n => { userNotificationPreferences.smsConsentOptedIn = n.getBooleanValue(); },
7122
7639
  "smsConsentUpdatedAt": n => { userNotificationPreferences.smsConsentUpdatedAt = n.getDateValue(); },
@@ -9018,6 +9535,40 @@ export function serializeLeadAssignmentRequest(writer, leadAssignmentRequest = {
9018
9535
  writer.writeStringValue("assignedToUserId", leadAssignmentRequest.assignedToUserId);
9019
9536
  writer.writeAdditionalData(leadAssignmentRequest.additionalData);
9020
9537
  }
9538
+ /**
9539
+ * Serializes information the current object
9540
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9541
+ * @param LeadCallbackWindow The instance to serialize from.
9542
+ * @param writer Serialization writer to use to serialize this model
9543
+ */
9544
+ // @ts-ignore
9545
+ export function serializeLeadCallbackWindow(writer, leadCallbackWindow = {}, isSerializingDerivedType = false) {
9546
+ if (!leadCallbackWindow || isSerializingDerivedType) {
9547
+ return;
9548
+ }
9549
+ writer.writeDateOnlyValue("date", leadCallbackWindow.date);
9550
+ writer.writeTimeOnlyValue("end", leadCallbackWindow.end);
9551
+ writer.writeTimeOnlyValue("start", leadCallbackWindow.start);
9552
+ writer.writeAdditionalData(leadCallbackWindow.additionalData);
9553
+ }
9554
+ /**
9555
+ * Serializes information the current object
9556
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9557
+ * @param LeadCompany The instance to serialize from.
9558
+ * @param writer Serialization writer to use to serialize this model
9559
+ */
9560
+ // @ts-ignore
9561
+ export function serializeLeadCompany(writer, leadCompany = {}, isSerializingDerivedType = false) {
9562
+ if (!leadCompany || isSerializingDerivedType) {
9563
+ return;
9564
+ }
9565
+ writer.writeNumberValue("employeeCount", leadCompany.employeeCount);
9566
+ writer.writeStringValue("industry", leadCompany.industry);
9567
+ writer.writeStringValue("jobTitle", leadCompany.jobTitle);
9568
+ writer.writeStringValue("name", leadCompany.name);
9569
+ writer.writeStringValue("website", leadCompany.website);
9570
+ writer.writeAdditionalData(leadCompany.additionalData);
9571
+ }
9021
9572
  /**
9022
9573
  * Serializes information the current object
9023
9574
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9078,6 +9629,22 @@ export function serializeLeadContact_streetAddress(writer, leadContact_streetAdd
9078
9629
  }
9079
9630
  serializeStreetAddress(writer, leadContact_streetAddress, isSerializingDerivedType);
9080
9631
  }
9632
+ /**
9633
+ * Serializes information the current object
9634
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9635
+ * @param LeadContactPreferences The instance to serialize from.
9636
+ * @param writer Serialization writer to use to serialize this model
9637
+ */
9638
+ // @ts-ignore
9639
+ export function serializeLeadContactPreferences(writer, leadContactPreferences = {}, isSerializingDerivedType = false) {
9640
+ if (!leadContactPreferences || isSerializingDerivedType) {
9641
+ return;
9642
+ }
9643
+ writer.writeCollectionOfObjectValues("callbackWindows", leadContactPreferences.callbackWindows, serializeLeadCallbackWindow);
9644
+ writer.writeEnumValue("channel", leadContactPreferences.channel);
9645
+ writer.writeStringValue("language", leadContactPreferences.language);
9646
+ writer.writeAdditionalData(leadContactPreferences.additionalData);
9647
+ }
9081
9648
  /**
9082
9649
  * Serializes information the current object
9083
9650
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9094,6 +9661,26 @@ export function serializeLeadFollowUpUpdateRequest(writer, leadFollowUpUpdateReq
9094
9661
  writer.writeStringValue("expectedStatusId", leadFollowUpUpdateRequest.expectedStatusId);
9095
9662
  writer.writeAdditionalData(leadFollowUpUpdateRequest.additionalData);
9096
9663
  }
9664
+ /**
9665
+ * Serializes information the current object
9666
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9667
+ * @param LeadInquiry The instance to serialize from.
9668
+ * @param writer Serialization writer to use to serialize this model
9669
+ */
9670
+ // @ts-ignore
9671
+ export function serializeLeadInquiry(writer, leadInquiry = {}, isSerializingDerivedType = false) {
9672
+ if (!leadInquiry || isSerializingDerivedType) {
9673
+ return;
9674
+ }
9675
+ writer.writeNumberValue("budgetMaximum", leadInquiry.budgetMaximum);
9676
+ writer.writeNumberValue("budgetMinimum", leadInquiry.budgetMinimum);
9677
+ writer.writeStringValue("currency", leadInquiry.currency);
9678
+ writer.writeStringValue("description", leadInquiry.description);
9679
+ writer.writeDateOnlyValue("desiredStartDate", leadInquiry.desiredStartDate);
9680
+ writer.writeStringValue("service", leadInquiry.service);
9681
+ writer.writeEnumValue("urgency", leadInquiry.urgency);
9682
+ writer.writeAdditionalData(leadInquiry.additionalData);
9683
+ }
9097
9684
  /**
9098
9685
  * Serializes information the current object
9099
9686
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9108,9 +9695,17 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9108
9695
  writer.writeStringValue("address1", leadIntakeRequest.address1);
9109
9696
  writer.writeStringValue("address2", leadIntakeRequest.address2);
9110
9697
  writer.writeDateOnlyValue("birthDate", leadIntakeRequest.birthDate);
9698
+ writer.writeDateValue("capturedAt", leadIntakeRequest.capturedAt);
9699
+ writer.writeStringValue("captureIpAddress", leadIntakeRequest.captureIpAddress);
9700
+ writer.writeStringValue("captureUserAgent", leadIntakeRequest.captureUserAgent);
9111
9701
  writer.writeStringValue("city", leadIntakeRequest.city);
9702
+ writer.writeObjectValue("company", leadIntakeRequest.company, serializeLeadIntakeRequest_company);
9112
9703
  writer.writeEnumValue("consentCertificateType", leadIntakeRequest.consentCertificateType);
9113
9704
  writer.writeStringValue("consentCertificateUrl", leadIntakeRequest.consentCertificateUrl);
9705
+ writer.writeObjectValue("contactPreferences", leadIntakeRequest.contactPreferences, serializeLeadIntakeRequest_contactPreferences);
9706
+ writer.writeStringValue("country", leadIntakeRequest.country);
9707
+ writer.writeStringValue("currency", leadIntakeRequest.currency);
9708
+ writer.writeObjectValue("customFields", leadIntakeRequest.customFields, serializeLeadIntakeRequest_customFields);
9114
9709
  writer.writeDateOnlyValue("dateOfBirth", leadIntakeRequest.dateOfBirth);
9115
9710
  writer.writeNumberValue("directPostPrice", leadIntakeRequest.directPostPrice);
9116
9711
  writer.writeStringValue("email", leadIntakeRequest.email);
@@ -9118,6 +9713,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9118
9713
  writer.writeStringValue("firstName", leadIntakeRequest.firstName);
9119
9714
  writer.writeStringValue("gender", leadIntakeRequest.gender);
9120
9715
  writer.writeStringValue("idempotencyKey", leadIntakeRequest.idempotencyKey);
9716
+ writer.writeObjectValue("inquiry", leadIntakeRequest.inquiry, serializeLeadIntakeRequest_inquiry);
9121
9717
  writer.writeStringValue("landingPage", leadIntakeRequest.landingPage);
9122
9718
  writer.writeStringValue("lastName", leadIntakeRequest.lastName);
9123
9719
  writer.writeStringValue("phone", leadIntakeRequest.phone);
@@ -9125,14 +9721,18 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9125
9721
  writer.writeStringValue("postalCode", leadIntakeRequest.postalCode);
9126
9722
  writer.writeNumberValue("price", leadIntakeRequest.price);
9127
9723
  writer.writeStringValue("product", leadIntakeRequest.product);
9724
+ writer.writeObjectValue("profile", leadIntakeRequest.profile, serializeLeadIntakeRequest_profile);
9725
+ writer.writeStringValue("pubId", leadIntakeRequest.pubId);
9128
9726
  writer.writeStringValue("referrer", leadIntakeRequest.referrer);
9129
9727
  writer.writeStringValue("sellerLeadId", leadIntakeRequest.sellerLeadId);
9130
9728
  writer.writeStringValue("sellerLeadIdentifier", leadIntakeRequest.sellerLeadIdentifier);
9729
+ writer.writeObjectValue("serviceAddress", leadIntakeRequest.serviceAddress, serializeLeadIntakeRequest_serviceAddress);
9131
9730
  writer.writeObjectValue("sourceMetadata", leadIntakeRequest.sourceMetadata, serializeLeadIntakeRequest_sourceMetadata);
9132
9731
  writer.writeStringValue("state", leadIntakeRequest.state);
9133
9732
  writer.writeStringValue("subId", leadIntakeRequest.subId);
9134
9733
  writer.writeCollectionOfPrimitiveValues("tagIds", leadIntakeRequest.tagIds);
9135
9734
  writer.writeCollectionOfPrimitiveValues("tagNames", leadIntakeRequest.tagNames);
9735
+ writer.writeStringValue("timeZoneId", leadIntakeRequest.timeZoneId);
9136
9736
  writer.writeStringValue("utmCampaign", leadIntakeRequest.utmCampaign);
9137
9737
  writer.writeStringValue("utmContent", leadIntakeRequest.utmContent);
9138
9738
  writer.writeStringValue("utmMedium", leadIntakeRequest.utmMedium);
@@ -9142,6 +9742,84 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
9142
9742
  writer.writeStringValue("zip", leadIntakeRequest.zip);
9143
9743
  writer.writeAdditionalData(leadIntakeRequest.additionalData);
9144
9744
  }
9745
+ /**
9746
+ * Serializes information the current object
9747
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9748
+ * @param LeadIntakeRequest_company The instance to serialize from.
9749
+ * @param writer Serialization writer to use to serialize this model
9750
+ */
9751
+ // @ts-ignore
9752
+ export function serializeLeadIntakeRequest_company(writer, leadIntakeRequest_company = {}, isSerializingDerivedType = false) {
9753
+ if (!leadIntakeRequest_company || isSerializingDerivedType) {
9754
+ return;
9755
+ }
9756
+ serializeLeadCompany(writer, leadIntakeRequest_company, isSerializingDerivedType);
9757
+ }
9758
+ /**
9759
+ * Serializes information the current object
9760
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9761
+ * @param LeadIntakeRequest_contactPreferences The instance to serialize from.
9762
+ * @param writer Serialization writer to use to serialize this model
9763
+ */
9764
+ // @ts-ignore
9765
+ export function serializeLeadIntakeRequest_contactPreferences(writer, leadIntakeRequest_contactPreferences = {}, isSerializingDerivedType = false) {
9766
+ if (!leadIntakeRequest_contactPreferences || isSerializingDerivedType) {
9767
+ return;
9768
+ }
9769
+ serializeLeadContactPreferences(writer, leadIntakeRequest_contactPreferences, isSerializingDerivedType);
9770
+ }
9771
+ /**
9772
+ * Serializes information the current object
9773
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9774
+ * @param LeadIntakeRequest_customFields The instance to serialize from.
9775
+ * @param writer Serialization writer to use to serialize this model
9776
+ */
9777
+ // @ts-ignore
9778
+ export function serializeLeadIntakeRequest_customFields(writer, leadIntakeRequest_customFields = {}, isSerializingDerivedType = false) {
9779
+ if (!leadIntakeRequest_customFields || isSerializingDerivedType) {
9780
+ return;
9781
+ }
9782
+ writer.writeAdditionalData(leadIntakeRequest_customFields.additionalData);
9783
+ }
9784
+ /**
9785
+ * Serializes information the current object
9786
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9787
+ * @param LeadIntakeRequest_inquiry The instance to serialize from.
9788
+ * @param writer Serialization writer to use to serialize this model
9789
+ */
9790
+ // @ts-ignore
9791
+ export function serializeLeadIntakeRequest_inquiry(writer, leadIntakeRequest_inquiry = {}, isSerializingDerivedType = false) {
9792
+ if (!leadIntakeRequest_inquiry || isSerializingDerivedType) {
9793
+ return;
9794
+ }
9795
+ serializeLeadInquiry(writer, leadIntakeRequest_inquiry, isSerializingDerivedType);
9796
+ }
9797
+ /**
9798
+ * Serializes information the current object
9799
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9800
+ * @param LeadIntakeRequest_profile The instance to serialize from.
9801
+ * @param writer Serialization writer to use to serialize this model
9802
+ */
9803
+ // @ts-ignore
9804
+ export function serializeLeadIntakeRequest_profile(writer, leadIntakeRequest_profile = {}, isSerializingDerivedType = false) {
9805
+ if (!leadIntakeRequest_profile || isSerializingDerivedType) {
9806
+ return;
9807
+ }
9808
+ serializeLeadProfile(writer, leadIntakeRequest_profile, isSerializingDerivedType);
9809
+ }
9810
+ /**
9811
+ * Serializes information the current object
9812
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9813
+ * @param LeadIntakeRequest_serviceAddress The instance to serialize from.
9814
+ * @param writer Serialization writer to use to serialize this model
9815
+ */
9816
+ // @ts-ignore
9817
+ export function serializeLeadIntakeRequest_serviceAddress(writer, leadIntakeRequest_serviceAddress = {}, isSerializingDerivedType = false) {
9818
+ if (!leadIntakeRequest_serviceAddress || isSerializingDerivedType) {
9819
+ return;
9820
+ }
9821
+ serializeStreetAddress(writer, leadIntakeRequest_serviceAddress, isSerializingDerivedType);
9822
+ }
9145
9823
  /**
9146
9824
  * Serializes information the current object
9147
9825
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9167,11 +9845,15 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
9167
9845
  return;
9168
9846
  }
9169
9847
  writer.writeStringValue("assignedPhoneNumberId", leadMetadata.assignedPhoneNumberId);
9848
+ writer.writeDateValue("capturedAt", leadMetadata.capturedAt);
9849
+ writer.writeStringValue("captureIpAddress", leadMetadata.captureIpAddress);
9850
+ writer.writeStringValue("captureUserAgent", leadMetadata.captureUserAgent);
9170
9851
  writer.writeStringValue("complianceBlockedReason", leadMetadata.complianceBlockedReason);
9171
9852
  writer.writeStringValue("complianceStatus", leadMetadata.complianceStatus);
9172
9853
  writer.writeEnumValue("consentCertificateType", leadMetadata.consentCertificateType);
9173
9854
  writer.writeStringValue("consentCertificateUrl", leadMetadata.consentCertificateUrl);
9174
9855
  writer.writeDateValue("createdAt", leadMetadata.createdAt);
9856
+ writer.writeStringValue("currency", leadMetadata.currency);
9175
9857
  writer.writeNumberValue("directPostPrice", leadMetadata.directPostPrice);
9176
9858
  writer.writeStringValue("externalId", leadMetadata.externalId);
9177
9859
  writer.writeStringValue("importBatchId", leadMetadata.importBatchId);
@@ -9247,20 +9929,48 @@ export function serializeLeadProfile(writer, leadProfile = {}, isSerializingDeri
9247
9929
  return;
9248
9930
  }
9249
9931
  writer.writeDateOnlyValue("birthDate", leadProfile.birthDate);
9250
- writer.writeNumberValue("creditScore", leadProfile.creditScore);
9251
- writer.writeEnumValue("employmentType", leadProfile.employmentType);
9252
9932
  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);
9933
+ writer.writeObjectValue("qualification", leadProfile.qualification, serializeLeadProfile_qualification);
9262
9934
  writer.writeAdditionalData(leadProfile.additionalData);
9263
9935
  }
9936
+ /**
9937
+ * Serializes information the current object
9938
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9939
+ * @param LeadProfile_qualification The instance to serialize from.
9940
+ * @param writer Serialization writer to use to serialize this model
9941
+ */
9942
+ // @ts-ignore
9943
+ export function serializeLeadProfile_qualification(writer, leadProfile_qualification = {}, isSerializingDerivedType = false) {
9944
+ if (!leadProfile_qualification || isSerializingDerivedType) {
9945
+ return;
9946
+ }
9947
+ serializeLeadQualification(writer, leadProfile_qualification, isSerializingDerivedType);
9948
+ }
9949
+ /**
9950
+ * Serializes information the current object
9951
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9952
+ * @param LeadQualification The instance to serialize from.
9953
+ * @param writer Serialization writer to use to serialize this model
9954
+ */
9955
+ // @ts-ignore
9956
+ export function serializeLeadQualification(writer, leadQualification = {}, isSerializingDerivedType = false) {
9957
+ if (!leadQualification || isSerializingDerivedType) {
9958
+ return;
9959
+ }
9960
+ writer.writeNumberValue("creditScore", leadQualification.creditScore);
9961
+ writer.writeEnumValue("employmentType", leadQualification.employmentType);
9962
+ writer.writeBooleanValue("hasBankruptcy", leadQualification.hasBankruptcy);
9963
+ writer.writeBooleanValue("hasMedicalCondition", leadQualification.hasMedicalCondition);
9964
+ writer.writeNumberValue("height", leadQualification.height);
9965
+ writer.writeNumberValue("income", leadQualification.income);
9966
+ writer.writeStringValue("incomeCurrency", leadQualification.incomeCurrency);
9967
+ writer.writeBooleanValue("isHomeowner", leadQualification.isHomeowner);
9968
+ writer.writeEnumValue("maritalStatus", leadQualification.maritalStatus);
9969
+ writer.writeNumberValue("monthsAtResidence", leadQualification.monthsAtResidence);
9970
+ writer.writeNumberValue("numberOfDependents", leadQualification.numberOfDependents);
9971
+ writer.writeNumberValue("weight", leadQualification.weight);
9972
+ writer.writeAdditionalData(leadQualification.additionalData);
9973
+ }
9264
9974
  /**
9265
9975
  * Serializes information the current object
9266
9976
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9272,15 +9982,98 @@ export function serializeLeadRequest(writer, leadRequest = {}, isSerializingDeri
9272
9982
  if (!leadRequest || isSerializingDerivedType) {
9273
9983
  return;
9274
9984
  }
9985
+ writer.writeObjectValue("company", leadRequest.company, serializeLeadRequest_company);
9275
9986
  writer.writeObjectValue("contact", leadRequest.contact, serializeLeadContact);
9276
- writer.writeObjectValue("customer", leadRequest.customer, serializeLeadProfile);
9987
+ writer.writeObjectValue("contactPreferences", leadRequest.contactPreferences, serializeLeadRequest_contactPreferences);
9988
+ writer.writeObjectValue("customFields", leadRequest.customFields, serializeLeadRequest_customFields);
9277
9989
  writer.writeBooleanValue("enabled", leadRequest.enabled);
9278
9990
  writer.writeStringValue("id", leadRequest.id);
9991
+ writer.writeObjectValue("inquiry", leadRequest.inquiry, serializeLeadRequest_inquiry);
9279
9992
  writer.writeObjectValue("metadata", leadRequest.metadata, serializeLeadMetadata);
9993
+ writer.writeObjectValue("profile", leadRequest.profile, serializeLeadRequest_profile);
9994
+ writer.writeObjectValue("serviceAddress", leadRequest.serviceAddress, serializeLeadRequest_serviceAddress);
9280
9995
  writer.writeCollectionOfPrimitiveValues("tagIds", leadRequest.tagIds);
9281
9996
  writer.writeCollectionOfPrimitiveValues("tagNames", leadRequest.tagNames);
9282
9997
  writer.writeAdditionalData(leadRequest.additionalData);
9283
9998
  }
9999
+ /**
10000
+ * Serializes information the current object
10001
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10002
+ * @param LeadRequest_company The instance to serialize from.
10003
+ * @param writer Serialization writer to use to serialize this model
10004
+ */
10005
+ // @ts-ignore
10006
+ export function serializeLeadRequest_company(writer, leadRequest_company = {}, isSerializingDerivedType = false) {
10007
+ if (!leadRequest_company || isSerializingDerivedType) {
10008
+ return;
10009
+ }
10010
+ serializeLeadCompany(writer, leadRequest_company, isSerializingDerivedType);
10011
+ }
10012
+ /**
10013
+ * Serializes information the current object
10014
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10015
+ * @param LeadRequest_contactPreferences The instance to serialize from.
10016
+ * @param writer Serialization writer to use to serialize this model
10017
+ */
10018
+ // @ts-ignore
10019
+ export function serializeLeadRequest_contactPreferences(writer, leadRequest_contactPreferences = {}, isSerializingDerivedType = false) {
10020
+ if (!leadRequest_contactPreferences || isSerializingDerivedType) {
10021
+ return;
10022
+ }
10023
+ serializeLeadContactPreferences(writer, leadRequest_contactPreferences, isSerializingDerivedType);
10024
+ }
10025
+ /**
10026
+ * Serializes information the current object
10027
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10028
+ * @param LeadRequest_customFields The instance to serialize from.
10029
+ * @param writer Serialization writer to use to serialize this model
10030
+ */
10031
+ // @ts-ignore
10032
+ export function serializeLeadRequest_customFields(writer, leadRequest_customFields = {}, isSerializingDerivedType = false) {
10033
+ if (!leadRequest_customFields || isSerializingDerivedType) {
10034
+ return;
10035
+ }
10036
+ writer.writeAdditionalData(leadRequest_customFields.additionalData);
10037
+ }
10038
+ /**
10039
+ * Serializes information the current object
10040
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10041
+ * @param LeadRequest_inquiry The instance to serialize from.
10042
+ * @param writer Serialization writer to use to serialize this model
10043
+ */
10044
+ // @ts-ignore
10045
+ export function serializeLeadRequest_inquiry(writer, leadRequest_inquiry = {}, isSerializingDerivedType = false) {
10046
+ if (!leadRequest_inquiry || isSerializingDerivedType) {
10047
+ return;
10048
+ }
10049
+ serializeLeadInquiry(writer, leadRequest_inquiry, isSerializingDerivedType);
10050
+ }
10051
+ /**
10052
+ * Serializes information the current object
10053
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10054
+ * @param LeadRequest_profile The instance to serialize from.
10055
+ * @param writer Serialization writer to use to serialize this model
10056
+ */
10057
+ // @ts-ignore
10058
+ export function serializeLeadRequest_profile(writer, leadRequest_profile = {}, isSerializingDerivedType = false) {
10059
+ if (!leadRequest_profile || isSerializingDerivedType) {
10060
+ return;
10061
+ }
10062
+ serializeLeadProfile(writer, leadRequest_profile, isSerializingDerivedType);
10063
+ }
10064
+ /**
10065
+ * Serializes information the current object
10066
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10067
+ * @param LeadRequest_serviceAddress The instance to serialize from.
10068
+ * @param writer Serialization writer to use to serialize this model
10069
+ */
10070
+ // @ts-ignore
10071
+ export function serializeLeadRequest_serviceAddress(writer, leadRequest_serviceAddress = {}, isSerializingDerivedType = false) {
10072
+ if (!leadRequest_serviceAddress || isSerializingDerivedType) {
10073
+ return;
10074
+ }
10075
+ serializeStreetAddress(writer, leadRequest_serviceAddress, isSerializingDerivedType);
10076
+ }
9284
10077
  /**
9285
10078
  * Serializes information the current object
9286
10079
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9298,14 +10091,17 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
9298
10091
  writer.writeNumberValue("archiveReason", leadResponse.archiveReason);
9299
10092
  writer.writeObjectValue("assignedTo", leadResponse.assignedTo, serializeLeadResponse_assignedTo);
9300
10093
  writer.writeStringValue("assignedToUserId", leadResponse.assignedToUserId);
10094
+ writer.writeObjectValue("company", leadResponse.company, serializeLeadResponse_company);
9301
10095
  writer.writeObjectValue("contact", leadResponse.contact, serializeLeadContact);
10096
+ writer.writeObjectValue("contactPreferences", leadResponse.contactPreferences, serializeLeadResponse_contactPreferences);
9302
10097
  writer.writeDateValue("createdAt", leadResponse.createdAt);
9303
10098
  writer.writeObjectValue("currentLeadStatus", leadResponse.currentLeadStatus, serializeLeadResponse_currentLeadStatus);
9304
- writer.writeObjectValue("customer", leadResponse.customer, serializeLeadProfile);
10099
+ writer.writeObjectValue("customFields", leadResponse.customFields, serializeLeadResponse_customFields);
9305
10100
  writer.writeDateValue("deletedAt", leadResponse.deletedAt);
9306
10101
  writer.writeStringValue("deletedByUserId", leadResponse.deletedByUserId);
9307
10102
  writer.writeBooleanValue("enabled", leadResponse.enabled);
9308
10103
  writer.writeStringValue("id", leadResponse.id);
10104
+ writer.writeObjectValue("inquiry", leadResponse.inquiry, serializeLeadResponse_inquiry);
9309
10105
  writer.writeBooleanValue("isArchived", leadResponse.isArchived);
9310
10106
  writer.writeBooleanValue("isDemo", leadResponse.isDemo);
9311
10107
  writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
@@ -9314,6 +10110,8 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
9314
10110
  writer.writeEnumValue("processingStatus", leadResponse.processingStatus);
9315
10111
  writer.writeDateValue("processingStatusChangedAt", leadResponse.processingStatusChangedAt);
9316
10112
  writer.writeStringValue("processingStatusReason", leadResponse.processingStatusReason);
10113
+ writer.writeObjectValue("profile", leadResponse.profile, serializeLeadResponse_profile);
10114
+ writer.writeObjectValue("serviceAddress", leadResponse.serviceAddress, serializeLeadResponse_serviceAddress);
9317
10115
  writer.writeCollectionOfObjectValues("tags", leadResponse.tags, serializeTagSummary);
9318
10116
  writer.writeAdditionalData(leadResponse.additionalData);
9319
10117
  }
@@ -9330,6 +10128,32 @@ export function serializeLeadResponse_assignedTo(writer, leadResponse_assignedTo
9330
10128
  }
9331
10129
  serializeIdNamePair(writer, leadResponse_assignedTo, isSerializingDerivedType);
9332
10130
  }
10131
+ /**
10132
+ * Serializes information the current object
10133
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10134
+ * @param LeadResponse_company The instance to serialize from.
10135
+ * @param writer Serialization writer to use to serialize this model
10136
+ */
10137
+ // @ts-ignore
10138
+ export function serializeLeadResponse_company(writer, leadResponse_company = {}, isSerializingDerivedType = false) {
10139
+ if (!leadResponse_company || isSerializingDerivedType) {
10140
+ return;
10141
+ }
10142
+ serializeLeadCompany(writer, leadResponse_company, isSerializingDerivedType);
10143
+ }
10144
+ /**
10145
+ * Serializes information the current object
10146
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10147
+ * @param LeadResponse_contactPreferences The instance to serialize from.
10148
+ * @param writer Serialization writer to use to serialize this model
10149
+ */
10150
+ // @ts-ignore
10151
+ export function serializeLeadResponse_contactPreferences(writer, leadResponse_contactPreferences = {}, isSerializingDerivedType = false) {
10152
+ if (!leadResponse_contactPreferences || isSerializingDerivedType) {
10153
+ return;
10154
+ }
10155
+ serializeLeadContactPreferences(writer, leadResponse_contactPreferences, isSerializingDerivedType);
10156
+ }
9333
10157
  /**
9334
10158
  * Serializes information the current object
9335
10159
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9343,6 +10167,32 @@ export function serializeLeadResponse_currentLeadStatus(writer, leadResponse_cur
9343
10167
  }
9344
10168
  serializeCurrentLeadStatusSummary(writer, leadResponse_currentLeadStatus, isSerializingDerivedType);
9345
10169
  }
10170
+ /**
10171
+ * Serializes information the current object
10172
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10173
+ * @param LeadResponse_customFields The instance to serialize from.
10174
+ * @param writer Serialization writer to use to serialize this model
10175
+ */
10176
+ // @ts-ignore
10177
+ export function serializeLeadResponse_customFields(writer, leadResponse_customFields = {}, isSerializingDerivedType = false) {
10178
+ if (!leadResponse_customFields || isSerializingDerivedType) {
10179
+ return;
10180
+ }
10181
+ writer.writeAdditionalData(leadResponse_customFields.additionalData);
10182
+ }
10183
+ /**
10184
+ * Serializes information the current object
10185
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10186
+ * @param LeadResponse_inquiry The instance to serialize from.
10187
+ * @param writer Serialization writer to use to serialize this model
10188
+ */
10189
+ // @ts-ignore
10190
+ export function serializeLeadResponse_inquiry(writer, leadResponse_inquiry = {}, isSerializingDerivedType = false) {
10191
+ if (!leadResponse_inquiry || isSerializingDerivedType) {
10192
+ return;
10193
+ }
10194
+ serializeLeadInquiry(writer, leadResponse_inquiry, isSerializingDerivedType);
10195
+ }
9346
10196
  /**
9347
10197
  * Serializes information the current object
9348
10198
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9356,6 +10206,32 @@ export function serializeLeadResponse_phoneIdentity(writer, leadResponse_phoneId
9356
10206
  }
9357
10207
  serializePhoneIdentityResponse(writer, leadResponse_phoneIdentity, isSerializingDerivedType);
9358
10208
  }
10209
+ /**
10210
+ * Serializes information the current object
10211
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10212
+ * @param LeadResponse_profile The instance to serialize from.
10213
+ * @param writer Serialization writer to use to serialize this model
10214
+ */
10215
+ // @ts-ignore
10216
+ export function serializeLeadResponse_profile(writer, leadResponse_profile = {}, isSerializingDerivedType = false) {
10217
+ if (!leadResponse_profile || isSerializingDerivedType) {
10218
+ return;
10219
+ }
10220
+ serializeLeadProfile(writer, leadResponse_profile, isSerializingDerivedType);
10221
+ }
10222
+ /**
10223
+ * Serializes information the current object
10224
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10225
+ * @param LeadResponse_serviceAddress The instance to serialize from.
10226
+ * @param writer Serialization writer to use to serialize this model
10227
+ */
10228
+ // @ts-ignore
10229
+ export function serializeLeadResponse_serviceAddress(writer, leadResponse_serviceAddress = {}, isSerializingDerivedType = false) {
10230
+ if (!leadResponse_serviceAddress || isSerializingDerivedType) {
10231
+ return;
10232
+ }
10233
+ serializeStreetAddress(writer, leadResponse_serviceAddress, isSerializingDerivedType);
10234
+ }
9359
10235
  /**
9360
10236
  * Serializes information the current object
9361
10237
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -11784,7 +12660,6 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
11784
12660
  if (!sourceRequest || isSerializingDerivedType) {
11785
12661
  return;
11786
12662
  }
11787
- writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
11788
12663
  writer.writeBooleanValue("automaticPhoneLookup", sourceRequest.automaticPhoneLookup);
11789
12664
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
11790
12665
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
@@ -11804,7 +12679,6 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
11804
12679
  if (!sourceResponse || isSerializingDerivedType) {
11805
12680
  return;
11806
12681
  }
11807
- writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
11808
12682
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
11809
12683
  writer.writeDateValue("apiKeyRotatedAt", sourceResponse.apiKeyRotatedAt);
11810
12684
  writer.writeBooleanValue("automaticPhoneLookup", sourceResponse.automaticPhoneLookup);
@@ -11892,7 +12766,6 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
11892
12766
  if (!sourceTableRow || isSerializingDerivedType) {
11893
12767
  return;
11894
12768
  }
11895
- writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
11896
12769
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
11897
12770
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
11898
12771
  writer.writeDateValue("apiKeyRotatedAt", sourceTableRow.apiKeyRotatedAt);
@@ -12638,6 +13511,10 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
12638
13511
  writer.writeBooleanValue("newLeadSmsEnabled", userNotificationPreferences.newLeadSmsEnabled);
12639
13512
  writer.writeBooleanValue("paymentFailedEnabled", userNotificationPreferences.paymentFailedEnabled);
12640
13513
  writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
13514
+ writer.writeBooleanValue("quietHoursEnabled", userNotificationPreferences.quietHoursEnabled);
13515
+ writer.writeTimeOnlyValue("quietHoursEnd", userNotificationPreferences.quietHoursEnd);
13516
+ writer.writeTimeOnlyValue("quietHoursStart", userNotificationPreferences.quietHoursStart);
13517
+ writer.writeStringValue("quietHoursTimeZoneId", userNotificationPreferences.quietHoursTimeZoneId);
12641
13518
  writer.writeObjectValue("smsConsentCertificate", userNotificationPreferences.smsConsentCertificate, serializeUserNotificationPreferences_smsConsentCertificate);
12642
13519
  writer.writeBooleanValue("smsConsentOptedIn", userNotificationPreferences.smsConsentOptedIn);
12643
13520
  writer.writeDateValue("smsConsentUpdatedAt", userNotificationPreferences.smsConsentUpdatedAt);
@@ -13143,6 +14020,22 @@ export const FeedbackTypeObject = {
13143
14020
  Missing_capability: "missing_capability",
13144
14021
  Other: "other",
13145
14022
  };
14023
+ /**
14024
+ * Supported LeadContactChannel values.
14025
+ */
14026
+ export const LeadContactPreferences_channelObject = {
14027
+ Email: "Email",
14028
+ Phone: "Phone",
14029
+ Sms: "Sms",
14030
+ };
14031
+ /**
14032
+ * Supported LeadUrgency values.
14033
+ */
14034
+ export const LeadInquiry_urgencyObject = {
14035
+ Flexible: "Flexible",
14036
+ Soon: "Soon",
14037
+ Urgent: "Urgent",
14038
+ };
13146
14039
  /**
13147
14040
  * The provider responsible for a lead's consent certificate.
13148
14041
  */
@@ -13157,10 +14050,20 @@ export const LeadMetadata_consentCertificateTypeObject = {
13157
14050
  TrustedForm: "TrustedForm",
13158
14051
  Leadping: "Leadping",
13159
14052
  };
14053
+ /**
14054
+ * Classifies a lead's self-reported gender when required by a qualification, demographic, or integration workflow.
14055
+ */
14056
+ export const LeadProfile_genderObject = {
14057
+ M: "M",
14058
+ F: "F",
14059
+ NonBinary: "NonBinary",
14060
+ PreferNotToSay: "PreferNotToSay",
14061
+ Other: "Other",
14062
+ };
13160
14063
  /**
13161
14064
  * Classifies a lead's reported employment arrangement for qualification and demographic workflows.
13162
14065
  */
13163
- export const LeadProfile_employmentTypeObject = {
14066
+ export const LeadQualification_employmentTypeObject = {
13164
14067
  Employed: "Employed",
13165
14068
  PartTime: "PartTime",
13166
14069
  SelfEmployed: "SelfEmployed",
@@ -13173,20 +14076,10 @@ export const LeadProfile_employmentTypeObject = {
13173
14076
  Disabled: "Disabled",
13174
14077
  Other: "Other",
13175
14078
  };
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
14079
  /**
13187
14080
  * Classifies a lead's reported marital status when required by a qualification or integration workflow.
13188
14081
  */
13189
- export const LeadProfile_maritalStatusObject = {
14082
+ export const LeadQualification_maritalStatusObject = {
13190
14083
  Married: "Married",
13191
14084
  Single: "Single",
13192
14085
  Widow: "Widow",