@leadping/sdk 1.0.131 → 1.0.132
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/conversations/my/index.d.ts +5 -1
- package/dist/conversations/my/index.d.ts.map +1 -1
- package/dist/conversations/my/index.js +1 -1
- package/dist/conversations/my/index.js.map +1 -1
- package/dist/models/index.d.ts +45 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +43 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -552,6 +552,15 @@ export function createComplianceUpdateRequest_complianceFromDiscriminatorValue(p
|
|
|
552
552
|
export function createComplianceUpdateRequestFromDiscriminatorValue(parseNode) {
|
|
553
553
|
return deserializeIntoComplianceUpdateRequest;
|
|
554
554
|
}
|
|
555
|
+
/**
|
|
556
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
557
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
558
|
+
* @returns {ConversationPage_selectedConversation}
|
|
559
|
+
*/
|
|
560
|
+
// @ts-ignore
|
|
561
|
+
export function createConversationPage_selectedConversationFromDiscriminatorValue(parseNode) {
|
|
562
|
+
return deserializeIntoConversationPage_selectedConversation;
|
|
563
|
+
}
|
|
555
564
|
/**
|
|
556
565
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
557
566
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3961,9 +3970,21 @@ export function deserializeIntoConversationPage(conversationPage = {}) {
|
|
|
3961
3970
|
"needsReplyCount": n => { conversationPage.needsReplyCount = n.getNumberValue(); },
|
|
3962
3971
|
"pageSize": n => { conversationPage.pageSize = n.getNumberValue(); },
|
|
3963
3972
|
"refreshAfter": n => { conversationPage.refreshAfter = n.getStringValue(); },
|
|
3973
|
+
"selectedConversation": n => { conversationPage.selectedConversation = n.getObjectValue(createConversationPage_selectedConversationFromDiscriminatorValue); },
|
|
3964
3974
|
"totalCount": n => { conversationPage.totalCount = n.getNumberValue(); },
|
|
3965
3975
|
};
|
|
3966
3976
|
}
|
|
3977
|
+
/**
|
|
3978
|
+
* The deserialization information for the current model
|
|
3979
|
+
* @param ConversationPage_selectedConversation The instance to deserialize into.
|
|
3980
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3981
|
+
*/
|
|
3982
|
+
// @ts-ignore
|
|
3983
|
+
export function deserializeIntoConversationPage_selectedConversation(conversationPage_selectedConversation = {}) {
|
|
3984
|
+
return {
|
|
3985
|
+
...deserializeIntoConversationResponse(conversationPage_selectedConversation),
|
|
3986
|
+
};
|
|
3987
|
+
}
|
|
3967
3988
|
/**
|
|
3968
3989
|
* The deserialization information for the current model
|
|
3969
3990
|
* @param ConversationResponse The instance to deserialize into.
|
|
@@ -3991,6 +4012,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
3991
4012
|
"isArchived": n => { conversationResponse.isArchived = n.getBooleanValue(); },
|
|
3992
4013
|
"isDemo": n => { conversationResponse.isDemo = n.getBooleanValue(); },
|
|
3993
4014
|
"isUnread": n => { conversationResponse.isUnread = n.getBooleanValue(); },
|
|
4015
|
+
"lastAgentReplyAt": n => { conversationResponse.lastAgentReplyAt = n.getDateValue(); },
|
|
3994
4016
|
"lastEventAt": n => { conversationResponse.lastEventAt = n.getDateValue(); },
|
|
3995
4017
|
"lastEventIsInternalNote": n => { conversationResponse.lastEventIsInternalNote = n.getBooleanValue(); },
|
|
3996
4018
|
"lastInboundAt": n => { conversationResponse.lastInboundAt = n.getDateValue(); },
|
|
@@ -4006,6 +4028,8 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
4006
4028
|
"nextStep": n => { conversationResponse.nextStep = n.getStringValue(); },
|
|
4007
4029
|
"outboundPhoneNumberOverrideId": n => { conversationResponse.outboundPhoneNumberOverrideId = n.getStringValue(); },
|
|
4008
4030
|
"phoneNumber": n => { conversationResponse.phoneNumber = n.getObjectValue(createConversationResponse_phoneNumberFromDiscriminatorValue); },
|
|
4031
|
+
"priorityLabel": n => { conversationResponse.priorityLabel = n.getStringValue(); },
|
|
4032
|
+
"priorityPreview": n => { conversationResponse.priorityPreview = n.getStringValue(); },
|
|
4009
4033
|
"replyVersion": n => { conversationResponse.replyVersion = n.getNumberValue(); },
|
|
4010
4034
|
"status": n => { conversationResponse.status = n.getEnumValue(ConversationResponse_statusObject); },
|
|
4011
4035
|
"statusReason": n => { conversationResponse.statusReason = n.getStringValue(); },
|
|
@@ -8062,6 +8086,7 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
|
|
|
8062
8086
|
"isDemo": n => { transactionResponse.isDemo = n.getBooleanValue(); },
|
|
8063
8087
|
"isUsageReservation": n => { transactionResponse.isUsageReservation = n.getBooleanValue(); },
|
|
8064
8088
|
"lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
|
|
8089
|
+
"messageEventId": n => { transactionResponse.messageEventId = n.getStringValue(); },
|
|
8065
8090
|
"modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
|
|
8066
8091
|
"netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
|
|
8067
8092
|
"notes": n => { transactionResponse.notes = n.getStringValue(); },
|
|
@@ -9724,9 +9749,23 @@ export function serializeConversationPage(writer, conversationPage = {}, isSeria
|
|
|
9724
9749
|
writer.writeNumberValue("needsReplyCount", conversationPage.needsReplyCount);
|
|
9725
9750
|
writer.writeNumberValue("pageSize", conversationPage.pageSize);
|
|
9726
9751
|
writer.writeStringValue("refreshAfter", conversationPage.refreshAfter);
|
|
9752
|
+
writer.writeObjectValue("selectedConversation", conversationPage.selectedConversation, serializeConversationPage_selectedConversation);
|
|
9727
9753
|
writer.writeNumberValue("totalCount", conversationPage.totalCount);
|
|
9728
9754
|
writer.writeAdditionalData(conversationPage.additionalData);
|
|
9729
9755
|
}
|
|
9756
|
+
/**
|
|
9757
|
+
* Serializes information the current object
|
|
9758
|
+
* @param ConversationPage_selectedConversation The instance to serialize from.
|
|
9759
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9760
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9761
|
+
*/
|
|
9762
|
+
// @ts-ignore
|
|
9763
|
+
export function serializeConversationPage_selectedConversation(writer, conversationPage_selectedConversation = {}, isSerializingDerivedType = false) {
|
|
9764
|
+
if (!conversationPage_selectedConversation || isSerializingDerivedType) {
|
|
9765
|
+
return;
|
|
9766
|
+
}
|
|
9767
|
+
serializeConversationResponse(writer, conversationPage_selectedConversation, isSerializingDerivedType);
|
|
9768
|
+
}
|
|
9730
9769
|
/**
|
|
9731
9770
|
* Serializes information the current object
|
|
9732
9771
|
* @param ConversationResponse The instance to serialize from.
|
|
@@ -9757,6 +9796,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9757
9796
|
writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
|
|
9758
9797
|
writer.writeBooleanValue("isDemo", conversationResponse.isDemo);
|
|
9759
9798
|
writer.writeBooleanValue("isUnread", conversationResponse.isUnread);
|
|
9799
|
+
writer.writeDateValue("lastAgentReplyAt", conversationResponse.lastAgentReplyAt);
|
|
9760
9800
|
writer.writeDateValue("lastEventAt", conversationResponse.lastEventAt);
|
|
9761
9801
|
writer.writeBooleanValue("lastEventIsInternalNote", conversationResponse.lastEventIsInternalNote);
|
|
9762
9802
|
writer.writeDateValue("lastInboundAt", conversationResponse.lastInboundAt);
|
|
@@ -9772,6 +9812,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9772
9812
|
writer.writeStringValue("nextStep", conversationResponse.nextStep);
|
|
9773
9813
|
writer.writeStringValue("outboundPhoneNumberOverrideId", conversationResponse.outboundPhoneNumberOverrideId);
|
|
9774
9814
|
writer.writeObjectValue("phoneNumber", conversationResponse.phoneNumber, serializeConversationResponse_phoneNumber);
|
|
9815
|
+
writer.writeStringValue("priorityLabel", conversationResponse.priorityLabel);
|
|
9816
|
+
writer.writeStringValue("priorityPreview", conversationResponse.priorityPreview);
|
|
9775
9817
|
writer.writeNumberValue("replyVersion", conversationResponse.replyVersion);
|
|
9776
9818
|
writer.writeEnumValue("status", conversationResponse.status);
|
|
9777
9819
|
writer.writeStringValue("statusReason", conversationResponse.statusReason);
|
|
@@ -14476,6 +14518,7 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
|
|
|
14476
14518
|
writer.writeBooleanValue("isDemo", transactionResponse.isDemo);
|
|
14477
14519
|
writer.writeBooleanValue("isUsageReservation", transactionResponse.isUsageReservation);
|
|
14478
14520
|
writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
|
|
14521
|
+
writer.writeStringValue("messageEventId", transactionResponse.messageEventId);
|
|
14479
14522
|
writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
|
|
14480
14523
|
writer.writeNumberValue("netAmount", transactionResponse.netAmount);
|
|
14481
14524
|
writer.writeStringValue("notes", transactionResponse.notes);
|