@leadping/sdk 1.0.72 → 1.0.74
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.
- package/dist/models/index.d.ts +70 -58
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +60 -54
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -822,6 +822,15 @@ export function createLeadMetadata_sourceMetadataFromDiscriminatorValue(parseNod
|
|
|
822
822
|
export function createLeadMetadataFromDiscriminatorValue(parseNode) {
|
|
823
823
|
return deserializeIntoLeadMetadata;
|
|
824
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
827
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
828
|
+
* @returns {LeadpingConsentCertificate}
|
|
829
|
+
*/
|
|
830
|
+
// @ts-ignore
|
|
831
|
+
export function createLeadpingConsentCertificateFromDiscriminatorValue(parseNode) {
|
|
832
|
+
return deserializeIntoLeadpingConsentCertificate;
|
|
833
|
+
}
|
|
825
834
|
/**
|
|
826
835
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
827
836
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2280,15 +2289,6 @@ export function createTransactionTableRow_organizationFromDiscriminatorValue(par
|
|
|
2280
2289
|
export function createTransactionTableRowFromDiscriminatorValue(parseNode) {
|
|
2281
2290
|
return deserializeIntoTransactionTableRow;
|
|
2282
2291
|
}
|
|
2283
|
-
/**
|
|
2284
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2285
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2286
|
-
* @returns {TrustedFormCertificate}
|
|
2287
|
-
*/
|
|
2288
|
-
// @ts-ignore
|
|
2289
|
-
export function createTrustedFormCertificateFromDiscriminatorValue(parseNode) {
|
|
2290
|
-
return deserializeIntoTrustedFormCertificate;
|
|
2291
|
-
}
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2294
2294
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2391,11 +2391,11 @@ export function createUserDataExportResponseFromDiscriminatorValue(parseNode) {
|
|
|
2391
2391
|
/**
|
|
2392
2392
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2393
2393
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2394
|
-
* @returns {
|
|
2394
|
+
* @returns {UserNotificationPreferences_smsConsentCertificate}
|
|
2395
2395
|
*/
|
|
2396
2396
|
// @ts-ignore
|
|
2397
|
-
export function
|
|
2398
|
-
return
|
|
2397
|
+
export function createUserNotificationPreferences_smsConsentCertificateFromDiscriminatorValue(parseNode) {
|
|
2398
|
+
return deserializeIntoUserNotificationPreferences_smsConsentCertificate;
|
|
2399
2399
|
}
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -3991,6 +3991,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
|
|
|
3991
3991
|
"externalId": n => { leadIntakeRequest.externalId = n.getStringValue(); },
|
|
3992
3992
|
"firstName": n => { leadIntakeRequest.firstName = n.getStringValue(); },
|
|
3993
3993
|
"gender": n => { leadIntakeRequest.gender = n.getStringValue(); },
|
|
3994
|
+
"idempotencyKey": n => { leadIntakeRequest.idempotencyKey = n.getStringValue(); },
|
|
3994
3995
|
"landingPage": n => { leadIntakeRequest.landingPage = n.getStringValue(); },
|
|
3995
3996
|
"lastName": n => { leadIntakeRequest.lastName = n.getStringValue(); },
|
|
3996
3997
|
"phone": n => { leadIntakeRequest.phone = n.getStringValue(); },
|
|
@@ -4040,9 +4041,12 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
|
|
|
4040
4041
|
"directPostPrice": n => { leadMetadata.directPostPrice = n.getNumberValue(); },
|
|
4041
4042
|
"externalId": n => { leadMetadata.externalId = n.getStringValue(); },
|
|
4042
4043
|
"importBatchId": n => { leadMetadata.importBatchId = n.getStringValue(); },
|
|
4044
|
+
"intakeIdempotencyKey": n => { leadMetadata.intakeIdempotencyKey = n.getStringValue(); },
|
|
4043
4045
|
"ipAddress": n => { leadMetadata.ipAddress = n.getStringValue(); },
|
|
4044
4046
|
"isImported": n => { leadMetadata.isImported = n.getBooleanValue(); },
|
|
4045
4047
|
"landingPage": n => { leadMetadata.landingPage = n.getStringValue(); },
|
|
4048
|
+
"leadpingConsentCertificateId": n => { leadMetadata.leadpingConsentCertificateId = n.getStringValue(); },
|
|
4049
|
+
"leadpingConsentCheckedAt": n => { leadMetadata.leadpingConsentCheckedAt = n.getDateValue(); },
|
|
4046
4050
|
"organizationId": n => { leadMetadata.organizationId = n.getStringValue(); },
|
|
4047
4051
|
"origin": n => { leadMetadata.origin = n.getStringValue(); },
|
|
4048
4052
|
"price": n => { leadMetadata.price = n.getNumberValue(); },
|
|
@@ -4079,6 +4083,19 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
|
|
|
4079
4083
|
export function deserializeIntoLeadMetadata_sourceMetadata(leadMetadata_sourceMetadata = {}) {
|
|
4080
4084
|
return {};
|
|
4081
4085
|
}
|
|
4086
|
+
/**
|
|
4087
|
+
* The deserialization information for the current model
|
|
4088
|
+
* @param LeadpingConsentCertificate The instance to deserialize into.
|
|
4089
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4090
|
+
*/
|
|
4091
|
+
// @ts-ignore
|
|
4092
|
+
export function deserializeIntoLeadpingConsentCertificate(leadpingConsentCertificate = {}) {
|
|
4093
|
+
return {
|
|
4094
|
+
"createdAt": n => { leadpingConsentCertificate.createdAt = n.getDateValue(); },
|
|
4095
|
+
"id": n => { leadpingConsentCertificate.id = n.getStringValue(); },
|
|
4096
|
+
"source": n => { leadpingConsentCertificate.source = n.getStringValue(); },
|
|
4097
|
+
};
|
|
4098
|
+
}
|
|
4082
4099
|
/**
|
|
4083
4100
|
* The deserialization information for the current model
|
|
4084
4101
|
* @param LeadProfile The instance to deserialize into.
|
|
@@ -6834,20 +6851,6 @@ export function deserializeIntoTransactionTableRow_organization(transactionTable
|
|
|
6834
6851
|
...deserializeIntoIdNamePair(transactionTableRow_organization),
|
|
6835
6852
|
};
|
|
6836
6853
|
}
|
|
6837
|
-
/**
|
|
6838
|
-
* The deserialization information for the current model
|
|
6839
|
-
* @param TrustedFormCertificate The instance to deserialize into.
|
|
6840
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6841
|
-
*/
|
|
6842
|
-
// @ts-ignore
|
|
6843
|
-
export function deserializeIntoTrustedFormCertificate(trustedFormCertificate = {}) {
|
|
6844
|
-
return {
|
|
6845
|
-
"createdAt": n => { trustedFormCertificate.createdAt = n.getDateValue(); },
|
|
6846
|
-
"id": n => { trustedFormCertificate.id = n.getStringValue(); },
|
|
6847
|
-
"source": n => { trustedFormCertificate.source = n.getStringValue(); },
|
|
6848
|
-
"url": n => { trustedFormCertificate.url = n.getStringValue(); },
|
|
6849
|
-
};
|
|
6850
|
-
}
|
|
6851
6854
|
/**
|
|
6852
6855
|
* The deserialization information for the current model
|
|
6853
6856
|
* @param UsageCounterLine The instance to deserialize into.
|
|
@@ -6972,7 +6975,7 @@ export function deserializeIntoUserCompliance(userCompliance = {}) {
|
|
|
6972
6975
|
"acceptedSms": n => { userCompliance.acceptedSms = n.getBooleanValue(); },
|
|
6973
6976
|
"acceptedTerms": n => { userCompliance.acceptedTerms = n.getBooleanValue(); },
|
|
6974
6977
|
"acceptedToSubscription": n => { userCompliance.acceptedToSubscription = n.getBooleanValue(); },
|
|
6975
|
-
"
|
|
6978
|
+
"consentCertificates": n => { userCompliance.consentCertificates = n.getCollectionOfObjectValues(createLeadpingConsentCertificateFromDiscriminatorValue); },
|
|
6976
6979
|
};
|
|
6977
6980
|
}
|
|
6978
6981
|
/**
|
|
@@ -7049,8 +7052,8 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
|
|
|
7049
7052
|
"newLeadSmsEnabled": n => { userNotificationPreferences.newLeadSmsEnabled = n.getBooleanValue(); },
|
|
7050
7053
|
"paymentFailedEnabled": n => { userNotificationPreferences.paymentFailedEnabled = n.getBooleanValue(); },
|
|
7051
7054
|
"paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
|
|
7055
|
+
"smsConsentCertificate": n => { userNotificationPreferences.smsConsentCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentCertificateFromDiscriminatorValue); },
|
|
7052
7056
|
"smsConsentOptedIn": n => { userNotificationPreferences.smsConsentOptedIn = n.getBooleanValue(); },
|
|
7053
|
-
"smsConsentTrustedFormCertificate": n => { userNotificationPreferences.smsConsentTrustedFormCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentTrustedFormCertificateFromDiscriminatorValue); },
|
|
7054
7057
|
"smsConsentUpdatedAt": n => { userNotificationPreferences.smsConsentUpdatedAt = n.getDateValue(); },
|
|
7055
7058
|
"subscriptionRenewingEmailEnabled": n => { userNotificationPreferences.subscriptionRenewingEmailEnabled = n.getBooleanValue(); },
|
|
7056
7059
|
"subscriptionRenewingEnabled": n => { userNotificationPreferences.subscriptionRenewingEnabled = n.getBooleanValue(); },
|
|
@@ -7064,13 +7067,13 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
|
|
|
7064
7067
|
}
|
|
7065
7068
|
/**
|
|
7066
7069
|
* The deserialization information for the current model
|
|
7067
|
-
* @param
|
|
7070
|
+
* @param UserNotificationPreferences_smsConsentCertificate The instance to deserialize into.
|
|
7068
7071
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
7069
7072
|
*/
|
|
7070
7073
|
// @ts-ignore
|
|
7071
|
-
export function
|
|
7074
|
+
export function deserializeIntoUserNotificationPreferences_smsConsentCertificate(userNotificationPreferences_smsConsentCertificate = {}) {
|
|
7072
7075
|
return {
|
|
7073
|
-
...
|
|
7076
|
+
...deserializeIntoLeadpingConsentCertificate(userNotificationPreferences_smsConsentCertificate),
|
|
7074
7077
|
};
|
|
7075
7078
|
}
|
|
7076
7079
|
/**
|
|
@@ -8970,6 +8973,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
|
|
|
8970
8973
|
writer.writeStringValue("externalId", leadIntakeRequest.externalId);
|
|
8971
8974
|
writer.writeStringValue("firstName", leadIntakeRequest.firstName);
|
|
8972
8975
|
writer.writeStringValue("gender", leadIntakeRequest.gender);
|
|
8976
|
+
writer.writeStringValue("idempotencyKey", leadIntakeRequest.idempotencyKey);
|
|
8973
8977
|
writer.writeStringValue("landingPage", leadIntakeRequest.landingPage);
|
|
8974
8978
|
writer.writeStringValue("lastName", leadIntakeRequest.lastName);
|
|
8975
8979
|
writer.writeStringValue("phone", leadIntakeRequest.phone);
|
|
@@ -9026,9 +9030,12 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
|
|
|
9026
9030
|
writer.writeNumberValue("directPostPrice", leadMetadata.directPostPrice);
|
|
9027
9031
|
writer.writeStringValue("externalId", leadMetadata.externalId);
|
|
9028
9032
|
writer.writeStringValue("importBatchId", leadMetadata.importBatchId);
|
|
9033
|
+
writer.writeStringValue("intakeIdempotencyKey", leadMetadata.intakeIdempotencyKey);
|
|
9029
9034
|
writer.writeStringValue("ipAddress", leadMetadata.ipAddress);
|
|
9030
9035
|
writer.writeBooleanValue("isImported", leadMetadata.isImported);
|
|
9031
9036
|
writer.writeStringValue("landingPage", leadMetadata.landingPage);
|
|
9037
|
+
writer.writeStringValue("leadpingConsentCertificateId", leadMetadata.leadpingConsentCertificateId);
|
|
9038
|
+
writer.writeDateValue("leadpingConsentCheckedAt", leadMetadata.leadpingConsentCheckedAt);
|
|
9032
9039
|
writer.writeStringValue("organizationId", leadMetadata.organizationId);
|
|
9033
9040
|
writer.writeStringValue("origin", leadMetadata.origin);
|
|
9034
9041
|
writer.writeNumberValue("price", leadMetadata.price);
|
|
@@ -9069,6 +9076,22 @@ export function serializeLeadMetadata_sourceMetadata(writer, leadMetadata_source
|
|
|
9069
9076
|
}
|
|
9070
9077
|
writer.writeAdditionalData(leadMetadata_sourceMetadata.additionalData);
|
|
9071
9078
|
}
|
|
9079
|
+
/**
|
|
9080
|
+
* Serializes information the current object
|
|
9081
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9082
|
+
* @param LeadpingConsentCertificate The instance to serialize from.
|
|
9083
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9084
|
+
*/
|
|
9085
|
+
// @ts-ignore
|
|
9086
|
+
export function serializeLeadpingConsentCertificate(writer, leadpingConsentCertificate = {}, isSerializingDerivedType = false) {
|
|
9087
|
+
if (!leadpingConsentCertificate || isSerializingDerivedType) {
|
|
9088
|
+
return;
|
|
9089
|
+
}
|
|
9090
|
+
writer.writeDateValue("createdAt", leadpingConsentCertificate.createdAt);
|
|
9091
|
+
writer.writeStringValue("id", leadpingConsentCertificate.id);
|
|
9092
|
+
writer.writeStringValue("source", leadpingConsentCertificate.source);
|
|
9093
|
+
writer.writeAdditionalData(leadpingConsentCertificate.additionalData);
|
|
9094
|
+
}
|
|
9072
9095
|
/**
|
|
9073
9096
|
* Serializes information the current object
|
|
9074
9097
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12265,23 +12288,6 @@ export function serializeTransactionTableRow_organization(writer, transactionTab
|
|
|
12265
12288
|
}
|
|
12266
12289
|
serializeIdNamePair(writer, transactionTableRow_organization, isSerializingDerivedType);
|
|
12267
12290
|
}
|
|
12268
|
-
/**
|
|
12269
|
-
* Serializes information the current object
|
|
12270
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12271
|
-
* @param TrustedFormCertificate The instance to serialize from.
|
|
12272
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12273
|
-
*/
|
|
12274
|
-
// @ts-ignore
|
|
12275
|
-
export function serializeTrustedFormCertificate(writer, trustedFormCertificate = {}, isSerializingDerivedType = false) {
|
|
12276
|
-
if (!trustedFormCertificate || isSerializingDerivedType) {
|
|
12277
|
-
return;
|
|
12278
|
-
}
|
|
12279
|
-
writer.writeDateValue("createdAt", trustedFormCertificate.createdAt);
|
|
12280
|
-
writer.writeStringValue("id", trustedFormCertificate.id);
|
|
12281
|
-
writer.writeStringValue("source", trustedFormCertificate.source);
|
|
12282
|
-
writer.writeStringValue("url", trustedFormCertificate.url);
|
|
12283
|
-
writer.writeAdditionalData(trustedFormCertificate.additionalData);
|
|
12284
|
-
}
|
|
12285
12291
|
/**
|
|
12286
12292
|
* Serializes information the current object
|
|
12287
12293
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12427,7 +12433,7 @@ export function serializeUserCompliance(writer, userCompliance = {}, isSerializi
|
|
|
12427
12433
|
writer.writeBooleanValue("acceptedSms", userCompliance.acceptedSms);
|
|
12428
12434
|
writer.writeBooleanValue("acceptedTerms", userCompliance.acceptedTerms);
|
|
12429
12435
|
writer.writeBooleanValue("acceptedToSubscription", userCompliance.acceptedToSubscription);
|
|
12430
|
-
writer.writeCollectionOfObjectValues("
|
|
12436
|
+
writer.writeCollectionOfObjectValues("consentCertificates", userCompliance.consentCertificates, serializeLeadpingConsentCertificate);
|
|
12431
12437
|
writer.writeAdditionalData(userCompliance.additionalData);
|
|
12432
12438
|
}
|
|
12433
12439
|
/**
|
|
@@ -12516,8 +12522,8 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
|
|
|
12516
12522
|
writer.writeBooleanValue("newLeadSmsEnabled", userNotificationPreferences.newLeadSmsEnabled);
|
|
12517
12523
|
writer.writeBooleanValue("paymentFailedEnabled", userNotificationPreferences.paymentFailedEnabled);
|
|
12518
12524
|
writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
|
|
12525
|
+
writer.writeObjectValue("smsConsentCertificate", userNotificationPreferences.smsConsentCertificate, serializeUserNotificationPreferences_smsConsentCertificate);
|
|
12519
12526
|
writer.writeBooleanValue("smsConsentOptedIn", userNotificationPreferences.smsConsentOptedIn);
|
|
12520
|
-
writer.writeObjectValue("smsConsentTrustedFormCertificate", userNotificationPreferences.smsConsentTrustedFormCertificate, serializeUserNotificationPreferences_smsConsentTrustedFormCertificate);
|
|
12521
12527
|
writer.writeDateValue("smsConsentUpdatedAt", userNotificationPreferences.smsConsentUpdatedAt);
|
|
12522
12528
|
writer.writeBooleanValue("subscriptionRenewingEmailEnabled", userNotificationPreferences.subscriptionRenewingEmailEnabled);
|
|
12523
12529
|
writer.writeBooleanValue("subscriptionRenewingEnabled", userNotificationPreferences.subscriptionRenewingEnabled);
|
|
@@ -12532,15 +12538,15 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
|
|
|
12532
12538
|
/**
|
|
12533
12539
|
* Serializes information the current object
|
|
12534
12540
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12535
|
-
* @param
|
|
12541
|
+
* @param UserNotificationPreferences_smsConsentCertificate The instance to serialize from.
|
|
12536
12542
|
* @param writer Serialization writer to use to serialize this model
|
|
12537
12543
|
*/
|
|
12538
12544
|
// @ts-ignore
|
|
12539
|
-
export function
|
|
12540
|
-
if (!
|
|
12545
|
+
export function serializeUserNotificationPreferences_smsConsentCertificate(writer, userNotificationPreferences_smsConsentCertificate = {}, isSerializingDerivedType = false) {
|
|
12546
|
+
if (!userNotificationPreferences_smsConsentCertificate || isSerializingDerivedType) {
|
|
12541
12547
|
return;
|
|
12542
12548
|
}
|
|
12543
|
-
|
|
12549
|
+
serializeLeadpingConsentCertificate(writer, userNotificationPreferences_smsConsentCertificate, isSerializingDerivedType);
|
|
12544
12550
|
}
|
|
12545
12551
|
/**
|
|
12546
12552
|
* Serializes information the current object
|