@leadping/sdk 1.0.67 → 1.0.69

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.
@@ -390,6 +390,15 @@ export function createAutomationWorkflowStatusResponseFromDiscriminatorValue(par
390
390
  export function createBlogArticleResponseFromDiscriminatorValue(parseNode) {
391
391
  return deserializeIntoBlogArticleResponse;
392
392
  }
393
+ /**
394
+ * Creates a new instance of the appropriate class based on discriminator value
395
+ * @param parseNode The parse node to use to read the discriminator value and create the object
396
+ * @returns {BlogSocialPost}
397
+ */
398
+ // @ts-ignore
399
+ export function createBlogSocialPostFromDiscriminatorValue(parseNode) {
400
+ return deserializeIntoBlogSocialPost;
401
+ }
393
402
  /**
394
403
  * Creates a new instance of the appropriate class based on discriminator value
395
404
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3139,12 +3148,32 @@ export function deserializeIntoBlogArticleResponse(blogArticleResponse = {}) {
3139
3148
  "metaDescription": n => { blogArticleResponse.metaDescription = n.getStringValue(); },
3140
3149
  "modifiedAt": n => { blogArticleResponse.modifiedAt = n.getDateValue(); },
3141
3150
  "publishedAt": n => { blogArticleResponse.publishedAt = n.getDateValue(); },
3151
+ "renderedHtml": n => { blogArticleResponse.renderedHtml = n.getStringValue(); },
3142
3152
  "seoTitle": n => { blogArticleResponse.seoTitle = n.getStringValue(); },
3153
+ "shareOnFacebook": n => { blogArticleResponse.shareOnFacebook = n.getBooleanValue(); },
3154
+ "shareOnInstagram": n => { blogArticleResponse.shareOnInstagram = n.getBooleanValue(); },
3155
+ "shareOnLinkedIn": n => { blogArticleResponse.shareOnLinkedIn = n.getBooleanValue(); },
3156
+ "shareOnX": n => { blogArticleResponse.shareOnX = n.getBooleanValue(); },
3143
3157
  "slug": n => { blogArticleResponse.slug = n.getStringValue(); },
3158
+ "socialPosts": n => { blogArticleResponse.socialPosts = n.getCollectionOfObjectValues(createBlogSocialPostFromDiscriminatorValue); },
3144
3159
  "title": n => { blogArticleResponse.title = n.getStringValue(); },
3145
3160
  "unpublishedAt": n => { blogArticleResponse.unpublishedAt = n.getDateValue(); },
3146
3161
  };
3147
3162
  }
3163
+ /**
3164
+ * The deserialization information for the current model
3165
+ * @param BlogSocialPost The instance to deserialize into.
3166
+ * @returns {Record<string, (node: ParseNode) => void>}
3167
+ */
3168
+ // @ts-ignore
3169
+ export function deserializeIntoBlogSocialPost(blogSocialPost = {}) {
3170
+ return {
3171
+ "attemptedAt": n => { blogSocialPost.attemptedAt = n.getDateValue(); },
3172
+ "error": n => { blogSocialPost.errorEscaped = n.getStringValue(); },
3173
+ "platform": n => { blogSocialPost.platform = n.getEnumValue(BlogSocialPlatformObject); },
3174
+ "postId": n => { blogSocialPost.postId = n.getStringValue(); },
3175
+ };
3176
+ }
3148
3177
  /**
3149
3178
  * The deserialization information for the current model
3150
3179
  * @param CallEventTableRow The instance to deserialize into.
@@ -7942,12 +7971,35 @@ export function serializeBlogArticleResponse(writer, blogArticleResponse = {}, i
7942
7971
  writer.writeStringValue("metaDescription", blogArticleResponse.metaDescription);
7943
7972
  writer.writeDateValue("modifiedAt", blogArticleResponse.modifiedAt);
7944
7973
  writer.writeDateValue("publishedAt", blogArticleResponse.publishedAt);
7974
+ writer.writeStringValue("renderedHtml", blogArticleResponse.renderedHtml);
7945
7975
  writer.writeStringValue("seoTitle", blogArticleResponse.seoTitle);
7976
+ writer.writeBooleanValue("shareOnFacebook", blogArticleResponse.shareOnFacebook);
7977
+ writer.writeBooleanValue("shareOnInstagram", blogArticleResponse.shareOnInstagram);
7978
+ writer.writeBooleanValue("shareOnLinkedIn", blogArticleResponse.shareOnLinkedIn);
7979
+ writer.writeBooleanValue("shareOnX", blogArticleResponse.shareOnX);
7946
7980
  writer.writeStringValue("slug", blogArticleResponse.slug);
7981
+ writer.writeCollectionOfObjectValues("socialPosts", blogArticleResponse.socialPosts, serializeBlogSocialPost);
7947
7982
  writer.writeStringValue("title", blogArticleResponse.title);
7948
7983
  writer.writeDateValue("unpublishedAt", blogArticleResponse.unpublishedAt);
7949
7984
  writer.writeAdditionalData(blogArticleResponse.additionalData);
7950
7985
  }
7986
+ /**
7987
+ * Serializes information the current object
7988
+ * @param BlogSocialPost The instance to serialize from.
7989
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7990
+ * @param writer Serialization writer to use to serialize this model
7991
+ */
7992
+ // @ts-ignore
7993
+ export function serializeBlogSocialPost(writer, blogSocialPost = {}, isSerializingDerivedType = false) {
7994
+ if (!blogSocialPost || isSerializingDerivedType) {
7995
+ return;
7996
+ }
7997
+ writer.writeDateValue("attemptedAt", blogSocialPost.attemptedAt);
7998
+ writer.writeStringValue("error", blogSocialPost.errorEscaped);
7999
+ writer.writeEnumValue("platform", blogSocialPost.platform);
8000
+ writer.writeStringValue("postId", blogSocialPost.postId);
8001
+ writer.writeAdditionalData(blogSocialPost.additionalData);
8002
+ }
7951
8003
  /**
7952
8004
  * Serializes information the current object
7953
8005
  * @param CallEventTableRow The instance to serialize from.
@@ -12654,6 +12706,12 @@ export const BillingPlanObject = {
12654
12706
  Annual: "Annual",
12655
12707
  Monthly: "Monthly",
12656
12708
  };
12709
+ export const BlogSocialPlatformObject = {
12710
+ Facebook: "facebook",
12711
+ Instagram: "instagram",
12712
+ X: "x",
12713
+ Linkedin: "linkedin",
12714
+ };
12657
12715
  /**
12658
12716
  * Defines the source that requested outbound delivery.
12659
12717
  */