@leadping/sdk 1.0.144 → 1.0.145
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/item/clone/index.d.ts +33 -0
- package/dist/automations/item/clone/index.d.ts.map +1 -0
- package/dist/automations/item/clone/index.js +31 -0
- package/dist/automations/item/clone/index.js.map +1 -0
- package/dist/automations/item/index.d.ts +5 -0
- package/dist/automations/item/index.d.ts.map +1 -1
- package/dist/automations/item/index.js +5 -0
- package/dist/automations/item/index.js.map +1 -1
- package/dist/models/index.d.ts +74 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +58 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -543,6 +543,15 @@ export function createCallRetryRequestFromDiscriminatorValue(parseNode) {
|
|
|
543
543
|
export function createChangeBillingPlanRequestFromDiscriminatorValue(parseNode) {
|
|
544
544
|
return deserializeIntoChangeBillingPlanRequest;
|
|
545
545
|
}
|
|
546
|
+
/**
|
|
547
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
548
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
549
|
+
* @returns {CloneAutomationRequest}
|
|
550
|
+
*/
|
|
551
|
+
// @ts-ignore
|
|
552
|
+
export function createCloneAutomationRequestFromDiscriminatorValue(parseNode) {
|
|
553
|
+
return deserializeIntoCloneAutomationRequest;
|
|
554
|
+
}
|
|
546
555
|
/**
|
|
547
556
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
548
557
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3203,6 +3212,7 @@ export function deserializeIntoAppointmentResponse(appointmentResponse = {}) {
|
|
|
3203
3212
|
// @ts-ignore
|
|
3204
3213
|
export function deserializeIntoAutomationAction(automationAction = {}) {
|
|
3205
3214
|
return {
|
|
3215
|
+
"displayName": n => { automationAction.displayName = n.getStringValue(); },
|
|
3206
3216
|
"id": n => { automationAction.id = n.getStringValue(); },
|
|
3207
3217
|
"isEnabled": n => { automationAction.isEnabled = n.getBooleanValue(); },
|
|
3208
3218
|
"order": n => { automationAction.order = n.getNumberValue(); },
|
|
@@ -3279,6 +3289,7 @@ export function deserializeIntoAutomationCondition(automationCondition = {}) {
|
|
|
3279
3289
|
"id": n => { automationCondition.id = n.getStringValue(); },
|
|
3280
3290
|
"isEnabled": n => { automationCondition.isEnabled = n.getBooleanValue(); },
|
|
3281
3291
|
"operator": n => { automationCondition.operator = n.getStringValue(); },
|
|
3292
|
+
"priority": n => { automationCondition.priority = n.getNumberValue(); },
|
|
3282
3293
|
"settings": n => { automationCondition.settings = n.getObjectValue(createAutomationCondition_settingsFromDiscriminatorValue); },
|
|
3283
3294
|
"type": n => { automationCondition.type = n.getStringValue(); },
|
|
3284
3295
|
};
|
|
@@ -3398,6 +3409,9 @@ export function deserializeIntoAutomationPreviewConditionResult(automationPrevie
|
|
|
3398
3409
|
export function deserializeIntoAutomationPreviewRequest(automationPreviewRequest = {}) {
|
|
3399
3410
|
return {
|
|
3400
3411
|
"automation": n => { automationPreviewRequest.automation = n.getObjectValue(createAutomationRequestSnapshotFromDiscriminatorValue); },
|
|
3412
|
+
"decisionActionId": n => { automationPreviewRequest.decisionActionId = n.getStringValue(); },
|
|
3413
|
+
"exampleReply": n => { automationPreviewRequest.exampleReply = n.getStringValue(); },
|
|
3414
|
+
"previousMessage": n => { automationPreviewRequest.previousMessage = n.getStringValue(); },
|
|
3401
3415
|
"triggerType": n => { automationPreviewRequest.triggerType = n.getStringValue(); },
|
|
3402
3416
|
};
|
|
3403
3417
|
}
|
|
@@ -3412,6 +3426,7 @@ export function deserializeIntoAutomationPreviewResponse(automationPreviewRespon
|
|
|
3412
3426
|
"actionResults": n => { automationPreviewResponse.actionResults = n.getCollectionOfObjectValues(createAutomationPreviewActionResultFromDiscriminatorValue); },
|
|
3413
3427
|
"conditionResults": n => { automationPreviewResponse.conditionResults = n.getCollectionOfObjectValues(createAutomationPreviewConditionResultFromDiscriminatorValue); },
|
|
3414
3428
|
"samplePayload": n => { automationPreviewResponse.samplePayload = n.getObjectValue(createAutomationPreviewResponse_samplePayloadFromDiscriminatorValue); },
|
|
3429
|
+
"selectedConnectionId": n => { automationPreviewResponse.selectedConnectionId = n.getStringValue(); },
|
|
3415
3430
|
"triggerType": n => { automationPreviewResponse.triggerType = n.getStringValue(); },
|
|
3416
3431
|
"validation": n => { automationPreviewResponse.validation = n.getObjectValue(createAutomationValidationResultFromDiscriminatorValue); },
|
|
3417
3432
|
"warnings": n => { automationPreviewResponse.warnings = n.getCollectionOfPrimitiveValues("string"); },
|
|
@@ -3442,6 +3457,7 @@ export function deserializeIntoAutomationRequest(automationRequest = {}) {
|
|
|
3442
3457
|
"id": n => { automationRequest.id = n.getStringValue(); },
|
|
3443
3458
|
"name": n => { automationRequest.name = n.getStringValue(); },
|
|
3444
3459
|
"scope": n => { automationRequest.scope = n.getStringValue(); },
|
|
3460
|
+
"stopOnReply": n => { automationRequest.stopOnReply = n.getBooleanValue(); },
|
|
3445
3461
|
"timeZoneId": n => { automationRequest.timeZoneId = n.getStringValue(); },
|
|
3446
3462
|
"triggers": n => { automationRequest.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
|
|
3447
3463
|
"version": n => { automationRequest.version = n.getNumberValue(); },
|
|
@@ -3468,6 +3484,7 @@ export function deserializeIntoAutomationRequestSnapshot(automationRequestSnapsh
|
|
|
3468
3484
|
"name": n => { automationRequestSnapshot.name = n.getStringValue(); },
|
|
3469
3485
|
"organizationId": n => { automationRequestSnapshot.organizationId = n.getStringValue(); },
|
|
3470
3486
|
"scope": n => { automationRequestSnapshot.scope = n.getStringValue(); },
|
|
3487
|
+
"stopOnReply": n => { automationRequestSnapshot.stopOnReply = n.getBooleanValue(); },
|
|
3471
3488
|
"timeZoneId": n => { automationRequestSnapshot.timeZoneId = n.getStringValue(); },
|
|
3472
3489
|
"triggers": n => { automationRequestSnapshot.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
|
|
3473
3490
|
"visibility": n => { automationRequestSnapshot.visibility = n.getStringValue(); },
|
|
@@ -3500,6 +3517,7 @@ export function deserializeIntoAutomationResponse(automationResponse = {}) {
|
|
|
3500
3517
|
"organizationId": n => { automationResponse.organizationId = n.getStringValue(); },
|
|
3501
3518
|
"scheduleStartedAt": n => { automationResponse.scheduleStartedAt = n.getDateValue(); },
|
|
3502
3519
|
"scope": n => { automationResponse.scope = n.getStringValue(); },
|
|
3520
|
+
"stopOnReply": n => { automationResponse.stopOnReply = n.getBooleanValue(); },
|
|
3503
3521
|
"timeZoneId": n => { automationResponse.timeZoneId = n.getStringValue(); },
|
|
3504
3522
|
"triggers": n => { automationResponse.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
|
|
3505
3523
|
"user": n => { automationResponse.user = n.getObjectValue(createAutomationResponse_userFromDiscriminatorValue); },
|
|
@@ -3549,9 +3567,11 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
|
|
|
3549
3567
|
"leadId": n => { automationRunRecord.leadId = n.getStringValue(); },
|
|
3550
3568
|
"organizationId": n => { automationRunRecord.organizationId = n.getStringValue(); },
|
|
3551
3569
|
"processingAttempts": n => { automationRunRecord.processingAttempts = n.getNumberValue(); },
|
|
3570
|
+
"replyEventId": n => { automationRunRecord.replyEventId = n.getStringValue(); },
|
|
3552
3571
|
"skippedReason": n => { automationRunRecord.skippedReason = n.getStringValue(); },
|
|
3553
3572
|
"startedAt": n => { automationRunRecord.startedAt = n.getDateValue(); },
|
|
3554
3573
|
"status": n => { automationRunRecord.status = n.getStringValue(); },
|
|
3574
|
+
"stopOnReply": n => { automationRunRecord.stopOnReply = n.getBooleanValue(); },
|
|
3555
3575
|
"triggerId": n => { automationRunRecord.triggerId = n.getStringValue(); },
|
|
3556
3576
|
"triggerType": n => { automationRunRecord.triggerType = n.getStringValue(); },
|
|
3557
3577
|
};
|
|
@@ -3772,6 +3792,7 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
|
|
|
3772
3792
|
"nextExecutionAt": n => { automationWorkflowRunResponse.nextExecutionAt = n.getDateValue(); },
|
|
3773
3793
|
"nextRetryAt": n => { automationWorkflowRunResponse.nextRetryAt = n.getDateValue(); },
|
|
3774
3794
|
"organizationId": n => { automationWorkflowRunResponse.organizationId = n.getStringValue(); },
|
|
3795
|
+
"replyEventId": n => { automationWorkflowRunResponse.replyEventId = n.getStringValue(); },
|
|
3775
3796
|
"retryCount": n => { automationWorkflowRunResponse.retryCount = n.getNumberValue(); },
|
|
3776
3797
|
"skipReasonCode": n => { automationWorkflowRunResponse.skipReasonCode = n.getStringValue(); },
|
|
3777
3798
|
"skipReasonDisplay": n => { automationWorkflowRunResponse.skipReasonDisplay = n.getStringValue(); },
|
|
@@ -3963,6 +3984,17 @@ export function deserializeIntoChangeBillingPlanRequest(changeBillingPlanRequest
|
|
|
3963
3984
|
"billingPlan": n => { changeBillingPlanRequest.billingPlan = n.getEnumValue(BillingPlanObject); },
|
|
3964
3985
|
};
|
|
3965
3986
|
}
|
|
3987
|
+
/**
|
|
3988
|
+
* The deserialization information for the current model
|
|
3989
|
+
* @param CloneAutomationRequest The instance to deserialize into.
|
|
3990
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3991
|
+
*/
|
|
3992
|
+
// @ts-ignore
|
|
3993
|
+
export function deserializeIntoCloneAutomationRequest(cloneAutomationRequest = {}) {
|
|
3994
|
+
return {
|
|
3995
|
+
"name": n => { cloneAutomationRequest.name = n.getStringValue(); },
|
|
3996
|
+
};
|
|
3997
|
+
}
|
|
3966
3998
|
/**
|
|
3967
3999
|
* The deserialization information for the current model
|
|
3968
4000
|
* @param CommunicationConsoleEntry The instance to deserialize into.
|
|
@@ -8895,6 +8927,7 @@ export function serializeAutomationAction(writer, automationAction = {}, isSeria
|
|
|
8895
8927
|
if (!automationAction || isSerializingDerivedType) {
|
|
8896
8928
|
return;
|
|
8897
8929
|
}
|
|
8930
|
+
writer.writeStringValue("displayName", automationAction.displayName);
|
|
8898
8931
|
writer.writeStringValue("id", automationAction.id);
|
|
8899
8932
|
writer.writeBooleanValue("isEnabled", automationAction.isEnabled);
|
|
8900
8933
|
writer.writeNumberValue("order", automationAction.order);
|
|
@@ -8986,6 +9019,7 @@ export function serializeAutomationCondition(writer, automationCondition = {}, i
|
|
|
8986
9019
|
writer.writeStringValue("id", automationCondition.id);
|
|
8987
9020
|
writer.writeBooleanValue("isEnabled", automationCondition.isEnabled);
|
|
8988
9021
|
writer.writeStringValue("operator", automationCondition.operator);
|
|
9022
|
+
writer.writeNumberValue("priority", automationCondition.priority);
|
|
8989
9023
|
writer.writeObjectValue("settings", automationCondition.settings, serializeAutomationCondition_settings);
|
|
8990
9024
|
writer.writeStringValue("type", automationCondition.type);
|
|
8991
9025
|
writer.writeAdditionalData(automationCondition.additionalData);
|
|
@@ -9133,6 +9167,9 @@ export function serializeAutomationPreviewRequest(writer, automationPreviewReque
|
|
|
9133
9167
|
return;
|
|
9134
9168
|
}
|
|
9135
9169
|
writer.writeObjectValue("automation", automationPreviewRequest.automation, serializeAutomationRequestSnapshot);
|
|
9170
|
+
writer.writeStringValue("decisionActionId", automationPreviewRequest.decisionActionId);
|
|
9171
|
+
writer.writeStringValue("exampleReply", automationPreviewRequest.exampleReply);
|
|
9172
|
+
writer.writeStringValue("previousMessage", automationPreviewRequest.previousMessage);
|
|
9136
9173
|
writer.writeStringValue("triggerType", automationPreviewRequest.triggerType);
|
|
9137
9174
|
writer.writeAdditionalData(automationPreviewRequest.additionalData);
|
|
9138
9175
|
}
|
|
@@ -9150,6 +9187,7 @@ export function serializeAutomationPreviewResponse(writer, automationPreviewResp
|
|
|
9150
9187
|
writer.writeCollectionOfObjectValues("actionResults", automationPreviewResponse.actionResults, serializeAutomationPreviewActionResult);
|
|
9151
9188
|
writer.writeCollectionOfObjectValues("conditionResults", automationPreviewResponse.conditionResults, serializeAutomationPreviewConditionResult);
|
|
9152
9189
|
writer.writeObjectValue("samplePayload", automationPreviewResponse.samplePayload, serializeAutomationPreviewResponse_samplePayload);
|
|
9190
|
+
writer.writeStringValue("selectedConnectionId", automationPreviewResponse.selectedConnectionId);
|
|
9153
9191
|
writer.writeStringValue("triggerType", automationPreviewResponse.triggerType);
|
|
9154
9192
|
writer.writeObjectValue("validation", automationPreviewResponse.validation, serializeAutomationValidationResult);
|
|
9155
9193
|
writer.writeCollectionOfPrimitiveValues("warnings", automationPreviewResponse.warnings);
|
|
@@ -9187,6 +9225,7 @@ export function serializeAutomationRequest(writer, automationRequest = {}, isSer
|
|
|
9187
9225
|
writer.writeStringValue("id", automationRequest.id);
|
|
9188
9226
|
writer.writeStringValue("name", automationRequest.name);
|
|
9189
9227
|
writer.writeStringValue("scope", automationRequest.scope);
|
|
9228
|
+
writer.writeBooleanValue("stopOnReply", automationRequest.stopOnReply);
|
|
9190
9229
|
writer.writeStringValue("timeZoneId", automationRequest.timeZoneId);
|
|
9191
9230
|
writer.writeCollectionOfObjectValues("triggers", automationRequest.triggers, serializeAutomationTrigger);
|
|
9192
9231
|
writer.writeNumberValue("version", automationRequest.version);
|
|
@@ -9216,6 +9255,7 @@ export function serializeAutomationRequestSnapshot(writer, automationRequestSnap
|
|
|
9216
9255
|
writer.writeStringValue("name", automationRequestSnapshot.name);
|
|
9217
9256
|
writer.writeStringValue("organizationId", automationRequestSnapshot.organizationId);
|
|
9218
9257
|
writer.writeStringValue("scope", automationRequestSnapshot.scope);
|
|
9258
|
+
writer.writeBooleanValue("stopOnReply", automationRequestSnapshot.stopOnReply);
|
|
9219
9259
|
writer.writeStringValue("timeZoneId", automationRequestSnapshot.timeZoneId);
|
|
9220
9260
|
writer.writeCollectionOfObjectValues("triggers", automationRequestSnapshot.triggers, serializeAutomationTrigger);
|
|
9221
9261
|
writer.writeStringValue("visibility", automationRequestSnapshot.visibility);
|
|
@@ -9251,6 +9291,7 @@ export function serializeAutomationResponse(writer, automationResponse = {}, isS
|
|
|
9251
9291
|
writer.writeStringValue("organizationId", automationResponse.organizationId);
|
|
9252
9292
|
writer.writeDateValue("scheduleStartedAt", automationResponse.scheduleStartedAt);
|
|
9253
9293
|
writer.writeStringValue("scope", automationResponse.scope);
|
|
9294
|
+
writer.writeBooleanValue("stopOnReply", automationResponse.stopOnReply);
|
|
9254
9295
|
writer.writeStringValue("timeZoneId", automationResponse.timeZoneId);
|
|
9255
9296
|
writer.writeCollectionOfObjectValues("triggers", automationResponse.triggers, serializeAutomationTrigger);
|
|
9256
9297
|
writer.writeObjectValue("user", automationResponse.user, serializeAutomationResponse_user);
|
|
@@ -9307,9 +9348,11 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
|
|
|
9307
9348
|
writer.writeStringValue("leadId", automationRunRecord.leadId);
|
|
9308
9349
|
writer.writeStringValue("organizationId", automationRunRecord.organizationId);
|
|
9309
9350
|
writer.writeNumberValue("processingAttempts", automationRunRecord.processingAttempts);
|
|
9351
|
+
writer.writeStringValue("replyEventId", automationRunRecord.replyEventId);
|
|
9310
9352
|
writer.writeStringValue("skippedReason", automationRunRecord.skippedReason);
|
|
9311
9353
|
writer.writeDateValue("startedAt", automationRunRecord.startedAt);
|
|
9312
9354
|
writer.writeStringValue("status", automationRunRecord.status);
|
|
9355
|
+
writer.writeBooleanValue("stopOnReply", automationRunRecord.stopOnReply);
|
|
9313
9356
|
writer.writeStringValue("triggerId", automationRunRecord.triggerId);
|
|
9314
9357
|
writer.writeStringValue("triggerType", automationRunRecord.triggerType);
|
|
9315
9358
|
writer.writeAdditionalData(automationRunRecord.additionalData);
|
|
@@ -9567,6 +9610,7 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
|
|
|
9567
9610
|
writer.writeDateValue("nextExecutionAt", automationWorkflowRunResponse.nextExecutionAt);
|
|
9568
9611
|
writer.writeDateValue("nextRetryAt", automationWorkflowRunResponse.nextRetryAt);
|
|
9569
9612
|
writer.writeStringValue("organizationId", automationWorkflowRunResponse.organizationId);
|
|
9613
|
+
writer.writeStringValue("replyEventId", automationWorkflowRunResponse.replyEventId);
|
|
9570
9614
|
writer.writeNumberValue("retryCount", automationWorkflowRunResponse.retryCount);
|
|
9571
9615
|
writer.writeStringValue("skipReasonCode", automationWorkflowRunResponse.skipReasonCode);
|
|
9572
9616
|
writer.writeStringValue("skipReasonDisplay", automationWorkflowRunResponse.skipReasonDisplay);
|
|
@@ -9786,6 +9830,20 @@ export function serializeChangeBillingPlanRequest(writer, changeBillingPlanReque
|
|
|
9786
9830
|
writer.writeEnumValue("billingPlan", changeBillingPlanRequest.billingPlan);
|
|
9787
9831
|
writer.writeAdditionalData(changeBillingPlanRequest.additionalData);
|
|
9788
9832
|
}
|
|
9833
|
+
/**
|
|
9834
|
+
* Serializes information the current object
|
|
9835
|
+
* @param CloneAutomationRequest The instance to serialize from.
|
|
9836
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
9837
|
+
* @param writer Serialization writer to use to serialize this model
|
|
9838
|
+
*/
|
|
9839
|
+
// @ts-ignore
|
|
9840
|
+
export function serializeCloneAutomationRequest(writer, cloneAutomationRequest = {}, isSerializingDerivedType = false) {
|
|
9841
|
+
if (!cloneAutomationRequest || isSerializingDerivedType) {
|
|
9842
|
+
return;
|
|
9843
|
+
}
|
|
9844
|
+
writer.writeStringValue("name", cloneAutomationRequest.name);
|
|
9845
|
+
writer.writeAdditionalData(cloneAutomationRequest.additionalData);
|
|
9846
|
+
}
|
|
9789
9847
|
/**
|
|
9790
9848
|
* Serializes information the current object
|
|
9791
9849
|
* @param CommunicationConsoleEntry The instance to serialize from.
|