@leadping/sdk 1.0.8 → 1.0.10
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/dispositions/lead/item/index.d.ts +2 -2
- package/dist/events/businesses/item/index.d.ts +10 -3
- package/dist/events/businesses/item/index.d.ts.map +1 -1
- package/dist/events/businesses/item/index.js +1 -1
- package/dist/events/businesses/item/index.js.map +1 -1
- package/dist/models/index.d.ts +172 -8
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +159 -4
- package/dist/models/index.js.map +1 -1
- package/dist/phoneNumbers/all/{my → business}/index.d.ts +6 -6
- package/dist/phoneNumbers/all/business/index.d.ts.map +1 -0
- package/dist/phoneNumbers/all/{my → business}/index.js +3 -3
- package/dist/phoneNumbers/all/business/index.js.map +1 -0
- package/dist/phoneNumbers/all/index.d.ts +3 -3
- package/dist/phoneNumbers/all/index.d.ts.map +1 -1
- package/dist/phoneNumbers/all/index.js +3 -3
- package/dist/phoneNumbers/all/index.js.map +1 -1
- package/dist/sources/item/metrics/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/phoneNumbers/all/my/index.d.ts.map +0 -1
- package/dist/phoneNumbers/all/my/index.js.map +0 -1
package/dist/models/index.js
CHANGED
|
@@ -435,6 +435,15 @@ export function createBusinessRequest_addressFromDiscriminatorValue(parseNode) {
|
|
|
435
435
|
export function createBusinessRequest_adminEnablementOverrideFromDiscriminatorValue(parseNode) {
|
|
436
436
|
return deserializeIntoBusinessRequest_adminEnablementOverride;
|
|
437
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
440
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
441
|
+
* @returns {BusinessRequest_billingAddress}
|
|
442
|
+
*/
|
|
443
|
+
// @ts-ignore
|
|
444
|
+
export function createBusinessRequest_billingAddressFromDiscriminatorValue(parseNode) {
|
|
445
|
+
return deserializeIntoBusinessRequest_billingAddress;
|
|
446
|
+
}
|
|
438
447
|
/**
|
|
439
448
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
440
449
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -498,6 +507,15 @@ export function createBusinessResponse_addressFromDiscriminatorValue(parseNode)
|
|
|
498
507
|
export function createBusinessResponse_adminEnablementOverrideFromDiscriminatorValue(parseNode) {
|
|
499
508
|
return deserializeIntoBusinessResponse_adminEnablementOverride;
|
|
500
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
512
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
513
|
+
* @returns {BusinessResponse_billingAddress}
|
|
514
|
+
*/
|
|
515
|
+
// @ts-ignore
|
|
516
|
+
export function createBusinessResponse_billingAddressFromDiscriminatorValue(parseNode) {
|
|
517
|
+
return deserializeIntoBusinessResponse_billingAddress;
|
|
518
|
+
}
|
|
501
519
|
/**
|
|
502
520
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
503
521
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1596,6 +1614,15 @@ export function createPhoneNumberSearchResultFromDiscriminatorValue(parseNode) {
|
|
|
1596
1614
|
export function createPhoneNumberStatusResponse_callWarmupFromDiscriminatorValue(parseNode) {
|
|
1597
1615
|
return deserializeIntoPhoneNumberStatusResponse_callWarmup;
|
|
1598
1616
|
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1619
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1620
|
+
* @returns {PhoneNumberStatusResponse_outboundCapacity}
|
|
1621
|
+
*/
|
|
1622
|
+
// @ts-ignore
|
|
1623
|
+
export function createPhoneNumberStatusResponse_outboundCapacityFromDiscriminatorValue(parseNode) {
|
|
1624
|
+
return deserializeIntoPhoneNumberStatusResponse_outboundCapacity;
|
|
1625
|
+
}
|
|
1599
1626
|
/**
|
|
1600
1627
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1601
1628
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3013,6 +3040,8 @@ export function deserializeIntoBusinessRequest(businessRequest = {}) {
|
|
|
3013
3040
|
"autoRefillAmount": n => { businessRequest.autoRefillAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3014
3041
|
"autoRefillEnabled": n => { businessRequest.autoRefillEnabled = n.getBooleanValue(); },
|
|
3015
3042
|
"autoRefillTrigger": n => { businessRequest.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3043
|
+
"billingAddress": n => { businessRequest.billingAddress = n.getObjectValue(createBusinessRequest_billingAddressFromDiscriminatorValue); },
|
|
3044
|
+
"billingName": n => { businessRequest.billingName = n.getStringValue(); },
|
|
3016
3045
|
"billingPlan": n => { businessRequest.billingPlan = n.getEnumValue(BusinessRequest_billingPlanObject); },
|
|
3017
3046
|
"compliancePolicy": n => { businessRequest.compliancePolicy = n.getObjectValue(createBusinessRequest_compliancePolicyFromDiscriminatorValue); },
|
|
3018
3047
|
"description": n => { businessRequest.description = n.getStringValue(); },
|
|
@@ -3066,6 +3095,17 @@ export function deserializeIntoBusinessRequest_adminEnablementOverride(businessR
|
|
|
3066
3095
|
...deserializeIntoAdminEnablementOverride(businessRequest_adminEnablementOverride),
|
|
3067
3096
|
};
|
|
3068
3097
|
}
|
|
3098
|
+
/**
|
|
3099
|
+
* The deserialization information for the current model
|
|
3100
|
+
* @param BusinessRequest_billingAddress The instance to deserialize into.
|
|
3101
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3102
|
+
*/
|
|
3103
|
+
// @ts-ignore
|
|
3104
|
+
export function deserializeIntoBusinessRequest_billingAddress(businessRequest_billingAddress = {}) {
|
|
3105
|
+
return {
|
|
3106
|
+
...deserializeIntoStreetAddress(businessRequest_billingAddress),
|
|
3107
|
+
};
|
|
3108
|
+
}
|
|
3069
3109
|
/**
|
|
3070
3110
|
* The deserialization information for the current model
|
|
3071
3111
|
* @param BusinessRequest_compliancePolicy The instance to deserialize into.
|
|
@@ -3114,6 +3154,8 @@ export function deserializeIntoBusinessResponse(businessResponse = {}) {
|
|
|
3114
3154
|
"autoRefillAmount": n => { businessResponse.autoRefillAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3115
3155
|
"autoRefillEnabled": n => { businessResponse.autoRefillEnabled = n.getBooleanValue(); },
|
|
3116
3156
|
"autoRefillTrigger": n => { businessResponse.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3157
|
+
"billingAddress": n => { businessResponse.billingAddress = n.getObjectValue(createBusinessResponse_billingAddressFromDiscriminatorValue); },
|
|
3158
|
+
"billingName": n => { businessResponse.billingName = n.getStringValue(); },
|
|
3117
3159
|
"billingPlan": n => { businessResponse.billingPlan = n.getEnumValue(BusinessResponse_billingPlanObject); },
|
|
3118
3160
|
"compliancePolicy": n => { businessResponse.compliancePolicy = n.getObjectValue(createBusinessResponse_compliancePolicyFromDiscriminatorValue); },
|
|
3119
3161
|
"createdAt": n => { businessResponse.createdAt = n.getDateValue(); },
|
|
@@ -3171,6 +3213,17 @@ export function deserializeIntoBusinessResponse_adminEnablementOverride(business
|
|
|
3171
3213
|
...deserializeIntoAdminEnablementOverride(businessResponse_adminEnablementOverride),
|
|
3172
3214
|
};
|
|
3173
3215
|
}
|
|
3216
|
+
/**
|
|
3217
|
+
* The deserialization information for the current model
|
|
3218
|
+
* @param BusinessResponse_billingAddress The instance to deserialize into.
|
|
3219
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3220
|
+
*/
|
|
3221
|
+
// @ts-ignore
|
|
3222
|
+
export function deserializeIntoBusinessResponse_billingAddress(businessResponse_billingAddress = {}) {
|
|
3223
|
+
return {
|
|
3224
|
+
...deserializeIntoStreetAddress(businessResponse_billingAddress),
|
|
3225
|
+
};
|
|
3226
|
+
}
|
|
3174
3227
|
/**
|
|
3175
3228
|
* The deserialization information for the current model
|
|
3176
3229
|
* @param BusinessResponse_compliancePolicy The instance to deserialize into.
|
|
@@ -4538,8 +4591,18 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
|
|
|
4538
4591
|
"healthStatus": n => { outboundPhoneNumberCapacity.healthStatus = n.getEnumValue(PhoneNumberOutboundHealthStatusObject); },
|
|
4539
4592
|
"phoneNumber": n => { outboundPhoneNumberCapacity.phoneNumber = n.getStringValue(); },
|
|
4540
4593
|
"phoneNumberId": n => { outboundPhoneNumberCapacity.phoneNumberId = n.getStringValue(); },
|
|
4594
|
+
"smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getNumberValue(); },
|
|
4595
|
+
"smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
|
|
4596
|
+
"smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
|
|
4541
4597
|
"smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getNumberValue(); },
|
|
4598
|
+
"smsUsedThisHour": n => { outboundPhoneNumberCapacity.smsUsedThisHour = n.getNumberValue(); },
|
|
4599
|
+
"smsUsedToday": n => { outboundPhoneNumberCapacity.smsUsedToday = n.getNumberValue(); },
|
|
4600
|
+
"voiceLimitThisHour": n => { outboundPhoneNumberCapacity.voiceLimitThisHour = n.getNumberValue(); },
|
|
4601
|
+
"voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
|
|
4602
|
+
"voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
|
|
4542
4603
|
"voiceRemainingToday": n => { outboundPhoneNumberCapacity.voiceRemainingToday = n.getNumberValue(); },
|
|
4604
|
+
"voiceUsedThisHour": n => { outboundPhoneNumberCapacity.voiceUsedThisHour = n.getNumberValue(); },
|
|
4605
|
+
"voiceUsedToday": n => { outboundPhoneNumberCapacity.voiceUsedToday = n.getNumberValue(); },
|
|
4543
4606
|
};
|
|
4544
4607
|
}
|
|
4545
4608
|
/**
|
|
@@ -5207,6 +5270,7 @@ export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusRespon
|
|
|
5207
5270
|
"messagesWarmed": n => { phoneNumberStatusResponse.messagesWarmed = n.getNumberValue(); },
|
|
5208
5271
|
"number": n => { phoneNumberStatusResponse.number = n.getStringValue(); },
|
|
5209
5272
|
"optOutMetrics": n => { phoneNumberStatusResponse.optOutMetrics = n.getObjectValue(createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue); },
|
|
5273
|
+
"outboundCapacity": n => { phoneNumberStatusResponse.outboundCapacity = n.getObjectValue(createPhoneNumberStatusResponse_outboundCapacityFromDiscriminatorValue); },
|
|
5210
5274
|
"recentEvents": n => { phoneNumberStatusResponse.recentEvents = n.getCollectionOfObjectValues(createPhoneNumberMessagingEventResponseFromDiscriminatorValue); },
|
|
5211
5275
|
"smsWarmup": n => { phoneNumberStatusResponse.smsWarmup = n.getObjectValue(createPhoneNumberStatusResponse_smsWarmupFromDiscriminatorValue); },
|
|
5212
5276
|
"trafficMetrics": n => { phoneNumberStatusResponse.trafficMetrics = n.getObjectValue(createPhoneNumberTrafficMetricsResponseFromDiscriminatorValue); },
|
|
@@ -5224,6 +5288,17 @@ export function deserializeIntoPhoneNumberStatusResponse_callWarmup(phoneNumberS
|
|
|
5224
5288
|
...deserializeIntoPhoneNumberWarmupStatusResponse(phoneNumberStatusResponse_callWarmup),
|
|
5225
5289
|
};
|
|
5226
5290
|
}
|
|
5291
|
+
/**
|
|
5292
|
+
* The deserialization information for the current model
|
|
5293
|
+
* @param PhoneNumberStatusResponse_outboundCapacity The instance to deserialize into.
|
|
5294
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5295
|
+
*/
|
|
5296
|
+
// @ts-ignore
|
|
5297
|
+
export function deserializeIntoPhoneNumberStatusResponse_outboundCapacity(phoneNumberStatusResponse_outboundCapacity = {}) {
|
|
5298
|
+
return {
|
|
5299
|
+
...deserializeIntoOutboundPhoneNumberCapacity(phoneNumberStatusResponse_outboundCapacity),
|
|
5300
|
+
};
|
|
5301
|
+
}
|
|
5227
5302
|
/**
|
|
5228
5303
|
* The deserialization information for the current model
|
|
5229
5304
|
* @param PhoneNumberStatusResponse_smsWarmup The instance to deserialize into.
|
|
@@ -5246,6 +5321,10 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
5246
5321
|
"adminEnablementOverride": n => { phoneNumberTableRow.adminEnablementOverride = n.getObjectValue(createPhoneNumberTableRow_adminEnablementOverrideFromDiscriminatorValue); },
|
|
5247
5322
|
"billingAttribution": n => { phoneNumberTableRow.billingAttribution = n.getStringValue(); },
|
|
5248
5323
|
"business": n => { phoneNumberTableRow.business = n.getStringValue(); },
|
|
5324
|
+
"businessId": n => { phoneNumberTableRow.businessId = n.getStringValue(); },
|
|
5325
|
+
"callWarmupEnabled": n => { phoneNumberTableRow.callWarmupEnabled = n.getBooleanValue(); },
|
|
5326
|
+
"callWarmupStage": n => { phoneNumberTableRow.callWarmupStage = n.getEnumValue(PhoneNumberTableRow_callWarmupStageObject); },
|
|
5327
|
+
"callWarmupState": n => { phoneNumberTableRow.callWarmupState = n.getEnumValue(PhoneNumberTableRow_callWarmupStateObject); },
|
|
5249
5328
|
"capabilities": n => { phoneNumberTableRow.capabilities = n.getStringValue(); },
|
|
5250
5329
|
"enabled": n => { phoneNumberTableRow.enabled = n.getBooleanValue(); },
|
|
5251
5330
|
"healthStatus": n => { phoneNumberTableRow.healthStatus = n.getEnumValue(PhoneNumberTableRow_healthStatusObject); },
|
|
@@ -5707,7 +5786,6 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
|
|
|
5707
5786
|
"adminEnablementOverride": n => { sourceResponse.adminEnablementOverride = n.getObjectValue(createSourceResponse_adminEnablementOverrideFromDiscriminatorValue); },
|
|
5708
5787
|
"allowedProducts": n => { sourceResponse.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
5709
5788
|
"allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
5710
|
-
"apiKeyIssuedAt": n => { sourceResponse.apiKeyIssuedAt = n.getDateValue(); },
|
|
5711
5789
|
"apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
|
|
5712
5790
|
"business": n => { sourceResponse.business = n.getObjectValue(createSourceResponse_businessFromDiscriminatorValue); },
|
|
5713
5791
|
"complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
|
|
@@ -5795,7 +5873,6 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
|
|
|
5795
5873
|
"adminEnablementOverride": n => { sourceTableRow.adminEnablementOverride = n.getObjectValue(createSourceTableRow_adminEnablementOverrideFromDiscriminatorValue); },
|
|
5796
5874
|
"allowedProducts": n => { sourceTableRow.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
5797
5875
|
"allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
5798
|
-
"apiKeyIssuedAt": n => { sourceTableRow.apiKeyIssuedAt = n.getDateValue(); },
|
|
5799
5876
|
"apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
|
|
5800
5877
|
"apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
|
|
5801
5878
|
"apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
|
|
@@ -7464,6 +7541,8 @@ export function serializeBusinessRequest(writer, businessRequest = {}, isSeriali
|
|
|
7464
7541
|
writer.writeObjectValue("autoRefillAmount", businessRequest.autoRefillAmount);
|
|
7465
7542
|
writer.writeBooleanValue("autoRefillEnabled", businessRequest.autoRefillEnabled);
|
|
7466
7543
|
writer.writeObjectValue("autoRefillTrigger", businessRequest.autoRefillTrigger);
|
|
7544
|
+
writer.writeObjectValue("billingAddress", businessRequest.billingAddress, serializeBusinessRequest_billingAddress);
|
|
7545
|
+
writer.writeStringValue("billingName", businessRequest.billingName);
|
|
7467
7546
|
writer.writeEnumValue("billingPlan", businessRequest.billingPlan);
|
|
7468
7547
|
writer.writeObjectValue("compliancePolicy", businessRequest.compliancePolicy, serializeBusinessRequest_compliancePolicy);
|
|
7469
7548
|
writer.writeStringValue("description", businessRequest.description);
|
|
@@ -7523,6 +7602,19 @@ export function serializeBusinessRequest_adminEnablementOverride(writer, busines
|
|
|
7523
7602
|
}
|
|
7524
7603
|
serializeAdminEnablementOverride(writer, businessRequest_adminEnablementOverride, isSerializingDerivedType);
|
|
7525
7604
|
}
|
|
7605
|
+
/**
|
|
7606
|
+
* Serializes information the current object
|
|
7607
|
+
* @param BusinessRequest_billingAddress The instance to serialize from.
|
|
7608
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7609
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7610
|
+
*/
|
|
7611
|
+
// @ts-ignore
|
|
7612
|
+
export function serializeBusinessRequest_billingAddress(writer, businessRequest_billingAddress = {}, isSerializingDerivedType = false) {
|
|
7613
|
+
if (!businessRequest_billingAddress || isSerializingDerivedType) {
|
|
7614
|
+
return;
|
|
7615
|
+
}
|
|
7616
|
+
serializeStreetAddress(writer, businessRequest_billingAddress, isSerializingDerivedType);
|
|
7617
|
+
}
|
|
7526
7618
|
/**
|
|
7527
7619
|
* Serializes information the current object
|
|
7528
7620
|
* @param BusinessRequest_compliancePolicy The instance to serialize from.
|
|
@@ -7580,6 +7672,8 @@ export function serializeBusinessResponse(writer, businessResponse = {}, isSeria
|
|
|
7580
7672
|
writer.writeObjectValue("autoRefillAmount", businessResponse.autoRefillAmount);
|
|
7581
7673
|
writer.writeBooleanValue("autoRefillEnabled", businessResponse.autoRefillEnabled);
|
|
7582
7674
|
writer.writeObjectValue("autoRefillTrigger", businessResponse.autoRefillTrigger);
|
|
7675
|
+
writer.writeObjectValue("billingAddress", businessResponse.billingAddress, serializeBusinessResponse_billingAddress);
|
|
7676
|
+
writer.writeStringValue("billingName", businessResponse.billingName);
|
|
7583
7677
|
writer.writeEnumValue("billingPlan", businessResponse.billingPlan);
|
|
7584
7678
|
writer.writeObjectValue("compliancePolicy", businessResponse.compliancePolicy, serializeBusinessResponse_compliancePolicy);
|
|
7585
7679
|
writer.writeDateValue("createdAt", businessResponse.createdAt);
|
|
@@ -7643,6 +7737,19 @@ export function serializeBusinessResponse_adminEnablementOverride(writer, busine
|
|
|
7643
7737
|
}
|
|
7644
7738
|
serializeAdminEnablementOverride(writer, businessResponse_adminEnablementOverride, isSerializingDerivedType);
|
|
7645
7739
|
}
|
|
7740
|
+
/**
|
|
7741
|
+
* Serializes information the current object
|
|
7742
|
+
* @param BusinessResponse_billingAddress The instance to serialize from.
|
|
7743
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7744
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7745
|
+
*/
|
|
7746
|
+
// @ts-ignore
|
|
7747
|
+
export function serializeBusinessResponse_billingAddress(writer, businessResponse_billingAddress = {}, isSerializingDerivedType = false) {
|
|
7748
|
+
if (!businessResponse_billingAddress || isSerializingDerivedType) {
|
|
7749
|
+
return;
|
|
7750
|
+
}
|
|
7751
|
+
serializeStreetAddress(writer, businessResponse_billingAddress, isSerializingDerivedType);
|
|
7752
|
+
}
|
|
7646
7753
|
/**
|
|
7647
7754
|
* Serializes information the current object
|
|
7648
7755
|
* @param BusinessResponse_compliancePolicy The instance to serialize from.
|
|
@@ -9224,8 +9331,18 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
|
|
|
9224
9331
|
writer.writeEnumValue("healthStatus", outboundPhoneNumberCapacity.healthStatus);
|
|
9225
9332
|
writer.writeStringValue("phoneNumber", outboundPhoneNumberCapacity.phoneNumber);
|
|
9226
9333
|
writer.writeStringValue("phoneNumberId", outboundPhoneNumberCapacity.phoneNumberId);
|
|
9334
|
+
writer.writeNumberValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
|
|
9335
|
+
writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
|
|
9336
|
+
writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
|
|
9227
9337
|
writer.writeNumberValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
|
|
9338
|
+
writer.writeNumberValue("smsUsedThisHour", outboundPhoneNumberCapacity.smsUsedThisHour);
|
|
9339
|
+
writer.writeNumberValue("smsUsedToday", outboundPhoneNumberCapacity.smsUsedToday);
|
|
9340
|
+
writer.writeNumberValue("voiceLimitThisHour", outboundPhoneNumberCapacity.voiceLimitThisHour);
|
|
9341
|
+
writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
|
|
9342
|
+
writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
|
|
9228
9343
|
writer.writeNumberValue("voiceRemainingToday", outboundPhoneNumberCapacity.voiceRemainingToday);
|
|
9344
|
+
writer.writeNumberValue("voiceUsedThisHour", outboundPhoneNumberCapacity.voiceUsedThisHour);
|
|
9345
|
+
writer.writeNumberValue("voiceUsedToday", outboundPhoneNumberCapacity.voiceUsedToday);
|
|
9229
9346
|
writer.writeAdditionalData(outboundPhoneNumberCapacity.additionalData);
|
|
9230
9347
|
}
|
|
9231
9348
|
/**
|
|
@@ -10014,6 +10131,7 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
|
|
|
10014
10131
|
writer.writeNumberValue("messagesWarmed", phoneNumberStatusResponse.messagesWarmed);
|
|
10015
10132
|
writer.writeStringValue("number", phoneNumberStatusResponse.number);
|
|
10016
10133
|
writer.writeObjectValue("optOutMetrics", phoneNumberStatusResponse.optOutMetrics, serializePhoneNumberOptOutMetricsResponse);
|
|
10134
|
+
writer.writeObjectValue("outboundCapacity", phoneNumberStatusResponse.outboundCapacity, serializePhoneNumberStatusResponse_outboundCapacity);
|
|
10017
10135
|
writer.writeCollectionOfObjectValues("recentEvents", phoneNumberStatusResponse.recentEvents, serializePhoneNumberMessagingEventResponse);
|
|
10018
10136
|
writer.writeObjectValue("smsWarmup", phoneNumberStatusResponse.smsWarmup, serializePhoneNumberStatusResponse_smsWarmup);
|
|
10019
10137
|
writer.writeObjectValue("trafficMetrics", phoneNumberStatusResponse.trafficMetrics, serializePhoneNumberTrafficMetricsResponse);
|
|
@@ -10033,6 +10151,19 @@ export function serializePhoneNumberStatusResponse_callWarmup(writer, phoneNumbe
|
|
|
10033
10151
|
}
|
|
10034
10152
|
serializePhoneNumberWarmupStatusResponse(writer, phoneNumberStatusResponse_callWarmup, isSerializingDerivedType);
|
|
10035
10153
|
}
|
|
10154
|
+
/**
|
|
10155
|
+
* Serializes information the current object
|
|
10156
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10157
|
+
* @param PhoneNumberStatusResponse_outboundCapacity The instance to serialize from.
|
|
10158
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10159
|
+
*/
|
|
10160
|
+
// @ts-ignore
|
|
10161
|
+
export function serializePhoneNumberStatusResponse_outboundCapacity(writer, phoneNumberStatusResponse_outboundCapacity = {}, isSerializingDerivedType = false) {
|
|
10162
|
+
if (!phoneNumberStatusResponse_outboundCapacity || isSerializingDerivedType) {
|
|
10163
|
+
return;
|
|
10164
|
+
}
|
|
10165
|
+
serializeOutboundPhoneNumberCapacity(writer, phoneNumberStatusResponse_outboundCapacity, isSerializingDerivedType);
|
|
10166
|
+
}
|
|
10036
10167
|
/**
|
|
10037
10168
|
* Serializes information the current object
|
|
10038
10169
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -10060,6 +10191,10 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
|
|
|
10060
10191
|
writer.writeObjectValue("adminEnablementOverride", phoneNumberTableRow.adminEnablementOverride, serializePhoneNumberTableRow_adminEnablementOverride);
|
|
10061
10192
|
writer.writeStringValue("billingAttribution", phoneNumberTableRow.billingAttribution);
|
|
10062
10193
|
writer.writeStringValue("business", phoneNumberTableRow.business);
|
|
10194
|
+
writer.writeStringValue("businessId", phoneNumberTableRow.businessId);
|
|
10195
|
+
writer.writeBooleanValue("callWarmupEnabled", phoneNumberTableRow.callWarmupEnabled);
|
|
10196
|
+
writer.writeEnumValue("callWarmupStage", phoneNumberTableRow.callWarmupStage);
|
|
10197
|
+
writer.writeEnumValue("callWarmupState", phoneNumberTableRow.callWarmupState);
|
|
10063
10198
|
writer.writeStringValue("capabilities", phoneNumberTableRow.capabilities);
|
|
10064
10199
|
writer.writeBooleanValue("enabled", phoneNumberTableRow.enabled);
|
|
10065
10200
|
writer.writeEnumValue("healthStatus", phoneNumberTableRow.healthStatus);
|
|
@@ -10576,7 +10711,6 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
|
|
|
10576
10711
|
writer.writeObjectValue("adminEnablementOverride", sourceResponse.adminEnablementOverride, serializeSourceResponse_adminEnablementOverride);
|
|
10577
10712
|
writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceResponse.allowedProducts);
|
|
10578
10713
|
writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
|
|
10579
|
-
writer.writeDateValue("apiKeyIssuedAt", sourceResponse.apiKeyIssuedAt);
|
|
10580
10714
|
writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
|
|
10581
10715
|
writer.writeObjectValue("business", sourceResponse.business, serializeSourceResponse_business);
|
|
10582
10716
|
writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
|
|
@@ -10677,7 +10811,6 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
|
|
|
10677
10811
|
writer.writeObjectValue("adminEnablementOverride", sourceTableRow.adminEnablementOverride, serializeSourceTableRow_adminEnablementOverride);
|
|
10678
10812
|
writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceTableRow.allowedProducts);
|
|
10679
10813
|
writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
|
|
10680
|
-
writer.writeDateValue("apiKeyIssuedAt", sourceTableRow.apiKeyIssuedAt);
|
|
10681
10814
|
writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
|
|
10682
10815
|
writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
|
|
10683
10816
|
writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
|
|
@@ -12353,6 +12486,28 @@ export const PhoneNumberResponse_warmupStateObject = {
|
|
|
12353
12486
|
Blocked: "Blocked",
|
|
12354
12487
|
Ready: "Ready",
|
|
12355
12488
|
};
|
|
12489
|
+
/**
|
|
12490
|
+
* Defines the supported voice call warmup stages for a Leadping-managed phone number.
|
|
12491
|
+
*/
|
|
12492
|
+
export const PhoneNumberTableRow_callWarmupStageObject = {
|
|
12493
|
+
Stage0: "Stage 0",
|
|
12494
|
+
Stage1: "Stage 1",
|
|
12495
|
+
Stage2: "Stage 2",
|
|
12496
|
+
Stage3: "Stage 3",
|
|
12497
|
+
Stage4: "Stage 4",
|
|
12498
|
+
};
|
|
12499
|
+
/**
|
|
12500
|
+
* Defines the supported health states for controlled internal voice call warmup.
|
|
12501
|
+
*/
|
|
12502
|
+
export const PhoneNumberTableRow_callWarmupStateObject = {
|
|
12503
|
+
NotStarted: "Not Started",
|
|
12504
|
+
NotEligible: "Not Eligible",
|
|
12505
|
+
Warming: "Warming",
|
|
12506
|
+
Warmed: "Warmed",
|
|
12507
|
+
Paused: "Paused",
|
|
12508
|
+
NeedsAttention: "Needs Attention",
|
|
12509
|
+
Blocked: "Blocked",
|
|
12510
|
+
};
|
|
12356
12511
|
/**
|
|
12357
12512
|
* Defines the supported SMS Warmup Health State values.
|
|
12358
12513
|
*/
|