@leadping/sdk 1.0.127 → 1.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automations/index.d.ts +5 -0
- package/dist/automations/index.d.ts.map +1 -1
- package/dist/automations/index.js +5 -0
- package/dist/automations/index.js.map +1 -1
- package/dist/automations/item/index.d.ts +10 -0
- package/dist/automations/item/index.d.ts.map +1 -1
- package/dist/automations/item/index.js +10 -0
- package/dist/automations/item/index.js.map +1 -1
- package/dist/automations/item/leads/index.d.ts +22 -0
- package/dist/automations/item/leads/index.d.ts.map +1 -0
- package/dist/automations/item/leads/index.js +21 -0
- package/dist/automations/item/leads/index.js.map +1 -0
- package/dist/automations/item/leads/item/index.d.ts +20 -0
- package/dist/automations/item/leads/item/index.d.ts.map +1 -0
- package/dist/automations/item/leads/item/index.js +20 -0
- package/dist/automations/item/leads/item/index.js.map +1 -0
- package/dist/automations/item/leads/item/run/index.d.ts +22 -0
- package/dist/automations/item/leads/item/run/index.d.ts.map +1 -0
- package/dist/automations/item/leads/item/run/index.js +21 -0
- package/dist/automations/item/leads/item/run/index.js.map +1 -0
- package/dist/automations/item/leads/item/run/item/index.d.ts +31 -0
- package/dist/automations/item/leads/item/run/item/index.d.ts.map +1 -0
- package/dist/automations/item/leads/item/run/item/index.js +28 -0
- package/dist/automations/item/leads/item/run/item/index.js.map +1 -0
- package/dist/automations/item/runForAudience/index.d.ts +33 -0
- package/dist/automations/item/runForAudience/index.d.ts.map +1 -0
- package/dist/automations/item/runForAudience/index.js +31 -0
- package/dist/automations/item/runForAudience/index.js.map +1 -0
- package/dist/automations/leadAudience/index.d.ts +31 -0
- package/dist/automations/leadAudience/index.d.ts.map +1 -0
- package/dist/automations/leadAudience/index.js +28 -0
- package/dist/automations/leadAudience/index.js.map +1 -0
- package/dist/models/index.d.ts +113 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +96 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -156,6 +156,15 @@ export function createAutomationActionRunRecord_smsDeliveryFromDiscriminatorValu
|
|
|
156
156
|
export function createAutomationActionRunRecordFromDiscriminatorValue(parseNode) {
|
|
157
157
|
return deserializeIntoAutomationActionRunRecord;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
161
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
162
|
+
* @returns {AutomationAudienceRequest}
|
|
163
|
+
*/
|
|
164
|
+
// @ts-ignore
|
|
165
|
+
export function createAutomationAudienceRequestFromDiscriminatorValue(parseNode) {
|
|
166
|
+
return deserializeIntoAutomationAudienceRequest;
|
|
167
|
+
}
|
|
159
168
|
/**
|
|
160
169
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
161
170
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -201,6 +210,15 @@ export function createAutomationConnectionFromDiscriminatorValue(parseNode) {
|
|
|
201
210
|
export function createAutomationConsoleResponseFromDiscriminatorValue(parseNode) {
|
|
202
211
|
return deserializeIntoAutomationConsoleResponse;
|
|
203
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
215
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
216
|
+
* @returns {AutomationLeadAudience}
|
|
217
|
+
*/
|
|
218
|
+
// @ts-ignore
|
|
219
|
+
export function createAutomationLeadAudienceFromDiscriminatorValue(parseNode) {
|
|
220
|
+
return deserializeIntoAutomationLeadAudience;
|
|
221
|
+
}
|
|
204
222
|
/**
|
|
205
223
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
206
224
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3198,6 +3216,19 @@ export function deserializeIntoAutomationActionRunRecord_smsDelivery(automationA
|
|
|
3198
3216
|
...deserializeIntoAutomationSmsDeliveryRecord(automationActionRunRecord_smsDelivery),
|
|
3199
3217
|
};
|
|
3200
3218
|
}
|
|
3219
|
+
/**
|
|
3220
|
+
* The deserialization information for the current model
|
|
3221
|
+
* @param AutomationAudienceRequest The instance to deserialize into.
|
|
3222
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3223
|
+
*/
|
|
3224
|
+
// @ts-ignore
|
|
3225
|
+
export function deserializeIntoAutomationAudienceRequest(automationAudienceRequest = {}) {
|
|
3226
|
+
return {
|
|
3227
|
+
"audience": n => { automationAudienceRequest.audience = n.getObjectValue(createAutomationLeadAudienceFromDiscriminatorValue); },
|
|
3228
|
+
"excludedLeadIds": n => { automationAudienceRequest.excludedLeadIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
3229
|
+
"requestId": n => { automationAudienceRequest.requestId = n.getGuidValue(); },
|
|
3230
|
+
};
|
|
3231
|
+
}
|
|
3201
3232
|
/**
|
|
3202
3233
|
* The deserialization information for the current model
|
|
3203
3234
|
* @param AutomationCondition The instance to deserialize into.
|
|
@@ -3261,6 +3292,21 @@ export function deserializeIntoAutomationConsoleResponse(automationConsoleRespon
|
|
|
3261
3292
|
"runs": n => { automationConsoleResponse.runs = n.getCollectionOfObjectValues(createAutomationWorkflowRunResponseFromDiscriminatorValue); },
|
|
3262
3293
|
};
|
|
3263
3294
|
}
|
|
3295
|
+
/**
|
|
3296
|
+
* The deserialization information for the current model
|
|
3297
|
+
* @param AutomationLeadAudience The instance to deserialize into.
|
|
3298
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3299
|
+
*/
|
|
3300
|
+
// @ts-ignore
|
|
3301
|
+
export function deserializeIntoAutomationLeadAudience(automationLeadAudience = {}) {
|
|
3302
|
+
return {
|
|
3303
|
+
"assignedToUserId": n => { automationLeadAudience.assignedToUserId = n.getStringValue(); },
|
|
3304
|
+
"count": n => { automationLeadAudience.count = n.getNumberValue(); },
|
|
3305
|
+
"includeDemo": n => { automationLeadAudience.includeDemo = n.getBooleanValue(); },
|
|
3306
|
+
"organizationId": n => { automationLeadAudience.organizationId = n.getStringValue(); },
|
|
3307
|
+
"selectedAt": n => { automationLeadAudience.selectedAt = n.getDateValue(); },
|
|
3308
|
+
};
|
|
3309
|
+
}
|
|
3264
3310
|
/**
|
|
3265
3311
|
* The deserialization information for the current model
|
|
3266
3312
|
* @param AutomationLineage The instance to deserialize into.
|
|
@@ -3516,6 +3562,7 @@ export function deserializeIntoAutomationSmsDeliveryRecord(automationSmsDelivery
|
|
|
3516
3562
|
export function deserializeIntoAutomationTableRow(automationTableRow = {}) {
|
|
3517
3563
|
return {
|
|
3518
3564
|
"actionSummary": n => { automationTableRow.actionSummary = n.getStringValue(); },
|
|
3565
|
+
"canRunForLead": n => { automationTableRow.canRunForLead = n.getBooleanValue(); },
|
|
3519
3566
|
"conditionSummary": n => { automationTableRow.conditionSummary = n.getStringValue(); },
|
|
3520
3567
|
"createdByUserId": n => { automationTableRow.createdByUserId = n.getStringValue(); },
|
|
3521
3568
|
"description": n => { automationTableRow.description = n.getStringValue(); },
|
|
@@ -3928,6 +3975,7 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
3928
3975
|
"activeOutboundPhoneNumberId": n => { conversationResponse.activeOutboundPhoneNumberId = n.getStringValue(); },
|
|
3929
3976
|
"archivedAt": n => { conversationResponse.archivedAt = n.getDateValue(); },
|
|
3930
3977
|
"archiveReason": n => { conversationResponse.archiveReason = n.getNumberValue(); },
|
|
3978
|
+
"assignedToUserId": n => { conversationResponse.assignedToUserId = n.getStringValue(); },
|
|
3931
3979
|
"avatarUrl": n => { conversationResponse.avatarUrl = n.getStringValue(); },
|
|
3932
3980
|
"callRetryAt": n => { conversationResponse.callRetryAt = n.getDateValue(); },
|
|
3933
3981
|
"canCallNow": n => { conversationResponse.canCallNow = n.getBooleanValue(); },
|
|
@@ -3950,6 +3998,8 @@ export function deserializeIntoConversationResponse(conversationResponse = {}) {
|
|
|
3950
3998
|
"lastName": n => { conversationResponse.lastName = n.getStringValue(); },
|
|
3951
3999
|
"lastSnippet": n => { conversationResponse.lastSnippet = n.getStringValue(); },
|
|
3952
4000
|
"lastSnippetAt": n => { conversationResponse.lastSnippetAt = n.getDateValue(); },
|
|
4001
|
+
"leadCreatedAt": n => { conversationResponse.leadCreatedAt = n.getDateValue(); },
|
|
4002
|
+
"leadEnabled": n => { conversationResponse.leadEnabled = n.getBooleanValue(); },
|
|
3953
4003
|
"leadId": n => { conversationResponse.leadId = n.getStringValue(); },
|
|
3954
4004
|
"leadPhoneNumber": n => { conversationResponse.leadPhoneNumber = n.getStringValue(); },
|
|
3955
4005
|
"needsReply": n => { conversationResponse.needsReply = n.getBooleanValue(); },
|
|
@@ -5139,6 +5189,7 @@ export function deserializeIntoLeadResponse(leadResponse = {}) {
|
|
|
5139
5189
|
"deletedAt": n => { leadResponse.deletedAt = n.getDateValue(); },
|
|
5140
5190
|
"deletedByUserId": n => { leadResponse.deletedByUserId = n.getStringValue(); },
|
|
5141
5191
|
"enabled": n => { leadResponse.enabled = n.getBooleanValue(); },
|
|
5192
|
+
"hasSourceSmsConsent": n => { leadResponse.hasSourceSmsConsent = n.getBooleanValue(); },
|
|
5142
5193
|
"id": n => { leadResponse.id = n.getStringValue(); },
|
|
5143
5194
|
"inquiry": n => { leadResponse.inquiry = n.getObjectValue(createLeadResponse_inquiryFromDiscriminatorValue); },
|
|
5144
5195
|
"isArchived": n => { leadResponse.isArchived = n.getBooleanValue(); },
|
|
@@ -7495,6 +7546,7 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
|
|
|
7495
7546
|
"defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
|
|
7496
7547
|
"description": n => { sourceRequest.description = n.getStringValue(); },
|
|
7497
7548
|
"name": n => { sourceRequest.name = n.getStringValue(); },
|
|
7549
|
+
"normalizeIncomingData": n => { sourceRequest.normalizeIncomingData = n.getBooleanValue(); },
|
|
7498
7550
|
"requiresTrustedForm": n => { sourceRequest.requiresTrustedForm = n.getBooleanValue(); },
|
|
7499
7551
|
};
|
|
7500
7552
|
}
|
|
@@ -7527,6 +7579,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
|
|
|
7527
7579
|
"modifiedAt": n => { sourceResponse.modifiedAt = n.getDateValue(); },
|
|
7528
7580
|
"modifiedByUser": n => { sourceResponse.modifiedByUser = n.getObjectValue(createSourceResponse_modifiedByUserFromDiscriminatorValue); },
|
|
7529
7581
|
"name": n => { sourceResponse.name = n.getStringValue(); },
|
|
7582
|
+
"normalizeIncomingData": n => { sourceResponse.normalizeIncomingData = n.getBooleanValue(); },
|
|
7530
7583
|
"organization": n => { sourceResponse.organization = n.getObjectValue(createSourceResponse_organizationFromDiscriminatorValue); },
|
|
7531
7584
|
"requiresTrustedForm": n => { sourceResponse.requiresTrustedForm = n.getBooleanValue(); },
|
|
7532
7585
|
"user": n => { sourceResponse.user = n.getObjectValue(createSourceResponse_userFromDiscriminatorValue); },
|
|
@@ -7605,6 +7658,7 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
|
|
|
7605
7658
|
"modifiedAt": n => { sourceTableRow.modifiedAt = n.getDateValue(); },
|
|
7606
7659
|
"modifiedByUser": n => { sourceTableRow.modifiedByUser = n.getObjectValue(createSourceTableRow_modifiedByUserFromDiscriminatorValue); },
|
|
7607
7660
|
"name": n => { sourceTableRow.name = n.getStringValue(); },
|
|
7661
|
+
"normalizeIncomingData": n => { sourceTableRow.normalizeIncomingData = n.getBooleanValue(); },
|
|
7608
7662
|
"organization": n => { sourceTableRow.organization = n.getObjectValue(createSourceTableRow_organizationFromDiscriminatorValue); },
|
|
7609
7663
|
"organizationId": n => { sourceTableRow.organizationId = n.getStringValue(); },
|
|
7610
7664
|
"requiresTrustedForm": n => { sourceTableRow.requiresTrustedForm = n.getBooleanValue(); },
|
|
@@ -8794,6 +8848,22 @@ export function serializeAutomationActionRunRecord_smsDelivery(writer, automatio
|
|
|
8794
8848
|
}
|
|
8795
8849
|
serializeAutomationSmsDeliveryRecord(writer, automationActionRunRecord_smsDelivery, isSerializingDerivedType);
|
|
8796
8850
|
}
|
|
8851
|
+
/**
|
|
8852
|
+
* Serializes information the current object
|
|
8853
|
+
* @param AutomationAudienceRequest The instance to serialize from.
|
|
8854
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8855
|
+
* @param writer Serialization writer to use to serialize this model
|
|
8856
|
+
*/
|
|
8857
|
+
// @ts-ignore
|
|
8858
|
+
export function serializeAutomationAudienceRequest(writer, automationAudienceRequest = {}, isSerializingDerivedType = false) {
|
|
8859
|
+
if (!automationAudienceRequest || isSerializingDerivedType) {
|
|
8860
|
+
return;
|
|
8861
|
+
}
|
|
8862
|
+
writer.writeObjectValue("audience", automationAudienceRequest.audience, serializeAutomationLeadAudience);
|
|
8863
|
+
writer.writeCollectionOfPrimitiveValues("excludedLeadIds", automationAudienceRequest.excludedLeadIds);
|
|
8864
|
+
writer.writeGuidValue("requestId", automationAudienceRequest.requestId);
|
|
8865
|
+
writer.writeAdditionalData(automationAudienceRequest.additionalData);
|
|
8866
|
+
}
|
|
8797
8867
|
/**
|
|
8798
8868
|
* Serializes information the current object
|
|
8799
8869
|
* @param AutomationCondition The instance to serialize from.
|
|
@@ -8873,6 +8943,24 @@ export function serializeAutomationConsoleResponse(writer, automationConsoleResp
|
|
|
8873
8943
|
writer.writeCollectionOfObjectValues("runs", automationConsoleResponse.runs, serializeAutomationWorkflowRunResponse);
|
|
8874
8944
|
writer.writeAdditionalData(automationConsoleResponse.additionalData);
|
|
8875
8945
|
}
|
|
8946
|
+
/**
|
|
8947
|
+
* Serializes information the current object
|
|
8948
|
+
* @param AutomationLeadAudience The instance to serialize from.
|
|
8949
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8950
|
+
* @param writer Serialization writer to use to serialize this model
|
|
8951
|
+
*/
|
|
8952
|
+
// @ts-ignore
|
|
8953
|
+
export function serializeAutomationLeadAudience(writer, automationLeadAudience = {}, isSerializingDerivedType = false) {
|
|
8954
|
+
if (!automationLeadAudience || isSerializingDerivedType) {
|
|
8955
|
+
return;
|
|
8956
|
+
}
|
|
8957
|
+
writer.writeStringValue("assignedToUserId", automationLeadAudience.assignedToUserId);
|
|
8958
|
+
writer.writeNumberValue("count", automationLeadAudience.count);
|
|
8959
|
+
writer.writeBooleanValue("includeDemo", automationLeadAudience.includeDemo);
|
|
8960
|
+
writer.writeStringValue("organizationId", automationLeadAudience.organizationId);
|
|
8961
|
+
writer.writeDateValue("selectedAt", automationLeadAudience.selectedAt);
|
|
8962
|
+
writer.writeAdditionalData(automationLeadAudience.additionalData);
|
|
8963
|
+
}
|
|
8876
8964
|
/**
|
|
8877
8965
|
* Serializes information the current object
|
|
8878
8966
|
* @param AutomationLineage The instance to serialize from.
|
|
@@ -9175,6 +9263,7 @@ export function serializeAutomationTableRow(writer, automationTableRow = {}, isS
|
|
|
9175
9263
|
return;
|
|
9176
9264
|
}
|
|
9177
9265
|
writer.writeStringValue("actionSummary", automationTableRow.actionSummary);
|
|
9266
|
+
writer.writeBooleanValue("canRunForLead", automationTableRow.canRunForLead);
|
|
9178
9267
|
writer.writeStringValue("conditionSummary", automationTableRow.conditionSummary);
|
|
9179
9268
|
writer.writeStringValue("createdByUserId", automationTableRow.createdByUserId);
|
|
9180
9269
|
writer.writeStringValue("description", automationTableRow.description);
|
|
@@ -9651,6 +9740,7 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9651
9740
|
writer.writeStringValue("activeOutboundPhoneNumberId", conversationResponse.activeOutboundPhoneNumberId);
|
|
9652
9741
|
writer.writeDateValue("archivedAt", conversationResponse.archivedAt);
|
|
9653
9742
|
writer.writeNumberValue("archiveReason", conversationResponse.archiveReason);
|
|
9743
|
+
writer.writeStringValue("assignedToUserId", conversationResponse.assignedToUserId);
|
|
9654
9744
|
writer.writeStringValue("avatarUrl", conversationResponse.avatarUrl);
|
|
9655
9745
|
writer.writeDateValue("callRetryAt", conversationResponse.callRetryAt);
|
|
9656
9746
|
writer.writeBooleanValue("canCallNow", conversationResponse.canCallNow);
|
|
@@ -9673,6 +9763,8 @@ export function serializeConversationResponse(writer, conversationResponse = {},
|
|
|
9673
9763
|
writer.writeStringValue("lastName", conversationResponse.lastName);
|
|
9674
9764
|
writer.writeStringValue("lastSnippet", conversationResponse.lastSnippet);
|
|
9675
9765
|
writer.writeDateValue("lastSnippetAt", conversationResponse.lastSnippetAt);
|
|
9766
|
+
writer.writeDateValue("leadCreatedAt", conversationResponse.leadCreatedAt);
|
|
9767
|
+
writer.writeBooleanValue("leadEnabled", conversationResponse.leadEnabled);
|
|
9676
9768
|
writer.writeStringValue("leadId", conversationResponse.leadId);
|
|
9677
9769
|
writer.writeStringValue("leadPhoneNumber", conversationResponse.leadPhoneNumber);
|
|
9678
9770
|
writer.writeBooleanValue("needsReply", conversationResponse.needsReply);
|
|
@@ -11052,6 +11144,7 @@ export function serializeLeadResponse(writer, leadResponse = {}, isSerializingDe
|
|
|
11052
11144
|
writer.writeDateValue("deletedAt", leadResponse.deletedAt);
|
|
11053
11145
|
writer.writeStringValue("deletedByUserId", leadResponse.deletedByUserId);
|
|
11054
11146
|
writer.writeBooleanValue("enabled", leadResponse.enabled);
|
|
11147
|
+
writer.writeBooleanValue("hasSourceSmsConsent", leadResponse.hasSourceSmsConsent);
|
|
11055
11148
|
writer.writeStringValue("id", leadResponse.id);
|
|
11056
11149
|
writer.writeObjectValue("inquiry", leadResponse.inquiry, serializeLeadResponse_inquiry);
|
|
11057
11150
|
writer.writeBooleanValue("isArchived", leadResponse.isArchived);
|
|
@@ -13787,6 +13880,7 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
|
|
|
13787
13880
|
writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
|
|
13788
13881
|
writer.writeStringValue("description", sourceRequest.description);
|
|
13789
13882
|
writer.writeStringValue("name", sourceRequest.name);
|
|
13883
|
+
writer.writeBooleanValue("normalizeIncomingData", sourceRequest.normalizeIncomingData);
|
|
13790
13884
|
writer.writeBooleanValue("requiresTrustedForm", sourceRequest.requiresTrustedForm);
|
|
13791
13885
|
writer.writeAdditionalData(sourceRequest.additionalData);
|
|
13792
13886
|
}
|
|
@@ -13822,6 +13916,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
|
|
|
13822
13916
|
writer.writeDateValue("modifiedAt", sourceResponse.modifiedAt);
|
|
13823
13917
|
writer.writeObjectValue("modifiedByUser", sourceResponse.modifiedByUser, serializeSourceResponse_modifiedByUser);
|
|
13824
13918
|
writer.writeStringValue("name", sourceResponse.name);
|
|
13919
|
+
writer.writeBooleanValue("normalizeIncomingData", sourceResponse.normalizeIncomingData);
|
|
13825
13920
|
writer.writeObjectValue("organization", sourceResponse.organization, serializeSourceResponse_organization);
|
|
13826
13921
|
writer.writeBooleanValue("requiresTrustedForm", sourceResponse.requiresTrustedForm);
|
|
13827
13922
|
writer.writeObjectValue("user", sourceResponse.user, serializeSourceResponse_user);
|
|
@@ -13911,6 +14006,7 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
|
|
|
13911
14006
|
writer.writeDateValue("modifiedAt", sourceTableRow.modifiedAt);
|
|
13912
14007
|
writer.writeObjectValue("modifiedByUser", sourceTableRow.modifiedByUser, serializeSourceTableRow_modifiedByUser);
|
|
13913
14008
|
writer.writeStringValue("name", sourceTableRow.name);
|
|
14009
|
+
writer.writeBooleanValue("normalizeIncomingData", sourceTableRow.normalizeIncomingData);
|
|
13914
14010
|
writer.writeObjectValue("organization", sourceTableRow.organization, serializeSourceTableRow_organization);
|
|
13915
14011
|
writer.writeStringValue("organizationId", sourceTableRow.organizationId);
|
|
13916
14012
|
writer.writeBooleanValue("requiresTrustedForm", sourceTableRow.requiresTrustedForm);
|