@leadping/sdk 1.0.90 → 1.0.91

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.
@@ -30,6 +30,15 @@ export function createActivationTimelineEvent_actorFromDiscriminatorValue(parseN
30
30
  export function createActivationTimelineEventFromDiscriminatorValue(parseNode) {
31
31
  return deserializeIntoActivationTimelineEvent;
32
32
  }
33
+ /**
34
+ * Creates a new instance of the appropriate class based on discriminator value
35
+ * @param parseNode The parse node to use to read the discriminator value and create the object
36
+ * @returns {AdminDemoPreferences}
37
+ */
38
+ // @ts-ignore
39
+ export function createAdminDemoPreferencesFromDiscriminatorValue(parseNode) {
40
+ return deserializeIntoAdminDemoPreferences;
41
+ }
33
42
  /**
34
43
  * Creates a new instance of the appropriate class based on discriminator value
35
44
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2703,6 +2712,15 @@ export function createUserRequest_notificationPreferencesFromDiscriminatorValue(
2703
2712
  export function createUserRequestFromDiscriminatorValue(parseNode) {
2704
2713
  return deserializeIntoUserRequest;
2705
2714
  }
2715
+ /**
2716
+ * Creates a new instance of the appropriate class based on discriminator value
2717
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2718
+ * @returns {UserResponse_adminDemoPreferences}
2719
+ */
2720
+ // @ts-ignore
2721
+ export function createUserResponse_adminDemoPreferencesFromDiscriminatorValue(parseNode) {
2722
+ return deserializeIntoUserResponse_adminDemoPreferences;
2723
+ }
2706
2724
  /**
2707
2725
  * Creates a new instance of the appropriate class based on discriminator value
2708
2726
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2803,6 +2821,18 @@ export function deserializeIntoActivationTimelineEvent_actor(activationTimelineE
2803
2821
  ...deserializeIntoIdNamePair(activationTimelineEvent_actor),
2804
2822
  };
2805
2823
  }
2824
+ /**
2825
+ * The deserialization information for the current model
2826
+ * @param AdminDemoPreferences The instance to deserialize into.
2827
+ * @returns {Record<string, (node: ParseNode) => void>}
2828
+ */
2829
+ // @ts-ignore
2830
+ export function deserializeIntoAdminDemoPreferences(adminDemoPreferences = {}) {
2831
+ return {
2832
+ "showDemoData": n => { adminDemoPreferences.showDemoData = n.getBooleanValue(); },
2833
+ "showDemoMarkers": n => { adminDemoPreferences.showDemoMarkers = n.getBooleanValue(); },
2834
+ };
2835
+ }
2806
2836
  /**
2807
2837
  * The deserialization information for the current model
2808
2838
  * @param AnalyticsComparison The instance to deserialize into.
@@ -7840,6 +7870,7 @@ export function deserializeIntoUserRequest_notificationPreferences(userRequest_n
7840
7870
  // @ts-ignore
7841
7871
  export function deserializeIntoUserResponse(userResponse = {}) {
7842
7872
  return {
7873
+ "adminDemoPreferences": n => { userResponse.adminDemoPreferences = n.getObjectValue(createUserResponse_adminDemoPreferencesFromDiscriminatorValue); },
7843
7874
  "billingPlan": n => { userResponse.billingPlan = n.getEnumValue(UserResponse_billingPlanObject); },
7844
7875
  "billingState": n => { userResponse.billingState = n.getObjectValue(createUserResponse_billingStateFromDiscriminatorValue); },
7845
7876
  "compliance": n => { userResponse.compliance = n.getObjectValue(createUserResponse_complianceFromDiscriminatorValue); },
@@ -7865,6 +7896,17 @@ export function deserializeIntoUserResponse(userResponse = {}) {
7865
7896
  "timeZoneId": n => { userResponse.timeZoneId = n.getStringValue(); },
7866
7897
  };
7867
7898
  }
7899
+ /**
7900
+ * The deserialization information for the current model
7901
+ * @param UserResponse_adminDemoPreferences The instance to deserialize into.
7902
+ * @returns {Record<string, (node: ParseNode) => void>}
7903
+ */
7904
+ // @ts-ignore
7905
+ export function deserializeIntoUserResponse_adminDemoPreferences(userResponse_adminDemoPreferences = {}) {
7906
+ return {
7907
+ ...deserializeIntoAdminDemoPreferences(userResponse_adminDemoPreferences),
7908
+ };
7909
+ }
7868
7910
  /**
7869
7911
  * The deserialization information for the current model
7870
7912
  * @param UserResponse_billingState The instance to deserialize into.
@@ -7991,6 +8033,21 @@ export function serializeActivationTimelineEvent_actor(writer, activationTimelin
7991
8033
  }
7992
8034
  serializeIdNamePair(writer, activationTimelineEvent_actor, isSerializingDerivedType);
7993
8035
  }
8036
+ /**
8037
+ * Serializes information the current object
8038
+ * @param AdminDemoPreferences The instance to serialize from.
8039
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
8040
+ * @param writer Serialization writer to use to serialize this model
8041
+ */
8042
+ // @ts-ignore
8043
+ export function serializeAdminDemoPreferences(writer, adminDemoPreferences = {}, isSerializingDerivedType = false) {
8044
+ if (!adminDemoPreferences || isSerializingDerivedType) {
8045
+ return;
8046
+ }
8047
+ writer.writeBooleanValue("showDemoData", adminDemoPreferences.showDemoData);
8048
+ writer.writeBooleanValue("showDemoMarkers", adminDemoPreferences.showDemoMarkers);
8049
+ writer.writeAdditionalData(adminDemoPreferences.additionalData);
8050
+ }
7994
8051
  /**
7995
8052
  * Serializes information the current object
7996
8053
  * @param AnalyticsComparison The instance to serialize from.
@@ -13847,6 +13904,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
13847
13904
  if (!userResponse || isSerializingDerivedType) {
13848
13905
  return;
13849
13906
  }
13907
+ writer.writeObjectValue("adminDemoPreferences", userResponse.adminDemoPreferences, serializeUserResponse_adminDemoPreferences);
13850
13908
  writer.writeEnumValue("billingPlan", userResponse.billingPlan);
13851
13909
  writer.writeObjectValue("billingState", userResponse.billingState, serializeUserResponse_billingState);
13852
13910
  writer.writeObjectValue("compliance", userResponse.compliance, serializeUserResponse_compliance);
@@ -13872,6 +13930,19 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
13872
13930
  writer.writeStringValue("timeZoneId", userResponse.timeZoneId);
13873
13931
  writer.writeAdditionalData(userResponse.additionalData);
13874
13932
  }
13933
+ /**
13934
+ * Serializes information the current object
13935
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
13936
+ * @param UserResponse_adminDemoPreferences The instance to serialize from.
13937
+ * @param writer Serialization writer to use to serialize this model
13938
+ */
13939
+ // @ts-ignore
13940
+ export function serializeUserResponse_adminDemoPreferences(writer, userResponse_adminDemoPreferences = {}, isSerializingDerivedType = false) {
13941
+ if (!userResponse_adminDemoPreferences || isSerializingDerivedType) {
13942
+ return;
13943
+ }
13944
+ serializeAdminDemoPreferences(writer, userResponse_adminDemoPreferences, isSerializingDerivedType);
13945
+ }
13875
13946
  /**
13876
13947
  * Serializes information the current object
13877
13948
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.