@leadping/sdk 1.0.22 → 1.0.24

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.
Files changed (58) hide show
  1. package/dist/businesses/me/index.d.ts +21 -0
  2. package/dist/businesses/me/index.d.ts.map +1 -1
  3. package/dist/businesses/me/index.js +18 -0
  4. package/dist/businesses/me/index.js.map +1 -1
  5. package/dist/businesses/me/oneZerodlc/index.d.ts +20 -0
  6. package/dist/businesses/me/oneZerodlc/index.d.ts.map +1 -0
  7. package/dist/businesses/me/oneZerodlc/index.js +20 -0
  8. package/dist/businesses/me/oneZerodlc/index.js.map +1 -0
  9. package/dist/businesses/me/oneZerodlc/notes/index.d.ts +32 -0
  10. package/dist/businesses/me/oneZerodlc/notes/index.d.ts.map +1 -0
  11. package/dist/businesses/me/oneZerodlc/notes/index.js +30 -0
  12. package/dist/businesses/me/oneZerodlc/notes/index.js.map +1 -0
  13. package/dist/leadStatuses/index.d.ts +53 -0
  14. package/dist/leadStatuses/index.d.ts.map +1 -0
  15. package/dist/leadStatuses/index.js +43 -0
  16. package/dist/leadStatuses/index.js.map +1 -0
  17. package/dist/leadStatuses/item/index.d.ts +42 -0
  18. package/dist/leadStatuses/item/index.d.ts.map +1 -0
  19. package/dist/leadStatuses/item/index.js +32 -0
  20. package/dist/leadStatuses/item/index.js.map +1 -0
  21. package/dist/leadpingOpenApiClient.d.ts +5 -0
  22. package/dist/leadpingOpenApiClient.d.ts.map +1 -1
  23. package/dist/leadpingOpenApiClient.js +6 -0
  24. package/dist/leadpingOpenApiClient.js.map +1 -1
  25. package/dist/models/index.d.ts +383 -0
  26. package/dist/models/index.d.ts.map +1 -1
  27. package/dist/models/index.js +350 -0
  28. package/dist/models/index.js.map +1 -1
  29. package/dist/notifications/index.d.ts +1 -1
  30. package/dist/notifications/index.d.ts.map +1 -1
  31. package/dist/notifications/index.js +2 -1
  32. package/dist/notifications/index.js.map +1 -1
  33. package/dist/notifications/item/index.d.ts +20 -1
  34. package/dist/notifications/item/index.d.ts.map +1 -1
  35. package/dist/notifications/item/index.js +17 -0
  36. package/dist/notifications/item/index.js.map +1 -1
  37. package/dist/notifications/me/index.d.ts +16 -3
  38. package/dist/notifications/me/index.d.ts.map +1 -1
  39. package/dist/notifications/me/index.js +1 -1
  40. package/dist/notifications/me/index.js.map +1 -1
  41. package/dist/paymentMethods/index.d.ts +7 -2
  42. package/dist/paymentMethods/index.d.ts.map +1 -1
  43. package/dist/paymentMethods/index.js +6 -0
  44. package/dist/paymentMethods/index.js.map +1 -1
  45. package/dist/paymentMethods/invoices/index.d.ts +39 -0
  46. package/dist/paymentMethods/invoices/index.d.ts.map +1 -0
  47. package/dist/paymentMethods/invoices/index.js +34 -0
  48. package/dist/paymentMethods/invoices/index.js.map +1 -0
  49. package/dist/paymentMethods/invoices/item/index.d.ts +20 -0
  50. package/dist/paymentMethods/invoices/item/index.d.ts.map +1 -0
  51. package/dist/paymentMethods/invoices/item/index.js +20 -0
  52. package/dist/paymentMethods/invoices/item/index.js.map +1 -0
  53. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts +35 -0
  54. package/dist/paymentMethods/invoices/item/pdfAccess/index.d.ts.map +1 -0
  55. package/dist/paymentMethods/invoices/item/pdfAccess/index.js +26 -0
  56. package/dist/paymentMethods/invoices/item/pdfAccess/index.js.map +1 -0
  57. package/dist/paymentMethods/item/defaultEscaped/index.d.ts +2 -2
  58. package/package.json +1 -1
@@ -957,6 +957,15 @@ export function createIdNameValueFromDiscriminatorValue(parseNode) {
957
957
  export function createInitiateCallRequestFromDiscriminatorValue(parseNode) {
958
958
  return deserializeIntoInitiateCallRequest;
959
959
  }
960
+ /**
961
+ * Creates a new instance of the appropriate class based on discriminator value
962
+ * @param parseNode The parse node to use to read the discriminator value and create the object
963
+ * @returns {InvoicePdfAccessResponse}
964
+ */
965
+ // @ts-ignore
966
+ export function createInvoicePdfAccessResponseFromDiscriminatorValue(parseNode) {
967
+ return deserializeIntoInvoicePdfAccessResponse;
968
+ }
960
969
  /**
961
970
  * Creates a new instance of the appropriate class based on discriminator value
962
971
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1074,6 +1083,24 @@ export function createLeadResponse_currentDispositionFromDiscriminatorValue(pars
1074
1083
  export function createLeadResponseFromDiscriminatorValue(parseNode) {
1075
1084
  return deserializeIntoLeadResponse;
1076
1085
  }
1086
+ /**
1087
+ * Creates a new instance of the appropriate class based on discriminator value
1088
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1089
+ * @returns {LeadStatusRequest}
1090
+ */
1091
+ // @ts-ignore
1092
+ export function createLeadStatusRequestFromDiscriminatorValue(parseNode) {
1093
+ return deserializeIntoLeadStatusRequest;
1094
+ }
1095
+ /**
1096
+ * Creates a new instance of the appropriate class based on discriminator value
1097
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1098
+ * @returns {LeadStatusResponse}
1099
+ */
1100
+ // @ts-ignore
1101
+ export function createLeadStatusResponseFromDiscriminatorValue(parseNode) {
1102
+ return deserializeIntoLeadStatusResponse;
1103
+ }
1077
1104
  /**
1078
1105
  * Creates a new instance of the appropriate class based on discriminator value
1079
1106
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1128,6 +1155,15 @@ export function createLeadTagsRequestFromDiscriminatorValue(parseNode) {
1128
1155
  export function createMobileDevicePreferencesFromDiscriminatorValue(parseNode) {
1129
1156
  return deserializeIntoMobileDevicePreferences;
1130
1157
  }
1158
+ /**
1159
+ * Creates a new instance of the appropriate class based on discriminator value
1160
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1161
+ * @returns {NotificationResponse}
1162
+ */
1163
+ // @ts-ignore
1164
+ export function createNotificationResponseFromDiscriminatorValue(parseNode) {
1165
+ return deserializeIntoNotificationResponse;
1166
+ }
1131
1167
  /**
1132
1168
  * Creates a new instance of the appropriate class based on discriminator value
1133
1169
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1722,6 +1758,15 @@ export function createSourceTableRowFromDiscriminatorValue(parseNode) {
1722
1758
  export function createStreetAddressFromDiscriminatorValue(parseNode) {
1723
1759
  return deserializeIntoStreetAddress;
1724
1760
  }
1761
+ /**
1762
+ * Creates a new instance of the appropriate class based on discriminator value
1763
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1764
+ * @returns {StripeInvoiceResponse}
1765
+ */
1766
+ // @ts-ignore
1767
+ export function createStripeInvoiceResponseFromDiscriminatorValue(parseNode) {
1768
+ return deserializeIntoStripeInvoiceResponse;
1769
+ }
1725
1770
  /**
1726
1771
  * Creates a new instance of the appropriate class based on discriminator value
1727
1772
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1839,6 +1884,15 @@ export function createTelephonyLoginResponseFromDiscriminatorValue(parseNode) {
1839
1884
  export function createTenDlcApplicationDraftFromDiscriminatorValue(parseNode) {
1840
1885
  return deserializeIntoTenDlcApplicationDraft;
1841
1886
  }
1887
+ /**
1888
+ * Creates a new instance of the appropriate class based on discriminator value
1889
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1890
+ * @returns {TenDlcNotesRequest}
1891
+ */
1892
+ // @ts-ignore
1893
+ export function createTenDlcNotesRequestFromDiscriminatorValue(parseNode) {
1894
+ return deserializeIntoTenDlcNotesRequest;
1895
+ }
1842
1896
  /**
1843
1897
  * Creates a new instance of the appropriate class based on discriminator value
1844
1898
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2001,6 +2055,15 @@ export function createUserDataExportResponseFromDiscriminatorValue(parseNode) {
2001
2055
  export function createUserIdentityFromDiscriminatorValue(parseNode) {
2002
2056
  return deserializeIntoUserIdentity;
2003
2057
  }
2058
+ /**
2059
+ * Creates a new instance of the appropriate class based on discriminator value
2060
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2061
+ * @returns {UserNotificationPreferences_smsConsentTrustedFormCertificate}
2062
+ */
2063
+ // @ts-ignore
2064
+ export function createUserNotificationPreferences_smsConsentTrustedFormCertificateFromDiscriminatorValue(parseNode) {
2065
+ return deserializeIntoUserNotificationPreferences_smsConsentTrustedFormCertificate;
2066
+ }
2004
2067
  /**
2005
2068
  * Creates a new instance of the appropriate class based on discriminator value
2006
2069
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2755,6 +2818,7 @@ export function deserializeIntoBusinessActivationState_tenDlcDraft(businessActiv
2755
2818
  // @ts-ignore
2756
2819
  export function deserializeIntoBusinessBillingState(businessBillingState = {}) {
2757
2820
  return {
2821
+ "billingPlanChangeEffectiveAt": n => { businessBillingState.billingPlanChangeEffectiveAt = n.getDateValue(); },
2758
2822
  "businessUserAssignedQuantity": n => { businessBillingState.businessUserAssignedQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2759
2823
  "businessUserQuantity": n => { businessBillingState.businessUserQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2760
2824
  "cancelAt": n => { businessBillingState.cancelAt = n.getDateValue(); },
@@ -2763,7 +2827,9 @@ export function deserializeIntoBusinessBillingState(businessBillingState = {}) {
2763
2827
  "hasStripeCustomer": n => { businessBillingState.hasStripeCustomer = n.getBooleanValue(); },
2764
2828
  "lastPaymentMethodEventAt": n => { businessBillingState.lastPaymentMethodEventAt = n.getDateValue(); },
2765
2829
  "lastSubscriptionEventAt": n => { businessBillingState.lastSubscriptionEventAt = n.getDateValue(); },
2830
+ "pendingBillingPlan": n => { businessBillingState.pendingBillingPlan = n.getEnumValue(BusinessBillingState_pendingBillingPlanObject); },
2766
2831
  "phoneNumberQuantity": n => { businessBillingState.phoneNumberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2832
+ "planRenewalAt": n => { businessBillingState.planRenewalAt = n.getDateValue(); },
2767
2833
  };
2768
2834
  }
2769
2835
  /**
@@ -2896,6 +2962,7 @@ export function deserializeIntoBusinessRequest(businessRequest = {}) {
2896
2962
  "autoRefillTrigger": n => { businessRequest.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2897
2963
  "billingAddress": n => { businessRequest.billingAddress = n.getObjectValue(createBusinessRequest_billingAddressFromDiscriminatorValue); },
2898
2964
  "billingName": n => { businessRequest.billingName = n.getStringValue(); },
2965
+ "billingTaxId": n => { businessRequest.billingTaxId = n.getStringValue(); },
2899
2966
  "compliancePolicy": n => { businessRequest.compliancePolicy = n.getObjectValue(createBusinessRequest_compliancePolicyFromDiscriminatorValue); },
2900
2967
  "description": n => { businessRequest.description = n.getStringValue(); },
2901
2968
  "ein": n => { businessRequest.ein = n.getStringValue(); },
@@ -2974,6 +3041,7 @@ export function deserializeIntoBusinessResponse(businessResponse = {}) {
2974
3041
  "billingName": n => { businessResponse.billingName = n.getStringValue(); },
2975
3042
  "billingPlan": n => { businessResponse.billingPlan = n.getEnumValue(BusinessResponse_billingPlanObject); },
2976
3043
  "billingState": n => { businessResponse.billingState = n.getObjectValue(createBusinessResponse_billingStateFromDiscriminatorValue); },
3044
+ "billingTaxId": n => { businessResponse.billingTaxId = n.getStringValue(); },
2977
3045
  "compliancePolicy": n => { businessResponse.compliancePolicy = n.getObjectValue(createBusinessResponse_compliancePolicyFromDiscriminatorValue); },
2978
3046
  "createdAt": n => { businessResponse.createdAt = n.getDateValue(); },
2979
3047
  "description": n => { businessResponse.description = n.getStringValue(); },
@@ -3955,6 +4023,18 @@ export function deserializeIntoInitiateCallRequest(initiateCallRequest = {}) {
3955
4023
  "wasManuallyOverridden": n => { initiateCallRequest.wasManuallyOverridden = n.getBooleanValue(); },
3956
4024
  };
3957
4025
  }
4026
+ /**
4027
+ * The deserialization information for the current model
4028
+ * @param InvoicePdfAccessResponse The instance to deserialize into.
4029
+ * @returns {Record<string, (node: ParseNode) => void>}
4030
+ */
4031
+ // @ts-ignore
4032
+ export function deserializeIntoInvoicePdfAccessResponse(invoicePdfAccessResponse = {}) {
4033
+ return {
4034
+ "expiresAt": n => { invoicePdfAccessResponse.expiresAt = n.getDateValue(); },
4035
+ "url": n => { invoicePdfAccessResponse.url = n.getStringValue(); },
4036
+ };
4037
+ }
3958
4038
  /**
3959
4039
  * The deserialization information for the current model
3960
4040
  * @param LeadArchiveRequest The instance to deserialize into.
@@ -4197,6 +4277,38 @@ export function deserializeIntoLeadResponse_currentDisposition(leadResponse_curr
4197
4277
  ...deserializeIntoCurrentDispositionSummary(leadResponse_currentDisposition),
4198
4278
  };
4199
4279
  }
4280
+ /**
4281
+ * The deserialization information for the current model
4282
+ * @param LeadStatusRequest The instance to deserialize into.
4283
+ * @returns {Record<string, (node: ParseNode) => void>}
4284
+ */
4285
+ // @ts-ignore
4286
+ export function deserializeIntoLeadStatusRequest(leadStatusRequest = {}) {
4287
+ return {
4288
+ "category": n => { leadStatusRequest.category = n.getEnumValue(LeadStatusRequest_categoryObject); },
4289
+ "color": n => { leadStatusRequest.color = n.getStringValue(); },
4290
+ "name": n => { leadStatusRequest.name = n.getStringValue(); },
4291
+ "sortOrder": n => { leadStatusRequest.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4292
+ };
4293
+ }
4294
+ /**
4295
+ * The deserialization information for the current model
4296
+ * @param LeadStatusResponse The instance to deserialize into.
4297
+ * @returns {Record<string, (node: ParseNode) => void>}
4298
+ */
4299
+ // @ts-ignore
4300
+ export function deserializeIntoLeadStatusResponse(leadStatusResponse = {}) {
4301
+ return {
4302
+ "businessId": n => { leadStatusResponse.businessId = n.getStringValue(); },
4303
+ "category": n => { leadStatusResponse.category = n.getEnumValue(DispositionCategoryObject); },
4304
+ "color": n => { leadStatusResponse.color = n.getStringValue(); },
4305
+ "id": n => { leadStatusResponse.id = n.getStringValue(); },
4306
+ "isArchived": n => { leadStatusResponse.isArchived = n.getBooleanValue(); },
4307
+ "modifiedAt": n => { leadStatusResponse.modifiedAt = n.getDateValue(); },
4308
+ "name": n => { leadStatusResponse.name = n.getStringValue(); },
4309
+ "sortOrder": n => { leadStatusResponse.sortOrder = n.getNumberValue(); },
4310
+ };
4311
+ }
4200
4312
  /**
4201
4313
  * The deserialization information for the current model
4202
4314
  * @param LeadTableRow The instance to deserialize into.
@@ -4285,6 +4397,31 @@ export function deserializeIntoMobileDevicePreferences(mobileDevicePreferences =
4285
4397
  "updatedAt": n => { mobileDevicePreferences.updatedAt = n.getDateValue(); },
4286
4398
  };
4287
4399
  }
4400
+ /**
4401
+ * The deserialization information for the current model
4402
+ * @param NotificationResponse The instance to deserialize into.
4403
+ * @returns {Record<string, (node: ParseNode) => void>}
4404
+ */
4405
+ // @ts-ignore
4406
+ export function deserializeIntoNotificationResponse(notificationResponse = {}) {
4407
+ return {
4408
+ "actionButtonText": n => { notificationResponse.actionButtonText = n.getStringValue(); },
4409
+ "actionUrl": n => { notificationResponse.actionUrl = n.getStringValue(); },
4410
+ "createdAt": n => { notificationResponse.createdAt = n.getDateValue(); },
4411
+ "details": n => { notificationResponse.details = n.getStringValue(); },
4412
+ "id": n => { notificationResponse.id = n.getStringValue(); },
4413
+ "isRead": n => { notificationResponse.isRead = n.getBooleanValue(); },
4414
+ "message": n => { notificationResponse.message = n.getStringValue(); },
4415
+ "modifiedAt": n => { notificationResponse.modifiedAt = n.getDateValue(); },
4416
+ "name": n => { notificationResponse.name = n.getStringValue(); },
4417
+ "priority": n => { notificationResponse.priority = n.getEnumValue(NotificationPriorityObject); },
4418
+ "readAt": n => { notificationResponse.readAt = n.getDateValue(); },
4419
+ "relatedEntityId": n => { notificationResponse.relatedEntityId = n.getStringValue(); },
4420
+ "relatedEntityType": n => { notificationResponse.relatedEntityType = n.getStringValue(); },
4421
+ "type": n => { notificationResponse.type = n.getEnumValue(NotificationTypeObject); },
4422
+ "userId": n => { notificationResponse.userId = n.getStringValue(); },
4423
+ };
4424
+ }
4288
4425
  /**
4289
4426
  * The deserialization information for the current model
4290
4427
  * @param NotificationTableRow The instance to deserialize into.
@@ -4348,6 +4485,7 @@ export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview
4348
4485
  // @ts-ignore
4349
4486
  export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCapacity = {}) {
4350
4487
  return {
4488
+ "capacityAvailable": n => { outboundPhoneNumberCapacity.capacityAvailable = n.getBooleanValue(); },
4351
4489
  "healthStatus": n => { outboundPhoneNumberCapacity.healthStatus = n.getEnumValue(PhoneNumberOutboundHealthStatusObject); },
4352
4490
  "phoneNumber": n => { outboundPhoneNumberCapacity.phoneNumber = n.getStringValue(); },
4353
4491
  "phoneNumberId": n => { outboundPhoneNumberCapacity.phoneNumberId = n.getStringValue(); },
@@ -5195,6 +5333,7 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
5195
5333
  return {
5196
5334
  "allowedProducts": n => { sourceRequest.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5197
5335
  "allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5336
+ "apiKey": n => { sourceRequest.apiKey = n.getStringValue(); },
5198
5337
  "costPerLead": n => { sourceRequest.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5199
5338
  "defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
5200
5339
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
@@ -5216,6 +5355,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
5216
5355
  return {
5217
5356
  "allowedProducts": n => { sourceResponse.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5218
5357
  "allowedStates": n => { sourceResponse.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5358
+ "apiKey": n => { sourceResponse.apiKey = n.getStringValue(); },
5219
5359
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
5220
5360
  "business": n => { sourceResponse.business = n.getObjectValue(createSourceResponse_businessFromDiscriminatorValue); },
5221
5361
  "complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
@@ -5290,6 +5430,7 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
5290
5430
  return {
5291
5431
  "allowedProducts": n => { sourceTableRow.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5292
5432
  "allowedStates": n => { sourceTableRow.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5433
+ "apiKey": n => { sourceTableRow.apiKey = n.getStringValue(); },
5293
5434
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
5294
5435
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
5295
5436
  "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
@@ -5376,6 +5517,22 @@ export function deserializeIntoStreetAddress(streetAddress = {}) {
5376
5517
  "state": n => { streetAddress.state = n.getStringValue(); },
5377
5518
  };
5378
5519
  }
5520
+ /**
5521
+ * The deserialization information for the current model
5522
+ * @param StripeInvoiceResponse The instance to deserialize into.
5523
+ * @returns {Record<string, (node: ParseNode) => void>}
5524
+ */
5525
+ // @ts-ignore
5526
+ export function deserializeIntoStripeInvoiceResponse(stripeInvoiceResponse = {}) {
5527
+ return {
5528
+ "amount": n => { stripeInvoiceResponse.amount = n.getNumberValue(); },
5529
+ "createdAt": n => { stripeInvoiceResponse.createdAt = n.getDateValue(); },
5530
+ "hasPdf": n => { stripeInvoiceResponse.hasPdf = n.getBooleanValue(); },
5531
+ "id": n => { stripeInvoiceResponse.id = n.getStringValue(); },
5532
+ "number": n => { stripeInvoiceResponse.number = n.getStringValue(); },
5533
+ "status": n => { stripeInvoiceResponse.status = n.getStringValue(); },
5534
+ };
5535
+ }
5379
5536
  /**
5380
5537
  * The deserialization information for the current model
5381
5538
  * @param StripePaymentMethodResponse The instance to deserialize into.
@@ -5594,6 +5751,17 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
5594
5751
  "websiteUrl": n => { tenDlcApplicationDraft.websiteUrl = n.getStringValue(); },
5595
5752
  };
5596
5753
  }
5754
+ /**
5755
+ * The deserialization information for the current model
5756
+ * @param TenDlcNotesRequest The instance to deserialize into.
5757
+ * @returns {Record<string, (node: ParseNode) => void>}
5758
+ */
5759
+ // @ts-ignore
5760
+ export function deserializeIntoTenDlcNotesRequest(tenDlcNotesRequest = {}) {
5761
+ return {
5762
+ "notes": n => { tenDlcNotesRequest.notes = n.getStringValue(); },
5763
+ };
5764
+ }
5597
5765
  /**
5598
5766
  * The deserialization information for the current model
5599
5767
  * @param TransactionResponse The instance to deserialize into.
@@ -5900,6 +6068,9 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
5900
6068
  "newLeadSmsEnabled": n => { userNotificationPreferences.newLeadSmsEnabled = n.getBooleanValue(); },
5901
6069
  "paymentFailedEnabled": n => { userNotificationPreferences.paymentFailedEnabled = n.getBooleanValue(); },
5902
6070
  "paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
6071
+ "smsConsentOptedIn": n => { userNotificationPreferences.smsConsentOptedIn = n.getBooleanValue(); },
6072
+ "smsConsentTrustedFormCertificate": n => { userNotificationPreferences.smsConsentTrustedFormCertificate = n.getObjectValue(createUserNotificationPreferences_smsConsentTrustedFormCertificateFromDiscriminatorValue); },
6073
+ "smsConsentUpdatedAt": n => { userNotificationPreferences.smsConsentUpdatedAt = n.getDateValue(); },
5903
6074
  "subscriptionRenewingEmailEnabled": n => { userNotificationPreferences.subscriptionRenewingEmailEnabled = n.getBooleanValue(); },
5904
6075
  "subscriptionRenewingEnabled": n => { userNotificationPreferences.subscriptionRenewingEnabled = n.getBooleanValue(); },
5905
6076
  "subscriptionRenewingSmsEnabled": n => { userNotificationPreferences.subscriptionRenewingSmsEnabled = n.getBooleanValue(); },
@@ -5910,6 +6081,17 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
5910
6081
  "usageLimitHitEnabled": n => { userNotificationPreferences.usageLimitHitEnabled = n.getBooleanValue(); },
5911
6082
  };
5912
6083
  }
6084
+ /**
6085
+ * The deserialization information for the current model
6086
+ * @param UserNotificationPreferences_smsConsentTrustedFormCertificate The instance to deserialize into.
6087
+ * @returns {Record<string, (node: ParseNode) => void>}
6088
+ */
6089
+ // @ts-ignore
6090
+ export function deserializeIntoUserNotificationPreferences_smsConsentTrustedFormCertificate(userNotificationPreferences_smsConsentTrustedFormCertificate = {}) {
6091
+ return {
6092
+ ...deserializeIntoTrustedFormCertificate(userNotificationPreferences_smsConsentTrustedFormCertificate),
6093
+ };
6094
+ }
5913
6095
  /**
5914
6096
  * The deserialization information for the current model
5915
6097
  * @param UserRequest The instance to deserialize into.
@@ -6839,6 +7021,7 @@ export function serializeBusinessBillingState(writer, businessBillingState = {},
6839
7021
  if (!businessBillingState || isSerializingDerivedType) {
6840
7022
  return;
6841
7023
  }
7024
+ writer.writeDateValue("billingPlanChangeEffectiveAt", businessBillingState.billingPlanChangeEffectiveAt);
6842
7025
  writer.writeObjectValue("businessUserAssignedQuantity", businessBillingState.businessUserAssignedQuantity);
6843
7026
  writer.writeObjectValue("businessUserQuantity", businessBillingState.businessUserQuantity);
6844
7027
  writer.writeDateValue("cancelAt", businessBillingState.cancelAt);
@@ -6847,7 +7030,9 @@ export function serializeBusinessBillingState(writer, businessBillingState = {},
6847
7030
  writer.writeBooleanValue("hasStripeCustomer", businessBillingState.hasStripeCustomer);
6848
7031
  writer.writeDateValue("lastPaymentMethodEventAt", businessBillingState.lastPaymentMethodEventAt);
6849
7032
  writer.writeDateValue("lastSubscriptionEventAt", businessBillingState.lastSubscriptionEventAt);
7033
+ writer.writeEnumValue("pendingBillingPlan", businessBillingState.pendingBillingPlan);
6850
7034
  writer.writeObjectValue("phoneNumberQuantity", businessBillingState.phoneNumberQuantity);
7035
+ writer.writeDateValue("planRenewalAt", businessBillingState.planRenewalAt);
6851
7036
  writer.writeAdditionalData(businessBillingState.additionalData);
6852
7037
  }
6853
7038
  /**
@@ -7000,6 +7185,7 @@ export function serializeBusinessRequest(writer, businessRequest = {}, isSeriali
7000
7185
  writer.writeObjectValue("autoRefillTrigger", businessRequest.autoRefillTrigger);
7001
7186
  writer.writeObjectValue("billingAddress", businessRequest.billingAddress, serializeBusinessRequest_billingAddress);
7002
7187
  writer.writeStringValue("billingName", businessRequest.billingName);
7188
+ writer.writeStringValue("billingTaxId", businessRequest.billingTaxId);
7003
7189
  writer.writeObjectValue("compliancePolicy", businessRequest.compliancePolicy, serializeBusinessRequest_compliancePolicy);
7004
7190
  writer.writeStringValue("description", businessRequest.description);
7005
7191
  writer.writeStringValue("ein", businessRequest.ein);
@@ -7089,6 +7275,7 @@ export function serializeBusinessResponse(writer, businessResponse = {}, isSeria
7089
7275
  writer.writeStringValue("billingName", businessResponse.billingName);
7090
7276
  writer.writeEnumValue("billingPlan", businessResponse.billingPlan);
7091
7277
  writer.writeObjectValue("billingState", businessResponse.billingState, serializeBusinessResponse_billingState);
7278
+ writer.writeStringValue("billingTaxId", businessResponse.billingTaxId);
7092
7279
  writer.writeObjectValue("compliancePolicy", businessResponse.compliancePolicy, serializeBusinessResponse_compliancePolicy);
7093
7280
  writer.writeDateValue("createdAt", businessResponse.createdAt);
7094
7281
  writer.writeStringValue("description", businessResponse.description);
@@ -8218,6 +8405,21 @@ export function serializeInitiateCallRequest(writer, initiateCallRequest = {}, i
8218
8405
  writer.writeBooleanValue("wasManuallyOverridden", initiateCallRequest.wasManuallyOverridden);
8219
8406
  writer.writeAdditionalData(initiateCallRequest.additionalData);
8220
8407
  }
8408
+ /**
8409
+ * Serializes information the current object
8410
+ * @param InvoicePdfAccessResponse The instance to serialize from.
8411
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8412
+ * @param writer Serialization writer to use to serialize this model
8413
+ */
8414
+ // @ts-ignore
8415
+ export function serializeInvoicePdfAccessResponse(writer, invoicePdfAccessResponse = {}, isSerializingDerivedType = false) {
8416
+ if (!invoicePdfAccessResponse || isSerializingDerivedType) {
8417
+ return;
8418
+ }
8419
+ writer.writeDateValue("expiresAt", invoicePdfAccessResponse.expiresAt);
8420
+ writer.writeStringValue("url", invoicePdfAccessResponse.url);
8421
+ writer.writeAdditionalData(invoicePdfAccessResponse.additionalData);
8422
+ }
8221
8423
  /**
8222
8424
  * Serializes information the current object
8223
8425
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8497,6 +8699,44 @@ export function serializeLeadResponse_currentDisposition(writer, leadResponse_cu
8497
8699
  }
8498
8700
  serializeCurrentDispositionSummary(writer, leadResponse_currentDisposition, isSerializingDerivedType);
8499
8701
  }
8702
+ /**
8703
+ * Serializes information the current object
8704
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8705
+ * @param LeadStatusRequest The instance to serialize from.
8706
+ * @param writer Serialization writer to use to serialize this model
8707
+ */
8708
+ // @ts-ignore
8709
+ export function serializeLeadStatusRequest(writer, leadStatusRequest = {}, isSerializingDerivedType = false) {
8710
+ if (!leadStatusRequest || isSerializingDerivedType) {
8711
+ return;
8712
+ }
8713
+ writer.writeEnumValue("category", leadStatusRequest.category);
8714
+ writer.writeStringValue("color", leadStatusRequest.color);
8715
+ writer.writeStringValue("name", leadStatusRequest.name);
8716
+ writer.writeObjectValue("sortOrder", leadStatusRequest.sortOrder);
8717
+ writer.writeAdditionalData(leadStatusRequest.additionalData);
8718
+ }
8719
+ /**
8720
+ * Serializes information the current object
8721
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8722
+ * @param LeadStatusResponse The instance to serialize from.
8723
+ * @param writer Serialization writer to use to serialize this model
8724
+ */
8725
+ // @ts-ignore
8726
+ export function serializeLeadStatusResponse(writer, leadStatusResponse = {}, isSerializingDerivedType = false) {
8727
+ if (!leadStatusResponse || isSerializingDerivedType) {
8728
+ return;
8729
+ }
8730
+ writer.writeStringValue("businessId", leadStatusResponse.businessId);
8731
+ writer.writeEnumValue("category", leadStatusResponse.category);
8732
+ writer.writeStringValue("color", leadStatusResponse.color);
8733
+ writer.writeStringValue("id", leadStatusResponse.id);
8734
+ writer.writeBooleanValue("isArchived", leadStatusResponse.isArchived);
8735
+ writer.writeDateValue("modifiedAt", leadStatusResponse.modifiedAt);
8736
+ writer.writeStringValue("name", leadStatusResponse.name);
8737
+ writer.writeNumberValue("sortOrder", leadStatusResponse.sortOrder);
8738
+ writer.writeAdditionalData(leadStatusResponse.additionalData);
8739
+ }
8500
8740
  /**
8501
8741
  * Serializes information the current object
8502
8742
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8600,6 +8840,34 @@ export function serializeMobileDevicePreferences(writer, mobileDevicePreferences
8600
8840
  writer.writeDateValue("updatedAt", mobileDevicePreferences.updatedAt);
8601
8841
  writer.writeAdditionalData(mobileDevicePreferences.additionalData);
8602
8842
  }
8843
+ /**
8844
+ * Serializes information the current object
8845
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8846
+ * @param NotificationResponse The instance to serialize from.
8847
+ * @param writer Serialization writer to use to serialize this model
8848
+ */
8849
+ // @ts-ignore
8850
+ export function serializeNotificationResponse(writer, notificationResponse = {}, isSerializingDerivedType = false) {
8851
+ if (!notificationResponse || isSerializingDerivedType) {
8852
+ return;
8853
+ }
8854
+ writer.writeStringValue("actionButtonText", notificationResponse.actionButtonText);
8855
+ writer.writeStringValue("actionUrl", notificationResponse.actionUrl);
8856
+ writer.writeDateValue("createdAt", notificationResponse.createdAt);
8857
+ writer.writeStringValue("details", notificationResponse.details);
8858
+ writer.writeStringValue("id", notificationResponse.id);
8859
+ writer.writeBooleanValue("isRead", notificationResponse.isRead);
8860
+ writer.writeStringValue("message", notificationResponse.message);
8861
+ writer.writeDateValue("modifiedAt", notificationResponse.modifiedAt);
8862
+ writer.writeStringValue("name", notificationResponse.name);
8863
+ writer.writeEnumValue("priority", notificationResponse.priority);
8864
+ writer.writeDateValue("readAt", notificationResponse.readAt);
8865
+ writer.writeStringValue("relatedEntityId", notificationResponse.relatedEntityId);
8866
+ writer.writeStringValue("relatedEntityType", notificationResponse.relatedEntityType);
8867
+ writer.writeEnumValue("type", notificationResponse.type);
8868
+ writer.writeStringValue("userId", notificationResponse.userId);
8869
+ writer.writeAdditionalData(notificationResponse.additionalData);
8870
+ }
8603
8871
  /**
8604
8872
  * Serializes information the current object
8605
8873
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -8675,6 +8943,7 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
8675
8943
  if (!outboundPhoneNumberCapacity || isSerializingDerivedType) {
8676
8944
  return;
8677
8945
  }
8946
+ writer.writeBooleanValue("capacityAvailable", outboundPhoneNumberCapacity.capacityAvailable);
8678
8947
  writer.writeEnumValue("healthStatus", outboundPhoneNumberCapacity.healthStatus);
8679
8948
  writer.writeStringValue("phoneNumber", outboundPhoneNumberCapacity.phoneNumber);
8680
8949
  writer.writeStringValue("phoneNumberId", outboundPhoneNumberCapacity.phoneNumberId);
@@ -9668,6 +9937,7 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
9668
9937
  }
9669
9938
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceRequest.allowedProducts);
9670
9939
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
9940
+ writer.writeStringValue("apiKey", sourceRequest.apiKey);
9671
9941
  writer.writeObjectValue("costPerLead", sourceRequest.costPerLead);
9672
9942
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
9673
9943
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
@@ -9692,6 +9962,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
9692
9962
  }
9693
9963
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceResponse.allowedProducts);
9694
9964
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceResponse.allowedStates);
9965
+ writer.writeStringValue("apiKey", sourceResponse.apiKey);
9695
9966
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
9696
9967
  writer.writeObjectValue("business", sourceResponse.business, serializeSourceResponse_business);
9697
9968
  writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
@@ -9777,6 +10048,7 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
9777
10048
  }
9778
10049
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceTableRow.allowedProducts);
9779
10050
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceTableRow.allowedStates);
10051
+ writer.writeStringValue("apiKey", sourceTableRow.apiKey);
9780
10052
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
9781
10053
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
9782
10054
  writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
@@ -9874,6 +10146,25 @@ export function serializeStreetAddress(writer, streetAddress = {}, isSerializing
9874
10146
  writer.writeStringValue("state", streetAddress.state);
9875
10147
  writer.writeAdditionalData(streetAddress.additionalData);
9876
10148
  }
10149
+ /**
10150
+ * Serializes information the current object
10151
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10152
+ * @param StripeInvoiceResponse The instance to serialize from.
10153
+ * @param writer Serialization writer to use to serialize this model
10154
+ */
10155
+ // @ts-ignore
10156
+ export function serializeStripeInvoiceResponse(writer, stripeInvoiceResponse = {}, isSerializingDerivedType = false) {
10157
+ if (!stripeInvoiceResponse || isSerializingDerivedType) {
10158
+ return;
10159
+ }
10160
+ writer.writeNumberValue("amount", stripeInvoiceResponse.amount);
10161
+ writer.writeDateValue("createdAt", stripeInvoiceResponse.createdAt);
10162
+ writer.writeBooleanValue("hasPdf", stripeInvoiceResponse.hasPdf);
10163
+ writer.writeStringValue("id", stripeInvoiceResponse.id);
10164
+ writer.writeStringValue("number", stripeInvoiceResponse.number);
10165
+ writer.writeStringValue("status", stripeInvoiceResponse.status);
10166
+ writer.writeAdditionalData(stripeInvoiceResponse.additionalData);
10167
+ }
9877
10168
  /**
9878
10169
  * Serializes information the current object
9879
10170
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10131,6 +10422,20 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
10131
10422
  writer.writeStringValue("websiteUrl", tenDlcApplicationDraft.websiteUrl);
10132
10423
  writer.writeAdditionalData(tenDlcApplicationDraft.additionalData);
10133
10424
  }
10425
+ /**
10426
+ * Serializes information the current object
10427
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10428
+ * @param TenDlcNotesRequest The instance to serialize from.
10429
+ * @param writer Serialization writer to use to serialize this model
10430
+ */
10431
+ // @ts-ignore
10432
+ export function serializeTenDlcNotesRequest(writer, tenDlcNotesRequest = {}, isSerializingDerivedType = false) {
10433
+ if (!tenDlcNotesRequest || isSerializingDerivedType) {
10434
+ return;
10435
+ }
10436
+ writer.writeStringValue("notes", tenDlcNotesRequest.notes);
10437
+ writer.writeAdditionalData(tenDlcNotesRequest.additionalData);
10438
+ }
10134
10439
  /**
10135
10440
  * Serializes information the current object
10136
10441
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10487,6 +10792,9 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
10487
10792
  writer.writeBooleanValue("newLeadSmsEnabled", userNotificationPreferences.newLeadSmsEnabled);
10488
10793
  writer.writeBooleanValue("paymentFailedEnabled", userNotificationPreferences.paymentFailedEnabled);
10489
10794
  writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
10795
+ writer.writeBooleanValue("smsConsentOptedIn", userNotificationPreferences.smsConsentOptedIn);
10796
+ writer.writeObjectValue("smsConsentTrustedFormCertificate", userNotificationPreferences.smsConsentTrustedFormCertificate, serializeUserNotificationPreferences_smsConsentTrustedFormCertificate);
10797
+ writer.writeDateValue("smsConsentUpdatedAt", userNotificationPreferences.smsConsentUpdatedAt);
10490
10798
  writer.writeBooleanValue("subscriptionRenewingEmailEnabled", userNotificationPreferences.subscriptionRenewingEmailEnabled);
10491
10799
  writer.writeBooleanValue("subscriptionRenewingEnabled", userNotificationPreferences.subscriptionRenewingEnabled);
10492
10800
  writer.writeBooleanValue("subscriptionRenewingSmsEnabled", userNotificationPreferences.subscriptionRenewingSmsEnabled);
@@ -10497,6 +10805,19 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
10497
10805
  writer.writeBooleanValue("usageLimitHitEnabled", userNotificationPreferences.usageLimitHitEnabled);
10498
10806
  writer.writeAdditionalData(userNotificationPreferences.additionalData);
10499
10807
  }
10808
+ /**
10809
+ * Serializes information the current object
10810
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10811
+ * @param UserNotificationPreferences_smsConsentTrustedFormCertificate The instance to serialize from.
10812
+ * @param writer Serialization writer to use to serialize this model
10813
+ */
10814
+ // @ts-ignore
10815
+ export function serializeUserNotificationPreferences_smsConsentTrustedFormCertificate(writer, userNotificationPreferences_smsConsentTrustedFormCertificate = {}, isSerializingDerivedType = false) {
10816
+ if (!userNotificationPreferences_smsConsentTrustedFormCertificate || isSerializingDerivedType) {
10817
+ return;
10818
+ }
10819
+ serializeTrustedFormCertificate(writer, userNotificationPreferences_smsConsentTrustedFormCertificate, isSerializingDerivedType);
10820
+ }
10500
10821
  /**
10501
10822
  * Serializes information the current object
10502
10823
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10748,6 +11069,13 @@ export const BillingPlanObject = {
10748
11069
  Annual: "Annual",
10749
11070
  Monthly: "Monthly",
10750
11071
  };
11072
+ /**
11073
+ * Defines the supported Billing Plan values.
11074
+ */
11075
+ export const BusinessBillingState_pendingBillingPlanObject = {
11076
+ Annual: "Annual",
11077
+ Monthly: "Monthly",
11078
+ };
10751
11079
  /**
10752
11080
  * Defines the supported Business Invitation Status values.
10753
11081
  */
@@ -11040,6 +11368,17 @@ export const CustomerActivationStatusObject = {
11040
11368
  BlockedRequiresOperatorAction: "BlockedRequiresOperatorAction",
11041
11369
  ManuallyBypassed: "ManuallyBypassed",
11042
11370
  };
11371
+ /**
11372
+ * Controlled disposition categories used for reporting, automation, and analytics.
11373
+ */
11374
+ export const DispositionCategoryObject = {
11375
+ Open: "Open",
11376
+ Qualified: "Qualified",
11377
+ Converted: "Converted",
11378
+ Lost: "Lost",
11379
+ Invalid: "Invalid",
11380
+ Duplicate: "Duplicate",
11381
+ };
11043
11382
  /**
11044
11383
  * Controlled disposition categories used for reporting, automation, and analytics.
11045
11384
  */
@@ -11276,6 +11615,17 @@ export const LeadProfile_maritalStatusObject = {
11276
11615
  Separated: "Separated",
11277
11616
  Divorced: "Divorced",
11278
11617
  };
11618
+ /**
11619
+ * Controlled disposition categories used for reporting, automation, and analytics.
11620
+ */
11621
+ export const LeadStatusRequest_categoryObject = {
11622
+ Open: "Open",
11623
+ Qualified: "Qualified",
11624
+ Converted: "Converted",
11625
+ Lost: "Lost",
11626
+ Invalid: "Invalid",
11627
+ Duplicate: "Duplicate",
11628
+ };
11279
11629
  /**
11280
11630
  * Defines the supported Notification Priority values.
11281
11631
  */