@leadping/sdk 1.0.72 → 1.0.73
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 +62 -58
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +56 -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
|
|
@@ -4043,6 +4043,8 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
|
|
|
4043
4043
|
"ipAddress": n => { leadMetadata.ipAddress = n.getStringValue(); },
|
|
4044
4044
|
"isImported": n => { leadMetadata.isImported = n.getBooleanValue(); },
|
|
4045
4045
|
"landingPage": n => { leadMetadata.landingPage = n.getStringValue(); },
|
|
4046
|
+
"leadpingConsentCertificateId": n => { leadMetadata.leadpingConsentCertificateId = n.getStringValue(); },
|
|
4047
|
+
"leadpingConsentCheckedAt": n => { leadMetadata.leadpingConsentCheckedAt = n.getDateValue(); },
|
|
4046
4048
|
"organizationId": n => { leadMetadata.organizationId = n.getStringValue(); },
|
|
4047
4049
|
"origin": n => { leadMetadata.origin = n.getStringValue(); },
|
|
4048
4050
|
"price": n => { leadMetadata.price = n.getNumberValue(); },
|
|
@@ -4079,6 +4081,19 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
|
|
|
4079
4081
|
export function deserializeIntoLeadMetadata_sourceMetadata(leadMetadata_sourceMetadata = {}) {
|
|
4080
4082
|
return {};
|
|
4081
4083
|
}
|
|
4084
|
+
/**
|
|
4085
|
+
* The deserialization information for the current model
|
|
4086
|
+
* @param LeadpingConsentCertificate The instance to deserialize into.
|
|
4087
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4088
|
+
*/
|
|
4089
|
+
// @ts-ignore
|
|
4090
|
+
export function deserializeIntoLeadpingConsentCertificate(leadpingConsentCertificate = {}) {
|
|
4091
|
+
return {
|
|
4092
|
+
"createdAt": n => { leadpingConsentCertificate.createdAt = n.getDateValue(); },
|
|
4093
|
+
"id": n => { leadpingConsentCertificate.id = n.getStringValue(); },
|
|
4094
|
+
"source": n => { leadpingConsentCertificate.source = n.getStringValue(); },
|
|
4095
|
+
};
|
|
4096
|
+
}
|
|
4082
4097
|
/**
|
|
4083
4098
|
* The deserialization information for the current model
|
|
4084
4099
|
* @param LeadProfile The instance to deserialize into.
|
|
@@ -6834,20 +6849,6 @@ export function deserializeIntoTransactionTableRow_organization(transactionTable
|
|
|
6834
6849
|
...deserializeIntoIdNamePair(transactionTableRow_organization),
|
|
6835
6850
|
};
|
|
6836
6851
|
}
|
|
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
6852
|
/**
|
|
6852
6853
|
* The deserialization information for the current model
|
|
6853
6854
|
* @param UsageCounterLine The instance to deserialize into.
|
|
@@ -6972,7 +6973,7 @@ export function deserializeIntoUserCompliance(userCompliance = {}) {
|
|
|
6972
6973
|
"acceptedSms": n => { userCompliance.acceptedSms = n.getBooleanValue(); },
|
|
6973
6974
|
"acceptedTerms": n => { userCompliance.acceptedTerms = n.getBooleanValue(); },
|
|
6974
6975
|
"acceptedToSubscription": n => { userCompliance.acceptedToSubscription = n.getBooleanValue(); },
|
|
6975
|
-
"
|
|
6976
|
+
"consentCertificates": n => { userCompliance.consentCertificates = n.getCollectionOfObjectValues(createLeadpingConsentCertificateFromDiscriminatorValue); },
|
|
6976
6977
|
};
|
|
6977
6978
|
}
|
|
6978
6979
|
/**
|
|
@@ -7049,8 +7050,8 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
|
|
|
7049
7050
|
"newLeadSmsEnabled": n => { userNotificationPreferences.newLeadSmsEnabled = n.getBooleanValue(); },
|
|
7050
7051
|
"paymentFailedEnabled": n => { userNotificationPreferences.paymentFailedEnabled = n.getBooleanValue(); },
|
|
7051
7052
|
"paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
|
|
7053
|
+
"smsConsentCertificate": n => { userNotificationPreferences.smsConsentCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentCertificateFromDiscriminatorValue); },
|
|
7052
7054
|
"smsConsentOptedIn": n => { userNotificationPreferences.smsConsentOptedIn = n.getBooleanValue(); },
|
|
7053
|
-
"smsConsentTrustedFormCertificate": n => { userNotificationPreferences.smsConsentTrustedFormCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentTrustedFormCertificateFromDiscriminatorValue); },
|
|
7054
7055
|
"smsConsentUpdatedAt": n => { userNotificationPreferences.smsConsentUpdatedAt = n.getDateValue(); },
|
|
7055
7056
|
"subscriptionRenewingEmailEnabled": n => { userNotificationPreferences.subscriptionRenewingEmailEnabled = n.getBooleanValue(); },
|
|
7056
7057
|
"subscriptionRenewingEnabled": n => { userNotificationPreferences.subscriptionRenewingEnabled = n.getBooleanValue(); },
|
|
@@ -7064,13 +7065,13 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
|
|
|
7064
7065
|
}
|
|
7065
7066
|
/**
|
|
7066
7067
|
* The deserialization information for the current model
|
|
7067
|
-
* @param
|
|
7068
|
+
* @param UserNotificationPreferences_smsConsentCertificate The instance to deserialize into.
|
|
7068
7069
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
7069
7070
|
*/
|
|
7070
7071
|
// @ts-ignore
|
|
7071
|
-
export function
|
|
7072
|
+
export function deserializeIntoUserNotificationPreferences_smsConsentCertificate(userNotificationPreferences_smsConsentCertificate = {}) {
|
|
7072
7073
|
return {
|
|
7073
|
-
...
|
|
7074
|
+
...deserializeIntoLeadpingConsentCertificate(userNotificationPreferences_smsConsentCertificate),
|
|
7074
7075
|
};
|
|
7075
7076
|
}
|
|
7076
7077
|
/**
|
|
@@ -9029,6 +9030,8 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
|
|
|
9029
9030
|
writer.writeStringValue("ipAddress", leadMetadata.ipAddress);
|
|
9030
9031
|
writer.writeBooleanValue("isImported", leadMetadata.isImported);
|
|
9031
9032
|
writer.writeStringValue("landingPage", leadMetadata.landingPage);
|
|
9033
|
+
writer.writeStringValue("leadpingConsentCertificateId", leadMetadata.leadpingConsentCertificateId);
|
|
9034
|
+
writer.writeDateValue("leadpingConsentCheckedAt", leadMetadata.leadpingConsentCheckedAt);
|
|
9032
9035
|
writer.writeStringValue("organizationId", leadMetadata.organizationId);
|
|
9033
9036
|
writer.writeStringValue("origin", leadMetadata.origin);
|
|
9034
9037
|
writer.writeNumberValue("price", leadMetadata.price);
|
|
@@ -9069,6 +9072,22 @@ export function serializeLeadMetadata_sourceMetadata(writer, leadMetadata_source
|
|
|
9069
9072
|
}
|
|
9070
9073
|
writer.writeAdditionalData(leadMetadata_sourceMetadata.additionalData);
|
|
9071
9074
|
}
|
|
9075
|
+
/**
|
|
9076
|
+
* Serializes information the current object
|
|
9077
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9078
|
+
* @param LeadpingConsentCertificate The instance to serialize from.
|
|
9079
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9080
|
+
*/
|
|
9081
|
+
// @ts-ignore
|
|
9082
|
+
export function serializeLeadpingConsentCertificate(writer, leadpingConsentCertificate = {}, isSerializingDerivedType = false) {
|
|
9083
|
+
if (!leadpingConsentCertificate || isSerializingDerivedType) {
|
|
9084
|
+
return;
|
|
9085
|
+
}
|
|
9086
|
+
writer.writeDateValue("createdAt", leadpingConsentCertificate.createdAt);
|
|
9087
|
+
writer.writeStringValue("id", leadpingConsentCertificate.id);
|
|
9088
|
+
writer.writeStringValue("source", leadpingConsentCertificate.source);
|
|
9089
|
+
writer.writeAdditionalData(leadpingConsentCertificate.additionalData);
|
|
9090
|
+
}
|
|
9072
9091
|
/**
|
|
9073
9092
|
* Serializes information the current object
|
|
9074
9093
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12265,23 +12284,6 @@ export function serializeTransactionTableRow_organization(writer, transactionTab
|
|
|
12265
12284
|
}
|
|
12266
12285
|
serializeIdNamePair(writer, transactionTableRow_organization, isSerializingDerivedType);
|
|
12267
12286
|
}
|
|
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
12287
|
/**
|
|
12286
12288
|
* Serializes information the current object
|
|
12287
12289
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12427,7 +12429,7 @@ export function serializeUserCompliance(writer, userCompliance = {}, isSerializi
|
|
|
12427
12429
|
writer.writeBooleanValue("acceptedSms", userCompliance.acceptedSms);
|
|
12428
12430
|
writer.writeBooleanValue("acceptedTerms", userCompliance.acceptedTerms);
|
|
12429
12431
|
writer.writeBooleanValue("acceptedToSubscription", userCompliance.acceptedToSubscription);
|
|
12430
|
-
writer.writeCollectionOfObjectValues("
|
|
12432
|
+
writer.writeCollectionOfObjectValues("consentCertificates", userCompliance.consentCertificates, serializeLeadpingConsentCertificate);
|
|
12431
12433
|
writer.writeAdditionalData(userCompliance.additionalData);
|
|
12432
12434
|
}
|
|
12433
12435
|
/**
|
|
@@ -12516,8 +12518,8 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
|
|
|
12516
12518
|
writer.writeBooleanValue("newLeadSmsEnabled", userNotificationPreferences.newLeadSmsEnabled);
|
|
12517
12519
|
writer.writeBooleanValue("paymentFailedEnabled", userNotificationPreferences.paymentFailedEnabled);
|
|
12518
12520
|
writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
|
|
12521
|
+
writer.writeObjectValue("smsConsentCertificate", userNotificationPreferences.smsConsentCertificate, serializeUserNotificationPreferences_smsConsentCertificate);
|
|
12519
12522
|
writer.writeBooleanValue("smsConsentOptedIn", userNotificationPreferences.smsConsentOptedIn);
|
|
12520
|
-
writer.writeObjectValue("smsConsentTrustedFormCertificate", userNotificationPreferences.smsConsentTrustedFormCertificate, serializeUserNotificationPreferences_smsConsentTrustedFormCertificate);
|
|
12521
12523
|
writer.writeDateValue("smsConsentUpdatedAt", userNotificationPreferences.smsConsentUpdatedAt);
|
|
12522
12524
|
writer.writeBooleanValue("subscriptionRenewingEmailEnabled", userNotificationPreferences.subscriptionRenewingEmailEnabled);
|
|
12523
12525
|
writer.writeBooleanValue("subscriptionRenewingEnabled", userNotificationPreferences.subscriptionRenewingEnabled);
|
|
@@ -12532,15 +12534,15 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
|
|
|
12532
12534
|
/**
|
|
12533
12535
|
* Serializes information the current object
|
|
12534
12536
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12535
|
-
* @param
|
|
12537
|
+
* @param UserNotificationPreferences_smsConsentCertificate The instance to serialize from.
|
|
12536
12538
|
* @param writer Serialization writer to use to serialize this model
|
|
12537
12539
|
*/
|
|
12538
12540
|
// @ts-ignore
|
|
12539
|
-
export function
|
|
12540
|
-
if (!
|
|
12541
|
+
export function serializeUserNotificationPreferences_smsConsentCertificate(writer, userNotificationPreferences_smsConsentCertificate = {}, isSerializingDerivedType = false) {
|
|
12542
|
+
if (!userNotificationPreferences_smsConsentCertificate || isSerializingDerivedType) {
|
|
12541
12543
|
return;
|
|
12542
12544
|
}
|
|
12543
|
-
|
|
12545
|
+
serializeLeadpingConsentCertificate(writer, userNotificationPreferences_smsConsentCertificate, isSerializingDerivedType);
|
|
12544
12546
|
}
|
|
12545
12547
|
/**
|
|
12546
12548
|
* Serializes information the current object
|