@leadping/sdk 1.0.98 → 1.0.99
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 +64 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +73 -0
- package/dist/models/index.js.map +1 -1
- package/dist/organizations/me/index.d.ts +5 -0
- package/dist/organizations/me/index.d.ts.map +1 -1
- package/dist/organizations/me/index.js +5 -0
- package/dist/organizations/me/index.js.map +1 -1
- package/dist/organizations/me/leadAssignees/index.d.ts +31 -0
- package/dist/organizations/me/leadAssignees/index.d.ts.map +1 -0
- package/dist/organizations/me/leadAssignees/index.js +28 -0
- package/dist/organizations/me/leadAssignees/index.js.map +1 -0
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -2010,6 +2010,15 @@ export function createPhoneNumberMessagingEventResponseFromDiscriminatorValue(pa
|
|
|
2010
2010
|
export function createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue(parseNode) {
|
|
2011
2011
|
return deserializeIntoPhoneNumberOptOutMetricsResponse;
|
|
2012
2012
|
}
|
|
2013
|
+
/**
|
|
2014
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
2015
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2016
|
+
* @returns {PhoneNumberReadiness_trafficHealth}
|
|
2017
|
+
*/
|
|
2018
|
+
// @ts-ignore
|
|
2019
|
+
export function createPhoneNumberReadiness_trafficHealthFromDiscriminatorValue(parseNode) {
|
|
2020
|
+
return deserializeIntoPhoneNumberReadiness_trafficHealth;
|
|
2021
|
+
}
|
|
2013
2022
|
/**
|
|
2014
2023
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2015
2024
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2145,6 +2154,15 @@ export function createPhoneNumberStatusResponseFromDiscriminatorValue(parseNode)
|
|
|
2145
2154
|
export function createPhoneNumberTableRowFromDiscriminatorValue(parseNode) {
|
|
2146
2155
|
return deserializeIntoPhoneNumberTableRow;
|
|
2147
2156
|
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
2159
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2160
|
+
* @returns {PhoneNumberTrafficHealth}
|
|
2161
|
+
*/
|
|
2162
|
+
// @ts-ignore
|
|
2163
|
+
export function createPhoneNumberTrafficHealthFromDiscriminatorValue(parseNode) {
|
|
2164
|
+
return deserializeIntoPhoneNumberTrafficHealth;
|
|
2165
|
+
}
|
|
2148
2166
|
/**
|
|
2149
2167
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2150
2168
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3663,6 +3681,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
3663
3681
|
"archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
|
|
3664
3682
|
"archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
|
|
3665
3683
|
"avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
|
|
3684
|
+
"complianceStatus": n => { conversationResponse.complianceStatus = n.getStringValue(); },
|
|
3666
3685
|
"currentLeadStatus": n => { conversationResponse.currentLeadStatus = n.getObjectValue(createConversationResponse_currentLeadStatusFromDiscriminatorValue); },
|
|
3667
3686
|
"email": n => { conversationResponse.email = n.getStringValue(); },
|
|
3668
3687
|
"eventVersion": n => { conversationResponse.eventVersion = n.getNumberValue(); },
|
|
@@ -6549,6 +6568,18 @@ export function deserializeIntoPhoneNumberReadiness(phoneNumberReadiness = {}) {
|
|
|
6549
6568
|
"healthStatus": n => { phoneNumberReadiness.healthStatus = n.getEnumValue(PhoneNumberReadiness_healthStatusObject); },
|
|
6550
6569
|
"progressPercent": n => { phoneNumberReadiness.progressPercent = n.getNumberValue(); },
|
|
6551
6570
|
"state": n => { phoneNumberReadiness.state = n.getEnumValue(PhoneNumberReadiness_stateObject); },
|
|
6571
|
+
"trafficHealth": n => { phoneNumberReadiness.trafficHealth = n.getObjectValue(createPhoneNumberReadiness_trafficHealthFromDiscriminatorValue); },
|
|
6572
|
+
};
|
|
6573
|
+
}
|
|
6574
|
+
/**
|
|
6575
|
+
* The deserialization information for the current model
|
|
6576
|
+
* @param PhoneNumberReadiness_trafficHealth The instance to deserialize into.
|
|
6577
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6578
|
+
*/
|
|
6579
|
+
// @ts-ignore
|
|
6580
|
+
export function deserializeIntoPhoneNumberReadiness_trafficHealth(phoneNumberReadiness_trafficHealth = {}) {
|
|
6581
|
+
return {
|
|
6582
|
+
...deserializeIntoPhoneNumberTrafficHealth(phoneNumberReadiness_trafficHealth),
|
|
6552
6583
|
};
|
|
6553
6584
|
}
|
|
6554
6585
|
/**
|
|
@@ -6752,6 +6783,17 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
6752
6783
|
"warmup": n => { phoneNumberTableRow.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
|
|
6753
6784
|
};
|
|
6754
6785
|
}
|
|
6786
|
+
/**
|
|
6787
|
+
* The deserialization information for the current model
|
|
6788
|
+
* @param PhoneNumberTrafficHealth The instance to deserialize into.
|
|
6789
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6790
|
+
*/
|
|
6791
|
+
// @ts-ignore
|
|
6792
|
+
export function deserializeIntoPhoneNumberTrafficHealth(phoneNumberTrafficHealth = {}) {
|
|
6793
|
+
return {
|
|
6794
|
+
"score": n => { phoneNumberTrafficHealth.score = n.getNumberValue(); },
|
|
6795
|
+
};
|
|
6796
|
+
}
|
|
6755
6797
|
/**
|
|
6756
6798
|
* The deserialization information for the current model
|
|
6757
6799
|
* @param PhoneNumberTrafficMetricsResponse The instance to deserialize into.
|
|
@@ -7918,6 +7960,7 @@ export function deserializeIntoUserResponse(userResponse = {}) {
|
|
|
7918
7960
|
"firstName": n => { userResponse.firstName = n.getStringValue(); },
|
|
7919
7961
|
"id": n => { userResponse.id = n.getStringValue(); },
|
|
7920
7962
|
"isDemo": n => { userResponse.isDemo = n.getBooleanValue(); },
|
|
7963
|
+
"lastActiveAt": n => { userResponse.lastActiveAt = n.getDateValue(); },
|
|
7921
7964
|
"lastLoggedInAt": n => { userResponse.lastLoggedInAt = n.getDateValue(); },
|
|
7922
7965
|
"lastName": n => { userResponse.lastName = n.getStringValue(); },
|
|
7923
7966
|
"mobileDevicePreferences": n => { userResponse.mobileDevicePreferences = n.getCollectionOfObjectValues(createMobileDevicePreferencesFromDiscriminatorValue); },
|
|
@@ -9064,6 +9107,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9064
9107
|
writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
|
|
9065
9108
|
writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
|
|
9066
9109
|
writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
|
|
9110
|
+
writer.writeStringValue("complianceStatus", conversationResponse.complianceStatus);
|
|
9067
9111
|
writer.writeObjectValue("currentLeadStatus", conversationResponse.currentLeadStatus, serializeConversationResponse_currentLeadStatus);
|
|
9068
9112
|
writer.writeStringValue("email", conversationResponse.email);
|
|
9069
9113
|
writer.writeNumberValue("eventVersion", conversationResponse.eventVersion);
|
|
@@ -12409,8 +12453,22 @@ export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {},
|
|
|
12409
12453
|
writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
|
|
12410
12454
|
writer.writeNumberValue("progressPercent", phoneNumberReadiness.progressPercent);
|
|
12411
12455
|
writer.writeEnumValue("state", phoneNumberReadiness.state);
|
|
12456
|
+
writer.writeObjectValue("trafficHealth", phoneNumberReadiness.trafficHealth, serializePhoneNumberReadiness_trafficHealth);
|
|
12412
12457
|
writer.writeAdditionalData(phoneNumberReadiness.additionalData);
|
|
12413
12458
|
}
|
|
12459
|
+
/**
|
|
12460
|
+
* Serializes information the current object
|
|
12461
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12462
|
+
* @param PhoneNumberReadiness_trafficHealth The instance to serialize from.
|
|
12463
|
+
* @param writer Serialization writer to use to serialize this model
|
|
12464
|
+
*/
|
|
12465
|
+
// @ts-ignore
|
|
12466
|
+
export function serializePhoneNumberReadiness_trafficHealth(writer, phoneNumberReadiness_trafficHealth = {}, isSerializingDerivedType = false) {
|
|
12467
|
+
if (!phoneNumberReadiness_trafficHealth || isSerializingDerivedType) {
|
|
12468
|
+
return;
|
|
12469
|
+
}
|
|
12470
|
+
serializePhoneNumberTrafficHealth(writer, phoneNumberReadiness_trafficHealth, isSerializingDerivedType);
|
|
12471
|
+
}
|
|
12414
12472
|
/**
|
|
12415
12473
|
* Serializes information the current object
|
|
12416
12474
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12648,6 +12706,20 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
|
|
|
12648
12706
|
writer.writeObjectValue("warmup", phoneNumberTableRow.warmup, serializePhoneNumberReadiness);
|
|
12649
12707
|
writer.writeAdditionalData(phoneNumberTableRow.additionalData);
|
|
12650
12708
|
}
|
|
12709
|
+
/**
|
|
12710
|
+
* Serializes information the current object
|
|
12711
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12712
|
+
* @param PhoneNumberTrafficHealth The instance to serialize from.
|
|
12713
|
+
* @param writer Serialization writer to use to serialize this model
|
|
12714
|
+
*/
|
|
12715
|
+
// @ts-ignore
|
|
12716
|
+
export function serializePhoneNumberTrafficHealth(writer, phoneNumberTrafficHealth = {}, isSerializingDerivedType = false) {
|
|
12717
|
+
if (!phoneNumberTrafficHealth || isSerializingDerivedType) {
|
|
12718
|
+
return;
|
|
12719
|
+
}
|
|
12720
|
+
writer.writeNumberValue("score", phoneNumberTrafficHealth.score);
|
|
12721
|
+
writer.writeAdditionalData(phoneNumberTrafficHealth.additionalData);
|
|
12722
|
+
}
|
|
12651
12723
|
/**
|
|
12652
12724
|
* Serializes information the current object
|
|
12653
12725
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -13990,6 +14062,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
13990
14062
|
writer.writeStringValue("firstName", userResponse.firstName);
|
|
13991
14063
|
writer.writeStringValue("id", userResponse.id);
|
|
13992
14064
|
writer.writeBooleanValue("isDemo", userResponse.isDemo);
|
|
14065
|
+
writer.writeDateValue("lastActiveAt", userResponse.lastActiveAt);
|
|
13993
14066
|
writer.writeDateValue("lastLoggedInAt", userResponse.lastLoggedInAt);
|
|
13994
14067
|
writer.writeStringValue("lastName", userResponse.lastName);
|
|
13995
14068
|
writer.writeCollectionOfObjectValues("mobileDevicePreferences", userResponse.mobileDevicePreferences, serializeMobileDevicePreferences);
|