@getlatedev/node 0.2.4 → 0.2.6

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/src/client.ts CHANGED
@@ -1,23 +1,33 @@
1
1
  import {
2
2
  client,
3
+ activateSequence,
4
+ addBroadcastRecipients,
3
5
  addWhatsAppBroadcastRecipients,
4
6
  bookmarkPost,
7
+ bulkCreateContacts,
5
8
  bulkDeleteWhatsAppContacts,
6
9
  bulkUpdateWhatsAppContacts,
7
10
  bulkUploadPosts,
11
+ cancelBroadcast,
8
12
  cancelWhatsAppBroadcastSchedule,
9
13
  checkInstagramHashtags,
14
+ clearContactFieldValue,
10
15
  completeTelegramConnect,
11
16
  connectBlueskyCredentials,
12
17
  connectWhatsAppCredentials,
13
18
  createAccountGroup,
14
19
  createApiKey,
20
+ createBroadcast,
21
+ createCommentAutomation,
22
+ createContact,
23
+ createCustomField,
15
24
  createGoogleBusinessMedia,
16
25
  createGoogleBusinessPlaceAction,
17
26
  createInviteToken,
18
27
  createPost,
19
28
  createProfile,
20
29
  createQueueSlot,
30
+ createSequence,
21
31
  createWebhookSettings,
22
32
  createWhatsAppBroadcast,
23
33
  createWhatsAppContact,
@@ -25,6 +35,10 @@ import {
25
35
  deleteAccount,
26
36
  deleteAccountGroup,
27
37
  deleteApiKey,
38
+ deleteBroadcast,
39
+ deleteCommentAutomation,
40
+ deleteContact,
41
+ deleteCustomField,
28
42
  deleteGoogleBusinessMedia,
29
43
  deleteGoogleBusinessPlaceAction,
30
44
  deleteInboxComment,
@@ -34,6 +48,7 @@ import {
34
48
  deletePost,
35
49
  deleteProfile,
36
50
  deleteQueueSlot,
51
+ deleteSequence,
37
52
  deleteTelegramCommands,
38
53
  deleteWebhookSettings,
39
54
  deleteWhatsAppBroadcast,
@@ -48,12 +63,17 @@ import {
48
63
  downloadTwitterMedia,
49
64
  downloadYouTubeVideo,
50
65
  editInboxMessage,
66
+ enrollContacts,
51
67
  followUser,
52
68
  getAccountHealth,
53
69
  getAllAccountsHealth,
54
70
  getAnalytics,
55
71
  getBestTimeToPost,
72
+ getBroadcast,
73
+ getCommentAutomation,
56
74
  getConnectUrl,
75
+ getContact,
76
+ getContactChannels,
57
77
  getContentDecay,
58
78
  getDailyMetrics,
59
79
  getFacebookPages,
@@ -87,6 +107,7 @@ import {
87
107
  getRedditFeed,
88
108
  getRedditFlairs,
89
109
  getRedditSubreddits,
110
+ getSequence,
90
111
  getTelegramCommands,
91
112
  getTelegramConnectStatus,
92
113
  getTikTokCreatorInfo,
@@ -116,7 +137,13 @@ import {
116
137
  listAccountGroups,
117
138
  listAccounts,
118
139
  listApiKeys,
140
+ listBroadcastRecipients,
141
+ listBroadcasts,
142
+ listCommentAutomationLogs,
143
+ listCommentAutomations,
119
144
  listConnectionLogs,
145
+ listContacts,
146
+ listCustomFields,
120
147
  listFacebookPages,
121
148
  listGoogleBusinessLocations,
122
149
  listGoogleBusinessMedia,
@@ -130,8 +157,11 @@ import {
130
157
  listPostsLogs,
131
158
  listProfiles,
132
159
  listQueueSlots,
160
+ listSequenceEnrollments,
161
+ listSequences,
133
162
  listSnapchatProfiles,
134
163
  listUsers,
164
+ pauseSequence,
135
165
  previewQueue,
136
166
  purchaseWhatsAppPhoneNumber,
137
167
  releaseWhatsAppPhoneNumber,
@@ -142,6 +172,7 @@ import {
142
172
  replyToInboxReview,
143
173
  retryPost,
144
174
  retweetPost,
175
+ scheduleBroadcast,
145
176
  scheduleWhatsAppBroadcast,
146
177
  searchReddit,
147
178
  selectFacebookPage,
@@ -149,21 +180,28 @@ import {
149
180
  selectLinkedInOrganization,
150
181
  selectPinterestBoard,
151
182
  selectSnapchatProfile,
183
+ sendBroadcast,
152
184
  sendInboxMessage,
153
185
  sendPrivateReplyToComment,
154
186
  sendWhatsAppBroadcast,
155
187
  sendWhatsAppBulk,
188
+ setContactFieldValue,
156
189
  setInstagramIceBreakers,
157
190
  setMessengerMenu,
158
191
  setTelegramCommands,
159
192
  testWebhook,
160
193
  undoRetweet,
194
+ unenrollContact,
161
195
  unfollowUser,
162
196
  unhideInboxComment,
163
197
  unlikeInboxComment,
164
198
  unpublishPost,
165
199
  updateAccount,
166
200
  updateAccountGroup,
201
+ updateBroadcast,
202
+ updateCommentAutomation,
203
+ updateContact,
204
+ updateCustomField,
167
205
  updateFacebookPage,
168
206
  updateGmbLocation,
169
207
  updateGoogleBusinessAttributes,
@@ -176,6 +214,7 @@ import {
176
214
  updateProfile,
177
215
  updateQueueSlot,
178
216
  updateRedditSubreddits,
217
+ updateSequence,
179
218
  updateWebhookSettings,
180
219
  updateWhatsAppBusinessProfile,
181
220
  updateWhatsAppContact,
@@ -624,6 +663,75 @@ export class Zernio {
624
663
  releaseWhatsAppPhoneNumber: releaseWhatsAppPhoneNumber,
625
664
  };
626
665
 
666
+ /**
667
+ * contacts API
668
+ */
669
+ contacts = {
670
+ listContacts: listContacts,
671
+ createContact: createContact,
672
+ getContact: getContact,
673
+ updateContact: updateContact,
674
+ deleteContact: deleteContact,
675
+ getContactChannels: getContactChannels,
676
+ bulkCreateContacts: bulkCreateContacts,
677
+ };
678
+
679
+ /**
680
+ * customfields API
681
+ */
682
+ customfields = {
683
+ setContactFieldValue: setContactFieldValue,
684
+ clearContactFieldValue: clearContactFieldValue,
685
+ listCustomFields: listCustomFields,
686
+ createCustomField: createCustomField,
687
+ updateCustomField: updateCustomField,
688
+ deleteCustomField: deleteCustomField,
689
+ };
690
+
691
+ /**
692
+ * broadcasts API
693
+ */
694
+ broadcasts = {
695
+ listBroadcasts: listBroadcasts,
696
+ createBroadcast: createBroadcast,
697
+ getBroadcast: getBroadcast,
698
+ updateBroadcast: updateBroadcast,
699
+ deleteBroadcast: deleteBroadcast,
700
+ sendBroadcast: sendBroadcast,
701
+ scheduleBroadcast: scheduleBroadcast,
702
+ cancelBroadcast: cancelBroadcast,
703
+ listBroadcastRecipients: listBroadcastRecipients,
704
+ addBroadcastRecipients: addBroadcastRecipients,
705
+ };
706
+
707
+ /**
708
+ * sequences API
709
+ */
710
+ sequences = {
711
+ listSequences: listSequences,
712
+ createSequence: createSequence,
713
+ getSequence: getSequence,
714
+ updateSequence: updateSequence,
715
+ deleteSequence: deleteSequence,
716
+ activateSequence: activateSequence,
717
+ pauseSequence: pauseSequence,
718
+ enrollContacts: enrollContacts,
719
+ unenrollContact: unenrollContact,
720
+ listSequenceEnrollments: listSequenceEnrollments,
721
+ };
722
+
723
+ /**
724
+ * commentautomations API
725
+ */
726
+ commentautomations = {
727
+ listCommentAutomations: listCommentAutomations,
728
+ createCommentAutomation: createCommentAutomation,
729
+ getCommentAutomation: getCommentAutomation,
730
+ updateCommentAutomation: updateCommentAutomation,
731
+ deleteCommentAutomation: deleteCommentAutomation,
732
+ listCommentAutomationLogs: listCommentAutomationLogs,
733
+ };
734
+
627
735
  /**
628
736
  * Create a new Zernio API client.
629
737
  *