@leadping/sdk 1.0.24 → 1.0.26
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 +634 -159
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +624 -156
- package/dist/models/index.js.map +1 -1
- package/dist/phoneNumbers/item/index.d.ts +2 -2
- package/dist/phoneNumbers/item/status/index.d.ts +3 -3
- package/dist/phoneNumbers/item/warmup/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -1074,6 +1074,15 @@ export function createLeadRequestFromDiscriminatorValue(parseNode) {
|
|
|
1074
1074
|
export function createLeadResponse_currentDispositionFromDiscriminatorValue(parseNode) {
|
|
1075
1075
|
return deserializeIntoLeadResponse_currentDisposition;
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1079
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1080
|
+
* @returns {LeadResponse_phoneIdentity}
|
|
1081
|
+
*/
|
|
1082
|
+
// @ts-ignore
|
|
1083
|
+
export function createLeadResponse_phoneIdentityFromDiscriminatorValue(parseNode) {
|
|
1084
|
+
return deserializeIntoLeadResponse_phoneIdentity;
|
|
1085
|
+
}
|
|
1077
1086
|
/**
|
|
1078
1087
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1079
1088
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1362,6 +1371,69 @@ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
|
|
|
1362
1371
|
export function createPhoneFromDiscriminatorValue(parseNode) {
|
|
1363
1372
|
return deserializeIntoPhone;
|
|
1364
1373
|
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1376
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1377
|
+
* @returns {PhoneIdentityResponse_lookup}
|
|
1378
|
+
*/
|
|
1379
|
+
// @ts-ignore
|
|
1380
|
+
export function createPhoneIdentityResponse_lookupFromDiscriminatorValue(parseNode) {
|
|
1381
|
+
return deserializeIntoPhoneIdentityResponse_lookup;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1385
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1386
|
+
* @returns {PhoneIdentityResponse}
|
|
1387
|
+
*/
|
|
1388
|
+
// @ts-ignore
|
|
1389
|
+
export function createPhoneIdentityResponseFromDiscriminatorValue(parseNode) {
|
|
1390
|
+
return deserializeIntoPhoneIdentityResponse;
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1394
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1395
|
+
* @returns {PhoneLocationSource}
|
|
1396
|
+
*/
|
|
1397
|
+
// @ts-ignore
|
|
1398
|
+
export function createPhoneLocationSourceFromDiscriminatorValue(parseNode) {
|
|
1399
|
+
return deserializeIntoPhoneLocationSource;
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1403
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1404
|
+
* @returns {PhoneLookup_carrier}
|
|
1405
|
+
*/
|
|
1406
|
+
// @ts-ignore
|
|
1407
|
+
export function createPhoneLookup_carrierFromDiscriminatorValue(parseNode) {
|
|
1408
|
+
return deserializeIntoPhoneLookup_carrier;
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1412
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1413
|
+
* @returns {PhoneLookup_location}
|
|
1414
|
+
*/
|
|
1415
|
+
// @ts-ignore
|
|
1416
|
+
export function createPhoneLookup_locationFromDiscriminatorValue(parseNode) {
|
|
1417
|
+
return deserializeIntoPhoneLookup_location;
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1421
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1422
|
+
* @returns {PhoneLookupCarrier}
|
|
1423
|
+
*/
|
|
1424
|
+
// @ts-ignore
|
|
1425
|
+
export function createPhoneLookupCarrierFromDiscriminatorValue(parseNode) {
|
|
1426
|
+
return deserializeIntoPhoneLookupCarrier;
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1430
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1431
|
+
* @returns {PhoneLookup}
|
|
1432
|
+
*/
|
|
1433
|
+
// @ts-ignore
|
|
1434
|
+
export function createPhoneLookupFromDiscriminatorValue(parseNode) {
|
|
1435
|
+
return deserializeIntoPhoneLookup;
|
|
1436
|
+
}
|
|
1365
1437
|
/**
|
|
1366
1438
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1367
1439
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1398,6 +1470,24 @@ export function createPhoneNumberAvailabilityResponseFromDiscriminatorValue(pars
|
|
|
1398
1470
|
export function createPhoneNumberLocation_coordinateFromDiscriminatorValue(parseNode) {
|
|
1399
1471
|
return deserializeIntoPhoneNumberLocation_coordinate;
|
|
1400
1472
|
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1475
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1476
|
+
* @returns {PhoneNumberLocation_coordinateSource}
|
|
1477
|
+
*/
|
|
1478
|
+
// @ts-ignore
|
|
1479
|
+
export function createPhoneNumberLocation_coordinateSourceFromDiscriminatorValue(parseNode) {
|
|
1480
|
+
return deserializeIntoPhoneNumberLocation_coordinateSource;
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1484
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1485
|
+
* @returns {PhoneNumberLocation_timeZoneSource}
|
|
1486
|
+
*/
|
|
1487
|
+
// @ts-ignore
|
|
1488
|
+
export function createPhoneNumberLocation_timeZoneSourceFromDiscriminatorValue(parseNode) {
|
|
1489
|
+
return deserializeIntoPhoneNumberLocation_timeZoneSource;
|
|
1490
|
+
}
|
|
1401
1491
|
/**
|
|
1402
1492
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1403
1493
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1425,6 +1515,15 @@ export function createPhoneNumberMessagingEventResponseFromDiscriminatorValue(pa
|
|
|
1425
1515
|
export function createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue(parseNode) {
|
|
1426
1516
|
return deserializeIntoPhoneNumberOptOutMetricsResponse;
|
|
1427
1517
|
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1520
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1521
|
+
* @returns {PhoneNumberReadiness}
|
|
1522
|
+
*/
|
|
1523
|
+
// @ts-ignore
|
|
1524
|
+
export function createPhoneNumberReadinessFromDiscriminatorValue(parseNode) {
|
|
1525
|
+
return deserializeIntoPhoneNumberReadiness;
|
|
1526
|
+
}
|
|
1428
1527
|
/**
|
|
1429
1528
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1430
1529
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1560,15 +1659,6 @@ export function createPhoneNumberTrafficMetricsResponseFromDiscriminatorValue(pa
|
|
|
1560
1659
|
export function createPhoneNumberTrafficTrendPointFromDiscriminatorValue(parseNode) {
|
|
1561
1660
|
return deserializeIntoPhoneNumberTrafficTrendPoint;
|
|
1562
1661
|
}
|
|
1563
|
-
/**
|
|
1564
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1565
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1566
|
-
* @returns {PhoneNumberWarmup}
|
|
1567
|
-
*/
|
|
1568
|
-
// @ts-ignore
|
|
1569
|
-
export function createPhoneNumberWarmupFromDiscriminatorValue(parseNode) {
|
|
1570
|
-
return deserializeIntoPhoneNumberWarmup;
|
|
1571
|
-
}
|
|
1572
1662
|
/**
|
|
1573
1663
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1574
1664
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1617,29 +1707,29 @@ export function createSmsEventTableRowFromDiscriminatorValue(parseNode) {
|
|
|
1617
1707
|
/**
|
|
1618
1708
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1619
1709
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1620
|
-
* @returns {
|
|
1710
|
+
* @returns {SmsReadinessStatusResponse}
|
|
1621
1711
|
*/
|
|
1622
1712
|
// @ts-ignore
|
|
1623
|
-
export function
|
|
1624
|
-
return
|
|
1713
|
+
export function createSmsReadinessStatusResponseFromDiscriminatorValue(parseNode) {
|
|
1714
|
+
return deserializeIntoSmsReadinessStatusResponse;
|
|
1625
1715
|
}
|
|
1626
1716
|
/**
|
|
1627
1717
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1628
1718
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1629
|
-
* @returns {
|
|
1719
|
+
* @returns {SmsReadinessUiState}
|
|
1630
1720
|
*/
|
|
1631
1721
|
// @ts-ignore
|
|
1632
|
-
export function
|
|
1633
|
-
return
|
|
1722
|
+
export function createSmsReadinessUiStateFromDiscriminatorValue(parseNode) {
|
|
1723
|
+
return deserializeIntoSmsReadinessUiState;
|
|
1634
1724
|
}
|
|
1635
1725
|
/**
|
|
1636
1726
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1637
1727
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1638
|
-
* @returns {
|
|
1728
|
+
* @returns {SmsResponse}
|
|
1639
1729
|
*/
|
|
1640
1730
|
// @ts-ignore
|
|
1641
|
-
export function
|
|
1642
|
-
return
|
|
1731
|
+
export function createSmsResponseFromDiscriminatorValue(parseNode) {
|
|
1732
|
+
return deserializeIntoSmsResponse;
|
|
1643
1733
|
}
|
|
1644
1734
|
/**
|
|
1645
1735
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -2791,6 +2881,7 @@ export function deserializeIntoBusinessActivationState(businessActivationState =
|
|
|
2791
2881
|
"telephonyProvisioningStartedAt": n => { businessActivationState.telephonyProvisioningStartedAt = n.getDateValue(); },
|
|
2792
2882
|
"telephonyReadyAt": n => { businessActivationState.telephonyReadyAt = n.getDateValue(); },
|
|
2793
2883
|
"telephonyStatus": n => { businessActivationState.telephonyStatus = n.getEnumValue(ActivationTelephonyStatusObject); },
|
|
2884
|
+
"tenDlcApplicationId": n => { businessActivationState.tenDlcApplicationId = n.getStringValue(); },
|
|
2794
2885
|
"tenDlcDraft": n => { businessActivationState.tenDlcDraft = n.getObjectValue(createBusinessActivationState_tenDlcDraftFromDiscriminatorValue); },
|
|
2795
2886
|
"tenDlcStatus": n => { businessActivationState.tenDlcStatus = n.getEnumValue(TenDlcApplicationStatusObject); },
|
|
2796
2887
|
"updatedAt": n => { businessActivationState.updatedAt = n.getDateValue(); },
|
|
@@ -3172,6 +3263,7 @@ export function deserializeIntoBusinessSwitchOption(businessSwitchOption = {}) {
|
|
|
3172
3263
|
"needsAdminReview": n => { businessSwitchOption.needsAdminReview = n.getBooleanValue(); },
|
|
3173
3264
|
"readyForCustomerTraffic": n => { businessSwitchOption.readyForCustomerTraffic = n.getBooleanValue(); },
|
|
3174
3265
|
"role": n => { businessSwitchOption.role = n.getEnumValue(BusinessUserRoleObject); },
|
|
3266
|
+
"tenDlcStatus": n => { businessSwitchOption.tenDlcStatus = n.getEnumValue(BusinessSwitchOption_tenDlcStatusObject); },
|
|
3175
3267
|
};
|
|
3176
3268
|
}
|
|
3177
3269
|
/**
|
|
@@ -3392,6 +3484,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
3392
3484
|
"archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
|
|
3393
3485
|
"archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
|
|
3394
3486
|
"currentDisposition": n => { conversationResponse.currentDisposition = n.getObjectValue(createConversationResponse_currentDispositionFromDiscriminatorValue); },
|
|
3487
|
+
"email": n => { conversationResponse.email = n.getStringValue(); },
|
|
3395
3488
|
"firstName": n => { conversationResponse.firstName = n.getStringValue(); },
|
|
3396
3489
|
"id": n => { conversationResponse.id = n.getStringValue(); },
|
|
3397
3490
|
"isArchived": n => { conversationResponse.isArchived = n.getBooleanValue(); },
|
|
@@ -3886,6 +3979,7 @@ export function deserializeIntoEventDetailResponse_user(eventDetailResponse_user
|
|
|
3886
3979
|
export function deserializeIntoEventTableRow(eventTableRow = {}) {
|
|
3887
3980
|
return {
|
|
3888
3981
|
"actorDisplayName": n => { eventTableRow.actorDisplayName = n.getStringValue(); },
|
|
3982
|
+
"actorEmail": n => { eventTableRow.actorEmail = n.getStringValue(); },
|
|
3889
3983
|
"actorUserId": n => { eventTableRow.actorUserId = n.getStringValue(); },
|
|
3890
3984
|
"billableAmount": n => { eventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3891
3985
|
"billingStatus": n => { eventTableRow.billingStatus = n.getStringValue(); },
|
|
@@ -4263,6 +4357,7 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
|
|
|
4263
4357
|
"isArchived": n => { leadResponse.isArchived = n.getBooleanValue(); },
|
|
4264
4358
|
"metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
|
|
4265
4359
|
"modifiedAt": n => { leadResponse.modifiedAt = n.getDateValue(); },
|
|
4360
|
+
"phoneIdentity": n => { leadResponse.phoneIdentity = n.getObjectValue(createLeadResponse_phoneIdentityFromDiscriminatorValue); },
|
|
4266
4361
|
"tags": n => { leadResponse.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
|
|
4267
4362
|
};
|
|
4268
4363
|
}
|
|
@@ -4277,6 +4372,17 @@ export function deserializeIntoLeadResponse_currentDisposition(leadResponse_curr
|
|
|
4277
4372
|
...deserializeIntoCurrentDispositionSummary(leadResponse_currentDisposition),
|
|
4278
4373
|
};
|
|
4279
4374
|
}
|
|
4375
|
+
/**
|
|
4376
|
+
* The deserialization information for the current model
|
|
4377
|
+
* @param LeadResponse_phoneIdentity The instance to deserialize into.
|
|
4378
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4379
|
+
*/
|
|
4380
|
+
// @ts-ignore
|
|
4381
|
+
export function deserializeIntoLeadResponse_phoneIdentity(leadResponse_phoneIdentity = {}) {
|
|
4382
|
+
return {
|
|
4383
|
+
...deserializeIntoPhoneIdentityResponse(leadResponse_phoneIdentity),
|
|
4384
|
+
};
|
|
4385
|
+
}
|
|
4280
4386
|
/**
|
|
4281
4387
|
* The deserialization information for the current model
|
|
4282
4388
|
* @param LeadStatusRequest The instance to deserialize into.
|
|
@@ -4489,12 +4595,16 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
|
|
|
4489
4595
|
"healthStatus": n => { outboundPhoneNumberCapacity.healthStatus = n.getEnumValue(PhoneNumberOutboundHealthStatusObject); },
|
|
4490
4596
|
"phoneNumber": n => { outboundPhoneNumberCapacity.phoneNumber = n.getStringValue(); },
|
|
4491
4597
|
"phoneNumberId": n => { outboundPhoneNumberCapacity.phoneNumberId = n.getStringValue(); },
|
|
4598
|
+
"smsDailyResetsAt": n => { outboundPhoneNumberCapacity.smsDailyResetsAt = n.getDateValue(); },
|
|
4599
|
+
"smsHourlyResetsAt": n => { outboundPhoneNumberCapacity.smsHourlyResetsAt = n.getDateValue(); },
|
|
4492
4600
|
"smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getNumberValue(); },
|
|
4493
4601
|
"smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
|
|
4494
4602
|
"smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
|
|
4495
4603
|
"smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getNumberValue(); },
|
|
4496
4604
|
"smsUsedThisHour": n => { outboundPhoneNumberCapacity.smsUsedThisHour = n.getNumberValue(); },
|
|
4497
4605
|
"smsUsedToday": n => { outboundPhoneNumberCapacity.smsUsedToday = n.getNumberValue(); },
|
|
4606
|
+
"voiceDailyResetsAt": n => { outboundPhoneNumberCapacity.voiceDailyResetsAt = n.getDateValue(); },
|
|
4607
|
+
"voiceHourlyResetsAt": n => { outboundPhoneNumberCapacity.voiceHourlyResetsAt = n.getDateValue(); },
|
|
4498
4608
|
"voiceLimitThisHour": n => { outboundPhoneNumberCapacity.voiceLimitThisHour = n.getNumberValue(); },
|
|
4499
4609
|
"voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
|
|
4500
4610
|
"voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
|
|
@@ -4790,6 +4900,102 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
|
|
|
4790
4900
|
"wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
|
|
4791
4901
|
};
|
|
4792
4902
|
}
|
|
4903
|
+
/**
|
|
4904
|
+
* The deserialization information for the current model
|
|
4905
|
+
* @param PhoneIdentityResponse The instance to deserialize into.
|
|
4906
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4907
|
+
*/
|
|
4908
|
+
// @ts-ignore
|
|
4909
|
+
export function deserializeIntoPhoneIdentityResponse(phoneIdentityResponse = {}) {
|
|
4910
|
+
return {
|
|
4911
|
+
"createdAt": n => { phoneIdentityResponse.createdAt = n.getDateValue(); },
|
|
4912
|
+
"id": n => { phoneIdentityResponse.id = n.getStringValue(); },
|
|
4913
|
+
"lastEnrichedAt": n => { phoneIdentityResponse.lastEnrichedAt = n.getDateValue(); },
|
|
4914
|
+
"lookup": n => { phoneIdentityResponse.lookup = n.getObjectValue(createPhoneIdentityResponse_lookupFromDiscriminatorValue); },
|
|
4915
|
+
"modifiedAt": n => { phoneIdentityResponse.modifiedAt = n.getDateValue(); },
|
|
4916
|
+
"name": n => { phoneIdentityResponse.name = n.getStringValue(); },
|
|
4917
|
+
"number": n => { phoneIdentityResponse.number = n.getStringValue(); },
|
|
4918
|
+
};
|
|
4919
|
+
}
|
|
4920
|
+
/**
|
|
4921
|
+
* The deserialization information for the current model
|
|
4922
|
+
* @param PhoneIdentityResponse_lookup The instance to deserialize into.
|
|
4923
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4924
|
+
*/
|
|
4925
|
+
// @ts-ignore
|
|
4926
|
+
export function deserializeIntoPhoneIdentityResponse_lookup(phoneIdentityResponse_lookup = {}) {
|
|
4927
|
+
return {
|
|
4928
|
+
...deserializeIntoPhoneLookup(phoneIdentityResponse_lookup),
|
|
4929
|
+
};
|
|
4930
|
+
}
|
|
4931
|
+
/**
|
|
4932
|
+
* The deserialization information for the current model
|
|
4933
|
+
* @param PhoneLocationSource The instance to deserialize into.
|
|
4934
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4935
|
+
*/
|
|
4936
|
+
// @ts-ignore
|
|
4937
|
+
export function deserializeIntoPhoneLocationSource(phoneLocationSource = {}) {
|
|
4938
|
+
return {
|
|
4939
|
+
"method": n => { phoneLocationSource.method = n.getStringValue(); },
|
|
4940
|
+
"query": n => { phoneLocationSource.query = n.getStringValue(); },
|
|
4941
|
+
};
|
|
4942
|
+
}
|
|
4943
|
+
/**
|
|
4944
|
+
* The deserialization information for the current model
|
|
4945
|
+
* @param PhoneLookup The instance to deserialize into.
|
|
4946
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4947
|
+
*/
|
|
4948
|
+
// @ts-ignore
|
|
4949
|
+
export function deserializeIntoPhoneLookup(phoneLookup = {}) {
|
|
4950
|
+
return {
|
|
4951
|
+
"carrier": n => { phoneLookup.carrier = n.getObjectValue(createPhoneLookup_carrierFromDiscriminatorValue); },
|
|
4952
|
+
"createdAt": n => { phoneLookup.createdAt = n.getDateValue(); },
|
|
4953
|
+
"id": n => { phoneLookup.id = n.getStringValue(); },
|
|
4954
|
+
"isValid": n => { phoneLookup.isValid = n.getBooleanValue(); },
|
|
4955
|
+
"lineType": n => { phoneLookup.lineType = n.getEnumValue(PhoneLookup_lineTypeObject); },
|
|
4956
|
+
"location": n => { phoneLookup.location = n.getObjectValue(createPhoneLookup_locationFromDiscriminatorValue); },
|
|
4957
|
+
"modifiedAt": n => { phoneLookup.modifiedAt = n.getDateValue(); },
|
|
4958
|
+
"number": n => { phoneLookup.number = n.getStringValue(); },
|
|
4959
|
+
};
|
|
4960
|
+
}
|
|
4961
|
+
/**
|
|
4962
|
+
* The deserialization information for the current model
|
|
4963
|
+
* @param PhoneLookup_carrier The instance to deserialize into.
|
|
4964
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4965
|
+
*/
|
|
4966
|
+
// @ts-ignore
|
|
4967
|
+
export function deserializeIntoPhoneLookup_carrier(phoneLookup_carrier = {}) {
|
|
4968
|
+
return {
|
|
4969
|
+
...deserializeIntoPhoneLookupCarrier(phoneLookup_carrier),
|
|
4970
|
+
};
|
|
4971
|
+
}
|
|
4972
|
+
/**
|
|
4973
|
+
* The deserialization information for the current model
|
|
4974
|
+
* @param PhoneLookup_location The instance to deserialize into.
|
|
4975
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4976
|
+
*/
|
|
4977
|
+
// @ts-ignore
|
|
4978
|
+
export function deserializeIntoPhoneLookup_location(phoneLookup_location = {}) {
|
|
4979
|
+
return {
|
|
4980
|
+
...deserializeIntoPhoneNumberLocation(phoneLookup_location),
|
|
4981
|
+
};
|
|
4982
|
+
}
|
|
4983
|
+
/**
|
|
4984
|
+
* The deserialization information for the current model
|
|
4985
|
+
* @param PhoneLookupCarrier The instance to deserialize into.
|
|
4986
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4987
|
+
*/
|
|
4988
|
+
// @ts-ignore
|
|
4989
|
+
export function deserializeIntoPhoneLookupCarrier(phoneLookupCarrier = {}) {
|
|
4990
|
+
return {
|
|
4991
|
+
"errorCode": n => { phoneLookupCarrier.errorCode = n.getStringValue(); },
|
|
4992
|
+
"mobileCountryCode": n => { phoneLookupCarrier.mobileCountryCode = n.getStringValue(); },
|
|
4993
|
+
"mobileNetworkCode": n => { phoneLookupCarrier.mobileNetworkCode = n.getStringValue(); },
|
|
4994
|
+
"name": n => { phoneLookupCarrier.name = n.getStringValue(); },
|
|
4995
|
+
"normalizedCarrier": n => { phoneLookupCarrier.normalizedCarrier = n.getStringValue(); },
|
|
4996
|
+
"type": n => { phoneLookupCarrier.type = n.getEnumValue(PhoneLookupCarrier_typeObject); },
|
|
4997
|
+
};
|
|
4998
|
+
}
|
|
4793
4999
|
/**
|
|
4794
5000
|
* The deserialization information for the current model
|
|
4795
5001
|
* @param PhoneNumberAvailabilityRequest The instance to deserialize into.
|
|
@@ -4835,11 +5041,15 @@ export function deserializeIntoPhoneNumberAvailabilityResponse_location(phoneNum
|
|
|
4835
5041
|
// @ts-ignore
|
|
4836
5042
|
export function deserializeIntoPhoneNumberLocation(phoneNumberLocation = {}) {
|
|
4837
5043
|
return {
|
|
5044
|
+
"canonicalCity": n => { phoneNumberLocation.canonicalCity = n.getStringValue(); },
|
|
5045
|
+
"canonicalState": n => { phoneNumberLocation.canonicalState = n.getStringValue(); },
|
|
4838
5046
|
"coordinate": n => { phoneNumberLocation.coordinate = n.getObjectValue(createPhoneNumberLocation_coordinateFromDiscriminatorValue); },
|
|
5047
|
+
"coordinateSource": n => { phoneNumberLocation.coordinateSource = n.getObjectValue(createPhoneNumberLocation_coordinateSourceFromDiscriminatorValue); },
|
|
4839
5048
|
"countryCode": n => { phoneNumberLocation.countryCode = n.getStringValue(); },
|
|
4840
5049
|
"location": n => { phoneNumberLocation.location = n.getStringValue(); },
|
|
4841
5050
|
"state": n => { phoneNumberLocation.state = n.getStringValue(); },
|
|
4842
5051
|
"timeZoneId": n => { phoneNumberLocation.timeZoneId = n.getStringValue(); },
|
|
5052
|
+
"timeZoneSource": n => { phoneNumberLocation.timeZoneSource = n.getObjectValue(createPhoneNumberLocation_timeZoneSourceFromDiscriminatorValue); },
|
|
4843
5053
|
};
|
|
4844
5054
|
}
|
|
4845
5055
|
/**
|
|
@@ -4853,6 +5063,28 @@ export function deserializeIntoPhoneNumberLocation_coordinate(phoneNumberLocatio
|
|
|
4853
5063
|
...deserializeIntoCoordinate(phoneNumberLocation_coordinate),
|
|
4854
5064
|
};
|
|
4855
5065
|
}
|
|
5066
|
+
/**
|
|
5067
|
+
* The deserialization information for the current model
|
|
5068
|
+
* @param PhoneNumberLocation_coordinateSource The instance to deserialize into.
|
|
5069
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5070
|
+
*/
|
|
5071
|
+
// @ts-ignore
|
|
5072
|
+
export function deserializeIntoPhoneNumberLocation_coordinateSource(phoneNumberLocation_coordinateSource = {}) {
|
|
5073
|
+
return {
|
|
5074
|
+
...deserializeIntoPhoneLocationSource(phoneNumberLocation_coordinateSource),
|
|
5075
|
+
};
|
|
5076
|
+
}
|
|
5077
|
+
/**
|
|
5078
|
+
* The deserialization information for the current model
|
|
5079
|
+
* @param PhoneNumberLocation_timeZoneSource The instance to deserialize into.
|
|
5080
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5081
|
+
*/
|
|
5082
|
+
// @ts-ignore
|
|
5083
|
+
export function deserializeIntoPhoneNumberLocation_timeZoneSource(phoneNumberLocation_timeZoneSource = {}) {
|
|
5084
|
+
return {
|
|
5085
|
+
...deserializeIntoPhoneLocationSource(phoneNumberLocation_timeZoneSource),
|
|
5086
|
+
};
|
|
5087
|
+
}
|
|
4856
5088
|
/**
|
|
4857
5089
|
* The deserialization information for the current model
|
|
4858
5090
|
* @param PhoneNumberMessagingEventResponse The instance to deserialize into.
|
|
@@ -4887,6 +5119,22 @@ export function deserializeIntoPhoneNumberOptOutMetricsResponse(phoneNumberOptOu
|
|
|
4887
5119
|
"windowStartedAt": n => { phoneNumberOptOutMetricsResponse.windowStartedAt = n.getDateValue(); },
|
|
4888
5120
|
};
|
|
4889
5121
|
}
|
|
5122
|
+
/**
|
|
5123
|
+
* The deserialization information for the current model
|
|
5124
|
+
* @param PhoneNumberReadiness The instance to deserialize into.
|
|
5125
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5126
|
+
*/
|
|
5127
|
+
// @ts-ignore
|
|
5128
|
+
export function deserializeIntoPhoneNumberReadiness(phoneNumberReadiness = {}) {
|
|
5129
|
+
return {
|
|
5130
|
+
"callStage": n => { phoneNumberReadiness.callStage = n.getEnumValue(PhoneNumberReadiness_callStageObject); },
|
|
5131
|
+
"enabled": n => { phoneNumberReadiness.enabled = n.getBooleanValue(); },
|
|
5132
|
+
"healthScore": n => { phoneNumberReadiness.healthScore = n.getNumberValue(); },
|
|
5133
|
+
"healthStatus": n => { phoneNumberReadiness.healthStatus = n.getEnumValue(PhoneNumberReadiness_healthStatusObject); },
|
|
5134
|
+
"progressPercent": n => { phoneNumberReadiness.progressPercent = n.getNumberValue(); },
|
|
5135
|
+
"state": n => { phoneNumberReadiness.state = n.getEnumValue(PhoneNumberReadiness_stateObject); },
|
|
5136
|
+
};
|
|
5137
|
+
}
|
|
4890
5138
|
/**
|
|
4891
5139
|
* The deserialization information for the current model
|
|
4892
5140
|
* @param PhoneNumberRequest The instance to deserialize into.
|
|
@@ -4920,7 +5168,7 @@ export function deserializeIntoPhoneNumberResponse(phoneNumberResponse = {}) {
|
|
|
4920
5168
|
"number": n => { phoneNumberResponse.number = n.getStringValue(); },
|
|
4921
5169
|
"phoneIdentityId": n => { phoneNumberResponse.phoneIdentityId = n.getStringValue(); },
|
|
4922
5170
|
"routing": n => { phoneNumberResponse.routing = n.getObjectValue(createPhoneNumberRoutingMetadataFromDiscriminatorValue); },
|
|
4923
|
-
"warmup": n => { phoneNumberResponse.warmup = n.getObjectValue(
|
|
5171
|
+
"warmup": n => { phoneNumberResponse.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
|
|
4924
5172
|
};
|
|
4925
5173
|
}
|
|
4926
5174
|
/**
|
|
@@ -4946,6 +5194,7 @@ export function deserializeIntoPhoneNumberRoutingMetadata(phoneNumberRoutingMeta
|
|
|
4946
5194
|
"smsEnabled": n => { phoneNumberRoutingMetadata.smsEnabled = n.getBooleanValue(); },
|
|
4947
5195
|
"sourceId": n => { phoneNumberRoutingMetadata.sourceId = n.getStringValue(); },
|
|
4948
5196
|
"teamId": n => { phoneNumberRoutingMetadata.teamId = n.getStringValue(); },
|
|
5197
|
+
"tenDlcApplicationId": n => { phoneNumberRoutingMetadata.tenDlcApplicationId = n.getStringValue(); },
|
|
4949
5198
|
"voiceEnabled": n => { phoneNumberRoutingMetadata.voiceEnabled = n.getBooleanValue(); },
|
|
4950
5199
|
};
|
|
4951
5200
|
}
|
|
@@ -5043,7 +5292,7 @@ export function deserializeIntoPhoneNumberStatusResponse_outboundCapacity(phoneN
|
|
|
5043
5292
|
// @ts-ignore
|
|
5044
5293
|
export function deserializeIntoPhoneNumberStatusResponse_smsWarmup(phoneNumberStatusResponse_smsWarmup = {}) {
|
|
5045
5294
|
return {
|
|
5046
|
-
...
|
|
5295
|
+
...deserializeIntoSmsReadinessStatusResponse(phoneNumberStatusResponse_smsWarmup),
|
|
5047
5296
|
};
|
|
5048
5297
|
}
|
|
5049
5298
|
/**
|
|
@@ -5066,7 +5315,7 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
5066
5315
|
"tenDlcCampaignStatus": n => { phoneNumberTableRow.tenDlcCampaignStatus = n.getStringValue(); },
|
|
5067
5316
|
"type": n => { phoneNumberTableRow.type = n.getStringValue(); },
|
|
5068
5317
|
"voiceReady": n => { phoneNumberTableRow.voiceReady = n.getBooleanValue(); },
|
|
5069
|
-
"warmup": n => { phoneNumberTableRow.warmup = n.getObjectValue(
|
|
5318
|
+
"warmup": n => { phoneNumberTableRow.warmup = n.getObjectValue(createPhoneNumberReadinessFromDiscriminatorValue); },
|
|
5070
5319
|
};
|
|
5071
5320
|
}
|
|
5072
5321
|
/**
|
|
@@ -5077,8 +5326,11 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
5077
5326
|
// @ts-ignore
|
|
5078
5327
|
export function deserializeIntoPhoneNumberTrafficMetricsResponse(phoneNumberTrafficMetricsResponse = {}) {
|
|
5079
5328
|
return {
|
|
5329
|
+
"callConnectedCount": n => { phoneNumberTrafficMetricsResponse.callConnectedCount = n.getNumberValue(); },
|
|
5080
5330
|
"callFailedCount": n => { phoneNumberTrafficMetricsResponse.callFailedCount = n.getNumberValue(); },
|
|
5331
|
+
"callInvalidNumberCount": n => { phoneNumberTrafficMetricsResponse.callInvalidNumberCount = n.getNumberValue(); },
|
|
5081
5332
|
"callPlacedCount": n => { phoneNumberTrafficMetricsResponse.callPlacedCount = n.getNumberValue(); },
|
|
5333
|
+
"callShortCount": n => { phoneNumberTrafficMetricsResponse.callShortCount = n.getNumberValue(); },
|
|
5082
5334
|
"smsFailedCount": n => { phoneNumberTrafficMetricsResponse.smsFailedCount = n.getNumberValue(); },
|
|
5083
5335
|
"smsSentCount": n => { phoneNumberTrafficMetricsResponse.smsSentCount = n.getNumberValue(); },
|
|
5084
5336
|
"trend": n => { phoneNumberTrafficMetricsResponse.trend = n.getCollectionOfObjectValues(createPhoneNumberTrafficTrendPointFromDiscriminatorValue); },
|
|
@@ -5103,21 +5355,6 @@ export function deserializeIntoPhoneNumberTrafficTrendPoint(phoneNumberTrafficTr
|
|
|
5103
5355
|
"startAt": n => { phoneNumberTrafficTrendPoint.startAt = n.getDateValue(); },
|
|
5104
5356
|
};
|
|
5105
5357
|
}
|
|
5106
|
-
/**
|
|
5107
|
-
* The deserialization information for the current model
|
|
5108
|
-
* @param PhoneNumberWarmup The instance to deserialize into.
|
|
5109
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5110
|
-
*/
|
|
5111
|
-
// @ts-ignore
|
|
5112
|
-
export function deserializeIntoPhoneNumberWarmup(phoneNumberWarmup = {}) {
|
|
5113
|
-
return {
|
|
5114
|
-
"enabled": n => { phoneNumberWarmup.enabled = n.getBooleanValue(); },
|
|
5115
|
-
"healthScore": n => { phoneNumberWarmup.healthScore = n.getNumberValue(); },
|
|
5116
|
-
"healthStatus": n => { phoneNumberWarmup.healthStatus = n.getEnumValue(PhoneNumberWarmup_healthStatusObject); },
|
|
5117
|
-
"progressPercent": n => { phoneNumberWarmup.progressPercent = n.getNumberValue(); },
|
|
5118
|
-
"state": n => { phoneNumberWarmup.state = n.getEnumValue(PhoneNumberWarmup_stateObject); },
|
|
5119
|
-
};
|
|
5120
|
-
}
|
|
5121
5358
|
/**
|
|
5122
5359
|
* The deserialization information for the current model
|
|
5123
5360
|
* @param ProblemDetails The instance to deserialize into.
|
|
@@ -5234,6 +5471,37 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
|
|
|
5234
5471
|
"userName": n => { smsEventTableRow.userName = n.getStringValue(); },
|
|
5235
5472
|
};
|
|
5236
5473
|
}
|
|
5474
|
+
/**
|
|
5475
|
+
* The deserialization information for the current model
|
|
5476
|
+
* @param SmsReadinessStatusResponse The instance to deserialize into.
|
|
5477
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5478
|
+
*/
|
|
5479
|
+
// @ts-ignore
|
|
5480
|
+
export function deserializeIntoSmsReadinessStatusResponse(smsReadinessStatusResponse = {}) {
|
|
5481
|
+
return {
|
|
5482
|
+
"healthScore": n => { smsReadinessStatusResponse.healthScore = n.getNumberValue(); },
|
|
5483
|
+
"healthStatus": n => { smsReadinessStatusResponse.healthStatus = n.getEnumValue(SmsReadinessHealthStatusObject); },
|
|
5484
|
+
"phoneNumber": n => { smsReadinessStatusResponse.phoneNumber = n.getStringValue(); },
|
|
5485
|
+
"phoneNumberId": n => { smsReadinessStatusResponse.phoneNumberId = n.getStringValue(); },
|
|
5486
|
+
"progressPercent": n => { smsReadinessStatusResponse.progressPercent = n.getNumberValue(); },
|
|
5487
|
+
"status": n => { smsReadinessStatusResponse.status = n.getEnumValue(SmsReadinessStateObject); },
|
|
5488
|
+
"uiState": n => { smsReadinessStatusResponse.uiState = n.getObjectValue(createSmsReadinessUiStateFromDiscriminatorValue); },
|
|
5489
|
+
"warmupEnabled": n => { smsReadinessStatusResponse.warmupEnabled = n.getBooleanValue(); },
|
|
5490
|
+
};
|
|
5491
|
+
}
|
|
5492
|
+
/**
|
|
5493
|
+
* The deserialization information for the current model
|
|
5494
|
+
* @param SmsReadinessUiState The instance to deserialize into.
|
|
5495
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5496
|
+
*/
|
|
5497
|
+
// @ts-ignore
|
|
5498
|
+
export function deserializeIntoSmsReadinessUiState(smsReadinessUiState = {}) {
|
|
5499
|
+
return {
|
|
5500
|
+
"description": n => { smsReadinessUiState.description = n.getStringValue(); },
|
|
5501
|
+
"label": n => { smsReadinessUiState.label = n.getEnumValue(SmsReadinessStateObject); },
|
|
5502
|
+
"tone": n => { smsReadinessUiState.tone = n.getStringValue(); },
|
|
5503
|
+
};
|
|
5504
|
+
}
|
|
5237
5505
|
/**
|
|
5238
5506
|
* The deserialization information for the current model
|
|
5239
5507
|
* @param SmsResponse The instance to deserialize into.
|
|
@@ -5279,36 +5547,6 @@ export function deserializeIntoSmsResponse(smsResponse = {}) {
|
|
|
5279
5547
|
"wasManuallyOverridden": n => { smsResponse.wasManuallyOverridden = n.getBooleanValue(); },
|
|
5280
5548
|
};
|
|
5281
5549
|
}
|
|
5282
|
-
/**
|
|
5283
|
-
* The deserialization information for the current model
|
|
5284
|
-
* @param SmsWarmupStatusResponse The instance to deserialize into.
|
|
5285
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5286
|
-
*/
|
|
5287
|
-
// @ts-ignore
|
|
5288
|
-
export function deserializeIntoSmsWarmupStatusResponse(smsWarmupStatusResponse = {}) {
|
|
5289
|
-
return {
|
|
5290
|
-
"healthScore": n => { smsWarmupStatusResponse.healthScore = n.getNumberValue(); },
|
|
5291
|
-
"phoneNumber": n => { smsWarmupStatusResponse.phoneNumber = n.getStringValue(); },
|
|
5292
|
-
"phoneNumberId": n => { smsWarmupStatusResponse.phoneNumberId = n.getStringValue(); },
|
|
5293
|
-
"progressPercent": n => { smsWarmupStatusResponse.progressPercent = n.getNumberValue(); },
|
|
5294
|
-
"status": n => { smsWarmupStatusResponse.status = n.getEnumValue(SmsWarmupHealthStateObject); },
|
|
5295
|
-
"uiState": n => { smsWarmupStatusResponse.uiState = n.getObjectValue(createSmsWarmupUiStateFromDiscriminatorValue); },
|
|
5296
|
-
"warmupEnabled": n => { smsWarmupStatusResponse.warmupEnabled = n.getBooleanValue(); },
|
|
5297
|
-
};
|
|
5298
|
-
}
|
|
5299
|
-
/**
|
|
5300
|
-
* The deserialization information for the current model
|
|
5301
|
-
* @param SmsWarmupUiState The instance to deserialize into.
|
|
5302
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5303
|
-
*/
|
|
5304
|
-
// @ts-ignore
|
|
5305
|
-
export function deserializeIntoSmsWarmupUiState(smsWarmupUiState = {}) {
|
|
5306
|
-
return {
|
|
5307
|
-
"description": n => { smsWarmupUiState.description = n.getStringValue(); },
|
|
5308
|
-
"label": n => { smsWarmupUiState.label = n.getEnumValue(SmsWarmupHealthStateObject); },
|
|
5309
|
-
"tone": n => { smsWarmupUiState.tone = n.getStringValue(); },
|
|
5310
|
-
};
|
|
5311
|
-
}
|
|
5312
5550
|
/**
|
|
5313
5551
|
* The deserialization information for the current model
|
|
5314
5552
|
* @param SourceMetricsResponse The instance to deserialize into.
|
|
@@ -6111,6 +6349,7 @@ export function deserializeIntoUserRequest(userRequest = {}) {
|
|
|
6111
6349
|
"name": n => { userRequest.name = n.getStringValue(); },
|
|
6112
6350
|
"notificationPreferences": n => { userRequest.notificationPreferences = n.getObjectValue(createUserRequest_notificationPreferencesFromDiscriminatorValue); },
|
|
6113
6351
|
"phone": n => { userRequest.phone = n.getStringValue(); },
|
|
6352
|
+
"timeZoneId": n => { userRequest.timeZoneId = n.getStringValue(); },
|
|
6114
6353
|
};
|
|
6115
6354
|
}
|
|
6116
6355
|
/**
|
|
@@ -6176,6 +6415,7 @@ export function deserializeIntoUserResponse(userResponse = {}) {
|
|
|
6176
6415
|
"phone": n => { userResponse.phone = n.getStringValue(); },
|
|
6177
6416
|
"roles": n => { userResponse.roles = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
6178
6417
|
"subscriptionStatus": n => { userResponse.subscriptionStatus = n.getEnumValue(UserResponse_subscriptionStatusObject); },
|
|
6418
|
+
"timeZoneId": n => { userResponse.timeZoneId = n.getStringValue(); },
|
|
6179
6419
|
};
|
|
6180
6420
|
}
|
|
6181
6421
|
/**
|
|
@@ -6989,6 +7229,7 @@ export function serializeBusinessActivationState(writer, businessActivationState
|
|
|
6989
7229
|
writer.writeDateValue("telephonyProvisioningStartedAt", businessActivationState.telephonyProvisioningStartedAt);
|
|
6990
7230
|
writer.writeDateValue("telephonyReadyAt", businessActivationState.telephonyReadyAt);
|
|
6991
7231
|
writer.writeEnumValue("telephonyStatus", businessActivationState.telephonyStatus);
|
|
7232
|
+
writer.writeStringValue("tenDlcApplicationId", businessActivationState.tenDlcApplicationId);
|
|
6992
7233
|
writer.writeObjectValue("tenDlcDraft", businessActivationState.tenDlcDraft, serializeBusinessActivationState_tenDlcDraft);
|
|
6993
7234
|
writer.writeEnumValue("tenDlcStatus", businessActivationState.tenDlcStatus);
|
|
6994
7235
|
writer.writeDateValue("updatedAt", businessActivationState.updatedAt);
|
|
@@ -7425,6 +7666,7 @@ export function serializeBusinessSwitchOption(writer, businessSwitchOption = {},
|
|
|
7425
7666
|
writer.writeBooleanValue("needsAdminReview", businessSwitchOption.needsAdminReview);
|
|
7426
7667
|
writer.writeBooleanValue("readyForCustomerTraffic", businessSwitchOption.readyForCustomerTraffic);
|
|
7427
7668
|
writer.writeEnumValue("role", businessSwitchOption.role);
|
|
7669
|
+
writer.writeEnumValue("tenDlcStatus", businessSwitchOption.tenDlcStatus);
|
|
7428
7670
|
writer.writeAdditionalData(businessSwitchOption.additionalData);
|
|
7429
7671
|
}
|
|
7430
7672
|
/**
|
|
@@ -7682,6 +7924,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
7682
7924
|
writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
|
|
7683
7925
|
writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
|
|
7684
7926
|
writer.writeObjectValue("currentDisposition", conversationResponse.currentDisposition, serializeConversationResponse_currentDisposition);
|
|
7927
|
+
writer.writeStringValue("email", conversationResponse.email);
|
|
7685
7928
|
writer.writeStringValue("firstName", conversationResponse.firstName);
|
|
7686
7929
|
writer.writeStringValue("id", conversationResponse.id);
|
|
7687
7930
|
writer.writeBooleanValue("isArchived", conversationResponse.isArchived);
|
|
@@ -8250,6 +8493,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
|
|
|
8250
8493
|
return;
|
|
8251
8494
|
}
|
|
8252
8495
|
writer.writeStringValue("actorDisplayName", eventTableRow.actorDisplayName);
|
|
8496
|
+
writer.writeStringValue("actorEmail", eventTableRow.actorEmail);
|
|
8253
8497
|
writer.writeStringValue("actorUserId", eventTableRow.actorUserId);
|
|
8254
8498
|
writer.writeObjectValue("billableAmount", eventTableRow.billableAmount);
|
|
8255
8499
|
writer.writeStringValue("billingStatus", eventTableRow.billingStatus);
|
|
@@ -8683,6 +8927,7 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
|
|
|
8683
8927
|
writer.writeBooleanValue("isArchived", leadResponse.isArchived);
|
|
8684
8928
|
writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
|
|
8685
8929
|
writer.writeDateValue("modifiedAt", leadResponse.modifiedAt);
|
|
8930
|
+
writer.writeObjectValue("phoneIdentity", leadResponse.phoneIdentity, serializeLeadResponse_phoneIdentity);
|
|
8686
8931
|
writer.writeCollectionOfObjectValues("tags", leadResponse.tags, serializeTagSummary);
|
|
8687
8932
|
writer.writeAdditionalData(leadResponse.additionalData);
|
|
8688
8933
|
}
|
|
@@ -8699,6 +8944,19 @@ export function serializeLeadResponse_currentDisposition(writer, leadResponse_cu
|
|
|
8699
8944
|
}
|
|
8700
8945
|
serializeCurrentDispositionSummary(writer, leadResponse_currentDisposition, isSerializingDerivedType);
|
|
8701
8946
|
}
|
|
8947
|
+
/**
|
|
8948
|
+
* Serializes information the current object
|
|
8949
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8950
|
+
* @param LeadResponse_phoneIdentity The instance to serialize from.
|
|
8951
|
+
* @param writer Serialization writer to use to serialize this model
|
|
8952
|
+
*/
|
|
8953
|
+
// @ts-ignore
|
|
8954
|
+
export function serializeLeadResponse_phoneIdentity(writer, leadResponse_phoneIdentity = {}, isSerializingDerivedType = false) {
|
|
8955
|
+
if (!leadResponse_phoneIdentity || isSerializingDerivedType) {
|
|
8956
|
+
return;
|
|
8957
|
+
}
|
|
8958
|
+
serializePhoneIdentityResponse(writer, leadResponse_phoneIdentity, isSerializingDerivedType);
|
|
8959
|
+
}
|
|
8702
8960
|
/**
|
|
8703
8961
|
* Serializes information the current object
|
|
8704
8962
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -8947,12 +9205,16 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
|
|
|
8947
9205
|
writer.writeEnumValue("healthStatus", outboundPhoneNumberCapacity.healthStatus);
|
|
8948
9206
|
writer.writeStringValue("phoneNumber", outboundPhoneNumberCapacity.phoneNumber);
|
|
8949
9207
|
writer.writeStringValue("phoneNumberId", outboundPhoneNumberCapacity.phoneNumberId);
|
|
9208
|
+
writer.writeDateValue("smsDailyResetsAt", outboundPhoneNumberCapacity.smsDailyResetsAt);
|
|
9209
|
+
writer.writeDateValue("smsHourlyResetsAt", outboundPhoneNumberCapacity.smsHourlyResetsAt);
|
|
8950
9210
|
writer.writeNumberValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
|
|
8951
9211
|
writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
|
|
8952
9212
|
writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
|
|
8953
9213
|
writer.writeNumberValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
|
|
8954
9214
|
writer.writeNumberValue("smsUsedThisHour", outboundPhoneNumberCapacity.smsUsedThisHour);
|
|
8955
9215
|
writer.writeNumberValue("smsUsedToday", outboundPhoneNumberCapacity.smsUsedToday);
|
|
9216
|
+
writer.writeDateValue("voiceDailyResetsAt", outboundPhoneNumberCapacity.voiceDailyResetsAt);
|
|
9217
|
+
writer.writeDateValue("voiceHourlyResetsAt", outboundPhoneNumberCapacity.voiceHourlyResetsAt);
|
|
8956
9218
|
writer.writeNumberValue("voiceLimitThisHour", outboundPhoneNumberCapacity.voiceLimitThisHour);
|
|
8957
9219
|
writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
|
|
8958
9220
|
writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
|
|
@@ -9302,6 +9564,120 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
|
|
|
9302
9564
|
writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
|
|
9303
9565
|
writer.writeAdditionalData(phoneCallResponse.additionalData);
|
|
9304
9566
|
}
|
|
9567
|
+
/**
|
|
9568
|
+
* Serializes information the current object
|
|
9569
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9570
|
+
* @param PhoneIdentityResponse The instance to serialize from.
|
|
9571
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9572
|
+
*/
|
|
9573
|
+
// @ts-ignore
|
|
9574
|
+
export function serializePhoneIdentityResponse(writer, phoneIdentityResponse = {}, isSerializingDerivedType = false) {
|
|
9575
|
+
if (!phoneIdentityResponse || isSerializingDerivedType) {
|
|
9576
|
+
return;
|
|
9577
|
+
}
|
|
9578
|
+
writer.writeDateValue("createdAt", phoneIdentityResponse.createdAt);
|
|
9579
|
+
writer.writeStringValue("id", phoneIdentityResponse.id);
|
|
9580
|
+
writer.writeDateValue("lastEnrichedAt", phoneIdentityResponse.lastEnrichedAt);
|
|
9581
|
+
writer.writeObjectValue("lookup", phoneIdentityResponse.lookup, serializePhoneIdentityResponse_lookup);
|
|
9582
|
+
writer.writeDateValue("modifiedAt", phoneIdentityResponse.modifiedAt);
|
|
9583
|
+
writer.writeStringValue("name", phoneIdentityResponse.name);
|
|
9584
|
+
writer.writeStringValue("number", phoneIdentityResponse.number);
|
|
9585
|
+
writer.writeAdditionalData(phoneIdentityResponse.additionalData);
|
|
9586
|
+
}
|
|
9587
|
+
/**
|
|
9588
|
+
* Serializes information the current object
|
|
9589
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9590
|
+
* @param PhoneIdentityResponse_lookup The instance to serialize from.
|
|
9591
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9592
|
+
*/
|
|
9593
|
+
// @ts-ignore
|
|
9594
|
+
export function serializePhoneIdentityResponse_lookup(writer, phoneIdentityResponse_lookup = {}, isSerializingDerivedType = false) {
|
|
9595
|
+
if (!phoneIdentityResponse_lookup || isSerializingDerivedType) {
|
|
9596
|
+
return;
|
|
9597
|
+
}
|
|
9598
|
+
serializePhoneLookup(writer, phoneIdentityResponse_lookup, isSerializingDerivedType);
|
|
9599
|
+
}
|
|
9600
|
+
/**
|
|
9601
|
+
* Serializes information the current object
|
|
9602
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9603
|
+
* @param PhoneLocationSource The instance to serialize from.
|
|
9604
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9605
|
+
*/
|
|
9606
|
+
// @ts-ignore
|
|
9607
|
+
export function serializePhoneLocationSource(writer, phoneLocationSource = {}, isSerializingDerivedType = false) {
|
|
9608
|
+
if (!phoneLocationSource || isSerializingDerivedType) {
|
|
9609
|
+
return;
|
|
9610
|
+
}
|
|
9611
|
+
writer.writeStringValue("method", phoneLocationSource.method);
|
|
9612
|
+
writer.writeStringValue("query", phoneLocationSource.query);
|
|
9613
|
+
writer.writeAdditionalData(phoneLocationSource.additionalData);
|
|
9614
|
+
}
|
|
9615
|
+
/**
|
|
9616
|
+
* Serializes information the current object
|
|
9617
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9618
|
+
* @param PhoneLookup The instance to serialize from.
|
|
9619
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9620
|
+
*/
|
|
9621
|
+
// @ts-ignore
|
|
9622
|
+
export function serializePhoneLookup(writer, phoneLookup = {}, isSerializingDerivedType = false) {
|
|
9623
|
+
if (!phoneLookup || isSerializingDerivedType) {
|
|
9624
|
+
return;
|
|
9625
|
+
}
|
|
9626
|
+
writer.writeObjectValue("carrier", phoneLookup.carrier, serializePhoneLookup_carrier);
|
|
9627
|
+
writer.writeDateValue("createdAt", phoneLookup.createdAt);
|
|
9628
|
+
writer.writeStringValue("id", phoneLookup.id);
|
|
9629
|
+
writer.writeBooleanValue("isValid", phoneLookup.isValid);
|
|
9630
|
+
writer.writeEnumValue("lineType", phoneLookup.lineType);
|
|
9631
|
+
writer.writeObjectValue("location", phoneLookup.location, serializePhoneLookup_location);
|
|
9632
|
+
writer.writeDateValue("modifiedAt", phoneLookup.modifiedAt);
|
|
9633
|
+
writer.writeStringValue("number", phoneLookup.number);
|
|
9634
|
+
writer.writeAdditionalData(phoneLookup.additionalData);
|
|
9635
|
+
}
|
|
9636
|
+
/**
|
|
9637
|
+
* Serializes information the current object
|
|
9638
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9639
|
+
* @param PhoneLookup_carrier The instance to serialize from.
|
|
9640
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9641
|
+
*/
|
|
9642
|
+
// @ts-ignore
|
|
9643
|
+
export function serializePhoneLookup_carrier(writer, phoneLookup_carrier = {}, isSerializingDerivedType = false) {
|
|
9644
|
+
if (!phoneLookup_carrier || isSerializingDerivedType) {
|
|
9645
|
+
return;
|
|
9646
|
+
}
|
|
9647
|
+
serializePhoneLookupCarrier(writer, phoneLookup_carrier, isSerializingDerivedType);
|
|
9648
|
+
}
|
|
9649
|
+
/**
|
|
9650
|
+
* Serializes information the current object
|
|
9651
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9652
|
+
* @param PhoneLookup_location The instance to serialize from.
|
|
9653
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9654
|
+
*/
|
|
9655
|
+
// @ts-ignore
|
|
9656
|
+
export function serializePhoneLookup_location(writer, phoneLookup_location = {}, isSerializingDerivedType = false) {
|
|
9657
|
+
if (!phoneLookup_location || isSerializingDerivedType) {
|
|
9658
|
+
return;
|
|
9659
|
+
}
|
|
9660
|
+
serializePhoneNumberLocation(writer, phoneLookup_location, isSerializingDerivedType);
|
|
9661
|
+
}
|
|
9662
|
+
/**
|
|
9663
|
+
* Serializes information the current object
|
|
9664
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9665
|
+
* @param PhoneLookupCarrier The instance to serialize from.
|
|
9666
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9667
|
+
*/
|
|
9668
|
+
// @ts-ignore
|
|
9669
|
+
export function serializePhoneLookupCarrier(writer, phoneLookupCarrier = {}, isSerializingDerivedType = false) {
|
|
9670
|
+
if (!phoneLookupCarrier || isSerializingDerivedType) {
|
|
9671
|
+
return;
|
|
9672
|
+
}
|
|
9673
|
+
writer.writeStringValue("errorCode", phoneLookupCarrier.errorCode);
|
|
9674
|
+
writer.writeStringValue("mobileCountryCode", phoneLookupCarrier.mobileCountryCode);
|
|
9675
|
+
writer.writeStringValue("mobileNetworkCode", phoneLookupCarrier.mobileNetworkCode);
|
|
9676
|
+
writer.writeStringValue("name", phoneLookupCarrier.name);
|
|
9677
|
+
writer.writeStringValue("normalizedCarrier", phoneLookupCarrier.normalizedCarrier);
|
|
9678
|
+
writer.writeEnumValue("type", phoneLookupCarrier.type);
|
|
9679
|
+
writer.writeAdditionalData(phoneLookupCarrier.additionalData);
|
|
9680
|
+
}
|
|
9305
9681
|
/**
|
|
9306
9682
|
* Serializes information the current object
|
|
9307
9683
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9358,11 +9734,15 @@ export function serializePhoneNumberLocation(writer, phoneNumberLocation = {}, i
|
|
|
9358
9734
|
if (!phoneNumberLocation || isSerializingDerivedType) {
|
|
9359
9735
|
return;
|
|
9360
9736
|
}
|
|
9737
|
+
writer.writeStringValue("canonicalCity", phoneNumberLocation.canonicalCity);
|
|
9738
|
+
writer.writeStringValue("canonicalState", phoneNumberLocation.canonicalState);
|
|
9361
9739
|
writer.writeObjectValue("coordinate", phoneNumberLocation.coordinate, serializePhoneNumberLocation_coordinate);
|
|
9740
|
+
writer.writeObjectValue("coordinateSource", phoneNumberLocation.coordinateSource, serializePhoneNumberLocation_coordinateSource);
|
|
9362
9741
|
writer.writeStringValue("countryCode", phoneNumberLocation.countryCode);
|
|
9363
9742
|
writer.writeStringValue("location", phoneNumberLocation.location);
|
|
9364
9743
|
writer.writeStringValue("state", phoneNumberLocation.state);
|
|
9365
9744
|
writer.writeStringValue("timeZoneId", phoneNumberLocation.timeZoneId);
|
|
9745
|
+
writer.writeObjectValue("timeZoneSource", phoneNumberLocation.timeZoneSource, serializePhoneNumberLocation_timeZoneSource);
|
|
9366
9746
|
writer.writeAdditionalData(phoneNumberLocation.additionalData);
|
|
9367
9747
|
}
|
|
9368
9748
|
/**
|
|
@@ -9378,6 +9758,32 @@ export function serializePhoneNumberLocation_coordinate(writer, phoneNumberLocat
|
|
|
9378
9758
|
}
|
|
9379
9759
|
serializeCoordinate(writer, phoneNumberLocation_coordinate, isSerializingDerivedType);
|
|
9380
9760
|
}
|
|
9761
|
+
/**
|
|
9762
|
+
* Serializes information the current object
|
|
9763
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9764
|
+
* @param PhoneNumberLocation_coordinateSource The instance to serialize from.
|
|
9765
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9766
|
+
*/
|
|
9767
|
+
// @ts-ignore
|
|
9768
|
+
export function serializePhoneNumberLocation_coordinateSource(writer, phoneNumberLocation_coordinateSource = {}, isSerializingDerivedType = false) {
|
|
9769
|
+
if (!phoneNumberLocation_coordinateSource || isSerializingDerivedType) {
|
|
9770
|
+
return;
|
|
9771
|
+
}
|
|
9772
|
+
serializePhoneLocationSource(writer, phoneNumberLocation_coordinateSource, isSerializingDerivedType);
|
|
9773
|
+
}
|
|
9774
|
+
/**
|
|
9775
|
+
* Serializes information the current object
|
|
9776
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9777
|
+
* @param PhoneNumberLocation_timeZoneSource The instance to serialize from.
|
|
9778
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9779
|
+
*/
|
|
9780
|
+
// @ts-ignore
|
|
9781
|
+
export function serializePhoneNumberLocation_timeZoneSource(writer, phoneNumberLocation_timeZoneSource = {}, isSerializingDerivedType = false) {
|
|
9782
|
+
if (!phoneNumberLocation_timeZoneSource || isSerializingDerivedType) {
|
|
9783
|
+
return;
|
|
9784
|
+
}
|
|
9785
|
+
serializePhoneLocationSource(writer, phoneNumberLocation_timeZoneSource, isSerializingDerivedType);
|
|
9786
|
+
}
|
|
9381
9787
|
/**
|
|
9382
9788
|
* Serializes information the current object
|
|
9383
9789
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9418,6 +9824,25 @@ export function serializePhoneNumberOptOutMetricsResponse(writer, phoneNumberOpt
|
|
|
9418
9824
|
writer.writeDateValue("windowStartedAt", phoneNumberOptOutMetricsResponse.windowStartedAt);
|
|
9419
9825
|
writer.writeAdditionalData(phoneNumberOptOutMetricsResponse.additionalData);
|
|
9420
9826
|
}
|
|
9827
|
+
/**
|
|
9828
|
+
* Serializes information the current object
|
|
9829
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9830
|
+
* @param PhoneNumberReadiness The instance to serialize from.
|
|
9831
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9832
|
+
*/
|
|
9833
|
+
// @ts-ignore
|
|
9834
|
+
export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {}, isSerializingDerivedType = false) {
|
|
9835
|
+
if (!phoneNumberReadiness || isSerializingDerivedType) {
|
|
9836
|
+
return;
|
|
9837
|
+
}
|
|
9838
|
+
writer.writeEnumValue("callStage", phoneNumberReadiness.callStage);
|
|
9839
|
+
writer.writeBooleanValue("enabled", phoneNumberReadiness.enabled);
|
|
9840
|
+
writer.writeNumberValue("healthScore", phoneNumberReadiness.healthScore);
|
|
9841
|
+
writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
|
|
9842
|
+
writer.writeNumberValue("progressPercent", phoneNumberReadiness.progressPercent);
|
|
9843
|
+
writer.writeEnumValue("state", phoneNumberReadiness.state);
|
|
9844
|
+
writer.writeAdditionalData(phoneNumberReadiness.additionalData);
|
|
9845
|
+
}
|
|
9421
9846
|
/**
|
|
9422
9847
|
* Serializes information the current object
|
|
9423
9848
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9457,7 +9882,7 @@ export function serializePhoneNumberResponse(writer, phoneNumberResponse = {}, i
|
|
|
9457
9882
|
writer.writeStringValue("number", phoneNumberResponse.number);
|
|
9458
9883
|
writer.writeStringValue("phoneIdentityId", phoneNumberResponse.phoneIdentityId);
|
|
9459
9884
|
writer.writeObjectValue("routing", phoneNumberResponse.routing, serializePhoneNumberRoutingMetadata);
|
|
9460
|
-
writer.writeObjectValue("warmup", phoneNumberResponse.warmup,
|
|
9885
|
+
writer.writeObjectValue("warmup", phoneNumberResponse.warmup, serializePhoneNumberReadiness);
|
|
9461
9886
|
writer.writeAdditionalData(phoneNumberResponse.additionalData);
|
|
9462
9887
|
}
|
|
9463
9888
|
/**
|
|
@@ -9488,6 +9913,7 @@ export function serializePhoneNumberRoutingMetadata(writer, phoneNumberRoutingMe
|
|
|
9488
9913
|
writer.writeBooleanValue("smsEnabled", phoneNumberRoutingMetadata.smsEnabled);
|
|
9489
9914
|
writer.writeStringValue("sourceId", phoneNumberRoutingMetadata.sourceId);
|
|
9490
9915
|
writer.writeStringValue("teamId", phoneNumberRoutingMetadata.teamId);
|
|
9916
|
+
writer.writeStringValue("tenDlcApplicationId", phoneNumberRoutingMetadata.tenDlcApplicationId);
|
|
9491
9917
|
writer.writeBooleanValue("voiceEnabled", phoneNumberRoutingMetadata.voiceEnabled);
|
|
9492
9918
|
writer.writeAdditionalData(phoneNumberRoutingMetadata.additionalData);
|
|
9493
9919
|
}
|
|
@@ -9606,7 +10032,7 @@ export function serializePhoneNumberStatusResponse_smsWarmup(writer, phoneNumber
|
|
|
9606
10032
|
if (!phoneNumberStatusResponse_smsWarmup || isSerializingDerivedType) {
|
|
9607
10033
|
return;
|
|
9608
10034
|
}
|
|
9609
|
-
|
|
10035
|
+
serializeSmsReadinessStatusResponse(writer, phoneNumberStatusResponse_smsWarmup, isSerializingDerivedType);
|
|
9610
10036
|
}
|
|
9611
10037
|
/**
|
|
9612
10038
|
* Serializes information the current object
|
|
@@ -9631,7 +10057,7 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
|
|
|
9631
10057
|
writer.writeStringValue("tenDlcCampaignStatus", phoneNumberTableRow.tenDlcCampaignStatus);
|
|
9632
10058
|
writer.writeStringValue("type", phoneNumberTableRow.type);
|
|
9633
10059
|
writer.writeBooleanValue("voiceReady", phoneNumberTableRow.voiceReady);
|
|
9634
|
-
writer.writeObjectValue("warmup", phoneNumberTableRow.warmup,
|
|
10060
|
+
writer.writeObjectValue("warmup", phoneNumberTableRow.warmup, serializePhoneNumberReadiness);
|
|
9635
10061
|
writer.writeAdditionalData(phoneNumberTableRow.additionalData);
|
|
9636
10062
|
}
|
|
9637
10063
|
/**
|
|
@@ -9645,8 +10071,11 @@ export function serializePhoneNumberTrafficMetricsResponse(writer, phoneNumberTr
|
|
|
9645
10071
|
if (!phoneNumberTrafficMetricsResponse || isSerializingDerivedType) {
|
|
9646
10072
|
return;
|
|
9647
10073
|
}
|
|
10074
|
+
writer.writeNumberValue("callConnectedCount", phoneNumberTrafficMetricsResponse.callConnectedCount);
|
|
9648
10075
|
writer.writeNumberValue("callFailedCount", phoneNumberTrafficMetricsResponse.callFailedCount);
|
|
10076
|
+
writer.writeNumberValue("callInvalidNumberCount", phoneNumberTrafficMetricsResponse.callInvalidNumberCount);
|
|
9649
10077
|
writer.writeNumberValue("callPlacedCount", phoneNumberTrafficMetricsResponse.callPlacedCount);
|
|
10078
|
+
writer.writeNumberValue("callShortCount", phoneNumberTrafficMetricsResponse.callShortCount);
|
|
9650
10079
|
writer.writeNumberValue("smsFailedCount", phoneNumberTrafficMetricsResponse.smsFailedCount);
|
|
9651
10080
|
writer.writeNumberValue("smsSentCount", phoneNumberTrafficMetricsResponse.smsSentCount);
|
|
9652
10081
|
writer.writeCollectionOfObjectValues("trend", phoneNumberTrafficMetricsResponse.trend, serializePhoneNumberTrafficTrendPoint);
|
|
@@ -9674,24 +10103,6 @@ export function serializePhoneNumberTrafficTrendPoint(writer, phoneNumberTraffic
|
|
|
9674
10103
|
writer.writeDateValue("startAt", phoneNumberTrafficTrendPoint.startAt);
|
|
9675
10104
|
writer.writeAdditionalData(phoneNumberTrafficTrendPoint.additionalData);
|
|
9676
10105
|
}
|
|
9677
|
-
/**
|
|
9678
|
-
* Serializes information the current object
|
|
9679
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9680
|
-
* @param PhoneNumberWarmup The instance to serialize from.
|
|
9681
|
-
* @param writer Serialization writer to use to serialize this model
|
|
9682
|
-
*/
|
|
9683
|
-
// @ts-ignore
|
|
9684
|
-
export function serializePhoneNumberWarmup(writer, phoneNumberWarmup = {}, isSerializingDerivedType = false) {
|
|
9685
|
-
if (!phoneNumberWarmup || isSerializingDerivedType) {
|
|
9686
|
-
return;
|
|
9687
|
-
}
|
|
9688
|
-
writer.writeBooleanValue("enabled", phoneNumberWarmup.enabled);
|
|
9689
|
-
writer.writeNumberValue("healthScore", phoneNumberWarmup.healthScore);
|
|
9690
|
-
writer.writeEnumValue("healthStatus", phoneNumberWarmup.healthStatus);
|
|
9691
|
-
writer.writeNumberValue("progressPercent", phoneNumberWarmup.progressPercent);
|
|
9692
|
-
writer.writeEnumValue("state", phoneNumberWarmup.state);
|
|
9693
|
-
writer.writeAdditionalData(phoneNumberWarmup.additionalData);
|
|
9694
|
-
}
|
|
9695
10106
|
/**
|
|
9696
10107
|
* Serializes information the current object
|
|
9697
10108
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9823,6 +10234,43 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
|
|
|
9823
10234
|
writer.writeStringValue("userName", smsEventTableRow.userName);
|
|
9824
10235
|
writer.writeAdditionalData(smsEventTableRow.additionalData);
|
|
9825
10236
|
}
|
|
10237
|
+
/**
|
|
10238
|
+
* Serializes information the current object
|
|
10239
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10240
|
+
* @param SmsReadinessStatusResponse The instance to serialize from.
|
|
10241
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10242
|
+
*/
|
|
10243
|
+
// @ts-ignore
|
|
10244
|
+
export function serializeSmsReadinessStatusResponse(writer, smsReadinessStatusResponse = {}, isSerializingDerivedType = false) {
|
|
10245
|
+
if (!smsReadinessStatusResponse || isSerializingDerivedType) {
|
|
10246
|
+
return;
|
|
10247
|
+
}
|
|
10248
|
+
writer.writeNumberValue("healthScore", smsReadinessStatusResponse.healthScore);
|
|
10249
|
+
writer.writeEnumValue("healthStatus", smsReadinessStatusResponse.healthStatus);
|
|
10250
|
+
writer.writeStringValue("phoneNumber", smsReadinessStatusResponse.phoneNumber);
|
|
10251
|
+
writer.writeStringValue("phoneNumberId", smsReadinessStatusResponse.phoneNumberId);
|
|
10252
|
+
writer.writeNumberValue("progressPercent", smsReadinessStatusResponse.progressPercent);
|
|
10253
|
+
writer.writeEnumValue("status", smsReadinessStatusResponse.status);
|
|
10254
|
+
writer.writeObjectValue("uiState", smsReadinessStatusResponse.uiState, serializeSmsReadinessUiState);
|
|
10255
|
+
writer.writeBooleanValue("warmupEnabled", smsReadinessStatusResponse.warmupEnabled);
|
|
10256
|
+
writer.writeAdditionalData(smsReadinessStatusResponse.additionalData);
|
|
10257
|
+
}
|
|
10258
|
+
/**
|
|
10259
|
+
* Serializes information the current object
|
|
10260
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10261
|
+
* @param SmsReadinessUiState The instance to serialize from.
|
|
10262
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10263
|
+
*/
|
|
10264
|
+
// @ts-ignore
|
|
10265
|
+
export function serializeSmsReadinessUiState(writer, smsReadinessUiState = {}, isSerializingDerivedType = false) {
|
|
10266
|
+
if (!smsReadinessUiState || isSerializingDerivedType) {
|
|
10267
|
+
return;
|
|
10268
|
+
}
|
|
10269
|
+
writer.writeStringValue("description", smsReadinessUiState.description);
|
|
10270
|
+
writer.writeEnumValue("label", smsReadinessUiState.label);
|
|
10271
|
+
writer.writeStringValue("tone", smsReadinessUiState.tone);
|
|
10272
|
+
writer.writeAdditionalData(smsReadinessUiState.additionalData);
|
|
10273
|
+
}
|
|
9826
10274
|
/**
|
|
9827
10275
|
* Serializes information the current object
|
|
9828
10276
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9871,42 +10319,6 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
|
|
|
9871
10319
|
writer.writeBooleanValue("wasManuallyOverridden", smsResponse.wasManuallyOverridden);
|
|
9872
10320
|
writer.writeAdditionalData(smsResponse.additionalData);
|
|
9873
10321
|
}
|
|
9874
|
-
/**
|
|
9875
|
-
* Serializes information the current object
|
|
9876
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9877
|
-
* @param SmsWarmupStatusResponse The instance to serialize from.
|
|
9878
|
-
* @param writer Serialization writer to use to serialize this model
|
|
9879
|
-
*/
|
|
9880
|
-
// @ts-ignore
|
|
9881
|
-
export function serializeSmsWarmupStatusResponse(writer, smsWarmupStatusResponse = {}, isSerializingDerivedType = false) {
|
|
9882
|
-
if (!smsWarmupStatusResponse || isSerializingDerivedType) {
|
|
9883
|
-
return;
|
|
9884
|
-
}
|
|
9885
|
-
writer.writeNumberValue("healthScore", smsWarmupStatusResponse.healthScore);
|
|
9886
|
-
writer.writeStringValue("phoneNumber", smsWarmupStatusResponse.phoneNumber);
|
|
9887
|
-
writer.writeStringValue("phoneNumberId", smsWarmupStatusResponse.phoneNumberId);
|
|
9888
|
-
writer.writeNumberValue("progressPercent", smsWarmupStatusResponse.progressPercent);
|
|
9889
|
-
writer.writeEnumValue("status", smsWarmupStatusResponse.status);
|
|
9890
|
-
writer.writeObjectValue("uiState", smsWarmupStatusResponse.uiState, serializeSmsWarmupUiState);
|
|
9891
|
-
writer.writeBooleanValue("warmupEnabled", smsWarmupStatusResponse.warmupEnabled);
|
|
9892
|
-
writer.writeAdditionalData(smsWarmupStatusResponse.additionalData);
|
|
9893
|
-
}
|
|
9894
|
-
/**
|
|
9895
|
-
* Serializes information the current object
|
|
9896
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9897
|
-
* @param SmsWarmupUiState The instance to serialize from.
|
|
9898
|
-
* @param writer Serialization writer to use to serialize this model
|
|
9899
|
-
*/
|
|
9900
|
-
// @ts-ignore
|
|
9901
|
-
export function serializeSmsWarmupUiState(writer, smsWarmupUiState = {}, isSerializingDerivedType = false) {
|
|
9902
|
-
if (!smsWarmupUiState || isSerializingDerivedType) {
|
|
9903
|
-
return;
|
|
9904
|
-
}
|
|
9905
|
-
writer.writeStringValue("description", smsWarmupUiState.description);
|
|
9906
|
-
writer.writeEnumValue("label", smsWarmupUiState.label);
|
|
9907
|
-
writer.writeStringValue("tone", smsWarmupUiState.tone);
|
|
9908
|
-
writer.writeAdditionalData(smsWarmupUiState.additionalData);
|
|
9909
|
-
}
|
|
9910
10322
|
/**
|
|
9911
10323
|
* Serializes information the current object
|
|
9912
10324
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -10840,6 +11252,7 @@ export function serializeUserRequest(writer, userRequest = {}, isSerializingDeri
|
|
|
10840
11252
|
writer.writeStringValue("name", userRequest.name);
|
|
10841
11253
|
writer.writeObjectValue("notificationPreferences", userRequest.notificationPreferences, serializeUserRequest_notificationPreferences);
|
|
10842
11254
|
writer.writeStringValue("phone", userRequest.phone);
|
|
11255
|
+
writer.writeStringValue("timeZoneId", userRequest.timeZoneId);
|
|
10843
11256
|
writer.writeAdditionalData(userRequest.additionalData);
|
|
10844
11257
|
}
|
|
10845
11258
|
/**
|
|
@@ -10914,6 +11327,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
10914
11327
|
writer.writeStringValue("phone", userResponse.phone);
|
|
10915
11328
|
writer.writeObjectValue("roles", userResponse.roles);
|
|
10916
11329
|
writer.writeEnumValue("subscriptionStatus", userResponse.subscriptionStatus);
|
|
11330
|
+
writer.writeStringValue("timeZoneId", userResponse.timeZoneId);
|
|
10917
11331
|
writer.writeAdditionalData(userResponse.additionalData);
|
|
10918
11332
|
}
|
|
10919
11333
|
/**
|
|
@@ -11182,6 +11596,22 @@ export const BusinessSwitchOption_businessStatusObject = {
|
|
|
11182
11596
|
SetupCompleted: "SetupCompleted",
|
|
11183
11597
|
Active: "Active",
|
|
11184
11598
|
};
|
|
11599
|
+
/**
|
|
11600
|
+
* Defines the supported 10DLC Application Status values.
|
|
11601
|
+
*/
|
|
11602
|
+
export const BusinessSwitchOption_tenDlcStatusObject = {
|
|
11603
|
+
NotStarted: "NotStarted",
|
|
11604
|
+
DraftGenerated: "DraftGenerated",
|
|
11605
|
+
DraftNeedsAdminReview: "DraftNeedsAdminReview",
|
|
11606
|
+
ReadyToSubmit: "ReadyToSubmit",
|
|
11607
|
+
Submitted: "Submitted",
|
|
11608
|
+
PendingTelnyxReview: "PendingTelnyxReview",
|
|
11609
|
+
Approved: "Approved",
|
|
11610
|
+
Rejected: "Rejected",
|
|
11611
|
+
NeedsChanges: "NeedsChanges",
|
|
11612
|
+
ResubmissionReady: "ResubmissionReady",
|
|
11613
|
+
Failed: "Failed",
|
|
11614
|
+
};
|
|
11185
11615
|
/**
|
|
11186
11616
|
* Defines the supported Customer Activation Status values.
|
|
11187
11617
|
*/
|
|
@@ -11443,16 +11873,14 @@ export const DispositionResponse_changeSourceObject = {
|
|
|
11443
11873
|
API: "API",
|
|
11444
11874
|
};
|
|
11445
11875
|
/**
|
|
11446
|
-
* Defines the supported SMS
|
|
11876
|
+
* Defines the supported SMS readiness health assessments.
|
|
11447
11877
|
*/
|
|
11448
11878
|
export const EligibleOutgoingNumberResponse_healthStatusObject = {
|
|
11449
|
-
|
|
11450
|
-
|
|
11879
|
+
NotEvaluated: "Not Evaluated",
|
|
11880
|
+
Evaluating: "Evaluating",
|
|
11451
11881
|
Healthy: "Healthy",
|
|
11452
11882
|
NeedsAttention: "Needs Attention",
|
|
11453
|
-
Paused: "Paused",
|
|
11454
11883
|
Blocked: "Blocked",
|
|
11455
|
-
Ready: "Ready",
|
|
11456
11884
|
};
|
|
11457
11885
|
/**
|
|
11458
11886
|
* Defines the supported Event status values.
|
|
@@ -11745,16 +12173,14 @@ export const OutgoingNumberSelectionRequest_channelObject = {
|
|
|
11745
12173
|
Call: "call",
|
|
11746
12174
|
};
|
|
11747
12175
|
/**
|
|
11748
|
-
* Defines the supported SMS
|
|
12176
|
+
* Defines the supported SMS readiness health assessments.
|
|
11749
12177
|
*/
|
|
11750
12178
|
export const OutgoingNumberSelectionResponse_healthStatusObject = {
|
|
11751
|
-
|
|
11752
|
-
|
|
12179
|
+
NotEvaluated: "Not Evaluated",
|
|
12180
|
+
Evaluating: "Evaluating",
|
|
11753
12181
|
Healthy: "Healthy",
|
|
11754
12182
|
NeedsAttention: "Needs Attention",
|
|
11755
|
-
Paused: "Paused",
|
|
11756
12183
|
Blocked: "Blocked",
|
|
11757
|
-
Ready: "Ready",
|
|
11758
12184
|
};
|
|
11759
12185
|
/**
|
|
11760
12186
|
* Defines the supported Outgoing Number Selection Reason values.
|
|
@@ -11807,6 +12233,34 @@ export const PhoneCallStatusObject = {
|
|
|
11807
12233
|
Blocked_permission: "blocked_permission",
|
|
11808
12234
|
Configuration_required: "configuration_required",
|
|
11809
12235
|
};
|
|
12236
|
+
/**
|
|
12237
|
+
* An enumerator describing phone line types
|
|
12238
|
+
*/
|
|
12239
|
+
export const PhoneLookup_lineTypeObject = {
|
|
12240
|
+
Wireline: "Wireline",
|
|
12241
|
+
Wireless: "Wireless",
|
|
12242
|
+
VoWiFi: "VoWiFi",
|
|
12243
|
+
VoIP: "VoIP",
|
|
12244
|
+
PrePaidWireless: "PrePaidWireless",
|
|
12245
|
+
Unknown: "Unknown",
|
|
12246
|
+
};
|
|
12247
|
+
/**
|
|
12248
|
+
* An enumerator describing carrier types
|
|
12249
|
+
*/
|
|
12250
|
+
export const PhoneLookupCarrier_typeObject = {
|
|
12251
|
+
FixedLine: "FixedLine",
|
|
12252
|
+
Mobile: "Mobile",
|
|
12253
|
+
Voip: "Voip",
|
|
12254
|
+
FixedLineOrMobile: "FixedLineOrMobile",
|
|
12255
|
+
TollFree: "TollFree",
|
|
12256
|
+
PremiumRate: "PremiumRate",
|
|
12257
|
+
SharedCost: "SharedCost",
|
|
12258
|
+
PersonalNumber: "PersonalNumber",
|
|
12259
|
+
Pager: "Pager",
|
|
12260
|
+
Uan: "Uan",
|
|
12261
|
+
Voicemail: "Voicemail",
|
|
12262
|
+
Unknown: "Unknown",
|
|
12263
|
+
};
|
|
11810
12264
|
/**
|
|
11811
12265
|
* Defines phone-number outbound health states used by pacing.
|
|
11812
12266
|
*/
|
|
@@ -11821,25 +12275,31 @@ export const PhoneNumberOutboundHealthStatusObject = {
|
|
|
11821
12275
|
Disabled: "disabled",
|
|
11822
12276
|
};
|
|
11823
12277
|
/**
|
|
11824
|
-
* Defines the supported
|
|
12278
|
+
* Defines the supported voice call warmup stages for a Leadping-managed phone number.
|
|
11825
12279
|
*/
|
|
11826
|
-
export const
|
|
11827
|
-
|
|
11828
|
-
|
|
12280
|
+
export const PhoneNumberReadiness_callStageObject = {
|
|
12281
|
+
Stage0: "Stage 0",
|
|
12282
|
+
Stage1: "Stage 1",
|
|
12283
|
+
Stage2: "Stage 2",
|
|
12284
|
+
Stage3: "Stage 3",
|
|
12285
|
+
Stage4: "Stage 4",
|
|
12286
|
+
};
|
|
12287
|
+
/**
|
|
12288
|
+
* Defines the supported SMS readiness health assessments.
|
|
12289
|
+
*/
|
|
12290
|
+
export const PhoneNumberReadiness_healthStatusObject = {
|
|
12291
|
+
NotEvaluated: "Not Evaluated",
|
|
12292
|
+
Evaluating: "Evaluating",
|
|
11829
12293
|
Healthy: "Healthy",
|
|
11830
12294
|
NeedsAttention: "Needs Attention",
|
|
11831
|
-
Paused: "Paused",
|
|
11832
12295
|
Blocked: "Blocked",
|
|
11833
|
-
Ready: "Ready",
|
|
11834
12296
|
};
|
|
11835
12297
|
/**
|
|
11836
|
-
* Defines the supported SMS
|
|
12298
|
+
* Defines the supported SMS readiness states.
|
|
11837
12299
|
*/
|
|
11838
|
-
export const
|
|
12300
|
+
export const PhoneNumberReadiness_stateObject = {
|
|
11839
12301
|
NotStarted: "Not Started",
|
|
11840
|
-
|
|
11841
|
-
Healthy: "Healthy",
|
|
11842
|
-
NeedsAttention: "Needs Attention",
|
|
12302
|
+
InProgress: "In Progress",
|
|
11843
12303
|
Paused: "Paused",
|
|
11844
12304
|
Blocked: "Blocked",
|
|
11845
12305
|
Ready: "Ready",
|
|
@@ -11886,6 +12346,26 @@ export const SmsEventTableRow_trafficTypeObject = {
|
|
|
11886
12346
|
SystemInternal: "SystemInternal",
|
|
11887
12347
|
FailedAttempt: "FailedAttempt",
|
|
11888
12348
|
};
|
|
12349
|
+
/**
|
|
12350
|
+
* Defines the supported SMS readiness health assessments.
|
|
12351
|
+
*/
|
|
12352
|
+
export const SmsReadinessHealthStatusObject = {
|
|
12353
|
+
NotEvaluated: "Not Evaluated",
|
|
12354
|
+
Evaluating: "Evaluating",
|
|
12355
|
+
Healthy: "Healthy",
|
|
12356
|
+
NeedsAttention: "Needs Attention",
|
|
12357
|
+
Blocked: "Blocked",
|
|
12358
|
+
};
|
|
12359
|
+
/**
|
|
12360
|
+
* Defines the supported SMS readiness states.
|
|
12361
|
+
*/
|
|
12362
|
+
export const SmsReadinessStateObject = {
|
|
12363
|
+
NotStarted: "Not Started",
|
|
12364
|
+
InProgress: "In Progress",
|
|
12365
|
+
Paused: "Paused",
|
|
12366
|
+
Blocked: "Blocked",
|
|
12367
|
+
Ready: "Ready",
|
|
12368
|
+
};
|
|
11889
12369
|
/**
|
|
11890
12370
|
* Defines the supported Outgoing Number Selection Reason values.
|
|
11891
12371
|
*/
|
|
@@ -11928,18 +12408,6 @@ export const SmsResponse_trafficTypeObject = {
|
|
|
11928
12408
|
SystemInternal: "SystemInternal",
|
|
11929
12409
|
FailedAttempt: "FailedAttempt",
|
|
11930
12410
|
};
|
|
11931
|
-
/**
|
|
11932
|
-
* Defines the supported SMS Warmup Health State values.
|
|
11933
|
-
*/
|
|
11934
|
-
export const SmsWarmupHealthStateObject = {
|
|
11935
|
-
NotStarted: "Not Started",
|
|
11936
|
-
Warming: "Warming",
|
|
11937
|
-
Healthy: "Healthy",
|
|
11938
|
-
NeedsAttention: "Needs Attention",
|
|
11939
|
-
Paused: "Paused",
|
|
11940
|
-
Blocked: "Blocked",
|
|
11941
|
-
Ready: "Ready",
|
|
11942
|
-
};
|
|
11943
12411
|
/**
|
|
11944
12412
|
* Defines the supported 10DLC Application Status values.
|
|
11945
12413
|
*/
|