@leadping/sdk 1.0.60 → 1.0.62
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 +40 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +41 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -1776,6 +1776,15 @@ export function createPhoneNumberSearchResult_locationFromDiscriminatorValue(par
|
|
|
1776
1776
|
export function createPhoneNumberSearchResultFromDiscriminatorValue(parseNode) {
|
|
1777
1777
|
return deserializeIntoPhoneNumberSearchResult;
|
|
1778
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1781
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1782
|
+
* @returns {PhoneNumberStatusResponse_location}
|
|
1783
|
+
*/
|
|
1784
|
+
// @ts-ignore
|
|
1785
|
+
export function createPhoneNumberStatusResponse_locationFromDiscriminatorValue(parseNode) {
|
|
1786
|
+
return deserializeIntoPhoneNumberStatusResponse_location;
|
|
1787
|
+
}
|
|
1779
1788
|
/**
|
|
1780
1789
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1781
1790
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3136,6 +3145,7 @@ export function deserializeIntoBlogArticleResponse(blogArticleResponse = {}) {
|
|
|
3136
3145
|
"seoTitle": n => { blogArticleResponse.seoTitle = n.getStringValue(); },
|
|
3137
3146
|
"slug": n => { blogArticleResponse.slug = n.getStringValue(); },
|
|
3138
3147
|
"title": n => { blogArticleResponse.title = n.getStringValue(); },
|
|
3148
|
+
"unpublishedAt": n => { blogArticleResponse.unpublishedAt = n.getDateValue(); },
|
|
3139
3149
|
};
|
|
3140
3150
|
}
|
|
3141
3151
|
/**
|
|
@@ -5817,6 +5827,7 @@ export function deserializeIntoPhoneNumberSearchResult_location(phoneNumberSearc
|
|
|
5817
5827
|
export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusResponse = {}) {
|
|
5818
5828
|
return {
|
|
5819
5829
|
"callsPossible": n => { phoneNumberStatusResponse.callsPossible = n.getNumberValue(); },
|
|
5830
|
+
"location": n => { phoneNumberStatusResponse.location = n.getObjectValue(createPhoneNumberStatusResponse_locationFromDiscriminatorValue); },
|
|
5820
5831
|
"messagesPossible": n => { phoneNumberStatusResponse.messagesPossible = n.getNumberValue(); },
|
|
5821
5832
|
"number": n => { phoneNumberStatusResponse.number = n.getStringValue(); },
|
|
5822
5833
|
"optOutMetrics": n => { phoneNumberStatusResponse.optOutMetrics = n.getObjectValue(createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue); },
|
|
@@ -5826,6 +5837,17 @@ export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusRespon
|
|
|
5826
5837
|
"trafficMetrics": n => { phoneNumberStatusResponse.trafficMetrics = n.getObjectValue(createPhoneNumberTrafficMetricsResponseFromDiscriminatorValue); },
|
|
5827
5838
|
};
|
|
5828
5839
|
}
|
|
5840
|
+
/**
|
|
5841
|
+
* The deserialization information for the current model
|
|
5842
|
+
* @param PhoneNumberStatusResponse_location The instance to deserialize into.
|
|
5843
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5844
|
+
*/
|
|
5845
|
+
// @ts-ignore
|
|
5846
|
+
export function deserializeIntoPhoneNumberStatusResponse_location(phoneNumberStatusResponse_location = {}) {
|
|
5847
|
+
return {
|
|
5848
|
+
...deserializeIntoPhoneNumberLocation(phoneNumberStatusResponse_location),
|
|
5849
|
+
};
|
|
5850
|
+
}
|
|
5829
5851
|
/**
|
|
5830
5852
|
* The deserialization information for the current model
|
|
5831
5853
|
* @param PhoneNumberStatusResponse_outboundCapacity The instance to deserialize into.
|
|
@@ -6633,6 +6655,7 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
|
|
|
6633
6655
|
"gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getNumberValue(); },
|
|
6634
6656
|
"gatewayStatus": n => { transactionResponse.gatewayStatus = n.getStringValue(); },
|
|
6635
6657
|
"id": n => { transactionResponse.id = n.getStringValue(); },
|
|
6658
|
+
"isDemo": n => { transactionResponse.isDemo = n.getBooleanValue(); },
|
|
6636
6659
|
"lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
|
|
6637
6660
|
"modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
|
|
6638
6661
|
"netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
|
|
@@ -6681,6 +6704,7 @@ export function deserializeIntoTransactionTableRow(transactionTableRow = {}) {
|
|
|
6681
6704
|
"createdAt": n => { transactionTableRow.createdAt = n.getDateValue(); },
|
|
6682
6705
|
"description": n => { transactionTableRow.description = n.getStringValue(); },
|
|
6683
6706
|
"id": n => { transactionTableRow.id = n.getStringValue(); },
|
|
6707
|
+
"isDemo": n => { transactionTableRow.isDemo = n.getBooleanValue(); },
|
|
6684
6708
|
"lead": n => { transactionTableRow.lead = n.getObjectValue(createTransactionTableRow_leadFromDiscriminatorValue); },
|
|
6685
6709
|
"netAmount": n => { transactionTableRow.netAmount = n.getNumberValue(); },
|
|
6686
6710
|
"organization": n => { transactionTableRow.organization = n.getObjectValue(createTransactionTableRow_organizationFromDiscriminatorValue); },
|
|
@@ -7910,6 +7934,7 @@ export function serializeBlogArticleResponse(writer, blogArticleResponse = {}, i
|
|
|
7910
7934
|
writer.writeStringValue("seoTitle", blogArticleResponse.seoTitle);
|
|
7911
7935
|
writer.writeStringValue("slug", blogArticleResponse.slug);
|
|
7912
7936
|
writer.writeStringValue("title", blogArticleResponse.title);
|
|
7937
|
+
writer.writeDateValue("unpublishedAt", blogArticleResponse.unpublishedAt);
|
|
7913
7938
|
writer.writeAdditionalData(blogArticleResponse.additionalData);
|
|
7914
7939
|
}
|
|
7915
7940
|
/**
|
|
@@ -11019,6 +11044,7 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
|
|
|
11019
11044
|
return;
|
|
11020
11045
|
}
|
|
11021
11046
|
writer.writeNumberValue("callsPossible", phoneNumberStatusResponse.callsPossible);
|
|
11047
|
+
writer.writeObjectValue("location", phoneNumberStatusResponse.location, serializePhoneNumberStatusResponse_location);
|
|
11022
11048
|
writer.writeNumberValue("messagesPossible", phoneNumberStatusResponse.messagesPossible);
|
|
11023
11049
|
writer.writeStringValue("number", phoneNumberStatusResponse.number);
|
|
11024
11050
|
writer.writeObjectValue("optOutMetrics", phoneNumberStatusResponse.optOutMetrics, serializePhoneNumberOptOutMetricsResponse);
|
|
@@ -11028,6 +11054,19 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
|
|
|
11028
11054
|
writer.writeObjectValue("trafficMetrics", phoneNumberStatusResponse.trafficMetrics, serializePhoneNumberTrafficMetricsResponse);
|
|
11029
11055
|
writer.writeAdditionalData(phoneNumberStatusResponse.additionalData);
|
|
11030
11056
|
}
|
|
11057
|
+
/**
|
|
11058
|
+
* Serializes information the current object
|
|
11059
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
11060
|
+
* @param PhoneNumberStatusResponse_location The instance to serialize from.
|
|
11061
|
+
* @param writer Serialization writer to use to serialize this model
|
|
11062
|
+
*/
|
|
11063
|
+
// @ts-ignore
|
|
11064
|
+
export function serializePhoneNumberStatusResponse_location(writer, phoneNumberStatusResponse_location = {}, isSerializingDerivedType = false) {
|
|
11065
|
+
if (!phoneNumberStatusResponse_location || isSerializingDerivedType) {
|
|
11066
|
+
return;
|
|
11067
|
+
}
|
|
11068
|
+
serializePhoneNumberLocation(writer, phoneNumberStatusResponse_location, isSerializingDerivedType);
|
|
11069
|
+
}
|
|
11031
11070
|
/**
|
|
11032
11071
|
* Serializes information the current object
|
|
11033
11072
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -11965,6 +12004,7 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
|
|
|
11965
12004
|
writer.writeNumberValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
|
|
11966
12005
|
writer.writeStringValue("gatewayStatus", transactionResponse.gatewayStatus);
|
|
11967
12006
|
writer.writeStringValue("id", transactionResponse.id);
|
|
12007
|
+
writer.writeBooleanValue("isDemo", transactionResponse.isDemo);
|
|
11968
12008
|
writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
|
|
11969
12009
|
writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
|
|
11970
12010
|
writer.writeNumberValue("netAmount", transactionResponse.netAmount);
|
|
@@ -12020,6 +12060,7 @@ export function serializeTransactionTableRow(writer, transactionTableRow = {}, i
|
|
|
12020
12060
|
writer.writeDateValue("createdAt", transactionTableRow.createdAt);
|
|
12021
12061
|
writer.writeStringValue("description", transactionTableRow.description);
|
|
12022
12062
|
writer.writeStringValue("id", transactionTableRow.id);
|
|
12063
|
+
writer.writeBooleanValue("isDemo", transactionTableRow.isDemo);
|
|
12023
12064
|
writer.writeObjectValue("lead", transactionTableRow.lead, serializeTransactionTableRow_lead);
|
|
12024
12065
|
writer.writeNumberValue("netAmount", transactionTableRow.netAmount);
|
|
12025
12066
|
writer.writeObjectValue("organization", transactionTableRow.organization, serializeTransactionTableRow_organization);
|