@leadping/sdk 1.0.35 → 1.0.36

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.
@@ -138,6 +138,15 @@ export function createAutomationConditionGroupFromDiscriminatorValue(parseNode)
138
138
  export function createAutomationConnectionFromDiscriminatorValue(parseNode) {
139
139
  return deserializeIntoAutomationConnection;
140
140
  }
141
+ /**
142
+ * Creates a new instance of the appropriate class based on discriminator value
143
+ * @param parseNode The parse node to use to read the discriminator value and create the object
144
+ * @returns {AutomationConsoleResponse}
145
+ */
146
+ // @ts-ignore
147
+ export function createAutomationConsoleResponseFromDiscriminatorValue(parseNode) {
148
+ return deserializeIntoAutomationConsoleResponse;
149
+ }
141
150
  /**
142
151
  * Creates a new instance of the appropriate class based on discriminator value
143
152
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2582,6 +2591,18 @@ export function deserializeIntoAutomationConnection(automationConnection = {}) {
2582
2591
  "targetNodeId": n => { automationConnection.targetNodeId = n.getStringValue(); },
2583
2592
  };
2584
2593
  }
2594
+ /**
2595
+ * The deserialization information for the current model
2596
+ * @param AutomationConsoleResponse The instance to deserialize into.
2597
+ * @returns {Record<string, (node: ParseNode) => void>}
2598
+ */
2599
+ // @ts-ignore
2600
+ export function deserializeIntoAutomationConsoleResponse(automationConsoleResponse = {}) {
2601
+ return {
2602
+ "automationId": n => { automationConsoleResponse.automationId = n.getStringValue(); },
2603
+ "runs": n => { automationConsoleResponse.runs = n.getCollectionOfObjectValues(createAutomationWorkflowRunResponseFromDiscriminatorValue); },
2604
+ };
2605
+ }
2585
2606
  /**
2586
2607
  * The deserialization information for the current model
2587
2608
  * @param AutomationPreviewActionResult The instance to deserialize into.
@@ -3008,7 +3029,9 @@ export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
3008
3029
  "statusReason": n => { callEventTableRow.statusReason = n.getStringValue(); },
3009
3030
  "toPhoneNumber": n => { callEventTableRow.toPhoneNumber = n.getStringValue(); },
3010
3031
  "user": n => { callEventTableRow.user = n.getStringValue(); },
3032
+ "userEmail": n => { callEventTableRow.userEmail = n.getStringValue(); },
3011
3033
  "userId": n => { callEventTableRow.userId = n.getStringValue(); },
3034
+ "userName": n => { callEventTableRow.userName = n.getStringValue(); },
3012
3035
  };
3013
3036
  }
3014
3037
  /**
@@ -3440,6 +3463,7 @@ export function deserializeIntoEventDetailResponse(eventDetailResponse = {}) {
3440
3463
  "toPhoneNumber": n => { eventDetailResponse.toPhoneNumber = n.getStringValue(); },
3441
3464
  "undeliverableAt": n => { eventDetailResponse.undeliverableAt = n.getDateValue(); },
3442
3465
  "user": n => { eventDetailResponse.user = n.getObjectValue(createEventDetailResponse_userFromDiscriminatorValue); },
3466
+ "userEmail": n => { eventDetailResponse.userEmail = n.getStringValue(); },
3443
3467
  "userId": n => { eventDetailResponse.userId = n.getStringValue(); },
3444
3468
  };
3445
3469
  }
@@ -3839,12 +3863,17 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
3839
3863
  "createdAt": n => { leadResponse.createdAt = n.getDateValue(); },
3840
3864
  "currentLeadStatus": n => { leadResponse.currentLeadStatus = n.getObjectValue(createLeadResponse_currentLeadStatusFromDiscriminatorValue); },
3841
3865
  "customer": n => { leadResponse.customer = n.getObjectValue(createLeadProfileFromDiscriminatorValue); },
3866
+ "deletedAt": n => { leadResponse.deletedAt = n.getDateValue(); },
3867
+ "deletedByUserId": n => { leadResponse.deletedByUserId = n.getStringValue(); },
3842
3868
  "enabled": n => { leadResponse.enabled = n.getBooleanValue(); },
3843
3869
  "id": n => { leadResponse.id = n.getStringValue(); },
3844
3870
  "isArchived": n => { leadResponse.isArchived = n.getBooleanValue(); },
3845
3871
  "metadata": n => { leadResponse.metadata = n.getObjectValue(createLeadMetadataFromDiscriminatorValue); },
3846
3872
  "modifiedAt": n => { leadResponse.modifiedAt = n.getDateValue(); },
3847
3873
  "phoneIdentity": n => { leadResponse.phoneIdentity = n.getObjectValue(createLeadResponse_phoneIdentityFromDiscriminatorValue); },
3874
+ "processingStatus": n => { leadResponse.processingStatus = n.getEnumValue(LeadResponse_processingStatusObject); },
3875
+ "processingStatusChangedAt": n => { leadResponse.processingStatusChangedAt = n.getDateValue(); },
3876
+ "processingStatusReason": n => { leadResponse.processingStatusReason = n.getStringValue(); },
3848
3877
  "tags": n => { leadResponse.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
3849
3878
  };
3850
3879
  }
@@ -4041,6 +4070,9 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4041
4070
  "organization": n => { leadTableRow.organization = n.getObjectValue(createLeadTableRow_organizationFromDiscriminatorValue); },
4042
4071
  "phone": n => { leadTableRow.phone = n.getStringValue(); },
4043
4072
  "price": n => { leadTableRow.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4073
+ "processingStatus": n => { leadTableRow.processingStatus = n.getEnumValue(LeadTableRow_processingStatusObject); },
4074
+ "processingStatusChangedAt": n => { leadTableRow.processingStatusChangedAt = n.getDateValue(); },
4075
+ "processingStatusReason": n => { leadTableRow.processingStatusReason = n.getStringValue(); },
4044
4076
  "source": n => { leadTableRow.source = n.getObjectValue(createLeadTableRow_sourceFromDiscriminatorValue); },
4045
4077
  "status": n => { leadTableRow.status = n.getStringValue(); },
4046
4078
  "statusTone": n => { leadTableRow.statusTone = n.getStringValue(); },
@@ -5117,6 +5149,8 @@ export function deserializeIntoPhoneIdentityLookupAction(phoneIdentityLookupActi
5117
5149
  "id": n => { phoneIdentityLookupAction.id = n.getStringValue(); },
5118
5150
  "occurredAt": n => { phoneIdentityLookupAction.occurredAt = n.getDateValue(); },
5119
5151
  "provider": n => { phoneIdentityLookupAction.provider = n.getStringValue(); },
5152
+ "providerCostAmount": n => { phoneIdentityLookupAction.providerCostAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5153
+ "providerPricingVersion": n => { phoneIdentityLookupAction.providerPricingVersion = n.getStringValue(); },
5120
5154
  "status": n => { phoneIdentityLookupAction.status = n.getEnumValue(PhoneIdentityLookupActionStatusObject); },
5121
5155
  "type": n => { phoneIdentityLookupAction.type = n.getEnumValue(PhoneIdentityLookupActionTypeObject); },
5122
5156
  };
@@ -5947,6 +5981,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
5947
5981
  "costPerLead": n => { sourceResponse.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5948
5982
  "createdAt": n => { sourceResponse.createdAt = n.getDateValue(); },
5949
5983
  "createdByUser": n => { sourceResponse.createdByUser = n.getObjectValue(createSourceResponse_createdByUserFromDiscriminatorValue); },
5984
+ "createdByUserEmail": n => { sourceResponse.createdByUserEmail = n.getStringValue(); },
5950
5985
  "defaultTagIds": n => { sourceResponse.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
5951
5986
  "defaultTags": n => { sourceResponse.defaultTags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
5952
5987
  "description": n => { sourceResponse.description = n.getStringValue(); },
@@ -7108,6 +7143,21 @@ export function serializeAutomationConnection(writer, automationConnection = {},
7108
7143
  writer.writeStringValue("targetNodeId", automationConnection.targetNodeId);
7109
7144
  writer.writeAdditionalData(automationConnection.additionalData);
7110
7145
  }
7146
+ /**
7147
+ * Serializes information the current object
7148
+ * @param AutomationConsoleResponse The instance to serialize from.
7149
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7150
+ * @param writer Serialization writer to use to serialize this model
7151
+ */
7152
+ // @ts-ignore
7153
+ export function serializeAutomationConsoleResponse(writer, automationConsoleResponse = {}, isSerializingDerivedType = false) {
7154
+ if (!automationConsoleResponse || isSerializingDerivedType) {
7155
+ return;
7156
+ }
7157
+ writer.writeStringValue("automationId", automationConsoleResponse.automationId);
7158
+ writer.writeCollectionOfObjectValues("runs", automationConsoleResponse.runs, serializeAutomationWorkflowRunResponse);
7159
+ writer.writeAdditionalData(automationConsoleResponse.additionalData);
7160
+ }
7111
7161
  /**
7112
7162
  * Serializes information the current object
7113
7163
  * @param AutomationPreviewActionResult The instance to serialize from.
@@ -7602,7 +7652,9 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
7602
7652
  writer.writeStringValue("statusReason", callEventTableRow.statusReason);
7603
7653
  writer.writeStringValue("toPhoneNumber", callEventTableRow.toPhoneNumber);
7604
7654
  writer.writeStringValue("user", callEventTableRow.user);
7655
+ writer.writeStringValue("userEmail", callEventTableRow.userEmail);
7605
7656
  writer.writeStringValue("userId", callEventTableRow.userId);
7657
+ writer.writeStringValue("userName", callEventTableRow.userName);
7606
7658
  writer.writeAdditionalData(callEventTableRow.additionalData);
7607
7659
  }
7608
7660
  /**
@@ -8108,6 +8160,7 @@ export function serializeEventDetailResponse(writer, eventDetailResponse = {}, i
8108
8160
  writer.writeStringValue("toPhoneNumber", eventDetailResponse.toPhoneNumber);
8109
8161
  writer.writeDateValue("undeliverableAt", eventDetailResponse.undeliverableAt);
8110
8162
  writer.writeObjectValue("user", eventDetailResponse.user, serializeEventDetailResponse_user);
8163
+ writer.writeStringValue("userEmail", eventDetailResponse.userEmail);
8111
8164
  writer.writeStringValue("userId", eventDetailResponse.userId);
8112
8165
  writer.writeAdditionalData(eventDetailResponse.additionalData);
8113
8166
  }
@@ -8568,12 +8621,17 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
8568
8621
  writer.writeDateValue("createdAt", leadResponse.createdAt);
8569
8622
  writer.writeObjectValue("currentLeadStatus", leadResponse.currentLeadStatus, serializeLeadResponse_currentLeadStatus);
8570
8623
  writer.writeObjectValue("customer", leadResponse.customer, serializeLeadProfile);
8624
+ writer.writeDateValue("deletedAt", leadResponse.deletedAt);
8625
+ writer.writeStringValue("deletedByUserId", leadResponse.deletedByUserId);
8571
8626
  writer.writeBooleanValue("enabled", leadResponse.enabled);
8572
8627
  writer.writeStringValue("id", leadResponse.id);
8573
8628
  writer.writeBooleanValue("isArchived", leadResponse.isArchived);
8574
8629
  writer.writeObjectValue("metadata", leadResponse.metadata, serializeLeadMetadata);
8575
8630
  writer.writeDateValue("modifiedAt", leadResponse.modifiedAt);
8576
8631
  writer.writeObjectValue("phoneIdentity", leadResponse.phoneIdentity, serializeLeadResponse_phoneIdentity);
8632
+ writer.writeEnumValue("processingStatus", leadResponse.processingStatus);
8633
+ writer.writeDateValue("processingStatusChangedAt", leadResponse.processingStatusChangedAt);
8634
+ writer.writeStringValue("processingStatusReason", leadResponse.processingStatusReason);
8577
8635
  writer.writeCollectionOfObjectValues("tags", leadResponse.tags, serializeTagSummary);
8578
8636
  writer.writeAdditionalData(leadResponse.additionalData);
8579
8637
  }
@@ -8795,6 +8853,9 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8795
8853
  writer.writeObjectValue("organization", leadTableRow.organization, serializeLeadTableRow_organization);
8796
8854
  writer.writeStringValue("phone", leadTableRow.phone);
8797
8855
  writer.writeObjectValue("price", leadTableRow.price);
8856
+ writer.writeEnumValue("processingStatus", leadTableRow.processingStatus);
8857
+ writer.writeDateValue("processingStatusChangedAt", leadTableRow.processingStatusChangedAt);
8858
+ writer.writeStringValue("processingStatusReason", leadTableRow.processingStatusReason);
8798
8859
  writer.writeObjectValue("source", leadTableRow.source, serializeLeadTableRow_source);
8799
8860
  writer.writeStringValue("status", leadTableRow.status);
8800
8861
  writer.writeStringValue("statusTone", leadTableRow.statusTone);
@@ -10039,6 +10100,8 @@ export function serializePhoneIdentityLookupAction(writer, phoneIdentityLookupAc
10039
10100
  writer.writeStringValue("id", phoneIdentityLookupAction.id);
10040
10101
  writer.writeDateValue("occurredAt", phoneIdentityLookupAction.occurredAt);
10041
10102
  writer.writeStringValue("provider", phoneIdentityLookupAction.provider);
10103
+ writer.writeObjectValue("providerCostAmount", phoneIdentityLookupAction.providerCostAmount);
10104
+ writer.writeStringValue("providerPricingVersion", phoneIdentityLookupAction.providerPricingVersion);
10042
10105
  writer.writeEnumValue("status", phoneIdentityLookupAction.status);
10043
10106
  writer.writeEnumValue("type", phoneIdentityLookupAction.type);
10044
10107
  writer.writeAdditionalData(phoneIdentityLookupAction.additionalData);
@@ -11008,6 +11071,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
11008
11071
  writer.writeObjectValue("costPerLead", sourceResponse.costPerLead);
11009
11072
  writer.writeDateValue("createdAt", sourceResponse.createdAt);
11010
11073
  writer.writeObjectValue("createdByUser", sourceResponse.createdByUser, serializeSourceResponse_createdByUser);
11074
+ writer.writeStringValue("createdByUserEmail", sourceResponse.createdByUserEmail);
11011
11075
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceResponse.defaultTagIds);
11012
11076
  writer.writeCollectionOfObjectValues("defaultTags", sourceResponse.defaultTags, serializeTagSummary);
11013
11077
  writer.writeStringValue("description", sourceResponse.description);
@@ -12116,6 +12180,8 @@ export const BillableUnitObject = {
12116
12180
  Openai_operation: "openai_operation",
12117
12181
  Domain_registration: "domain_registration",
12118
12182
  OneZerodlc_application: "10dlc_application",
12183
+ OneZerodlc_campaign_month: "10dlc_campaign_month",
12184
+ Payment_processing_fee: "payment_processing_fee",
12119
12185
  Connection_action: "connection_action",
12120
12186
  Automation_run: "automation_run",
12121
12187
  };
@@ -12377,6 +12443,17 @@ export const LeadProfile_maritalStatusObject = {
12377
12443
  Separated: "Separated",
12378
12444
  Divorced: "Divorced",
12379
12445
  };
12446
+ /**
12447
+ * Defines the asynchronous verification and enrichment lifecycle for a lead.
12448
+ */
12449
+ export const LeadResponse_processingStatusObject = {
12450
+ Verifying: "Verifying",
12451
+ Validating: "Validating",
12452
+ Enriching: "Enriching",
12453
+ Ready: "Ready",
12454
+ Invalid: "Invalid",
12455
+ Failed: "Failed",
12456
+ };
12380
12457
  /**
12381
12458
  * Controlled lead status change categories used for reporting, automation, and analytics.
12382
12459
  */
@@ -12462,6 +12539,17 @@ export const LeadStatusRequest_categoryObject = {
12462
12539
  Invalid: "Invalid",
12463
12540
  Duplicate: "Duplicate",
12464
12541
  };
12542
+ /**
12543
+ * Defines the asynchronous verification and enrichment lifecycle for a lead.
12544
+ */
12545
+ export const LeadTableRow_processingStatusObject = {
12546
+ Verifying: "Verifying",
12547
+ Validating: "Validating",
12548
+ Enriching: "Enriching",
12549
+ Ready: "Ready",
12550
+ Invalid: "Invalid",
12551
+ Failed: "Failed",
12552
+ };
12465
12553
  /**
12466
12554
  * Defines the supported Notification Priority values.
12467
12555
  */
@@ -13117,6 +13205,8 @@ export const TransactionResponse_billableUnitObject = {
13117
13205
  Openai_operation: "openai_operation",
13118
13206
  Domain_registration: "domain_registration",
13119
13207
  OneZerodlc_application: "10dlc_application",
13208
+ OneZerodlc_campaign_month: "10dlc_campaign_month",
13209
+ Payment_processing_fee: "payment_processing_fee",
13120
13210
  Connection_action: "connection_action",
13121
13211
  Automation_run: "automation_run",
13122
13212
  };
@@ -13135,6 +13225,7 @@ export const TransactionResponse_billingChannelObject = {
13135
13225
  Openai: "openai",
13136
13226
  Domain: "domain",
13137
13227
  OneZerodlc: "10dlc",
13228
+ Payment: "payment",
13138
13229
  Connection: "connection",
13139
13230
  Automation: "automation",
13140
13231
  };
@@ -13163,6 +13254,8 @@ export const TransactionTableRow_billableUnitObject = {
13163
13254
  Openai_operation: "openai_operation",
13164
13255
  Domain_registration: "domain_registration",
13165
13256
  OneZerodlc_application: "10dlc_application",
13257
+ OneZerodlc_campaign_month: "10dlc_campaign_month",
13258
+ Payment_processing_fee: "payment_processing_fee",
13166
13259
  Connection_action: "connection_action",
13167
13260
  Automation_run: "automation_run",
13168
13261
  };
@@ -13181,6 +13274,7 @@ export const TransactionTableRow_billingChannelObject = {
13181
13274
  Openai: "openai",
13182
13275
  Domain: "domain",
13183
13276
  OneZerodlc: "10dlc",
13277
+ Payment: "payment",
13184
13278
  Connection: "connection",
13185
13279
  Automation: "automation",
13186
13280
  };
@@ -13207,6 +13301,7 @@ export const UsageChannelObject = {
13207
13301
  Openai: "openai",
13208
13302
  Domain: "domain",
13209
13303
  OneZerodlc: "10dlc",
13304
+ Payment: "payment",
13210
13305
  Connection: "connection",
13211
13306
  Automation: "automation",
13212
13307
  };