@leadping/sdk 1.0.36 → 1.0.38
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 +60 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +50 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -372,6 +372,15 @@ export function createCallEventTableRowFromDiscriminatorValue(parseNode) {
|
|
|
372
372
|
export function createChangeBillingPlanRequestFromDiscriminatorValue(parseNode) {
|
|
373
373
|
return deserializeIntoChangeBillingPlanRequest;
|
|
374
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
377
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
378
|
+
* @returns {CommunicationConsoleEntry}
|
|
379
|
+
*/
|
|
380
|
+
// @ts-ignore
|
|
381
|
+
export function createCommunicationConsoleEntryFromDiscriminatorValue(parseNode) {
|
|
382
|
+
return deserializeIntoCommunicationConsoleEntry;
|
|
383
|
+
}
|
|
375
384
|
/**
|
|
376
385
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
377
386
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3011,6 +3020,7 @@ export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
|
|
|
3011
3020
|
"billableSeconds": n => { callEventTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3012
3021
|
"billingStatus": n => { callEventTableRow.billingStatus = n.getStringValue(); },
|
|
3013
3022
|
"callerId": n => { callEventTableRow.callerId = n.getStringValue(); },
|
|
3023
|
+
"consoleEntries": n => { callEventTableRow.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
|
|
3014
3024
|
"conversationId": n => { callEventTableRow.conversationId = n.getStringValue(); },
|
|
3015
3025
|
"createdAt": n => { callEventTableRow.createdAt = n.getDateValue(); },
|
|
3016
3026
|
"direction": n => { callEventTableRow.direction = n.getStringValue(); },
|
|
@@ -3046,6 +3056,21 @@ export function deserializeIntoChangeBillingPlanRequest(changeBillingPlanRequest
|
|
|
3046
3056
|
"userId": n => { changeBillingPlanRequest.userId = n.getStringValue(); },
|
|
3047
3057
|
};
|
|
3048
3058
|
}
|
|
3059
|
+
/**
|
|
3060
|
+
* The deserialization information for the current model
|
|
3061
|
+
* @param CommunicationConsoleEntry The instance to deserialize into.
|
|
3062
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3063
|
+
*/
|
|
3064
|
+
// @ts-ignore
|
|
3065
|
+
export function deserializeIntoCommunicationConsoleEntry(communicationConsoleEntry = {}) {
|
|
3066
|
+
return {
|
|
3067
|
+
"id": n => { communicationConsoleEntry.id = n.getStringValue(); },
|
|
3068
|
+
"message": n => { communicationConsoleEntry.message = n.getStringValue(); },
|
|
3069
|
+
"occurredAt": n => { communicationConsoleEntry.occurredAt = n.getDateValue(); },
|
|
3070
|
+
"stage": n => { communicationConsoleEntry.stage = n.getStringValue(); },
|
|
3071
|
+
"status": n => { communicationConsoleEntry.status = n.getStringValue(); },
|
|
3072
|
+
};
|
|
3073
|
+
}
|
|
3049
3074
|
/**
|
|
3050
3075
|
* The deserialization information for the current model
|
|
3051
3076
|
* @param ComplianceUpdateRequest The instance to deserialize into.
|
|
@@ -5116,6 +5141,7 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
|
|
|
5116
5141
|
"billingStatus": n => { phoneCallResponse.billingStatus = n.getStringValue(); },
|
|
5117
5142
|
"callerId": n => { phoneCallResponse.callerId = n.getStringValue(); },
|
|
5118
5143
|
"campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
|
|
5144
|
+
"consoleEntries": n => { phoneCallResponse.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
|
|
5119
5145
|
"conversationId": n => { phoneCallResponse.conversationId = n.getStringValue(); },
|
|
5120
5146
|
"createdAt": n => { phoneCallResponse.createdAt = n.getDateValue(); },
|
|
5121
5147
|
"direction": n => { phoneCallResponse.direction = n.getStringValue(); },
|
|
@@ -5818,6 +5844,7 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
|
|
|
5818
5844
|
"canceledAt": n => { smsEventTableRow.canceledAt = n.getDateValue(); },
|
|
5819
5845
|
"cancelReason": n => { smsEventTableRow.cancelReason = n.getStringValue(); },
|
|
5820
5846
|
"complianceAction": n => { smsEventTableRow.complianceAction = n.getStringValue(); },
|
|
5847
|
+
"consoleEntries": n => { smsEventTableRow.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
|
|
5821
5848
|
"conversationId": n => { smsEventTableRow.conversationId = n.getStringValue(); },
|
|
5822
5849
|
"createdAt": n => { smsEventTableRow.createdAt = n.getDateValue(); },
|
|
5823
5850
|
"deliveredAt": n => { smsEventTableRow.deliveredAt = n.getDateValue(); },
|
|
@@ -5898,6 +5925,7 @@ export function deserializeIntoSmsResponse(smsResponse = {}) {
|
|
|
5898
5925
|
"canceledAt": n => { smsResponse.canceledAt = n.getDateValue(); },
|
|
5899
5926
|
"cancelReason": n => { smsResponse.cancelReason = n.getStringValue(); },
|
|
5900
5927
|
"complianceAction": n => { smsResponse.complianceAction = n.getStringValue(); },
|
|
5928
|
+
"consoleEntries": n => { smsResponse.consoleEntries = n.getCollectionOfObjectValues(createCommunicationConsoleEntryFromDiscriminatorValue); },
|
|
5901
5929
|
"conversationId": n => { smsResponse.conversationId = n.getStringValue(); },
|
|
5902
5930
|
"createdAt": n => { smsResponse.createdAt = n.getDateValue(); },
|
|
5903
5931
|
"deliveredAt": n => { smsResponse.deliveredAt = n.getDateValue(); },
|
|
@@ -7634,6 +7662,7 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
|
|
|
7634
7662
|
writer.writeObjectValue("billableSeconds", callEventTableRow.billableSeconds);
|
|
7635
7663
|
writer.writeStringValue("billingStatus", callEventTableRow.billingStatus);
|
|
7636
7664
|
writer.writeStringValue("callerId", callEventTableRow.callerId);
|
|
7665
|
+
writer.writeCollectionOfObjectValues("consoleEntries", callEventTableRow.consoleEntries, serializeCommunicationConsoleEntry);
|
|
7637
7666
|
writer.writeStringValue("conversationId", callEventTableRow.conversationId);
|
|
7638
7667
|
writer.writeDateValue("createdAt", callEventTableRow.createdAt);
|
|
7639
7668
|
writer.writeStringValue("direction", callEventTableRow.direction);
|
|
@@ -7672,6 +7701,24 @@ export function serializeChangeBillingPlanRequest(writer, changeBillingPlanReque
|
|
|
7672
7701
|
writer.writeStringValue("userId", changeBillingPlanRequest.userId);
|
|
7673
7702
|
writer.writeAdditionalData(changeBillingPlanRequest.additionalData);
|
|
7674
7703
|
}
|
|
7704
|
+
/**
|
|
7705
|
+
* Serializes information the current object
|
|
7706
|
+
* @param CommunicationConsoleEntry The instance to serialize from.
|
|
7707
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7708
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7709
|
+
*/
|
|
7710
|
+
// @ts-ignore
|
|
7711
|
+
export function serializeCommunicationConsoleEntry(writer, communicationConsoleEntry = {}, isSerializingDerivedType = false) {
|
|
7712
|
+
if (!communicationConsoleEntry || isSerializingDerivedType) {
|
|
7713
|
+
return;
|
|
7714
|
+
}
|
|
7715
|
+
writer.writeStringValue("id", communicationConsoleEntry.id);
|
|
7716
|
+
writer.writeStringValue("message", communicationConsoleEntry.message);
|
|
7717
|
+
writer.writeDateValue("occurredAt", communicationConsoleEntry.occurredAt);
|
|
7718
|
+
writer.writeStringValue("stage", communicationConsoleEntry.stage);
|
|
7719
|
+
writer.writeStringValue("status", communicationConsoleEntry.status);
|
|
7720
|
+
writer.writeAdditionalData(communicationConsoleEntry.additionalData);
|
|
7721
|
+
}
|
|
7675
7722
|
/**
|
|
7676
7723
|
* Serializes information the current object
|
|
7677
7724
|
* @param ComplianceUpdateRequest The instance to serialize from.
|
|
@@ -10064,6 +10111,7 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
|
|
|
10064
10111
|
writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
|
|
10065
10112
|
writer.writeStringValue("callerId", phoneCallResponse.callerId);
|
|
10066
10113
|
writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
|
|
10114
|
+
writer.writeCollectionOfObjectValues("consoleEntries", phoneCallResponse.consoleEntries, serializeCommunicationConsoleEntry);
|
|
10067
10115
|
writer.writeStringValue("conversationId", phoneCallResponse.conversationId);
|
|
10068
10116
|
writer.writeDateValue("createdAt", phoneCallResponse.createdAt);
|
|
10069
10117
|
writer.writeStringValue("direction", phoneCallResponse.direction);
|
|
@@ -10890,6 +10938,7 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
|
|
|
10890
10938
|
writer.writeDateValue("canceledAt", smsEventTableRow.canceledAt);
|
|
10891
10939
|
writer.writeStringValue("cancelReason", smsEventTableRow.cancelReason);
|
|
10892
10940
|
writer.writeStringValue("complianceAction", smsEventTableRow.complianceAction);
|
|
10941
|
+
writer.writeCollectionOfObjectValues("consoleEntries", smsEventTableRow.consoleEntries, serializeCommunicationConsoleEntry);
|
|
10893
10942
|
writer.writeStringValue("conversationId", smsEventTableRow.conversationId);
|
|
10894
10943
|
writer.writeDateValue("createdAt", smsEventTableRow.createdAt);
|
|
10895
10944
|
writer.writeDateValue("deliveredAt", smsEventTableRow.deliveredAt);
|
|
@@ -10979,6 +11028,7 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
|
|
|
10979
11028
|
writer.writeDateValue("canceledAt", smsResponse.canceledAt);
|
|
10980
11029
|
writer.writeStringValue("cancelReason", smsResponse.cancelReason);
|
|
10981
11030
|
writer.writeStringValue("complianceAction", smsResponse.complianceAction);
|
|
11031
|
+
writer.writeCollectionOfObjectValues("consoleEntries", smsResponse.consoleEntries, serializeCommunicationConsoleEntry);
|
|
10982
11032
|
writer.writeStringValue("conversationId", smsResponse.conversationId);
|
|
10983
11033
|
writer.writeDateValue("createdAt", smsResponse.createdAt);
|
|
10984
11034
|
writer.writeDateValue("deliveredAt", smsResponse.deliveredAt);
|