@leadping/sdk 1.0.84 → 1.0.86
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 +148 -11
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +118 -6
- package/dist/models/index.js.map +1 -1
- package/dist/wallets/index.d.ts.map +1 -1
- package/dist/wallets/index.js +2 -1
- package/dist/wallets/index.js.map +1 -1
- package/dist/wallets/me/index.d.ts +10 -1
- package/dist/wallets/me/index.d.ts.map +1 -1
- package/dist/wallets/me/index.js +10 -0
- package/dist/wallets/me/index.js.map +1 -1
- package/dist/wallets/me/spendLimits/index.d.ts +48 -0
- package/dist/wallets/me/spendLimits/index.d.ts.map +1 -0
- package/dist/wallets/me/spendLimits/index.js +42 -0
- package/dist/wallets/me/spendLimits/index.js.map +1 -0
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -2325,6 +2325,24 @@ export function createSourceTableRow_userFromDiscriminatorValue(parseNode) {
|
|
|
2325
2325
|
export function createSourceTableRowFromDiscriminatorValue(parseNode) {
|
|
2326
2326
|
return deserializeIntoSourceTableRow;
|
|
2327
2327
|
}
|
|
2328
|
+
/**
|
|
2329
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
2330
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2331
|
+
* @returns {SpendLimitsRequest}
|
|
2332
|
+
*/
|
|
2333
|
+
// @ts-ignore
|
|
2334
|
+
export function createSpendLimitsRequestFromDiscriminatorValue(parseNode) {
|
|
2335
|
+
return deserializeIntoSpendLimitsRequest;
|
|
2336
|
+
}
|
|
2337
|
+
/**
|
|
2338
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
2339
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2340
|
+
* @returns {SpendLimitsResponse}
|
|
2341
|
+
*/
|
|
2342
|
+
// @ts-ignore
|
|
2343
|
+
export function createSpendLimitsResponseFromDiscriminatorValue(parseNode) {
|
|
2344
|
+
return deserializeIntoSpendLimitsResponse;
|
|
2345
|
+
}
|
|
2328
2346
|
/**
|
|
2329
2347
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2330
2348
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -4032,6 +4050,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
|
|
|
4032
4050
|
return {
|
|
4033
4051
|
"actorDisplayName": n => { eventTableRow.actorDisplayName = n.getStringValue(); },
|
|
4034
4052
|
"actorEmail": n => { eventTableRow.actorEmail = n.getStringValue(); },
|
|
4053
|
+
"actorLeadId": n => { eventTableRow.actorLeadId = n.getStringValue(); },
|
|
4035
4054
|
"actorUserId": n => { eventTableRow.actorUserId = n.getStringValue(); },
|
|
4036
4055
|
"automationRunId": n => { eventTableRow.automationRunId = n.getStringValue(); },
|
|
4037
4056
|
"billableAmount": n => { eventTableRow.billableAmount = n.getNumberValue(); },
|
|
@@ -4480,6 +4499,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
|
|
|
4480
4499
|
"consentAttested": n => { leadMetadata.consentAttested = n.getBooleanValue(); },
|
|
4481
4500
|
"consentCertificateType": n => { leadMetadata.consentCertificateType = n.getEnumValue(LeadMetadata_consentCertificateTypeObject); },
|
|
4482
4501
|
"consentCertificateUrl": n => { leadMetadata.consentCertificateUrl = n.getStringValue(); },
|
|
4502
|
+
"consentValidationSkippedAt": n => { leadMetadata.consentValidationSkippedAt = n.getDateValue(); },
|
|
4483
4503
|
"consentVerificationStatus": n => { leadMetadata.consentVerificationStatus = n.getEnumValue(ConsentVerificationStatusObject); },
|
|
4484
4504
|
"createdAt": n => { leadMetadata.createdAt = n.getDateValue(); },
|
|
4485
4505
|
"currency": n => { leadMetadata.currency = n.getStringValue(); },
|
|
@@ -4509,7 +4529,6 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
|
|
|
4509
4529
|
"trustedFormCheckedAt": n => { leadMetadata.trustedFormCheckedAt = n.getDateValue(); },
|
|
4510
4530
|
"trustedFormRejectedAt": n => { leadMetadata.trustedFormRejectedAt = n.getDateValue(); },
|
|
4511
4531
|
"userAgent": n => { leadMetadata.userAgent = n.getStringValue(); },
|
|
4512
|
-
"userId": n => { leadMetadata.userId = n.getStringValue(); },
|
|
4513
4532
|
"utmCampaign": n => { leadMetadata.utmCampaign = n.getStringValue(); },
|
|
4514
4533
|
"utmContent": n => { leadMetadata.utmContent = n.getStringValue(); },
|
|
4515
4534
|
"utmMedium": n => { leadMetadata.utmMedium = n.getStringValue(); },
|
|
@@ -5522,6 +5541,7 @@ export function deserializeIntoOrganizationRequest(organizationRequest = {}) {
|
|
|
5522
5541
|
"phone": n => { organizationRequest.phone = n.getStringValue(); },
|
|
5523
5542
|
"secondaryName": n => { organizationRequest.secondaryName = n.getStringValue(); },
|
|
5524
5543
|
"targetAudience": n => { organizationRequest.targetAudience = n.getStringValue(); },
|
|
5544
|
+
"timeZoneId": n => { organizationRequest.timeZoneId = n.getStringValue(); },
|
|
5525
5545
|
"vertical": n => { organizationRequest.vertical = n.getStringValue(); },
|
|
5526
5546
|
"website": n => { organizationRequest.website = n.getStringValue(); },
|
|
5527
5547
|
};
|
|
@@ -5575,6 +5595,7 @@ export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
|
|
|
5575
5595
|
"site": n => { organizationResponse.site = n.getObjectValue(createOrganizationResponse_siteFromDiscriminatorValue); },
|
|
5576
5596
|
"status": n => { organizationResponse.status = n.getEnumValue(OrganizationResponse_statusObject); },
|
|
5577
5597
|
"subscriptionStatus": n => { organizationResponse.subscriptionStatus = n.getEnumValue(OrganizationResponse_subscriptionStatusObject); },
|
|
5598
|
+
"timeZoneId": n => { organizationResponse.timeZoneId = n.getStringValue(); },
|
|
5578
5599
|
"user": n => { organizationResponse.user = n.getObjectValue(createOrganizationResponse_userFromDiscriminatorValue); },
|
|
5579
5600
|
"vertical": n => { organizationResponse.vertical = n.getStringValue(); },
|
|
5580
5601
|
"website": n => { organizationResponse.website = n.getStringValue(); },
|
|
@@ -5689,6 +5710,7 @@ export function deserializeIntoOrganizationSwitchOption(organizationSwitchOption
|
|
|
5689
5710
|
"readyForCustomerTraffic": n => { organizationSwitchOption.readyForCustomerTraffic = n.getBooleanValue(); },
|
|
5690
5711
|
"role": n => { organizationSwitchOption.role = n.getEnumValue(OrganizationMemberRoleObject); },
|
|
5691
5712
|
"tenDlcStatus": n => { organizationSwitchOption.tenDlcStatus = n.getEnumValue(OrganizationSwitchOption_tenDlcStatusObject); },
|
|
5713
|
+
"timeZoneId": n => { organizationSwitchOption.timeZoneId = n.getStringValue(); },
|
|
5692
5714
|
};
|
|
5693
5715
|
}
|
|
5694
5716
|
/**
|
|
@@ -6439,12 +6461,12 @@ export function deserializeIntoPhoneNumberResponse(phoneNumberResponse = {}) {
|
|
|
6439
6461
|
"enabled": n => { phoneNumberResponse.enabled = n.getBooleanValue(); },
|
|
6440
6462
|
"id": n => { phoneNumberResponse.id = n.getStringValue(); },
|
|
6441
6463
|
"isDemo": n => { phoneNumberResponse.isDemo = n.getBooleanValue(); },
|
|
6442
|
-
"leadpingOwned": n => { phoneNumberResponse.leadpingOwned = n.getBooleanValue(); },
|
|
6443
6464
|
"modifiedAt": n => { phoneNumberResponse.modifiedAt = n.getDateValue(); },
|
|
6444
6465
|
"name": n => { phoneNumberResponse.name = n.getStringValue(); },
|
|
6445
6466
|
"number": n => { phoneNumberResponse.number = n.getStringValue(); },
|
|
6446
6467
|
"numberHealthEnabled": n => { phoneNumberResponse.numberHealthEnabled = n.getBooleanValue(); },
|
|
6447
6468
|
"organization": n => { phoneNumberResponse.organization = n.getObjectValue(createPhoneNumberResponse_organizationFromDiscriminatorValue); },
|
|
6469
|
+
"ownership": n => { phoneNumberResponse.ownership = n.getEnumValue(PhoneNumberOwnershipObject); },
|
|
6448
6470
|
"phoneIdentityId": n => { phoneNumberResponse.phoneIdentityId = n.getStringValue(); },
|
|
6449
6471
|
"routing": n => { phoneNumberResponse.routing = n.getObjectValue(createPhoneNumberRoutingMetadataFromDiscriminatorValue); },
|
|
6450
6472
|
"smsReady": n => { phoneNumberResponse.smsReady = n.getBooleanValue(); },
|
|
@@ -6604,7 +6626,7 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
6604
6626
|
"number": n => { phoneNumberTableRow.number = n.getStringValue(); },
|
|
6605
6627
|
"organization": n => { phoneNumberTableRow.organization = n.getStringValue(); },
|
|
6606
6628
|
"organizationId": n => { phoneNumberTableRow.organizationId = n.getStringValue(); },
|
|
6607
|
-
"ownership": n => { phoneNumberTableRow.ownership = n.
|
|
6629
|
+
"ownership": n => { phoneNumberTableRow.ownership = n.getEnumValue(PhoneNumberOwnershipObject); },
|
|
6608
6630
|
"routingSummary": n => { phoneNumberTableRow.routingSummary = n.getStringValue(); },
|
|
6609
6631
|
"smsReady": n => { phoneNumberTableRow.smsReady = n.getBooleanValue(); },
|
|
6610
6632
|
"tenDlcCampaignStatus": n => { phoneNumberTableRow.tenDlcCampaignStatus = n.getStringValue(); },
|
|
@@ -6742,6 +6764,7 @@ export function deserializeIntoSendSmsRequest(sendSmsRequest = {}) {
|
|
|
6742
6764
|
export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
|
|
6743
6765
|
return {
|
|
6744
6766
|
"actorDisplayName": n => { smsEventTableRow.actorDisplayName = n.getStringValue(); },
|
|
6767
|
+
"actorLeadId": n => { smsEventTableRow.actorLeadId = n.getStringValue(); },
|
|
6745
6768
|
"actorUserId": n => { smsEventTableRow.actorUserId = n.getStringValue(); },
|
|
6746
6769
|
"billableAmount": n => { smsEventTableRow.billableAmount = n.getNumberValue(); },
|
|
6747
6770
|
"billingStatus": n => { smsEventTableRow.billingStatus = n.getStringValue(); },
|
|
@@ -6846,6 +6869,7 @@ export function deserializeIntoSmsResponse(smsResponse = {}) {
|
|
|
6846
6869
|
"media": n => { smsResponse.media = n.getCollectionOfObjectValues(createMessageMediaAttachmentFromDiscriminatorValue); },
|
|
6847
6870
|
"modifiedAt": n => { smsResponse.modifiedAt = n.getDateValue(); },
|
|
6848
6871
|
"nextRetryAt": n => { smsResponse.nextRetryAt = n.getDateValue(); },
|
|
6872
|
+
"organizationId": n => { smsResponse.organizationId = n.getStringValue(); },
|
|
6849
6873
|
"outboundPhoneNumberId": n => { smsResponse.outboundPhoneNumberId = n.getStringValue(); },
|
|
6850
6874
|
"queuedAt": n => { smsResponse.queuedAt = n.getDateValue(); },
|
|
6851
6875
|
"receivedAt": n => { smsResponse.receivedAt = n.getDateValue(); },
|
|
@@ -6900,7 +6924,9 @@ export function deserializeIntoSourceMetricsResponse(sourceMetricsResponse = {})
|
|
|
6900
6924
|
// @ts-ignore
|
|
6901
6925
|
export function deserializeIntoSourceRequest(sourceRequest = {}) {
|
|
6902
6926
|
return {
|
|
6927
|
+
"automaticConsentValidation": n => { sourceRequest.automaticConsentValidation = n.getBooleanValue(); },
|
|
6903
6928
|
"automaticPhoneLookup": n => { sourceRequest.automaticPhoneLookup = n.getBooleanValue(); },
|
|
6929
|
+
"dailyLeadLimit": n => { sourceRequest.dailyLeadLimit = n.getNumberValue(); },
|
|
6904
6930
|
"defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
6905
6931
|
"defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
|
|
6906
6932
|
"description": n => { sourceRequest.description = n.getStringValue(); },
|
|
@@ -6918,12 +6944,14 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
|
|
|
6918
6944
|
return {
|
|
6919
6945
|
"apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
|
|
6920
6946
|
"apiKeyRotatedAt": n => { sourceResponse.apiKeyRotatedAt = n.getDateValue(); },
|
|
6947
|
+
"automaticConsentValidation": n => { sourceResponse.automaticConsentValidation = n.getBooleanValue(); },
|
|
6921
6948
|
"automaticPhoneLookup": n => { sourceResponse.automaticPhoneLookup = n.getBooleanValue(); },
|
|
6922
6949
|
"complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
|
|
6923
6950
|
"costPerLead": n => { sourceResponse.costPerLead = n.getNumberValue(); },
|
|
6924
6951
|
"createdAt": n => { sourceResponse.createdAt = n.getDateValue(); },
|
|
6925
6952
|
"createdByUser": n => { sourceResponse.createdByUser = n.getObjectValue(createSourceResponse_createdByUserFromDiscriminatorValue); },
|
|
6926
6953
|
"createdByUserEmail": n => { sourceResponse.createdByUserEmail = n.getStringValue(); },
|
|
6954
|
+
"dailyLeadLimit": n => { sourceResponse.dailyLeadLimit = n.getNumberValue(); },
|
|
6927
6955
|
"defaultTagIds": n => { sourceResponse.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
6928
6956
|
"defaultTags": n => { sourceResponse.defaultTags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
|
|
6929
6957
|
"description": n => { sourceResponse.description = n.getStringValue(); },
|
|
@@ -6996,6 +7024,7 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
|
|
|
6996
7024
|
"apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
|
|
6997
7025
|
"apiKeyRotatedAt": n => { sourceTableRow.apiKeyRotatedAt = n.getDateValue(); },
|
|
6998
7026
|
"apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
|
|
7027
|
+
"automaticConsentValidation": n => { sourceTableRow.automaticConsentValidation = n.getBooleanValue(); },
|
|
6999
7028
|
"automaticPhoneLookup": n => { sourceTableRow.automaticPhoneLookup = n.getBooleanValue(); },
|
|
7000
7029
|
"complianceApproved": n => { sourceTableRow.complianceApproved = n.getBooleanValue(); },
|
|
7001
7030
|
"costPerLead": n => { sourceTableRow.costPerLead = n.getNumberValue(); },
|
|
@@ -7062,6 +7091,35 @@ export function deserializeIntoSourceTableRow_user(sourceTableRow_user = {}) {
|
|
|
7062
7091
|
...deserializeIntoIdNamePair(sourceTableRow_user),
|
|
7063
7092
|
};
|
|
7064
7093
|
}
|
|
7094
|
+
/**
|
|
7095
|
+
* The deserialization information for the current model
|
|
7096
|
+
* @param SpendLimitsRequest The instance to deserialize into.
|
|
7097
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
7098
|
+
*/
|
|
7099
|
+
// @ts-ignore
|
|
7100
|
+
export function deserializeIntoSpendLimitsRequest(spendLimitsRequest = {}) {
|
|
7101
|
+
return {
|
|
7102
|
+
"dailyLimit": n => { spendLimitsRequest.dailyLimit = n.getNumberValue(); },
|
|
7103
|
+
"monthlyLimit": n => { spendLimitsRequest.monthlyLimit = n.getNumberValue(); },
|
|
7104
|
+
};
|
|
7105
|
+
}
|
|
7106
|
+
/**
|
|
7107
|
+
* The deserialization information for the current model
|
|
7108
|
+
* @param SpendLimitsResponse The instance to deserialize into.
|
|
7109
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
7110
|
+
*/
|
|
7111
|
+
// @ts-ignore
|
|
7112
|
+
export function deserializeIntoSpendLimitsResponse(spendLimitsResponse = {}) {
|
|
7113
|
+
return {
|
|
7114
|
+
"dailyLimit": n => { spendLimitsResponse.dailyLimit = n.getNumberValue(); },
|
|
7115
|
+
"dailyResetsAt": n => { spendLimitsResponse.dailyResetsAt = n.getDateValue(); },
|
|
7116
|
+
"dailySpent": n => { spendLimitsResponse.dailySpent = n.getNumberValue(); },
|
|
7117
|
+
"monthlyLimit": n => { spendLimitsResponse.monthlyLimit = n.getNumberValue(); },
|
|
7118
|
+
"monthlyResetsAt": n => { spendLimitsResponse.monthlyResetsAt = n.getDateValue(); },
|
|
7119
|
+
"monthlySpent": n => { spendLimitsResponse.monthlySpent = n.getNumberValue(); },
|
|
7120
|
+
"reserved": n => { spendLimitsResponse.reserved = n.getNumberValue(); },
|
|
7121
|
+
};
|
|
7122
|
+
}
|
|
7065
7123
|
/**
|
|
7066
7124
|
* The deserialization information for the current model
|
|
7067
7125
|
* @param StreetAddress The instance to deserialize into.
|
|
@@ -9335,6 +9393,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
|
|
|
9335
9393
|
}
|
|
9336
9394
|
writer.writeStringValue("actorDisplayName", eventTableRow.actorDisplayName);
|
|
9337
9395
|
writer.writeStringValue("actorEmail", eventTableRow.actorEmail);
|
|
9396
|
+
writer.writeStringValue("actorLeadId", eventTableRow.actorLeadId);
|
|
9338
9397
|
writer.writeStringValue("actorUserId", eventTableRow.actorUserId);
|
|
9339
9398
|
writer.writeStringValue("automationRunId", eventTableRow.automationRunId);
|
|
9340
9399
|
writer.writeNumberValue("billableAmount", eventTableRow.billableAmount);
|
|
@@ -9858,6 +9917,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
|
|
|
9858
9917
|
writer.writeBooleanValue("consentAttested", leadMetadata.consentAttested);
|
|
9859
9918
|
writer.writeEnumValue("consentCertificateType", leadMetadata.consentCertificateType);
|
|
9860
9919
|
writer.writeStringValue("consentCertificateUrl", leadMetadata.consentCertificateUrl);
|
|
9920
|
+
writer.writeDateValue("consentValidationSkippedAt", leadMetadata.consentValidationSkippedAt);
|
|
9861
9921
|
writer.writeEnumValue("consentVerificationStatus", leadMetadata.consentVerificationStatus);
|
|
9862
9922
|
writer.writeDateValue("createdAt", leadMetadata.createdAt);
|
|
9863
9923
|
writer.writeStringValue("currency", leadMetadata.currency);
|
|
@@ -9887,7 +9947,6 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
|
|
|
9887
9947
|
writer.writeDateValue("trustedFormCheckedAt", leadMetadata.trustedFormCheckedAt);
|
|
9888
9948
|
writer.writeDateValue("trustedFormRejectedAt", leadMetadata.trustedFormRejectedAt);
|
|
9889
9949
|
writer.writeStringValue("userAgent", leadMetadata.userAgent);
|
|
9890
|
-
writer.writeStringValue("userId", leadMetadata.userId);
|
|
9891
9950
|
writer.writeStringValue("utmCampaign", leadMetadata.utmCampaign);
|
|
9892
9951
|
writer.writeStringValue("utmContent", leadMetadata.utmContent);
|
|
9893
9952
|
writer.writeStringValue("utmMedium", leadMetadata.utmMedium);
|
|
@@ -11059,6 +11118,7 @@ export function serializeOrganizationRequest(writer, organizationRequest = {}, i
|
|
|
11059
11118
|
writer.writeStringValue("phone", organizationRequest.phone);
|
|
11060
11119
|
writer.writeStringValue("secondaryName", organizationRequest.secondaryName);
|
|
11061
11120
|
writer.writeStringValue("targetAudience", organizationRequest.targetAudience);
|
|
11121
|
+
writer.writeStringValue("timeZoneId", organizationRequest.timeZoneId);
|
|
11062
11122
|
writer.writeStringValue("vertical", organizationRequest.vertical);
|
|
11063
11123
|
writer.writeStringValue("website", organizationRequest.website);
|
|
11064
11124
|
writer.writeAdditionalData(organizationRequest.additionalData);
|
|
@@ -11117,6 +11177,7 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
|
|
|
11117
11177
|
writer.writeObjectValue("site", organizationResponse.site, serializeOrganizationResponse_site);
|
|
11118
11178
|
writer.writeEnumValue("status", organizationResponse.status);
|
|
11119
11179
|
writer.writeEnumValue("subscriptionStatus", organizationResponse.subscriptionStatus);
|
|
11180
|
+
writer.writeStringValue("timeZoneId", organizationResponse.timeZoneId);
|
|
11120
11181
|
writer.writeObjectValue("user", organizationResponse.user, serializeOrganizationResponse_user);
|
|
11121
11182
|
writer.writeStringValue("vertical", organizationResponse.vertical);
|
|
11122
11183
|
writer.writeStringValue("website", organizationResponse.website);
|
|
@@ -11250,6 +11311,7 @@ export function serializeOrganizationSwitchOption(writer, organizationSwitchOpti
|
|
|
11250
11311
|
writer.writeBooleanValue("readyForCustomerTraffic", organizationSwitchOption.readyForCustomerTraffic);
|
|
11251
11312
|
writer.writeEnumValue("role", organizationSwitchOption.role);
|
|
11252
11313
|
writer.writeEnumValue("tenDlcStatus", organizationSwitchOption.tenDlcStatus);
|
|
11314
|
+
writer.writeStringValue("timeZoneId", organizationSwitchOption.timeZoneId);
|
|
11253
11315
|
writer.writeAdditionalData(organizationSwitchOption.additionalData);
|
|
11254
11316
|
}
|
|
11255
11317
|
/**
|
|
@@ -12134,12 +12196,12 @@ export function serializePhoneNumberResponse(writer, phoneNumberResponse = {}, i
|
|
|
12134
12196
|
writer.writeBooleanValue("enabled", phoneNumberResponse.enabled);
|
|
12135
12197
|
writer.writeStringValue("id", phoneNumberResponse.id);
|
|
12136
12198
|
writer.writeBooleanValue("isDemo", phoneNumberResponse.isDemo);
|
|
12137
|
-
writer.writeBooleanValue("leadpingOwned", phoneNumberResponse.leadpingOwned);
|
|
12138
12199
|
writer.writeDateValue("modifiedAt", phoneNumberResponse.modifiedAt);
|
|
12139
12200
|
writer.writeStringValue("name", phoneNumberResponse.name);
|
|
12140
12201
|
writer.writeStringValue("number", phoneNumberResponse.number);
|
|
12141
12202
|
writer.writeBooleanValue("numberHealthEnabled", phoneNumberResponse.numberHealthEnabled);
|
|
12142
12203
|
writer.writeObjectValue("organization", phoneNumberResponse.organization, serializePhoneNumberResponse_organization);
|
|
12204
|
+
writer.writeEnumValue("ownership", phoneNumberResponse.ownership);
|
|
12143
12205
|
writer.writeStringValue("phoneIdentityId", phoneNumberResponse.phoneIdentityId);
|
|
12144
12206
|
writer.writeObjectValue("routing", phoneNumberResponse.routing, serializePhoneNumberRoutingMetadata);
|
|
12145
12207
|
writer.writeBooleanValue("smsReady", phoneNumberResponse.smsReady);
|
|
@@ -12329,7 +12391,7 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
|
|
|
12329
12391
|
writer.writeStringValue("number", phoneNumberTableRow.number);
|
|
12330
12392
|
writer.writeStringValue("organization", phoneNumberTableRow.organization);
|
|
12331
12393
|
writer.writeStringValue("organizationId", phoneNumberTableRow.organizationId);
|
|
12332
|
-
writer.
|
|
12394
|
+
writer.writeEnumValue("ownership", phoneNumberTableRow.ownership);
|
|
12333
12395
|
writer.writeStringValue("routingSummary", phoneNumberTableRow.routingSummary);
|
|
12334
12396
|
writer.writeBooleanValue("smsReady", phoneNumberTableRow.smsReady);
|
|
12335
12397
|
writer.writeStringValue("tenDlcCampaignStatus", phoneNumberTableRow.tenDlcCampaignStatus);
|
|
@@ -12492,6 +12554,7 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
|
|
|
12492
12554
|
return;
|
|
12493
12555
|
}
|
|
12494
12556
|
writer.writeStringValue("actorDisplayName", smsEventTableRow.actorDisplayName);
|
|
12557
|
+
writer.writeStringValue("actorLeadId", smsEventTableRow.actorLeadId);
|
|
12495
12558
|
writer.writeStringValue("actorUserId", smsEventTableRow.actorUserId);
|
|
12496
12559
|
writer.writeNumberValue("billableAmount", smsEventTableRow.billableAmount);
|
|
12497
12560
|
writer.writeStringValue("billingStatus", smsEventTableRow.billingStatus);
|
|
@@ -12605,6 +12668,7 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
|
|
|
12605
12668
|
writer.writeCollectionOfObjectValues("media", smsResponse.media, serializeMessageMediaAttachment);
|
|
12606
12669
|
writer.writeDateValue("modifiedAt", smsResponse.modifiedAt);
|
|
12607
12670
|
writer.writeDateValue("nextRetryAt", smsResponse.nextRetryAt);
|
|
12671
|
+
writer.writeStringValue("organizationId", smsResponse.organizationId);
|
|
12608
12672
|
writer.writeStringValue("outboundPhoneNumberId", smsResponse.outboundPhoneNumberId);
|
|
12609
12673
|
writer.writeDateValue("queuedAt", smsResponse.queuedAt);
|
|
12610
12674
|
writer.writeDateValue("receivedAt", smsResponse.receivedAt);
|
|
@@ -12668,7 +12732,9 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
|
|
|
12668
12732
|
if (!sourceRequest || isSerializingDerivedType) {
|
|
12669
12733
|
return;
|
|
12670
12734
|
}
|
|
12735
|
+
writer.writeBooleanValue("automaticConsentValidation", sourceRequest.automaticConsentValidation);
|
|
12671
12736
|
writer.writeBooleanValue("automaticPhoneLookup", sourceRequest.automaticPhoneLookup);
|
|
12737
|
+
writer.writeNumberValue("dailyLeadLimit", sourceRequest.dailyLeadLimit);
|
|
12672
12738
|
writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
|
|
12673
12739
|
writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
|
|
12674
12740
|
writer.writeStringValue("description", sourceRequest.description);
|
|
@@ -12689,12 +12755,14 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
|
|
|
12689
12755
|
}
|
|
12690
12756
|
writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
|
|
12691
12757
|
writer.writeDateValue("apiKeyRotatedAt", sourceResponse.apiKeyRotatedAt);
|
|
12758
|
+
writer.writeBooleanValue("automaticConsentValidation", sourceResponse.automaticConsentValidation);
|
|
12692
12759
|
writer.writeBooleanValue("automaticPhoneLookup", sourceResponse.automaticPhoneLookup);
|
|
12693
12760
|
writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
|
|
12694
12761
|
writer.writeNumberValue("costPerLead", sourceResponse.costPerLead);
|
|
12695
12762
|
writer.writeDateValue("createdAt", sourceResponse.createdAt);
|
|
12696
12763
|
writer.writeObjectValue("createdByUser", sourceResponse.createdByUser, serializeSourceResponse_createdByUser);
|
|
12697
12764
|
writer.writeStringValue("createdByUserEmail", sourceResponse.createdByUserEmail);
|
|
12765
|
+
writer.writeNumberValue("dailyLeadLimit", sourceResponse.dailyLeadLimit);
|
|
12698
12766
|
writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceResponse.defaultTagIds);
|
|
12699
12767
|
writer.writeCollectionOfObjectValues("defaultTags", sourceResponse.defaultTags, serializeTagSummary);
|
|
12700
12768
|
writer.writeStringValue("description", sourceResponse.description);
|
|
@@ -12778,6 +12846,7 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
|
|
|
12778
12846
|
writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
|
|
12779
12847
|
writer.writeDateValue("apiKeyRotatedAt", sourceTableRow.apiKeyRotatedAt);
|
|
12780
12848
|
writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
|
|
12849
|
+
writer.writeBooleanValue("automaticConsentValidation", sourceTableRow.automaticConsentValidation);
|
|
12781
12850
|
writer.writeBooleanValue("automaticPhoneLookup", sourceTableRow.automaticPhoneLookup);
|
|
12782
12851
|
writer.writeBooleanValue("complianceApproved", sourceTableRow.complianceApproved);
|
|
12783
12852
|
writer.writeNumberValue("costPerLead", sourceTableRow.costPerLead);
|
|
@@ -12852,6 +12921,41 @@ export function serializeSourceTableRow_user(writer, sourceTableRow_user = {}, i
|
|
|
12852
12921
|
}
|
|
12853
12922
|
serializeIdNamePair(writer, sourceTableRow_user, isSerializingDerivedType);
|
|
12854
12923
|
}
|
|
12924
|
+
/**
|
|
12925
|
+
* Serializes information the current object
|
|
12926
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12927
|
+
* @param SpendLimitsRequest The instance to serialize from.
|
|
12928
|
+
* @param writer Serialization writer to use to serialize this model
|
|
12929
|
+
*/
|
|
12930
|
+
// @ts-ignore
|
|
12931
|
+
export function serializeSpendLimitsRequest(writer, spendLimitsRequest = {}, isSerializingDerivedType = false) {
|
|
12932
|
+
if (!spendLimitsRequest || isSerializingDerivedType) {
|
|
12933
|
+
return;
|
|
12934
|
+
}
|
|
12935
|
+
writer.writeNumberValue("dailyLimit", spendLimitsRequest.dailyLimit);
|
|
12936
|
+
writer.writeNumberValue("monthlyLimit", spendLimitsRequest.monthlyLimit);
|
|
12937
|
+
writer.writeAdditionalData(spendLimitsRequest.additionalData);
|
|
12938
|
+
}
|
|
12939
|
+
/**
|
|
12940
|
+
* Serializes information the current object
|
|
12941
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12942
|
+
* @param SpendLimitsResponse The instance to serialize from.
|
|
12943
|
+
* @param writer Serialization writer to use to serialize this model
|
|
12944
|
+
*/
|
|
12945
|
+
// @ts-ignore
|
|
12946
|
+
export function serializeSpendLimitsResponse(writer, spendLimitsResponse = {}, isSerializingDerivedType = false) {
|
|
12947
|
+
if (!spendLimitsResponse || isSerializingDerivedType) {
|
|
12948
|
+
return;
|
|
12949
|
+
}
|
|
12950
|
+
writer.writeNumberValue("dailyLimit", spendLimitsResponse.dailyLimit);
|
|
12951
|
+
writer.writeDateValue("dailyResetsAt", spendLimitsResponse.dailyResetsAt);
|
|
12952
|
+
writer.writeNumberValue("dailySpent", spendLimitsResponse.dailySpent);
|
|
12953
|
+
writer.writeNumberValue("monthlyLimit", spendLimitsResponse.monthlyLimit);
|
|
12954
|
+
writer.writeDateValue("monthlyResetsAt", spendLimitsResponse.monthlyResetsAt);
|
|
12955
|
+
writer.writeNumberValue("monthlySpent", spendLimitsResponse.monthlySpent);
|
|
12956
|
+
writer.writeNumberValue("reserved", spendLimitsResponse.reserved);
|
|
12957
|
+
writer.writeAdditionalData(spendLimitsResponse.additionalData);
|
|
12958
|
+
}
|
|
12855
12959
|
/**
|
|
12856
12960
|
* Serializes information the current object
|
|
12857
12961
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -14592,6 +14696,14 @@ export const PhoneNumberOutboundHealthStatusObject = {
|
|
|
14592
14696
|
Suspended: "suspended",
|
|
14593
14697
|
Disabled: "disabled",
|
|
14594
14698
|
};
|
|
14699
|
+
/**
|
|
14700
|
+
* Identifies whose traffic a phone number serves, independently of provider control.
|
|
14701
|
+
*/
|
|
14702
|
+
export const PhoneNumberOwnershipObject = {
|
|
14703
|
+
Unassigned: "Unassigned",
|
|
14704
|
+
Leadping: "Leadping",
|
|
14705
|
+
Organization: "Organization",
|
|
14706
|
+
};
|
|
14595
14707
|
/**
|
|
14596
14708
|
* Identifies the current traffic-ramp stage of controlled voice warmup for a Leadping-managed phone number.
|
|
14597
14709
|
*/
|