@leadping/sdk 1.0.130 → 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 +49 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +45 -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(); },
|
|
@@ -5559,6 +5583,7 @@ export function deserializeIntoLeadTagsRequest(leadTagsRequest = {}) {
|
|
|
5559
5583
|
// @ts-ignore
|
|
5560
5584
|
export function deserializeIntoManualDialRequest(manualDialRequest = {}) {
|
|
5561
5585
|
return {
|
|
5586
|
+
"fromPhoneNumberId": n => { manualDialRequest.fromPhoneNumberId = n.getStringValue(); },
|
|
5562
5587
|
"phoneNumber": n => { manualDialRequest.phoneNumber = n.getStringValue(); },
|
|
5563
5588
|
};
|
|
5564
5589
|
}
|
|
@@ -8061,6 +8086,7 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
|
|
|
8061
8086
|
"isDemo": n => { transactionResponse.isDemo = n.getBooleanValue(); },
|
|
8062
8087
|
"isUsageReservation": n => { transactionResponse.isUsageReservation = n.getBooleanValue(); },
|
|
8063
8088
|
"lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
|
|
8089
|
+
"messageEventId": n => { transactionResponse.messageEventId = n.getStringValue(); },
|
|
8064
8090
|
"modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
|
|
8065
8091
|
"netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
|
|
8066
8092
|
"notes": n => { transactionResponse.notes = n.getStringValue(); },
|
|
@@ -9723,9 +9749,23 @@ export function serializeConversationPage(writer, conversationPage = {}, isSeria
|
|
|
9723
9749
|
writer.writeNumberValue("needsReplyCount", conversationPage.needsReplyCount);
|
|
9724
9750
|
writer.writeNumberValue("pageSize", conversationPage.pageSize);
|
|
9725
9751
|
writer.writeStringValue("refreshAfter", conversationPage.refreshAfter);
|
|
9752
|
+
writer.writeObjectValue("selectedConversation", conversationPage.selectedConversation, serializeConversationPage_selectedConversation);
|
|
9726
9753
|
writer.writeNumberValue("totalCount", conversationPage.totalCount);
|
|
9727
9754
|
writer.writeAdditionalData(conversationPage.additionalData);
|
|
9728
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
|
+
}
|
|
9729
9769
|
/**
|
|
9730
9770
|
* Serializes information the current object
|
|
9731
9771
|
* @param ConversationResponse The instance to serialize from.
|
|
@@ -9756,6 +9796,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9756
9796
|
writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
|
|
9757
9797
|
writer.writeBooleanValue("isDemo", conversationResponse.isDemo);
|
|
9758
9798
|
writer.writeBooleanValue("isUnread", conversationResponse.isUnread);
|
|
9799
|
+
writer.writeDateValue("lastAgentReplyAt", conversationResponse.lastAgentReplyAt);
|
|
9759
9800
|
writer.writeDateValue("lastEventAt", conversationResponse.lastEventAt);
|
|
9760
9801
|
writer.writeBooleanValue("lastEventIsInternalNote", conversationResponse.lastEventIsInternalNote);
|
|
9761
9802
|
writer.writeDateValue("lastInboundAt", conversationResponse.lastInboundAt);
|
|
@@ -9771,6 +9812,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9771
9812
|
writer.writeStringValue("nextStep", conversationResponse.nextStep);
|
|
9772
9813
|
writer.writeStringValue("outboundPhoneNumberOverrideId", conversationResponse.outboundPhoneNumberOverrideId);
|
|
9773
9814
|
writer.writeObjectValue("phoneNumber", conversationResponse.phoneNumber, serializeConversationResponse_phoneNumber);
|
|
9815
|
+
writer.writeStringValue("priorityLabel", conversationResponse.priorityLabel);
|
|
9816
|
+
writer.writeStringValue("priorityPreview", conversationResponse.priorityPreview);
|
|
9774
9817
|
writer.writeNumberValue("replyVersion", conversationResponse.replyVersion);
|
|
9775
9818
|
writer.writeEnumValue("status", conversationResponse.status);
|
|
9776
9819
|
writer.writeStringValue("statusReason", conversationResponse.statusReason);
|
|
@@ -11569,6 +11612,7 @@ export function serializeManualDialRequest(writer, manualDialRequest = {}, isSer
|
|
|
11569
11612
|
if (!manualDialRequest || isSerializingDerivedType) {
|
|
11570
11613
|
return;
|
|
11571
11614
|
}
|
|
11615
|
+
writer.writeStringValue("fromPhoneNumberId", manualDialRequest.fromPhoneNumberId);
|
|
11572
11616
|
writer.writeStringValue("phoneNumber", manualDialRequest.phoneNumber);
|
|
11573
11617
|
writer.writeAdditionalData(manualDialRequest.additionalData);
|
|
11574
11618
|
}
|
|
@@ -14474,6 +14518,7 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
|
|
|
14474
14518
|
writer.writeBooleanValue("isDemo", transactionResponse.isDemo);
|
|
14475
14519
|
writer.writeBooleanValue("isUsageReservation", transactionResponse.isUsageReservation);
|
|
14476
14520
|
writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
|
|
14521
|
+
writer.writeStringValue("messageEventId", transactionResponse.messageEventId);
|
|
14477
14522
|
writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
|
|
14478
14523
|
writer.writeNumberValue("netAmount", transactionResponse.netAmount);
|
|
14479
14524
|
writer.writeStringValue("notes", transactionResponse.notes);
|