@leadping/sdk 1.0.13 → 1.0.15

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 (57) hide show
  1. package/dist/leadpingOpenApiClient.d.ts +15 -0
  2. package/dist/leadpingOpenApiClient.d.ts.map +1 -1
  3. package/dist/leadpingOpenApiClient.js +16 -0
  4. package/dist/leadpingOpenApiClient.js.map +1 -1
  5. package/dist/models/index.d.ts +725 -2
  6. package/dist/models/index.d.ts.map +1 -1
  7. package/dist/models/index.js +615 -0
  8. package/dist/models/index.js.map +1 -1
  9. package/dist/phoneCall/index.d.ts +27 -0
  10. package/dist/phoneCall/index.d.ts.map +1 -0
  11. package/dist/phoneCall/index.js +26 -0
  12. package/dist/phoneCall/index.js.map +1 -0
  13. package/dist/phoneCall/initiate/index.d.ts +32 -0
  14. package/dist/phoneCall/initiate/index.d.ts.map +1 -0
  15. package/dist/phoneCall/initiate/index.js +30 -0
  16. package/dist/phoneCall/initiate/index.js.map +1 -0
  17. package/dist/phoneCall/item/hangup/index.d.ts +31 -0
  18. package/dist/phoneCall/item/hangup/index.d.ts.map +1 -0
  19. package/dist/phoneCall/item/hangup/index.js +28 -0
  20. package/dist/phoneCall/item/hangup/index.js.map +1 -0
  21. package/dist/phoneCall/item/index.d.ts +30 -0
  22. package/dist/phoneCall/item/index.d.ts.map +1 -0
  23. package/dist/phoneCall/item/index.js +30 -0
  24. package/dist/phoneCall/item/index.js.map +1 -0
  25. package/dist/phoneCall/item/status/index.d.ts +30 -0
  26. package/dist/phoneCall/item/status/index.d.ts.map +1 -0
  27. package/dist/phoneCall/item/status/index.js +27 -0
  28. package/dist/phoneCall/item/status/index.js.map +1 -0
  29. package/dist/phoneCall/item/transfer/index.d.ts +40 -0
  30. package/dist/phoneCall/item/transfer/index.d.ts.map +1 -0
  31. package/dist/phoneCall/item/transfer/index.js +28 -0
  32. package/dist/phoneCall/item/transfer/index.js.map +1 -0
  33. package/dist/suppressions/check/index.d.ts +32 -0
  34. package/dist/suppressions/check/index.d.ts.map +1 -0
  35. package/dist/suppressions/check/index.js +30 -0
  36. package/dist/suppressions/check/index.js.map +1 -0
  37. package/dist/suppressions/index.d.ts +46 -0
  38. package/dist/suppressions/index.d.ts.map +1 -0
  39. package/dist/suppressions/index.js +45 -0
  40. package/dist/suppressions/index.js.map +1 -0
  41. package/dist/suppressions/release/index.d.ts +32 -0
  42. package/dist/suppressions/release/index.d.ts.map +1 -0
  43. package/dist/suppressions/release/index.js +30 -0
  44. package/dist/suppressions/release/index.js.map +1 -0
  45. package/dist/telephony/index.d.ts +20 -0
  46. package/dist/telephony/index.d.ts.map +1 -0
  47. package/dist/telephony/index.js +20 -0
  48. package/dist/telephony/index.js.map +1 -0
  49. package/dist/telephony/login/index.d.ts +32 -0
  50. package/dist/telephony/login/index.d.ts.map +1 -0
  51. package/dist/telephony/login/index.js +30 -0
  52. package/dist/telephony/login/index.js.map +1 -0
  53. package/dist/transactions/all/my/index.d.ts +10 -3
  54. package/dist/transactions/all/my/index.d.ts.map +1 -1
  55. package/dist/transactions/all/my/index.js +1 -1
  56. package/dist/transactions/all/my/index.js.map +1 -1
  57. package/package.json +1 -1
@@ -1020,6 +1020,15 @@ export function createIdNamePairFromDiscriminatorValue(parseNode) {
1020
1020
  export function createIdNameValueFromDiscriminatorValue(parseNode) {
1021
1021
  return deserializeIntoIdNameValue;
1022
1022
  }
1023
+ /**
1024
+ * Creates a new instance of the appropriate class based on discriminator value
1025
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1026
+ * @returns {InitiateCallRequest}
1027
+ */
1028
+ // @ts-ignore
1029
+ export function createInitiateCallRequestFromDiscriminatorValue(parseNode) {
1030
+ return deserializeIntoInitiateCallRequest;
1031
+ }
1023
1032
  /**
1024
1033
  * Creates a new instance of the appropriate class based on discriminator value
1025
1034
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1398,6 +1407,24 @@ export function createPagedResultOfUsageLedgerTableRowFromDiscriminatorValue(par
1398
1407
  export function createPhone_lookupFromDiscriminatorValue(parseNode) {
1399
1408
  return deserializeIntoPhone_lookup;
1400
1409
  }
1410
+ /**
1411
+ * Creates a new instance of the appropriate class based on discriminator value
1412
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1413
+ * @returns {PhoneCallResponse_metadata}
1414
+ */
1415
+ // @ts-ignore
1416
+ export function createPhoneCallResponse_metadataFromDiscriminatorValue(parseNode) {
1417
+ return deserializeIntoPhoneCallResponse_metadata;
1418
+ }
1419
+ /**
1420
+ * Creates a new instance of the appropriate class based on discriminator value
1421
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1422
+ * @returns {PhoneCallResponse}
1423
+ */
1424
+ // @ts-ignore
1425
+ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
1426
+ return deserializeIntoPhoneCallResponse;
1427
+ }
1401
1428
  /**
1402
1429
  * Creates a new instance of the appropriate class based on discriminator value
1403
1430
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1965,6 +1992,60 @@ export function createStreetAddressFromDiscriminatorValue(parseNode) {
1965
1992
  export function createStripePaymentMethodResponseFromDiscriminatorValue(parseNode) {
1966
1993
  return deserializeIntoStripePaymentMethodResponse;
1967
1994
  }
1995
+ /**
1996
+ * Creates a new instance of the appropriate class based on discriminator value
1997
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1998
+ * @returns {SuppressionCheckResult}
1999
+ */
2000
+ // @ts-ignore
2001
+ export function createSuppressionCheckResultFromDiscriminatorValue(parseNode) {
2002
+ return deserializeIntoSuppressionCheckResult;
2003
+ }
2004
+ /**
2005
+ * Creates a new instance of the appropriate class based on discriminator value
2006
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2007
+ * @returns {SuppressionEntryAudit_safeMetadata}
2008
+ */
2009
+ // @ts-ignore
2010
+ export function createSuppressionEntryAudit_safeMetadataFromDiscriminatorValue(parseNode) {
2011
+ return deserializeIntoSuppressionEntryAudit_safeMetadata;
2012
+ }
2013
+ /**
2014
+ * Creates a new instance of the appropriate class based on discriminator value
2015
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2016
+ * @returns {SuppressionEntryAudit}
2017
+ */
2018
+ // @ts-ignore
2019
+ export function createSuppressionEntryAuditFromDiscriminatorValue(parseNode) {
2020
+ return deserializeIntoSuppressionEntryAudit;
2021
+ }
2022
+ /**
2023
+ * Creates a new instance of the appropriate class based on discriminator value
2024
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2025
+ * @returns {SuppressionEntryRequest_safeMetadata}
2026
+ */
2027
+ // @ts-ignore
2028
+ export function createSuppressionEntryRequest_safeMetadataFromDiscriminatorValue(parseNode) {
2029
+ return deserializeIntoSuppressionEntryRequest_safeMetadata;
2030
+ }
2031
+ /**
2032
+ * Creates a new instance of the appropriate class based on discriminator value
2033
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2034
+ * @returns {SuppressionEntryRequest}
2035
+ */
2036
+ // @ts-ignore
2037
+ export function createSuppressionEntryRequestFromDiscriminatorValue(parseNode) {
2038
+ return deserializeIntoSuppressionEntryRequest;
2039
+ }
2040
+ /**
2041
+ * Creates a new instance of the appropriate class based on discriminator value
2042
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2043
+ * @returns {SuppressionEntryResponse}
2044
+ */
2045
+ // @ts-ignore
2046
+ export function createSuppressionEntryResponseFromDiscriminatorValue(parseNode) {
2047
+ return deserializeIntoSuppressionEntryResponse;
2048
+ }
1968
2049
  /**
1969
2050
  * Creates a new instance of the appropriate class based on discriminator value
1970
2051
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1992,6 +2073,24 @@ export function createTagResponseFromDiscriminatorValue(parseNode) {
1992
2073
  export function createTagSummaryFromDiscriminatorValue(parseNode) {
1993
2074
  return deserializeIntoTagSummary;
1994
2075
  }
2076
+ /**
2077
+ * Creates a new instance of the appropriate class based on discriminator value
2078
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2079
+ * @returns {TelephonyLoginRequest}
2080
+ */
2081
+ // @ts-ignore
2082
+ export function createTelephonyLoginRequestFromDiscriminatorValue(parseNode) {
2083
+ return deserializeIntoTelephonyLoginRequest;
2084
+ }
2085
+ /**
2086
+ * Creates a new instance of the appropriate class based on discriminator value
2087
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2088
+ * @returns {TelephonyLoginResponse}
2089
+ */
2090
+ // @ts-ignore
2091
+ export function createTelephonyLoginResponseFromDiscriminatorValue(parseNode) {
2092
+ return deserializeIntoTelephonyLoginResponse;
2093
+ }
1995
2094
  /**
1996
2095
  * Creates a new instance of the appropriate class based on discriminator value
1997
2096
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4255,6 +4354,32 @@ export function deserializeIntoIdNameValue(idNameValue = {}) {
4255
4354
  "value": n => { idNameValue.value = n.getStringValue(); },
4256
4355
  };
4257
4356
  }
4357
+ /**
4358
+ * The deserialization information for the current model
4359
+ * @param InitiateCallRequest The instance to deserialize into.
4360
+ * @returns {Record<string, (node: ParseNode) => void>}
4361
+ */
4362
+ // @ts-ignore
4363
+ export function deserializeIntoInitiateCallRequest(initiateCallRequest = {}) {
4364
+ return {
4365
+ "automationId": n => { initiateCallRequest.automationId = n.getStringValue(); },
4366
+ "campaignId": n => { initiateCallRequest.campaignId = n.getStringValue(); },
4367
+ "conversationId": n => { initiateCallRequest.conversationId = n.getStringValue(); },
4368
+ "fromPhoneNumberId": n => { initiateCallRequest.fromPhoneNumberId = n.getStringValue(); },
4369
+ "importBatchId": n => { initiateCallRequest.importBatchId = n.getStringValue(); },
4370
+ "isAutomated": n => { initiateCallRequest.isAutomated = n.getBooleanValue(); },
4371
+ "isImportedLead": n => { initiateCallRequest.isImportedLead = n.getBooleanValue(); },
4372
+ "leadId": n => { initiateCallRequest.leadId = n.getStringValue(); },
4373
+ "outboundDeliveryRequestId": n => { initiateCallRequest.outboundDeliveryRequestId = n.getStringValue(); },
4374
+ "outboundIdempotencyKey": n => { initiateCallRequest.outboundIdempotencyKey = n.getStringValue(); },
4375
+ "outboundPriority": n => { initiateCallRequest.outboundPriority = n.getEnumValue(InitiateCallRequest_outboundPriorityObject); },
4376
+ "outboundReservationId": n => { initiateCallRequest.outboundReservationId = n.getStringValue(); },
4377
+ "outboundSource": n => { initiateCallRequest.outboundSource = n.getEnumValue(InitiateCallRequest_outboundSourceObject); },
4378
+ "selectionReason": n => { initiateCallRequest.selectionReason = n.getEnumValue(InitiateCallRequest_selectionReasonObject); },
4379
+ "sourceId": n => { initiateCallRequest.sourceId = n.getStringValue(); },
4380
+ "wasManuallyOverridden": n => { initiateCallRequest.wasManuallyOverridden = n.getBooleanValue(); },
4381
+ };
4382
+ }
4258
4383
  /**
4259
4384
  * The deserialization information for the current model
4260
4385
  * @param LeadArchiveRequest The instance to deserialize into.
@@ -4959,6 +5084,51 @@ export function deserializeIntoPhone_lookup(phone_lookup = {}) {
4959
5084
  ...deserializeIntoPhoneLookup(phone_lookup),
4960
5085
  };
4961
5086
  }
5087
+ /**
5088
+ * The deserialization information for the current model
5089
+ * @param PhoneCallResponse The instance to deserialize into.
5090
+ * @returns {Record<string, (node: ParseNode) => void>}
5091
+ */
5092
+ // @ts-ignore
5093
+ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
5094
+ return {
5095
+ "answeredAt": n => { phoneCallResponse.answeredAt = n.getDateValue(); },
5096
+ "billableAmount": n => { phoneCallResponse.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5097
+ "billingStatus": n => { phoneCallResponse.billingStatus = n.getStringValue(); },
5098
+ "callerId": n => { phoneCallResponse.callerId = n.getStringValue(); },
5099
+ "campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
5100
+ "conversationId": n => { phoneCallResponse.conversationId = n.getStringValue(); },
5101
+ "createdAt": n => { phoneCallResponse.createdAt = n.getDateValue(); },
5102
+ "direction": n => { phoneCallResponse.direction = n.getStringValue(); },
5103
+ "durationSeconds": n => { phoneCallResponse.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5104
+ "endedAt": n => { phoneCallResponse.endedAt = n.getDateValue(); },
5105
+ "fromPhoneNumber": n => { phoneCallResponse.fromPhoneNumber = n.getStringValue(); },
5106
+ "fromPhoneNumberId": n => { phoneCallResponse.fromPhoneNumberId = n.getStringValue(); },
5107
+ "id": n => { phoneCallResponse.id = n.getStringValue(); },
5108
+ "leadId": n => { phoneCallResponse.leadId = n.getStringValue(); },
5109
+ "metadata": n => { phoneCallResponse.metadata = n.getObjectValue(createPhoneCallResponse_metadataFromDiscriminatorValue); },
5110
+ "modifiedAt": n => { phoneCallResponse.modifiedAt = n.getDateValue(); },
5111
+ "phoneNumber": n => { phoneCallResponse.phoneNumber = n.getStringValue(); },
5112
+ "queuedAt": n => { phoneCallResponse.queuedAt = n.getDateValue(); },
5113
+ "recordingUrl": n => { phoneCallResponse.recordingUrl = n.getStringValue(); },
5114
+ "ringingAt": n => { phoneCallResponse.ringingAt = n.getDateValue(); },
5115
+ "selectionReason": n => { phoneCallResponse.selectionReason = n.getEnumValue(PhoneCallResponse_selectionReasonObject); },
5116
+ "sourceId": n => { phoneCallResponse.sourceId = n.getStringValue(); },
5117
+ "status": n => { phoneCallResponse.status = n.getEnumValue(PhoneCallStatusObject); },
5118
+ "statusReason": n => { phoneCallResponse.statusReason = n.getStringValue(); },
5119
+ "toPhoneNumber": n => { phoneCallResponse.toPhoneNumber = n.getStringValue(); },
5120
+ "wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
5121
+ };
5122
+ }
5123
+ /**
5124
+ * The deserialization information for the current model
5125
+ * @param PhoneCallResponse_metadata The instance to deserialize into.
5126
+ * @returns {Record<string, (node: ParseNode) => void>}
5127
+ */
5128
+ // @ts-ignore
5129
+ export function deserializeIntoPhoneCallResponse_metadata(phoneCallResponse_metadata = {}) {
5130
+ return {};
5131
+ }
4962
5132
  /**
4963
5133
  * The deserialization information for the current model
4964
5134
  * @param PhoneLookup The instance to deserialize into.
@@ -6078,6 +6248,110 @@ export function deserializeIntoStripePaymentMethodResponse(stripePaymentMethodRe
6078
6248
  "last4": n => { stripePaymentMethodResponse.last4 = n.getStringValue(); },
6079
6249
  };
6080
6250
  }
6251
+ /**
6252
+ * The deserialization information for the current model
6253
+ * @param SuppressionCheckResult The instance to deserialize into.
6254
+ * @returns {Record<string, (node: ParseNode) => void>}
6255
+ */
6256
+ // @ts-ignore
6257
+ export function deserializeIntoSuppressionCheckResult(suppressionCheckResult = {}) {
6258
+ return {
6259
+ "adminReason": n => { suppressionCheckResult.adminReason = n.getStringValue(); },
6260
+ "allowed": n => { suppressionCheckResult.allowed = n.getBooleanValue(); },
6261
+ "businessId": n => { suppressionCheckResult.businessId = n.getStringValue(); },
6262
+ "channel": n => { suppressionCheckResult.channel = n.getStringValue(); },
6263
+ "customerReason": n => { suppressionCheckResult.customerReason = n.getStringValue(); },
6264
+ "normalizedEmail": n => { suppressionCheckResult.normalizedEmail = n.getStringValue(); },
6265
+ "normalizedPhoneNumber": n => { suppressionCheckResult.normalizedPhoneNumber = n.getStringValue(); },
6266
+ "recipientIdentifier": n => { suppressionCheckResult.recipientIdentifier = n.getStringValue(); },
6267
+ "source": n => { suppressionCheckResult.source = n.getStringValue(); },
6268
+ "suppressedAt": n => { suppressionCheckResult.suppressedAt = n.getDateValue(); },
6269
+ "suppressionEntryId": n => { suppressionCheckResult.suppressionEntryId = n.getStringValue(); },
6270
+ };
6271
+ }
6272
+ /**
6273
+ * The deserialization information for the current model
6274
+ * @param SuppressionEntryAudit The instance to deserialize into.
6275
+ * @returns {Record<string, (node: ParseNode) => void>}
6276
+ */
6277
+ // @ts-ignore
6278
+ export function deserializeIntoSuppressionEntryAudit(suppressionEntryAudit = {}) {
6279
+ return {
6280
+ "actorId": n => { suppressionEntryAudit.actorId = n.getStringValue(); },
6281
+ "id": n => { suppressionEntryAudit.id = n.getStringValue(); },
6282
+ "providerEventId": n => { suppressionEntryAudit.providerEventId = n.getStringValue(); },
6283
+ "reason": n => { suppressionEntryAudit.reason = n.getStringValue(); },
6284
+ "safeMetadata": n => { suppressionEntryAudit.safeMetadata = n.getObjectValue(createSuppressionEntryAudit_safeMetadataFromDiscriminatorValue); },
6285
+ "source": n => { suppressionEntryAudit.source = n.getStringValue(); },
6286
+ "sourceEventId": n => { suppressionEntryAudit.sourceEventId = n.getStringValue(); },
6287
+ "status": n => { suppressionEntryAudit.status = n.getStringValue(); },
6288
+ "timestamp": n => { suppressionEntryAudit.timestamp = n.getDateValue(); },
6289
+ };
6290
+ }
6291
+ /**
6292
+ * The deserialization information for the current model
6293
+ * @param SuppressionEntryAudit_safeMetadata The instance to deserialize into.
6294
+ * @returns {Record<string, (node: ParseNode) => void>}
6295
+ */
6296
+ // @ts-ignore
6297
+ export function deserializeIntoSuppressionEntryAudit_safeMetadata(suppressionEntryAudit_safeMetadata = {}) {
6298
+ return {};
6299
+ }
6300
+ /**
6301
+ * The deserialization information for the current model
6302
+ * @param SuppressionEntryRequest The instance to deserialize into.
6303
+ * @returns {Record<string, (node: ParseNode) => void>}
6304
+ */
6305
+ // @ts-ignore
6306
+ export function deserializeIntoSuppressionEntryRequest(suppressionEntryRequest = {}) {
6307
+ return {
6308
+ "actorId": n => { suppressionEntryRequest.actorId = n.getStringValue(); },
6309
+ "businessId": n => { suppressionEntryRequest.businessId = n.getStringValue(); },
6310
+ "channel": n => { suppressionEntryRequest.channel = n.getStringValue(); },
6311
+ "email": n => { suppressionEntryRequest.email = n.getStringValue(); },
6312
+ "phoneNumber": n => { suppressionEntryRequest.phoneNumber = n.getStringValue(); },
6313
+ "providerEventId": n => { suppressionEntryRequest.providerEventId = n.getStringValue(); },
6314
+ "reason": n => { suppressionEntryRequest.reason = n.getStringValue(); },
6315
+ "recipientIdentifier": n => { suppressionEntryRequest.recipientIdentifier = n.getStringValue(); },
6316
+ "safeMetadata": n => { suppressionEntryRequest.safeMetadata = n.getObjectValue(createSuppressionEntryRequest_safeMetadataFromDiscriminatorValue); },
6317
+ "source": n => { suppressionEntryRequest.source = n.getStringValue(); },
6318
+ "sourceEventId": n => { suppressionEntryRequest.sourceEventId = n.getStringValue(); },
6319
+ "timestamp": n => { suppressionEntryRequest.timestamp = n.getDateValue(); },
6320
+ };
6321
+ }
6322
+ /**
6323
+ * The deserialization information for the current model
6324
+ * @param SuppressionEntryRequest_safeMetadata The instance to deserialize into.
6325
+ * @returns {Record<string, (node: ParseNode) => void>}
6326
+ */
6327
+ // @ts-ignore
6328
+ export function deserializeIntoSuppressionEntryRequest_safeMetadata(suppressionEntryRequest_safeMetadata = {}) {
6329
+ return {};
6330
+ }
6331
+ /**
6332
+ * The deserialization information for the current model
6333
+ * @param SuppressionEntryResponse The instance to deserialize into.
6334
+ * @returns {Record<string, (node: ParseNode) => void>}
6335
+ */
6336
+ // @ts-ignore
6337
+ export function deserializeIntoSuppressionEntryResponse(suppressionEntryResponse = {}) {
6338
+ return {
6339
+ "audit": n => { suppressionEntryResponse.audit = n.getCollectionOfObjectValues(createSuppressionEntryAuditFromDiscriminatorValue); },
6340
+ "businessId": n => { suppressionEntryResponse.businessId = n.getStringValue(); },
6341
+ "channel": n => { suppressionEntryResponse.channel = n.getStringValue(); },
6342
+ "id": n => { suppressionEntryResponse.id = n.getStringValue(); },
6343
+ "normalizedEmail": n => { suppressionEntryResponse.normalizedEmail = n.getStringValue(); },
6344
+ "normalizedPhoneNumber": n => { suppressionEntryResponse.normalizedPhoneNumber = n.getStringValue(); },
6345
+ "providerEventId": n => { suppressionEntryResponse.providerEventId = n.getStringValue(); },
6346
+ "reason": n => { suppressionEntryResponse.reason = n.getStringValue(); },
6347
+ "recipientIdentifier": n => { suppressionEntryResponse.recipientIdentifier = n.getStringValue(); },
6348
+ "releasedAt": n => { suppressionEntryResponse.releasedAt = n.getDateValue(); },
6349
+ "source": n => { suppressionEntryResponse.source = n.getStringValue(); },
6350
+ "sourceEventId": n => { suppressionEntryResponse.sourceEventId = n.getStringValue(); },
6351
+ "status": n => { suppressionEntryResponse.status = n.getStringValue(); },
6352
+ "suppressedAt": n => { suppressionEntryResponse.suppressedAt = n.getDateValue(); },
6353
+ };
6354
+ }
6081
6355
  /**
6082
6356
  * The deserialization information for the current model
6083
6357
  * @param TagRequest The instance to deserialize into.
@@ -6127,6 +6401,32 @@ export function deserializeIntoTagSummary(tagSummary = {}) {
6127
6401
  "normalizedName": n => { tagSummary.normalizedName = n.getStringValue(); },
6128
6402
  };
6129
6403
  }
6404
+ /**
6405
+ * The deserialization information for the current model
6406
+ * @param TelephonyLoginRequest The instance to deserialize into.
6407
+ * @returns {Record<string, (node: ParseNode) => void>}
6408
+ */
6409
+ // @ts-ignore
6410
+ export function deserializeIntoTelephonyLoginRequest(telephonyLoginRequest = {}) {
6411
+ return {
6412
+ "deviceId": n => { telephonyLoginRequest.deviceId = n.getStringValue(); },
6413
+ "deviceName": n => { telephonyLoginRequest.deviceName = n.getStringValue(); },
6414
+ };
6415
+ }
6416
+ /**
6417
+ * The deserialization information for the current model
6418
+ * @param TelephonyLoginResponse The instance to deserialize into.
6419
+ * @returns {Record<string, (node: ParseNode) => void>}
6420
+ */
6421
+ // @ts-ignore
6422
+ export function deserializeIntoTelephonyLoginResponse(telephonyLoginResponse = {}) {
6423
+ return {
6424
+ "callbackToken": n => { telephonyLoginResponse.callbackToken = n.getStringValue(); },
6425
+ "expiresAt": n => { telephonyLoginResponse.expiresAt = n.getDateValue(); },
6426
+ "password": n => { telephonyLoginResponse.password = n.getStringValue(); },
6427
+ "username": n => { telephonyLoginResponse.username = n.getStringValue(); },
6428
+ };
6429
+ }
6130
6430
  /**
6131
6431
  * The deserialization information for the current model
6132
6432
  * @param TenDlcApplicationDraft The instance to deserialize into.
@@ -8998,6 +9298,35 @@ export function serializeIdNameValue(writer, idNameValue = {}, isSerializingDeri
8998
9298
  writer.writeStringValue("value", idNameValue.value);
8999
9299
  writer.writeAdditionalData(idNameValue.additionalData);
9000
9300
  }
9301
+ /**
9302
+ * Serializes information the current object
9303
+ * @param InitiateCallRequest The instance to serialize from.
9304
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9305
+ * @param writer Serialization writer to use to serialize this model
9306
+ */
9307
+ // @ts-ignore
9308
+ export function serializeInitiateCallRequest(writer, initiateCallRequest = {}, isSerializingDerivedType = false) {
9309
+ if (!initiateCallRequest || isSerializingDerivedType) {
9310
+ return;
9311
+ }
9312
+ writer.writeStringValue("automationId", initiateCallRequest.automationId);
9313
+ writer.writeStringValue("campaignId", initiateCallRequest.campaignId);
9314
+ writer.writeStringValue("conversationId", initiateCallRequest.conversationId);
9315
+ writer.writeStringValue("fromPhoneNumberId", initiateCallRequest.fromPhoneNumberId);
9316
+ writer.writeStringValue("importBatchId", initiateCallRequest.importBatchId);
9317
+ writer.writeBooleanValue("isAutomated", initiateCallRequest.isAutomated);
9318
+ writer.writeBooleanValue("isImportedLead", initiateCallRequest.isImportedLead);
9319
+ writer.writeStringValue("leadId", initiateCallRequest.leadId);
9320
+ writer.writeStringValue("outboundDeliveryRequestId", initiateCallRequest.outboundDeliveryRequestId);
9321
+ writer.writeStringValue("outboundIdempotencyKey", initiateCallRequest.outboundIdempotencyKey);
9322
+ writer.writeEnumValue("outboundPriority", initiateCallRequest.outboundPriority);
9323
+ writer.writeStringValue("outboundReservationId", initiateCallRequest.outboundReservationId);
9324
+ writer.writeEnumValue("outboundSource", initiateCallRequest.outboundSource);
9325
+ writer.writeEnumValue("selectionReason", initiateCallRequest.selectionReason);
9326
+ writer.writeStringValue("sourceId", initiateCallRequest.sourceId);
9327
+ writer.writeBooleanValue("wasManuallyOverridden", initiateCallRequest.wasManuallyOverridden);
9328
+ writer.writeAdditionalData(initiateCallRequest.additionalData);
9329
+ }
9001
9330
  /**
9002
9331
  * Serializes information the current object
9003
9332
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9824,6 +10153,58 @@ export function serializePhone_lookup(writer, phone_lookup = {}, isSerializingDe
9824
10153
  }
9825
10154
  serializePhoneLookup(writer, phone_lookup, isSerializingDerivedType);
9826
10155
  }
10156
+ /**
10157
+ * Serializes information the current object
10158
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10159
+ * @param PhoneCallResponse The instance to serialize from.
10160
+ * @param writer Serialization writer to use to serialize this model
10161
+ */
10162
+ // @ts-ignore
10163
+ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSerializingDerivedType = false) {
10164
+ if (!phoneCallResponse || isSerializingDerivedType) {
10165
+ return;
10166
+ }
10167
+ writer.writeDateValue("answeredAt", phoneCallResponse.answeredAt);
10168
+ writer.writeObjectValue("billableAmount", phoneCallResponse.billableAmount);
10169
+ writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
10170
+ writer.writeStringValue("callerId", phoneCallResponse.callerId);
10171
+ writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
10172
+ writer.writeStringValue("conversationId", phoneCallResponse.conversationId);
10173
+ writer.writeDateValue("createdAt", phoneCallResponse.createdAt);
10174
+ writer.writeStringValue("direction", phoneCallResponse.direction);
10175
+ writer.writeObjectValue("durationSeconds", phoneCallResponse.durationSeconds);
10176
+ writer.writeDateValue("endedAt", phoneCallResponse.endedAt);
10177
+ writer.writeStringValue("fromPhoneNumber", phoneCallResponse.fromPhoneNumber);
10178
+ writer.writeStringValue("fromPhoneNumberId", phoneCallResponse.fromPhoneNumberId);
10179
+ writer.writeStringValue("id", phoneCallResponse.id);
10180
+ writer.writeStringValue("leadId", phoneCallResponse.leadId);
10181
+ writer.writeObjectValue("metadata", phoneCallResponse.metadata, serializePhoneCallResponse_metadata);
10182
+ writer.writeDateValue("modifiedAt", phoneCallResponse.modifiedAt);
10183
+ writer.writeStringValue("phoneNumber", phoneCallResponse.phoneNumber);
10184
+ writer.writeDateValue("queuedAt", phoneCallResponse.queuedAt);
10185
+ writer.writeStringValue("recordingUrl", phoneCallResponse.recordingUrl);
10186
+ writer.writeDateValue("ringingAt", phoneCallResponse.ringingAt);
10187
+ writer.writeEnumValue("selectionReason", phoneCallResponse.selectionReason);
10188
+ writer.writeStringValue("sourceId", phoneCallResponse.sourceId);
10189
+ writer.writeEnumValue("status", phoneCallResponse.status);
10190
+ writer.writeStringValue("statusReason", phoneCallResponse.statusReason);
10191
+ writer.writeStringValue("toPhoneNumber", phoneCallResponse.toPhoneNumber);
10192
+ writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
10193
+ writer.writeAdditionalData(phoneCallResponse.additionalData);
10194
+ }
10195
+ /**
10196
+ * Serializes information the current object
10197
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10198
+ * @param PhoneCallResponse_metadata The instance to serialize from.
10199
+ * @param writer Serialization writer to use to serialize this model
10200
+ */
10201
+ // @ts-ignore
10202
+ export function serializePhoneCallResponse_metadata(writer, phoneCallResponse_metadata = {}, isSerializingDerivedType = false) {
10203
+ if (!phoneCallResponse_metadata || isSerializingDerivedType) {
10204
+ return;
10205
+ }
10206
+ writer.writeAdditionalData(phoneCallResponse_metadata.additionalData);
10207
+ }
9827
10208
  /**
9828
10209
  * Serializes information the current object
9829
10210
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -11104,6 +11485,130 @@ export function serializeStripePaymentMethodResponse(writer, stripePaymentMethod
11104
11485
  writer.writeStringValue("last4", stripePaymentMethodResponse.last4);
11105
11486
  writer.writeAdditionalData(stripePaymentMethodResponse.additionalData);
11106
11487
  }
11488
+ /**
11489
+ * Serializes information the current object
11490
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11491
+ * @param SuppressionCheckResult The instance to serialize from.
11492
+ * @param writer Serialization writer to use to serialize this model
11493
+ */
11494
+ // @ts-ignore
11495
+ export function serializeSuppressionCheckResult(writer, suppressionCheckResult = {}, isSerializingDerivedType = false) {
11496
+ if (!suppressionCheckResult || isSerializingDerivedType) {
11497
+ return;
11498
+ }
11499
+ writer.writeStringValue("adminReason", suppressionCheckResult.adminReason);
11500
+ writer.writeBooleanValue("allowed", suppressionCheckResult.allowed);
11501
+ writer.writeStringValue("businessId", suppressionCheckResult.businessId);
11502
+ writer.writeStringValue("channel", suppressionCheckResult.channel);
11503
+ writer.writeStringValue("customerReason", suppressionCheckResult.customerReason);
11504
+ writer.writeStringValue("normalizedEmail", suppressionCheckResult.normalizedEmail);
11505
+ writer.writeStringValue("normalizedPhoneNumber", suppressionCheckResult.normalizedPhoneNumber);
11506
+ writer.writeStringValue("recipientIdentifier", suppressionCheckResult.recipientIdentifier);
11507
+ writer.writeStringValue("source", suppressionCheckResult.source);
11508
+ writer.writeDateValue("suppressedAt", suppressionCheckResult.suppressedAt);
11509
+ writer.writeStringValue("suppressionEntryId", suppressionCheckResult.suppressionEntryId);
11510
+ writer.writeAdditionalData(suppressionCheckResult.additionalData);
11511
+ }
11512
+ /**
11513
+ * Serializes information the current object
11514
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11515
+ * @param SuppressionEntryAudit The instance to serialize from.
11516
+ * @param writer Serialization writer to use to serialize this model
11517
+ */
11518
+ // @ts-ignore
11519
+ export function serializeSuppressionEntryAudit(writer, suppressionEntryAudit = {}, isSerializingDerivedType = false) {
11520
+ if (!suppressionEntryAudit || isSerializingDerivedType) {
11521
+ return;
11522
+ }
11523
+ writer.writeStringValue("actorId", suppressionEntryAudit.actorId);
11524
+ writer.writeStringValue("id", suppressionEntryAudit.id);
11525
+ writer.writeStringValue("providerEventId", suppressionEntryAudit.providerEventId);
11526
+ writer.writeStringValue("reason", suppressionEntryAudit.reason);
11527
+ writer.writeObjectValue("safeMetadata", suppressionEntryAudit.safeMetadata, serializeSuppressionEntryAudit_safeMetadata);
11528
+ writer.writeStringValue("source", suppressionEntryAudit.source);
11529
+ writer.writeStringValue("sourceEventId", suppressionEntryAudit.sourceEventId);
11530
+ writer.writeStringValue("status", suppressionEntryAudit.status);
11531
+ writer.writeDateValue("timestamp", suppressionEntryAudit.timestamp);
11532
+ writer.writeAdditionalData(suppressionEntryAudit.additionalData);
11533
+ }
11534
+ /**
11535
+ * Serializes information the current object
11536
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11537
+ * @param SuppressionEntryAudit_safeMetadata The instance to serialize from.
11538
+ * @param writer Serialization writer to use to serialize this model
11539
+ */
11540
+ // @ts-ignore
11541
+ export function serializeSuppressionEntryAudit_safeMetadata(writer, suppressionEntryAudit_safeMetadata = {}, isSerializingDerivedType = false) {
11542
+ if (!suppressionEntryAudit_safeMetadata || isSerializingDerivedType) {
11543
+ return;
11544
+ }
11545
+ writer.writeAdditionalData(suppressionEntryAudit_safeMetadata.additionalData);
11546
+ }
11547
+ /**
11548
+ * Serializes information the current object
11549
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11550
+ * @param SuppressionEntryRequest The instance to serialize from.
11551
+ * @param writer Serialization writer to use to serialize this model
11552
+ */
11553
+ // @ts-ignore
11554
+ export function serializeSuppressionEntryRequest(writer, suppressionEntryRequest = {}, isSerializingDerivedType = false) {
11555
+ if (!suppressionEntryRequest || isSerializingDerivedType) {
11556
+ return;
11557
+ }
11558
+ writer.writeStringValue("actorId", suppressionEntryRequest.actorId);
11559
+ writer.writeStringValue("businessId", suppressionEntryRequest.businessId);
11560
+ writer.writeStringValue("channel", suppressionEntryRequest.channel);
11561
+ writer.writeStringValue("email", suppressionEntryRequest.email);
11562
+ writer.writeStringValue("phoneNumber", suppressionEntryRequest.phoneNumber);
11563
+ writer.writeStringValue("providerEventId", suppressionEntryRequest.providerEventId);
11564
+ writer.writeStringValue("reason", suppressionEntryRequest.reason);
11565
+ writer.writeStringValue("recipientIdentifier", suppressionEntryRequest.recipientIdentifier);
11566
+ writer.writeObjectValue("safeMetadata", suppressionEntryRequest.safeMetadata, serializeSuppressionEntryRequest_safeMetadata);
11567
+ writer.writeStringValue("source", suppressionEntryRequest.source);
11568
+ writer.writeStringValue("sourceEventId", suppressionEntryRequest.sourceEventId);
11569
+ writer.writeDateValue("timestamp", suppressionEntryRequest.timestamp);
11570
+ writer.writeAdditionalData(suppressionEntryRequest.additionalData);
11571
+ }
11572
+ /**
11573
+ * Serializes information the current object
11574
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11575
+ * @param SuppressionEntryRequest_safeMetadata The instance to serialize from.
11576
+ * @param writer Serialization writer to use to serialize this model
11577
+ */
11578
+ // @ts-ignore
11579
+ export function serializeSuppressionEntryRequest_safeMetadata(writer, suppressionEntryRequest_safeMetadata = {}, isSerializingDerivedType = false) {
11580
+ if (!suppressionEntryRequest_safeMetadata || isSerializingDerivedType) {
11581
+ return;
11582
+ }
11583
+ writer.writeAdditionalData(suppressionEntryRequest_safeMetadata.additionalData);
11584
+ }
11585
+ /**
11586
+ * Serializes information the current object
11587
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11588
+ * @param SuppressionEntryResponse The instance to serialize from.
11589
+ * @param writer Serialization writer to use to serialize this model
11590
+ */
11591
+ // @ts-ignore
11592
+ export function serializeSuppressionEntryResponse(writer, suppressionEntryResponse = {}, isSerializingDerivedType = false) {
11593
+ if (!suppressionEntryResponse || isSerializingDerivedType) {
11594
+ return;
11595
+ }
11596
+ writer.writeCollectionOfObjectValues("audit", suppressionEntryResponse.audit, serializeSuppressionEntryAudit);
11597
+ writer.writeStringValue("businessId", suppressionEntryResponse.businessId);
11598
+ writer.writeStringValue("channel", suppressionEntryResponse.channel);
11599
+ writer.writeStringValue("id", suppressionEntryResponse.id);
11600
+ writer.writeStringValue("normalizedEmail", suppressionEntryResponse.normalizedEmail);
11601
+ writer.writeStringValue("normalizedPhoneNumber", suppressionEntryResponse.normalizedPhoneNumber);
11602
+ writer.writeStringValue("providerEventId", suppressionEntryResponse.providerEventId);
11603
+ writer.writeStringValue("reason", suppressionEntryResponse.reason);
11604
+ writer.writeStringValue("recipientIdentifier", suppressionEntryResponse.recipientIdentifier);
11605
+ writer.writeDateValue("releasedAt", suppressionEntryResponse.releasedAt);
11606
+ writer.writeStringValue("source", suppressionEntryResponse.source);
11607
+ writer.writeStringValue("sourceEventId", suppressionEntryResponse.sourceEventId);
11608
+ writer.writeStringValue("status", suppressionEntryResponse.status);
11609
+ writer.writeDateValue("suppressedAt", suppressionEntryResponse.suppressedAt);
11610
+ writer.writeAdditionalData(suppressionEntryResponse.additionalData);
11611
+ }
11107
11612
  /**
11108
11613
  * Serializes information the current object
11109
11614
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -11162,6 +11667,38 @@ export function serializeTagSummary(writer, tagSummary = {}, isSerializingDerive
11162
11667
  writer.writeStringValue("normalizedName", tagSummary.normalizedName);
11163
11668
  writer.writeAdditionalData(tagSummary.additionalData);
11164
11669
  }
11670
+ /**
11671
+ * Serializes information the current object
11672
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11673
+ * @param TelephonyLoginRequest The instance to serialize from.
11674
+ * @param writer Serialization writer to use to serialize this model
11675
+ */
11676
+ // @ts-ignore
11677
+ export function serializeTelephonyLoginRequest(writer, telephonyLoginRequest = {}, isSerializingDerivedType = false) {
11678
+ if (!telephonyLoginRequest || isSerializingDerivedType) {
11679
+ return;
11680
+ }
11681
+ writer.writeStringValue("deviceId", telephonyLoginRequest.deviceId);
11682
+ writer.writeStringValue("deviceName", telephonyLoginRequest.deviceName);
11683
+ writer.writeAdditionalData(telephonyLoginRequest.additionalData);
11684
+ }
11685
+ /**
11686
+ * Serializes information the current object
11687
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
11688
+ * @param TelephonyLoginResponse The instance to serialize from.
11689
+ * @param writer Serialization writer to use to serialize this model
11690
+ */
11691
+ // @ts-ignore
11692
+ export function serializeTelephonyLoginResponse(writer, telephonyLoginResponse = {}, isSerializingDerivedType = false) {
11693
+ if (!telephonyLoginResponse || isSerializingDerivedType) {
11694
+ return;
11695
+ }
11696
+ writer.writeStringValue("callbackToken", telephonyLoginResponse.callbackToken);
11697
+ writer.writeDateValue("expiresAt", telephonyLoginResponse.expiresAt);
11698
+ writer.writeStringValue("password", telephonyLoginResponse.password);
11699
+ writer.writeStringValue("username", telephonyLoginResponse.username);
11700
+ writer.writeAdditionalData(telephonyLoginResponse.additionalData);
11701
+ }
11165
11702
  /**
11166
11703
  * Serializes information the current object
11167
11704
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -12405,6 +12942,46 @@ export const FeedbackTypeObject = {
12405
12942
  Missing_capability: "missing_capability",
12406
12943
  Other: "other",
12407
12944
  };
12945
+ /**
12946
+ * Defines priority classes used when pacing outbound delivery.
12947
+ */
12948
+ export const InitiateCallRequest_outboundPriorityObject = {
12949
+ Critical_internal_notification: "critical_internal_notification",
12950
+ Fresh_inbound_lead_response: "fresh_inbound_lead_response",
12951
+ Manual_user_initiated: "manual_user_initiated",
12952
+ Active_conversation_reply: "active_conversation_reply",
12953
+ Automation_follow_up: "automation_follow_up",
12954
+ Campaign_message: "campaign_message",
12955
+ Imported_lead_campaign: "imported_lead_campaign",
12956
+ Warmup: "warmup",
12957
+ Retry: "retry",
12958
+ };
12959
+ /**
12960
+ * Defines the source that requested outbound delivery.
12961
+ */
12962
+ export const InitiateCallRequest_outboundSourceObject = {
12963
+ Manual: "manual",
12964
+ Automation: "automation",
12965
+ Campaign: "campaign",
12966
+ ImportEscaped: "import",
12967
+ Api: "api",
12968
+ System_notification: "system_notification",
12969
+ Warmup: "warmup",
12970
+ Retry: "retry",
12971
+ };
12972
+ /**
12973
+ * Defines the supported Outgoing Number Selection Reason values.
12974
+ */
12975
+ export const InitiateCallRequest_selectionReasonObject = {
12976
+ StickyConversation: "StickyConversation",
12977
+ LeadAssigned: "LeadAssigned",
12978
+ CampaignOrSource: "CampaignOrSource",
12979
+ Preferred: "Preferred",
12980
+ LocalArea: "LocalArea",
12981
+ HealthyPool: "HealthyPool",
12982
+ FallbackDefault: "FallbackDefault",
12983
+ ManualOverride: "ManualOverride",
12984
+ };
12408
12985
  /**
12409
12986
  * Represents the status of an internal phone number in the system.
12410
12987
  */
@@ -12596,6 +13173,44 @@ export const OutgoingNumberSelectionResponse_selectionReasonObject = {
12596
13173
  FallbackDefault: "FallbackDefault",
12597
13174
  ManualOverride: "ManualOverride",
12598
13175
  };
13176
+ /**
13177
+ * Defines the supported Outgoing Number Selection Reason values.
13178
+ */
13179
+ export const PhoneCallResponse_selectionReasonObject = {
13180
+ StickyConversation: "StickyConversation",
13181
+ LeadAssigned: "LeadAssigned",
13182
+ CampaignOrSource: "CampaignOrSource",
13183
+ Preferred: "Preferred",
13184
+ LocalArea: "LocalArea",
13185
+ HealthyPool: "HealthyPool",
13186
+ FallbackDefault: "FallbackDefault",
13187
+ ManualOverride: "ManualOverride",
13188
+ };
13189
+ /**
13190
+ * Defines the supported Phone Call Status values.
13191
+ */
13192
+ export const PhoneCallStatusObject = {
13193
+ Scheduled: "scheduled",
13194
+ Queued: "queued",
13195
+ Initiated: "initiated",
13196
+ Ringing: "ringing",
13197
+ In_progress: "in_progress",
13198
+ Active: "active",
13199
+ Completed: "completed",
13200
+ Ended: "ended",
13201
+ Busy: "busy",
13202
+ No_answer: "no_answer",
13203
+ Failed: "failed",
13204
+ Canceled: "canceled",
13205
+ Missed: "missed",
13206
+ Transferred: "transferred",
13207
+ Voicemail: "voicemail",
13208
+ Blocked_billing: "blocked_billing",
13209
+ Blocked_phone_number_status: "blocked_phone_number_status",
13210
+ Blocked_configuration: "blocked_configuration",
13211
+ Blocked_permission: "blocked_permission",
13212
+ Configuration_required: "configuration_required",
13213
+ };
12599
13214
  /**
12600
13215
  * An enumerator describing carrier types
12601
13216
  */