@leadping/sdk 1.0.131 → 1.0.133
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(); },
|
|
@@ -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(); },
|
|
@@ -8371,6 +8396,7 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
|
|
|
8371
8396
|
"unreadSmsEnabled": n => { userNotificationPreferences.unreadSmsEnabled = n.getBooleanValue(); },
|
|
8372
8397
|
"unreadSmsSmsEnabled": n => { userNotificationPreferences.unreadSmsSmsEnabled = n.getBooleanValue(); },
|
|
8373
8398
|
"usageLimitHitEnabled": n => { userNotificationPreferences.usageLimitHitEnabled = n.getBooleanValue(); },
|
|
8399
|
+
"walletDepletedSmsEnabled": n => { userNotificationPreferences.walletDepletedSmsEnabled = n.getBooleanValue(); },
|
|
8374
8400
|
};
|
|
8375
8401
|
}
|
|
8376
8402
|
/**
|
|
@@ -9724,9 +9750,23 @@ export function serializeConversationPage(writer, conversationPage = {}, isSeria
|
|
|
9724
9750
|
writer.writeNumberValue("needsReplyCount", conversationPage.needsReplyCount);
|
|
9725
9751
|
writer.writeNumberValue("pageSize", conversationPage.pageSize);
|
|
9726
9752
|
writer.writeStringValue("refreshAfter", conversationPage.refreshAfter);
|
|
9753
|
+
writer.writeObjectValue("selectedConversation", conversationPage.selectedConversation, serializeConversationPage_selectedConversation);
|
|
9727
9754
|
writer.writeNumberValue("totalCount", conversationPage.totalCount);
|
|
9728
9755
|
writer.writeAdditionalData(conversationPage.additionalData);
|
|
9729
9756
|
}
|
|
9757
|
+
/**
|
|
9758
|
+
* Serializes information the current object
|
|
9759
|
+
* @param ConversationPage_selectedConversation The instance to serialize from.
|
|
9760
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9761
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9762
|
+
*/
|
|
9763
|
+
// @ts-ignore
|
|
9764
|
+
export function serializeConversationPage_selectedConversation(writer, conversationPage_selectedConversation = {}, isSerializingDerivedType = false) {
|
|
9765
|
+
if (!conversationPage_selectedConversation || isSerializingDerivedType) {
|
|
9766
|
+
return;
|
|
9767
|
+
}
|
|
9768
|
+
serializeConversationResponse(writer, conversationPage_selectedConversation, isSerializingDerivedType);
|
|
9769
|
+
}
|
|
9730
9770
|
/**
|
|
9731
9771
|
* Serializes information the current object
|
|
9732
9772
|
* @param ConversationResponse The instance to serialize from.
|
|
@@ -9757,6 +9797,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9757
9797
|
writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
|
|
9758
9798
|
writer.writeBooleanValue("isDemo", conversationResponse.isDemo);
|
|
9759
9799
|
writer.writeBooleanValue("isUnread", conversationResponse.isUnread);
|
|
9800
|
+
writer.writeDateValue("lastAgentReplyAt", conversationResponse.lastAgentReplyAt);
|
|
9760
9801
|
writer.writeDateValue("lastEventAt", conversationResponse.lastEventAt);
|
|
9761
9802
|
writer.writeBooleanValue("lastEventIsInternalNote", conversationResponse.lastEventIsInternalNote);
|
|
9762
9803
|
writer.writeDateValue("lastInboundAt", conversationResponse.lastInboundAt);
|
|
@@ -9772,6 +9813,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9772
9813
|
writer.writeStringValue("nextStep", conversationResponse.nextStep);
|
|
9773
9814
|
writer.writeStringValue("outboundPhoneNumberOverrideId", conversationResponse.outboundPhoneNumberOverrideId);
|
|
9774
9815
|
writer.writeObjectValue("phoneNumber", conversationResponse.phoneNumber, serializeConversationResponse_phoneNumber);
|
|
9816
|
+
writer.writeStringValue("priorityLabel", conversationResponse.priorityLabel);
|
|
9817
|
+
writer.writeStringValue("priorityPreview", conversationResponse.priorityPreview);
|
|
9775
9818
|
writer.writeNumberValue("replyVersion", conversationResponse.replyVersion);
|
|
9776
9819
|
writer.writeEnumValue("status", conversationResponse.status);
|
|
9777
9820
|
writer.writeStringValue("statusReason", conversationResponse.statusReason);
|
|
@@ -14476,6 +14519,7 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
|
|
|
14476
14519
|
writer.writeBooleanValue("isDemo", transactionResponse.isDemo);
|
|
14477
14520
|
writer.writeBooleanValue("isUsageReservation", transactionResponse.isUsageReservation);
|
|
14478
14521
|
writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
|
|
14522
|
+
writer.writeStringValue("messageEventId", transactionResponse.messageEventId);
|
|
14479
14523
|
writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
|
|
14480
14524
|
writer.writeNumberValue("netAmount", transactionResponse.netAmount);
|
|
14481
14525
|
writer.writeStringValue("notes", transactionResponse.notes);
|
|
@@ -14829,6 +14873,7 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
|
|
|
14829
14873
|
writer.writeBooleanValue("unreadSmsEnabled", userNotificationPreferences.unreadSmsEnabled);
|
|
14830
14874
|
writer.writeBooleanValue("unreadSmsSmsEnabled", userNotificationPreferences.unreadSmsSmsEnabled);
|
|
14831
14875
|
writer.writeBooleanValue("usageLimitHitEnabled", userNotificationPreferences.usageLimitHitEnabled);
|
|
14876
|
+
writer.writeBooleanValue("walletDepletedSmsEnabled", userNotificationPreferences.walletDepletedSmsEnabled);
|
|
14832
14877
|
writer.writeAdditionalData(userNotificationPreferences.additionalData);
|
|
14833
14878
|
}
|
|
14834
14879
|
/**
|