@leadping/sdk 1.0.68 → 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.
- package/dist/models/index.d.ts +67 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +56 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -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
|
|
@@ -3141,11 +3150,30 @@ export function deserializeIntoBlogArticleResponse(blogArticleResponse = {}) {
|
|
|
3141
3150
|
"publishedAt": n => { blogArticleResponse.publishedAt = n.getDateValue(); },
|
|
3142
3151
|
"renderedHtml": n => { blogArticleResponse.renderedHtml = n.getStringValue(); },
|
|
3143
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(); },
|
|
3144
3157
|
"slug": n => { blogArticleResponse.slug = n.getStringValue(); },
|
|
3158
|
+
"socialPosts": n => { blogArticleResponse.socialPosts = n.getCollectionOfObjectValues(createBlogSocialPostFromDiscriminatorValue); },
|
|
3145
3159
|
"title": n => { blogArticleResponse.title = n.getStringValue(); },
|
|
3146
3160
|
"unpublishedAt": n => { blogArticleResponse.unpublishedAt = n.getDateValue(); },
|
|
3147
3161
|
};
|
|
3148
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
|
+
}
|
|
3149
3177
|
/**
|
|
3150
3178
|
* The deserialization information for the current model
|
|
3151
3179
|
* @param CallEventTableRow The instance to deserialize into.
|
|
@@ -7945,11 +7973,33 @@ export function serializeBlogArticleResponse(writer, blogArticleResponse = {}, i
|
|
|
7945
7973
|
writer.writeDateValue("publishedAt", blogArticleResponse.publishedAt);
|
|
7946
7974
|
writer.writeStringValue("renderedHtml", blogArticleResponse.renderedHtml);
|
|
7947
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);
|
|
7948
7980
|
writer.writeStringValue("slug", blogArticleResponse.slug);
|
|
7981
|
+
writer.writeCollectionOfObjectValues("socialPosts", blogArticleResponse.socialPosts, serializeBlogSocialPost);
|
|
7949
7982
|
writer.writeStringValue("title", blogArticleResponse.title);
|
|
7950
7983
|
writer.writeDateValue("unpublishedAt", blogArticleResponse.unpublishedAt);
|
|
7951
7984
|
writer.writeAdditionalData(blogArticleResponse.additionalData);
|
|
7952
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
|
+
}
|
|
7953
8003
|
/**
|
|
7954
8004
|
* Serializes information the current object
|
|
7955
8005
|
* @param CallEventTableRow The instance to serialize from.
|
|
@@ -12656,6 +12706,12 @@ export const BillingPlanObject = {
|
|
|
12656
12706
|
Annual: "Annual",
|
|
12657
12707
|
Monthly: "Monthly",
|
|
12658
12708
|
};
|
|
12709
|
+
export const BlogSocialPlatformObject = {
|
|
12710
|
+
Facebook: "facebook",
|
|
12711
|
+
Instagram: "instagram",
|
|
12712
|
+
X: "x",
|
|
12713
|
+
Linkedin: "linkedin",
|
|
12714
|
+
};
|
|
12659
12715
|
/**
|
|
12660
12716
|
* Defines the source that requested outbound delivery.
|
|
12661
12717
|
*/
|