@leadping/sdk 1.0.74 → 1.0.76
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/models/index.d.ts +84 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +83 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -147,6 +147,15 @@ export function createAutomationConnectionFromDiscriminatorValue(parseNode) {
|
|
|
147
147
|
export function createAutomationConsoleResponseFromDiscriminatorValue(parseNode) {
|
|
148
148
|
return deserializeIntoAutomationConsoleResponse;
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
152
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
153
|
+
* @returns {AutomationLineage}
|
|
154
|
+
*/
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
export function createAutomationLineageFromDiscriminatorValue(parseNode) {
|
|
157
|
+
return deserializeIntoAutomationLineage;
|
|
158
|
+
}
|
|
150
159
|
/**
|
|
151
160
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
152
161
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -237,6 +246,15 @@ export function createAutomationResponse_userFromDiscriminatorValue(parseNode) {
|
|
|
237
246
|
export function createAutomationResponseFromDiscriminatorValue(parseNode) {
|
|
238
247
|
return deserializeIntoAutomationResponse;
|
|
239
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
251
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
252
|
+
* @returns {AutomationRunRecord_automationLineage}
|
|
253
|
+
*/
|
|
254
|
+
// @ts-ignore
|
|
255
|
+
export function createAutomationRunRecord_automationLineageFromDiscriminatorValue(parseNode) {
|
|
256
|
+
return deserializeIntoAutomationRunRecord_automationLineage;
|
|
257
|
+
}
|
|
240
258
|
/**
|
|
241
259
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
242
260
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2702,6 +2720,21 @@ export function deserializeIntoAutomationConsoleResponse(automationConsoleRespon
|
|
|
2702
2720
|
"runs": n => { automationConsoleResponse.runs = n.getCollectionOfObjectValues(createAutomationWorkflowRunResponseFromDiscriminatorValue); },
|
|
2703
2721
|
};
|
|
2704
2722
|
}
|
|
2723
|
+
/**
|
|
2724
|
+
* The deserialization information for the current model
|
|
2725
|
+
* @param AutomationLineage The instance to deserialize into.
|
|
2726
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2727
|
+
*/
|
|
2728
|
+
// @ts-ignore
|
|
2729
|
+
export function deserializeIntoAutomationLineage(automationLineage = {}) {
|
|
2730
|
+
return {
|
|
2731
|
+
"actionId": n => { automationLineage.actionId = n.getStringValue(); },
|
|
2732
|
+
"automationIds": n => { automationLineage.automationIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
2733
|
+
"rootEventId": n => { automationLineage.rootEventId = n.getStringValue(); },
|
|
2734
|
+
"runId": n => { automationLineage.runId = n.getStringValue(); },
|
|
2735
|
+
"triggerEventId": n => { automationLineage.triggerEventId = n.getStringValue(); },
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2705
2738
|
/**
|
|
2706
2739
|
* The deserialization information for the current model
|
|
2707
2740
|
* @param AutomationPreviewActionResult The instance to deserialize into.
|
|
@@ -2783,6 +2816,7 @@ export function deserializeIntoAutomationRequest(automationRequest = {}) {
|
|
|
2783
2816
|
"id": n => { automationRequest.id = n.getStringValue(); },
|
|
2784
2817
|
"name": n => { automationRequest.name = n.getStringValue(); },
|
|
2785
2818
|
"scope": n => { automationRequest.scope = n.getStringValue(); },
|
|
2819
|
+
"timeZoneId": n => { automationRequest.timeZoneId = n.getStringValue(); },
|
|
2786
2820
|
"triggers": n => { automationRequest.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
|
|
2787
2821
|
"version": n => { automationRequest.version = n.getNumberValue(); },
|
|
2788
2822
|
"visibility": n => { automationRequest.visibility = n.getStringValue(); },
|
|
@@ -2808,6 +2842,7 @@ export function deserializeIntoAutomationRequestSnapshot(automationRequestSnapsh
|
|
|
2808
2842
|
"name": n => { automationRequestSnapshot.name = n.getStringValue(); },
|
|
2809
2843
|
"organizationId": n => { automationRequestSnapshot.organizationId = n.getStringValue(); },
|
|
2810
2844
|
"scope": n => { automationRequestSnapshot.scope = n.getStringValue(); },
|
|
2845
|
+
"timeZoneId": n => { automationRequestSnapshot.timeZoneId = n.getStringValue(); },
|
|
2811
2846
|
"triggers": n => { automationRequestSnapshot.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
|
|
2812
2847
|
"visibility": n => { automationRequestSnapshot.visibility = n.getStringValue(); },
|
|
2813
2848
|
};
|
|
@@ -2838,6 +2873,7 @@ export function deserializeIntoAutomationResponse(automationResponse = {}) {
|
|
|
2838
2873
|
"organization": n => { automationResponse.organization = n.getObjectValue(createAutomationResponse_organizationFromDiscriminatorValue); },
|
|
2839
2874
|
"organizationId": n => { automationResponse.organizationId = n.getStringValue(); },
|
|
2840
2875
|
"scope": n => { automationResponse.scope = n.getStringValue(); },
|
|
2876
|
+
"timeZoneId": n => { automationResponse.timeZoneId = n.getStringValue(); },
|
|
2841
2877
|
"triggers": n => { automationResponse.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
|
|
2842
2878
|
"user": n => { automationResponse.user = n.getObjectValue(createAutomationResponse_userFromDiscriminatorValue); },
|
|
2843
2879
|
"version": n => { automationResponse.version = n.getNumberValue(); },
|
|
@@ -2876,6 +2912,7 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
|
|
|
2876
2912
|
return {
|
|
2877
2913
|
"actions": n => { automationRunRecord.actions = n.getCollectionOfObjectValues(createAutomationActionRunRecordFromDiscriminatorValue); },
|
|
2878
2914
|
"automationId": n => { automationRunRecord.automationId = n.getStringValue(); },
|
|
2915
|
+
"automationLineage": n => { automationRunRecord.automationLineage = n.getObjectValue(createAutomationRunRecord_automationLineageFromDiscriminatorValue); },
|
|
2879
2916
|
"completedAt": n => { automationRunRecord.completedAt = n.getDateValue(); },
|
|
2880
2917
|
"conditionResults": n => { automationRunRecord.conditionResults = n.getObjectValue(createAutomationRunRecord_conditionResultsFromDiscriminatorValue); },
|
|
2881
2918
|
"executionMode": n => { automationRunRecord.executionMode = n.getStringValue(); },
|
|
@@ -2892,6 +2929,17 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
|
|
|
2892
2929
|
"triggerType": n => { automationRunRecord.triggerType = n.getStringValue(); },
|
|
2893
2930
|
};
|
|
2894
2931
|
}
|
|
2932
|
+
/**
|
|
2933
|
+
* The deserialization information for the current model
|
|
2934
|
+
* @param AutomationRunRecord_automationLineage The instance to deserialize into.
|
|
2935
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2936
|
+
*/
|
|
2937
|
+
// @ts-ignore
|
|
2938
|
+
export function deserializeIntoAutomationRunRecord_automationLineage(automationRunRecord_automationLineage = {}) {
|
|
2939
|
+
return {
|
|
2940
|
+
...deserializeIntoAutomationLineage(automationRunRecord_automationLineage),
|
|
2941
|
+
};
|
|
2942
|
+
}
|
|
2895
2943
|
/**
|
|
2896
2944
|
* The deserialization information for the current model
|
|
2897
2945
|
* @param AutomationRunRecord_conditionResults The instance to deserialize into.
|
|
@@ -7480,6 +7528,24 @@ export function serializeAutomationConsoleResponse(writer, automationConsoleResp
|
|
|
7480
7528
|
writer.writeCollectionOfObjectValues("runs", automationConsoleResponse.runs, serializeAutomationWorkflowRunResponse);
|
|
7481
7529
|
writer.writeAdditionalData(automationConsoleResponse.additionalData);
|
|
7482
7530
|
}
|
|
7531
|
+
/**
|
|
7532
|
+
* Serializes information the current object
|
|
7533
|
+
* @param AutomationLineage The instance to serialize from.
|
|
7534
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7535
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7536
|
+
*/
|
|
7537
|
+
// @ts-ignore
|
|
7538
|
+
export function serializeAutomationLineage(writer, automationLineage = {}, isSerializingDerivedType = false) {
|
|
7539
|
+
if (!automationLineage || isSerializingDerivedType) {
|
|
7540
|
+
return;
|
|
7541
|
+
}
|
|
7542
|
+
writer.writeStringValue("actionId", automationLineage.actionId);
|
|
7543
|
+
writer.writeCollectionOfPrimitiveValues("automationIds", automationLineage.automationIds);
|
|
7544
|
+
writer.writeStringValue("rootEventId", automationLineage.rootEventId);
|
|
7545
|
+
writer.writeStringValue("runId", automationLineage.runId);
|
|
7546
|
+
writer.writeStringValue("triggerEventId", automationLineage.triggerEventId);
|
|
7547
|
+
writer.writeAdditionalData(automationLineage.additionalData);
|
|
7548
|
+
}
|
|
7483
7549
|
/**
|
|
7484
7550
|
* Serializes information the current object
|
|
7485
7551
|
* @param AutomationPreviewActionResult The instance to serialize from.
|
|
@@ -7580,6 +7646,7 @@ export function serializeAutomationRequest(writer, automationRequest = {}, isSer
|
|
|
7580
7646
|
writer.writeStringValue("id", automationRequest.id);
|
|
7581
7647
|
writer.writeStringValue("name", automationRequest.name);
|
|
7582
7648
|
writer.writeStringValue("scope", automationRequest.scope);
|
|
7649
|
+
writer.writeStringValue("timeZoneId", automationRequest.timeZoneId);
|
|
7583
7650
|
writer.writeCollectionOfObjectValues("triggers", automationRequest.triggers, serializeAutomationTrigger);
|
|
7584
7651
|
writer.writeNumberValue("version", automationRequest.version);
|
|
7585
7652
|
writer.writeStringValue("visibility", automationRequest.visibility);
|
|
@@ -7608,6 +7675,7 @@ export function serializeAutomationRequestSnapshot(writer, automationRequestSnap
|
|
|
7608
7675
|
writer.writeStringValue("name", automationRequestSnapshot.name);
|
|
7609
7676
|
writer.writeStringValue("organizationId", automationRequestSnapshot.organizationId);
|
|
7610
7677
|
writer.writeStringValue("scope", automationRequestSnapshot.scope);
|
|
7678
|
+
writer.writeStringValue("timeZoneId", automationRequestSnapshot.timeZoneId);
|
|
7611
7679
|
writer.writeCollectionOfObjectValues("triggers", automationRequestSnapshot.triggers, serializeAutomationTrigger);
|
|
7612
7680
|
writer.writeStringValue("visibility", automationRequestSnapshot.visibility);
|
|
7613
7681
|
writer.writeAdditionalData(automationRequestSnapshot.additionalData);
|
|
@@ -7641,6 +7709,7 @@ export function serializeAutomationResponse(writer, automationResponse = {}, isS
|
|
|
7641
7709
|
writer.writeObjectValue("organization", automationResponse.organization, serializeAutomationResponse_organization);
|
|
7642
7710
|
writer.writeStringValue("organizationId", automationResponse.organizationId);
|
|
7643
7711
|
writer.writeStringValue("scope", automationResponse.scope);
|
|
7712
|
+
writer.writeStringValue("timeZoneId", automationResponse.timeZoneId);
|
|
7644
7713
|
writer.writeCollectionOfObjectValues("triggers", automationResponse.triggers, serializeAutomationTrigger);
|
|
7645
7714
|
writer.writeObjectValue("user", automationResponse.user, serializeAutomationResponse_user);
|
|
7646
7715
|
writer.writeNumberValue("version", automationResponse.version);
|
|
@@ -7686,6 +7755,7 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
|
|
|
7686
7755
|
}
|
|
7687
7756
|
writer.writeCollectionOfObjectValues("actions", automationRunRecord.actions, serializeAutomationActionRunRecord);
|
|
7688
7757
|
writer.writeStringValue("automationId", automationRunRecord.automationId);
|
|
7758
|
+
writer.writeObjectValue("automationLineage", automationRunRecord.automationLineage, serializeAutomationRunRecord_automationLineage);
|
|
7689
7759
|
writer.writeDateValue("completedAt", automationRunRecord.completedAt);
|
|
7690
7760
|
writer.writeObjectValue("conditionResults", automationRunRecord.conditionResults, serializeAutomationRunRecord_conditionResults);
|
|
7691
7761
|
writer.writeStringValue("executionMode", automationRunRecord.executionMode);
|
|
@@ -7702,6 +7772,19 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
|
|
|
7702
7772
|
writer.writeStringValue("triggerType", automationRunRecord.triggerType);
|
|
7703
7773
|
writer.writeAdditionalData(automationRunRecord.additionalData);
|
|
7704
7774
|
}
|
|
7775
|
+
/**
|
|
7776
|
+
* Serializes information the current object
|
|
7777
|
+
* @param AutomationRunRecord_automationLineage The instance to serialize from.
|
|
7778
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7779
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7780
|
+
*/
|
|
7781
|
+
// @ts-ignore
|
|
7782
|
+
export function serializeAutomationRunRecord_automationLineage(writer, automationRunRecord_automationLineage = {}, isSerializingDerivedType = false) {
|
|
7783
|
+
if (!automationRunRecord_automationLineage || isSerializingDerivedType) {
|
|
7784
|
+
return;
|
|
7785
|
+
}
|
|
7786
|
+
serializeAutomationLineage(writer, automationRunRecord_automationLineage, isSerializingDerivedType);
|
|
7787
|
+
}
|
|
7705
7788
|
/**
|
|
7706
7789
|
* Serializes information the current object
|
|
7707
7790
|
* @param AutomationRunRecord_conditionResults The instance to serialize from.
|