@getlatedev/node 0.2.559 → 0.2.561

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/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.559",
39
+ version: "0.2.561",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -852,6 +852,12 @@ var connectAds = (options) => {
852
852
  url: "/v1/connect/{platform}/ads"
853
853
  });
854
854
  };
855
+ var getShopifyConnectUrl = (options) => {
856
+ return (options?.client ?? client).get({
857
+ ...options,
858
+ url: "/v1/connect/shopify"
859
+ });
860
+ };
855
861
  var configureTikTokAdsBrandIdentity = (options) => {
856
862
  return (options?.client ?? client).patch({
857
863
  ...options,
@@ -3703,6 +3709,66 @@ var getTrackingTagStats = (options) => {
3703
3709
  url: "/v1/accounts/{accountId}/tracking-tags/{tagId}/stats"
3704
3710
  });
3705
3711
  };
3712
+ var listBlogs = (options) => {
3713
+ return (options?.client ?? client).get({
3714
+ ...options,
3715
+ url: "/v1/accounts/{accountId}/blogs"
3716
+ });
3717
+ };
3718
+ var createBlog = (options) => {
3719
+ return (options?.client ?? client).post({
3720
+ ...options,
3721
+ url: "/v1/accounts/{accountId}/blogs"
3722
+ });
3723
+ };
3724
+ var getBlog = (options) => {
3725
+ return (options?.client ?? client).get({
3726
+ ...options,
3727
+ url: "/v1/accounts/{accountId}/blogs/{blogId}"
3728
+ });
3729
+ };
3730
+ var updateBlog = (options) => {
3731
+ return (options?.client ?? client).patch({
3732
+ ...options,
3733
+ url: "/v1/accounts/{accountId}/blogs/{blogId}"
3734
+ });
3735
+ };
3736
+ var deleteBlog = (options) => {
3737
+ return (options?.client ?? client).delete({
3738
+ ...options,
3739
+ url: "/v1/accounts/{accountId}/blogs/{blogId}"
3740
+ });
3741
+ };
3742
+ var listBlogArticles = (options) => {
3743
+ return (options?.client ?? client).get({
3744
+ ...options,
3745
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles"
3746
+ });
3747
+ };
3748
+ var createBlogArticle = (options) => {
3749
+ return (options?.client ?? client).post({
3750
+ ...options,
3751
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles"
3752
+ });
3753
+ };
3754
+ var getBlogArticle = (options) => {
3755
+ return (options?.client ?? client).get({
3756
+ ...options,
3757
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}"
3758
+ });
3759
+ };
3760
+ var updateBlogArticle = (options) => {
3761
+ return (options?.client ?? client).patch({
3762
+ ...options,
3763
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}"
3764
+ });
3765
+ };
3766
+ var deleteBlogArticle = (options) => {
3767
+ return (options?.client ?? client).delete({
3768
+ ...options,
3769
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}"
3770
+ });
3771
+ };
3706
3772
  var createVerification = (options) => {
3707
3773
  return (options?.client ?? client).post({
3708
3774
  ...options,
@@ -4029,6 +4095,7 @@ var Zernio = class _Zernio {
4029
4095
  getConnectUrl: this._bind(getConnectUrl),
4030
4096
  handleOAuthCallback: this._bind(handleOAuthCallback),
4031
4097
  connectAds: this._bind(connectAds),
4098
+ getShopifyConnectUrl: this._bind(getShopifyConnectUrl),
4032
4099
  configureTikTokAdsBrandIdentity: this._bind(configureTikTokAdsBrandIdentity),
4033
4100
  listInstagramPages: this._bind(listInstagramPages),
4034
4101
  selectInstagramAccount: this._bind(selectInstagramAccount),
@@ -4695,6 +4762,21 @@ var Zernio = class _Zernio {
4695
4762
  createCallAd: this._bind(createCallAd),
4696
4763
  createCtwaAd: this._bind(createCtwaAd)
4697
4764
  };
4765
+ /**
4766
+ * blogs API
4767
+ */
4768
+ this.blogs = {
4769
+ listBlogs: this._bind(listBlogs),
4770
+ createBlog: this._bind(createBlog),
4771
+ getBlog: this._bind(getBlog),
4772
+ updateBlog: this._bind(updateBlog),
4773
+ deleteBlog: this._bind(deleteBlog),
4774
+ listBlogArticles: this._bind(listBlogArticles),
4775
+ createBlogArticle: this._bind(createBlogArticle),
4776
+ getBlogArticle: this._bind(getBlogArticle),
4777
+ updateBlogArticle: this._bind(updateBlogArticle),
4778
+ deleteBlogArticle: this._bind(deleteBlogArticle)
4779
+ };
4698
4780
  /**
4699
4781
  * verify API
4700
4782
  */
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.559",
8
+ version: "0.2.561",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -821,6 +821,12 @@ var connectAds = (options) => {
821
821
  url: "/v1/connect/{platform}/ads"
822
822
  });
823
823
  };
824
+ var getShopifyConnectUrl = (options) => {
825
+ return (options?.client ?? client).get({
826
+ ...options,
827
+ url: "/v1/connect/shopify"
828
+ });
829
+ };
824
830
  var configureTikTokAdsBrandIdentity = (options) => {
825
831
  return (options?.client ?? client).patch({
826
832
  ...options,
@@ -3672,6 +3678,66 @@ var getTrackingTagStats = (options) => {
3672
3678
  url: "/v1/accounts/{accountId}/tracking-tags/{tagId}/stats"
3673
3679
  });
3674
3680
  };
3681
+ var listBlogs = (options) => {
3682
+ return (options?.client ?? client).get({
3683
+ ...options,
3684
+ url: "/v1/accounts/{accountId}/blogs"
3685
+ });
3686
+ };
3687
+ var createBlog = (options) => {
3688
+ return (options?.client ?? client).post({
3689
+ ...options,
3690
+ url: "/v1/accounts/{accountId}/blogs"
3691
+ });
3692
+ };
3693
+ var getBlog = (options) => {
3694
+ return (options?.client ?? client).get({
3695
+ ...options,
3696
+ url: "/v1/accounts/{accountId}/blogs/{blogId}"
3697
+ });
3698
+ };
3699
+ var updateBlog = (options) => {
3700
+ return (options?.client ?? client).patch({
3701
+ ...options,
3702
+ url: "/v1/accounts/{accountId}/blogs/{blogId}"
3703
+ });
3704
+ };
3705
+ var deleteBlog = (options) => {
3706
+ return (options?.client ?? client).delete({
3707
+ ...options,
3708
+ url: "/v1/accounts/{accountId}/blogs/{blogId}"
3709
+ });
3710
+ };
3711
+ var listBlogArticles = (options) => {
3712
+ return (options?.client ?? client).get({
3713
+ ...options,
3714
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles"
3715
+ });
3716
+ };
3717
+ var createBlogArticle = (options) => {
3718
+ return (options?.client ?? client).post({
3719
+ ...options,
3720
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles"
3721
+ });
3722
+ };
3723
+ var getBlogArticle = (options) => {
3724
+ return (options?.client ?? client).get({
3725
+ ...options,
3726
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}"
3727
+ });
3728
+ };
3729
+ var updateBlogArticle = (options) => {
3730
+ return (options?.client ?? client).patch({
3731
+ ...options,
3732
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}"
3733
+ });
3734
+ };
3735
+ var deleteBlogArticle = (options) => {
3736
+ return (options?.client ?? client).delete({
3737
+ ...options,
3738
+ url: "/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}"
3739
+ });
3740
+ };
3675
3741
  var createVerification = (options) => {
3676
3742
  return (options?.client ?? client).post({
3677
3743
  ...options,
@@ -3998,6 +4064,7 @@ var Zernio = class _Zernio {
3998
4064
  getConnectUrl: this._bind(getConnectUrl),
3999
4065
  handleOAuthCallback: this._bind(handleOAuthCallback),
4000
4066
  connectAds: this._bind(connectAds),
4067
+ getShopifyConnectUrl: this._bind(getShopifyConnectUrl),
4001
4068
  configureTikTokAdsBrandIdentity: this._bind(configureTikTokAdsBrandIdentity),
4002
4069
  listInstagramPages: this._bind(listInstagramPages),
4003
4070
  selectInstagramAccount: this._bind(selectInstagramAccount),
@@ -4664,6 +4731,21 @@ var Zernio = class _Zernio {
4664
4731
  createCallAd: this._bind(createCallAd),
4665
4732
  createCtwaAd: this._bind(createCtwaAd)
4666
4733
  };
4734
+ /**
4735
+ * blogs API
4736
+ */
4737
+ this.blogs = {
4738
+ listBlogs: this._bind(listBlogs),
4739
+ createBlog: this._bind(createBlog),
4740
+ getBlog: this._bind(getBlog),
4741
+ updateBlog: this._bind(updateBlog),
4742
+ deleteBlog: this._bind(deleteBlog),
4743
+ listBlogArticles: this._bind(listBlogArticles),
4744
+ createBlogArticle: this._bind(createBlogArticle),
4745
+ getBlogArticle: this._bind(getBlogArticle),
4746
+ updateBlogArticle: this._bind(updateBlogArticle),
4747
+ deleteBlogArticle: this._bind(deleteBlogArticle)
4748
+ };
4667
4749
  /**
4668
4750
  * verify API
4669
4751
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.559",
3
+ "version": "0.2.561",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -44,6 +44,8 @@ import {
44
44
  createAdCreative,
45
45
  createAdInsightsReport,
46
46
  createApiKey,
47
+ createBlog,
48
+ createBlogArticle,
47
49
  createBroadcast,
48
50
  createCallAd,
49
51
  createCommentAutomation,
@@ -96,6 +98,8 @@ import {
96
98
  deleteAdCampaign,
97
99
  deleteAdCreative,
98
100
  deleteApiKey,
101
+ deleteBlog,
102
+ deleteBlogArticle,
99
103
  deleteBroadcast,
100
104
  deleteCommentAutomation,
101
105
  deleteContact,
@@ -171,6 +175,8 @@ import {
171
175
  getAnalytics,
172
176
  getBestTimeToPost,
173
177
  getBilling,
178
+ getBlog,
179
+ getBlogArticle,
174
180
  getBroadcast,
175
181
  getCall,
176
182
  getCallRecording,
@@ -252,6 +258,7 @@ import {
252
258
  getRedditSubreddits,
253
259
  getRfPrediction,
254
260
  getSequence,
261
+ getShopifyConnectUrl,
255
262
  getSlackSettings,
256
263
  getSmsRegistration,
257
264
  getSmsUsage,
@@ -328,6 +335,8 @@ import {
328
335
  listAds,
329
336
  listAdsBusinessCenters,
330
337
  listApiKeys,
338
+ listBlogArticles,
339
+ listBlogs,
331
340
  listBroadcastRecipients,
332
341
  listBroadcasts,
333
342
  listCalls,
@@ -500,6 +509,8 @@ import {
500
509
  updateAdSetStatus,
501
510
  updateAdStatus,
502
511
  updateAdTrackingTags,
512
+ updateBlog,
513
+ updateBlogArticle,
503
514
  updateBroadcast,
504
515
  updateCommentAutomation,
505
516
  updateContact,
@@ -914,6 +925,7 @@ export class Zernio {
914
925
  getConnectUrl: this._bind(getConnectUrl),
915
926
  handleOAuthCallback: this._bind(handleOAuthCallback),
916
927
  connectAds: this._bind(connectAds),
928
+ getShopifyConnectUrl: this._bind(getShopifyConnectUrl),
917
929
  configureTikTokAdsBrandIdentity: this._bind(configureTikTokAdsBrandIdentity),
918
930
  listInstagramPages: this._bind(listInstagramPages),
919
931
  selectInstagramAccount: this._bind(selectInstagramAccount),
@@ -1626,6 +1638,22 @@ export class Zernio {
1626
1638
  createCtwaAd: this._bind(createCtwaAd),
1627
1639
  };
1628
1640
 
1641
+ /**
1642
+ * blogs API
1643
+ */
1644
+ blogs = {
1645
+ listBlogs: this._bind(listBlogs),
1646
+ createBlog: this._bind(createBlog),
1647
+ getBlog: this._bind(getBlog),
1648
+ updateBlog: this._bind(updateBlog),
1649
+ deleteBlog: this._bind(deleteBlog),
1650
+ listBlogArticles: this._bind(listBlogArticles),
1651
+ createBlogArticle: this._bind(createBlogArticle),
1652
+ getBlogArticle: this._bind(getBlogArticle),
1653
+ updateBlogArticle: this._bind(updateBlogArticle),
1654
+ deleteBlogArticle: this._bind(deleteBlogArticle),
1655
+ };
1656
+
1629
1657
  /**
1630
1658
  * verify API
1631
1659
  */