@leadping/sdk 1.0.98 → 1.0.100
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 -26
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +73 -20
- 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
|
/**
|
|
@@ -6743,15 +6774,24 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
6743
6774
|
"organizationId": n => { phoneNumberTableRow.organizationId = n.getStringValue(); },
|
|
6744
6775
|
"ownership": n => { phoneNumberTableRow.ownership = n.getEnumValue(PhoneNumberOwnershipObject); },
|
|
6745
6776
|
"routingSummary": n => { phoneNumberTableRow.routingSummary = n.getStringValue(); },
|
|
6746
|
-
"smsRampDirection": n => { phoneNumberTableRow.smsRampDirection = n.getEnumValue(PhoneNumberTableRow_smsRampDirectionObject); },
|
|
6747
6777
|
"smsReady": n => { phoneNumberTableRow.smsReady = n.getBooleanValue(); },
|
|
6748
6778
|
"tenDlcCampaignStatus": n => { phoneNumberTableRow.tenDlcCampaignStatus = n.getStringValue(); },
|
|
6749
6779
|
"type": n => { phoneNumberTableRow.type = n.getStringValue(); },
|
|
6750
|
-
"voiceRampDirection": n => { phoneNumberTableRow.voiceRampDirection = n.getEnumValue(PhoneNumberTableRow_voiceRampDirectionObject); },
|
|
6751
6780
|
"voiceReady": n => { phoneNumberTableRow.voiceReady = n.getBooleanValue(); },
|
|
6752
6781
|
"warmup": n => { phoneNumberTableRow.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
|
|
6753
6782
|
};
|
|
6754
6783
|
}
|
|
6784
|
+
/**
|
|
6785
|
+
* The deserialization information for the current model
|
|
6786
|
+
* @param PhoneNumberTrafficHealth The instance to deserialize into.
|
|
6787
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6788
|
+
*/
|
|
6789
|
+
// @ts-ignore
|
|
6790
|
+
export function deserializeIntoPhoneNumberTrafficHealth(phoneNumberTrafficHealth = {}) {
|
|
6791
|
+
return {
|
|
6792
|
+
"score": n => { phoneNumberTrafficHealth.score = n.getNumberValue(); },
|
|
6793
|
+
};
|
|
6794
|
+
}
|
|
6755
6795
|
/**
|
|
6756
6796
|
* The deserialization information for the current model
|
|
6757
6797
|
* @param PhoneNumberTrafficMetricsResponse The instance to deserialize into.
|
|
@@ -7918,6 +7958,7 @@ export function deserializeIntoUserResponse(userResponse = {}) {
|
|
|
7918
7958
|
"firstName": n => { userResponse.firstName = n.getStringValue(); },
|
|
7919
7959
|
"id": n => { userResponse.id = n.getStringValue(); },
|
|
7920
7960
|
"isDemo": n => { userResponse.isDemo = n.getBooleanValue(); },
|
|
7961
|
+
"lastActiveAt": n => { userResponse.lastActiveAt = n.getDateValue(); },
|
|
7921
7962
|
"lastLoggedInAt": n => { userResponse.lastLoggedInAt = n.getDateValue(); },
|
|
7922
7963
|
"lastName": n => { userResponse.lastName = n.getStringValue(); },
|
|
7923
7964
|
"mobileDevicePreferences": n => { userResponse.mobileDevicePreferences = n.getCollectionOfObjectValues(createMobileDevicePreferencesFromDiscriminatorValue); },
|
|
@@ -9064,6 +9105,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9064
9105
|
writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
|
|
9065
9106
|
writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
|
|
9066
9107
|
writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
|
|
9108
|
+
writer.writeStringValue("complianceStatus", conversationResponse.complianceStatus);
|
|
9067
9109
|
writer.writeObjectValue("currentLeadStatus", conversationResponse.currentLeadStatus, serializeConversationResponse_currentLeadStatus);
|
|
9068
9110
|
writer.writeStringValue("email", conversationResponse.email);
|
|
9069
9111
|
writer.writeNumberValue("eventVersion", conversationResponse.eventVersion);
|
|
@@ -12409,8 +12451,22 @@ export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {},
|
|
|
12409
12451
|
writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
|
|
12410
12452
|
writer.writeNumberValue("progressPercent", phoneNumberReadiness.progressPercent);
|
|
12411
12453
|
writer.writeEnumValue("state", phoneNumberReadiness.state);
|
|
12454
|
+
writer.writeObjectValue("trafficHealth", phoneNumberReadiness.trafficHealth, serializePhoneNumberReadiness_trafficHealth);
|
|
12412
12455
|
writer.writeAdditionalData(phoneNumberReadiness.additionalData);
|
|
12413
12456
|
}
|
|
12457
|
+
/**
|
|
12458
|
+
* Serializes information the current object
|
|
12459
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12460
|
+
* @param PhoneNumberReadiness_trafficHealth The instance to serialize from.
|
|
12461
|
+
* @param writer Serialization writer to use to serialize this model
|
|
12462
|
+
*/
|
|
12463
|
+
// @ts-ignore
|
|
12464
|
+
export function serializePhoneNumberReadiness_trafficHealth(writer, phoneNumberReadiness_trafficHealth = {}, isSerializingDerivedType = false) {
|
|
12465
|
+
if (!phoneNumberReadiness_trafficHealth || isSerializingDerivedType) {
|
|
12466
|
+
return;
|
|
12467
|
+
}
|
|
12468
|
+
serializePhoneNumberTrafficHealth(writer, phoneNumberReadiness_trafficHealth, isSerializingDerivedType);
|
|
12469
|
+
}
|
|
12414
12470
|
/**
|
|
12415
12471
|
* Serializes information the current object
|
|
12416
12472
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12639,15 +12695,27 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
|
|
|
12639
12695
|
writer.writeStringValue("organizationId", phoneNumberTableRow.organizationId);
|
|
12640
12696
|
writer.writeEnumValue("ownership", phoneNumberTableRow.ownership);
|
|
12641
12697
|
writer.writeStringValue("routingSummary", phoneNumberTableRow.routingSummary);
|
|
12642
|
-
writer.writeEnumValue("smsRampDirection", phoneNumberTableRow.smsRampDirection);
|
|
12643
12698
|
writer.writeBooleanValue("smsReady", phoneNumberTableRow.smsReady);
|
|
12644
12699
|
writer.writeStringValue("tenDlcCampaignStatus", phoneNumberTableRow.tenDlcCampaignStatus);
|
|
12645
12700
|
writer.writeStringValue("type", phoneNumberTableRow.type);
|
|
12646
|
-
writer.writeEnumValue("voiceRampDirection", phoneNumberTableRow.voiceRampDirection);
|
|
12647
12701
|
writer.writeBooleanValue("voiceReady", phoneNumberTableRow.voiceReady);
|
|
12648
12702
|
writer.writeObjectValue("warmup", phoneNumberTableRow.warmup, serializePhoneNumberReadiness);
|
|
12649
12703
|
writer.writeAdditionalData(phoneNumberTableRow.additionalData);
|
|
12650
12704
|
}
|
|
12705
|
+
/**
|
|
12706
|
+
* Serializes information the current object
|
|
12707
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12708
|
+
* @param PhoneNumberTrafficHealth The instance to serialize from.
|
|
12709
|
+
* @param writer Serialization writer to use to serialize this model
|
|
12710
|
+
*/
|
|
12711
|
+
// @ts-ignore
|
|
12712
|
+
export function serializePhoneNumberTrafficHealth(writer, phoneNumberTrafficHealth = {}, isSerializingDerivedType = false) {
|
|
12713
|
+
if (!phoneNumberTrafficHealth || isSerializingDerivedType) {
|
|
12714
|
+
return;
|
|
12715
|
+
}
|
|
12716
|
+
writer.writeNumberValue("score", phoneNumberTrafficHealth.score);
|
|
12717
|
+
writer.writeAdditionalData(phoneNumberTrafficHealth.additionalData);
|
|
12718
|
+
}
|
|
12651
12719
|
/**
|
|
12652
12720
|
* Serializes information the current object
|
|
12653
12721
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -13990,6 +14058,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
13990
14058
|
writer.writeStringValue("firstName", userResponse.firstName);
|
|
13991
14059
|
writer.writeStringValue("id", userResponse.id);
|
|
13992
14060
|
writer.writeBooleanValue("isDemo", userResponse.isDemo);
|
|
14061
|
+
writer.writeDateValue("lastActiveAt", userResponse.lastActiveAt);
|
|
13993
14062
|
writer.writeDateValue("lastLoggedInAt", userResponse.lastLoggedInAt);
|
|
13994
14063
|
writer.writeStringValue("lastName", userResponse.lastName);
|
|
13995
14064
|
writer.writeCollectionOfObjectValues("mobileDevicePreferences", userResponse.mobileDevicePreferences, serializeMobileDevicePreferences);
|
|
@@ -15043,22 +15112,6 @@ export const PhoneNumberReadiness_stateObject = {
|
|
|
15043
15112
|
Blocked: "Blocked",
|
|
15044
15113
|
Ready: "Ready",
|
|
15045
15114
|
};
|
|
15046
|
-
/**
|
|
15047
|
-
* Indicates whether a phone number's channel capacity is increasing, decreasing, or stable.
|
|
15048
|
-
*/
|
|
15049
|
-
export const PhoneNumberTableRow_smsRampDirectionObject = {
|
|
15050
|
-
Up: "up",
|
|
15051
|
-
Down: "down",
|
|
15052
|
-
None: "none",
|
|
15053
|
-
};
|
|
15054
|
-
/**
|
|
15055
|
-
* Indicates whether a phone number's channel capacity is increasing, decreasing, or stable.
|
|
15056
|
-
*/
|
|
15057
|
-
export const PhoneNumberTableRow_voiceRampDirectionObject = {
|
|
15058
|
-
Up: "up",
|
|
15059
|
-
Down: "down",
|
|
15060
|
-
None: "none",
|
|
15061
|
-
};
|
|
15062
15115
|
/**
|
|
15063
15116
|
* Defines the source that requested outbound delivery.
|
|
15064
15117
|
*/
|